Changeset 2516532
- Timestamp:
- 04/16/2021 08:02:42 PM (5 years ago)
- Location:
- external-media/trunk
- Files:
-
- 3 edited
-
external-media.php (modified) (2 diffs)
-
includes/WP_ExternalMedia.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
external-media/trunk/external-media.php
r2491814 r2516532 8 8 Plugin Name: External Media 9 9 Description: Import files from thrid-party services (Dropbox, Box, OneDrive, Google Drive and any remote URL). 10 Version: 1.0.3 010 Version: 1.0.31 11 11 Author: Minnur Yunusov 12 12 Author URI: http://www.minnur.com/ … … 18 18 define( 'WP_ExternalMedia_PluginName', plugin_basename( __FILE__ ) ); 19 19 define( 'WP_ExternalMedia_Prefix', 'WPExternalMedia_' ); 20 define( 'WP_ExternalMedia_Version', '1.0.3 0' );20 define( 'WP_ExternalMedia_Version', '1.0.31' ); 21 21 22 22 if ( !class_exists( 'WP_ExternalMedia' ) ) { -
external-media/trunk/includes/WP_ExternalMedia.php
r2335386 r2516532 45 45 $caption = !empty($_POST['caption']) ? $_POST['caption'] : ''; 46 46 $referer = !empty($_POST['referer']) ? $_POST['referer'] : ''; 47 $loaded_plugin = $this->load_plugin( $plugin ); 48 $this->_call_class_method( $loaded_plugin['phpClassName'], 'download', array( $file, $filename, $caption, $referer ) ); 47 48 if ( wp_verify_nonce( $_POST['nonce'], 'external-media-nonce' ) ) { 49 $loaded_plugin = $this->load_plugin( $plugin ); 50 $this->_call_class_method( $loaded_plugin['phpClassName'], 'download', array( $file, $filename, $caption, $referer ) ); 51 } 52 49 53 } 50 54 … … 143 147 wp_enqueue_script( $prefix . '_js' ); 144 148 wp_enqueue_script( $prefix . '_view_js' ); 149 150 wp_register_script( 'dummy-handle-header', '' ); 151 wp_enqueue_script( 'dummy-handle-header' ); 152 wp_add_inline_script( 'dummy-handle-header', 'var _external_media_nonce = "' . wp_create_nonce( 'external-media-nonce' ) . '";' ); 145 153 } 146 154 -
external-media/trunk/readme.txt
r2491814 r2516532 7 7 Requires at least: 5.4 8 8 Tested up to: 5.5.1 9 Stable tag: 1.0.3 09 Stable tag: 1.0.31 10 10 Requires PHP: 7.1 11 11 License: GPLv2 or later … … 131 131 == Changelog == 132 132 133 = 1.0.31 = 134 * Improve security. Add nonce check. 135 * Version bump. 133 136 = 1.0.30 = 134 137 * Improve security. Add permission check.
Note: See TracChangeset
for help on using the changeset viewer.