Changeset 6277 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/widgets/class-wporg-widget-download.php
- Timestamp:
- 12/15/2017 12:13:33 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/widgets/class-wporg-widget-download.php
r6063 r6277 24 24 public function __construct() { 25 25 parent::__construct( 'wporg_download', __( 'Download', 'wporg' ), array( 26 'classname' => 'widget_download',27 'description' => __( 'WordPress download button.', 'wporg' ),26 'classname' => 'widget_download', 27 'description' => __( 'WordPress download button.', 'wporg' ), 28 28 'customize_selective_refresh' => true, 29 29 ) ); … … 51 51 } 52 52 53 // phpcs:disable WordPress.XSS.EscapeOutput.OutputNotEscaped 54 53 55 echo $args['before_widget']; 54 56 ?> 55 57 <div> 56 58 <a class="button button-primary button-large" href="<?php echo esc_url( $latest_release['zip_url'] ); ?>" role="button"> 57 <?php echo apply_filters( 'no_orphans', sprintf( __( 'Download WordPress %s', 'wporg' ), $latest_release['version'] ) ); ?> 59 <?php 60 echo apply_filters( 'no_orphans', sprintf( 61 /* translators: WordPress version. */ 62 __( 'Download WordPress %s', 'wporg' ), 63 $latest_release['version'] 64 ) ); 65 ?> 58 66 </a> 59 <div><?php printf( __( '.zip — %s MB', 'wporg' ), esc_html( $latest_release['zip_size_mb'] ) ); ?></div> 67 <div> 68 <?php 69 printf( 70 /* translators: Size of .zip file. */ 71 __( '.zip — %s MB', 'wporg' ), 72 esc_html( $latest_release['zip_size_mb'] ) 73 ); 74 ?> 75 </div> 60 76 </div> 61 77 62 78 <div> 63 79 <a href="<?php echo esc_url( $latest_release['targz_url'] ); ?>"> 64 <?php printf( __( 'Download .tar.gz — %s MB', 'wporg' ), esc_html( $latest_release['tar_size_mb'] ) ); ?> 80 <?php 81 printf( 82 /* translators: Size of .tar.gz file. */ 83 __( 'Download .tar.gz — %s MB', 'wporg' ), 84 esc_html( $latest_release['tar_size_mb'] ) 85 ); 86 ?> 65 87 </a> 66 88 </div>
Note: See TracChangeset
for help on using the changeset viewer.