Make WordPress Core


Ignore:
Timestamp:
03/26/2026 01:24:51 PM (5 months ago)
Author:
dmsnell
Message:

Restore: Sync Gutenberg @ 022d8dd3d461f91b15c1f0410649d3ebb027207f
See changelog in f328908c4e6a97dc74437504f8d6dfbfd4fe2415

Gutenberg ref update.
CI run: https://github.com/WordPress/wordpress-develop/pull/11059.

See #64595.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/fixes-64393-restore-version-history/src/wp-includes/build/routes.php

    r62122 r62127  
    8989
    9090// Page-specific route registration functions
     91// Page-specific route registration functions for connectors
     92if ( ! function_exists( 'wp_register_connectors_page_routes' ) ) {
     93        /**
     94         * Register routes for connectors page (full-page mode).
     95         */
     96        function wp_register_connectors_page_routes() {
     97                global $wp_connectors_routes_data;
     98                wp_register_page_routes( $wp_connectors_routes_data, 'wp_register_connectors_route' );
     99        }
     100}
     101add_action( 'connectors_init', 'wp_register_connectors_page_routes' );
     102
     103if ( ! function_exists( 'wp_register_connectors_wp_admin_page_routes' ) ) {
     104        /**
     105         * Register routes for connectors page (wp-admin mode).
     106         */
     107        function wp_register_connectors_wp_admin_page_routes() {
     108                global $wp_connectors_routes_data;
     109                wp_register_page_routes( $wp_connectors_routes_data, 'wp_register_connectors_wp_admin_route' );
     110        }
     111}
     112add_action( 'connectors-wp-admin_init', 'wp_register_connectors_wp_admin_page_routes' );
     113
    91114// Page-specific route registration functions for site-editor
    92115if ( ! function_exists( 'wp_register_site_editor_page_routes' ) ) {
Note: See TracChangeset for help on using the changeset viewer.