Timeline Express - Version 1.0.6

Version Description

  • Fixed fatal error thrown on activation for sites running older versions of PHP
Download this release

Release Info

Developer eherman24
Plugin Icon 128x128 Timeline Express
Version 1.0.6
Comparing to
See all releases

Code changes from version 1.0.5 to 1.0.6

classes/class.timeline-express.php CHANGED
@@ -11,8 +11,8 @@ if(!class_exists("timelineExpressBase"))
11
  /**
12
  * Variables
13
  */
14
- public $sessName = 'timeline_express_session';
15
- public $timeline_express_optionVal = false;
16
 
17
  /**
18
  * Construct
@@ -97,11 +97,7 @@ if(!class_exists("timelineExpressBase"))
97
  $this->timeline_express_runUpdateCheck();
98
 
99
  // Move all "advanced" metaboxes above the default editor
100
- add_action('edit_form_after_title', function() {
101
- global $post, $wp_meta_boxes;
102
- do_meta_boxes(get_current_screen(), 'advanced', $post);
103
- unset($wp_meta_boxes[get_post_type($post)]['advanced']);
104
- });
105
 
106
  // initialize the Metabox class
107
  add_action( 'init', array( &$this, 'timeline_express_initialize_cmb_meta_boxes' ) , 9998 );
@@ -134,6 +130,13 @@ if(!class_exists("timelineExpressBase"))
134
 
135
  }
136
 
 
 
 
 
 
 
 
137
  // enqueue metabox for the announcement cpt
138
  public function timeline_express_initialize_cmb_meta_boxes() {
139
  if ( !class_exists( 'timeline_express_MetaBoxes' ) ) {
@@ -956,5 +959,4 @@ if(!class_exists("timelineExpressBase"))
956
  // Author : Evan Herman
957
  // Contact : http://www.Evan-Herman.com/contact/
958
  **************************************/
959
-
960
  ?>
11
  /**
12
  * Variables
13
  */
14
+ public $sessName = 'timeline_express_session';
15
+ public $timeline_express_optionVal = false;
16
 
17
  /**
18
  * Construct
97
  $this->timeline_express_runUpdateCheck();
98
 
99
  // Move all "advanced" metaboxes above the default editor
100
+ add_action('edit_form_after_title', array( &$this , 'timeline_express_rearrange_metaboxes' ) , 999 );
 
 
 
 
101
 
102
  // initialize the Metabox class
103
  add_action( 'init', array( &$this, 'timeline_express_initialize_cmb_meta_boxes' ) , 9998 );
130
 
131
  }
132
 
133
+ // move the metaboxes around on the announcement creation page
134
+ public function timeline_express_rearrange_metaboxes() {
135
+ global $post, $wp_meta_boxes;
136
+ do_meta_boxes(get_current_screen(), 'advanced', $post);
137
+ unset($wp_meta_boxes[get_post_type($post)]['advanced']);
138
+ }
139
+
140
  // enqueue metabox for the announcement cpt
141
  public function timeline_express_initialize_cmb_meta_boxes() {
142
  if ( !class_exists( 'timeline_express_MetaBoxes' ) ) {
959
  // Author : Evan Herman
960
  // Contact : http://www.Evan-Herman.com/contact/
961
  **************************************/
 
962
  ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.evan-herman.com/contact/?contact-reason=I%20want%20to%20
4
  Tags: vertical, timeline, animated, css3, animations, evan, herman, evan herman, easy, time, line, font awesome, font, awesome, announcements, notifications, simple, events, calendar, scroll, triggered, scrolling, animated, fade, in, fade in
5
  Requires at least: 3.9
6
  Tested up to: 4.0
7
- Stable tag: 1.0.5
8
  License: GPLv2 or later
9
 
10
  Timeline express allows you to create a beautiful vertical animated and responsive timeline of posts , without writing a single line of code. Sweet!
@@ -114,6 +114,9 @@ Have an idea for a future release feature? I love hearing about new ideas! You c
114
 
115
  == Changelog ==
116
 
 
 
 
117
  = 1.0.5 =
118
  * Change priority argument on register post type function, which caused conflicts with other custom post types on certain sites
119
 
@@ -135,6 +138,9 @@ Have an idea for a future release feature? I love hearing about new ideas! You c
135
  Chinese language translation now included
136
 
137
  == Upgrade Notice ==
 
 
 
138
  = 1.0.5 =
139
  We have changed the priority parameter on the custom post type register function, which was causing conflicts on certain user sites.
140
 
4
  Tags: vertical, timeline, animated, css3, animations, evan, herman, evan herman, easy, time, line, font awesome, font, awesome, announcements, notifications, simple, events, calendar, scroll, triggered, scrolling, animated, fade, in, fade in
5
  Requires at least: 3.9
6
  Tested up to: 4.0
7
+ Stable tag: 1.0.6
8
  License: GPLv2 or later
9
 
10
  Timeline express allows you to create a beautiful vertical animated and responsive timeline of posts , without writing a single line of code. Sweet!
114
 
115
  == Changelog ==
116
 
117
+ = 1.0.6 =
118
+ * Fixed fatal error thrown on activation for sites running older versions of PHP
119
+
120
  = 1.0.5 =
121
  * Change priority argument on register post type function, which caused conflicts with other custom post types on certain sites
122
 
138
  Chinese language translation now included
139
 
140
  == Upgrade Notice ==
141
+ = 1.0.6 =
142
+ We have fixed a fatal error that was being thrown on activation for site running older versions of PHP.
143
+
144
  = 1.0.5 =
145
  We have changed the priority parameter on the custom post type register function, which was causing conflicts on certain user sites.
146
 
timeline-express.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Timeline Express
5
  Plugin URI: http://www.evan-herman.com
6
  Description: Create a beautiful vertical, CSS3 animated and responsive timeline in minutes flat without writing code.
7
- Version: 1.0.5
8
  Author: Evan Herman
9
  Author URI: http://www.evan-herman.com
10
  License: GPL2
@@ -29,7 +29,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29
 
30
  /** Configuration **/
31
  if(!defined('TIMELINE_EXPRESS_DEBUG')) define('TIMELINE_EXPRESS_DEBUG', false);
32
- if(!defined('TIMELINE_EXPRESS_VERSION_CURRENT')) define('TIMELINE_EXPRESS_VERSION_CURRENT', '1.0.5');
33
  if(!defined('TIMELINE_EXPRESS_REQ_PHP')) define('TIMELINE_EXPRESS_REQ_PHP', '5.0');
34
  if(!defined('TIMELINE_EXPRESS_AUTHOR')) define('TIMELINE_EXPRESS_AUTHOR', 'Evan Herman');
35
  if(!defined('TIMELINE_EXPRESS_SITE')) define('TIMELINE_EXPRESS_SITE', site_url().'/');
4
  Plugin Name: Timeline Express
5
  Plugin URI: http://www.evan-herman.com
6
  Description: Create a beautiful vertical, CSS3 animated and responsive timeline in minutes flat without writing code.
7
+ Version: 1.0.6
8
  Author: Evan Herman
9
  Author URI: http://www.evan-herman.com
10
  License: GPL2
29
 
30
  /** Configuration **/
31
  if(!defined('TIMELINE_EXPRESS_DEBUG')) define('TIMELINE_EXPRESS_DEBUG', false);
32
+ if(!defined('TIMELINE_EXPRESS_VERSION_CURRENT')) define('TIMELINE_EXPRESS_VERSION_CURRENT', '1.0.6');
33
  if(!defined('TIMELINE_EXPRESS_REQ_PHP')) define('TIMELINE_EXPRESS_REQ_PHP', '5.0');
34
  if(!defined('TIMELINE_EXPRESS_AUTHOR')) define('TIMELINE_EXPRESS_AUTHOR', 'Evan Herman');
35
  if(!defined('TIMELINE_EXPRESS_SITE')) define('TIMELINE_EXPRESS_SITE', site_url().'/');