Make WordPress Core

Changeset 37534


Ignore:
Timestamp:
05/23/2016 04:33:22 PM (8 years ago)
Author:
DrewAPicture
Message:

Docs: Update the return notation for get_current_screen() to note that null can also be returned if the screen has not been defined.

Props screamingdev.
Fixes #36382.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/screen.php

    r37488 r37534  
    201201 * @global WP_Screen $current_screen
    202202 *
    203  * @return WP_Screen Current screen object
     203 * @return WP_Screen|null Current screen object or null when screen not defined.
    204204 */
    205205function get_current_screen() {
Note: See TracChangeset for help on using the changeset viewer.