Skip to content

Commit

Permalink
Merge pull request #949 from graphpaperpress/cm/searchfilterbugfix
Browse files Browse the repository at this point in the history
search filter bug fix
  • Loading branch information
maharzan authored Oct 11, 2023
2 parents 8e041bc + 2f653f2 commit 6813af3
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Donate link: https://graphpaperpress.com/plugins/sell-media/
Tags: photography, photos, sell media, sell photos, sell videos, sell downloads, download, downloads, e-commerce, paypal, stock photos, photo gallery, photo cart
Requires at least: 6.2.1
Tested up to: 6.3.1
Stable tag: 2.5.8.2
Stable tag: 2.5.8.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -221,6 +221,9 @@ Action hooks available:

== Changelog ==

= 2.5.8.3 =
* Fix: Search filter not showing results bug fix

= 2.5.8.2 =
* Fix: PHP 8 Warnings fix

Expand Down
5 changes: 5 additions & 0 deletions inc/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ function sell_media_cart_menu(){
*/
function sell_media_ajax_filter_search( $param = array(), $output_the_value_or_return = true ){

// Check if post is empty.
if( !empty( $_POST ) ) {
$param = $_POST;
}

// Check if parameters are empty.
if( empty( $param ) ){
return false;
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Donate link: https://graphpaperpress.com/plugins/sell-media/
Tags: photography, photos, sell media, sell photos, sell videos, sell downloads, download, downloads, e-commerce, paypal, stock photos, photo gallery, photo cart
Requires at least: 6.2.1
Tested up to: 6.3.1
Stable tag: 2.5.8.2
Stable tag: 2.5.8.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -221,6 +221,9 @@ Action hooks available:

== Changelog ==

= 2.5.8.3 =
* Fix: Search filter not showing results bug fix

= 2.5.8.2 =
* Fix: PHP 8 Warnings fix

Expand Down
10 changes: 5 additions & 5 deletions sell-media.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Sell Media
* Plugin URI: http://graphpaperpress.com/plugins/sell-media/
* Description: A plugin for selling photos, prints and other downloads.
* Version: 2.5.8.2
* Version: 2.5.8.3
* Author: Graph Paper Press
* Author URI: http://graphpaperpress.com
* Author Email: [email protected]
Expand All @@ -24,7 +24,7 @@
* @package SellMedia
* @category Core
* @author Thad Allender
* @version 2.5.8.2
* @version 2.5.8.3
*/

// Exit if accessed directly.
Expand Down Expand Up @@ -155,7 +155,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'sell_media' ), '2.5.8.2' );
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'sell_media' ), '2.5.8.3' );
}

/**
Expand All @@ -167,7 +167,7 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'sell_media' ), '2.5.8.2' );
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'sell_media' ), '2.5.8.3' );
}

/**
Expand All @@ -181,7 +181,7 @@ private function constants() {

// Plugin version.
if ( ! defined( 'SELL_MEDIA_VERSION' ) ) {
define( 'SELL_MEDIA_VERSION', '2.5.8.2' );
define( 'SELL_MEDIA_VERSION', '2.5.8.3' );
}

// Plugin Folder Path.
Expand Down

0 comments on commit 6813af3

Please sign in to comment.