Plugin Directory

Changeset 2931047


Ignore:
Timestamp:
06/26/2023 04:53:36 PM (3 years ago)
Author:
mgibbs189
Message:

CFS 2.6.4

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

Legend:

Unmodified
Added
Removed
  • custom-field-suite/trunk/cfs.php

    r2910695 r2931047  
    33Plugin Name: Custom Field Suite
    44Description: Visually add custom fields to your WordPress edit pages.
    5 Version: 2.6.3
     5Version: 2.6.4
    66Author: Matt Gibbs
    77Text Domain: cfs
     
    2222
    2323        // setup variables
    24         define( 'CFS_VERSION', '2.6.3' );
     24        define( 'CFS_VERSION', '2.6.4' );
    2525        define( 'CFS_DIR', dirname( __FILE__ ) );
    2626        define( 'CFS_URL', plugins_url( '', __FILE__ ) );
  • custom-field-suite/trunk/includes/fields/loop.php

    r2287953 r2931047  
    33class cfs_loop extends cfs_field
    44{
     5    public $values;
    56
    67    function __construct() {
  • custom-field-suite/trunk/includes/fields/select.php

    r2287953 r2931047  
    33class cfs_select extends cfs_field
    44{
     5    public $select2_inserted;
    56
    67    function __construct() {
  • custom-field-suite/trunk/includes/form.php

    r2287953 r2931047  
    342342            $validator = '';
    343343
    344             if ( in_array( $field->type, [ 'relationship', 'user', 'loop' ] ) ) {
     344            if ( in_array( $field->type, [ 'relationship', 'term', 'user', 'loop' ] ) ) {
    345345                $min = empty( $field->options['limit_min'] ) ? 0 : (int) $field->options['limit_min'];
    346346                $max = empty( $field->options['limit_max'] ) ? 0 : (int) $field->options['limit_max'];
  • custom-field-suite/trunk/includes/third_party.php

    r2910695 r2931047  
    2020    /**
    2121     * WPML support
    22      * 
     22     *
    2323     * Properly copy CFS fields on WPML post duplication (requires WPML 2.6+)
    24      * 
    25      * @param int $master_id 
    26      * @param string $lang 
    27      * @param array $post_data 
    28      * @param int $duplicate_id 
     24     *
     25     * @param int $master_id
     26     * @param string $lang
     27     * @param array $post_data
     28     * @param int $duplicate_id
    2929     * @since 1.6.8
    3030     */
     
    4040    /**
    4141     * Post Type Switcher support
    42      * @param array $args 
     42     * @param array $args
    4343     * @return array
    4444     * @since 1.8.1
    4545     */
    4646    function pts_post_type_filter( $args ) {
    47         global $current_screen;
     47        if ( function_exists( 'get_current_screen' ) ) {
     48            $screen = get_current_screen();
    4849
    49         if ( 'cfs' == $current_screen->id ) {
    50             $args = [ 'public' => false, 'show_ui' => true ];
     50            if ( isset( $current_screen->id ) && 'cfs' == $current_screen->id ) {
     51                $args = [ 'public' => false, 'show_ui' => true ];
     52            }
    5153        }
    5254
     
    6365    function duplicate_post($new_post_id, $post) {
    6466        $field_data = CFS()->get( false, $post->ID, [ 'format' => 'raw' ] );
    65        
     67
    6668        if ( is_array( $field_data ) ) {
    6769            foreach ( $field_data as $key => $value ) {
     
    7173            }
    7274        }
    73        
     75
    7476        $post_data = [ 'ID' => $new_post_id ];
    7577        CFS()->save( $field_data, $post_data );
  • custom-field-suite/trunk/readme.txt

    r2910695 r2931047  
    33Tags: custom fields, fields, postmeta, relationship, repeater, file upload
    44Requires at least: 5.0
    5 Tested up to: 6.2
     5Tested up to: 6.2.2
    66Stable tag: trunk
    77License: GPLv2
     
    4747== Changelog ==
    4848
     49= 2.6.4 =
     50* Fixed: cleared PHP8 deprecation notices
     51
    4952= 2.6.3 =
    5053* Fixed: possible placement rules XSS (props Patchstack)
Note: See TracChangeset for help on using the changeset viewer.