Code Duplication    Length = 4-4 lines in 3 locations

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

@@ 4622-4625 (lines=4) @@
4619
		// $args[0] = appkey - ignored
4620
		$username = $args[2];
4621
		$password = $args[3];
4622
		if ( isset( $args[4] ) )
4623
			$query = array( 'numberposts' => absint( $args[4] ) );
4624
		else
4625
			$query = array();
4626
4627
		if ( !$user = $this->login($username, $password) )
4628
			return $this->error;
@@ 5727-5730 (lines=4) @@
5724
5725
		$username = $args[1];
5726
		$password = $args[2];
5727
		if ( isset( $args[3] ) )
5728
			$query = array( 'numberposts' => absint( $args[3] ) );
5729
		else
5730
			$query = array();
5731
5732
		if ( !$user = $this->login($username, $password) )
5733
			return $this->error;
@@ 6007-6010 (lines=4) @@
6004
6005
		$username = $args[1];
6006
		$password = $args[2];
6007
		if ( isset( $args[3] ) )
6008
			$query = array( 'numberposts' => absint( $args[3] ) );
6009
		else
6010
			$query = array();
6011
6012
		if ( !$user = $this->login($username, $password) )
6013
			return $this->error;