Making WordPress.org


Ignore:
Timestamp:
01/16/2024 05:04:43 AM (8 months ago)
Author:
dd32
Message:

Plugin Directory: Submission: All uploaded zips now have this metadata attached, simplify the code added in [13109].

See #7384.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php

    r13109 r13113  
    277277                            foreach ( $attached_media as $upload ) {
    278278                                echo '<li><ul>';
    279                                 $filename = $upload->submitted_name ?: preg_replace( '!^[0-9-_]+!', '', basename( get_attached_file( $upload->ID ) ) );
    280                                 $version  = $upload->version ?: $plugin->version;
    281 
    282                                 echo '<li><code>' . esc_html( $filename ) . '</code></li>';
    283                                 echo '<li>' . sprintf( __( 'Version: %s', 'wporg-plugins' ), '<code>' . esc_html( $version ) . '</code>' ) . '</li>';
     279                                echo '<li><code>' . esc_html( $upload->submitted_name ) . '</code></li>';
     280                                echo '<li>' . sprintf( __( 'Version: %s', 'wporg-plugins' ), '<code>' . esc_html( $upload->version ) . '</code>' ) . '</li>';
    284281                                echo '<li>' . sprintf( __( 'Upload Date: %s', 'wporg-plugins' ), date_i18n( get_option( 'date_format' ), strtotime( $upload->post_date ) ) ) . '</li>';
    285282                                echo '</ul></li>';
Note: See TracChangeset for help on using the changeset viewer.