Plugin Directory

Changeset 2061522


Ignore:
Timestamp:
04/02/2019 12:09:15 PM (7 years ago)
Author:
mgibbs189
Message:

CFS 2.5.13

Location:
custom-field-suite/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • custom-field-suite/trunk/assets/js/validation.js

    r1646166 r2061522  
    7171            'loop': function(el) {
    7272                var rows = [];
    73                 el.find('.loop_wrapper').each(function(index) {
     73                el.find('> .cfs_loop > .loop_wrapper').each(function(index) {
    7474                    rows.push(index);
    7575                });
  • custom-field-suite/trunk/cfs.php

    r1784827 r2061522  
    44Plugin URI: http://customfieldsuite.com/
    55Description: Visually add custom fields to your WordPress edit pages.
    6 Version: 2.5.12
     6Version: 2.5.13
    77Author: Matt Gibbs
    88Text Domain: cfs
     
    2323
    2424        // setup variables
    25         define( 'CFS_VERSION', '2.5.12' );
     25        define( 'CFS_VERSION', '2.5.13' );
    2626        define( 'CFS_DIR', dirname( __FILE__ ) );
    27         define( 'CFS_URL', plugins_url( 'custom-field-suite' ) );
     27        define( 'CFS_URL', plugins_url( '', __FILE__ ) );
    2828
    2929        // get the gears turning
  • custom-field-suite/trunk/includes/api.php

    r1581223 r2061522  
    130130                        }
    131131
    132                         $field_data[ $hierarchy ][] = $result->meta_value;
     132                        if ( is_array( $field_data[ $hierarchy ] ) ) {
     133                            $field_data[ $hierarchy ][] = $result->meta_value;
     134                        }
     135                        else {
     136                            $field_data[ $hierarchy ] = [ $result->meta_value ];
     137                        }
    133138                    }
    134139
  • custom-field-suite/trunk/includes/field_group.php

    r1269996 r2061522  
    254254        $deleted_field_ids = array_diff( array_keys( $prev_fields ), $current_field_ids );
    255255
     256        // Filter deleted field IDs before deleting meta
     257        $deleted_field_ids = apply_filters( 'cfs_deleted_field_ids', $deleted_field_ids );
     258
    256259        if ( 0 < count( $deleted_field_ids ) ) {
    257260            $deleted_field_ids = implode( ',', $deleted_field_ids );
  • custom-field-suite/trunk/includes/third_party.php

    r1269996 r2061522  
    1313
    1414        // Duplicate Post - http://wordpress.org/plugins/duplicate-post/
    15         add_action( 'dp_duplicate_post', array( $this, 'duplicate_post' ), 20, 2 );
    16         add_action( 'dp_duplicate_page', array( $this, 'duplicate_post' ), 20, 2 );
     15        add_action( 'dp_duplicate_post', array( $this, 'duplicate_post' ), 100, 2 );
     16        add_action( 'dp_duplicate_page', array( $this, 'duplicate_post' ), 100, 2 );
    1717    }
    1818
  • custom-field-suite/trunk/readme.txt

    r1853629 r2061522  
    22Contributors: mgibbs189
    33Tags: custom fields, fields, postmeta, relationship, repeater, file upload
    4 Requires at least: 4.7
    5 Tested up to: 4.9.5
     4Requires at least: 4.9
     5Tested up to: 5.1.1
    66Stable tag: trunk
    77License: GPLv2
     
    4747== Changelog ==
    4848
     49= 2.5.13 =
     50* New: ability to filter IDs before deleting associated meta (props @chrisvanpatten)
     51* Fix: nested loops count validation (props @felipeelia)
     52* Fix: PHP 7.1+ compatibility in api.php (props @adrianwaler)
     53* Fix: change the priority of the `duplicate_post` hook
     54
    4955= 2.5.12 =
    5056* Fix: WP 4.9+ TinyMCE javascript issue
Note: See TracChangeset for help on using the changeset viewer.