v1.0.0
This commit is contained in:
parent
0fcf42b47b
commit
443dceb8ca
1 changed files with 566609 additions and 230 deletions
29
vendor/eduardovillao/wp-since/tests/fixtures/plugin-ignore-comment/plugin-ignore-comment.php
vendored
Normal file
29
vendor/eduardovillao/wp-since/tests/fixtures/plugin-ignore-comment/plugin-ignore-comment.php
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
add_option('should_be_ignored'); // @wp-since ignore
|
||||
|
||||
do_action('should_be_ignored_space'); // @wp-since ignore
|
||||
|
||||
do_action('need_detect'); // simple comment
|
||||
|
||||
do_action('my_custom_hook');
|
||||
|
||||
register_setting('mygroup', 'myoption');
|
||||
|
||||
function isBlockTheme()
|
||||
{
|
||||
if (function_exists( 'wp_is_block_theme')) {
|
||||
return wp_is_block_theme(); // @wp-since ignore
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function exampleWithoutIgnore()
|
||||
{
|
||||
if (function_exists('wp_detected_function')) {
|
||||
return wp_detected_function();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
Loading…
Reference in a new issue