Code Duplication    Length = 2-3 lines in 2 locations

wp-includes/bookmark.php 1 location

@@ 271-273 (lines=3) @@
268
	}
269
270
	$order = strtoupper( $r['order'] );
271
	if ( '' !== $order && ! in_array( $order, array( 'ASC', 'DESC' ) ) ) {
272
		$order = 'ASC';
273
	}
274
275
	$visible = '';
276
	if ( $r['hide_invisible'] ) {

wp-includes/taxonomy.php 1 location

@@ 2036-2037 (lines=2) @@
2033
		$orderby = "ORDER BY $orderby";
2034
2035
	$order = strtoupper( $order );
2036
	if ( '' !== $order && ! in_array( $order, array( 'ASC', 'DESC' ) ) )
2037
		$order = 'ASC';
2038
2039
	$taxonomy_array = $taxonomies;
2040
	$object_id_array = $object_ids;