mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-16 02:24:30 +00:00
Editor: update JavaScript packages
Also update default block categories Props youknowriad, gziolo, aduth. Fixes #50420, #50278. git-svn-id: https://develop.svn.wordpress.org/trunk@48177 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -21,15 +21,10 @@ function render_block_core_shortcode( $attributes, $content ) {
|
||||
* Registers the `core/shortcode` block on server.
|
||||
*/
|
||||
function register_block_core_shortcode() {
|
||||
$path = __DIR__ . '/shortcode/block.json';
|
||||
$metadata = json_decode( file_get_contents( $path ), true );
|
||||
register_block_type(
|
||||
$metadata['name'],
|
||||
array_merge(
|
||||
$metadata,
|
||||
array(
|
||||
'render_callback' => 'render_block_core_shortcode',
|
||||
)
|
||||
register_block_type_from_metadata(
|
||||
__DIR__ . '/shortcode',
|
||||
array(
|
||||
'render_callback' => 'render_block_core_shortcode',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user