WordPress.org

Make WordPress Core

Ticket #24476: manage_media_custom_column_action.diff

File manage_media_custom_column_action.diff, 504 bytes (added by nickdaugherty, 23 months ago)

Replaces $id with $post->ID

  • wp-admin/includes/class-wp-media-list-table.php

     
    377377                } 
    378378?> 
    379379                <td <?php echo $attributes ?>> 
    380                         <?php do_action( 'manage_media_custom_column', $column_name, $id ); ?> 
     380                        <?php do_action( 'manage_media_custom_column', $column_name, $post->ID ); ?> 
    381381                </td> 
    382382<?php 
    383383                break;