Plugin Directory

Changeset 2848680


Ignore:
Timestamp:
01/15/2023 02:21:04 PM (3 years ago)
Author:
wptableeditor
Message:

Code Optimization

Location:
wp-table-editor/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • wp-table-editor/trunk/assets/css/admin.css

    r2833890 r2848680  
    210210    }
    211211    #xs-select-all {
    212         display: none;
     212        /*display: none;*/
    213213    }
    214214}
     
    485485    line-height: 36px;
    486486}
     487body.mobile.modal-open #wpwrap {
     488    position: relative !important;
     489}
     490@media screen and (max-width: 782px){
     491    .wp-core-ui .button {
     492        min-height: 32px;
     493        line-height: 1;
     494    }
     495}
  • wp-table-editor/trunk/includes/admin/column.php

    r2847538 r2848680  
    165165                                    <option value="">textarea</option>
    166166                                    <option value="text">text</option>
     167                                    <option value="id">id</option>
    167168                                    <option value="url">url</option>
    168169                                    <option value="date">date</option>
  • wp-table-editor/trunk/includes/admin/row_action.php

    r2833890 r2848680  
    108108                    }elseif($order_types[$x] === 'html'){
    109109                        $sub_array[] = htmlentities($value);
     110                    }elseif($order_types[$x] === 'id'){
     111                        $sub_array[] = $row['column_id'];
    110112                    }else{
    111113                        $sub_array[] = $value;
     
    176178            $rows = array();
    177179            foreach($data as $key => $row){
    178                 $rows[$key] = stripslashes(wp_kses_post(trim($_POST[$key])));
     180                if(isset($_POST[$key])){
     181                    $rows[$key] = stripslashes(wp_kses_post(trim($_POST[$key])));
     182                }
    179183            }
    180184            if(!empty($row_id)){
    181185                $result = $wpdb->update($table, $rows, array('column_id' => $row_id));
    182             }
    183             if($result){
    184                 echo wp_kses_post('<div class="alert alert-success">'.esc_html__('Row Edited', 'wp-table-editor').'</div>');
     186                if($result){
     187                    echo wp_kses_post('<div class="alert alert-success">'.esc_html__('Row Edited', 'wp-table-editor').'</div>');
     188                }
    185189            }
    186190        }
  • wp-table-editor/trunk/includes/public/row_action.php

    r2833890 r2848680  
    100100                            }elseif($order_types[$x] === 'html'){
    101101                                $sub_array[] = htmlentities($value);
     102                            }elseif($order_types[$x] === 'id'){
     103                                $sub_array[] = $row['column_id'];
    102104                            }else{
    103105                                $sub_array[] = $value;
  • wp-table-editor/trunk/main.php

    r2848070 r2848680  
    44Plugin URI: https://wptableeditor.com/documentation/
    55Description: Table Editor is a WordPress plugin used to quickly create tables from Excel, CSV, JSON and other data sources. Allows you to create beautiful sortable and responsive tables inside your posts, pages, custom post types or widget area.
    6 Version: 1.1.8
     6Version: 1.1.9
    77Author: wptableeditor.com
    88Author URI: https://wptableeditor.com/
     
    1515if ( ! defined( 'WPTABLEEDITOR_ASSETS' ) ) define( 'WPTABLEEDITOR_ASSETS', plugins_url( 'assets/', __FILE__ ) );
    1616if ( ! defined( 'WPTABLEEDITOR_VENDOR' ) ) define( 'WPTABLEEDITOR_VENDOR', plugins_url( 'vendor/', __FILE__ ) );
    17 if ( ! defined( 'WPTABLEEDITOR_VERSION' ) ) define( 'WPTABLEEDITOR_VERSION', '1.1.8' );
     17if ( ! defined( 'WPTABLEEDITOR_VERSION' ) ) define( 'WPTABLEEDITOR_VERSION', '1.1.9' );
    1818if ( ! defined( 'WPTABLEEDITOR_SLUG' ) ) define( 'WPTABLEEDITOR_SLUG', basename( plugin_dir_path( __FILE__ ) ) );
    1919if ( ! defined( 'WPTABLEEDITOR_MAIN' ) ) define( 'WPTABLEEDITOR_MAIN', plugin_basename( __FILE__ ) );
     
    257257                    "User-Agent" => $site_url,
    258258                ),
    259                 'timeout' => 15
     259                'timeout' => 30
    260260            );
    261261            $url = add_query_arg( $option, self::$api_url );
  • wp-table-editor/trunk/readme.txt

    r2848080 r2848680  
    55Tested up to: 6.1.1
    66Requires PHP: 7.4
    7 Stable tag: 1.1.8
     7Stable tag: 1.1.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7575== Changelog ==
    7676
     77= 1.1.9 =
     78* Code Optimization
     79
    7780= 1.1.8 =
    78 * Other small bug fixes and stability improvements.
     81* Other small bug fixes and stability improvements
    7982
    8083= 1.1.7 =
    81 * Other small bug fixes and stability improvements.
     84* Other small bug fixes and stability improvements
    8285
    8386= 1.1.6 =
    84 * Other small bug fixes and stability improvements.
     87* Other small bug fixes and stability improvements
    8588
    8689= 1.1.5 =
    87 * Other small bug fixes and stability improvements.
     90* Other small bug fixes and stability improvements
    8891
    8992= 1.1.4 =
     
    9194
    9295= 1.1.3 =
    93 * Other small bug fixes and stability improvements.
     96* Other small bug fixes and stability improvements
    9497
    9598= 1.1.2 =
Note: See TracChangeset for help on using the changeset viewer.