1798 | | add_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) ); |
1799 | | No newline at end of file |
| 1798 | add_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) ); |
| 1799 | |
| 1800 | |
| 1801 | /** |
| 1802 | * Convert a screen string to a screen object |
| 1803 | * |
| 1804 | * @since 3.0.0 |
| 1805 | * |
| 1806 | * @param string $hook_name The hook name (also known as the hook suffix) used to determine the screen. |
| 1807 | * @return WP_Screen Screen object. |
| 1808 | */ |
| 1809 | function convert_to_screen( $hook_name ) { |
| 1810 | if ( ! is_admin() ) |
| 1811 | _doing_it_wrong( "Do not include wp-admin/includes/template.php directly. You're giving the core developers a heart attack." ); |
| 1812 | return (object) array( 'id' => $hook_name, 'base' => $hook_name ); |
| 1813 | } |
| 1814 | return WP_Screen::get( $hook_name ); |
| 1815 | } |
| 1816 | No newline at end of file |