-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'WordPress:trunk' into issue66077
- Loading branch information
Showing
240 changed files
with
1,148 additions
and
659 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
https://github.com/WordPress/wordpress-develop/pull/8372 | ||
|
||
* https://github.com/WordPress/gutenberg/pull/69271 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
https://github.com/WordPress/wordpress-develop/pull/8441 | ||
|
||
* https://github.com/WordPress/gutenberg/pull/69400 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* Updates the Edit Site link in the admin bar to point to the top level of the Site Editor. | ||
* Removes the use of the $_wp_current_template_id global and the query args. | ||
* Displays the link while in the admin area. | ||
* Changes the capitalization of the link text to match WP 6.8: https://core.trac.wordpress.org/ticket/62971 | ||
* | ||
* Note: Backports into wp-includes\admin-bar.php wp_admin_bar_edit_site_menu() | ||
* | ||
* @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance. | ||
*/ | ||
function gutenberg_wp_admin_bar_edit_site_menu( $wp_admin_bar ) { | ||
// Don't show if a block theme is not activated. | ||
if ( ! wp_is_block_theme() ) { | ||
return; | ||
} | ||
|
||
// Don't show for users who can't edit theme options. | ||
if ( ! current_user_can( 'edit_theme_options' ) ) { | ||
return; | ||
} | ||
|
||
$wp_admin_bar->add_node( | ||
array( | ||
'id' => 'site-editor', | ||
'title' => __( 'Edit Site' ), | ||
'href' => admin_url( 'site-editor.php' ), | ||
) | ||
); | ||
} | ||
|
||
add_action( 'admin_bar_menu', 'gutenberg_wp_admin_bar_edit_site_menu', 41 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.