Changeset 19389
- Timestamp:
- 11/21/2011 11:04:35 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r19132 r19389 1576 1576 // check_ajax_referer( 'dismiss-pointer_' . $pointer ); 1577 1577 1578 $dismissed = explode( ',', (string) get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true) );1578 $dismissed = array_filter( explode( ',', (string) get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) ) ); 1579 1579 1580 1580 if ( in_array( $pointer, $dismissed ) ) -
trunk/wp-admin/includes/template.php
r19388 r19389 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 */ … … 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 'post.php' => 'wp330_media_uploader', 1688 'themes.php' => 'wp330_saving_widgets', 1688 1689 ); 1689 1690 … … 1702 1703 1703 1704 // 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 ) ); 1705 1706 1706 1707 // Add pointers script and style to queue … … 1754 1755 $content .= '<p>' .esc_js( __( 'Network Admin is now located in the My Sites menu.' ) ) . '</p>'; 1755 1756 1756 WP_Internal_Pointers::print_js( 'wp330 -toolbar', '#wpadminbar', array(1757 WP_Internal_Pointers::print_js( 'wp330_toolbar', '#wpadminbar', array( 1757 1758 'content' => $content, 1758 1759 'position' => array( 'edge' => 'top', 'align' => 'center' ), … … 1769 1770 $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 1771 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( 1772 1773 'content' => $content, 1773 1774 'position' => array( 'edge' => 'left', 'align' => 'center' ), … … 1784 1785 $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 1786 1786 WP_Internal_Pointers::print_js( 'wp330 -saving-widgets', '#message2', array(1787 WP_Internal_Pointers::print_js( 'wp330_saving_widgets', '#message2', array( 1787 1788 'content' => $content, 1788 1789 'position' => array( 'edge' => 'top', 'align' => 'left' ), -
trunk/wp-admin/includes/upgrade.php
r19062 r19389 452 452 upgrade_300(); 453 453 454 if ( $wp_current_db_version < 19 061)454 if ( $wp_current_db_version < 19389 ) 455 455 upgrade_330(); 456 456 … … 1146 1146 $wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key IN ('show_admin_bar_admin', 'plugins_last_view')" ); 1147 1147 } 1148 1149 // 3.3-beta. Can remove before release. 1150 if ( $wp_current_db_version > 18715 && $wp_current_db_version < 19389 1151 && is_main_site() && ! defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) 1152 delete_metadata( 'user', 0, 'dismissed_wp_pointers', '', true ); 1153 1148 1154 1149 1155 if ( $wp_current_db_version >= 11548 ) -
trunk/wp-includes/version.php
r19364 r19389 12 12 * @global int $wp_db_version 13 13 */ 14 $wp_db_version = 193 64;14 $wp_db_version = 19389; 15 15 16 16 /**
Note: See TracChangeset
for help on using the changeset viewer.