src/wp-includes/class-wp-comment-query.php 1 location
|
@@ 1144-1154 (lines=11) @@
|
| 1141 |
|
* @param string $order The 'order' query variable. |
| 1142 |
|
* @return string The sanitized 'order' query variable. |
| 1143 |
|
*/ |
| 1144 |
|
protected function parse_order( $order ) { |
| 1145 |
|
if ( ! is_string( $order ) || empty( $order ) ) { |
| 1146 |
|
return 'DESC'; |
| 1147 |
|
} |
| 1148 |
|
|
| 1149 |
|
if ( 'ASC' === strtoupper( $order ) ) { |
| 1150 |
|
return 'ASC'; |
| 1151 |
|
} else { |
| 1152 |
|
return 'DESC'; |
| 1153 |
|
} |
| 1154 |
|
} |
| 1155 |
|
} |
| 1156 |
|
|
src/wp-includes/class-wp-network-query.php 1 location
|
@@ 548-558 (lines=11) @@
|
| 545 |
|
* @param string $order The 'order' query variable. |
| 546 |
|
* @return string The sanitized 'order' query variable. |
| 547 |
|
*/ |
| 548 |
|
protected function parse_order( $order ) { |
| 549 |
|
if ( ! is_string( $order ) || empty( $order ) ) { |
| 550 |
|
return 'ASC'; |
| 551 |
|
} |
| 552 |
|
|
| 553 |
|
if ( 'ASC' === strtoupper( $order ) ) { |
| 554 |
|
return 'ASC'; |
| 555 |
|
} else { |
| 556 |
|
return 'DESC'; |
| 557 |
|
} |
| 558 |
|
} |
| 559 |
|
} |
| 560 |
|
|
src/wp-includes/class-wp-query.php 1 location
|
@@ 1596-1606 (lines=11) @@
|
| 1593 |
|
* @param string $order The 'order' query variable. |
| 1594 |
|
* @return string The sanitized 'order' query variable. |
| 1595 |
|
*/ |
| 1596 |
|
protected function parse_order( $order ) { |
| 1597 |
|
if ( ! is_string( $order ) || empty( $order ) ) { |
| 1598 |
|
return 'DESC'; |
| 1599 |
|
} |
| 1600 |
|
|
| 1601 |
|
if ( 'ASC' === strtoupper( $order ) ) { |
| 1602 |
|
return 'ASC'; |
| 1603 |
|
} else { |
| 1604 |
|
return 'DESC'; |
| 1605 |
|
} |
| 1606 |
|
} |
| 1607 |
|
|
| 1608 |
|
/** |
| 1609 |
|
* Sets the 404 property and saves whether query is feed. |
src/wp-includes/class-wp-site-query.php 1 location
|
@@ 700-710 (lines=11) @@
|
| 697 |
|
* @param string $order The 'order' query variable. |
| 698 |
|
* @return string The sanitized 'order' query variable. |
| 699 |
|
*/ |
| 700 |
|
protected function parse_order( $order ) { |
| 701 |
|
if ( ! is_string( $order ) || empty( $order ) ) { |
| 702 |
|
return 'ASC'; |
| 703 |
|
} |
| 704 |
|
|
| 705 |
|
if ( 'ASC' === strtoupper( $order ) ) { |
| 706 |
|
return 'ASC'; |
| 707 |
|
} else { |
| 708 |
|
return 'DESC'; |
| 709 |
|
} |
| 710 |
|
} |
| 711 |
|
} |
| 712 |
|
|
src/wp-includes/class-wp-term-query.php 1 location
|
@@ 947-957 (lines=11) @@
|
| 944 |
|
* @param string $order The 'order' query variable. |
| 945 |
|
* @return string The sanitized 'order' query variable. |
| 946 |
|
*/ |
| 947 |
|
protected function parse_order( $order ) { |
| 948 |
|
if ( ! is_string( $order ) || empty( $order ) ) { |
| 949 |
|
return 'DESC'; |
| 950 |
|
} |
| 951 |
|
|
| 952 |
|
if ( 'ASC' === strtoupper( $order ) ) { |
| 953 |
|
return 'ASC'; |
| 954 |
|
} else { |
| 955 |
|
return 'DESC'; |
| 956 |
|
} |
| 957 |
|
} |
| 958 |
|
|
| 959 |
|
/** |
| 960 |
|
* Used internally to generate a SQL string related to the 'search' parameter. |
src/wp-includes/class-wp-user-query.php 1 location
|
@@ 790-800 (lines=11) @@
|
| 787 |
|
* @param string $order The 'order' query variable. |
| 788 |
|
* @return string The sanitized 'order' query variable. |
| 789 |
|
*/ |
| 790 |
|
protected function parse_order( $order ) { |
| 791 |
|
if ( ! is_string( $order ) || empty( $order ) ) { |
| 792 |
|
return 'DESC'; |
| 793 |
|
} |
| 794 |
|
|
| 795 |
|
if ( 'ASC' === strtoupper( $order ) ) { |
| 796 |
|
return 'ASC'; |
| 797 |
|
} else { |
| 798 |
|
return 'DESC'; |
| 799 |
|
} |
| 800 |
|
} |
| 801 |
|
|
| 802 |
|
/** |
| 803 |
|
* Make private properties readable for backward compatibility. |