mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user