Changeset 1389536
- Timestamp:
- 04/07/2016 04:46:04 PM (10 years ago)
- Location:
- embedly/trunk
- Files:
-
- 2 edited
-
embedly.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
embedly/trunk/embedly.php
r1383580 r1389536 5 5 Description: The Embedly Plugin extends Wordpress's automatic embed feature, allowing bloggers to Embed from 300+ services and counting. 6 6 Author: Embed.ly Inc 7 Version: 4.0. 87 Version: 4.0.9 8 8 Author URI: http://embed.ly 9 9 License: GPL2 … … 311 311 function add_embedly_providers() 312 312 { 313 #if user entered valid key, override providers, else, do nothing313 // if user entered valid key, override providers, else, do nothing 314 314 if ($this->valid_key()) { 315 315 // delete all current oembed providers 316 add_filter('oembed_providers', create_function('', 'return array();'));316 add_filter('oembed_providers', '__return_empty_array'); 317 317 // add embedly provider 318 318 $provider_uri = $this->build_uri_with_options(); … … 396 396 function embedly_save_option($key, $value) 397 397 { 398 // Ideally we should run this through sanitize_key 399 // But some options keys have "?" in them which sanitize_key strips out 400 // Resort to sanitize_text_field instead 401 $key = sanitize_text_field( $key ); 402 $value = sanitize_text_field( $value ); 403 398 404 $this->embedly_options[$key] = $value; 399 405 update_option('embedly_settings', $this->embedly_options); … … 639 645 <li> 640 646 <h3><?php _e('DESIGN', 'embedly');?></h3> 641 <input class='chrome-card-checkbox' type='checkbox' value='checked' name='minimal' <?php642 checked( $this->embedly_options['card_chrome'], !1); // ¯\_(ツ)_/¯ -php647 <input class='chrome-card-checkbox' type='checkbox' name='minimal' 648 <?php checked( $this->embedly_options['card_chrome'], 0); 643 649 // checked( @$this->embedly_options["card_chrome"] ?: false, false); does not work below PHP v5.3 644 650 ?> /> <?php _e('MINIMAL', 'embedly'); ?> -
embedly/trunk/readme.txt
r1383580 r1389536 6 6 Requires at least: 3.8 7 7 Tested up to: 4.5 8 Stable tag: 4.0. 88 Stable tag: 4.0.9 9 9 License: GPLv2 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 184 184 185 185 == Changelog == 186 187 = 4.0.9 = 188 189 * Improved plugin security. 186 190 187 191 = 4.0.6 =
Note: See TracChangeset
for help on using the changeset viewer.