Changeset 2082893 for classic-editor
- Timestamp:
- 05/07/2019 10:47:27 PM (7 years ago)
- Location:
- classic-editor/trunk
- Files:
-
- 2 edited
-
classic-editor.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
classic-editor/trunk/classic-editor.php
r2055706 r2082893 6 6 * Plugin URI: https://wordpress.org/plugins/classic-editor/ 7 7 * 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. 8 * Version: 1.5 -beta8 * Version: 1.5 9 9 * Author: WordPress Contributors 10 10 * Author URI: https://github.com/WordPress/classic-editor/ … … 139 139 } 140 140 141 // Gutenberg 5.3 141 // Gutenberg 5.3+ 142 142 remove_action( 'wp_enqueue_scripts', 'gutenberg_register_scripts_and_styles' ); 143 143 remove_action( 'admin_enqueue_scripts', 'gutenberg_register_scripts_and_styles' ); … … 871 871 */ 872 872 public static function add_post_state( $post_states, $post ) { 873 if ( get_post_status( $post ) === 'trash' ) { 874 return $post_states; 875 } 876 873 877 $editors = self::get_enabled_editors_for_post( $post ); 874 878 … … 896 900 } 897 901 898 (array) $post_states[] = $state; 902 // Fix PHP 7+ warnings if another plugin returns unexpected type. 903 $post_states = (array) $post_states; 904 $post_states['classic-editor-plugin'] = $state; 899 905 900 906 return $post_states; -
classic-editor/trunk/readme.txt
r2055706 r2082893 32 32 = 1.5 = 33 33 * Updated for WordPress 5.2 and Gutenberg 5.3. 34 * Enhanced the "open posts in the last editor used to edit them" logic. 34 * Enhanced and fixed the "open posts in the last editor used to edit them" logic. 35 * Fixed adding post state so it can easily be accessed from other plugins. 35 36 36 37 = 1.4 =
Note: See TracChangeset
for help on using the changeset viewer.