Changeset 3034 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-review-tools.php
- Timestamp:
- 04/28/2016 05:40:32 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-review-tools.php
r2978 r3034 9 9 class Review_Tools { 10 10 static function display() { 11 $post = get_post(); 12 $zip_files = get_attached_media( 'application/zip', $post ); 11 $post = get_post(); 13 12 14 if ( $zip_files) {15 $zip_ file = current( $zip_files);16 $zip_url = wp_get_attachment_url( $zip_file->ID ); 13 foreach ( get_attached_media( 'application/zip', $post ) as $zip_file ) { 14 $zip_url = wp_get_attachment_url( $zip_file->ID ); 15 17 16 printf( '<p>' . __( '<strong>Zip file:</strong> %s', 'wporg-plugins' ) . '</p>', 18 17 sprintf( '<a href="%s">%s</a>', esc_url( $zip_url ), esc_html( $zip_url ) )
Note: See TracChangeset
for help on using the changeset viewer.