wp/wp-admin/plugin-editor.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
--- a/wp/wp-admin/plugin-editor.php	Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-admin/plugin-editor.php	Wed Sep 21 18:19:35 2022 +0200
@@ -195,7 +195,7 @@
 <h2>
 	<?php
 	if ( is_plugin_active( $plugin ) ) {
-		if ( is_writeable( $real_file ) ) {
+		if ( is_writable( $real_file ) ) {
 			/* translators: %s: Plugin file name. */
 			printf( __( 'Editing %s (active)' ), '<strong>' . esc_html( $file ) . '</strong>' );
 		} else {
@@ -203,7 +203,7 @@
 			printf( __( 'Browsing %s (active)' ), '<strong>' . esc_html( $file ) . '</strong>' );
 		}
 	} else {
-		if ( is_writeable( $real_file ) ) {
+		if ( is_writable( $real_file ) ) {
 			/* translators: %s: Plugin file name. */
 			printf( __( 'Editing %s (inactive)' ), '<strong>' . esc_html( $file ) . '</strong>' );
 		} else {
@@ -216,7 +216,7 @@
 </div>
 <div class="alignright">
 	<form action="plugin-editor.php" method="get">
-		<strong><label for="plugin"><?php _e( 'Select plugin to edit:' ); ?> </label></strong>
+		<label for="plugin" id="theme-plugin-editor-selector"><?php _e( 'Select plugin to edit:' ); ?> </label>
 		<select name="plugin" id="plugin">
 		<?php
 		foreach ( $plugins as $plugin_key => $a_plugin ) {
@@ -275,7 +275,7 @@
 		</div>
 	<?php endif; ?>
 
-	<?php if ( is_writeable( $real_file ) ) : ?>
+	<?php if ( is_writable( $real_file ) ) : ?>
 		<div class="editor-notices">
 		<?php if ( in_array( $plugin, (array) get_option( 'active_plugins', array() ), true ) ) { ?>
 			<div class="notice notice-warning inline active-plugin-edit-warning">
@@ -288,7 +288,7 @@
 			<span class="spinner"></span>
 		</p>
 	<?php else : ?>
-		<p><em>
+		<p>
 			<?php
 			printf(
 				/* translators: %s: Documentation URL. */
@@ -296,7 +296,7 @@
 				__( 'https://wordpress.org/support/article/changing-file-permissions/' )
 			);
 			?>
-		</em></p>
+		</p>
 	<?php endif; ?>
 
 	<?php wp_print_file_editor_templates(); ?>