Easing Slider - Version 2.2.0.3

Version Description

  • Fixed compatibility issues with __callStatic and PHP 5.2.
Download this release

Release Info

Developer MatthewRuddy
Plugin Icon 128x128 Easing Slider
Version 2.2.0.3
Comparing to
See all releases

Code changes from version 2.2.0.2 to 2.2.0.3

easing-slider.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Easing Slider
5
  Plugin URI: http://easingslider.com/
6
- Version: 2.2.0.2
7
  Author: Matthew Ruddy
8
  Author URI: http://matthewruddy.com/
9
  Description: Easing Slider is an easy to use slider plugin for WordPress. Simple, lightweight & designed to get the job done, it allows you to get creating sliders without any difficulty.
@@ -53,7 +53,7 @@ class Easing_Slider {
53
  *
54
  * @var string
55
  */
56
- public static $version = '2.2.0.2';
57
 
58
  /**
59
  * Constructor
@@ -135,8 +135,8 @@ class Easing_Slider {
135
  if ( $settings->remove_data ) {
136
 
137
  // Delete all of the sliders
138
- foreach ( self::all() as $slider ) {
139
- self::delete( $slider->ID );
140
  }
141
 
142
  // Delete options
@@ -382,81 +382,5 @@ class Easing_Slider {
382
  }
383
 
384
  }
385
-
386
- /**
387
- * Forwards all set variables to our "ES_Slider" class.
388
- *
389
- * This allows us to use this class as a nicely named alias for "ES_Slider", whilst
390
- * separating our concerns.
391
- *
392
- * @param string $name The variable name
393
- * @param mixed $value The variable value
394
- * @return mixed
395
- */
396
- public function __set( $name, $value ) {
397
-
398
- if ( ! isset( $this->slider ) OR ! $this->slider instanceof ES_Slider ) {
399
- $this->slider = new ES_Slider();
400
- }
401
-
402
- $this->slider->$name = $value;
403
-
404
- }
405
-
406
- /**
407
- * Forwards all get variables to our "ES_Slider" class.
408
- *
409
- * @param string $name The variable name
410
- * @return mixed
411
- */
412
- public function __get( $name ) {
413
-
414
- if ( ! isset( $this->slider ) OR ! $this->slider instanceof ES_Slider ) {
415
- $this->slider = new ES_Slider();
416
- }
417
-
418
- if ( isset( $this->slider->$name ) ) {
419
- return $this->slider->$name;
420
- }
421
-
422
- }
423
-
424
- /**
425
- * Forwards all other method calls to our "ES_Slider" class.
426
- *
427
- * @param string $name The method name
428
- * @param array $arguments The array of method arguments
429
- * @return mixed
430
- */
431
- public function __call( $name, $arguments ) {
432
-
433
- if ( ! isset( $this->slider ) OR ! $this->slider instanceof ES_Slider ) {
434
- $this->slider = new ES_Slider();
435
- }
436
-
437
- // Check if the method exists. If so, execute it.
438
- if ( method_exists( $this->slider, $name ) ) {
439
- return call_user_func_array( array( $this->slider, $name ), $arguments );
440
- }
441
-
442
- }
443
-
444
- /**
445
- * Forwards all other static method calls to our "ES_Slider" class.
446
- *
447
- * @param string $name The method name
448
- * @param array $arguments The array of method arguments
449
- * @return mixed
450
- */
451
- public static function __callStatic( $name, $arguments ) {
452
-
453
- $static = new ES_Slider();
454
-
455
- // Check if the method exists. If so, execute it.
456
- if ( method_exists( $static, $name ) ) {
457
- return call_user_func_array( array( $static, $name ), $arguments );
458
- }
459
-
460
- }
461
 
462
  }
3
  /*
4
  Plugin Name: Easing Slider
5
  Plugin URI: http://easingslider.com/
6
+ Version: 2.2.0.3
7
  Author: Matthew Ruddy
8
  Author URI: http://matthewruddy.com/
9
  Description: Easing Slider is an easy to use slider plugin for WordPress. Simple, lightweight & designed to get the job done, it allows you to get creating sliders without any difficulty.
53
  *
54
  * @var string
55
  */
56
+ public static $version = '2.2.0.3';
57
 
58
  /**
59
  * Constructor
135
  if ( $settings->remove_data ) {
136
 
137
  // Delete all of the sliders
138
+ foreach ( ES_Slider::all() as $slider ) {
139
+ ES_Slider::delete( $slider->ID );
140
  }
141
 
142
  // Delete options
382
  }
383
 
384
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
385
 
386
  }
includes/class-es-customizer-legacy.php CHANGED
@@ -12,6 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) {
12
  *
13
  * Lots of horrible, messy legacy code here that I absolutely hate, but is necessary.
14
  *
 
15
  * @author Matthew Ruddy
16
  */
17
  class ES_Customizer_Legacy {
@@ -20,12 +21,12 @@ class ES_Customizer_Legacy {
20
  * Gets a Easing Slider "Pro" legacy slider.
21
  *
22
  * @param int $legacy_id The legacy slider ID
23
- * @return Easing_Slider|false
24
  */
25
  public function get_pro_slider( $legacy_id ) {
26
 
27
  // Bail if Easing Slider isn't active
28
- if ( ! class_exists( 'Easing_Slider' ) ) {
29
  return false;
30
  }
31
 
@@ -40,7 +41,7 @@ class ES_Customizer_Legacy {
40
  // Loop through each pivot and return the match, if we have find one.
41
  foreach ( $pivots as $pivot ) {
42
  if ( $legacy_id == $pivot->legacy_id ) {
43
- return Easing_Slider::find( $pivot->id );
44
  }
45
  }
46
 
@@ -118,12 +119,12 @@ class ES_Customizer_Legacy {
118
  /**
119
  * Gets the Easing Slider "Lite" legacy slider.
120
  *
121
- * @return Easing_Slider|false
122
  */
123
  public function get_lite_slider() {
124
 
125
  // Bail if Easing Slider isn't active
126
- if ( ! class_exists( 'Easing_Slider' ) ) {
127
  return false;
128
  }
129
 
@@ -131,7 +132,7 @@ class ES_Customizer_Legacy {
131
  $lite_id = get_option( 'easingslider_lite_slider_id' );
132
 
133
  // Get the Easing Slider "Lite" slider
134
- $lite_slider = Easing_Slider::find( $lite_id );
135
 
136
  return $lite_slider;
137
 
12
  *
13
  * Lots of horrible, messy legacy code here that I absolutely hate, but is necessary.
14
  *
15
+ * @uses ES_Slider
16
  * @author Matthew Ruddy
17
  */
18
  class ES_Customizer_Legacy {
21
  * Gets a Easing Slider "Pro" legacy slider.
22
  *
23
  * @param int $legacy_id The legacy slider ID
24
+ * @return ES_Slider|false
25
  */
26
  public function get_pro_slider( $legacy_id ) {
27
 
28
  // Bail if Easing Slider isn't active
29
+ if ( ! class_exists( 'ES_Slider' ) ) {
30
  return false;
31
  }
32
 
41
  // Loop through each pivot and return the match, if we have find one.
42
  foreach ( $pivots as $pivot ) {
43
  if ( $legacy_id == $pivot->legacy_id ) {
44
+ return ES_Slider::find( $pivot->id );
45
  }
46
  }
47
 
119
  /**
120
  * Gets the Easing Slider "Lite" legacy slider.
121
  *
122
+ * @return ES_Slider|false
123
  */
124
  public function get_lite_slider() {
125
 
126
  // Bail if Easing Slider isn't active
127
+ if ( ! class_exists( 'ES_Slider' ) ) {
128
  return false;
129
  }
130
 
132
  $lite_id = get_option( 'easingslider_lite_slider_id' );
133
 
134
  // Get the Easing Slider "Lite" slider
135
+ $lite_slider = ES_Slider::find( $lite_id );
136
 
137
  return $lite_slider;
138
 
includes/class-es-customizer.php CHANGED
@@ -10,6 +10,8 @@ if ( ! defined( 'ABSPATH' ) ) {
10
  /**
11
  * Defines our "Customizer"
12
  *
 
 
13
  * @author Matthew Ruddy
14
  */
15
  class ES_Customizer {
@@ -165,7 +167,7 @@ class ES_Customizer {
165
  if ( isset( $_POST['save'] ) && isset( $_POST['slider_id'] ) ) {
166
 
167
  // Get our slider
168
- $slider = Easing_Slider::find( $_POST['slider_id'] );
169
 
170
  // Set the customizations
171
  $slider->customizations = (object) $this->get_form_fields();
@@ -191,10 +193,10 @@ class ES_Customizer {
191
  $page = $_GET['page'];
192
 
193
  // We need Easing Slider to be loaded by now, so continue if it has.
194
- if ( class_exists( 'Easing_Slider' ) ) {
195
 
196
  // Get all sliders
197
- $sliders = Easing_Slider::all();
198
 
199
  // If we have no sliders, tell the user.
200
  if ( empty( $sliders ) ) {
@@ -204,7 +206,7 @@ class ES_Customizer {
204
 
205
  // Get the specified slider, or pick the first one.
206
  if ( isset( $_GET['edit'] ) ) {
207
- $slider = Easing_Slider::find( $_GET['edit'] );
208
  }
209
  else {
210
  $slider = array_shift( array_values( $sliders ) );
10
  /**
11
  * Defines our "Customizer"
12
  *
13
+ * @uses ES_Slider
14
+ * @uses Easing_Slider
15
  * @author Matthew Ruddy
16
  */
17
  class ES_Customizer {
167
  if ( isset( $_POST['save'] ) && isset( $_POST['slider_id'] ) ) {
168
 
169
  // Get our slider
170
+ $slider = ES_Slider::find( $_POST['slider_id'] );
171
 
172
  // Set the customizations
173
  $slider->customizations = (object) $this->get_form_fields();
193
  $page = $_GET['page'];
194
 
195
  // We need Easing Slider to be loaded by now, so continue if it has.
196
+ if ( class_exists( 'ES_Slider' ) ) {
197
 
198
  // Get all sliders
199
+ $sliders = ES_Slider::all();
200
 
201
  // If we have no sliders, tell the user.
202
  if ( empty( $sliders ) ) {
206
 
207
  // Get the specified slider, or pick the first one.
208
  if ( isset( $_GET['edit'] ) ) {
209
+ $slider = ES_Slider::find( $_GET['edit'] );
210
  }
211
  else {
212
  $slider = array_shift( array_values( $sliders ) );
includes/class-es-editor-pages.php CHANGED
@@ -10,7 +10,9 @@ if ( ! defined( 'ABSPATH' ) ) {
10
  /**
11
  * Defines our admin slider editor pages.
12
  *
 
13
  * @uses ES_Sliders_List_Table
 
14
  * @author Matthew Ruddy
15
  */
16
  class ES_Editor_Pages {
@@ -295,7 +297,7 @@ class ES_Editor_Pages {
295
  }
296
 
297
  // Get our slider
298
- $slider = Easing_Slider::find( $_GET['edit'] );
299
 
300
  // Update attributes
301
  $slider->set( $this->get_form_fields() );
@@ -332,7 +334,7 @@ class ES_Editor_Pages {
332
  }
333
 
334
  // Create a new slider
335
- $slider = Easing_Slider::create();
336
 
337
  // Set attributes
338
  $slider->set( $this->get_form_fields() );
@@ -367,7 +369,7 @@ class ES_Editor_Pages {
367
  if ( isset( $_GET['edit'] ) ) {
368
 
369
  // Get the slider by its ID
370
- $slider = Easing_Slider::find( $_GET['edit'] );
371
 
372
  // Display the editor
373
  require plugin_dir_path( dirname( __FILE__ ) ) . 'partials/edit-slider.php';
@@ -396,7 +398,7 @@ class ES_Editor_Pages {
396
  $page = $_GET['page'];
397
 
398
  // Initiate a new slider
399
- $slider = Easing_Slider::create();
400
 
401
  // Display the view
402
  require plugin_dir_path( dirname( __FILE__ ) ) . 'partials/edit-slider.php';
10
  /**
11
  * Defines our admin slider editor pages.
12
  *
13
+ * @uses ES_Slider
14
  * @uses ES_Sliders_List_Table
15
+ * @uses Easing_Slider
16
  * @author Matthew Ruddy
17
  */
18
  class ES_Editor_Pages {
297
  }
298
 
299
  // Get our slider
300
+ $slider = ES_Slider::find( $_GET['edit'] );
301
 
302
  // Update attributes
303
  $slider->set( $this->get_form_fields() );
334
  }
335
 
336
  // Create a new slider
337
+ $slider = ES_Slider::create();
338
 
339
  // Set attributes
340
  $slider->set( $this->get_form_fields() );
369
  if ( isset( $_GET['edit'] ) ) {
370
 
371
  // Get the slider by its ID
372
+ $slider = ES_Slider::find( $_GET['edit'] );
373
 
374
  // Display the editor
375
  require plugin_dir_path( dirname( __FILE__ ) ) . 'partials/edit-slider.php';
398
  $page = $_GET['page'];
399
 
400
  // Initiate a new slider
401
+ $slider = ES_Slider::create();
402
 
403
  // Display the view
404
  require plugin_dir_path( dirname( __FILE__ ) ) . 'partials/edit-slider.php';
includes/class-es-extensions-page.php CHANGED
@@ -10,6 +10,7 @@ if ( ! defined( 'ABSPATH' ) ) {
10
  /**
11
  * Class for "Extensions" discovery page.
12
  *
 
13
  * @author Matthew Ruddy
14
  */
15
  class ES_Extensions_Page {
10
  /**
11
  * Class for "Extensions" discovery page.
12
  *
13
+ * @uses Easing_Slider
14
  * @author Matthew Ruddy
15
  */
16
  class ES_Extensions_Page {
includes/class-es-legacy.php CHANGED
@@ -34,6 +34,7 @@ if ( ! function_exists( 'riva_slider_pro' ) ) {
34
  *
35
  * Lots of horrible, messy legacy code here that I absolutely hate, but is necessary.
36
  *
 
37
  * @author Matthew Ruddy
38
  */
39
  class ES_Legacy {
@@ -42,7 +43,7 @@ class ES_Legacy {
42
  * Gets a Easing Slider "Pro" legacy slider.
43
  *
44
  * @param int $legacy_id The legacy slider ID
45
- * @return Easing_Slider|false
46
  */
47
  public function get_pro_slider( $legacy_id ) {
48
 
@@ -57,7 +58,7 @@ class ES_Legacy {
57
  // Loop through each pivot and return the match, if we have find one.
58
  foreach ( $pivots as $pivot ) {
59
  if ( $legacy_id == $pivot->legacy_id ) {
60
- return Easing_Slider::find( $pivot->id );
61
  }
62
  }
63
 
@@ -70,7 +71,7 @@ class ES_Legacy {
70
  *
71
  * @param int $legacy_id The legacy slider ID
72
  * @param string $legacy_title The legacy slider title
73
- * @return Easing_Slider
74
  */
75
  public function create_pro_slider( $legacy_id, $legacy_title = null ) {
76
 
@@ -81,7 +82,7 @@ class ES_Legacy {
81
  $pivots = get_option( 'easingslider_pro_slider_pivots' );
82
 
83
  // Create our Easing Slider "Pro" legacy slider
84
- $pro_slider = Easing_Slider::create();
85
  $pro_slider->post_title = easingslider_validate_data( $legacy_title );
86
  $pro_slider->save();
87
 
@@ -359,7 +360,7 @@ class ES_Legacy {
359
  /**
360
  * Gets the Easing Slider "Lite" legacy slider.
361
  *
362
- * @return Easing_Slider|false
363
  */
364
  public function get_lite_slider() {
365
 
@@ -367,7 +368,7 @@ class ES_Legacy {
367
  $lite_id = get_option( 'easingslider_lite_slider_id' );
368
 
369
  // Get the Easing Slider "Lite" slider
370
- $lite_slider = Easing_Slider::find( $lite_id );
371
 
372
  return $lite_slider;
373
 
@@ -376,12 +377,12 @@ class ES_Legacy {
376
  /**
377
  * Creates the Easing Slider "Lite" legacy slider.
378
  *
379
- * @return Easing_Slider
380
  */
381
  public function create_lite_slider() {
382
 
383
  // Create the slider
384
- $lite_slider = Easing_Slider::create();
385
  $lite_slider->post_title = 'Easing Slider "Lite"';
386
  $lite_slider->save();
387
 
34
  *
35
  * Lots of horrible, messy legacy code here that I absolutely hate, but is necessary.
36
  *
37
+ * @uses ES_Slider
38
  * @author Matthew Ruddy
39
  */
40
  class ES_Legacy {
43
  * Gets a Easing Slider "Pro" legacy slider.
44
  *
45
  * @param int $legacy_id The legacy slider ID
46
+ * @return ES_Slider|false
47
  */
48
  public function get_pro_slider( $legacy_id ) {
49
 
58
  // Loop through each pivot and return the match, if we have find one.
59
  foreach ( $pivots as $pivot ) {
60
  if ( $legacy_id == $pivot->legacy_id ) {
61
+ return ES_Slider::find( $pivot->id );
62
  }
63
  }
64
 
71
  *
72
  * @param int $legacy_id The legacy slider ID
73
  * @param string $legacy_title The legacy slider title
74
+ * @return ES_Slider
75
  */
76
  public function create_pro_slider( $legacy_id, $legacy_title = null ) {
77
 
82
  $pivots = get_option( 'easingslider_pro_slider_pivots' );
83
 
84
  // Create our Easing Slider "Pro" legacy slider
85
+ $pro_slider = ES_Slider::create();
86
  $pro_slider->post_title = easingslider_validate_data( $legacy_title );
87
  $pro_slider->save();
88
 
360
  /**
361
  * Gets the Easing Slider "Lite" legacy slider.
362
  *
363
+ * @return ES_Slider|false
364
  */
365
  public function get_lite_slider() {
366
 
368
  $lite_id = get_option( 'easingslider_lite_slider_id' );
369
 
370
  // Get the Easing Slider "Lite" slider
371
+ $lite_slider = ES_Slider::find( $lite_id );
372
 
373
  return $lite_slider;
374
 
377
  /**
378
  * Creates the Easing Slider "Lite" legacy slider.
379
  *
380
+ * @return ES_Slider
381
  */
382
  public function create_lite_slider() {
383
 
384
  // Create the slider
385
+ $lite_slider = ES_Slider::create();
386
  $lite_slider->post_title = 'Easing Slider "Lite"';
387
  $lite_slider->save();
388
 
includes/class-es-migrations.php CHANGED
@@ -12,6 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) {
12
  *
13
  * All of our update procedures can be found here.
14
  *
 
15
  * @author Matthew Ruddy
16
  */
17
  class ES_Migrations {
12
  *
13
  * All of our update procedures can be found here.
14
  *
15
+ * @uses Easing_Slider
16
  * @author Matthew Ruddy
17
  */
18
  class ES_Migrations {
includes/class-es-settings-page.php CHANGED
@@ -10,6 +10,7 @@ if ( ! defined( 'ABSPATH' ) ) {
10
  /**
11
  * Defines our admin settings.
12
  *
 
13
  * @author Matthew Ruddy
14
  */
15
  class ES_Settings_Page {
10
  /**
11
  * Defines our admin settings.
12
  *
13
+ * @uses Easing_Slider
14
  * @author Matthew Ruddy
15
  */
16
  class ES_Settings_Page {
includes/class-es-shortcode.php CHANGED
@@ -10,6 +10,7 @@ if ( ! defined( 'ABSPATH' ) ) {
10
  /**
11
  * Defines our shortcode functionality
12
  *
 
13
  * @author Matthew Ruddy
14
  */
15
  class ES_Shortcode {
@@ -29,7 +30,7 @@ class ES_Shortcode {
29
  }
30
 
31
  // Get all sliders
32
- $sliders = Easing_Slider::all();
33
 
34
  // Display the thickbox
35
  ?>
@@ -140,7 +141,7 @@ class ES_Shortcode {
140
  if ( ! empty( $atts->id ) ) {
141
 
142
  // Find the slider
143
- $slider = Easing_Slider::find( $atts->id );
144
 
145
  // Display error message if no slider has been found
146
  if ( ! $slider ) {
10
  /**
11
  * Defines our shortcode functionality
12
  *
13
+ * @uses ES_Slider
14
  * @author Matthew Ruddy
15
  */
16
  class ES_Shortcode {
30
  }
31
 
32
  // Get all sliders
33
+ $sliders = ES_Slider::all();
34
 
35
  // Display the thickbox
36
  ?>
141
  if ( ! empty( $atts->id ) ) {
142
 
143
  // Find the slider
144
+ $slider = ES_Slider::find( $atts->id );
145
 
146
  // Display error message if no slider has been found
147
  if ( ! $slider ) {
includes/class-es-slider.php CHANGED
@@ -10,6 +10,7 @@ if ( ! defined( 'ABSPATH' ) ) {
10
  /**
11
  * Defines our plugin public facing functionality
12
  *
 
13
  * @author Matthew Ruddy
14
  */
15
  class ES_Slider {
10
  /**
11
  * Defines our plugin public facing functionality
12
  *
13
+ * @uses Easing_Slider
14
  * @author Matthew Ruddy
15
  */
16
  class ES_Slider {
includes/class-es-sliders-list-table.php CHANGED
@@ -17,6 +17,7 @@ if ( ! class_exists( 'WP_List_Table' ) ) {
17
  /**
18
  * Our extension for WP_List_Table for listing sliders
19
  *
 
20
  * @author Matthew Ruddy
21
  */
22
  class ES_Sliders_List_Table extends WP_List_Table {
@@ -149,7 +150,7 @@ class ES_Sliders_List_Table extends WP_List_Table {
149
  $query_args['order'] = ( ! empty( $_REQUEST['order'] ) ) ? $_REQUEST['order'] : 'asc';
150
 
151
  // Query our sliders
152
- $query = Easing_Slider::query( $query_args );
153
 
154
  // Set our pagination arguments
155
  $this->set_pagination_args( array(
@@ -234,7 +235,7 @@ class ES_Sliders_List_Table extends WP_List_Table {
234
  public function process_duplicate_action( $id ) {
235
 
236
  // Get the slider
237
- $slider = Easing_Slider::find( $id );
238
 
239
  // Unset the slider ID
240
  unset( $slider->ID );
@@ -256,7 +257,7 @@ class ES_Sliders_List_Table extends WP_List_Table {
256
  public function process_delete_action( $id ) {
257
 
258
  // Delete the slider
259
- Easing_Slider::delete( $id );
260
 
261
  }
262
 
17
  /**
18
  * Our extension for WP_List_Table for listing sliders
19
  *
20
+ * @uses ES_Slider
21
  * @author Matthew Ruddy
22
  */
23
  class ES_Sliders_List_Table extends WP_List_Table {
150
  $query_args['order'] = ( ! empty( $_REQUEST['order'] ) ) ? $_REQUEST['order'] : 'asc';
151
 
152
  // Query our sliders
153
+ $query = ES_Slider::query( $query_args );
154
 
155
  // Set our pagination arguments
156
  $this->set_pagination_args( array(
235
  public function process_duplicate_action( $id ) {
236
 
237
  // Get the slider
238
+ $slider = ES_Slider::find( $id );
239
 
240
  // Unset the slider ID
241
  unset( $slider->ID );
257
  public function process_delete_action( $id ) {
258
 
259
  // Delete the slider
260
+ ES_Slider::delete( $id );
261
 
262
  }
263
 
includes/class-es-welcome-pages.php CHANGED
@@ -10,6 +10,7 @@ if ( ! defined( 'ABSPATH' ) ) {
10
  /**
11
  * Defines our "Welcome" page functionality
12
  *
 
13
  * @author Matthew Ruddy
14
  */
15
  class ES_Welcome_Pages {
10
  /**
11
  * Defines our "Welcome" page functionality
12
  *
13
+ * @uses Easing_Slider
14
  * @author Matthew Ruddy
15
  */
16
  class ES_Welcome_Pages {
includes/class-es-widget.php CHANGED
@@ -10,6 +10,7 @@ if ( ! defined( 'ABSPATH' ) ) {
10
  /**
11
  * Adds a 'Sliders' widget to the WordPress widgets interface
12
  *
 
13
  * @author Matthew Ruddy
14
  */
15
  class ES_Widget extends WP_Widget {
@@ -96,7 +97,7 @@ class ES_Widget extends WP_Widget {
96
  public function form( $instance ) {
97
 
98
  // Get all of the sliders
99
- $sliders = Easing_Slider::all();
100
 
101
  // Print the settings
102
  ?>
10
  /**
11
  * Adds a 'Sliders' widget to the WordPress widgets interface
12
  *
13
+ * @uses ES_Slider
14
  * @author Matthew Ruddy
15
  */
16
  class ES_Widget extends WP_Widget {
97
  public function form( $instance ) {
98
 
99
  // Get all of the sliders
100
+ $sliders = ES_Slider::all();
101
 
102
  // Print the settings
103
  ?>
includes/helpers.php CHANGED
@@ -10,6 +10,8 @@ if ( ! defined( 'ABSPATH' ) ) {
10
  /**
11
  * Alias for displaying a slider shortcode
12
  *
 
 
13
  * @param int|array $args The slider arguments, or numerical ID.
14
  * @return void
15
  */
@@ -38,6 +40,8 @@ if ( ! function_exists( 'easingslider' ) ) {
38
  /**
39
  * Registers an extension, settings up it's licensing and updater.
40
  *
 
 
41
  * @param string $name The plugin name
42
  * @param string $slug The plugin slug
43
  * @param int $version The plugin version
10
  /**
11
  * Alias for displaying a slider shortcode
12
  *
13
+ * @uses ES_Shortcode
14
+ *
15
  * @param int|array $args The slider arguments, or numerical ID.
16
  * @return void
17
  */
40
  /**
41
  * Registers an extension, settings up it's licensing and updater.
42
  *
43
+ * @uses ES_Update_Manager
44
+ *
45
  * @param string $name The plugin name
46
  * @param string $slug The plugin slug
47
  * @param int $version The plugin version
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: MatthewRuddy
4
  Tags: slideshow, slider, slides, slide, gallery, images, image, responsive, mobile, jquery, javascript, featured, content
5
  Requires at least: 4.0
6
  Tested up to: 4.2
7
- Stable tag: 2.2.0.2
8
 
9
  Easing Slider is an easy to use slider plugin. Simple and lightweight, is makes creating beautiful WordPress sliders a breeze.
10
 
@@ -73,6 +73,9 @@ This is easy. When editing a slider in the "All Sliders" admin area, simply clic
73
 
74
  == Changelog ==
75
 
 
 
 
76
  = 2.2.0.2 =
77
  * Fixed issues with legacy upgrades. Methods should now be prioritized correctly and flagged on completion appropriately.
78
 
4
  Tags: slideshow, slider, slides, slide, gallery, images, image, responsive, mobile, jquery, javascript, featured, content
5
  Requires at least: 4.0
6
  Tested up to: 4.2
7
+ Stable tag: 2.2.0.3
8
 
9
  Easing Slider is an easy to use slider plugin. Simple and lightweight, is makes creating beautiful WordPress sliders a breeze.
10
 
73
 
74
  == Changelog ==
75
 
76
+ = 2.2.0.3 =
77
+ * Fixed compatibility issues with __callStatic and PHP 5.2.
78
+
79
  = 2.2.0.2 =
80
  * Fixed issues with legacy upgrades. Methods should now be prioritized correctly and flagged on completion appropriately.
81