Skip to content

Commit

Permalink
* Validate revision ID belongs to parent on revision save - FIXED
Browse files Browse the repository at this point in the history
  • Loading branch information
stiofan committed Oct 6, 2023
1 parent 599e750 commit 8b3188b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/class-geodir-post-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ public static function save_post( $post_id, $post, $update ) {


// set post images
$i_post_id = ! empty( $gd_post['revision_ID'] ) ? $gd_post['revision_ID'] : $post_id;
$i_post_id = ! empty( $gd_post['revision_ID'] ) && wp_is_post_revision( absint( $gd_post['revision_ID'] ) ) === $post_id ? absint( $gd_post['revision_ID'] ) : $post_id;
if ( isset( $gd_post['post_images'] ) && ! wp_is_post_revision( absint( $post_id ) ) ) {
$featured_image = self::save_files( $i_post_id, $gd_post['post_images'], 'post_images', $is_dummy );

Expand Down
4 changes: 2 additions & 2 deletions includes/class-geodir-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ public function posts_fields( $fields, $query = array() ) {
* @return string $limits.
*/
public function posts_limits($limits,$query){
echo '###limit###'.$limits;
// echo '###limit###'.$limits;

$limits = " LIMIT 0,10 ";

Expand Down Expand Up @@ -1656,7 +1656,7 @@ public static function get_query_var( $var, $default = '' ) {

return $value;
}

/**
* Prevent split query to work sorting.
*
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ We don't offer free trials, but we have a 30-day money-back guarantee if you are

__WARNING: GDv2 is a significant update over GDv1 and may require manual work, such as adding widgets to sidebars to recreate your current layout. As always, we recommend trying this on a staging site first. [Learn more](https://docs.wpgeodirectory.com/article/260-upgrading-from-gdv1-to-gdv2)__

= GeoDirectory Business Directory Plugin v2.3.26 - TBD =
* Validate revision ID belongs to parent on revision save - FIXED

= GeoDirectory Business Directory Plugin v2.3.25 - 2023-10-05 =
* Dynamic image tag is not working when Flexbox Container is active - FIXED
* Elementor CSS hide conditions is_contains_any, is_not_contains_any added - ADDED
Expand Down

0 comments on commit 8b3188b

Please sign in to comment.