Make WordPress Core

Ticket #54337: 54337.add_query_arg.diff

File 54337.add_query_arg.diff, 558 bytes (added by sabernhardt, 3 years ago)

editing add_query_args to add_query_arg

  • src/wp-admin/site-editor.php

     
    6666$active_areas = array_intersect_key( $areas, get_navigation_areas() );
    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}
    7272