Make WordPress Core

Ticket #42942: 42942.diff

File 42942.diff, 716 bytes (added by lopo, 6 years ago)

Add a media_date_column_time filter

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

    ### Eclipse Workspace Patch 1.0
    #P src
    diff --git wp-admin/includes/class-wp-media-list-table.php wp-admin/includes/class-wp-media-list-table.php
    index 70cb1a9..c6a3938 100644
     
    454454                                $h_time = mysql2date( __( 'Y/m/d' ), $m_time );
    455455                        }
    456456                }
    457 
    458                 echo $h_time;
     457               
     458                /**
     459                 * Filters the published time of the post.
     460                 *
     461                 * @since 5.0
     462                 *
     463                 * @param string  $h_time      The published time.
     464                 * @param WP_Post $post        Post object.
     465                 * @param string  $column_name The column name.
     466                 */
     467                echo apply_filters( 'media_date_column_time', $h_time, $post, 'date' );
    459468        }
    460469
    461470        /**