mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 13:20:20 +00:00
Add Site Editor and PHP changes from Gutenberg 10.1 - 11.9
- First pass at adding the site editor from the Gutenberg plugin to wp-admin/site-editor.php. - Adds miscellaneous PHP changes from Gutenberg 10.1 - 11.9. Follows [52042]. See #54337. Props youknowriad, aristath, hellofromtonya, gziolo. git-svn-id: https://develop.svn.wordpress.org/trunk@52069 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+13
-1
@@ -31,14 +31,22 @@ module.exports = function( env = { environment: 'production', watch: false, buil
|
||||
'latest-comments',
|
||||
'latest-posts',
|
||||
'loginout',
|
||||
'navigation',
|
||||
'navigation-area',
|
||||
'navigation-link',
|
||||
'navigation-submenu',
|
||||
'page-list',
|
||||
'pattern',
|
||||
'post-author',
|
||||
'post-comments',
|
||||
'post-content',
|
||||
'post-date',
|
||||
'post-excerpt',
|
||||
'post-featured-image',
|
||||
'post-navigation-link',
|
||||
'post-template',
|
||||
'post-terms',
|
||||
'post-title',
|
||||
'post-template',
|
||||
'query',
|
||||
'query-pagination',
|
||||
'query-pagination-next',
|
||||
@@ -54,6 +62,7 @@ module.exports = function( env = { environment: 'production', watch: false, buil
|
||||
'social-link',
|
||||
'tag-cloud',
|
||||
'template-part',
|
||||
'term-description',
|
||||
];
|
||||
const blockFolders = [
|
||||
'audio',
|
||||
@@ -90,6 +99,7 @@ module.exports = function( env = { environment: 'production', watch: false, buil
|
||||
];
|
||||
const blockPHPFiles = {
|
||||
'widgets/src/blocks/legacy-widget/index.php': 'wp-includes/blocks/legacy-widget.php',
|
||||
'widgets/src/blocks/widget-group/index.php': 'wp-includes/blocks/widget-group.php',
|
||||
...dynamicBlockFolders.reduce( ( files, blockName ) => {
|
||||
files[ `block-library/src/${ blockName }/index.php` ] = `wp-includes/blocks/${ blockName }.php`;
|
||||
return files;
|
||||
@@ -97,6 +107,7 @@ module.exports = function( env = { environment: 'production', watch: false, buil
|
||||
};
|
||||
const blockMetadataFiles = {
|
||||
'widgets/src/blocks/legacy-widget/block.json': 'wp-includes/blocks/legacy-widget/block.json',
|
||||
'widgets/src/blocks/widget-group/block.json': 'wp-includes/blocks/widget-group/block.json',
|
||||
...blockFolders.reduce( ( files, blockName ) => {
|
||||
files[ `block-library/src/${ blockName }/block.json` ] = `wp-includes/blocks/${ blockName }/block.json`;
|
||||
return files;
|
||||
@@ -143,6 +154,7 @@ module.exports = function( env = { environment: 'production', watch: false, buil
|
||||
mode,
|
||||
entry: {
|
||||
'file/view': join( baseDir, `node_modules/@wordpress/block-library/build-module/file/view` ),
|
||||
'navigation/view': join( baseDir, `node_modules/@wordpress/block-library/build-module/navigation/view` ),
|
||||
},
|
||||
output: {
|
||||
devtoolNamespace: 'wp',
|
||||
|
||||
Reference in New Issue
Block a user