Slide Anything – Responsive Content / HTML Slider and Carousel - Version 2.4.1

Version Description

  • Updated all PHP code within the plugin to meet the WordPress.org security and coding standards (minor update to ensure PHP function names have a standard prefix).
Download this release

Release Info

Developer simonpedge
Plugin Icon 128x128 Slide Anything – Responsive Content / HTML Slider and Carousel
Version 2.4.1
Comparing to
See all releases

Code changes from version 2.4.0 to 2.4.1

Files changed (3) hide show
  1. php/slide-anything-admin.php +32 -32
  2. readme.txt +6 -0
  3. slide-anything.php +10 -10
php/slide-anything-admin.php CHANGED
@@ -14,7 +14,7 @@
14
  * ##### PLUGIN REGISTRATION HOOK - RUN WHEN THE PLUGIN IS ACTIVATED #####
15
  */
16
  function cpt_slider_plugin_activation() {
17
- $sa_pro_version = validate_slide_anything_pro_registration();
18
 
19
  // INSERT A 'SAMPLE SLIDER' CUSTOM POST INTO THE DATABASE.
20
  $sample_post_title = 'Sample Slider';
@@ -149,10 +149,10 @@ function cpt_slider_plugin_activation() {
149
  /**
150
  * ##### SLIDE ANYTHING PRO NOTICE #####
151
  */
152
- function version_20_upgrade_notice() {
153
  global $current_user;
154
  $user_id = $current_user->ID;
155
- $sa_pro_version = validate_slide_anything_pro_registration();
156
 
157
  if ( ! $sa_pro_version ) {
158
  if ( current_user_can( 'administrator' ) ) {
@@ -204,7 +204,7 @@ function version_20_upgrade_notice() {
204
  /**
205
  * ##### SET THE SLIDE ANYTHING PRO NOTICE TO BE IGNORED FOR THIS USER #####
206
  */
207
- function slide_anything_notice_ignore() {
208
  global $current_user;
209
  $user_id = $current_user->ID;
210
  if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ) ) ) {
@@ -222,25 +222,25 @@ function slide_anything_notice_ignore() {
222
  /**
223
  * ##### ADD CHECKBOX OPTION UNDER "Settings -> Writing" CALLED "Disable TinyMCE Button" #####
224
  */
225
- function slide_anything_disable_tinymce_button_setting() {
226
  // REGISTER WordPress SETTING.
227
  register_setting(
228
  'writing',
229
  'sa-disable-tinymce-button',
230
- 'sa_settings_sanitize'
231
  );
232
  // CREATE SETTINGS SECTION (within "Settings->Writing").
233
  add_settings_section(
234
  'sa-writing-settings-section',
235
  'Slide Anything Settings',
236
- 'sa_writing_settings_section_description',
237
  'writing'
238
  );
239
  // CREATE SETTINGS INPUT FIELD.
240
  add_settings_field(
241
  'sa-settings-field1',
242
  'Disable TinyMCE Button',
243
- 'sa_settings_field1_callback',
244
  'writing',
245
  'sa-writing-settings-section'
246
  );
@@ -251,19 +251,19 @@ function slide_anything_disable_tinymce_button_setting() {
251
  *
252
  * @param string $input Disable TinyMCE Button checkbox.
253
  */
254
- function sa_settings_sanitize( $input ) {
255
  return isset( $input ) ? true : false;
256
  }
257
  /**
258
  * ##### SETTING SECTION DESCRIPTION #####
259
  */
260
- function sa_writing_settings_section_description() {
261
  echo esc_html( "Disable the 'Slide Anything Sliders' button within the toolbar of the WordPress Classic Editor when editing pages and posts." );
262
  }
263
  /**
264
  * ##### SETTINGS INPUT FIELD CALLBACK #####
265
  */
266
- function sa_settings_field1_callback() {
267
  ?>
268
  <label for="sa-disable-tinymce-input">
269
  <input id="sa-disable-tinymce-input" type="checkbox" value="1" name="sa-disable-tinymce-button" <?php checked( get_option( 'sa-disable-tinymce-button', false ) ); ?>>
@@ -274,8 +274,8 @@ function sa_settings_field1_callback() {
274
  /**
275
  * ##### ACTION HOOK - REGISTER SCRIPTS (JS AND CSS) FOR WordPress DASHBOARD ONLY #####
276
  */
277
- function cpt_register_admin_scripts() {
278
- $sa_pro_version = validate_slide_anything_pro_registration();
279
  $screen = get_current_screen();
280
  $plugin_path = dirname( __FILE__ ) . '/../slide-anything.php';
281
  $plugin_data = get_plugin_data( $plugin_path, false, false );
@@ -444,7 +444,7 @@ function cpt_slider_custom_column_content( $column ) {
444
  /**
445
  * ##### ADD A CUSTOM BUTTON TO WordPress TINYMCE EDITOR (ON PAGES AND POSTS ONLY) #####
446
  */
447
- function add_tinymce_button() {
448
  global $typenow;
449
  // check user permissions.
450
  if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) {
@@ -456,8 +456,8 @@ function add_tinymce_button() {
456
  }
457
  // check if WYSIWYG is enabled.
458
  if ( 'true' === get_user_option( 'rich_editing' ) ) {
459
- add_filter( 'mce_external_plugins', 'add_tinymce_plugin' );
460
- add_filter( 'mce_buttons', 'register_tinymce_button' );
461
  }
462
  }
463
 
@@ -466,7 +466,7 @@ function add_tinymce_button() {
466
  *
467
  * @param array $plugin_array Plugin Array.
468
  */
469
- function add_tinymce_plugin( $plugin_array ) {
470
  $plugin_array['tinymce_button'] = SA_PLUGIN_PATH . 'js/add_tinymce_button.js';
471
  return $plugin_array;
472
  }
@@ -476,7 +476,7 @@ function add_tinymce_plugin( $plugin_array ) {
476
  *
477
  * @param array $buttons TinyMCE buttons.
478
  */
479
- function register_tinymce_button( $buttons ) {
480
  array_push( $buttons, 'tinymce_button' );
481
  return $buttons;
482
  }
@@ -484,7 +484,7 @@ function register_tinymce_button( $buttons ) {
484
  /**
485
  * ##### ACTION HOOK: admin_footer #####
486
  */
487
- function get_tinymce_shortcode_array() {
488
  $screen = get_current_screen();
489
  if ( 'envira' !== $screen->post_type ) { // ### BUG FIX - CLASHING WITH ENVIRA GALLERY (VER 2.0.13) ###.
490
  // display 2 javascript arrays (in footer) containing all the slide anything post titles and post ids.
@@ -550,7 +550,7 @@ function cpt_slider_add_meta_boxes() {
550
  add_meta_box( 'cpt_slider_thumbs', __( 'Thumbnail Pagination' ), 'cpt_slider_thumbs_content', 'sa_slider', 'side', 'default' );
551
  remove_meta_box( 'mymetabox_revslider_0', 'sa_slider', 'normal' ); // remove revolution slider meta box
552
  // SLIDE ANY POST PROMOTIONAL META BOX.
553
- $sa_pro_version = validate_slide_anything_pro_registration();
554
  if ( ! $sa_pro_version ) {
555
  $user_id = $current_user->ID;
556
  if ( ! get_user_meta( $user_id, 'sa_ignore_sapost_notice' ) ) {
@@ -604,7 +604,7 @@ function cpt_slide_moved_content() {
604
  */
605
  function cpt_slider_settings_content( $post ) {
606
  $num_slides = get_post_meta( $post->ID, 'sa_num_slides', true );
607
- $sa_pro_version = validate_slide_anything_pro_registration();
608
  echo "<div id='sa_slider_settings'>\n";
609
 
610
  // NONCE TO PREVENT CSRF SECURITY ATTACKS.
@@ -852,7 +852,7 @@ function cpt_slider_settings_content( $post ) {
852
  function cpt_slider_slides_content( $post ) {
853
  $num_slides = get_post_meta( $post->ID, 'sa_num_slides', true );
854
  $slider_css_id = get_post_meta( $post->ID, 'sa_css_id', true );
855
- $sa_pro_version = validate_slide_anything_pro_registration();
856
  // DISABLE VISUAL EDITOR CHECKBOX.
857
  $disable_visual_editor = get_post_meta( $post->ID, 'sa_disable_visual_editor', true );
858
  if ( '' === $disable_visual_editor ) {
@@ -1741,7 +1741,7 @@ function cpt_slider_shortcode_content( $post ) {
1741
  * @param array $post Custom Post 'sa_slider'.
1742
  */
1743
  function cpt_slider_items_content( $post ) {
1744
- $sa_pro_version = validate_slide_anything_pro_registration();
1745
  $items_width1 = intval( get_post_meta( $post->ID, 'sa_items_width1', true ) );
1746
  $items_width2 = intval( get_post_meta( $post->ID, 'sa_items_width2', true ) );
1747
  $items_width3 = intval( get_post_meta( $post->ID, 'sa_items_width3', true ) );
@@ -2466,7 +2466,7 @@ function cpt_slider_style_content( $post ) {
2466
  * @param array $post Custom Post 'sa_slider'.
2467
  */
2468
  function cpt_slider_thumbs_content( $post ) {
2469
- $sa_pro_version = validate_slide_anything_pro_registration();
2470
 
2471
  if ( $sa_pro_version ) {
2472
  // get WordPress image size data and save into and array.
@@ -2671,7 +2671,7 @@ function cpt_slide_any_post_content() {
2671
  */
2672
  function cpt_slider_save_postdata() {
2673
  global $post;
2674
- $sa_pro_version = validate_slide_anything_pro_registration();
2675
 
2676
  // ### REMOVE XSS ATTACK VULNERABILITY FROM SLIDER POST TITLES ###
2677
  global $wpdb;
@@ -3406,7 +3406,7 @@ function cpt_slider_save_postdata() {
3406
  /**
3407
  * ##### FUNCTION CHECKS WHETHER SLIDE ANYTHING PRO IS REGISTERED - RETURNS TRUE OR FALSE #####
3408
  */
3409
- function validate_slide_anything_pro_registration() {
3410
  if ( ! function_exists( 'validate_slide_anything_pro_license_key' ) ) {
3411
  return false;
3412
  }
@@ -3421,22 +3421,22 @@ function validate_slide_anything_pro_registration() {
3421
  * ### FUNCTION DISPLAYS THE 'RE-ORDER SLIDES' SUB-PAGE IN THE WordPress DASHBOARD ###
3422
  * ###################################################################################
3423
  */
3424
- function extra_sa_menu_pages() {
3425
  add_submenu_page(
3426
  'edit.php?post_type=sa_slider',
3427
  __( 'Re-Order Slides', 'menu-sa-order' ),
3428
  __( 'Re-Order Slides', 'menu-sa-order' ),
3429
  'manage_options',
3430
  'reorderslides',
3431
- 'sa_reorder_slides_page'
3432
  );
3433
  }
3434
 
3435
  /**
3436
  * ### FUNCTION CONTAINING THE 'RE-ORDER' SLIDES FUNCTIONALITY ###
3437
  */
3438
- function sa_reorder_slides_page() {
3439
- $sa_pro_version = validate_slide_anything_pro_registration();
3440
  $page_url = get_admin_url() . 'edit.php?post_type=sa_slider&page=reorderslides';
3441
  $placeholder_image = get_site_url() . '/wp-content/plugins/slide-anything/images/bg_placeholder.png';
3442
 
@@ -3679,7 +3679,7 @@ function sa_reorder_slides_page() {
3679
  *
3680
  * @param string $template Page Template.
3681
  */
3682
- function sa_preview_page_template( $template ) {
3683
  if ( is_page( 'Slide Anything Popup Preview' ) ) {
3684
  $template = dirname( __FILE__ ) . '/single-page.php';
3685
  }
@@ -3692,7 +3692,7 @@ function sa_preview_page_template( $template ) {
3692
  *
3693
  * @param array $allowedposttags Allowed Post Tags.
3694
  */
3695
- function slides_allow_iframes_filter( $allowedposttags ) {
3696
  // Only change for users who can publish posts.
3697
  if ( ! current_user_can( 'publish_posts' ) ) {
3698
  return $allowedposttags;
14
  * ##### PLUGIN REGISTRATION HOOK - RUN WHEN THE PLUGIN IS ACTIVATED #####
15
  */
16
  function cpt_slider_plugin_activation() {
17
+ $sa_pro_version = cpt_slider_validate_sa_pro_registration();
18
 
19
  // INSERT A 'SAMPLE SLIDER' CUSTOM POST INTO THE DATABASE.
20
  $sample_post_title = 'Sample Slider';
149
  /**
150
  * ##### SLIDE ANYTHING PRO NOTICE #####
151
  */
152
+ function cpt_slider_version_20_upgrade_notice() {
153
  global $current_user;
154
  $user_id = $current_user->ID;
155
+ $sa_pro_version = cpt_slider_validate_sa_pro_registration();
156
 
157
  if ( ! $sa_pro_version ) {
158
  if ( current_user_can( 'administrator' ) ) {
204
  /**
205
  * ##### SET THE SLIDE ANYTHING PRO NOTICE TO BE IGNORED FOR THIS USER #####
206
  */
207
+ function cpt_slider_slide_anything_notice_ignore() {
208
  global $current_user;
209
  $user_id = $current_user->ID;
210
  if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ) ) ) {
222
  /**
223
  * ##### ADD CHECKBOX OPTION UNDER "Settings -> Writing" CALLED "Disable TinyMCE Button" #####
224
  */
225
+ function cpt_slider_disable_tinymce_button_setting() {
226
  // REGISTER WordPress SETTING.
227
  register_setting(
228
  'writing',
229
  'sa-disable-tinymce-button',
230
+ 'cpt_slider_writing_settings_sanitize'
231
  );
232
  // CREATE SETTINGS SECTION (within "Settings->Writing").
233
  add_settings_section(
234
  'sa-writing-settings-section',
235
  'Slide Anything Settings',
236
+ 'cpt_slider_writing_settings_section_description',
237
  'writing'
238
  );
239
  // CREATE SETTINGS INPUT FIELD.
240
  add_settings_field(
241
  'sa-settings-field1',
242
  'Disable TinyMCE Button',
243
+ 'cpt_slider_writing_settings_field1_callback',
244
  'writing',
245
  'sa-writing-settings-section'
246
  );
251
  *
252
  * @param string $input Disable TinyMCE Button checkbox.
253
  */
254
+ function cpt_slider_writing_settings_sanitize( $input ) {
255
  return isset( $input ) ? true : false;
256
  }
257
  /**
258
  * ##### SETTING SECTION DESCRIPTION #####
259
  */
260
+ function cpt_slider_writing_settings_section_description() {
261
  echo esc_html( "Disable the 'Slide Anything Sliders' button within the toolbar of the WordPress Classic Editor when editing pages and posts." );
262
  }
263
  /**
264
  * ##### SETTINGS INPUT FIELD CALLBACK #####
265
  */
266
+ function cpt_slider_writing_settings_field1_callback() {
267
  ?>
268
  <label for="sa-disable-tinymce-input">
269
  <input id="sa-disable-tinymce-input" type="checkbox" value="1" name="sa-disable-tinymce-button" <?php checked( get_option( 'sa-disable-tinymce-button', false ) ); ?>>
274
  /**
275
  * ##### ACTION HOOK - REGISTER SCRIPTS (JS AND CSS) FOR WordPress DASHBOARD ONLY #####
276
  */
277
+ function cpt_slider_register_admin_scripts() {
278
+ $sa_pro_version = cpt_slider_validate_sa_pro_registration();
279
  $screen = get_current_screen();
280
  $plugin_path = dirname( __FILE__ ) . '/../slide-anything.php';
281
  $plugin_data = get_plugin_data( $plugin_path, false, false );
444
  /**
445
  * ##### ADD A CUSTOM BUTTON TO WordPress TINYMCE EDITOR (ON PAGES AND POSTS ONLY) #####
446
  */
447
+ function cpt_slider_add_tinymce_button() {
448
  global $typenow;
449
  // check user permissions.
450
  if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) {
456
  }
457
  // check if WYSIWYG is enabled.
458
  if ( 'true' === get_user_option( 'rich_editing' ) ) {
459
+ add_filter( 'mce_external_plugins', 'cpt_slider_add_tinymce_plugin' );
460
+ add_filter( 'mce_buttons', 'cpt_slider_register_tinymce_button' );
461
  }
462
  }
463
 
466
  *
467
  * @param array $plugin_array Plugin Array.
468
  */
469
+ function cpt_slider_add_tinymce_plugin( $plugin_array ) {
470
  $plugin_array['tinymce_button'] = SA_PLUGIN_PATH . 'js/add_tinymce_button.js';
471
  return $plugin_array;
472
  }
476
  *
477
  * @param array $buttons TinyMCE buttons.
478
  */
479
+ function cpt_slider_register_tinymce_button( $buttons ) {
480
  array_push( $buttons, 'tinymce_button' );
481
  return $buttons;
482
  }
484
  /**
485
  * ##### ACTION HOOK: admin_footer #####
486
  */
487
+ function cpt_slider_get_tinymce_shortcode_array() {
488
  $screen = get_current_screen();
489
  if ( 'envira' !== $screen->post_type ) { // ### BUG FIX - CLASHING WITH ENVIRA GALLERY (VER 2.0.13) ###.
490
  // display 2 javascript arrays (in footer) containing all the slide anything post titles and post ids.
550
  add_meta_box( 'cpt_slider_thumbs', __( 'Thumbnail Pagination' ), 'cpt_slider_thumbs_content', 'sa_slider', 'side', 'default' );
551
  remove_meta_box( 'mymetabox_revslider_0', 'sa_slider', 'normal' ); // remove revolution slider meta box
552
  // SLIDE ANY POST PROMOTIONAL META BOX.
553
+ $sa_pro_version = cpt_slider_validate_sa_pro_registration();
554
  if ( ! $sa_pro_version ) {
555
  $user_id = $current_user->ID;
556
  if ( ! get_user_meta( $user_id, 'sa_ignore_sapost_notice' ) ) {
604
  */
605
  function cpt_slider_settings_content( $post ) {
606
  $num_slides = get_post_meta( $post->ID, 'sa_num_slides', true );
607
+ $sa_pro_version = cpt_slider_validate_sa_pro_registration();
608
  echo "<div id='sa_slider_settings'>\n";
609
 
610
  // NONCE TO PREVENT CSRF SECURITY ATTACKS.
852
  function cpt_slider_slides_content( $post ) {
853
  $num_slides = get_post_meta( $post->ID, 'sa_num_slides', true );
854
  $slider_css_id = get_post_meta( $post->ID, 'sa_css_id', true );
855
+ $sa_pro_version = cpt_slider_validate_sa_pro_registration();
856
  // DISABLE VISUAL EDITOR CHECKBOX.
857
  $disable_visual_editor = get_post_meta( $post->ID, 'sa_disable_visual_editor', true );
858
  if ( '' === $disable_visual_editor ) {
1741
  * @param array $post Custom Post 'sa_slider'.
1742
  */
1743
  function cpt_slider_items_content( $post ) {
1744
+ $sa_pro_version = cpt_slider_validate_sa_pro_registration();
1745
  $items_width1 = intval( get_post_meta( $post->ID, 'sa_items_width1', true ) );
1746
  $items_width2 = intval( get_post_meta( $post->ID, 'sa_items_width2', true ) );
1747
  $items_width3 = intval( get_post_meta( $post->ID, 'sa_items_width3', true ) );
2466
  * @param array $post Custom Post 'sa_slider'.
2467
  */
2468
  function cpt_slider_thumbs_content( $post ) {
2469
+ $sa_pro_version = cpt_slider_validate_sa_pro_registration();
2470
 
2471
  if ( $sa_pro_version ) {
2472
  // get WordPress image size data and save into and array.
2671
  */
2672
  function cpt_slider_save_postdata() {
2673
  global $post;
2674
+ $sa_pro_version = cpt_slider_validate_sa_pro_registration();
2675
 
2676
  // ### REMOVE XSS ATTACK VULNERABILITY FROM SLIDER POST TITLES ###
2677
  global $wpdb;
3406
  /**
3407
  * ##### FUNCTION CHECKS WHETHER SLIDE ANYTHING PRO IS REGISTERED - RETURNS TRUE OR FALSE #####
3408
  */
3409
+ function cpt_slider_validate_sa_pro_registration() {
3410
  if ( ! function_exists( 'validate_slide_anything_pro_license_key' ) ) {
3411
  return false;
3412
  }
3421
  * ### FUNCTION DISPLAYS THE 'RE-ORDER SLIDES' SUB-PAGE IN THE WordPress DASHBOARD ###
3422
  * ###################################################################################
3423
  */
3424
+ function cpt_slider_extra_sa_menu_pages() {
3425
  add_submenu_page(
3426
  'edit.php?post_type=sa_slider',
3427
  __( 'Re-Order Slides', 'menu-sa-order' ),
3428
  __( 'Re-Order Slides', 'menu-sa-order' ),
3429
  'manage_options',
3430
  'reorderslides',
3431
+ 'cpt_slider_sa_reorder_slides_page'
3432
  );
3433
  }
3434
 
3435
  /**
3436
  * ### FUNCTION CONTAINING THE 'RE-ORDER' SLIDES FUNCTIONALITY ###
3437
  */
3438
+ function cpt_slider_sa_reorder_slides_page() {
3439
+ $sa_pro_version = cpt_slider_validate_sa_pro_registration();
3440
  $page_url = get_admin_url() . 'edit.php?post_type=sa_slider&page=reorderslides';
3441
  $placeholder_image = get_site_url() . '/wp-content/plugins/slide-anything/images/bg_placeholder.png';
3442
 
3679
  *
3680
  * @param string $template Page Template.
3681
  */
3682
+ function cpt_slider_sa_preview_page_template( $template ) {
3683
  if ( is_page( 'Slide Anything Popup Preview' ) ) {
3684
  $template = dirname( __FILE__ ) . '/single-page.php';
3685
  }
3692
  *
3693
  * @param array $allowedposttags Allowed Post Tags.
3694
  */
3695
+ function cpt_slider_allow_iframes_filter( $allowedposttags ) {
3696
  // Only change for users who can publish posts.
3697
  if ( ! current_user_can( 'publish_posts' ) ) {
3698
  return $allowedposttags;
readme.txt CHANGED
@@ -98,6 +98,9 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
98
 
99
  == Changelog ==
100
 
 
 
 
101
  = 2.4.0 =
102
  * Updated all PHP code within the plugin to meet the WordPress.org security and coding standards.
103
 
@@ -782,3 +785,6 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
782
 
783
  = 2.4.0 =
784
  * Updated all PHP code within the plugin to meet the WordPress.org security and coding standards.
 
 
 
98
 
99
  == Changelog ==
100
 
101
+ = 2.4.1 =
102
+ * Updated all PHP code within the plugin to meet the WordPress.org security and coding standards (minor update to ensure PHP function names have a standard prefix).
103
+
104
  = 2.4.0 =
105
  * Updated all PHP code within the plugin to meet the WordPress.org security and coding standards.
106
 
785
 
786
  = 2.4.0 =
787
  * Updated all PHP code within the plugin to meet the WordPress.org security and coding standards.
788
+
789
+ = 2.4.1 =
790
+ * Updated all PHP code within the plugin to meet the WordPress.org security and coding standards (minor update to ensure PHP function names have a standard prefix).
slide-anything.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Slide Anything - Responsive Content / HTML Slider and Carousel
4
  * Plugin URI: https://wordpress.org/plugins/slide-anything/
5
  * Description: Slide Anything allows you to create a carousel/slider where the content for each slide can be anything you want - images, text, HTML, and even shortcodes. This plugin uses the Owl Carousel jQuery plugin, and lets you create beautiful, touch enabled, responsive carousels and sliders.
6
- * Version: 2.4.0
7
  *
8
  * @package WordPress_Slide_Anything
9
  * @author Simon Edge
@@ -25,7 +25,7 @@ require 'php/slide-anything-frontend.php';
25
  register_activation_hook( __FILE__, 'cpt_slider_plugin_activation' );
26
 
27
  /* ##### ADD ACTION HOOKS & FILTERS FOR PLUGIN ##### */
28
- add_action( 'admin_enqueue_scripts', 'cpt_register_admin_scripts', 999999 );
29
  add_action( 'init', 'cpt_slider_register' );
30
  add_action( 'post_row_actions', 'cpt_slider_row_actions', 10, 2 );
31
  add_action( 'add_meta_boxes', 'cpt_slider_add_meta_boxes' );
@@ -33,17 +33,17 @@ add_action( 'save_post', 'cpt_slider_save_postdata' );
33
  add_filter( 'manage_sa_slider_posts_columns', 'cpt_slider_modify_columns' );
34
  add_filter( 'manage_sa_slider_posts_custom_column', 'cpt_slider_custom_column_content' );
35
  if ( ! get_option( 'sa-disable-tinymce-button' ) ) {
36
- add_action( 'admin_head', 'add_tinymce_button' );
37
- add_action( 'admin_footer', 'get_tinymce_shortcode_array', 9999999 );
38
  }
39
- add_action( 'admin_menu', 'extra_sa_menu_pages' );
40
- add_filter( 'template_include', 'sa_preview_page_template' );
41
- add_filter( 'wp_kses_allowed_html', 'slides_allow_iframes_filter' );
42
 
43
  // SLIDE ANYTHING 2.0 UPGRADE NOTICE.
44
- add_action( 'admin_notices', 'version_20_upgrade_notice' );
45
- add_action( 'admin_init', 'slide_anything_notice_ignore' );
46
 
47
  // ADD A CHECKBOX OPTION UNDER 'Settings -> Writing' CALLED 'Disable TinyMCE Button'.
48
- add_action( 'admin_init', 'slide_anything_disable_tinymce_button_setting' );
49
 
3
  * Plugin Name: Slide Anything - Responsive Content / HTML Slider and Carousel
4
  * Plugin URI: https://wordpress.org/plugins/slide-anything/
5
  * Description: Slide Anything allows you to create a carousel/slider where the content for each slide can be anything you want - images, text, HTML, and even shortcodes. This plugin uses the Owl Carousel jQuery plugin, and lets you create beautiful, touch enabled, responsive carousels and sliders.
6
+ * Version: 2.4.1
7
  *
8
  * @package WordPress_Slide_Anything
9
  * @author Simon Edge
25
  register_activation_hook( __FILE__, 'cpt_slider_plugin_activation' );
26
 
27
  /* ##### ADD ACTION HOOKS & FILTERS FOR PLUGIN ##### */
28
+ add_action( 'admin_enqueue_scripts', 'cpt_slider_register_admin_scripts', 999999 );
29
  add_action( 'init', 'cpt_slider_register' );
30
  add_action( 'post_row_actions', 'cpt_slider_row_actions', 10, 2 );
31
  add_action( 'add_meta_boxes', 'cpt_slider_add_meta_boxes' );
33
  add_filter( 'manage_sa_slider_posts_columns', 'cpt_slider_modify_columns' );
34
  add_filter( 'manage_sa_slider_posts_custom_column', 'cpt_slider_custom_column_content' );
35
  if ( ! get_option( 'sa-disable-tinymce-button' ) ) {
36
+ add_action( 'admin_head', 'cpt_slider_add_tinymce_button' );
37
+ add_action( 'admin_footer', 'cpt_slider_get_tinymce_shortcode_array', 9999999 );
38
  }
39
+ add_action( 'admin_menu', 'cpt_slider_extra_sa_menu_pages' );
40
+ add_filter( 'template_include', 'cpt_slider_sa_preview_page_template' );
41
+ add_filter( 'wp_kses_allowed_html', 'cpt_slider_allow_iframes_filter' );
42
 
43
  // SLIDE ANYTHING 2.0 UPGRADE NOTICE.
44
+ add_action( 'admin_notices', 'cpt_slider_version_20_upgrade_notice' );
45
+ add_action( 'admin_init', 'cpt_slider_slide_anything_notice_ignore' );
46
 
47
  // ADD A CHECKBOX OPTION UNDER 'Settings -> Writing' CALLED 'Disable TinyMCE Button'.
48
+ add_action( 'admin_init', 'cpt_slider_disable_tinymce_button_setting' );
49