projects/packages/identity-crisis/src/class-identity-crisis.php 1 location
|
@@ 420-429 (lines=10) @@
|
417 |
|
* |
418 |
|
* @return bool |
419 |
|
*/ |
420 |
|
public function admin_page_has_help_tabs() { |
421 |
|
if ( ! function_exists( 'get_current_screen' ) ) { |
422 |
|
return false; |
423 |
|
} |
424 |
|
|
425 |
|
$current_screen = get_current_screen(); |
426 |
|
$tabs = $current_screen->get_help_tabs(); |
427 |
|
|
428 |
|
return ! empty( $tabs ); |
429 |
|
} |
430 |
|
|
431 |
|
/** |
432 |
|
* Renders the non-admin IDC notice. |
projects/plugins/jetpack/class.jetpack-idc.php 1 location
|
@@ 196-205 (lines=10) @@
|
193 |
|
* |
194 |
|
* @return bool |
195 |
|
*/ |
196 |
|
function admin_page_has_help_tabs() { |
197 |
|
if ( ! function_exists( 'get_current_screen' ) ) { |
198 |
|
return false; |
199 |
|
} |
200 |
|
|
201 |
|
$current_screen = get_current_screen(); |
202 |
|
$tabs = $current_screen->get_help_tabs(); |
203 |
|
|
204 |
|
return ! empty( $tabs ); |
205 |
|
} |
206 |
|
|
207 |
|
function display_non_admin_idc_notice() { |
208 |
|
$classes = 'jp-idc-notice inline is-non-admin notice notice-warning'; |