Make WordPress Core


Ignore:
Timestamp:
11/21/2011 11:04:35 PM (12 years ago)
Author:
nacin
Message:

Remove old dismissed pointers as the IDs have changed. Switch to underscores that way we don't need to translate them for method names. Avoid an empty pointer in the array. see #18693.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r19388 r19389  
    16741674     *     remove_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) );
    16751675     *
    1676      * Individual pointers (e.g. wp330-toolbar) can be disabled using the following:
     1676     * Individual pointers (e.g. wp330_toolbar) can be disabled using the following:
    16771677     *     remove_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_wp330_toolbar' ) );
    16781678     */
     
    16831683         */
    16841684        $registered_pointers = array(
    1685             'index.php'    => 'wp330-toolbar',
    1686             'post-new.php' => 'wp330-media-uploader',
    1687             'themes.php'   => 'wp330-saving-widgets',
     1685            'index.php'    => 'wp330_toolbar',
     1686            'post-new.php' => 'wp330_media_uploader',
     1687            'post.php'     => 'wp330_media_uploader',
     1688            'themes.php'   => 'wp330_saving_widgets',
    16881689        );
    16891690
     
    17021703
    17031704        // Bind pointer print function
    1704         add_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_' . str_replace( '-', '_', $pointer ) ) );
     1705        add_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_' . $pointer ) );
    17051706
    17061707        // Add pointers script and style to queue
     
    17541755            $content .= '<p>' .esc_js( __( 'Network Admin is now located in the My Sites menu.' ) ) . '</p>';
    17551756
    1756         WP_Internal_Pointers::print_js( 'wp330-toolbar', '#wpadminbar', array(
     1757        WP_Internal_Pointers::print_js( 'wp330_toolbar', '#wpadminbar', array(
    17571758            'content'  => $content,
    17581759            'position' => array( 'edge' => 'top', 'align' => 'center' ),
     
    17691770        $content .= '<p>' . esc_js( __( 'The single media icon now launches the uploader for all file types, and the new drag and drop interface makes uploading a breeze.' ) ) . '</p>';
    17701771
    1771         WP_Internal_Pointers::print_js( 'wp330-media-uploader', '#content-add_media', array(
     1772        WP_Internal_Pointers::print_js( 'wp330_media_uploader', '#content-add_media', array(
    17721773            'content'  => $content,
    17731774            'position' => array( 'edge' => 'left', 'align' => 'center' ),
     
    17841785        $content .= '<p>' . esc_js( __( 'If you change your mind and revert to your previous theme, we&#8217;ll put the widgets back the way you had them.' ) ) . '</p>';
    17851786
    1786         WP_Internal_Pointers::print_js( 'wp330-saving-widgets', '#message2', array(
     1787        WP_Internal_Pointers::print_js( 'wp330_saving_widgets', '#message2', array(
    17871788            'content'  => $content,
    17881789            'position' => array( 'edge' => 'top', 'align' => 'left' ),
Note: See TracChangeset for help on using the changeset viewer.