Addressing linter errors.
This commit is contained in:
parent
3f6fd2c273
commit
5a2d598159
|
@ -76,11 +76,14 @@ 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
|
||||||
*/
|
*/
|
||||||
|
@ -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