| @@ -182,10 +182,10 @@ | ||
| 182 | 182 | ); |
| 183 | 183 | |
| 184 | 184 | add_submenu_page( |
| 185 | 185 | 'parsely-dashboard-page', |
| 186 | - 'Parse.ly Traffic Boost', | |
| 187 | - 'Traffic Boost (beta)', | |
| 186 | + 'Parse.ly Engagement Boost', | |
| 187 | + 'Engagement Boost (beta)', | |
| 188 | 188 | $capability, // phpcs:ignore WordPress.WP.Capabilities.Undetermined |
| 189 | 189 | 'parsely-dashboard-page', |
| 190 | 190 | '__return_null' |
| 191 | 191 | ); |
| @@ -297,11 +297,23 @@ | ||
| 297 | 297 | array(), |
| 298 | 298 | $asset_info['version'] |
| 299 | 299 | ); |
| 300 | 300 | |
| 301 | + $inline_script_lines = array( | |
| 302 | + 'window.wpParselyDependencies = {};', | |
| 303 | + sprintf( | |
| 304 | + 'window.wpParselyDependencies.urlWpComponents = %s;', | |
| 305 | + wp_json_encode( includes_url( 'css/dist/components/style.css' ) ) | |
| 306 | + ), | |
| 307 | + sprintf( | |
| 308 | + 'window._parsely_traffic_boost_preview_nonce = %s;', | |
| 309 | + wp_json_encode( wp_create_nonce( 'parsely_preview' ) ) | |
| 310 | + ), | |
| 311 | + ); | |
| 312 | + | |
| 301 | 313 | wp_add_inline_script( |
| 302 | 314 | 'parsely-dashboard-page', |
| 303 | - 'window._parsely_traffic_boost_preview_nonce = ' . wp_json_encode( wp_create_nonce( 'parsely_preview' ) ) . ';', | |
| 315 | + join( "\n", $inline_script_lines ), | |
| 304 | 316 | 'before' |
| 305 | 317 | ); |
| 306 | 318 | |
| 307 | 319 | if ( $this->parsely->site_id_is_set() ) { |
| @@ -313,9 +325,9 @@ | ||
| 313 | 325 | } |
| 314 | 326 | } |
| 315 | 327 | |
| 316 | 328 | /** |
| 317 | - * Injects Content Helper permissions into the dashboard page. | |
| 329 | + * Injects Content Intelligence permissions into the dashboard page. | |
| 318 | 330 | * |
| 319 | 331 | * @since 3.19.0 |
| 320 | 332 | */ |
| 321 | 333 | protected function inject_content_helper_permissions(): void { |