Plugin Directory

Changeset 1920728


Ignore:
Timestamp:
08/07/2018 03:26:35 AM (8 years ago)
Author:
doddo
Message:

fix empty (sub)expression from regexp error

Location:
gallery-from-regex-matches/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gallery-from-regex-matches/trunk/gallery-from-regex-matches.php

    r1920720 r1920728  
    22Plugin Name: Gallery From Regex Matches
    33Plugin URI: https://wordpress.org/plugins/gallery-from-regex-matches/
    4 Version: 0.6.1
     4Version: 0.6.2
    55License: GPL2
    66Description: Maintain a gallery by including all published images in your library which match a regex (in name, title or description).
     
    108108                ORDER BY c.post_date DESC
    109109                LIMIT %d
    110             ", array($regex, $exclude_regex, $exclude_regex, $limit));
     110            ", array($regex, $exclude_regex, $exclude_regex == '' ? 'x' : $exclude_regex, $limit));
    111111               
    112112            $ids = $wpdb->get_results( $query , ARRAY_N );
  • gallery-from-regex-matches/trunk/readme.txt

    r1920723 r1920728  
    55Requires PHP: 7.0
    66Tested up to: 4.9.8
    7 Stable tag: 0.6.1
     7Stable tag: 0.6.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6464== Changelog ==
    6565
     66
     67= 0.6.2 =
     68* Fix bug with mysql query and empty regexp
     69
    6670= 0.6.1 =
    6771* Added `exclude_regex` shortcode parameter.
Note: See TracChangeset for help on using the changeset viewer.