Changeset 12005
- Timestamp:
- 04/27/2018 10:15:20 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-admin.php
r12004 r12005 535 535 536 536 // BuddyPress Hello 537 if ( get_current_screen()->id === 'dashboard'&& ! empty( $_GET['hello'] ) && $_GET['hello'] === 'buddypress' ) {537 if ( 0 === strpos( get_current_screen()->id, 'dashboard' ) && ! empty( $_GET['hello'] ) && $_GET['hello'] === 'buddypress' ) { 538 538 wp_enqueue_style( 'bp-hello-css' ); 539 539 wp_enqueue_script( 'bp-hello-js' ); … … 550 550 */ 551 551 public function about_screen() { 552 if ( get_current_screen()->id !== 'dashboard'|| empty( $_GET['hello'] ) || $_GET['hello'] !== 'buddypress' ) {552 if ( 0 !== strpos( get_current_screen()->id, 'dashboard' ) || empty( $_GET['hello'] ) || $_GET['hello'] !== 'buddypress' ) { 553 553 return; 554 554 }
Note: See TracChangeset
for help on using the changeset viewer.