Skip to content

Commit 003163f

Browse files
Coding Standards: Rename $thisEnclosure variable in wp_xmlrpc_server methods.
This resolves a WPCS warning: {{{ Variable "$thisEnclosure" is not in valid snake_case format, try "$this_enclosure" }}} Follow-up to [16824], [19848]. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59680 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8209135 commit 003163f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wp-includes/class-wp-xmlrpc-server.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5623,8 +5623,8 @@ public function mw_newPost( $args ) {
56235623
}
56245624

56255625
// Handle enclosures.
5626-
$thisEnclosure = isset( $content_struct['enclosure'] ) ? $content_struct['enclosure'] : null;
5627-
$this->add_enclosure_if_new( $post_id, $thisEnclosure );
5626+
$enclosure = isset( $content_struct['enclosure'] ) ? $content_struct['enclosure'] : null;
5627+
$this->add_enclosure_if_new( $post_id, $enclosure );
56285628

56295629
$this->attach_uploads( $post_id, $post_content );
56305630

@@ -6019,8 +6019,8 @@ public function mw_editPost( $args ) {
60196019
}
60206020

60216021
// Handle enclosures.
6022-
$thisEnclosure = isset( $content_struct['enclosure'] ) ? $content_struct['enclosure'] : null;
6023-
$this->add_enclosure_if_new( $post_id, $thisEnclosure );
6022+
$enclosure = isset( $content_struct['enclosure'] ) ? $content_struct['enclosure'] : null;
6023+
$this->add_enclosure_if_new( $post_id, $enclosure );
60246024

60256025
$this->attach_uploads( $ID, $post_content );
60266026

0 commit comments

Comments
 (0)