WordPress.org

Make WordPress Core

Ticket #36382: get_current_screen.patch

File get_current_screen.patch, 478 bytes (added by screamingdev, 6 years ago)

Enhanced documentation via doc comments

  • wp-admin/includes/screen.php

    diff --git wp-admin/includes/screen.php wp-admin/includes/screen.php
    index a320f0e..92ace71 100644
    function add_screen_option( $option, $args = array() ) { 
    200200 *
    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() {
    206206        global $current_screen;