Ticket #44752: wp_get_archives.patch
File wp_get_archives.patch, 538 bytes (added by , 6 years ago) |
---|
-
wp-includes/general-template.php
diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 33fcfbb..bcddb5e 100644
a b function wp_get_archives( $args = '' ) { 1723 1723 $r['type'] = 'monthly'; 1724 1724 } 1725 1725 1726 if ( ! empty( $r['limit'] ) ) {1726 if ( isset( $r['limit'] ) ) { 1727 1727 $r['limit'] = absint( $r['limit'] ); 1728 $r['limit'] = ' LIMIT ' . $r['limit'];1728 $r['limit'] = $r['limit'] ? ' LIMIT ' . $r['limit'] : ''; 1729 1729 } 1730 1730 1731 1731 $order = strtoupper( $r['order'] );