Changeset 1296956
- Timestamp:
- 11/29/2015 10:40:29 PM (9 years ago)
- Location:
- os-media/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified os-media/trunk/classes/OSmedia-base.php ¶
r1296909 r1296956 79 79 $options = self::$OSmedia_options; 80 80 // $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{}; 82 82 if( isset($options['OSmedia_yt_vjs']) ) $yt_vjs = $options['OSmedia_yt_vjs']; else $yt_vjs = ''; 83 } 83 }else $skin = 'video-js'; $yt_vjs = ''; 84 84 85 85 86 $plugins_url = plugins_url( OSmedia_FOLDER ); … … 194 195 foreach ( $this->modules as $module ) { 195 196 $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 } 198 203 flush_rewrite_rules(); 199 204 } … … 208 213 $module->deactivate(); 209 214 } 210 211 $option_name = OSmedia_NAME . '_settings';212 213 // delete_option( $option_name );214 // For site options in Multisite215 // delete_site_option( $option_name );216 217 215 flush_rewrite_rules(); 218 219 216 } 220 217 … … 236 233 */ 237 234 public function register_hook_callbacks() { 238 // add_action( 'activate_plugin', 'activate' ); // da provare239 235 add_action( 'wpmu_new_blog', __CLASS__ . '::activate_new_site' ); 240 236 // ADD SCRIPTS -
TabularUnified os-media/trunk/classes/OSmedia-settings.php ¶
r1296909 r1296956 135 135 */ 136 136 public function activate( $network_wide ) { 137 138 // create default options if not exists139 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 146 137 } 147 138 -
TabularUnified os-media/trunk/readme.txt ¶
r1296909 r1296956 57 57 http://www.mariomarino.eu/wp-content/uploads/2013/10/OSmedia_vars.pdf 58 58 59 **IMPORTANT NOTE about old version :**59 **IMPORTANT NOTE about old version (1.0):** 60 60 The 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. 61 61
Note: See TracChangeset
for help on using the changeset viewer.