Make WordPress Core

Ticket #45529: 45529.diff

File 45529.diff, 916 bytes (added by garrett-eclipse, 5 years ago)
  • src/wp-admin/includes/class-wp-internal-pointers.php

     
    2222         *     remove_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) );
    2323         *
    2424         * Individual pointers (e.g. wp390_widgets) can be disabled using the following:
    25          *     remove_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_wp390_widgets' ) );
     25         *     add_action(
     26         *         'admin_enqueue_scripts',
     27         *         function() {
     28         *             remove_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_wp390_widgets' ) );
     29         *         },
     30         *         11
     31         *     );
    2632         *
    2733         * @param string $hook_suffix The current admin page.
    2834         */