Plugin Directory

Changeset 3165751


Ignore:
Timestamp:
10/09/2024 12:04:57 PM (18 months ago)
Author:
thegulshankumar
Message:

Fixed: Alt text input field now only displays for image media types, preventing confusion for users when editing other media types.

Location:
media-alt-text-manager
Files:
49 added
2 edited

Legend:

Unmodified
Added
Removed
  • media-alt-text-manager/trunk/media-alt-text-manager.php

    r3165283 r3165751  
    44 * Plugin URI: https://wordpress.org/plugins/media-alt-text-manager/
    55 * Description: Adds a sortable Alt Text column to the media library for quick alt text management.
    6  * Version: 1.0.0
     6 * Version: 1.0.1
    77 * Author: Gulshan Kumar
    88 * Author URI: https://www.gulshankumar.net
     
    109109 */
    110110function matm_display_edit_alt_text_column( $column_name, $post_id ) {
    111     if ( $column_name === 'alt_text_edit' ) {
     111    if ( $column_name === 'alt_text_edit' && wp_attachment_is_image( $post_id ) ) {
    112112        // Check if the user can edit their own image or is an admin/editor
    113113        if ( current_user_can( 'edit_post', $post_id ) || ( current_user_can( 'upload_files' ) && get_post_field( 'post_author', $post_id ) === get_current_user_id() ) ) {
  • media-alt-text-manager/trunk/readme.txt

    r3165476 r3165751  
    66Requires PHP: 7.2
    77Tested up to: 6.6.2
    8 Stable tag: 1.0.0
     8Stable tag: 1.0.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141== Changelog ==
    4242
     43= 1.0.1 =
     44* Fixed: Alt text input field now only displays for image media types, preventing confusion for users when editing other media types.
     45
    4346= 1.0.0 =
    4447* Initial release
Note: See TracChangeset for help on using the changeset viewer.