Changeset 11380 for trunk/wp-includes/functions.php
- Timestamp:
- 05/18/2009 03:11:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r11370 r11380 380 380 $protected = array( 'alloptions', 'notoptions' ); 381 381 if ( in_array( $option, $protected ) ) 382 die( sprintf( __( '%s is a protected WP option and may not be modified' ), wp_specialchars( $option ) ) );382 die( sprintf( __( '%s is a protected WP option and may not be modified' ), esc_html( $option ) ) ); 383 383 } 384 384 … … 1594 1594 $hook = 'do_feed_' . $feed; 1595 1595 if ( !has_action($hook) ) { 1596 $message = sprintf( __( 'ERROR: %s is not a valid feed template' ), wp_specialchars($feed));1596 $message = sprintf( __( 'ERROR: %s is not a valid feed template' ), esc_html($feed)); 1597 1597 wp_die($message); 1598 1598 } … … 1719 1719 function wp_nonce_url( $actionurl, $action = -1 ) { 1720 1720 $actionurl = str_replace( '&', '&', $actionurl ); 1721 return wp_specialchars( add_query_arg( '_wpnonce', wp_create_nonce( $action ), $actionurl ) );1721 return esc_html( add_query_arg( '_wpnonce', wp_create_nonce( $action ), $actionurl ) ); 1722 1722 } 1723 1723 … … 2309 2309 $object = call_user_func( $lookup, $object ); 2310 2310 } 2311 return sprintf( $trans[$verb][$noun][0], wp_specialchars($object) );2311 return sprintf( $trans[$verb][$noun][0], esc_html($object) ); 2312 2312 } else { 2313 2313 return $trans[$verb][$noun][0]; … … 2335 2335 function wp_nonce_ays( $action ) { 2336 2336 $title = __( 'WordPress Failure Notice' ); 2337 $html = wp_specialchars( wp_explain_nonce( $action ) );2337 $html = esc_html( wp_explain_nonce( $action ) ); 2338 2338 if ( wp_get_referer() ) 2339 2339 $html .= "</p><p><a href='" . clean_url( remove_query_arg( 'updated', wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>";
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)