wp/wp-admin/plugins.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
   151 				$plugins = (array) wp_unslash( $_POST['checked'] );
   151 				$plugins = (array) wp_unslash( $_POST['checked'] );
   152 			} else {
   152 			} else {
   153 				$plugins = array();
   153 				$plugins = array();
   154 			}
   154 			}
   155 
   155 
       
   156 			// Used in the HTML title tag.
   156 			$title       = __( 'Update Plugins' );
   157 			$title       = __( 'Update Plugins' );
   157 			$parent_file = 'plugins.php';
   158 			$parent_file = 'plugins.php';
   158 
   159 
   159 			wp_enqueue_script( 'updates' );
   160 			wp_enqueue_script( 'updates' );
   160 			require_once ABSPATH . 'wp-admin/admin-header.php';
   161 			require_once ABSPATH . 'wp-admin/admin-header.php';
   557 		'title'   => __( 'Troubleshooting' ),
   558 		'title'   => __( 'Troubleshooting' ),
   558 		'content' =>
   559 		'content' =>
   559 				'<p>' . __( 'Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin&#8217;s code will get in the way of another plugin, causing compatibility issues. If your site starts doing strange things, this may be the problem. Try deactivating all your plugins and re-activating them in various combinations until you isolate which one(s) caused the issue.' ) . '</p>' .
   560 				'<p>' . __( 'Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin&#8217;s code will get in the way of another plugin, causing compatibility issues. If your site starts doing strange things, this may be the problem. Try deactivating all your plugins and re-activating them in various combinations until you isolate which one(s) caused the issue.' ) . '</p>' .
   560 				'<p>' . sprintf(
   561 				'<p>' . sprintf(
   561 					/* translators: %s: WP_PLUGIN_DIR constant value. */
   562 					/* translators: %s: WP_PLUGIN_DIR constant value. */
   562 					__( 'If something goes wrong with a plugin and you can&#8217;t use WordPress, delete or rename that file in the %s directory and it will be automatically deactivated.' ),
   563 					__( 'If something goes wrong with a plugin and you cannot use WordPress, delete or rename that file in the %s directory and it will be automatically deactivated.' ),
   563 					'<code>' . WP_PLUGIN_DIR . '</code>'
   564 					'<code>' . WP_PLUGIN_DIR . '</code>'
   564 				) . '</p>',
   565 				) . '</p>',
   565 	)
   566 	)
   566 );
   567 );
   567 
   568 
   595 		'heading_pagination' => __( 'Plugins list navigation' ),
   596 		'heading_pagination' => __( 'Plugins list navigation' ),
   596 		'heading_list'       => __( 'Plugins list' ),
   597 		'heading_list'       => __( 'Plugins list' ),
   597 	)
   598 	)
   598 );
   599 );
   599 
   600 
       
   601 // Used in the HTML title tag.
   600 $title       = __( 'Plugins' );
   602 $title       = __( 'Plugins' );
   601 $parent_file = 'plugins.php';
   603 $parent_file = 'plugins.php';
   602 
   604 
   603 require_once ABSPATH . 'wp-admin/admin-header.php';
   605 require_once ABSPATH . 'wp-admin/admin-header.php';
   604 
   606 
   608 		echo '<div id="message" class="error"><p>';
   610 		echo '<div id="message" class="error"><p>';
   609 		printf(
   611 		printf(
   610 			/* translators: 1: Plugin file, 2: Error message. */
   612 			/* translators: 1: Plugin file, 2: Error message. */
   611 			__( 'The plugin %1$s has been deactivated due to an error: %2$s' ),
   613 			__( 'The plugin %1$s has been deactivated due to an error: %2$s' ),
   612 			'<code>' . esc_html( $plugin_file ) . '</code>',
   614 			'<code>' . esc_html( $plugin_file ) . '</code>',
   613 			$error->get_error_message()
   615 			esc_html( $error->get_error_message() )
   614 		);
   616 		);
   615 		echo '</p></div>';
   617 		echo '</p></div>';
   616 	}
   618 	}
   617 }
   619 }
   618 
   620 
   672 			<p>
   674 			<p>
   673 				<?php
   675 				<?php
   674 				printf(
   676 				printf(
   675 					/* translators: %s: Error message. */
   677 					/* translators: %s: Error message. */
   676 					__( 'Plugin could not be deleted due to an error: %s' ),
   678 					__( 'Plugin could not be deleted due to an error: %s' ),
   677 					$delete_result->get_error_message()
   679 					esc_html( $delete_result->get_error_message() )
   678 				);
   680 				);
   679 				?>
   681 				?>
   680 			</p>
   682 			</p>
   681 		</div>
   683 		</div>
   682 		<?php else : ?>
   684 		<?php else : ?>