v1.0.0
This commit is contained in:
parent
0fcf42b47b
commit
443dceb8ca
14 changed files with 566609 additions and 230 deletions
5
vendor/eduardovillao/wp-since/tests/fixtures/file-a.php
vendored
Normal file
5
vendor/eduardovillao/wp-since/tests/fixtures/file-a.php
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
|
||||
do_action('init');
|
||||
register_setting('group', 'option');
|
||||
new WP_Query();
|
||||
4
vendor/eduardovillao/wp-since/tests/fixtures/file-b.php
vendored
Normal file
4
vendor/eduardovillao/wp-since/tests/fixtures/file-b.php
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<?php
|
||||
|
||||
apply_filters('custom_filter', $value);
|
||||
MyClass::boot();
|
||||
3
vendor/eduardovillao/wp-since/tests/fixtures/plugin-full-test/.distignore
vendored
Normal file
3
vendor/eduardovillao/wp-since/tests/fixtures/plugin-full-test/.distignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
/ignored-folder/
|
||||
/ignore-this.php
|
||||
ignored-no-slash/
|
||||
6
vendor/eduardovillao/wp-since/tests/fixtures/plugin-full-test/ignore-this.php
vendored
Normal file
6
vendor/eduardovillao/wp-since/tests/fixtures/plugin-full-test/ignore-this.php
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
function ignored_function_file()
|
||||
{
|
||||
some_ignored_func_file();
|
||||
}
|
||||
6
vendor/eduardovillao/wp-since/tests/fixtures/plugin-full-test/ignored-folder/fake1.php
vendored
Normal file
6
vendor/eduardovillao/wp-since/tests/fixtures/plugin-full-test/ignored-folder/fake1.php
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
function ignored_function_folder()
|
||||
{
|
||||
some_ignored_func_folder();
|
||||
}
|
||||
6
vendor/eduardovillao/wp-since/tests/fixtures/plugin-full-test/ignored-no-slash/file.php
vendored
Normal file
6
vendor/eduardovillao/wp-since/tests/fixtures/plugin-full-test/ignored-no-slash/file.php
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
function ignored_function_noslash()
|
||||
{
|
||||
some_ignored_func_noslash();
|
||||
}
|
||||
28
vendor/eduardovillao/wp-since/tests/fixtures/plugin-full-test/plugin-full-test.php
vendored
Normal file
28
vendor/eduardovillao/wp-since/tests/fixtures/plugin-full-test/plugin-full-test.php
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Plugin Name: My plugin
|
||||
* Plugin URI: https://myddelivery.com/
|
||||
* Description: Simple test plugin.
|
||||
* Author: EduardoVillao.me
|
||||
* Author URI: https://eduardovillao.me/
|
||||
* Version: 1.0
|
||||
* Requires PHP: 7.4
|
||||
* Requires at least: 5.5
|
||||
* Text Domain: test-plugin
|
||||
* Domain Path: /languages
|
||||
* License: GPL-2.0+
|
||||
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
|
||||
*/
|
||||
|
||||
add_option('foo', 'bar');
|
||||
|
||||
$query = new WP_Query();
|
||||
|
||||
WP_Filesystem::get_contents('/some/path');
|
||||
|
||||
$user = new WP_User();
|
||||
$user->add_cap('edit_posts');
|
||||
|
||||
do_action('my_custom_hook', 'param');
|
||||
apply_filters('my_filter_hook', 'value');
|
||||
10
vendor/eduardovillao/wp-since/tests/fixtures/plugin-full-test/readme.txt
vendored
Normal file
10
vendor/eduardovillao/wp-since/tests/fixtures/plugin-full-test/readme.txt
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
=== Test Plugin ===
|
||||
Contributors: evcode
|
||||
Donate link: https://eduardovillao.me/
|
||||
Tags: delivery, wordpress delivery, delivery whatsapp
|
||||
Requires at least: 5.5
|
||||
Tested up to: 6.7
|
||||
Stable tag: 2.0
|
||||
Requires PHP: 7.4
|
||||
License: GPLv2License
|
||||
URI:https://www.gnu.org/licenses/gpl-2.0.html
|
||||
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;
|
||||
}
|
||||
16
vendor/eduardovillao/wp-since/tests/fixtures/plugin-with-header/plugin-with-header.php
vendored
Normal file
16
vendor/eduardovillao/wp-since/tests/fixtures/plugin-with-header/plugin-with-header.php
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Plugin Name: My plugin
|
||||
* Plugin URI: https://myddelivery.com/
|
||||
* Description: Simple test plugin.
|
||||
* Author: EduardoVillao.me
|
||||
* Author URI: https://eduardovillao.me/
|
||||
* Version: 1.0
|
||||
* Requires PHP: 7.4
|
||||
* Requires at least: 6.2
|
||||
* Text Domain: test-plugin
|
||||
* Domain Path: /languages
|
||||
* License: GPL-2.0+
|
||||
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
|
||||
*/
|
||||
15
vendor/eduardovillao/wp-since/tests/fixtures/plugin-with-readme-only/plugin-with-readme-only.php
vendored
Normal file
15
vendor/eduardovillao/wp-since/tests/fixtures/plugin-with-readme-only/plugin-with-readme-only.php
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Plugin Name: My plugin
|
||||
* Plugin URI: https://myddelivery.com/
|
||||
* Description: Simple test plugin.
|
||||
* Author: EduardoVillao.me
|
||||
* Author URI: https://eduardovillao.me/
|
||||
* Version: 1.0
|
||||
* Requires PHP: 7.4
|
||||
* Text Domain: test-plugin
|
||||
* Domain Path: /languages
|
||||
* License: GPL-2.0+
|
||||
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
|
||||
*/
|
||||
10
vendor/eduardovillao/wp-since/tests/fixtures/plugin-with-readme-only/readme.txt
vendored
Normal file
10
vendor/eduardovillao/wp-since/tests/fixtures/plugin-with-readme-only/readme.txt
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
=== My Plugin ===
|
||||
Contributors: evcode
|
||||
Donate link: https://eduardovillao.me/
|
||||
Tags: test plugin
|
||||
Requires at least: 5.8
|
||||
Tested up to: 6.7
|
||||
Stable tag: 1.0
|
||||
Requires PHP: 7.4
|
||||
License: GPLv2License
|
||||
URI:https://www.gnu.org/licenses/gpl-2.0.html
|
||||
15
vendor/eduardovillao/wp-since/tests/fixtures/plugin-without-version/plugin-without-version.php
vendored
Normal file
15
vendor/eduardovillao/wp-since/tests/fixtures/plugin-without-version/plugin-without-version.php
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Plugin Name: My plugin
|
||||
* Plugin URI: https://myddelivery.com/
|
||||
* Description: Simple test plugin.
|
||||
* Author: EduardoVillao.me
|
||||
* Author URI: https://eduardovillao.me/
|
||||
* Version: 1.0
|
||||
* Requires PHP: 7.4
|
||||
* Text Domain: test-plugin
|
||||
* Domain Path: /languages
|
||||
* License: GPL-2.0+
|
||||
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
|
||||
*/
|
||||
9
vendor/eduardovillao/wp-since/tests/fixtures/plugin-without-version/readme.txt
vendored
Normal file
9
vendor/eduardovillao/wp-since/tests/fixtures/plugin-without-version/readme.txt
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
=== My Plugin ===
|
||||
Contributors: evcode
|
||||
Donate link: https://eduardovillao.me/
|
||||
Tags: test plugin
|
||||
Tested up to: 6.7
|
||||
Stable tag: 1.0
|
||||
Requires PHP: 7.4
|
||||
License: GPLv2License
|
||||
URI:https://www.gnu.org/licenses/gpl-2.0.html
|
||||
Loading…
Reference in a new issue