Make WordPress Core

Ticket #45581: #45581.patch

File #45581.patch, 2.1 KB (added by upadalavipul, 7 years ago)
  • src/wp-includes/option.php

     
    11931193 *
    11941194 * @see get_option()
    11951195 *
    1196  * @global wpdb $wpdb
     1196 * @global wpdb $wpdb WordPress database abstraction object.
    11971197 *
    11981198 * @param int      $network_id ID of the network. Can be null to default to the current network ID.
    11991199 * @param string   $option     Name of option to retrieve. Expected to not be SQL-escaped.
     
    13261326 *
    13271327 * @see add_option()
    13281328 *
    1329  * @global wpdb $wpdb
     1329 * @global wpdb $wpdb WordPress database abstraction object.
    13301330 *
    13311331 * @param int    $network_id ID of the network. Can be null to default to the current network ID.
    13321332 * @param string $option     Name of option to add. Expected to not be SQL-escaped.
     
    14481448 *
    14491449 * @see delete_option()
    14501450 *
    1451  * @global wpdb $wpdb
     1451 * @global wpdb $wpdb WordPress database abstraction object.
    14521452 *
    14531453 * @param int    $network_id ID of the network. Can be null to default to the current network ID.
    14541454 * @param string $option     Name of option to remove. Expected to not be SQL-escaped.
     
    15411541 *
    15421542 * @see update_option()
    15431543 *
    1544  * @global wpdb $wpdb
     1544 * @global wpdb $wpdb WordPress database abstraction object.
    15451545 *
    15461546 * @param int      $network_id ID of the network. Can be null to default to the current network ID.
    15471547 * @param string   $option     Name of option. Expected to not be SQL-escaped.
     
    21722172 * @since 4.7.0 `$sanitize_callback` was deprecated. The callback from `register_setting()` is now used instead.
    21732173 *
    21742174 * @global array $new_whitelist_options
     2175 * @global array $wp_registered_settings
    21752176 *
    21762177 * @param string   $option_group      The settings group name used during registration.
    21772178 * @param string   $option_name       The name of the option to unregister.
     
    22442245 *
    22452246 * @since 4.7.0
    22462247 *
     2248 * @global array $wp_registered_settings
     2249 *
    22472250 * @return array List of registered settings, keyed by option name.
    22482251 */
    22492252function get_registered_settings() {