Code Duplication    Length = 4-4 lines in 2 locations

src/wp-includes/deprecated.php 2 locations

@@ 929-932 (lines=4) @@
926
	_deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' );
927
928
	$order = 'ASC';
929
	if ( substr($orderby, 0, 1) == '_' ) {
930
		$order = 'DESC';
931
		$orderby = substr($orderby, 1);
932
	}
933
934
	if ( $category == -1 ) //get_bookmarks uses '' to signify all categories
935
		$category = '';
@@ 1024-1027 (lines=4) @@
1021
1022
	// Handle link category sorting
1023
	$direction = 'ASC';
1024
	if ( '_' == substr($order,0,1) ) {
1025
		$direction = 'DESC';
1026
		$order = substr($order,1);
1027
	}
1028
1029
	if ( !isset($direction) )
1030
		$direction = '';