wp-includes/class-wp-network-query.php 1 location
|
@@ 549-559 (lines=11) @@
|
546 |
|
* @param string $order The 'order' query variable. |
547 |
|
* @return string The sanitized 'order' query variable. |
548 |
|
*/ |
549 |
|
protected function parse_order( $order ) { |
550 |
|
if ( ! is_string( $order ) || empty( $order ) ) { |
551 |
|
return 'ASC'; |
552 |
|
} |
553 |
|
|
554 |
|
if ( 'ASC' === strtoupper( $order ) ) { |
555 |
|
return 'ASC'; |
556 |
|
} else { |
557 |
|
return 'DESC'; |
558 |
|
} |
559 |
|
} |
560 |
|
} |
561 |
|
|
wp-includes/class-wp-site-query.php 1 location
|
@@ 675-685 (lines=11) @@
|
672 |
|
* @param string $order The 'order' query variable. |
673 |
|
* @return string The sanitized 'order' query variable. |
674 |
|
*/ |
675 |
|
protected function parse_order( $order ) { |
676 |
|
if ( ! is_string( $order ) || empty( $order ) ) { |
677 |
|
return 'ASC'; |
678 |
|
} |
679 |
|
|
680 |
|
if ( 'ASC' === strtoupper( $order ) ) { |
681 |
|
return 'ASC'; |
682 |
|
} else { |
683 |
|
return 'DESC'; |
684 |
|
} |
685 |
|
} |
686 |
|
} |
687 |
|
|
wp-includes/class-wp-term-query.php 1 location
|
@@ 882-892 (lines=11) @@
|
879 |
|
* @param string $order The 'order' query variable. |
880 |
|
* @return string The sanitized 'order' query variable. |
881 |
|
*/ |
882 |
|
protected function parse_order( $order ) { |
883 |
|
if ( ! is_string( $order ) || empty( $order ) ) { |
884 |
|
return 'DESC'; |
885 |
|
} |
886 |
|
|
887 |
|
if ( 'ASC' === strtoupper( $order ) ) { |
888 |
|
return 'ASC'; |
889 |
|
} else { |
890 |
|
return 'DESC'; |
891 |
|
} |
892 |
|
} |
893 |
|
|
894 |
|
/** |
895 |
|
* Used internally to generate a SQL string related to the 'search' parameter. |
wp-includes/class-wp-user-query.php 1 location
|
@@ 720-730 (lines=11) @@
|
717 |
|
* @param string $order The 'order' query variable. |
718 |
|
* @return string The sanitized 'order' query variable. |
719 |
|
*/ |
720 |
|
protected function parse_order( $order ) { |
721 |
|
if ( ! is_string( $order ) || empty( $order ) ) { |
722 |
|
return 'DESC'; |
723 |
|
} |
724 |
|
|
725 |
|
if ( 'ASC' === strtoupper( $order ) ) { |
726 |
|
return 'ASC'; |
727 |
|
} else { |
728 |
|
return 'DESC'; |
729 |
|
} |
730 |
|
} |
731 |
|
|
732 |
|
/** |
733 |
|
* Make private properties readable for backward compatibility. |
wp-includes/class-wp-comment-query.php 1 location
|
@@ 1152-1162 (lines=11) @@
|
1149 |
|
* @param string $order The 'order' query variable. |
1150 |
|
* @return string The sanitized 'order' query variable. |
1151 |
|
*/ |
1152 |
|
protected function parse_order( $order ) { |
1153 |
|
if ( ! is_string( $order ) || empty( $order ) ) { |
1154 |
|
return 'DESC'; |
1155 |
|
} |
1156 |
|
|
1157 |
|
if ( 'ASC' === strtoupper( $order ) ) { |
1158 |
|
return 'ASC'; |
1159 |
|
} else { |
1160 |
|
return 'DESC'; |
1161 |
|
} |
1162 |
|
} |
1163 |
|
} |
1164 |
|
|
wp-includes/query.php 1 location
|
@@ 2416-2426 (lines=11) @@
|
2413 |
|
* @param string $order The 'order' query variable. |
2414 |
|
* @return string The sanitized 'order' query variable. |
2415 |
|
*/ |
2416 |
|
protected function parse_order( $order ) { |
2417 |
|
if ( ! is_string( $order ) || empty( $order ) ) { |
2418 |
|
return 'DESC'; |
2419 |
|
} |
2420 |
|
|
2421 |
|
if ( 'ASC' === strtoupper( $order ) ) { |
2422 |
|
return 'ASC'; |
2423 |
|
} else { |
2424 |
|
return 'DESC'; |
2425 |
|
} |
2426 |
|
} |
2427 |
|
|
2428 |
|
/** |
2429 |
|
* Sets the 404 property and saves whether query is feed. |