Skip to content

Commit

Permalink
Update Classic Editor plugin from 1.6.4 to 1.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpoke-bot committed Sep 30, 2024
1 parent f851dd6 commit bf55cb8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
27 changes: 26 additions & 1 deletion wp-content/plugins/classic-editor/classic-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Plugin Name: Classic Editor
* Plugin URI: https://wordpress.org/plugins/classic-editor/
* Description: Enables the WordPress classic editor and the old-style Edit Post screen with TinyMCE, Meta Boxes, etc. Supports the older plugins that extend this screen.
* Version: 1.6.4
* Version: 1.6.5
* Author: WordPress Contributors
* Author URI: https://github.com/WordPress/classic-editor/
* License: GPLv2 or later
Expand Down Expand Up @@ -65,6 +65,9 @@ public static function init_actions() {

// Always remove the "Try Gutenberg" dashboard widget. See https://core.trac.wordpress.org/ticket/44635.
remove_action( 'try_gutenberg_panel', 'wp_try_gutenberg_panel' );

// Fix for Safari 18 negative horizontal margin on floats.
add_action( 'admin_print_styles', array( __CLASS__, 'safari_18_temp_fix' ) );

if ( ! $block_editor && ! $gutenberg ) {
return;
Expand Down Expand Up @@ -974,6 +977,28 @@ public static function uninstall() {
delete_option( 'classic-editor-replace' );
delete_option( 'classic-editor-allow-users' );
}

/**
* Temporary fix for Safari 18 negative horizontal margin on floats.
* See: https://core.trac.wordpress.org/ticket/62082 and
* https://bugs.webkit.org/show_bug.cgi?id=280063.
* TODO: Remove when Safari is fixed.
*/
public static function safari_18_temp_fix() {
global $current_screen;

if ( isset( $current_screen->base ) && 'post' === $current_screen->base ) {
$clear = is_rtl() ? 'right' : 'left';

?>
<style id="classic-editor-safari-18-temp-fix">
_::-webkit-full-page-media, _:future, :root #post-body #postbox-container-2 {
clear: <?php echo $clear; ?>;
}
</style>
<?php
}
}
}

add_action( 'plugins_loaded', array( 'Classic_Editor', 'init_actions' ) );
Expand Down
5 changes: 4 additions & 1 deletion wp-content/plugins/classic-editor/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: wordpressdotorg, azaozz, melchoyce, chanthaboune, alexislloyd, pen
Tags: gutenberg, disable, disable gutenberg, editor, classic editor, block editor
Requires at least: 4.9
Tested up to: 6.6
Stable tag: 1.6.4
Stable tag: 1.6.5
Requires PHP: 5.2.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand All @@ -29,6 +29,9 @@ By default, this plugin hides all functionality available in the new block edito

== Changelog ==

= 1.6.5 =
* Added fix for Safari 18 negative horizontal margin on floats.

= 1.6.4 =
* Added support for administrators to choose the default editor for other users.

Expand Down

0 comments on commit bf55cb8

Please sign in to comment.