Changeset 2639
- Timestamp:
- 02/26/2016 07:49:53 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
r2625 r2639 46 46 $zip_files = get_attached_media( 'application/zip', $post ); 47 47 $zip_file = current( $zip_files ); 48 $zip_url = wp_get_attachment_url( $zip_file->ID ); 48 49 49 if ( $zip_ file) :50 if ( $zip_url ) : 50 51 ?> 51 52 52 53 <p style="padding: 0 10px;"> 53 <?php printf( __( '<strong>Zip file:</strong> %s' ), sprintf( '<a href="%s">%s</a>', esc_url( $zip_ file->guid ), $zip_file->guid) ); ?>54 <?php printf( __( '<strong>Zip file:</strong> %s' ), sprintf( '<a href="%s">%s</a>', esc_url( $zip_url ), esc_html( $zip_url ) ) ); ?> 54 55 </p> 55 56
Note: See TracChangeset
for help on using the changeset viewer.