Make WordPress Core

Ticket #48566: 48566.diff

File 48566.diff, 5.9 KB (added by SergeyBiryukov, 5 years ago)
  • src/wp-content/themes/twentyeleven/readme.txt

     
    2222
    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
    2828This program is free software: you can redistribute it and/or modify
  • src/wp-content/themes/twentyfifteen/readme.txt

     
    3030
    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
    3636This program is free software: you can redistribute it and/or modify
  • src/wp-content/themes/twentyfourteen/readme.txt

     
    2222
    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
    2828This program is free software: you can redistribute it and/or modify
  • src/wp-content/themes/twentynineteen/readme.txt

     
    2424
    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
    3030This program is free software: you can redistribute it and/or modify
  • src/wp-content/themes/twentyseventeen/README.txt

     
    2222
    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
    2828This program is free software: you can redistribute it and/or modify
  • src/wp-content/themes/twentysixteen/readme.txt

     
    2828
    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
    3434This program is free software: you can redistribute it and/or modify
  • src/wp-content/themes/twentyten/readme.txt

     
    2121
    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
    2727This program is free software: you can redistribute it and/or modify
  • src/wp-content/themes/twentythirteen/readme.txt

     
    2121
    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
    2727This program is free software: you can redistribute it and/or modify
  • tests/phpunit/tests/theme.php

     
    211211        }
    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
    216243         */