Changeset 3086763
- Timestamp:
- 05/14/2024 11:47:50 PM (23 months ago)
- Location:
- sell-media
- Files:
-
- 10 edited
- 1 copied
-
tags/2.5.8.5 (copied) (copied from sell-media/trunk)
-
tags/2.5.8.5/gutenberg/blocks/sell-media-search-form/sell-media-search-form.php (modified) (1 diff)
-
tags/2.5.8.5/inc/class-search.php (modified) (1 diff)
-
tags/2.5.8.5/inc/lightbox.php (modified) (1 diff)
-
tags/2.5.8.5/readme.txt (modified) (2 diffs)
-
tags/2.5.8.5/sell-media.php (modified) (5 diffs)
-
trunk/gutenberg/blocks/sell-media-search-form/sell-media-search-form.php (modified) (1 diff)
-
trunk/inc/class-search.php (modified) (1 diff)
-
trunk/inc/lightbox.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/sell-media.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sell-media/tags/2.5.8.5/gutenberg/blocks/sell-media-search-form/sell-media-search-form.php
r2772172 r3086763 287 287 // Exclude negative keywords in search query like "-cow" 288 288 $negative_search_terms = ''; 289 $negative_search_terms = preg_grep( '/ \B-[^\B]+/', $search_terms );289 $negative_search_terms = preg_grep( '/(?:^|[^\-\d])(\d+)/', $search_terms ); 290 290 $negative_search_terms = preg_replace( '/[-]/', '', $negative_search_terms ); 291 291 -
sell-media/tags/2.5.8.5/inc/class-search.php
r2655824 r3086763 130 130 131 131 // 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 ); 147 146 148 147 // Current pagination -
sell-media/tags/2.5.8.5/inc/lightbox.php
r2672639 r3086763 137 137 if ( isset( $items ) ) { 138 138 139 array_walk($items, function( &$value, &$key) {139 array_walk($items, function($value, $key) { 140 140 $value['post_id'] = intval($value['post_id']); 141 141 $value['attachment_id'] = intval($value['attachment_id']); -
sell-media/tags/2.5.8.5/readme.txt
r3026255 r3086763 5 5 Tags: photography, photos, sell media, sell photos, sell videos, sell downloads, download, downloads, e-commerce, paypal, stock photos, photo gallery, photo cart 6 6 Requires at least: 6.2.1 7 Tested up to: 6. 4.28 Stable tag: 2.5.8. 47 Tested up to: 6.5.3 8 Stable tag: 2.5.8.5 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 221 221 222 222 == 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 223 230 224 231 = 2.5.8.3 = -
sell-media/tags/2.5.8.5/sell-media.php
r3026255 r3086763 4 4 * Plugin URI: http://graphpaperpress.com/plugins/sell-media/ 5 5 * Description: A plugin for selling photos, prints and other downloads. 6 * Version: 2.5.8. 46 * Version: 2.5.8.5 7 7 * Author: Graph Paper Press 8 8 * Author URI: http://graphpaperpress.com … … 25 25 * @category Core 26 26 * @author Thad Allender 27 * @version 2.5.8. 427 * @version 2.5.8.5 28 28 */ 29 29 … … 156 156 public function __clone() { 157 157 // 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' ); 159 159 } 160 160 … … 168 168 public function __wakeup() { 169 169 // 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' ); 171 171 } 172 172 … … 182 182 // Plugin version. 183 183 if ( ! defined( 'SELL_MEDIA_VERSION' ) ) { 184 define( 'SELL_MEDIA_VERSION', '2.5.8. 4' );184 define( 'SELL_MEDIA_VERSION', '2.5.8.5' ); 185 185 } 186 186 -
sell-media/trunk/gutenberg/blocks/sell-media-search-form/sell-media-search-form.php
r2772172 r3086763 287 287 // Exclude negative keywords in search query like "-cow" 288 288 $negative_search_terms = ''; 289 $negative_search_terms = preg_grep( '/ \B-[^\B]+/', $search_terms );289 $negative_search_terms = preg_grep( '/(?:^|[^\-\d])(\d+)/', $search_terms ); 290 290 $negative_search_terms = preg_replace( '/[-]/', '', $negative_search_terms ); 291 291 -
sell-media/trunk/inc/class-search.php
r2655824 r3086763 130 130 131 131 // 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 ); 147 146 148 147 // Current pagination -
sell-media/trunk/inc/lightbox.php
r2672639 r3086763 137 137 if ( isset( $items ) ) { 138 138 139 array_walk($items, function( &$value, &$key) {139 array_walk($items, function($value, $key) { 140 140 $value['post_id'] = intval($value['post_id']); 141 141 $value['attachment_id'] = intval($value['attachment_id']); -
sell-media/trunk/readme.txt
r3026255 r3086763 5 5 Tags: photography, photos, sell media, sell photos, sell videos, sell downloads, download, downloads, e-commerce, paypal, stock photos, photo gallery, photo cart 6 6 Requires at least: 6.2.1 7 Tested up to: 6. 4.28 Stable tag: 2.5.8. 47 Tested up to: 6.5.3 8 Stable tag: 2.5.8.5 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 221 221 222 222 == 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 223 230 224 231 = 2.5.8.3 = -
sell-media/trunk/sell-media.php
r3026255 r3086763 4 4 * Plugin URI: http://graphpaperpress.com/plugins/sell-media/ 5 5 * Description: A plugin for selling photos, prints and other downloads. 6 * Version: 2.5.8. 46 * Version: 2.5.8.5 7 7 * Author: Graph Paper Press 8 8 * Author URI: http://graphpaperpress.com … … 25 25 * @category Core 26 26 * @author Thad Allender 27 * @version 2.5.8. 427 * @version 2.5.8.5 28 28 */ 29 29 … … 156 156 public function __clone() { 157 157 // 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' ); 159 159 } 160 160 … … 168 168 public function __wakeup() { 169 169 // 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' ); 171 171 } 172 172 … … 182 182 // Plugin version. 183 183 if ( ! defined( 'SELL_MEDIA_VERSION' ) ) { 184 define( 'SELL_MEDIA_VERSION', '2.5.8. 4' );184 define( 'SELL_MEDIA_VERSION', '2.5.8.5' ); 185 185 } 186 186
Note: See TracChangeset
for help on using the changeset viewer.