Ticket #18693: 18693.remove.hyphens.pointers.diff
File 18693.remove.hyphens.pointers.diff, 2.6 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/template.php
1673 1673 * All pointers can be disabled using the following: 1674 1674 * remove_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) ); 1675 1675 * 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: 1677 1677 * remove_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_wp330_toolbar' ) ); 1678 1678 */ 1679 1679 public static function enqueue_scripts( $hook_suffix ) { … … 1682 1682 * Format: array( hook_suffix => pointer_id ) 1683 1683 */ 1684 1684 $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', 1688 1688 ); 1689 1689 1690 1690 // Check if screen related pointer is registered … … 1701 1701 return; 1702 1702 1703 1703 // 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" ) ); 1705 1705 1706 1706 // Add pointers script and style to queue 1707 1707 wp_enqueue_style( 'wp-pointer' ); … … 1768 1768 $content = '<h3>' . esc_js( __( 'Updated Media Uploader' ) ) . '</h3>'; 1769 1769 $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>'; 1770 1770 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( 1772 1772 'content' => $content, 1773 1773 'position' => array( 'edge' => 'left', 'align' => 'center' ), 1774 1774 ) ); … … 1783 1783 $content = '<h3>' . esc_js( __( 'New Feature: Saving Widgets' ) ) . '</h3>'; 1784 1784 $content .= '<p>' . esc_js( __( 'If you change your mind and revert to your previous theme, we’ll put the widgets back the way you had them.' ) ) . '</p>'; 1785 1785 1786 WP_Internal_Pointers::print_js( 'wp330 -saving-widgets', '#message2', array(1786 WP_Internal_Pointers::print_js( 'wp330_saving_widgets', '#message2', array( 1787 1787 'content' => $content, 1788 1788 'position' => array( 'edge' => 'top', 'align' => 'left' ), 1789 1789 ) );