Make WordPress Core

Changeset 52159


Ignore:
Timestamp:
11/15/2021 06:17:57 AM (2 months ago)
Author:
noisysocks
Message:

Editor: Fix fatal call to add_query_args()

It should be add_query_arg(), not add_query_args().

Follows [52145].
See #54337.
Props sabernhardt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/site-editor.php

    r52145 r52159  
    6767foreach ( $active_areas as $post_id ) {
    6868    if ( $post_id ) {
    69         $preload_paths[] = add_query_args( 'context', 'edit', rest_get_route_for_post( $post_id ) );
     69        $preload_paths[] = add_query_arg( 'context', 'edit', rest_get_route_for_post( $post_id ) );
    7070    }
    7171}
Note: See TracChangeset for help on using the changeset viewer.