wp/wp-admin/plugins.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
   160 			require_once ABSPATH . 'wp-admin/admin-header.php';
   160 			require_once ABSPATH . 'wp-admin/admin-header.php';
   161 
   161 
   162 			echo '<div class="wrap">';
   162 			echo '<div class="wrap">';
   163 			echo '<h1>' . esc_html( $title ) . '</h1>';
   163 			echo '<h1>' . esc_html( $title ) . '</h1>';
   164 
   164 
   165 			$url = self_admin_url( 'update.php?action=update-selected&amp;plugins=' . urlencode( join( ',', $plugins ) ) );
   165 			$url = self_admin_url( 'update.php?action=update-selected&amp;plugins=' . urlencode( implode( ',', $plugins ) ) );
   166 			$url = wp_nonce_url( $url, 'bulk-update-plugins' );
   166 			$url = wp_nonce_url( $url, 'bulk-update-plugins' );
   167 
   167 
   168 			echo "<iframe src='$url' style='width: 100%; height:100%; min-height:850px;'></iframe>";
   168 			echo "<iframe src='$url' style='width: 100%; height:100%; min-height:850px;'></iframe>";
   169 			echo '</div>';
   169 			echo '</div>';
   170 			require_once ABSPATH . 'wp-admin/admin-footer.php';
   170 			require_once ABSPATH . 'wp-admin/admin-footer.php';
   639 
   639 
   640 	?>
   640 	?>
   641 	<div id="message" class="error"><p><?php echo $errmsg; ?></p>
   641 	<div id="message" class="error"><p><?php echo $errmsg; ?></p>
   642 	<?php
   642 	<?php
   643 
   643 
   644 	if ( ! isset( $_GET['main'] ) && ! isset( $_GET['charsout'] ) && wp_verify_nonce( $_GET['_error_nonce'], 'plugin-activation-error_' . $plugin ) ) {
   644 	if ( ! isset( $_GET['main'] ) && ! isset( $_GET['charsout'] )
       
   645 		&& isset( $_GET['_error_nonce'] ) && wp_verify_nonce( $_GET['_error_nonce'], 'plugin-activation-error_' . $plugin )
       
   646 	) {
   645 		$iframe_url = add_query_arg(
   647 		$iframe_url = add_query_arg(
   646 			array(
   648 			array(
   647 				'action'   => 'error_scrape',
   649 				'action'   => 'error_scrape',
   648 				'plugin'   => urlencode( $plugin ),
   650 				'plugin'   => urlencode( $plugin ),
   649 				'_wpnonce' => urlencode( $_GET['_error_nonce'] ),
   651 				'_wpnonce' => urlencode( $_GET['_error_nonce'] ),
   725 	<a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'plugin' ); ?></a>
   727 	<a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'plugin' ); ?></a>
   726 	<?php
   728 	<?php
   727 }
   729 }
   728 
   730 
   729 if ( strlen( $s ) ) {
   731 if ( strlen( $s ) ) {
   730 	/* translators: %s: Search query. */
   732 	echo '<span class="subtitle">';
   731 	printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( urldecode( $s ) ) );
   733 	printf(
       
   734 		/* translators: %s: Search query. */
       
   735 		__( 'Search results for: %s' ),
       
   736 		'<strong>' . esc_html( urldecode( $s ) ) . '</strong>'
       
   737 	);
       
   738 	echo '</span>';
   732 }
   739 }
   733 ?>
   740 ?>
   734 
   741 
   735 <hr class="wp-header-end">
   742 <hr class="wp-header-end">
   736 
   743