Make WordPress Core

Changeset 28064


Ignore:
Timestamp:
04/09/2014 11:49:05 PM (8 years ago)
Author:
nacin
Message:

Update license copyright year to 2014.

fixes #27728.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/license.txt

    r27369 r28064  
    11WordPress - Web publishing software
    22
    3 Copyright 2013 by the contributors
     3Copyright 2014 by the contributors
    44
    55This program is free software; you can redistribute it and/or modify
  • trunk/tests/phpunit/tests/basic.php

    r26940 r28064  
    2828        list( $version ) = explode( '-', $GLOBALS['wp_version'] );
    2929        $this->assertEquals( $version, trim( $matches[1] ), "readme.html's version needs to be updated to $version." );
     30    }
     31
     32    function test_license() {
     33        $license = file_get_contents( ABSPATH . 'license.txt' );
     34        preg_match( '#Copyright (\d+) by the contributors#', $license, $matches );
     35        $this_year = date( 'Y' );
     36        $this->assertEquals( $this_year, trim( $matches[1] ), "license.txt's year needs to be updated to $this_year." );
    3037    }
    3138
Note: See TracChangeset for help on using the changeset viewer.