WordPress.org

Plugin Directory

Changeset 580002


Ignore:
Timestamp:
07/31/12 21:32:54 (21 months ago)
Author:
bainternet
Message:

fixed typo on export tagged 1.8.4

Location:
shortcodes-ui
Files:
39 added
3 edited

Legend:

Unmodified
Added
Removed
  • shortcodes-ui/trunk/js/im_ex.js

    r461471 r580002  
     1/** 
     2 * ShortCodes UI Import/Export Script 
     3 * @author Ohad Raz 
     4 * @since 1.4 
     5 */ 
    16jQuery(document).ready(function(){ 
    27    //load tabs 
     
    1217            jQuery(".sc_ui").html(''); 
    1318            jQuery.ajaxSetup({ cache: false }); 
    14             jQuery.getJSON(ajaxurl, 
     19            jQuery.post(ajaxurl, 
    1520            {   sc_ids: jQuery("#sc_to_ex").val(), 
    1621                action: "ba_sb_get_ex_code", 
     
    2631                    jQuery(".export_code").show(); 
    2732                } 
    28             }); 
     33            },"json"); 
    2934             
    3035            jQuery(".sc_ex_status").hide('3500'); 
     
    4146        jQuery(".im-results").hide('fast'); 
    4247        jQuery.ajaxSetup({ cache: false }); 
    43         jQuery.getJSON(ajaxurl, 
     48        jQuery.post(ajaxurl, 
    4449        {   import_code: jQuery("#import_code").val(), 
    4550            action: "ba_sb_Import_sc", 
     
    6570                    //jQuery("#export_code").val(data.code); 
    6671                } 
    67         }); 
     72        },"json"); 
    6873    }); 
    6974     
  • shortcodes-ui/trunk/readme.txt

    r543395 r580002  
    44Tags: shortcode, shortcodes ui, shortcode maker, shortcode generator, shortcodes, snippet, snippet manager, snippet ui, editor templates 
    55Requires at least: 2.9.2 
    6 Tested up to: 3.3.2 
    7 Stable tag: 1.8.2 
     6Tested up to: 3.4.1 
     7Stable tag: 1.8.4 
    88 
    99This Plugin adds an admin UI for creating shortcodes without the need to code, edit code, or even know code. 
     
    70706. shortcode ui panel insert to post button. 
    7171== Changelog == 
     721.8.4 Typo 
     73 
     741.8.3 Changed import to use post instead of get for larger imports 
     75 
    72761.8.2 Fixed WP_DEBUG errors. 
    7377 
  • shortcodes-ui/trunk/shortcode-maker.php

    r543395 r580002  
    44Plugin URI: http://en.bainternet.info 
    55Description: Admin UI for creating ShortCodes in WordPress removing the need for you to write any code. 
    6 Version: 1.8.2 
     6Version: 1.8.4 
    77Author: Bainternet 
    88Author URI: http://en.bainternet.info 
     
    14751475        public function sc_ui_ajax_export(){ 
    14761476            check_ajax_referer( 'sc_ui_Get_Export_code', 'seq' ); 
    1477             if (!isset($_GET['sc_ids'])){ 
     1477            if (!isset($_POST['sc_ids'])){ 
    14781478                echo json_encode($re['errors'] = __('No ShortCode were found!')); 
    14791479                die(); 
    14801480            } 
    14811481             
    1482             foreach ((array)$_GET['sc_ids'] as $p){ 
     1482            foreach ((array)$_POST['sc_ids'] as $p){ 
    14831483                $re['code'][] = $this->get_shortcode_export($p); 
    14841484            } 
     
    15221522        public function sc_ui_ajax_import(){ 
    15231523            check_ajax_referer( 'sc_ui_Import_sc', 'seq2' ); 
    1524             if (!isset($_GET['import_code'])){ 
     1524            if (!isset($_POST['import_code'])){ 
    15251525                echo json_encode($re['errors'] = __('No Import Code Was Found!')); 
    15261526                die(); 
     
    15281528             
    15291529            //prepare import code 
    1530             $import_code = $_GET['import_code']; 
     1530            $import_code = $_POST['import_code']; 
    15311531            $import_code = str_replace("<!*!* START export Code !*!*>\n","",$import_code); 
    15321532            $import_code = str_replace("\n<!*!* END export Code !*!*>","",$import_code); 
Note: See TracChangeset for help on using the changeset viewer.