PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | src/integrations/admin/addon-installation/dialog-integration.php +9 -7 18.6 → trunk View file →
@@ -51,8 +51,10 @@
51 51 }
52 52
53 53 /**
54 54 * Registers all hooks to WordPress.
55 + *
56 + * @return void
55 57 */
56 58 public function register_hooks() {
57 59 \add_action( 'admin_init', [ $this, 'start_addon_installation' ] );
58 60 }
@@ -85,18 +87,18 @@
85 87 *
86 88 * @return void
87 89 */
88 90 public function throw_no_owned_addons_warning() {
89 - echo '<div class="notice notice-warning"><p>' .
90 - \sprintf(
91 + echo '<div class="notice notice-warning"><p>'
92 + . \sprintf(
91 93 /* translators: %1$s expands to Yoast SEO */
92 94 \esc_html__(
93 95 'No %1$s plugins have been installed. You don\'t seem to own any active subscriptions.',
94 - 'wordpress-seo'
96 + 'wordpress-seo',
95 97 ),
96 - 'Yoast SEO'
97 - ) .
98 - '</p></div>';
98 + 'Yoast SEO',
99 + )
100 + . '</p></div>';
99 101 }
100 102
101 103 /**
102 104 * Shows the modal.
@@ -109,9 +111,9 @@
109 111 'wpseoAddonInstallationL10n',
110 112 [
111 113 'addons' => $this->owned_addons,
112 114 'nonce' => \wp_create_nonce( 'wpseo_addon_installation' ),
113 - ]
115 + ],
114 116 );
115 117
116 118 $asset_manager = new WPSEO_Admin_Asset_Manager();
117 119 $asset_manager->enqueue_script( 'addon-installation' );