Changeset 10061
- Timestamp:
- 07/11/2020 12:42:22 AM (4 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
r10060 r10061 12 12 $branch = WP_CORE_STABLE_BRANCH; 13 13 14 $canonical_url = get_permalink();15 16 14 if ( 17 15 isset( $_GET['branch'] ) … … 20 18 ) { 21 19 $branch = $matches[0]; 22 23 $canonical_url = add_query_arg( 'branch', $branch, $canonical_url );24 20 } 25 21 … … 32 28 33 29 if ( ! empty( $_GET['ajaxupdate'] ) ) { 34 header( 'Link: <' . $canonical_url. '>; rel="canonical"' );30 header( 'Link: <' . get_permalink() . '>; rel="canonical"' ); 35 31 36 32 die( esc_html( number_format_i18n( $num ) ) ); … … 39 35 if ( ! empty( $_GET['json'] ) ) { 40 36 header( 'Content-Type: application/json' ); 41 header( 'Link: <' . $canonical_url. '>; rel="canonical"' );37 header( 'Link: <' . get_permalink() . '>; rel="canonical"' ); 42 38 43 39 ?> … … 90 86 <link href="//fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet" type="text/css"> 91 87 <meta name="viewport" content="width=device-width,initial-scale=1.0"> 92 <link rel="canonical" href="<?php echo esc_url( $canonical_url ); ?>">93 88 <meta name="description" content="<?php echo esc_attr( $meta_desc_text ); ?>"> 94 89 <style type="text/css">
Note: See TracChangeset
for help on using the changeset viewer.