Plugin Directory

Changeset 2082893 for classic-editor


Ignore:
Timestamp:
05/07/2019 10:47:27 PM (7 years ago)
Author:
azaozz
Message:

Classic Editor: version 1.5

Location:
classic-editor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • classic-editor/trunk/classic-editor.php

    r2055706 r2082893  
    66 * Plugin URI:  https://wordpress.org/plugins/classic-editor/
    77 * 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-beta
     8 * Version:     1.5
    99 * Author:      WordPress Contributors
    1010 * Author URI:  https://github.com/WordPress/classic-editor/
     
    139139        }
    140140
    141         // Gutenberg 5.3
     141        // Gutenberg 5.3+
    142142        remove_action( 'wp_enqueue_scripts', 'gutenberg_register_scripts_and_styles' );
    143143        remove_action( 'admin_enqueue_scripts', 'gutenberg_register_scripts_and_styles' );
     
    871871     */
    872872    public static function add_post_state( $post_states, $post ) {
     873        if ( get_post_status( $post ) === 'trash' ) {
     874            return $post_states;
     875        }
     876
    873877        $editors = self::get_enabled_editors_for_post( $post );
    874878
     
    896900        }
    897901
    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;
    899905
    900906        return $post_states;
  • classic-editor/trunk/readme.txt

    r2055706 r2082893  
    3232= 1.5 =
    3333* 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.
    3536
    3637= 1.4 =
Note: See TracChangeset for help on using the changeset viewer.