Making WordPress.org

Ticket #3817: 3817.diff

File 3817.diff, 1.1 KB (added by RMarks, 6 years ago)
  • wordcamp.org/public_html/wp-content/plugins/wc-canonical-years/wc-canonical-years.php

    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
     
    33/*
    44 * Plugin Name: WordCamp.org Canonical Years
    55 * 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.
    77 */
    88
    99class WordCamp_Canonical_Years_Plugin {
    class WordCamp_Canonical_Years_Plugin { 
    6969                        "%.{$city_domain}"
    7070                ) );
    7171
    72                 if ( $latest_domain !== $current_domain && $latest_domain ) {
     72                if ( $latest_domain ) {
    7373                        printf(
    7474                                '<link rel="canonical" href="%s" />' . "\n",
    7575                                set_url_scheme( esc_url( trailingslashit( $latest_domain ) ) )