Coding Standards: Use more meaningful variable names in Theme Editor.

Per the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions]:

> Don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting.

Follow-up to [41721], [60928].

See #63168.
Built from https://develop.svn.wordpress.org/trunk@60932


git-svn-id: http://core.svn.wordpress.org/trunk@60268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2025-10-14 10:15:30 +00:00
parent 7b5a81698f
commit 6f89fc8d45
2 changed files with 6 additions and 4 deletions

View File

@@ -121,9 +121,11 @@ $edit_error = null;
$posted_content = null;
if ( 'POST' === $_SERVER['REQUEST_METHOD'] ) {
$r = wp_edit_theme_plugin_file( wp_unslash( $_POST ) );
if ( is_wp_error( $r ) ) {
$edit_error = $r;
$edit_result = wp_edit_theme_plugin_file( wp_unslash( $_POST ) );
if ( is_wp_error( $edit_result ) ) {
$edit_error = $edit_result;
if ( check_ajax_referer( 'edit-theme_' . $stylesheet . '_' . $relative_file, 'nonce', false ) && isset( $_POST['newcontent'] ) ) {
$posted_content = wp_unslash( $_POST['newcontent'] );
}

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.9-alpha-60931';
$wp_version = '6.9-alpha-60932';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.