Skip to content

Commit

Permalink
Coding Standards: Rename $thisEnclosure variable in `wp_xmlrpc_serv…
Browse files Browse the repository at this point in the history
…er` 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
  • Loading branch information
SergeyBiryukov committed Jan 22, 2025
1 parent 8209135 commit 003163f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wp-includes/class-wp-xmlrpc-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -5623,8 +5623,8 @@ public function mw_newPost( $args ) {
}

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

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

Expand Down Expand Up @@ -6019,8 +6019,8 @@ public function mw_editPost( $args ) {
}

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

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

Expand Down

0 comments on commit 003163f

Please sign in to comment.