Make WordPress Core


Ignore:
Timestamp:
11/29/2021 10:04:48 PM (3 years ago)
Author:
spacedmonkey
Message:

Editor: Remove Navigation Areas

Navigation area were merged as part of full site editing and the new navigation block. This functionality is experimental and not currently used in WordPress core, so should be removed.

Props noisysocks, spacedmonkey, get_dave, zieladam.
Fixes #54506.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1818# Files for local environment config
        1919/docker-compose.override.yml
         20.idea
  • trunk/src/wp-admin/site-editor.php

    r52232 r52272  
    100100        '/wp/v2/global-styles/' . $active_global_styles_id,
    101101        '/wp/v2/themes/' . $active_theme . '/global-styles',
    102         '/wp/v2/block-navigation-areas?context=edit',
    103102    );
    104 
    105     $areas        = get_option( 'wp_navigation_areas', array() );
    106     $active_areas = array_intersect_key( $areas, get_navigation_areas() );
    107     foreach ( $active_areas as $post_id ) {
    108         if ( $post_id ) {
    109             $preload_paths[] = add_query_arg( 'context', 'edit', rest_get_route_for_post( $post_id ) );
    110         }
    111     }
    112103
    113104    block_editor_rest_api_preload( $preload_paths, $block_editor_context );
Note: See TracChangeset for help on using the changeset viewer.