Changeset 13113 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php
- Timestamp:
- 01/16/2024 05:04:43 AM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php
r13109 r13113 277 277 foreach ( $attached_media as $upload ) { 278 278 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>'; 284 281 echo '<li>' . sprintf( __( 'Upload Date: %s', 'wporg-plugins' ), date_i18n( get_option( 'date_format' ), strtotime( $upload->post_date ) ) ) . '</li>'; 285 282 echo '</ul></li>';
Note: See TracChangeset
for help on using the changeset viewer.