WordPress.org

Make WordPress Core

Changeset 24363


Ignore:
Timestamp:
05/25/13 22:10:53 (21 months ago)
Author:
ocean90
Message:

Declare Text_Diff::trimNewlines() as static. Upstream is not back compat. props aaroncampbell. fixes #24372.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/Text/Diff.php

    r24362 r24363  
    206206     * @param integer $key  The index of the line in the array. Not used. 
    207207     */ 
    208     function trimNewlines(&$line, $key) 
     208    static function trimNewlines(&$line, $key) 
    209209    { 
    210210        $line = str_replace(array("\n", "\r"), '', $line); 
Note: See TracChangeset for help on using the changeset viewer.