mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@50761 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -184,18 +184,9 @@ if ( ! $max_upload_size ) {
|
||||
// Editor Styles.
|
||||
$styles = array(
|
||||
array(
|
||||
'css' => file_get_contents(
|
||||
is_rtl()
|
||||
? ABSPATH . WPINC . '/css/dist/editor/editor-styles-rtl.css'
|
||||
: ABSPATH . WPINC . '/css/dist/editor/editor-styles.css'
|
||||
),
|
||||
'css' => 'body { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif }',
|
||||
),
|
||||
);
|
||||
|
||||
$styles[] = array(
|
||||
'css' => 'body { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif }',
|
||||
);
|
||||
|
||||
if ( $editor_styles && current_theme_supports( 'editor-styles' ) ) {
|
||||
foreach ( $editor_styles as $style ) {
|
||||
if ( preg_match( '~^(https?:)?//~', $style ) ) {
|
||||
@@ -217,17 +208,6 @@ if ( $editor_styles && current_theme_supports( 'editor-styles' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
// Default editor styles.
|
||||
$default_editor_styles = array(
|
||||
array(
|
||||
'css' => file_get_contents(
|
||||
is_rtl()
|
||||
? ABSPATH . WPINC . '/css/dist/editor/editor-styles-rtl.css'
|
||||
: ABSPATH . WPINC . '/css/dist/editor/editor-styles.css'
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Image sizes.
|
||||
|
||||
/** This filter is documented in wp-admin/includes/media.php */
|
||||
@@ -324,7 +304,6 @@ $editor_settings = array(
|
||||
'maxUploadFileSize' => $max_upload_size,
|
||||
'allowedMimeTypes' => get_allowed_mime_types(),
|
||||
'styles' => $styles,
|
||||
'defaultEditorStyles' => $default_editor_styles,
|
||||
'imageSizes' => $available_image_sizes,
|
||||
'imageDefaultSize' => $image_default_size,
|
||||
'imageDimensions' => $image_dimensions,
|
||||
|
||||
Reference in New Issue
Block a user