WordPress.org

Make WordPress Core

Ticket #16768: text_diff.16768.patch

File text_diff.16768.patch, 1.4 KB (added by ampt, 4 years ago)
  • wp-includes/wp-diff.php

     
    6969         * @param array $params 
    7070         */ 
    7171        function __construct( $params = array() ) { 
    72                 $parent = get_parent_class($this); 
    73                 $this->$parent( $params ); 
     72                parent::__construct( $params ); 
    7473        } 
    7574 
    7675        /** 
  • wp-includes/Text/Diff/Renderer.php

     
    3333    /** 
    3434     * Constructor. 
    3535     */ 
    36     function Text_Diff_Renderer($params = array()) 
     36    function __construct($params = array()) 
    3737    { 
    3838        foreach ($params as $param => $value) { 
    3939            $v = '_' . $param; 
  • wp-includes/Text/Diff.php

     
    3333     *                           Normally an array of two arrays, each 
    3434     *                           containing the lines from a file. 
    3535     */ 
    36     function Text_Diff($engine, $params) 
     36    function __construct($engine, $params) 
    3737    { 
    3838        // Backward compatibility workaround. 
    3939        if (!is_string($engine)) {