Changeset 1991397
- Timestamp:
- 12/11/2018 04:41:15 AM (7 years ago)
- Location:
- theme-blvd-layout-builder/trunk
- Files:
-
- 3 edited
-
inc/admin/class-tb-layout-builder.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
tb-builder.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
theme-blvd-layout-builder/trunk/inc/admin/class-tb-layout-builder.php
r1977831 r1991397 4265 4265 public function is_classic_editor( $screen = null ) { 4266 4266 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 // } 4288 4320 4289 4321 return false; -
theme-blvd-layout-builder/trunk/readme.txt
r1977831 r1991397 3 3 Contributors: themeblvd 4 4 Tags: layouts, custom, homepage, builder, Theme Blvd, themeblvd, Jason Bobich 5 Stable Tag: 2.3. 25 Stable Tag: 2.3.3 6 6 Tested up to: 5.0 7 7 … … 46 46 47 47 == 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. 48 51 49 52 = 2.3.2 - 11/20/2018 = -
theme-blvd-layout-builder/trunk/tb-builder.php
r1977831 r1991397 3 3 Plugin Name: Theme Blvd Layout Builder 4 4 Description: When using a Theme Blvd theme, this plugin gives you slick interface to build custom layouts. 5 Version: 2.3. 25 Version: 2.3.3 6 6 Author: Theme Blvd 7 7 Author URI: http://themeblvd.com … … 9 9 */ 10 10 11 define( 'TB_BUILDER_PLUGIN_VERSION', '2.3. 2' );11 define( 'TB_BUILDER_PLUGIN_VERSION', '2.3.3' ); 12 12 define( 'TB_BUILDER_PLUGIN_DIR', dirname( __FILE__ ) ); 13 13 define( 'TB_BUILDER_PLUGIN_URI', plugins_url( '' , __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.