Plugin Directory

Changeset 1369079


Ignore:
Timestamp:
03/11/2016 10:24:28 AM (10 years ago)
Author:
WebTechGlobal
Message:

Fix for deleting custom fields.

Location:
csv-2-post/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • csv-2-post/trunk/classes/class-requests.php

    r1355720 r1369079  
    12071207    * @package CSV 2 POST
    12081208    * @since 8.0.0
    1209     * @version 1.1
     1209    * @version 1.2
    12101210    */       
    12111211    public function deletecustomfieldrule() {
     
    12181218            return;   
    12191219        }
    1220        
    1221         if(!isset( $customfields_array['cflist'][$_GET['cfid']] ) ){
     1220   
     1221        if( !isset( $customfields_array['customfields']['cflist'][ $_GET['cfid'] ] ) ){
    12221222            $this->UI->create_notice( __( 'The ID submitted could not be found, it appears your custom field has already been deleted.' ), 'error', 'Small', __( 'ID Does Not Exist' ) );
    12231223            return;           
    12241224        }
    12251225       
    1226         unset( $customfields_array['cflist'][$_GET['cfid']] );
     1226        unset( $customfields_array['customfields']['cflist'][$_GET['cfid']] );
    12271227       
    12281228        $this->CSV2POST->update_project( $csv2post_settings['currentproject'], array( 'projectsettings' => maybe_serialize( $customfields_array ) ), true );
  • csv-2-post/trunk/csv-2-post.php

    r1368330 r1369079  
    22/*
    33Plugin Name: CSV 2 POST
    4 Version: 8.2.8
     4Version: 8.2.9
    55Plugin URI: http://www.webtechglobal.co.uk/csv-2-post
    66Description: CSV 2 POST data importer for WordPress by Ryan R. Bayne.
     
    3939             
    4040// define constants                             
    41 if(!defined( "CSV2POST_VERSION") ){define( "CSV2POST_VERSION", '8.2.8' );}
     41if(!defined( "CSV2POST_VERSION") ){define( "CSV2POST_VERSION", '8.2.9' );}
    4242if(!defined( "CSV2POST_TITLE") ){define( "CSV2POST_TITLE", 'CSV 2 POST' );}
    4343if(!defined( "CSV2POST__FILE__") ){define( "CSV2POST__FILE__", __FILE__);}
  • csv-2-post/trunk/readme.txt

    r1368330 r1369079  
    125125
    126126== Changelog ==
     127= 8.2.9 =
     128* Feature Changes
     129    * Can now delete custom field rules.
     130* Technical Changes     
     131    * None
     132
    127133= 8.2.8 =
    128134* Feature Changes
Note: See TracChangeset for help on using the changeset viewer.