Ticket #34280: 34280.diff
File 34280.diff, 2.8 KB (added by , 8 years ago) |
---|
-
src/wp-includes/general-template.php
2445 2445 * @since 2.0.0 2446 2446 */ 2447 2447 function rsd_link() { 2448 echo '<link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('wpurl') . "/xmlrpc.php?rsd\" />\n";2448 echo '<link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . esc_url( site_url( 'xmlrpc.php?rsd', 'rpc' ) ) . '" />' . "\n"; 2449 2449 } 2450 2450 2451 2451 /** -
src/wp-admin/plugin-editor.php
171 171 <?php elseif (isset($_GET['phperror'])) : ?> 172 172 <div id="message" class="updated"><p><?php _e('This plugin has been deactivated because your changes resulted in a <strong>fatal error</strong>.') ?></p> 173 173 <?php 174 if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $file) ) { ?> 175 <iframe style="border:0" width="100%" height="70px" src="<?php bloginfo('wpurl'); ?>/wp-admin/plugins.php?action=error_scrape&plugin=<?php echo esc_attr($file); ?>&_wpnonce=<?php echo esc_attr($_GET['_error_nonce']); ?>"></iframe> 174 if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $file) ) { 175 $iframe_url = add_query_arg( array( 176 'action' => 'error_scrape', 177 'plugin' => urlencode( $file ), 178 '_wpnonce' => urlencode( $_GET['_error_nonce'] ), 179 ), admin_url( 'plugins.php' ) ); 180 ?> 181 <iframe style="border:0" width="100%" height="70px" src="<?php echo esc_url( $iframe_url ); ?>"></iframe> 176 182 <?php } ?> 177 183 </div> 178 184 <?php endif; ?> -
src/wp-admin/plugins.php
462 462 ?> 463 463 <div id="message" class="error"><p><?php echo $errmsg; ?></p> 464 464 <?php 465 if ( !isset( $_GET['main'] ) && !isset($_GET['charsout']) && wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $plugin) ) { ?> 466 <iframe style="border:0" width="100%" height="70px" src="<?php echo 'plugins.php?action=error_scrape&plugin=' . esc_attr($plugin) . '&_wpnonce=' . esc_attr($_GET['_error_nonce']); ?>"></iframe> 465 if ( !isset( $_GET['main'] ) && !isset($_GET['charsout']) && wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $plugin) ) { 466 $iframe_url = add_query_arg( array( 467 'action' => 'error_scrape', 468 'plugin' => urlencode( $file ), 469 '_wpnonce' => urlencode( $_GET['_error_nonce'] ), 470 ), admin_url( 'plugins.php' ) ); 471 ?> 472 <iframe style="border:0" width="100%" height="70px" src="<?php echo esc_url( $iframe_url ); ?>"></iframe> 467 473 <?php 468 474 } 469 475 ?>