Changeset 49108 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 10/08/2020 09:13:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r49095 r49108 764 764 $qv['error'] = '404'; 765 765 } else { 766 $qv['p'] = intval( $qv['p'] );766 $qv['p'] = (int) $qv['p']; 767 767 } 768 768 … … 943 943 } 944 944 945 if ( '' != $qv['paged'] && ( intval( $qv['paged'] )> 1 ) ) {945 if ( '' != $qv['paged'] && ( (int) $qv['paged'] > 1 ) ) { 946 946 $this->is_paged = true; 947 947 } … … 1605 1605 $rand_with_seed = false; 1606 1606 if ( preg_match( '/RAND\(([0-9]+)\)/i', $orderby, $matches ) ) { 1607 $orderby = sprintf( 'RAND(%s)', intval( $matches[1] ));1607 $orderby = sprintf( 'RAND(%s)', (int) $matches[1] ); 1608 1608 $allowed_keys[] = $orderby; 1609 1609 $rand_with_seed = true; … … 2264 2264 if ( is_numeric( $q['comment_count'] ) ) { 2265 2265 $q['comment_count'] = array( 2266 'value' => intval( $q['comment_count'] ),2266 'value' => (int) $q['comment_count'], 2267 2267 ); 2268 2268 }
Note: See TracChangeset
for help on using the changeset viewer.