Code Duplication    Length = 6-6 lines in 3 locations

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

@@ 1899-1904 (lines=6) @@
1896
		if ( isset( $filter['offset'] ) )
1897
			$query['offset'] = absint( $filter['offset'] );
1898
1899
		if ( isset( $filter['orderby'] ) ) {
1900
			$query['orderby'] = $filter['orderby'];
1901
1902
			if ( isset( $filter['order'] ) )
1903
				$query['order'] = $filter['order'];
1904
		}
1905
1906
		if ( isset( $filter['s'] ) ) {
1907
			$query['s'] = $filter['s'];
@@ 2304-2309 (lines=6) @@
2301
		if ( isset( $filter['offset'] ) )
2302
			$query['offset'] = absint( $filter['offset'] );
2303
2304
		if ( isset( $filter['orderby'] ) ) {
2305
			$query['orderby'] = $filter['orderby'];
2306
2307
			if ( isset( $filter['order'] ) )
2308
				$query['order'] = $filter['order'];
2309
		}
2310
2311
		if ( isset( $filter['hide_empty'] ) )
2312
			$query['hide_empty'] = $filter['hide_empty'];
@@ 2584-2589 (lines=6) @@
2581
		$query['number'] = ( isset( $filter['number'] ) ) ? absint( $filter['number'] ) : 50;
2582
		$query['offset'] = ( isset( $filter['offset'] ) ) ? absint( $filter['offset'] ) : 0;
2583
2584
		if ( isset( $filter['orderby'] ) ) {
2585
			$query['orderby'] = $filter['orderby'];
2586
2587
			if ( isset( $filter['order'] ) )
2588
				$query['order'] = $filter['order'];
2589
		}
2590
2591
		if ( isset( $filter['role'] ) ) {
2592
			if ( get_role( $filter['role'] ) === null )