WordPress.org

Make WordPress Core

Ticket #18693: 18693.remove.hyphens.pointers.diff

File 18693.remove.hyphens.pointers.diff, 2.6 KB (added by koopersmith, 4 years ago)
  • wp-admin/includes/template.php

     
    16731673         * All pointers can be disabled using the following: 
    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         */ 
    16791679        public static function enqueue_scripts( $hook_suffix ) { 
     
    16821682                 * Format: array( hook_suffix => pointer_id ) 
    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                        'themes.php'   => 'wp330_saving_widgets', 
    16881688                ); 
    16891689 
    16901690                // Check if screen related pointer is registered 
     
    17011701                        return; 
    17021702 
    17031703                // Bind pointer print function 
    1704                 add_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_' . str_replace( '-', '_', $pointer ) ) ); 
     1704                add_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', "pointer_$pointer" ) ); 
    17051705 
    17061706                // Add pointers script and style to queue 
    17071707                wp_enqueue_style( 'wp-pointer' ); 
     
    17681768                $content  = '<h3>' . esc_js( __( 'Updated Media Uploader' ) ) . '</h3>'; 
    17691769                $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>'; 
    17701770 
    1771                 WP_Internal_Pointers::print_js( 'wp330-media-uploader', '#content-add_media', array( 
     1771                WP_Internal_Pointers::print_js( 'wp330_media_uploader', '#content-add_media', array( 
    17721772                        'content'  => $content, 
    17731773                        'position' => array( 'edge' => 'left', 'align' => 'center' ), 
    17741774                ) ); 
     
    17831783                $content  = '<h3>' . esc_js( __( 'New Feature: Saving Widgets' ) ) . '</h3>'; 
    17841784                $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>'; 
    17851785 
    1786                 WP_Internal_Pointers::print_js( 'wp330-saving-widgets', '#message2', array( 
     1786                WP_Internal_Pointers::print_js( 'wp330_saving_widgets', '#message2', array( 
    17871787                        'content'  => $content, 
    17881788                        'position' => array( 'edge' => 'top', 'align' => 'left' ), 
    17891789                ) );