Skip to content

Commit 420f715

Browse files
committed
fix: WP plugin suggestions
1 parent ea9c866 commit 420f715

6 files changed

Lines changed: 19 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<p align="center">
55
<a href="https://github.com/Attributes-PHP/wp-fastendpoints-depends/actions"><img alt="GitHub Actions Workflow Status (main)" src="https://img.shields.io/github/actions/workflow/status/Attributes-PHP/wp-fastendpoints-depends/tests.yml"></a>
66
<a href="https://codecov.io/gh/Attributes-PHP/wp-fastendpoints-depends" ><img alt="Code Coverage" src="https://codecov.io/gh/Attributes-PHP/wp-fastendpoints-depends/graph/badge.svg?token=8N7N9NMGLG"/></a>
7-
<a href="https://en-gb.wordpress.org/plugins/fastendpoints-depends/"><img alt="WordPress Plugin Version" src="https://img.shields.io/wordpress/plugin/v/fastendpoints-depends"></a>
87
<a href="https://packagist.org/packages/Attributes-PHP/wp-fastendpoints"><img alt="Supported WordPress Versions" src="https://img.shields.io/badge/6.x-versions?logo=wordpress&label=versions"></a>
98
<a href="https://opensource.org/licenses/MIT"><img alt="Software License" src="https://img.shields.io/badge/Licence-MIT-brightgreen"></a>
109
</p>
@@ -37,7 +36,7 @@
3736

3837
### Using standard WordPress structure
3938

40-
1. Download plugin from WordPress store
39+
1. Download latest plugin from our [Releases](https://github.com/Attributes-PHP/wp-fastendpoints-depends/releases) page
4140
2. Install plugin as a [MU-plugin](https://developer.wordpress.org/advanced-administration/plugins/mu-plugins/)
4241
3. Run the following WP CLI command `wp fastendpoints depends` or activate any plugin on the website
4342
4. Enjoy 😊

fastendpoints-depends.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
use Attributes\Wp\FastEndpoints\Depends\DependenciesGenerator;
1515
use Attributes\Wp\FastEndpoints\Depends\DependsAutoloader;
1616

17+
if (! defined('ABSPATH')) {
18+
exit;
19+
}
20+
1721
$composer = __DIR__.'/vendor/autoload.php';
1822
if (! file_exists($composer)) {
1923
wp_die(

src/DependenciesGenerator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
use WP_CLI;
66

7+
if (! defined('ABSPATH')) {
8+
exit;
9+
}
10+
711
/**
812
* Holds logic to update the FastEndpoint dependencies
913
*

src/DependsAutoloader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
use WP_Rewrite;
66

7+
if (! defined('ABSPATH')) {
8+
exit;
9+
}
10+
711
/**
812
* Holds logic to load plugins as dependencies for REST endpoints
913
*

src/DependsCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
use WP_CLI;
66

7+
if (! defined('ABSPATH')) {
8+
exit;
9+
}
10+
711
/**
812
* Manages REST endpoint dependencies
913
*

tests/bootstrap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* integration tests.
1313
*/
1414
if (! Helpers::isIntegrationTest()) {
15+
define('ABSPATH', __FILE__.'/fastendpoints-depends/wp/src/');
16+
1517
return;
1618
}
1719

0 commit comments

Comments
 (0)