Introduce initial_db_version and leverage it so that pointers only get shown to updated installs, not new 3.3 installs. props nacin. see #18693

git-svn-id: https://develop.svn.wordpress.org/trunk@19410 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2011-11-22 21:50:50 +00:00
parent bc671426cb
commit 00fd073cc0
3 changed files with 18 additions and 2 deletions
+4
View File
@@ -1677,10 +1677,14 @@ final class WP_Internal_Pointers {
* remove_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_wp330_toolbar' ) );
*/
public static function enqueue_scripts( $hook_suffix ) {
if ( get_site_option( 'initial_db_version' ) >= 19389 ) // Final db_version for 3.3.
return;
/*
* Register feature pointers
* Format: array( hook_suffix => pointer_id )
*/
$registered_pointers = array(
'index.php' => 'wp330_toolbar',
'post-new.php' => 'wp330_media_uploader',