From 5b811e339763f5e49bf6b3ba500973f909a5a223 Mon Sep 17 00:00:00 2001 From: Robert Anderson Date: Mon, 15 Nov 2021 06:17:57 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@52159 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/site-editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/site-editor.php b/src/wp-admin/site-editor.php index 2eaeb441c7..508ecd3122 100644 --- a/src/wp-admin/site-editor.php +++ b/src/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 ) ); } }