Make WordPress Core


Ignore:
Timestamp:
04/15/2021 02:41:38 PM (4 years ago)
Author:
gziolo
Message:

Editor: Update WordPress packages to use with WordPress 5.8

In the response to the discussion during the Dev Chat, I'm doing a first pass to keep WordPress packages up to date in the WordPress 5.8 release cycle.

See https://github.com/WordPress/wordpress-develop/pull/1176 for more details.

Props youknowriad, aristath, andraganescu.
See #52991.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-blocks.php

    r50693 r50761  
    185185$styles = array(
    186186    array(
    187         'css' => file_get_contents(
    188             is_rtl()
    189                 ? ABSPATH . WPINC . '/css/dist/editor/editor-styles-rtl.css'
    190                 : ABSPATH . WPINC . '/css/dist/editor/editor-styles.css'
    191         ),
     187        'css' => 'body { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif }',
    192188    ),
    193189);
    194 
    195 $styles[] = array(
    196     'css' => 'body { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif }',
    197 );
    198 
    199190if ( $editor_styles && current_theme_supports( 'editor-styles' ) ) {
    200191    foreach ( $editor_styles as $style ) {
     
    218209}
    219210
    220 // Default editor styles.
    221 $default_editor_styles = array(
    222     array(
    223         'css' => file_get_contents(
    224             is_rtl()
    225                 ? ABSPATH . WPINC . '/css/dist/editor/editor-styles-rtl.css'
    226                 : ABSPATH . WPINC . '/css/dist/editor/editor-styles.css'
    227         ),
    228     ),
    229 );
    230 
    231211// Image sizes.
    232212
     
    325305    'allowedMimeTypes'                     => get_allowed_mime_types(),
    326306    'styles'                               => $styles,
    327     'defaultEditorStyles'                  => $default_editor_styles,
    328307    'imageSizes'                           => $available_image_sizes,
    329308    'imageDefaultSize'                     => $image_default_size,
Note: See TracChangeset for help on using the changeset viewer.