Plugin Directory

Changeset 2204443


Ignore:
Timestamp:
12/02/2019 10:10:30 AM (6 years ago)
Author:
techadminsmilingvideo
Message:
  • wordpress 5.3 verified
  • added Classic Editor as a requirement
Location:
smiling-video/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smiling-video/trunk/readme.txt

    r1832478 r2204443  
    44Requires at least: 4.6
    55Requires PHP: 5.6
    6 Tested up to: 4.9
    7 Stable tag: 1.1.7
     6Tested up to: 5.3
     7Stable tag: 1.1.8
    88License: GPL v2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141- select "Plugin" tab
    4242- select "Add New" plugin
     43- search "Classic Editor"
     44- select "install now"
    4345- search "Smiling Video"
    4446- select "install now"
     
    99101== Changelog ==
    100102
     103= 1.1.8 =
     104 * made Classic Editor required
     105
    101106= 1.1.7 =
    102107 * plugin permission fix
  • smiling-video/trunk/smiling_video.php

    r1823311 r2204443  
    88Description: 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
    99Videos are continuously updated in many languages: italian, english, spanish, french
    10 Version: 1.1.7
     10Version: 1.1.8
    1111Author: Smiling.video
    1212Author URI: http://smiling.video/
     
    3333add_action( 'wp_enqueue_scripts', 'smiling_video_enqueue_script' );
    3434add_shortcode( 'smiling_video', 'smiling_video_shortcode' );
    35 add_action( 'save_post', 'smiling_video_autopublish' );
     35add_action( 'save_post', 'smiling_video_autopublish' );
     36add_action( 'admin_init', 'child_plugin_has_parent_plugin' );
     37function 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
     49function child_plugin_notice(){
     50    ?><div class="error"><p>Spiacenti, ma Smiling.Video richiede che Classic Editor sia installato e attivo.</p></div><?php
     51}
    3652function smiling_video_menu() {
    3753    add_menu_page( 'Smiling Video', 'Smiling Video', 'manage_options', 'smiling_video_home', 'smiling_video_home_page','dashicons-video-alt3');
     
    261277        print "<br>".($risposta->message);
    262278        }
    263 
    264279    }
    265280    wp_die(); // this is required to terminate immediately and return a proper response
Note: See TracChangeset for help on using the changeset viewer.