Changeset 3481588
- Timestamp:
- 03/13/2026 12:20:38 AM (2 weeks ago)
- Location:
- add-custom-fields-to-media
- Files:
-
- 26 added
- 4 edited
-
tags/2.0.4 (added)
-
tags/2.0.4/README.txt (added)
-
tags/2.0.4/add-custom-fields-to-media.php (added)
-
tags/2.0.4/admin (added)
-
tags/2.0.4/admin/class-add-custom-fields-to-media-admin.php (added)
-
tags/2.0.4/admin/css (added)
-
tags/2.0.4/admin/css/add-custom-fields-to-media-admin.css (added)
-
tags/2.0.4/admin/img (added)
-
tags/2.0.4/admin/img/acfm.svg (added)
-
tags/2.0.4/admin/index.php (added)
-
tags/2.0.4/admin/partials (added)
-
tags/2.0.4/admin/partials/add-custom-fields-to-media-admin-display.php (added)
-
tags/2.0.4/admin/partials/add-custom-fields-to-media-admin-footer.php (added)
-
tags/2.0.4/includes (added)
-
tags/2.0.4/includes/class-add-custom-fields-to-media-activator.php (added)
-
tags/2.0.4/includes/class-add-custom-fields-to-media-deactivator.php (added)
-
tags/2.0.4/includes/class-add-custom-fields-to-media-i18n.php (added)
-
tags/2.0.4/includes/class-add-custom-fields-to-media-loader.php (added)
-
tags/2.0.4/includes/class-add-custom-fields-to-media.php (added)
-
tags/2.0.4/includes/index.php (added)
-
tags/2.0.4/languages (added)
-
tags/2.0.4/languages/add-custom-fields-to-media.pot (added)
-
tags/2.0.4/public (added)
-
tags/2.0.4/public/class-add-custom-fields-to-media-public.php (added)
-
tags/2.0.4/public/index.php (added)
-
tags/2.0.4/uninstall.php (added)
-
trunk/add-custom-fields-to-media.php (modified) (2 diffs)
-
trunk/admin/partials/add-custom-fields-to-media-admin-display.php (modified) (2 diffs)
-
trunk/includes/class-add-custom-fields-to-media.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
add-custom-fields-to-media/trunk/add-custom-fields-to-media.php
r3319543 r3481588 11 11 * Plugin URI: https://wordpress.org/plugins/add-custom-fields-to-media/ 12 12 * Description: Allows users to add custom fields to the media uploader and access those fields in template files. Great for adding copyrights, image meta etc. 13 * Version: 2.0. 313 * Version: 2.0.4 14 14 * Author: George Pattichis 15 15 * Author URI: https://profiles.wordpress.org/pattihis// … … 30 30 * @since 2.0.0 31 31 */ 32 define( 'ADD_CUSTOM_FIELDS_TO_MEDIA_VERSION', '2.0. 3' );32 define( 'ADD_CUSTOM_FIELDS_TO_MEDIA_VERSION', '2.0.4' ); 33 33 34 34 /** -
add-custom-fields-to-media/trunk/admin/partials/add-custom-fields-to-media-admin-display.php
r3019065 r3481588 37 37 38 38 if ( ( isset( $_GET['delete'] ) && ! empty( $_GET['delete'] ) ) && is_array( $media_custom_fields ) ) { 39 if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'acfm_delete_field' ) ) { 40 wp_die( esc_html__( 'Security check failed.', 'add-custom-fields-to-media' ) ); 41 } 42 $new_custom_fields = array(); 39 43 foreach ( $media_custom_fields as $check_for_delete ) { 40 44 if ( urldecode( sanitize_text_field( wp_unslash( $_GET['delete'] ) ) ) !== $check_for_delete['unique_id'] ) { … … 70 74 <td><?php echo esc_html( $custom_field['name'] ); ?></td> 71 75 <td><?php echo esc_html( $custom_field['help'] ); ?></td> 72 <td><a href="<?php echo esc_url( 'options-general.php?page=add-custom-fields-to-media&delete=' . $custom_field['unique_id']); ?>" style="text-decoration: none;" title="Delete Field"><span class="dashicons dashicons-trash"></span></a></td>76 <td><a href="<?php echo esc_url( wp_nonce_url( 'options-general.php?page=add-custom-fields-to-media&delete=' . $custom_field['unique_id'], 'acfm_delete_field' ) ); ?>" style="text-decoration: none;" title="Delete Field"><span class="dashicons dashicons-trash"></span></a></td> 73 77 </tr> 74 78 <?php } ?> -
add-custom-fields-to-media/trunk/includes/class-add-custom-fields-to-media.php
r3319543 r3481588 65 65 $this->version = ADD_CUSTOM_FIELDS_TO_MEDIA_VERSION; 66 66 } else { 67 $this->version = '2.0. 3';67 $this->version = '2.0.4'; 68 68 } 69 69 $this->plugin_name = 'add-custom-fields-to-media'; -
add-custom-fields-to-media/trunk/readme.txt
r3319544 r3481588 5 5 Donate link: https://profiles.wordpress.org/pattihis/ 6 6 Requires at least: 5.2 7 Tested up to: 6. 87 Tested up to: 6.9.4 8 8 Requires PHP: 7.2 9 Stable tag: 2.0. 39 Stable tag: 2.0.4 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 64 64 == Changelog == 65 65 66 = 2.0.4 = 67 * Security: Fix CSRF vulnerability in custom field deletion (CVE-2025-4068) 68 * Compatibility with WordPress v6.9 69 66 70 = 2.0.3 = 67 71 * Full compliance with WordPress Coding Standards (PHPCS)
Note: See TracChangeset
for help on using the changeset viewer.