Make WordPress Core

Changeset 28560


Ignore:
Timestamp:
05/23/2014 06:27:10 PM (10 years ago)
Author:
wonderboymusic
Message:

Truly check for ! empty() instead of falsey '' when determining whether to add LIMIT clause to SQL in wp_get_archives().

Props jjeaton for the initial patch.
Fixes #27834.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r28540 r28560  
    11931193    }
    11941194
    1195     if ( '' != $r['limit'] ) {
     1195    if ( ! empty( $r['limit'] ) ) {
    11961196        $r['limit'] = absint( $r['limit'] );
    11971197        $r['limit'] = ' LIMIT ' . $r['limit'];
Note: See TracChangeset for help on using the changeset viewer.