From 892da9af910221e6bbe5959314e5f3e7b5b44f56 Mon Sep 17 00:00:00 2001 From: noisysocks Date: Mon, 15 Nov 2021 06:19:01 +0000 Subject: [PATCH] Editor: Fix fatal call to add_query_args() It should be add_query_arg(), not add_query_args(). Follows [52145]. See #54337. Props sabernhardt. Built from https://develop.svn.wordpress.org/trunk@52159 git-svn-id: http://core.svn.wordpress.org/trunk@51751 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/site-editor.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/site-editor.php b/wp-admin/site-editor.php index 2eaeb441c7..508ecd3122 100644 --- a/wp-admin/site-editor.php +++ b/wp-admin/site-editor.php @@ -66,7 +66,7 @@ $areas = get_option( 'fse_navigation_areas', array() ); $active_areas = array_intersect_key( $areas, get_navigation_areas() ); foreach ( $active_areas as $post_id ) { if ( $post_id ) { - $preload_paths[] = add_query_args( 'context', 'edit', rest_get_route_for_post( $post_id ) ); + $preload_paths[] = add_query_arg( 'context', 'edit', rest_get_route_for_post( $post_id ) ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 5ce5496ce2..084b7b009b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52158'; +$wp_version = '5.9-alpha-52159'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.