Ticket #11558: wp-includes-functions-phpdoc.diff
File wp-includes-functions-phpdoc.diff, 3.1 KB (added by , 15 years ago) |
---|
-
functions.php
3180 3180 return $current_suspend; 3181 3181 } 3182 3182 3183 /** 3184 * {@internal Missing Short Description}} 3185 * 3186 * @since 2.8 3187 * 3188 * @param unknown_type $key 3189 * @param unknown_type $default 3190 * @param unknown_type $use_cache 3191 * @return unknown 3192 */ 3183 3193 function get_site_option( $key, $default = false, $use_cache = true ) { 3184 3194 // Allow plugins to short-circuit site options. 3185 3195 $pre = apply_filters( 'pre_site_option_' . $key, false ); … … 3191 3201 return apply_filters( 'site_option_' . $key, $value ); 3192 3202 } 3193 3203 3194 // expects $key, $value not to be SQL escaped 3204 3205 /** 3206 * {@internal Missing Short Description}} 3207 * 3208 * @since 2.8 3209 * 3210 * @param unknown_type $key not to be SQL escaped 3211 * @param unknown_type $value not to be SQL escaped 3212 * @return unknown 3213 */ 3195 3214 function add_site_option( $key, $value ) { 3196 3215 $value = apply_filters( 'pre_add_site_option_' . $key, $value ); 3197 3216 $result = add_option($key, $value); … … 3199 3218 return $result; 3200 3219 } 3201 3220 3221 /** 3222 * {@internal Missing Short Description}} 3223 * 3224 * @since 2.9 3225 * 3226 * @param unknown_type $key 3227 * @return unknown 3228 */ 3202 3229 function delete_site_option( $key ) { 3203 3230 $result = delete_option($key); 3204 3231 do_action( "delete_site_option_{$key}", $key ); 3205 3232 return $result; 3206 3233 } 3207 3234 3208 // expects $key, $value not to be SQL escaped 3235 /** 3236 * {@internal Missing Short Description}} 3237 * 3238 * @since 2.8 3239 * 3240 * @param unknown_type $key not to be SQL escaped 3241 * @param unknown_type $value not to be SQL escaped 3242 * @return unknown 3243 */ 3209 3244 function update_site_option( $key, $value ) { 3210 3245 $oldvalue = get_site_option( $key ); 3211 3246 $value = apply_filters( 'pre_update_site_option_' . $key, $value, $oldvalue ); … … 3217 3252 /** 3218 3253 * Delete a site transient 3219 3254 * 3220 * @since 2. 8903255 * @since 2.9 3221 3256 * @package WordPress 3222 3257 * @subpackage Transient 3223 3258 * … … 3312 3347 * gmt_offset modification for smart timezone handling 3313 3348 * 3314 3349 * Overrides the gmt_offset option if we have a timezone_string available 3350 * 3351 * @since 2.8 3352 * 3353 * @return unknown 3315 3354 */ 3316 3355 function wp_timezone_override_offset() { 3317 3356 if ( !wp_timezone_supported() ) { … … 3332 3371 3333 3372 /** 3334 3373 * Check for PHP timezone support 3374 * 3375 * @since 2.9 3376 * 3377 * @return unknown 3335 3378 */ 3336 3379 function wp_timezone_supported() { 3337 3380 $support = false; … … 3346 3389 return apply_filters( 'timezone_support', $support ); 3347 3390 } 3348 3391 3392 /** 3393 * {@internal Missing Short Description}} 3394 * 3395 * @since 2.9 3396 * 3397 * @param unknown_type $a 3398 * @param unknown_type $b 3399 * @return unknown 3400 */ 3349 3401 function _wp_timezone_choice_usort_callback( $a, $b ) { 3350 3402 // Don't use translated versions of Etc 3351 3403 if ( 'Etc' === $a['continent'] && 'Etc' === $b['continent'] ) { … … 3387 3439 /** 3388 3440 * Gives a nicely formatted list of timezone strings // temporary! Not in final 3389 3441 * 3390 * @ param $selected_zone string Selected Zone3442 * @since 2.9 3391 3443 * 3444 * @param string $selected_zone Selected Zone 3445 * @return string 3392 3446 */ 3393 3447 function wp_timezone_choice( $selected_zone ) { 3394 3448 static $mo_loaded = false;