Version Description
Download this release
Release Info
Developer | gutenbergplugin |
Plugin | Gutenberg |
Version | 13.7.3 |
Comparing to | |
See all releases |
Code changes from version 13.7.2 to 13.7.3
- changelog.txt +19 -2
- gutenberg.php +3 -3
- lib/README.md +5 -4
- lib/compat/plugin/edit-site-routes-backwards-compat.php +44 -0
- lib/load.php +3 -0
- readme.txt +1 -1
changelog.txt
CHANGED
@@ -1,11 +1,28 @@
|
|
1 |
== Changelog ==
|
2 |
|
3 |
-
= 13.7.
|
4 |
|
|
|
|
|
5 |
## Changelog
|
6 |
|
7 |
-
###
|
|
|
|
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
- Layout: Add not .alignfull rule from root CSS PR. ([42614](https://github.com/WordPress/gutenberg/pull/42614))
|
10 |
|
11 |
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 13.7.3 =
|
4 |
|
5 |
+
|
6 |
+
|
7 |
## Changelog
|
8 |
|
9 |
+
### Various
|
10 |
+
|
11 |
+
- Redirect old `theme_page` Site Editor routes to the new `site-editor.php` page. ([42643](https://github.com/WordPress/gutenberg/pull/42643))
|
12 |
|
13 |
+
## Contributors
|
14 |
+
|
15 |
+
The following contributors merged PRs in this release:
|
16 |
+
|
17 |
+
@fullofcaffeine
|
18 |
+
|
19 |
+
|
20 |
+
= 13.7.2 =
|
21 |
+
|
22 |
+
## Changelog
|
23 |
+
|
24 |
+
### Bug Fixes
|
25 |
+
|
26 |
- Layout: Add not .alignfull rule from root CSS PR. ([42614](https://github.com/WordPress/gutenberg/pull/42614))
|
27 |
|
28 |
|
gutenberg.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Printing since 1440. This is the development plugin for the new block editor in core.
|
6 |
* Requires at least: 5.9
|
7 |
* Requires PHP: 5.6
|
8 |
-
* Version: 13.7.
|
9 |
* Author: Gutenberg Team
|
10 |
* Text Domain: gutenberg
|
11 |
*
|
@@ -13,8 +13,8 @@
|
|
13 |
*/
|
14 |
|
15 |
### BEGIN AUTO-GENERATED DEFINES
|
16 |
-
define( 'GUTENBERG_VERSION', '13.7.
|
17 |
-
define( 'GUTENBERG_GIT_COMMIT', '
|
18 |
### END AUTO-GENERATED DEFINES
|
19 |
|
20 |
gutenberg_pre_init();
|
5 |
* Description: Printing since 1440. This is the development plugin for the new block editor in core.
|
6 |
* Requires at least: 5.9
|
7 |
* Requires PHP: 5.6
|
8 |
+
* Version: 13.7.3
|
9 |
* Author: Gutenberg Team
|
10 |
* Text Domain: gutenberg
|
11 |
*
|
13 |
*/
|
14 |
|
15 |
### BEGIN AUTO-GENERATED DEFINES
|
16 |
+
define( 'GUTENBERG_VERSION', '13.7.3' );
|
17 |
+
define( 'GUTENBERG_GIT_COMMIT', '810adff74d3158eabbd65f4568bbde9e8d56b582' );
|
18 |
### END AUTO-GENERATED DEFINES
|
19 |
|
20 |
gutenberg_pre_init();
|
lib/README.md
CHANGED
@@ -18,12 +18,13 @@ structure for its PHP code:
|
|
18 |
Core in the future X.Y release, or that were previously merged to Core in the
|
19 |
X.Y release and remain in the plugin for backwards compatibility when running
|
20 |
the plugin on older versions of WordPress.
|
|
|
21 |
|
22 |
## Best practices
|
23 |
|
24 |
### Prefer the `wp` prefix
|
25 |
|
26 |
-
For features that may be merged to Core, it's best to use a `wp_` prefix for functions or a `WP_` prefix for classes.
|
27 |
|
28 |
This applies to both experimental and stable features.
|
29 |
|
@@ -86,7 +87,7 @@ When writing new functions and classes, it's good practice to use `! function_ex
|
|
86 |
|
87 |
If Core has defined a symbol once and then Gutenberg defines it a second time, fatal errors will occur.
|
88 |
|
89 |
-
Wrapping functions and classes avoids such errors if the feature is merged to Core.
|
90 |
|
91 |
#### Good
|
92 |
|
@@ -122,7 +123,7 @@ Furthermore, a quick codebase search will also help you know if your new method
|
|
122 |
|
123 |
### Note how your feature should look when merged to Core
|
124 |
|
125 |
-
Developers should write a brief note about how their feature should be merged to Core, for example, which Core file or function should be patched.
|
126 |
|
127 |
Notes can be included in the doc comment.
|
128 |
|
@@ -133,7 +134,7 @@ This helps future developers know what to do when merging Gutenberg features int
|
|
133 |
```php
|
134 |
/**
|
135 |
* Returns a navigation object for the given slug.
|
136 |
-
*
|
137 |
* Should live in `wp-includes/navigation.php` when merged to Core.
|
138 |
*
|
139 |
* @param string $slug
|
18 |
Core in the future X.Y release, or that were previously merged to Core in the
|
19 |
X.Y release and remain in the plugin for backwards compatibility when running
|
20 |
the plugin on older versions of WordPress.
|
21 |
+
- `lib/compat/plugin` - Features for backwards compatibility for the plugin consumers. These files don't need to be merged to Core and should have a timeline for when they should be removed from the plugin.
|
22 |
|
23 |
## Best practices
|
24 |
|
25 |
### Prefer the `wp` prefix
|
26 |
|
27 |
+
For features that may be merged to Core, it's best to use a `wp_` prefix for functions or a `WP_` prefix for classes.
|
28 |
|
29 |
This applies to both experimental and stable features.
|
30 |
|
87 |
|
88 |
If Core has defined a symbol once and then Gutenberg defines it a second time, fatal errors will occur.
|
89 |
|
90 |
+
Wrapping functions and classes avoids such errors if the feature is merged to Core.
|
91 |
|
92 |
#### Good
|
93 |
|
123 |
|
124 |
### Note how your feature should look when merged to Core
|
125 |
|
126 |
+
Developers should write a brief note about how their feature should be merged to Core, for example, which Core file or function should be patched.
|
127 |
|
128 |
Notes can be included in the doc comment.
|
129 |
|
134 |
```php
|
135 |
/**
|
136 |
* Returns a navigation object for the given slug.
|
137 |
+
*
|
138 |
* Should live in `wp-includes/navigation.php` when merged to Core.
|
139 |
*
|
140 |
* @param string $slug
|
lib/compat/plugin/edit-site-routes-backwards-compat.php
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Backwards compatibility handling for routes used by the plugin consumers.
|
4 |
+
* This doesn't need to be back ported to core and will be removed after WP 6.1,
|
5 |
+
* to ensure that the plugin consumers have enough time to migrate to the core's
|
6 |
+
* route (`site-editor.php`).
|
7 |
+
*
|
8 |
+
* Allows the `theme.php` route and redirects the following routes:
|
9 |
+
* - `themes.php?page=gutenberg-edit-site`
|
10 |
+
* - `admin.php?page=gutenberg-edit-site`
|
11 |
+
*
|
12 |
+
* To `site-editor.php`.
|
13 |
+
*
|
14 |
+
* The old routes have been deprecated and removed in Gutenberg 13.7.0, but third-party
|
15 |
+
* consumer code might still be referencing them. In order to not break the Site Editor
|
16 |
+
* flows, we don't fully remove the old routes, but redirect them to the core's one.
|
17 |
+
*
|
18 |
+
* @see https://github.com/WordPress/gutenberg/pull/41306
|
19 |
+
*
|
20 |
+
* @package gutenberg
|
21 |
+
*/
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Allows the old routes. Without this, trying to access the old Site Editor
|
25 |
+
* routes results in a HTTP 403 error.
|
26 |
+
*
|
27 |
+
* Allowing the route is done by adding an wp-admin submenu page that won't be rendered.
|
28 |
+
*/
|
29 |
+
function gutenberg_site_editor_menu() {
|
30 |
+
if ( wp_is_block_theme() ) {
|
31 |
+
add_submenu_page( null, null, null, 'edit_theme_options', 'gutenberg-edit-site', '__return_empty_string' );
|
32 |
+
}
|
33 |
+
}
|
34 |
+
add_action( 'admin_menu', 'gutenberg_site_editor_menu', 9 );
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Does the actual redirect to the new route upon triggering of the `load-appearance_page_gutenberg-edit-site` action.
|
38 |
+
*/
|
39 |
+
function gutenberg_redirect_deprecated_to_new_site_editor_page() {
|
40 |
+
wp_safe_redirect( 'site-editor.php' );
|
41 |
+
exit;
|
42 |
+
}
|
43 |
+
add_action( 'load-appearance_page_gutenberg-edit-site', 'gutenberg_redirect_deprecated_to_new_site_editor_page' );
|
44 |
+
add_action( 'load-admin_page_gutenberg-edit-site', 'gutenberg_redirect_deprecated_to_new_site_editor_page' );
|
lib/load.php
CHANGED
@@ -58,6 +58,9 @@ if ( class_exists( 'WP_REST_Controller' ) ) {
|
|
58 |
|
59 |
require __DIR__ . '/experimental/editor-settings.php';
|
60 |
|
|
|
|
|
|
|
61 |
// WordPress 6.0 compat.
|
62 |
require __DIR__ . '/compat/wordpress-6.0/block-gallery.php';
|
63 |
require __DIR__ . '/compat/wordpress-6.0/block-editor-settings.php';
|
58 |
|
59 |
require __DIR__ . '/experimental/editor-settings.php';
|
60 |
|
61 |
+
// Gutenberg plugin compat.
|
62 |
+
require __DIR__ . '/compat/plugin/edit-site-routes-backwards-compat.php';
|
63 |
+
|
64 |
// WordPress 6.0 compat.
|
65 |
require __DIR__ . '/compat/wordpress-6.0/block-gallery.php';
|
66 |
require __DIR__ . '/compat/wordpress-6.0/block-editor-settings.php';
|
readme.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
=== Gutenberg ===
|
2 |
Contributors: matveb, joen, karmatosed
|
3 |
Tested up to: 6.0
|
4 |
-
Stable tag: 13.7.
|
5 |
License: GPLv2 or later
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
|
1 |
=== Gutenberg ===
|
2 |
Contributors: matveb, joen, karmatosed
|
3 |
Tested up to: 6.0
|
4 |
+
Stable tag: 13.7.2
|
5 |
License: GPLv2 or later
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
|