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
This commit is contained in:
noisysocks 2021-11-15 06:19:01 +00:00
parent 40cd53a573
commit 892da9af91
2 changed files with 2 additions and 2 deletions

View File

@ -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 ) );
}
}

View File

@ -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.