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:
@@ -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'] );
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user