Changeset 3337745
- Timestamp:
- 08/01/2025 10:49:51 AM (4 months ago)
- Location:
- acf-galerie-4/trunk
- Files:
-
- 3 edited
-
acf-galerie-4.php (modified) (2 diffs)
-
providers/class.register-field-type.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
acf-galerie-4/trunk/acf-galerie-4.php
r3244757 r3337745 9 9 * License: GPL v2 or later 10 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 * Version: 1.4. 111 * Version: 1.4.2 12 12 * Domain Path: /lang 13 13 * Requires PHP: 7.4 … … 24 24 25 25 public function initialize() { 26 $this->define( 'ACFG4_VERSION', '1.4. 1' );26 $this->define( 'ACFG4_VERSION', '1.4.2' ); 27 27 $this->define( 'ACFG4_PLUGIN', __FILE__ ); 28 28 $this->define( 'ACFG4_PLUGIN_BASENAME', plugin_basename( ACFG4_PLUGIN ) ); -
acf-galerie-4/trunk/providers/class.register-field-type.php
r3244757 r3337745 131 131 public function render_field( $field ) { 132 132 $attachments = array(); 133 if ( !empty( $field ) and !empty( $field['value'] ) ) {133 if ( !empty( $field ) && !empty( $field['value'] ) && is_array( $field['value'] ) ) { 134 134 $attachment_ids = array_map( 'intval', $field['value'] ); 135 135 $attachments = $this->transform( $attachment_ids ); … … 204 204 */ 205 205 function update_value( $value, $post_id, $field ) { 206 if ( empty( $value ) ) { 207 return array(); 208 } 206 if( empty( $value ) || !is_array( $value )) return array(); 209 207 210 208 return array_map( 'intval', $value ); … … 227 225 */ 228 226 function format_value( $value, $post_id, $field ) { 229 if( empty( $value ) ) return array();227 if( empty( $value ) || !is_array( $value )) return array(); 230 228 231 229 $attachment_ids = array_map( 'intval', $value ); -
acf-galerie-4/trunk/readme.txt
r3244757 r3337745 4 4 Tags: acf, gallery, images, videos, media 5 5 Requires at least: 5.8 6 Tested up to: 6. 77 Stable tag: 1.4. 16 Tested up to: 6.8 7 Stable tag: 1.4.2 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 46 46 47 47 == Changelog == 48 = 1.4.2 = 49 * [Fixed] array_keys() expects array, null issue in PHP 8.x 50 48 51 = 1.4.1 = 49 52 * [Added] Support for ACF Group and Repeater fields.
Note: See TracChangeset
for help on using the changeset viewer.