Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-basic-requirements
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-basic-requirements
Commits
bd9e1faa
Commit
bd9e1faa
authored
1 month ago
by
Marcin Kolanko
Browse files
Options
Downloads
Patches
Plain Diff
fix: remove of the plugin_api filter as prohibited for use in the plugin review.
parent
08e34862
No related branches found
No related tags found
1 merge request
!45
fix: remove of the plugin_api filter as prohibited for use in the plugin review.
Pipeline
#506445
passed with stages
in 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Basic_Requirement_Checker.php
+0
-16
0 additions, 16 deletions
src/Basic_Requirement_Checker.php
with
0 additions
and
16 deletions
src/Basic_Requirement_Checker.php
+
0
−
16
View file @
bd9e1faa
...
@@ -491,22 +491,6 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) {
...
@@ -491,22 +491,6 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) {
if
(
function_exists
(
'wp_nonce_url'
)
&&
function_exists
(
'wp_create_nonce'
)
)
{
if
(
function_exists
(
'wp_nonce_url'
)
&&
function_exists
(
'wp_create_nonce'
)
)
{
$install_url
=
wp_nonce_url
(
$install_url
,
'install-plugin_'
.
$slug
);
$install_url
=
wp_nonce_url
(
$install_url
,
'install-plugin_'
.
$slug
);
}
}
add_filter
(
'plugins_api'
,
function
(
$api
,
$action
,
$args
)
use
(
$plugin_info
,
$slug
)
{
if
(
'plugin_information'
!==
$action
||
false
!==
$api
||
!
isset
(
$args
->
slug
)
||
$slug
!==
$args
->
slug
)
{
return
$api
;
}
$api
=
new
stdClass
();
$api
->
name
=
$plugin_info
[
'nice_name'
];
// self in closures requires 5.4
$api
->
version
=
''
;
$api
->
download_link
=
esc_url
(
$plugin_info
[
'repository_url'
]
);
// self in closures requires 5.4
return
$api
;
},
10
,
3
);
return
$install_url
;
return
$install_url
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment