Changeset 2204443
- Timestamp:
- 12/02/2019 10:10:30 AM (6 years ago)
- Location:
- smiling-video/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
smiling_video.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smiling-video/trunk/readme.txt
r1832478 r2204443 4 4 Requires at least: 4.6 5 5 Requires PHP: 5.6 6 Tested up to: 4.97 Stable tag: 1.1. 76 Tested up to: 5.3 7 Stable tag: 1.1.8 8 8 License: GPL v2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 41 41 - select "Plugin" tab 42 42 - select "Add New" plugin 43 - search "Classic Editor" 44 - select "install now" 43 45 - search "Smiling Video" 44 46 - select "install now" … … 99 101 == Changelog == 100 102 103 = 1.1.8 = 104 * made Classic Editor required 105 101 106 = 1.1.7 = 102 107 * plugin permission fix -
smiling-video/trunk/smiling_video.php
r1823311 r2204443 8 8 Description: Smiling.Video offers a video player and gallery with a wide catalogue of premium videos proposed by leading Content Providers of all sectors: news, sport, movie and tv series, cinema, etc 9 9 Videos are continuously updated in many languages: italian, english, spanish, french 10 Version: 1.1. 710 Version: 1.1.8 11 11 Author: Smiling.video 12 12 Author URI: http://smiling.video/ … … 33 33 add_action( 'wp_enqueue_scripts', 'smiling_video_enqueue_script' ); 34 34 add_shortcode( 'smiling_video', 'smiling_video_shortcode' ); 35 add_action( 'save_post', 'smiling_video_autopublish' ); 35 add_action( 'save_post', 'smiling_video_autopublish' ); 36 add_action( 'admin_init', 'child_plugin_has_parent_plugin' ); 37 function child_plugin_has_parent_plugin() { 38 if ( is_admin() && current_user_can( 'activate_plugins' ) && !is_plugin_active( 'classic-editor/classic-editor.php' ) ) { 39 add_action( 'admin_notices', 'child_plugin_notice' ); 40 41 deactivate_plugins( plugin_basename( __FILE__ ) ); 42 43 if ( isset( $_GET['activate'] ) ) { 44 unset( $_GET['activate'] ); 45 } 46 } 47 } 48 49 function child_plugin_notice(){ 50 ?><div class="error"><p>Spiacenti, ma Smiling.Video richiede che Classic Editor sia installato e attivo.</p></div><?php 51 } 36 52 function smiling_video_menu() { 37 53 add_menu_page( 'Smiling Video', 'Smiling Video', 'manage_options', 'smiling_video_home', 'smiling_video_home_page','dashicons-video-alt3'); … … 261 277 print "<br>".($risposta->message); 262 278 } 263 264 279 } 265 280 wp_die(); // this is required to terminate immediately and return a proper response
Note: See TracChangeset
for help on using the changeset viewer.