diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
index 33fcfbb..e7dedfa 100644
a
|
b
|
function wp_get_archives( $args = '' ) { |
1723 | 1723 | $r['type'] = 'monthly'; |
1724 | 1724 | } |
1725 | 1725 | |
1726 | | if ( ! empty( $r['limit'] ) ) { |
1727 | | $r['limit'] = absint( $r['limit'] ); |
1728 | | $r['limit'] = ' LIMIT ' . $r['limit']; |
1729 | | } |
1730 | | |
| 1726 | $r['limit'] = is_numeric( $r['limit'] ) ? absint( $r['limit'] ) : 0; |
| 1727 | $r['limit'] = ' LIMIT ' . $r['limit'] : ''; |
| 1728 | |
1731 | 1729 | $order = strtoupper( $r['order'] ); |
1732 | 1730 | if ( $order !== 'ASC' ) { |
1733 | 1731 | $order = 'DESC'; |