Plugin Directory

Changeset 3086763


Ignore:
Timestamp:
05/14/2024 11:47:50 PM (23 months ago)
Author:
endortrails
Message:

Update to version 2.5.8.5 from GitHub

Location:
sell-media
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • sell-media/tags/2.5.8.5/gutenberg/blocks/sell-media-search-form/sell-media-search-form.php

    r2772172 r3086763  
    287287                // Exclude negative keywords in search query like "-cow"
    288288                $negative_search_terms = '';
    289                 $negative_search_terms = preg_grep( '/\B-[^\B]+/', $search_terms );
     289                $negative_search_terms = preg_grep( '/(?:^|[^\-\d])(\d+)/', $search_terms );
    290290                $negative_search_terms = preg_replace( '/[-]/', '', $negative_search_terms );
    291291
  • sell-media/tags/2.5.8.5/inc/class-search.php

    r2655824 r3086763  
    130130
    131131            // Find comma-separated search terms and format into an array
    132             $search_term_cleaned = preg_replace( '/\s*,\s*/', ',', $search_term );
    133             $search_terms = str_getcsv( $search_term_cleaned, ',' );
    134 
    135             // Exclude negative keywords in search query like "-cow"
    136             $negative_search_terms = '';
    137             $search_terms = array_filter($search_terms);
    138             if(!empty($search_terms)) {
    139                 $negative_search_terms = preg_replace( '/[-]/', '', $search_terms );
    140             }
    141             // now remove negative search terms from search terms
    142             $search_terms = array_diff( (array)$search_terms, (array)$negative_search_terms );
    143             $search_terms = array_filter( (array)$search_terms );
    144 
    145             // Get the file/mimetype
    146             $mime_type = $this->get_mimetype( $search_file_type );
     132            $search_term_cleaned = preg_replace( '/\s*,\s*/', ',', $search_term );
     133            $search_terms = str_getcsv( $search_term_cleaned, ',' );
     134
     135            // Exclude negative keywords in search query like "-cow"
     136            $negative_search_terms = '';
     137            $negative_search_terms = preg_grep( '/(?:^|[^\-\d])(\d+)/', $search_terms );
     138            $negative_search_terms = preg_replace( '/[-]/', '', $negative_search_terms );
     139
     140            // now remove negative search terms from search terms
     141            $search_terms = array_diff( $search_terms, $negative_search_terms );
     142            $search_terms = array_filter( $search_terms );
     143
     144            // Get the file/mimetype
     145            $mime_type = $this->get_mimetype( $search_file_type );
    147146
    148147            // Current pagination
  • sell-media/tags/2.5.8.5/inc/lightbox.php

    r2672639 r3086763  
    137137    if ( isset( $items ) ) {
    138138
    139         array_walk($items, function(&$value, &$key) {
     139        array_walk($items, function($value, $key) {
    140140            $value['post_id'] = intval($value['post_id']);
    141141            $value['attachment_id'] = intval($value['attachment_id']);
  • sell-media/tags/2.5.8.5/readme.txt

    r3026255 r3086763  
    55Tags: photography, photos, sell media, sell photos, sell videos, sell downloads, download, downloads, e-commerce, paypal, stock photos, photo gallery, photo cart
    66Requires at least: 6.2.1
    7 Tested up to: 6.4.2
    8 Stable tag: 2.5.8.4
     7Tested up to: 6.5.3
     8Stable tag: 2.5.8.5
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    221221
    222222== Changelog ==
     223
     224= 2.5.8.5 =
     225* Fix: Lightbox issue fix
     226* Fix: Comma based search fix
     227
     228= 2.5.8.4 =
     229* Fix: Minor styles fixes
    223230
    224231= 2.5.8.3 =
  • sell-media/tags/2.5.8.5/sell-media.php

    r3026255 r3086763  
    44 * Plugin URI: http://graphpaperpress.com/plugins/sell-media/
    55 * Description: A plugin for selling photos, prints and other downloads.
    6  * Version: 2.5.8.4
     6 * Version: 2.5.8.5
    77 * Author: Graph Paper Press
    88 * Author URI: http://graphpaperpress.com
     
    2525 * @category Core
    2626 * @author Thad Allender
    27  * @version 2.5.8.4
     27 * @version 2.5.8.5
    2828 */
    2929
     
    156156        public function __clone() {
    157157            // Cloning instances of the class is forbidden.
    158             _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'sell_media' ), '2.5.8.4' );
     158            _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'sell_media' ), '2.5.8.5' );
    159159        }
    160160
     
    168168        public function __wakeup() {
    169169            // Unserializing instances of the class is forbidden.
    170             _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'sell_media' ), '2.5.8.4' );
     170            _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'sell_media' ), '2.5.8.5' );
    171171        }
    172172
     
    182182            // Plugin version.
    183183            if ( ! defined( 'SELL_MEDIA_VERSION' ) ) {
    184                 define( 'SELL_MEDIA_VERSION', '2.5.8.4' );
     184                define( 'SELL_MEDIA_VERSION', '2.5.8.5' );
    185185            }
    186186
  • sell-media/trunk/gutenberg/blocks/sell-media-search-form/sell-media-search-form.php

    r2772172 r3086763  
    287287                // Exclude negative keywords in search query like "-cow"
    288288                $negative_search_terms = '';
    289                 $negative_search_terms = preg_grep( '/\B-[^\B]+/', $search_terms );
     289                $negative_search_terms = preg_grep( '/(?:^|[^\-\d])(\d+)/', $search_terms );
    290290                $negative_search_terms = preg_replace( '/[-]/', '', $negative_search_terms );
    291291
  • sell-media/trunk/inc/class-search.php

    r2655824 r3086763  
    130130
    131131            // Find comma-separated search terms and format into an array
    132             $search_term_cleaned = preg_replace( '/\s*,\s*/', ',', $search_term );
    133             $search_terms = str_getcsv( $search_term_cleaned, ',' );
    134 
    135             // Exclude negative keywords in search query like "-cow"
    136             $negative_search_terms = '';
    137             $search_terms = array_filter($search_terms);
    138             if(!empty($search_terms)) {
    139                 $negative_search_terms = preg_replace( '/[-]/', '', $search_terms );
    140             }
    141             // now remove negative search terms from search terms
    142             $search_terms = array_diff( (array)$search_terms, (array)$negative_search_terms );
    143             $search_terms = array_filter( (array)$search_terms );
    144 
    145             // Get the file/mimetype
    146             $mime_type = $this->get_mimetype( $search_file_type );
     132            $search_term_cleaned = preg_replace( '/\s*,\s*/', ',', $search_term );
     133            $search_terms = str_getcsv( $search_term_cleaned, ',' );
     134
     135            // Exclude negative keywords in search query like "-cow"
     136            $negative_search_terms = '';
     137            $negative_search_terms = preg_grep( '/(?:^|[^\-\d])(\d+)/', $search_terms );
     138            $negative_search_terms = preg_replace( '/[-]/', '', $negative_search_terms );
     139
     140            // now remove negative search terms from search terms
     141            $search_terms = array_diff( $search_terms, $negative_search_terms );
     142            $search_terms = array_filter( $search_terms );
     143
     144            // Get the file/mimetype
     145            $mime_type = $this->get_mimetype( $search_file_type );
    147146
    148147            // Current pagination
  • sell-media/trunk/inc/lightbox.php

    r2672639 r3086763  
    137137    if ( isset( $items ) ) {
    138138
    139         array_walk($items, function(&$value, &$key) {
     139        array_walk($items, function($value, $key) {
    140140            $value['post_id'] = intval($value['post_id']);
    141141            $value['attachment_id'] = intval($value['attachment_id']);
  • sell-media/trunk/readme.txt

    r3026255 r3086763  
    55Tags: photography, photos, sell media, sell photos, sell videos, sell downloads, download, downloads, e-commerce, paypal, stock photos, photo gallery, photo cart
    66Requires at least: 6.2.1
    7 Tested up to: 6.4.2
    8 Stable tag: 2.5.8.4
     7Tested up to: 6.5.3
     8Stable tag: 2.5.8.5
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    221221
    222222== Changelog ==
     223
     224= 2.5.8.5 =
     225* Fix: Lightbox issue fix
     226* Fix: Comma based search fix
     227
     228= 2.5.8.4 =
     229* Fix: Minor styles fixes
    223230
    224231= 2.5.8.3 =
  • sell-media/trunk/sell-media.php

    r3026255 r3086763  
    44 * Plugin URI: http://graphpaperpress.com/plugins/sell-media/
    55 * Description: A plugin for selling photos, prints and other downloads.
    6  * Version: 2.5.8.4
     6 * Version: 2.5.8.5
    77 * Author: Graph Paper Press
    88 * Author URI: http://graphpaperpress.com
     
    2525 * @category Core
    2626 * @author Thad Allender
    27  * @version 2.5.8.4
     27 * @version 2.5.8.5
    2828 */
    2929
     
    156156        public function __clone() {
    157157            // Cloning instances of the class is forbidden.
    158             _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'sell_media' ), '2.5.8.4' );
     158            _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'sell_media' ), '2.5.8.5' );
    159159        }
    160160
     
    168168        public function __wakeup() {
    169169            // Unserializing instances of the class is forbidden.
    170             _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'sell_media' ), '2.5.8.4' );
     170            _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'sell_media' ), '2.5.8.5' );
    171171        }
    172172
     
    182182            // Plugin version.
    183183            if ( ! defined( 'SELL_MEDIA_VERSION' ) ) {
    184                 define( 'SELL_MEDIA_VERSION', '2.5.8.4' );
     184                define( 'SELL_MEDIA_VERSION', '2.5.8.5' );
    185185            }
    186186
Note: See TracChangeset for help on using the changeset viewer.