Ticket #19360: 19360.2.diff
File 19360.2.diff, 1.3 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/template.php
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 ) { 1680 if ( get_site_option( 'initial_db_version' ) >= 20000 ) // Final db_version for 3.3.1681 return;1682 1680 1683 1681 /* 1684 1682 * Register feature pointers … … 1793 1791 'position' => array( 'edge' => 'top', 'align' => is_rtl() ? 'right' : 'left' ), 1794 1792 ) ); 1795 1793 } 1794 1795 /** 1796 * Prevents new users from seeing existing 'new feature' pointers. 1797 * 1798 * @since 3.3.0 1799 */ 1800 public static function dismiss_pointers_for_new_users( $user_id ) { 1801 add_user_meta( $user_id, 'dismissed_wp_pointers', 'wp330_toolbar,wp330_media_uploader,wp330_saving_widgets' ); 1802 } 1796 1803 } 1797 1804 1798 add_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) ); 1805 add_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) ); 1806 add_action( 'user_register', array( 'WP_Internal_Pointers', 'dismiss_pointers_for_new_users' ) ); 1799 1807 1800 1808 /** 1801 1809 * Convert a screen string to a screen object