Activity Log - Version 2.0.6

Version Description

  • Fixed! Random fatal error (topic)
Download this release

Release Info

Developer KingYes
Plugin Icon 128x128 Activity Log
Version 2.0.6
Comparing to
See all releases

Code changes from version 2.0.5 to 2.0.6

aryo-activity-log.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://wordpress.org/plugins/aryo-activity-log/
5
  Description: Get aware of any activities that are taking place on your dashboard! Imagine it like a black-box for your WordPress site. e.g. post was deleted, plugin was activated, user logged in or logged out - it’s all these for you to see.
6
  Author: Yakir Sitbon, Maor Chasen, Ariel Klikstein
7
  Author URI: http://www.aryodigital.com
8
- Version: 2.0.5
9
  Text Domain: aryo-aal
10
  Domain Path: /languages/
11
  License: GPLv2 or later
5
  Description: Get aware of any activities that are taking place on your dashboard! Imagine it like a black-box for your WordPress site. e.g. post was deleted, plugin was activated, user logged in or logged out - it’s all these for you to see.
6
  Author: Yakir Sitbon, Maor Chasen, Ariel Klikstein
7
  Author URI: http://www.aryodigital.com
8
+ Version: 2.0.6
9
  Text Domain: aryo-aal
10
  Domain Path: /languages/
11
  License: GPLv2 or later
hooks/class-aal-hook-posts.php CHANGED
@@ -2,6 +2,13 @@
2
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
 
4
  class AAL_Hook_Posts extends AAL_Hook_Base {
 
 
 
 
 
 
 
5
 
6
  public function hooks_transition_post_status( $new_status, $old_status, $post ) {
7
  $action = '';
@@ -35,7 +42,7 @@ class AAL_Hook_Posts extends AAL_Hook_Base {
35
  'object_type' => 'Post',
36
  'object_subtype' => $post->post_type,
37
  'object_id' => $post->ID,
38
- 'object_name' => _draft_or_post_title( $post->ID ),
39
  ) );
40
  }
41
 
@@ -57,7 +64,7 @@ class AAL_Hook_Posts extends AAL_Hook_Base {
57
  'object_type' => 'Post',
58
  'object_subtype' => $post->post_type,
59
  'object_id' => $post->ID,
60
- 'object_name' => _draft_or_post_title( $post->ID ),
61
  ) );
62
  }
63
 
2
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
 
4
  class AAL_Hook_Posts extends AAL_Hook_Base {
5
+
6
+ protected function _draft_or_post_title( $post = 0 ) {
7
+ $title = get_the_title( $post );
8
+ if ( empty( $title ) )
9
+ $title = __( '(no title)', 'aryo-aal' );
10
+ return $title;
11
+ }
12
 
13
  public function hooks_transition_post_status( $new_status, $old_status, $post ) {
14
  $action = '';
42
  'object_type' => 'Post',
43
  'object_subtype' => $post->post_type,
44
  'object_id' => $post->ID,
45
+ 'object_name' => $this->_draft_or_post_title( $post->ID ),
46
  ) );
47
  }
48
 
64
  'object_type' => 'Post',
65
  'object_subtype' => $post->post_type,
66
  'object_id' => $post->ID,
67
+ 'object_name' => $this->_draft_or_post_title( $post->ID ),
68
  ) );
69
  }
70
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: KingYes, ariel.k, maor
3
  Tags: access, administration, activity, community, event, monitor, multisite, multi-users, log, logger, login, network, stats, security, tracking, madeinisrael, woocommerce
4
  Requires at least: 3.5
5
  Tested up to: 3.8.1
6
- Stable tag: 2.0.5
7
  License: GPLv2 or later
8
 
9
  Get aware of any activities that are taking place on your dashboard! Imagine it like a black-box for your WordPress site.
@@ -80,6 +80,9 @@ Would you like to like to cotribute to Activity Log? You are more than welcome t
80
 
81
  == Changelog ==
82
 
 
 
 
83
  = 2.0.5 =
84
  * New! Register `aal_init_caps` filter.
85
  * Tweak! Change all methods to non-static.
3
  Tags: access, administration, activity, community, event, monitor, multisite, multi-users, log, logger, login, network, stats, security, tracking, madeinisrael, woocommerce
4
  Requires at least: 3.5
5
  Tested up to: 3.8.1
6
+ Stable tag: 2.0.6
7
  License: GPLv2 or later
8
 
9
  Get aware of any activities that are taking place on your dashboard! Imagine it like a black-box for your WordPress site.
80
 
81
  == Changelog ==
82
 
83
+ = 2.0.6 =
84
+ * Fixed! Random fatal error ([topic](https://github.com/KingYes/wordpress-aryo-activity-log/issues/32))
85
+
86
  = 2.0.5 =
87
  * New! Register `aal_init_caps` filter.
88
  * Tweak! Change all methods to non-static.