Plugin Directory

Changeset 1992783


Ignore:
Timestamp:
12/12/2018 01:25:11 PM (7 years ago)
Author:
themeblvd
Message:

2.3.5

Location:
theme-blvd-layout-builder/tags/2.3.5
Files:
3 edited

Legend:

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

    r1992301 r1992783  
    24812481    public function builder_init() {
    24822482
    2483         if ( $this->is_classic_editor() ) {
    2484 
    2485             add_action( 'save_post', array( $this, 'save_post' ) );
     2483        $screen = get_current_screen();
     2484
     2485        if ( 'post' == $screen->base && 'page' == $screen->id ) {
     2486            if ( $this->is_supported_post_type( $screen->post_type ) ) {
     2487                add_action( 'save_post', array( $this, 'save_post' ) );
     2488            }
     2489        }
     2490
     2491        if ( $this->is_classic_editor( $screen ) ) {
    24862492
    24872493            add_action( 'edit_form_after_title', array( $this, 'builder' ) );
     
    42844290        if ( $is_classic_editor_plugin_installed ) {
    42854291
    4286             $post_id = (int) $_GET['post'];
    4287 
    4288             $allow_users = ( 'allow' === get_option( 'classic-editor-allow-users' ) );
    4289 
    4290             if ( $post_id && $allow_users && ! isset( $_GET['classic-editor__forget'] ) ) {
     4292            $post_id = ! empty( $_GET['post'] ) ? (int) $_GET['post'] : 0;
     4293
     4294            $allow_users_to_switch_editors = ( 'allow' === get_option( 'classic-editor-allow-users' ) );
     4295
     4296            // Is the classic editor "remembering" to use the classic editor?
     4297            if ( $post_id && $allow_users_to_switch_editors && ! isset( $_GET['classic-editor__forget'] ) ) {
    42914298
    42924299                $was_saved_with_classic_editor = ( 'classic-editor' === get_post_meta( $post_id, 'classic-editor-remember', true ) );
     
    42974304            }
    42984305
     4306            // Is the classic editor being explicitly switched to?
    42994307            if ( isset( $_GET['classic-editor'] ) ) {
     4308                return true;
     4309            }
     4310
     4311            $option = get_option( 'classic-editor-replace' );
     4312
     4313            $use_classic_editor = ( empty( $option ) || $option === 'classic' || $option === 'replace' );
     4314
     4315            // Is the user forced to use classic editor and not allowed to switch?
     4316            if ( ! $allow_users_to_switch_editors && $use_classic_editor ) {
    43004317                return true;
    43014318            }
  • theme-blvd-layout-builder/tags/2.3.5/readme.txt

    r1992301 r1992783  
    33Contributors: themeblvd
    44Tags: layouts, custom, homepage, builder, Theme Blvd, themeblvd, Jason Bobich
    5 Stable Tag: 2.3.4
     5Stable Tag: 2.3.5
    66Tested up to: 5.0
    77
     
    4747== Changelog ==
    4848
     49= 2.3.5 - 12/12/2018 =
     50* Fixed: More integration issues with official [Classic Editor](https://wordpress.org/plugins/classic-editor) plugin.
     51
    4952= 2.3.4 - 12/11/2018 =
    50 * Fixed: More stable compatibility with the official [Classic Editor](https://wordpress.org/plugins/classic-editor) plugin; there were some instances when Classic Editor plugin is installed, where saving from the block editor would result in corrupted data in the page's attached custom layout.
     53* Fixed: More integration issues with official [Classic Editor](https://wordpress.org/plugins/classic-editor) plugin.
    5154* Fixed: Occasional upgrade notice PHP warnings.
    5255
     
    293296== Upgrade Notice ==
    294297
    295 = 2.3.4 =
     298= 2.3.5 =
    296299Compatible Themes: Jump Start 2.0+, Denali 1.0+, Gnar 1.0+, Akita 2.1.17+, Alyeska 3.1.17+, Arcadian 2.1.8+, Barely Corporate 4.1.17+, Commodore 3.0.14+, Swagger 2.1.17+
  • theme-blvd-layout-builder/tags/2.3.5/tb-builder.php

    r1992301 r1992783  
    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.4
     5Version: 2.3.5
    66Author: Theme Blvd
    77Author URI: http://themeblvd.com
     
    99*/
    1010
    11 define( 'TB_BUILDER_PLUGIN_VERSION', '2.3.4' );
     11define( 'TB_BUILDER_PLUGIN_VERSION', '2.3.5' );
    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.