Changeset 11450 for trunk/wp-includes/functions.php
- Timestamp:
- 05/24/2009 11:47:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r11434 r11450 142 142 143 143 $num = number_format( $number, $decimals, $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] ); 144 144 145 145 // let the user translate digits from latin to localized language 146 146 return apply_filters( 'number_format_i18n', $num ); … … 480 480 * first is the new value and the second is the old value. Whatever is 481 481 * returned will be used as the new value. 482 * 482 * 483 483 * After the value has been updated the action named 'update_option_$option_name' 484 484 * will be called. This action receives two parameters the first being the old … … 2036 2036 $ext = !empty($info['extension']) ? $info['extension'] : ''; 2037 2037 $name = basename($filename, ".{$ext}"); 2038 2038 2039 2039 // edge case: if file is named '.ext', treat as an empty name 2040 2040 if( $name === ".$ext" ) … … 2367 2367 $defaults = array( 'response' => 500 ); 2368 2368 $r = wp_parse_args($args, $defaults); 2369 2369 2370 2370 $have_gettext = function_exists('__'); 2371 2371 … … 2391 2391 $message = "<p>$message</p>"; 2392 2392 } 2393 2393 2394 2394 if ( isset( $r['back_link'] ) && $r['back_link'] ) { 2395 2395 $back_text = $have_gettext? __('« Back') : '« Back'; 2396 2396 $message .= "\n<p><a href='javascript:history.back()'>$back_text</p>"; 2397 2397 } 2398 2398 2399 2399 if ( defined( 'WP_SITEURL' ) && '' != WP_SITEURL ) 2400 2400 $admin_dir = WP_SITEURL . '/wp-admin/'; … … 2412 2412 header( 'Content-Type: text/html; charset=utf-8' ); 2413 2413 } 2414 2414 2415 2415 if ( empty($title) ) { 2416 2416 $title = $have_gettext? __('WordPress › Error') : 'WordPress › Error'; … … 2684 2684 */ 2685 2685 function wp_ob_end_flush_all() { 2686 $levels = ob_get_level(); 2687 for ($i=0; $i<$levels; $i++) 2688 ob_end_flush(); 2686 $levels = ob_get_level(); 2687 for ($i=0; $i<$levels; $i++) 2688 ob_end_flush(); 2689 2689 } 2690 2690 … … 3165 3165 return strnatcasecmp($a_continent, $b_continent); 3166 3166 ')); 3167 3167 3168 3168 $structure = ''; 3169 3169 $pad = ' ';
Note: See TracChangeset
for help on using the changeset viewer.