Archived
wp++
This commit is contained in:
1 parent
b45848d362
commit
5fbc3adb4d
301 files changed
+5507
-52261
No files matched your search
@@ -104,7 +104,7 @@ class WPSEO_Pointers {
|
||||
return;
|
||||
}
|
||||
|
||||
var wpseo_pointer_options = <?php echo WPSEO_Utils::json_encode( $options ); ?>, setup;
|
||||
var wpseo_pointer_options = <?php echo wp_json_encode( $options ); ?>, setup;
|
||||
|
||||
wpseo_pointer_options = $.extend(wpseo_pointer_options, {
|
||||
buttons: function (event, t) {
|
||||
@@ -170,7 +170,7 @@ class WPSEO_Pointers {
|
||||
* Show a pointer that starts the tour for Yoast SEO
|
||||
*/
|
||||
private function start_tour_pointer() {
|
||||
$selector = 'li.toplevel_page_wpseo_dashboard';
|
||||
$selector = 'li.toplevel_page_wpseo_alerts a[href="admin.php?page=' . WPSEO_Admin::PAGE_IDENTIFIER . '"]';
|
||||
$content = '<h3>' . __( 'Congratulations!', 'wordpress-seo' ) . '</h3>'
|
||||
/* translators: %1$s expands to Yoast SEO */
|
||||
. '<p>' . sprintf( __( 'You’ve just installed %1$s! Click “Start Tour” to view a quick introduction of this plugin’s core functionality.', 'wordpress-seo' ), 'Yoast SEO' ) . '</p>';
|
||||
@@ -180,7 +180,7 @@ class WPSEO_Pointers {
|
||||
);
|
||||
|
||||
$this->button_array['button2']['text'] = __( 'Start Tour', 'wordpress-seo' );
|
||||
$this->button_array['button2']['function'] = sprintf( 'document.location="%s";', admin_url( 'admin.php?page=wpseo_dashboard' ) );
|
||||
$this->button_array['button2']['function'] = sprintf( 'document.location="%s";', admin_url( 'admin.php?page=' . WPSEO_Admin::PAGE_IDENTIFIER ) );
|
||||
|
||||
$this->print_scripts( $selector, $opt_arr );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user