Changeset 8198
- Timestamp:
- 02/05/2019 08:17:53 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download-counter.php
r7432 r8198 12 12 $branch = WP_CORE_STABLE_BRANCH; 13 13 14 $canonical_url = get_permalink(); 15 14 16 if ( 15 17 isset( $_GET['branch'] ) … … 18 20 ) { 19 21 $branch = $matches[0]; 22 23 $canonical_url = add_query_arg( 'branch', $branch, $canonical_url ); 20 24 } 21 25 … … 44 48 /* translators: 1: version number; 2: download count; */ 45 49 $text = __( 'WordPress %1$s has been downloaded %2$s times', 'wporg' ); 50 51 /* translators: 1: date; 2: version number; 3: download count; */ 52 $meta_desc_text = __( 'As of %1$s, WordPress %2$s has been downloaded over %3$s times - watch that number increase in real time!', 'wporg' ); 46 53 } else { 47 54 /* translators: 1: version number; 2: download count; */ 48 55 $text = __( 'WordPress %1$s was downloaded %2$s times', 'wporg' ); 49 } 56 57 /* translators: 1: date; 2: version number; 3: download count; */ 58 $meta_desc_text = __( 'As of %1$s, WordPress %2$s was downloaded over %3$s times.', 'wporg' ); 59 } 60 61 // Page meta description 62 $meta_desc_text = sprintf( 63 $meta_desc_text, 64 date_i18n( 'F jS Y' ), 65 $branch, 66 number_format_i18n( $num ) 67 ); 68 50 69 ?> 51 70 <!DOCTYPE html> … … 56 75 <link href="//fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet" type="text/css"> 57 76 <meta name="viewport" content="width=device-width,initial-scale=1.0"> 77 <link rel="canonical" href="<?php echo esc_url( $canonical_url ); ?>"> 78 <meta name="description" conntent="<?php echo esc_attr( $meta_desc_text ); ?>"> 79 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 80 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 81 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 82 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 83 })(window,document,'script','dataLayer','GTM-P24PF4B');</script> 58 84 <style type="text/css"> 59 85 html, … … 191 217 192 218 <body> 219 <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P24PF4B" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 193 220 <div class="something-semantic"> 194 221 <div class="something-else-semantic">
Note: See TracChangeset
for help on using the changeset viewer.