Plugin Directory

Changeset 1121380


Ignore:
Timestamp:
03/26/2015 01:23:51 PM (11 years ago)
Author:
vlastuin
Message:

Include AJAX nonce in InnoDB conversion

Location:
vevida-optimizer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vevida-optimizer/trunk/convert_2_innodb.php

    r1121359 r1121380  
    2222                    e.preventDefault();         
    2323                    var data = {
    24                             'action': 'vevida-optimizer-convertMyisamToInnodb'
     24                            'action': 'vevida-optimizer-convertMyisamToInnodb',
     25                            '_ajax_nonce': '<?php echo wp_create_nonce( 'vevida-optimizer-nonce' ); ?>'
    2526                    };
    2627
     
    3940add_action( 'wp_ajax_vevida-optimizer-convertMyisamToInnodb', 'vevida_optimizer_convertMyisamToInnodb' );
    4041function vevida_optimizer_convertMyisamToInnodb() {
     42    check_ajax_referer( 'vevida-optimizer-nonce' );
    4143    if ( !convertTables() ) {
    4244        echo '<h2>Whoops, error!</h2><p>Turns out something went wrong... Please check your PHP error log file.</p>';
  • vevida-optimizer/trunk/readme.txt

    r1121363 r1121380  
    44Requires at least: 3.9
    55Tested up to: 4.1.1
    6 Stable tag: 1.0.5
     6Stable tag: 1.0.6
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9696== Changelog ==
    9797
     98= 1.0.6 =
     99Release date: March 26th 2015
     100
     101* Include Ajax-nonce
     102
    98103= 1.0.5 =
    99104Release date: March 26th 2015
Note: See TracChangeset for help on using the changeset viewer.