Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • bugfix/prevent-error-notice
  • bugfix/wordpress-review
  • feature/minimum-plugin-version-check-demo1
  • feature/plugin-name
  • feature/update-message
  • master
  • remove-arrow
  • 1.0-alpha
  • 1.0.1-alpha
  • 1.0.2
  • 1.0.5
  • 2.0
  • 2.1
  • 2.1.1
  • 2.2
  • 2.3.0
  • 2.3.1
  • 2.4.0
  • 3.0
  • 3.0.1
  • 3.0.2
  • 3.0.3
  • 3.0.3.1
  • 3.0.4
  • 3.0.5
  • 3.1.0
  • 3.2.0
  • 3.2.1
  • 3.2.2
  • 3.2.3
  • 3.2.4
  • 3.2.5
  • 3.2.6
  • 3.2.7
  • 3.2.8
  • 3.3.0
  • 3.4.0
  • 3.5.0
  • 3.5.1
  • 3.5.2
  • 3.6.0
  • 3.6.0-beta1
  • 3.6.0-beta2
  • 3.6.0-beta3
  • 3.6.1
  • 3.6.2
  • 3.6.3
  • 3.7.0
  • 3.7.1
49 results

Target

Select target project
  • wpdesk/wp-basic-requirements
1 result
Select Git revision
  • bugfix/prevent-error-notice
  • bugfix/wordpress-review
  • feature/minimum-plugin-version-check-demo1
  • feature/plugin-name
  • feature/update-message
  • master
  • remove-arrow
  • 1.0-alpha
  • 1.0.1-alpha
  • 1.0.2
  • 1.0.5
  • 2.0
  • 2.1
  • 2.1.1
  • 2.2
  • 2.3.0
  • 2.3.1
  • 2.4.0
  • 3.0
  • 3.0.1
  • 3.0.2
  • 3.0.3
  • 3.0.3.1
  • 3.0.4
  • 3.0.5
  • 3.1.0
  • 3.2.0
  • 3.2.1
  • 3.2.2
  • 3.2.3
  • 3.2.4
  • 3.2.5
  • 3.2.6
  • 3.2.7
  • 3.2.8
  • 3.3.0
  • 3.4.0
  • 3.5.0
  • 3.5.1
  • 3.5.2
  • 3.6.0
  • 3.6.0-beta1
  • 3.6.0-beta2
  • 3.6.0-beta3
  • 3.6.1
  • 3.6.2
  • 3.6.3
  • 3.7.0
  • 3.7.1
49 results
Show changes
Commits on Source (4)
## [3.7.0] - 2025-05-16
### Fixed
- Remove of the plugin_api filter as prohibited for use in the plugin review.
## [3.6.3] - 2024-04-16
### Fixed
- Prevent error notice
......
......@@ -491,22 +491,6 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) {
if ( function_exists( 'wp_nonce_url' ) && function_exists( 'wp_create_nonce' ) ) {
$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;
}
......