Changeset 12949 for trunk/src/bp-activity/bp-activity-cssjs.php
- Timestamp:
- 05/13/2021 05:26:01 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-activity/bp-activity-cssjs.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-cssjs.php
r12401 r12949 23 23 // Special handling for New/Edit screens in wp-admin. 24 24 if ( is_admin() ) { 25 $current_screen = null; 26 if ( function_exists( 'get_current_screen' ) ) { 27 $current_screen = get_current_screen(); 28 } 29 25 30 if ( 26 ! get_current_screen() || 27 ! in_array( get_current_screen()->base, array( 'page', 'post' ) ) || 28 ! post_type_supports( get_current_screen()->post_type, 'editor' ) ) { 31 ! $current_screen || 32 ( isset( $current_screen->is_block_editor ) && $current_screen->is_block_editor ) || 33 ! in_array( $current_screen->base, array( 'page', 'post' ) ) || 34 ! post_type_supports( $current_screen->post_type, 'editor' ) ) { 29 35 return; 30 36 }
Note: See TracChangeset
for help on using the changeset viewer.