Ticket #48566: 48566.diff
File 48566.diff, 5.9 KB (added by , 5 years ago) |
---|
-
src/wp-content/themes/twentyeleven/readme.txt
22 22 23 23 == Copyright == 24 24 25 Twenty Eleven WordPress Theme, Copyright 2011-201 8WordPress.org & Automattic.com25 Twenty Eleven WordPress Theme, Copyright 2011-2019 WordPress.org & Automattic.com 26 26 Twenty Eleven is Distributed under the terms of the GNU GPL 27 27 28 28 This program is free software: you can redistribute it and/or modify -
src/wp-content/themes/twentyfifteen/readme.txt
30 30 31 31 == Copyright == 32 32 33 Twenty Fifteen WordPress Theme, Copyright 2014-201 8WordPress.org & Automattic.com33 Twenty Fifteen WordPress Theme, Copyright 2014-2019 WordPress.org & Automattic.com 34 34 Twenty Fifteen is distributed under the terms of the GNU GPL 35 35 36 36 This program is free software: you can redistribute it and/or modify -
src/wp-content/themes/twentyfourteen/readme.txt
22 22 23 23 == Copyright == 24 24 25 Twenty Fourteen WordPress Theme, Copyright 2013-201 8WordPress.org & Automattic.com25 Twenty Fourteen WordPress Theme, Copyright 2013-2019 WordPress.org & Automattic.com 26 26 Twenty Fourteen is Distributed under the terms of the GNU GPL 27 27 28 28 This program is free software: you can redistribute it and/or modify -
src/wp-content/themes/twentynineteen/readme.txt
24 24 25 25 == Copyright == 26 26 27 Twenty Nineteen WordPress Theme, Copyright 2018 WordPress.org27 Twenty Nineteen WordPress Theme, Copyright 2018-2019 WordPress.org 28 28 Twenty Nineteen is distributed under the terms of the GNU GPL 29 29 30 30 This program is free software: you can redistribute it and/or modify -
src/wp-content/themes/twentyseventeen/README.txt
22 22 23 23 == Copyright == 24 24 25 Twenty Seventeen WordPress Theme, Copyright 2016 WordPress.org25 Twenty Seventeen WordPress Theme, Copyright 2016-2019 WordPress.org 26 26 Twenty Seventeen is distributed under the terms of the GNU GPL 27 27 28 28 This program is free software: you can redistribute it and/or modify -
src/wp-content/themes/twentysixteen/readme.txt
28 28 29 29 == Copyright == 30 30 31 Twenty Sixteen WordPress Theme, Copyright 2014-201 8WordPress.org31 Twenty Sixteen WordPress Theme, Copyright 2014-2019 WordPress.org 32 32 Twenty Sixteen is distributed under the terms of the GNU GPL 33 33 34 34 This program is free software: you can redistribute it and/or modify -
src/wp-content/themes/twentyten/readme.txt
21 21 22 22 == Copyright == 23 23 24 Twenty Ten WordPress Theme, Copyright 2010-201 8WordPress.org & Automattic.com24 Twenty Ten WordPress Theme, Copyright 2010-2019 WordPress.org & Automattic.com 25 25 Twenty Ten is Distributed under the terms of the GNU GPL 26 26 27 27 This program is free software: you can redistribute it and/or modify -
src/wp-content/themes/twentythirteen/readme.txt
21 21 22 22 == Copyright == 23 23 24 Twenty Thirteen WordPress Theme, Copyright 2013-201 8WordPress.org & Automattic.com24 Twenty Thirteen WordPress Theme, Copyright 2013-2019 WordPress.org & Automattic.com 25 25 Twenty Thirteen is Distributed under the terms of the GNU GPL 26 26 27 27 This program is free software: you can redistribute it and/or modify -
tests/phpunit/tests/theme.php
211 211 } 212 212 213 213 /** 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 /** 214 241 * @ticket 20897 215 242 * @expectedDeprecated get_theme_data 216 243 */