WordPress.org

Make WordPress Core

Ticket #27834: 27834.diff

File 27834.diff, 1.6 KB (added by jjeaton, 6 years ago)
  • src/wp-includes/general-template.php

     
    11881188        if ( '' == $type )
    11891189                $type = 'monthly';
    11901190
     1191        // Don't add LIMIT clause if limit is 0
     1192        if ( 0 === $limit ) {
     1193                $limit = '';
     1194        }
     1195
    11911196        if ( '' != $limit ) {
    11921197                $limit = absint($limit);
    11931198                $limit = ' LIMIT '.$limit;
     
    19761981         *
    19771982         * @since 0.71
    19781983         *
    1979          * @param string $the_weekday 
     1984         * @param string $the_weekday
    19801985         */
    19811986        $the_weekday = apply_filters( 'the_weekday', $the_weekday );
    19821987        echo $the_weekday;
     
    20082013         *
    20092014         * @since 0.71
    20102015         *
    2011          * @param string $the_weekday_date 
     2016         * @param string $the_weekday_date
    20122017         * @param string $before           The HTML to output before the date.
    20132018         * @param string $after            The HTML to output after the date.
    20142019         */
     
    24092414 * It is possible to add query vars to the link by using the 'add_args' argument
    24102415 * and see {@link add_query_arg()} for more information.
    24112416 *
    2412  * The 'before_page_number' and 'after_page_number' arguments allow users to 
     2417 * The 'before_page_number' and 'after_page_number' arguments allow users to
    24132418 * augment the links themselves. Typically this might be to add context to the
    24142419 * numbered links so that screen reader users understand what the links are for.
    2415  * The text strings are added before and after the page number - within the 
     2420 * The text strings are added before and after the page number - within the
    24162421 * anchor tag.
    24172422 *
    24182423 * @since 2.1.0