Plugin Directory

Changeset 1720717


Ignore:
Timestamp:
08/28/2017 04:28:13 PM (9 years ago)
Author:
Jayjdk
Message:

Update to version 1.3.2

Location:
jayj-quicktag/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • jayj-quicktag/trunk/README.md

    r1046017 r1720717  
    11# Jayj Quicktag
    22
    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.
     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.2
    88
    99Allows you easily to add custom Quicktags to the post editor.
     
    6161
    6262## Changelog
     63
     64### 1.3.2
     65* Fix CSRF issue reported by Plugin Vulnerabilities. Thanks!
     66* Use JSON for exporting and importing quicktags
    6367
    6468### 1.3.1
  • jayj-quicktag/trunk/jayj-quicktag.php

    r970904 r1720717  
    22/**
    33 * Plugin Name: Jayj Quicktag
    4  * Plugin URI:  http://jayj.dk/plugins/jayj-quicktag/
     4 * Plugin URI:  https://jayj.dk/plugins/jayj-quicktag/
    55 * Description: Allows you to easily add custom quicktags to the editor.
    66 * Author:      Jesper Johansen
    7  * Author URI:  http://jayj.dk
    8  * Version:     1.3.1
     7 * Author URI:  https://jayj.dk
     8 * Version:     1.3.2
    99 * License:     GPLv2 or later
    1010 * Text Domain: jayj-quicktag
     
    1212 */
    1313
    14 /* Register uninstall function. */
    15 register_uninstall_hook( __FILE__, 'jayj_quicktag_uninstall' );
    16 
    1714/* Load the textdomain for translation. */
    1815load_plugin_textdomain( 'jayj-quicktag', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
    1916
    2017/**
    21  * Removes the Quicktags from the database
    22  *
    23  * @since 1.0.0
    24  */
    25 function jayj_quicktag_uninstall() {
    26     delete_option( 'jayj_qt_settings' );
    27 }
    28 
    29 /**
    3018 * Adds the options page
    3119 *
     
    6351
    6452    <form action="options.php" method="post">
    65 
    6653        <?php
    6754            /*
     
    6956             */
    7057            if ( isset( $_POST['jayj-quicktag-import-save'] ) ) :
     58                check_admin_referer( 'jayj-quicktag_import' );
    7159
    7260                $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);
    7462
    7563                // Merge the old and the new Quicktags.
     
    192180    <!-- Export/Import metaboxes -->
    193181    <form action="" method="post" name="jayj-quicktag-import" class="jayj-quicktag-postboxes">
     182        <?php wp_nonce_field( 'jayj-quicktag_import' ); ?>
    194183
    195184        <div id="poststuff"><div class="metabox-holder">
     
    207196                    <li><?php _e( 'Or you could paste it into <code>Jayj Quicktag > Import Quicktags</code> on another WordPress install.', 'jayj-quicktag' ); ?></li>
    208197                </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>
    210199            </div>
    211200        </div> <!-- .postbox -->
  • jayj-quicktag/trunk/readme.txt

    r1046017 r1720717  
    55License: GPLv2 or later
    66Requires at least: 3.3
    7 Tested up to: 4.1
    8 Stable tag: 1.3.1
     7Tested up to: 4.8.1
     8Stable tag: 1.3.2
    99
    1010Allows you easily to add custom Quicktags to the post editor.
     
    6363== Changelog ==
    6464
    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 =
    6670* Added Spanish translation by [Andrew Kurtis](http://www.webhostinghub.com/).
    6771* Tested with WordPress 3.8
Note: See TracChangeset for help on using the changeset viewer.