Skip to content

Commit

Permalink
v2.0.0.31
Browse files Browse the repository at this point in the history
  • Loading branch information
stiofan committed Oct 25, 2018
1 parent 21f83bf commit 4099156
Show file tree
Hide file tree
Showing 5 changed files with 416 additions and 411 deletions.
11 changes: 3 additions & 8 deletions geodirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: GeoDirectory
* Plugin URI: https://wpgeodirectory.com/
* Description: GeoDirectory plugin for WordPress.
* Version: 2.0.0.30
* Version: 2.0.0.31
* Author: AyeCode Ltd
* Author URI: https://wpgeodirectory.com
* Text Domain: geodirectory
Expand Down Expand Up @@ -60,7 +60,7 @@ final class GeoDirectory {
*
* @var string
*/
public $version = '2.0.0.30';
public $version = '2.0.0.31';

/**
* GeoDirectory instance.
Expand Down Expand Up @@ -462,9 +462,4 @@ function GeoDir() {
return GeoDirectory::instance();
}
// Global for backwards compatibility.
$GLOBALS['geodirectory'] = GeoDir();

//add_action('wp_loaded','_my_wp_loaded');
//function _my_wp_loaded(){
// GeoDir_Post_Data::remove_post_revisions(178,get_current_user_id());exit;
//}
$GLOBALS['geodirectory'] = GeoDir();
5 changes: 5 additions & 0 deletions includes/class-geodir-email.php
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,11 @@ public static function send_email_on_post_saved( $post_data, $update = false ) {
}
}

// is post status not set then get the real status
if(!isset( $post_data['post_status'] )){
$post_data['post_status'] = get_post_status($post_ID);
}

if ( isset( $post_data['post_status'] ) && $post_data['post_status'] == 'pending' ) {
// Send email to admin
self::send_admin_pending_post_email( $post );
Expand Down
Binary file modified languages/geodirectory-en_US.mo
Binary file not shown.
Loading

0 comments on commit 4099156

Please sign in to comment.