Update WordPress to 5.2
This commit is contained in:
parent
489b5a5914
commit
e00f87f2f5
599 changed files with 119573 additions and 55990 deletions
|
@ -48,6 +48,7 @@ $preload_paths = array(
|
|||
sprintf( '/wp/v2/types/%s?context=edit', $post_type ),
|
||||
sprintf( '/wp/v2/users/me?post_type=%s&context=edit', $post_type ),
|
||||
array( '/wp/v2/media', 'OPTIONS' ),
|
||||
array( '/wp/v2/blocks', 'OPTIONS' ),
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -116,10 +117,10 @@ wp_add_inline_script(
|
|||
$meta_box_url = admin_url( 'post.php' );
|
||||
$meta_box_url = add_query_arg(
|
||||
array(
|
||||
'post' => $post->ID,
|
||||
'action' => 'edit',
|
||||
'meta-box-loader' => true,
|
||||
'_wpnonce' => wp_create_nonce( 'meta-box-loader' ),
|
||||
'post' => $post->ID,
|
||||
'action' => 'edit',
|
||||
'meta-box-loader' => true,
|
||||
'meta-box-loader-nonce' => wp_create_nonce( 'meta-box-loader' ),
|
||||
),
|
||||
$meta_box_url
|
||||
);
|
||||
|
@ -306,7 +307,7 @@ if ( false !== $color_palette ) {
|
|||
$editor_settings['colors'] = $color_palette;
|
||||
}
|
||||
|
||||
if ( ! empty( $font_sizes ) ) {
|
||||
if ( false !== $font_sizes ) {
|
||||
$editor_settings['fontSizes'] = $font_sizes;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue