Changeset 2931047
- Timestamp:
- 06/26/2023 04:53:36 PM (3 years ago)
- Location:
- custom-field-suite/trunk
- Files:
-
- 6 edited
-
cfs.php (modified) (2 diffs)
-
includes/fields/loop.php (modified) (1 diff)
-
includes/fields/select.php (modified) (1 diff)
-
includes/form.php (modified) (1 diff)
-
includes/third_party.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-field-suite/trunk/cfs.php
r2910695 r2931047 3 3 Plugin Name: Custom Field Suite 4 4 Description: Visually add custom fields to your WordPress edit pages. 5 Version: 2.6. 35 Version: 2.6.4 6 6 Author: Matt Gibbs 7 7 Text Domain: cfs … … 22 22 23 23 // setup variables 24 define( 'CFS_VERSION', '2.6. 3' );24 define( 'CFS_VERSION', '2.6.4' ); 25 25 define( 'CFS_DIR', dirname( __FILE__ ) ); 26 26 define( 'CFS_URL', plugins_url( '', __FILE__ ) ); -
custom-field-suite/trunk/includes/fields/loop.php
r2287953 r2931047 3 3 class cfs_loop extends cfs_field 4 4 { 5 public $values; 5 6 6 7 function __construct() { -
custom-field-suite/trunk/includes/fields/select.php
r2287953 r2931047 3 3 class cfs_select extends cfs_field 4 4 { 5 public $select2_inserted; 5 6 6 7 function __construct() { -
custom-field-suite/trunk/includes/form.php
r2287953 r2931047 342 342 $validator = ''; 343 343 344 if ( in_array( $field->type, [ 'relationship', ' user', 'loop' ] ) ) {344 if ( in_array( $field->type, [ 'relationship', 'term', 'user', 'loop' ] ) ) { 345 345 $min = empty( $field->options['limit_min'] ) ? 0 : (int) $field->options['limit_min']; 346 346 $max = empty( $field->options['limit_max'] ) ? 0 : (int) $field->options['limit_max']; -
custom-field-suite/trunk/includes/third_party.php
r2910695 r2931047 20 20 /** 21 21 * WPML support 22 * 22 * 23 23 * 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 29 29 * @since 1.6.8 30 30 */ … … 40 40 /** 41 41 * Post Type Switcher support 42 * @param array $args 42 * @param array $args 43 43 * @return array 44 44 * @since 1.8.1 45 45 */ 46 46 function pts_post_type_filter( $args ) { 47 global $current_screen; 47 if ( function_exists( 'get_current_screen' ) ) { 48 $screen = get_current_screen(); 48 49 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 } 51 53 } 52 54 … … 63 65 function duplicate_post($new_post_id, $post) { 64 66 $field_data = CFS()->get( false, $post->ID, [ 'format' => 'raw' ] ); 65 67 66 68 if ( is_array( $field_data ) ) { 67 69 foreach ( $field_data as $key => $value ) { … … 71 73 } 72 74 } 73 75 74 76 $post_data = [ 'ID' => $new_post_id ]; 75 77 CFS()->save( $field_data, $post_data ); -
custom-field-suite/trunk/readme.txt
r2910695 r2931047 3 3 Tags: custom fields, fields, postmeta, relationship, repeater, file upload 4 4 Requires at least: 5.0 5 Tested up to: 6.2 5 Tested up to: 6.2.2 6 6 Stable tag: trunk 7 7 License: GPLv2 … … 47 47 == Changelog == 48 48 49 = 2.6.4 = 50 * Fixed: cleared PHP8 deprecation notices 51 49 52 = 2.6.3 = 50 53 * Fixed: possible placement rules XSS (props Patchstack)
Note: See TracChangeset
for help on using the changeset viewer.