Skip to content
Snippets Groups Projects
Commit a7520cde authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

feature(transients): as autoloaded options

parent 3f9d7ccf
No related branches found
No related tags found
1 merge request!42Feature/transients
Pipeline #213590 failed
......@@ -186,8 +186,7 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) {
public function add_php_module_require( $module_name, $nice_name = NULL ) {
if ( $nice_name === NULL ) {
$this->module_require[ $module_name ] = $module_name;
}
else {
} else {
$this->module_require[ $module_name ] = $nice_name;
}
......@@ -417,8 +416,7 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) {
$notice = NULL;
if ( isset( $plugin_info['repository_url'] ) ) {
$notice = $this->prepare_plugin_repository_require_notice( $plugin_info );
}
elseif (!self::is_wp_plugin_active($plugin_name)) {
} elseif ( ! self::is_wp_plugin_active( $plugin_name ) ) {
$notice = $this->prepare_notice_message( sprintf( __( 'The “%s” plugin cannot run without %s active. Please install and activate %s plugin.',
$this->get_text_domain() ), esc_html( $this->plugin_name ),
esc_html( basename( $plugin_info[ self::PLUGIN_INFO_KEY_NICE_NAME ] ) ),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment