diff --git wordcamp.org/public_html/wp-content/plugins/wc-canonical-years/wc-canonical-years.php wordcamp.org/public_html/wp-content/plugins/wc-canonical-years/wc-canonical-years.php
index aa8bf3d..48c7bac 100644
|
|
|
3 | 3 | /* |
4 | 4 | * Plugin Name: WordCamp.org Canonical Years |
5 | 5 | * Author: Andrew Nacin |
6 | | * Description: Adds a rel="canonical" tag to the front page of WordCamps for previous years pointing to the current year, providing better SEOs. |
| 6 | * Description: Adds a rel="canonical" tag to the front page of WordCamps for current and previous years pointing to the current year, providing better SEOs. |
7 | 7 | */ |
8 | 8 | |
9 | 9 | class WordCamp_Canonical_Years_Plugin { |
… |
… |
class WordCamp_Canonical_Years_Plugin { |
69 | 69 | "%.{$city_domain}" |
70 | 70 | ) ); |
71 | 71 | |
72 | | if ( $latest_domain !== $current_domain && $latest_domain ) { |
| 72 | if ( $latest_domain ) { |
73 | 73 | printf( |
74 | 74 | '<link rel="canonical" href="%s" />' . "\n", |
75 | 75 | set_url_scheme( esc_url( trailingslashit( $latest_domain ) ) ) |