WordPress.org

Make WordPress Core

Changeset 30368


Ignore:
Timestamp:
11/17/14 17:07:19 (2 years ago)
Author:
DrewAPicture
Message:

Add a missing @return description for WP_Screen::get_option().

Also declare the default value for the $key parameter.

Props dustyf for the initial patch.
Fixes #30363.

File:
1 edited

Legend:

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

    r30105 r30368  
    649649     * 
    650650     * @param string $option Option ID. 
    651      * @param mixed $key Optional. Specific array key for when the option is an array. 
     651     * @param string $key    Optional. Specific array key for when the option is an array. Default false. 
     652     * @return mixed The option value if set, null otherwise. 
    652653     */ 
    653654    public function get_option( $option, $key = false ) { 
Note: See TracChangeset for help on using the changeset viewer.