Addressing linter errors.
This commit is contained in:
parent
3f6fd2c273
commit
5a2d598159
|
@ -797,7 +797,7 @@ class WC_Helper {
|
||||||
),
|
),
|
||||||
isset( $_GET['redirect-to-wc-admin'] )
|
isset( $_GET['redirect-to-wc-admin'] )
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -76,16 +76,19 @@ class Marketplace {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enqueue WordPress updates script to enable plugin and theme installs and updates.
|
// Enqueue WordPress updates script to enable plugin and theme installs and updates.
|
||||||
|
// phpcs:disable WordPress.Security.NonceVerification.Recommended
|
||||||
wp_enqueue_script( 'updates' );
|
wp_enqueue_script( 'updates' );
|
||||||
|
// phpcs:enable WordPress.Security.NonceVerification.Recommended
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a Woo Marketplace link to the plugin install action links.
|
* Add a Woo Marketplace link to the plugin install action links.
|
||||||
|
*
|
||||||
* @param array $tabs Plugins list tabs.
|
* @param array $tabs Plugins list tabs.
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function add_woo_plugin_install_action_link( $tabs ) {
|
public function add_woo_plugin_install_action_link( $tabs ) {
|
||||||
$tabs[self::MARKETPLACE_TAB_SLUG] = 'Woo';
|
$tabs[ self::MARKETPLACE_TAB_SLUG ] = 'Woo';
|
||||||
return $tabs;
|
return $tabs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,9 +96,11 @@ class Marketplace {
|
||||||
* Open the Woo tab when the user clicks on the Woo link in the plugin installer.
|
* Open the Woo tab when the user clicks on the Woo link in the plugin installer.
|
||||||
*/
|
*/
|
||||||
public function maybe_open_woo_tab() {
|
public function maybe_open_woo_tab() {
|
||||||
|
// phpcs:disable WordPress.Security.NonceVerification.Recommended
|
||||||
if ( ! isset( $_GET['tab'] ) || self::MARKETPLACE_TAB_SLUG !== $_GET['tab'] ) {
|
if ( ! isset( $_GET['tab'] ) || self::MARKETPLACE_TAB_SLUG !== $_GET['tab'] ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// phpcs:enable WordPress.Security.NonceVerification.Recommended
|
||||||
|
|
||||||
$woo_url = add_query_arg(
|
$woo_url = add_query_arg(
|
||||||
array(
|
array(
|
||||||
|
|
Loading…
Reference in New Issue