Plugin Directory

Changeset 1991397


Ignore:
Timestamp:
12/11/2018 04:41:15 AM (7 years ago)
Author:
themeblvd
Message:

2.3.3

Location:
theme-blvd-layout-builder/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • theme-blvd-layout-builder/trunk/inc/admin/class-tb-layout-builder.php

    r1977831 r1991397  
    42654265    public function is_classic_editor( $screen = null ) {
    42664266
    4267         if (
    4268             version_compare( $GLOBALS['wp_version'], '5', '<' ) ||
    4269             ( function_exists( 'classic_editor_init_actions' ) && 'replace' === get_option( 'classic-editor-replace' ) ) ||
    4270             isset( $_REQUEST['classic-editor'] )
    4271         ) {
    4272 
    4273             if ( ! $screen ) {
    4274 
    4275                 $screen = get_current_screen();
    4276 
    4277             }
    4278 
    4279             if ( 'post' == $screen->base && 'page' == $screen->id ) {
    4280 
    4281                 if ( $this->is_supported_post_type( $screen->post_type ) ) {
    4282 
    4283                     return true;
    4284 
    4285                 }
    4286             }
    4287         }
     4267        if ( ! $screen ) {
     4268            $screen = get_current_screen();
     4269        }
     4270
     4271        if ( 'post' != $screen->base || 'page' != $screen->id ) {
     4272            return false;
     4273        }
     4274
     4275        if ( ! $this->is_supported_post_type( $screen->post_type ) ) {
     4276            return false;
     4277        }
     4278
     4279        if ( version_compare( $GLOBALS['wp_version'], '5', '<' ) ) {
     4280            return true;
     4281        }
     4282
     4283        $is_classic_editor_plugin_installed = class_exists( 'Classic_Editor' );
     4284
     4285        /*
     4286         * It's too difficult to determine accurately if classic editor
     4287         * should show; so I'm just going to plop it in the edit page
     4288         * screen when the plugin is installed.
     4289         */
     4290        if ( $is_classic_editor_plugin_installed ) {
     4291            return true;
     4292        }
     4293
     4294        // if ( ! $is_classic_editor_plugin_installed ) {
     4295        //  return false;
     4296        // }
     4297
     4298        // if ( isset( $_REQUEST['classic-editor'] ) ) {
     4299        //  return true;
     4300        // }
     4301
     4302        // $option = get_option( 'classic-editor-replace' );
     4303
     4304        // if ( $option === 'block' || $option === 'no-replace' ) { // Backwards compat for option.
     4305        //  $editor = 'block';
     4306        // } else {
     4307        //  // empty( $option ) || $option === 'classic' || $option === 'replace'.
     4308        //  $editor = 'classic';
     4309        // }
     4310
     4311        // $allow_users = ( 'allow' === get_option( 'classic-editor-allow-users' ) );
     4312
     4313        // if ( 'classic' === $editor && ! $allow_users ) {
     4314        //  return true;
     4315        // }
     4316
     4317        // if ( $allow_users && 'classic' === get_user_option( 'classic-editor-settings' ) ) {
     4318        //  return true;
     4319        // }
    42884320
    42894321        return false;
  • theme-blvd-layout-builder/trunk/readme.txt

    r1977831 r1991397  
    33Contributors: themeblvd
    44Tags: layouts, custom, homepage, builder, Theme Blvd, themeblvd, Jason Bobich
    5 Stable Tag: 2.3.2
     5Stable Tag: 2.3.3
    66Tested up to: 5.0
    77
     
    4646
    4747== Changelog ==
     48
     49= 2.3.3 - 12/10/2018 =
     50* Fixed: Classic editor's legacy layout builder not displaying because of recent updates to the official Classic Editor plugin.
    4851
    4952= 2.3.2 - 11/20/2018 =
  • theme-blvd-layout-builder/trunk/tb-builder.php

    r1977831 r1991397  
    33Plugin Name: Theme Blvd Layout Builder
    44Description: When using a Theme Blvd theme, this plugin gives you slick interface to build custom layouts.
    5 Version: 2.3.2
     5Version: 2.3.3
    66Author: Theme Blvd
    77Author URI: http://themeblvd.com
     
    99*/
    1010
    11 define( 'TB_BUILDER_PLUGIN_VERSION', '2.3.2' );
     11define( 'TB_BUILDER_PLUGIN_VERSION', '2.3.3' );
    1212define( 'TB_BUILDER_PLUGIN_DIR', dirname( __FILE__ ) );
    1313define( 'TB_BUILDER_PLUGIN_URI', plugins_url( '' , __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.