Changeset 11342
- Timestamp:
- 05/15/2009 05:49:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r11340 r11342 2358 2358 $defaults = array( 'response' => 500 ); 2359 2359 $r = wp_parse_args($args, $defaults); 2360 2361 $have_gettext = function_exists('__'); 2360 2362 2361 2363 if ( function_exists( 'is_wp_error' ) && is_wp_error( $message ) ) { … … 2380 2382 $message = "<p>$message</p>"; 2381 2383 } 2382 2384 2385 if ( isset( $r['back_link'] ) && $r['back_link'] ) { 2386 $back_text = $have_gettext? __('« Back') : '« Back'; 2387 $message .= "\n<p><a href='javascript:history.back()'>$back_text</p>"; 2388 } 2389 2383 2390 if ( defined( 'WP_SITEURL' ) && '' != WP_SITEURL ) 2384 2391 $admin_dir = WP_SITEURL . '/wp-admin/'; … … 2396 2403 header( 'Content-Type: text/html; charset=utf-8' ); 2397 2404 } 2398 2405 2399 2406 if ( empty($title) ) { 2400 if ( function_exists( '__' ) ) 2401 $title = __( 'WordPress › Error' ); 2402 else 2403 $title = 'WordPress › Error'; 2407 $title = $have_gettext? __('WordPress › Error') : 'WordPress › Error'; 2404 2408 } 2405 2409
Note: See TracChangeset
for help on using the changeset viewer.