From 94ae52c0791006dae2e29dac33836a836a326681 Mon Sep 17 00:00:00 2001 From: hellofromTonya Date: Mon, 19 Sep 2022 14:20:09 +0000 Subject: [PATCH] Editor: Fix function name case in `wp_default_packages_inline_scripts()`. Fixes function name typo by changing from uppercase `get_current_user_ID()` to lowercase `get_current_user_id()`. >Note: Function names are case-insensitive for the ASCII characters A to Z, though it is usually good form to call functions as they appear in their declaration. [https://www.php.net/manual/en/functions.user-defined.php As per the PHP manual], PHP functions are case-insensitive, meaning the code runs. However, this fix is necessary for consistency, maintainability, and future-proofing. Follow-up to [54182]. Unprop hellofromTonya. See #56467. Built from https://develop.svn.wordpress.org/trunk@54204 git-svn-id: http://core.svn.wordpress.org/trunk@53763 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/script-loader.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 3d84cbd749..532fa79a67 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -366,7 +366,7 @@ function wp_default_packages_inline_scripts( $scripts ) { ); $meta_key = $wpdb->get_blog_prefix() . 'persisted_preferences'; - $user_id = get_current_user_ID(); + $user_id = get_current_user_id(); $preload_data = get_user_meta( $user_id, $meta_key, true ); $scripts->add_inline_script( 'wp-preferences', diff --git a/wp-includes/version.php b/wp-includes/version.php index 855b314d7f..e66883dd6c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-54203'; +$wp_version = '6.1-alpha-54204'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.