From efa9da7446795ca792104d57de6d18d00a5c28a3 Mon Sep 17 00:00:00 2001 From: desrosj Date: Thu, 3 Oct 2019 20:39:58 +0000 Subject: [PATCH] Docs: Fix code example for removing internal pointers. Props daleharrison, swissspidy, garrett-eclipse, luciano-croce, jrf, desrosj. Fixes #45529. Built from https://develop.svn.wordpress.org/trunk@46381 git-svn-id: http://core.svn.wordpress.org/trunk@46180 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-internal-pointers.php | 9 ++++++++- wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-internal-pointers.php b/wp-admin/includes/class-wp-internal-pointers.php index 36bd3338ab..f025af8425 100644 --- a/wp-admin/includes/class-wp-internal-pointers.php +++ b/wp-admin/includes/class-wp-internal-pointers.php @@ -22,7 +22,14 @@ final class WP_Internal_Pointers { * remove_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) ); * * Individual pointers (e.g. wp390_widgets) can be disabled using the following: - * remove_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_wp390_widgets' ) ); + * + * function yourprefix_remove_pointers() { + * remove_action( + * 'admin_print_footer_scripts', + * array( 'WP_Internal_Pointers', 'pointer_wp390_widgets' ) + * ); + * } + * add_action( 'admin_enqueue_scripts', 'yourprefix_remove_pointers', 11 ); * * @param string $hook_suffix The current admin page. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index aa2315b9dd..d93a716d9c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-beta2-46380'; +$wp_version = '5.3-beta2-46381'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.