Changeset 1720717
- Timestamp:
- 08/28/2017 04:28:13 PM (9 years ago)
- Location:
- jayj-quicktag/trunk
- Files:
-
- 1 added
- 3 edited
-
README.md (modified) (2 diffs)
-
jayj-quicktag.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
-
uninstall.php (added)
Legend:
- Unmodified
- Added
- Removed
-
jayj-quicktag/trunk/README.md
r1046017 r1720717 1 1 # Jayj Quicktag 2 2 3 **Contributors:** Jayjdk 4 **Tags:** quicktag, quicktags, editor, quick, tag, generator, import, export 5 **Requires at least:** 3.3 6 **Tested up to:** 4.1 7 **Stable tag:** 1.3. 13 **Contributors:** Jayjdk 4 **Tags:** quicktag, quicktags, editor, quick, tag, generator, import, export 5 **Requires at least:** 3.3 6 **Tested up to:** 4.1 7 **Stable tag:** 1.3.2 8 8 9 9 Allows you easily to add custom Quicktags to the post editor. … … 61 61 62 62 ## Changelog 63 64 ### 1.3.2 65 * Fix CSRF issue reported by Plugin Vulnerabilities. Thanks! 66 * Use JSON for exporting and importing quicktags 63 67 64 68 ### 1.3.1 -
jayj-quicktag/trunk/jayj-quicktag.php
r970904 r1720717 2 2 /** 3 3 * Plugin Name: Jayj Quicktag 4 * Plugin URI: http ://jayj.dk/plugins/jayj-quicktag/4 * Plugin URI: https://jayj.dk/plugins/jayj-quicktag/ 5 5 * Description: Allows you to easily add custom quicktags to the editor. 6 6 * Author: Jesper Johansen 7 * Author URI: http ://jayj.dk8 * Version: 1.3. 17 * Author URI: https://jayj.dk 8 * Version: 1.3.2 9 9 * License: GPLv2 or later 10 10 * Text Domain: jayj-quicktag … … 12 12 */ 13 13 14 /* Register uninstall function. */15 register_uninstall_hook( __FILE__, 'jayj_quicktag_uninstall' );16 17 14 /* Load the textdomain for translation. */ 18 15 load_plugin_textdomain( 'jayj-quicktag', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 19 16 20 17 /** 21 * Removes the Quicktags from the database22 *23 * @since 1.0.024 */25 function jayj_quicktag_uninstall() {26 delete_option( 'jayj_qt_settings' );27 }28 29 /**30 18 * Adds the options page 31 19 * … … 63 51 64 52 <form action="options.php" method="post"> 65 66 53 <?php 67 54 /* … … 69 56 */ 70 57 if ( isset( $_POST['jayj-quicktag-import-save'] ) ) : 58 check_admin_referer( 'jayj-quicktag_import' ); 71 59 72 60 $options = get_option( 'jayj_qt_settings' ); 73 $data = maybe_unserialize( stripslashes_deep( $_POST['jayj-quicktag-import'] ));61 $data = json_decode( stripslashes($_POST['jayj-quicktag-import'] ), true); 74 62 75 63 // Merge the old and the new Quicktags. … … 192 180 <!-- Export/Import metaboxes --> 193 181 <form action="" method="post" name="jayj-quicktag-import" class="jayj-quicktag-postboxes"> 182 <?php wp_nonce_field( 'jayj-quicktag_import' ); ?> 194 183 195 184 <div id="poststuff"><div class="metabox-holder"> … … 207 196 <li><?php _e( 'Or you could paste it into <code>Jayj Quicktag > Import Quicktags</code> on another WordPress install.', 'jayj-quicktag' ); ?></li> 208 197 </ul> 209 <textarea rows="10" cols="60" onclick="this.focus(); this.select();"><?php echo esc_textarea( serialize( $options ) ); ?></textarea>198 <textarea rows="10" cols="60" onclick="this.focus(); this.select();"><?php echo esc_textarea( json_encode( $options ) ); ?></textarea> 210 199 </div> 211 200 </div> <!-- .postbox --> -
jayj-quicktag/trunk/readme.txt
r1046017 r1720717 5 5 License: GPLv2 or later 6 6 Requires at least: 3.3 7 Tested up to: 4. 18 Stable tag: 1.3. 17 Tested up to: 4.8.1 8 Stable tag: 1.3.2 9 9 10 10 Allows you easily to add custom Quicktags to the post editor. … … 63 63 == Changelog == 64 64 65 = 1.3.1 65 = 1.3.2 = 66 * Fix CSRF issue reported by Plugin Vulnerabilities. Thanks! 67 * Use JSON for exporting and importing quicktags 68 69 = 1.3.1 = 66 70 * Added Spanish translation by [Andrew Kurtis](http://www.webhostinghub.com/). 67 71 * Tested with WordPress 3.8
Note: See TracChangeset
for help on using the changeset viewer.