Plugin Directory

Changeset 1296956


Ignore:
Timestamp:
11/29/2015 10:40:29 PM (9 years ago)
Author:
molven
Message:

upgrade at version 2.0

Location:
os-media/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified os-media/trunk/classes/OSmedia-base.php

    r1296909 r1296956  
    7979                $options = self::$OSmedia_options;
    8080                // $player = $options['basic']['OSmedia_player'];
    81                 if( isset($options['OSmedia_skin']) ) $skin = $options['OSmedia_skin']; else $skin = '';
     81                if( isset($options['OSmedia_skin']) ) $skin = $options['OSmedia_skin']; else{};
    8282                if( isset($options['OSmedia_yt_vjs']) ) $yt_vjs = $options['OSmedia_yt_vjs']; else $yt_vjs = '';
    83             }
     83            }else $skin = 'video-js'; $yt_vjs = '';
     84           
    8485
    8586            $plugins_url = plugins_url( OSmedia_FOLDER );
     
    194195            foreach ( $this->modules as $module ) {
    195196                $module->activate( $network_wide );
    196             }
    197 
     197                // create default options if not exists
     198                if( @get_option(OSmedia_OPTS) )
     199                    $opts = @get_option(OSmedia_OPTS);             
     200                if( !isset($opts) || !is_array($opts) )
     201                    update_option( OSmedia_OPTS, OSmedia_settings::get_default_settings() );
     202            }
    198203            flush_rewrite_rules();
    199204        }
     
    208213                $module->deactivate();
    209214            }
    210 
    211             $option_name = OSmedia_NAME . '_settings';
    212            
    213             // delete_option( $option_name );           
    214             // For site options in Multisite
    215             // delete_site_option( $option_name );
    216 
    217215            flush_rewrite_rules();
    218 
    219216        }
    220217
     
    236233         */
    237234        public function register_hook_callbacks() {
    238             // add_action( 'activate_plugin',       'activate' ); // da provare
    239235            add_action( 'wpmu_new_blog',         __CLASS__ . '::activate_new_site' );
    240236            // ADD SCRIPTS
  • TabularUnified os-media/trunk/classes/OSmedia-settings.php

    r1296909 r1296956  
    135135         */
    136136        public function activate( $network_wide ) {
    137 
    138             // create default options if not exists
    139             if( @get_option(OSmedia_OPTS) ) {
    140                 $opts = @get_option(OSmedia_OPTS);
    141             }           
    142             if( !isset($opts) || !is_array($opts) ) {
    143                 update_option( OSmedia_OPTS, OSmedia_Settings::get_default_settings() );
    144             }
    145 
    146137        }
    147138
  • TabularUnified os-media/trunk/readme.txt

    r1296909 r1296956  
    5757http://www.mariomarino.eu/wp-content/uploads/2013/10/OSmedia_vars.pdf
    5858
    59 **IMPORTANT NOTE about old version:**
     59**IMPORTANT NOTE about old version (1.0):**
    6060The old post / page create through old version of this plugin MUST be simply manually reloaded in Admin Area and, when appear the video data on the metabox form, click "Generate Shortcode" button. This because in the new version in post and page, video are displayed only through shortcode.
    6161
Note: See TracChangeset for help on using the changeset viewer.