Make WordPress Core

Changeset 46721 for branches/5.3


Ignore:
Timestamp:
11/12/2019 06:04:34 PM (5 years 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.
Merges [46719] and [46720] to the 5.3 branch.
Fixes #48566.

Location:
branches/5.3
Files:
14 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/5.3

  • branches/5.3/src/wp-content/themes/twentyeleven/readme.txt

    r46699 r46721  
    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
  • branches/5.3/src/wp-content/themes/twentyfifteen/readme.txt

    r46699 r46721  
    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
  • branches/5.3/src/wp-content/themes/twentyfourteen/readme.txt

    r46699 r46721  
    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
  • branches/5.3/src/wp-content/themes/twentynineteen/readme.txt

    r46699 r46721  
    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
  • branches/5.3/src/wp-content/themes/twentynineteen/style-rtl.css

    r46699 r46721  
    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
  • branches/5.3/src/wp-content/themes/twentynineteen/style.css

    r46234 r46721  
    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
  • branches/5.3/src/wp-content/themes/twentynineteen/style.scss

    r45773 r46721  
    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
  • branches/5.3/src/wp-content/themes/twentyseventeen/readme.txt

    r46720 r46721  
    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
  • branches/5.3/src/wp-content/themes/twentysixteen/readme.txt

    r46699 r46721  
    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
  • branches/5.3/src/wp-content/themes/twentyten/readme.txt

    r46699 r46721  
    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
  • branches/5.3/src/wp-content/themes/twentythirteen/readme.txt

    r46699 r46721  
    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
  • branches/5.3/src/wp-content/themes/twentytwelve/readme.txt

    r46699 r46721  
    2222== Copyright ==
    2323
    24 Twenty Twelve WordPress Theme, Copyright 2012-2018 WordPress.org & Automattic.com
     24Twenty Twelve WordPress Theme, Copyright 2012-2019 WordPress.org & Automattic.com
    2525Twenty Twelve is Distributed under the terms of the GNU GPL
    2626
  • branches/5.3/src/wp-content/themes/twentytwenty/readme.txt

    r46699 r46721  
    6969
    7070Code from Twenty Nineteen
    71 Copyright (c) 2018 WordPress.org
     71Copyright (c) 2018-2019 WordPress.org
    7272License: GPLv2
    7373Source: https://wordpress.org/themes/twentynineteen/
     
    7979
    8080Code from Twenty Seventeen
    81 Copyright (c) 2016 WordPress.org
     81Copyright (c) 2016-2019 WordPress.org
    8282License: GPLv2
    8383Source: https://wordpress.org/themes/twentyseventeen/
  • branches/5.3/tests/phpunit/tests/theme.php

    r46278 r46721  
    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.