Changeset 18013 for branches/3.1
- Timestamp:
- 05/24/2011 03:29:12 PM (13 years ago)
- Location:
- branches/3.1
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/wp-includes/default-filters.php
r17466 r18013 219 219 add_action( 'login_head', 'wp_print_head_scripts', 9 ); 220 220 add_action( 'login_footer', 'wp_print_footer_scripts' ); 221 add_action( 'login_init', 'send_frame_options_header', 10, 0 ); 221 222 222 223 // Feed Generator Tags … … 250 251 add_action( 'comment_form', 'wp_comment_form_unfiltered_html_nonce' ); 251 252 add_action( 'wp_scheduled_delete', 'wp_scheduled_delete' ); 253 add_action( 'admin_init', 'send_frame_options_header', 10, 0 ); 252 254 253 255 // Navigation menu actions -
branches/3.1/wp-includes/functions.php
r17517 r18013 4483 4483 } 4484 4484 4485 /** 4486 * Send a HTTP header to limit rendering of pages to same origin iframes. 4487 * 4488 * @link https://developer.mozilla.org/en/the_x-frame-options_response_header 4489 * 4490 * @since 3.2.0 4491 * @return none 4492 */ 4493 function send_frame_options_header() { 4494 @header( 'X-Frame-Options: SAMEORIGIN' ); 4495 } 4496 4485 4497 ?> -
branches/3.1/wp-login.php
r17466 r18013 369 369 370 370 // allow plugins to override the default actions, and to add extra actions if they want 371 do_action('login_form_' . $action); 371 do_action( 'login_init' ); 372 do_action( 'login_form_' . $action ); 372 373 373 374 $http_post = ('POST' == $_SERVER['REQUEST_METHOD']);
Note: See TracChangeset
for help on using the changeset viewer.