• --- quotes-collection-shortcodes.php~   2013-04-11 15:23:58.000000000 -0500
    +++ quotes-collection-shortcodes.php    2013-10-18 10:33:49.036061036 -0500
    @@ -24,7 +24,8 @@
                    'orderby' => 'quote_id',
                    'order' => 'ASC',
                    'paging' => false,
    -               'limit_per_page' => 10
    +               'limit_per_page' => 10,
    +               'char_limit' => 500
            ), $atts ) );
    
            $condition = " WHERE public = 'yes'";
    @@ -58,6 +59,8 @@
                    if($tags_condition) $condition .= " AND ".$tags_condition;
            }
    
    +       if($char_limit && is_numeric($char_limit))
    +               $condition .= " AND CHAR_LENGTH(quote) <= ".$char_limit;
    
            if($orderby == 'id' || !$orderby) $orderby = 'quote_id';

    http://ww.wp.xz.cn/plugins/quotes-collection/

The topic ‘Patch: char_limit for shortcode’ is closed to new replies.