WordPress.org

Make WordPress Core

Changeset 46719


Ignore:
Timestamp:
11/12/2019 05:34:05 PM (21 months ago)
Author:
SergeyBiryukov
Message:

Bundled Themes: Update copyright year in readme.txt.

Add a unit test to ensure the year stays up to date.

Props dkarfa, SergeyBiryukov.
Fixes #48566.

Location:
trunk
Files:
11 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/readme.txt

    r46676 r46719  
    2323== Copyright ==
    2424
    25 Twenty Eleven WordPress Theme, Copyright 2011-2018 WordPress.org & Automattic.com
     25Twenty Eleven WordPress Theme, Copyright 2011-2019 WordPress.org & Automattic.com
    2626Twenty Eleven is Distributed under the terms of the GNU GPL
    2727
  • trunk/src/wp-content/themes/twentyfifteen/readme.txt

    r46676 r46719  
    3131== Copyright ==
    3232
    33 Twenty Fifteen WordPress Theme, Copyright 2014-2018 WordPress.org & Automattic.com
     33Twenty Fifteen WordPress Theme, Copyright 2014-2019 WordPress.org & Automattic.com
    3434Twenty Fifteen is distributed under the terms of the GNU GPL
    3535
  • trunk/src/wp-content/themes/twentyfourteen/readme.txt

    r46676 r46719  
    2323== Copyright ==
    2424
    25 Twenty Fourteen WordPress Theme, Copyright 2013-2018 WordPress.org & Automattic.com
     25Twenty Fourteen WordPress Theme, Copyright 2013-2019 WordPress.org & Automattic.com
    2626Twenty Fourteen is Distributed under the terms of the GNU GPL
    2727
  • trunk/src/wp-content/themes/twentynineteen/readme.txt

    r46676 r46719  
    2525== Copyright ==
    2626
    27 Twenty Nineteen WordPress Theme, Copyright 2018 WordPress.org
     27Twenty Nineteen WordPress Theme, Copyright 2018-2019 WordPress.org
    2828Twenty Nineteen is distributed under the terms of the GNU GPL
    2929
     
    6767== Resources ==
    6868* normalize.css, © 2012-2018 Nicolas Gallagher and Jonathan Neal, MIT
    69 * Underscores, © 2012-2018 Automattic, Inc., GNU GPL v2 or later
     69* Underscores, © 2012-2019 Automattic, Inc., GNU GPL v2 or later
  • trunk/src/wp-content/themes/twentynineteen/style-rtl.css

    r46676 r46719  
    1717Use it to make something cool, have fun, and share what you've learned with others.
    1818
    19 Twenty Nineteen is based on Underscores https://underscores.me/, (C) 2012-2018 Automattic, Inc.
     19Twenty Nineteen is based on Underscores https://underscores.me/, (C) 2012-2019 Automattic, Inc.
    2020Underscores is distributed under the terms of the GNU GPL v2 or later.
    2121
  • trunk/src/wp-content/themes/twentynineteen/style.css

    r46586 r46719  
    1616Use it to make something cool, have fun, and share what you've learned with others.
    1717
    18 Twenty Nineteen is based on Underscores https://underscores.me/, (C) 2012-2018 Automattic, Inc.
     18Twenty Nineteen is based on Underscores https://underscores.me/, (C) 2012-2019 Automattic, Inc.
    1919Underscores is distributed under the terms of the GNU GPL v2 or later.
    2020
  • trunk/src/wp-content/themes/twentynineteen/style.scss

    r46587 r46719  
    1515Use it to make something cool, have fun, and share what you've learned with others.
    1616
    17 Twenty Nineteen is based on Underscores https://underscores.me/, (C) 2012-2018 Automattic, Inc.
     17Twenty Nineteen is based on Underscores https://underscores.me/, (C) 2012-2019 Automattic, Inc.
    1818Underscores is distributed under the terms of the GNU GPL v2 or later.
    1919
  • trunk/src/wp-content/themes/twentyseventeen/readme.txt

    r46718 r46719  
    2323== Copyright ==
    2424
    25 Twenty Seventeen WordPress Theme, Copyright 2016 WordPress.org
     25Twenty Seventeen WordPress Theme, Copyright 2016-2019 WordPress.org
    2626Twenty Seventeen is distributed under the terms of the GNU GPL
    2727
  • trunk/src/wp-content/themes/twentysixteen/readme.txt

    r46676 r46719  
    2929== Copyright ==
    3030
    31 Twenty Sixteen WordPress Theme, Copyright 2014-2018 WordPress.org
     31Twenty Sixteen WordPress Theme, Copyright 2014-2019 WordPress.org
    3232Twenty Sixteen is distributed under the terms of the GNU GPL
    3333
  • trunk/src/wp-content/themes/twentyten/readme.txt

    r46676 r46719  
    2222== Copyright ==
    2323
    24 Twenty Ten WordPress Theme, Copyright 2010-2018 WordPress.org & Automattic.com
     24Twenty Ten WordPress Theme, Copyright 2010-2019 WordPress.org & Automattic.com
    2525Twenty Ten is Distributed under the terms of the GNU GPL
    2626
  • trunk/src/wp-content/themes/twentythirteen/readme.txt

    r46676 r46719  
    2222== Copyright ==
    2323
    24 Twenty Thirteen WordPress Theme, Copyright 2013-2018 WordPress.org & Automattic.com
     24Twenty Thirteen WordPress Theme, Copyright 2013-2019 WordPress.org & Automattic.com
    2525Twenty Thirteen is Distributed under the terms of the GNU GPL
    2626
  • trunk/tests/phpunit/tests/theme.php

    r46586 r46719  
    212212
    213213    /**
     214     * @ticket 48566
     215     */
     216    function test_year_in_readme() {
     217        // This test is designed to only run on trunk/master.
     218        $this->skipOnAutomatedBranches();
     219
     220        foreach ( $this->default_themes as $theme ) {
     221            $wp_theme = wp_get_theme( $theme );
     222
     223            $path_to_readme_txt = $wp_theme->get_theme_root() . '/' . $wp_theme->get_stylesheet() . '/readme.txt';
     224            $this->assertFileExists( $path_to_readme_txt );
     225            $readme    = file_get_contents( $path_to_readme_txt );
     226            $this_year = gmdate( 'Y' );
     227
     228            preg_match( '#Copyright (\d+) WordPress.org#', $readme, $matches );
     229            if ( $matches ) {
     230                $this->assertEquals( $this_year, trim( $matches[1] ), "Bundled themes readme.txt's year needs to be updated to $this_year." );
     231            }
     232
     233            preg_match( '#Copyright 20\d\d-(\d+) WordPress.org#', $readme, $matches );
     234            if ( $matches ) {
     235                $this->assertEquals( $this_year, trim( $matches[1] ), "Bundled themes readme.txt's year needs to be updated to $this_year." );
     236            }
     237        }
     238    }
     239
     240    /**
    214241     * @ticket 20897
    215242     * @expectedDeprecated get_theme_data
Note: See TracChangeset for help on using the changeset viewer.