WordPress.org

Make WordPress Core

Ticket #13300: class-IXR.patch

File class-IXR.patch, 1.2 KB (added by ocean90, 8 years ago)
  • wp-includes/class-IXR.php

     
    356356            $args = $args[0];
    357357        }
    358358        // Are we dealing with a function or a method?
    359         if ( is_string( $method ) && substr($method, 0, 5) == 'this:' ) {
     359        if (substr($method, 0, 5) == 'this:') {
    360360            // It's a class method - check it exists
    361361            $method = substr($method, 5);
    362362            if (!method_exists($this, $method)) {
     
    692692    }
    693693    function parseIso($iso) {
    694694        $this->year = substr($iso, 0, 4);
    695         $this->month = substr($iso, 4, 2);
    696         $this->day = substr($iso, 6, 2);
    697         $this->hour = substr($iso, 9, 2);
    698         $this->minute = substr($iso, 12, 2);
    699         $this->second = substr($iso, 15, 2);
     695        $this->month = substr($iso, 5, 2);
     696        $this->day = substr($iso, 8, 2);
     697        $this->hour = substr($iso, 11, 2);
     698        $this->minute = substr($iso, 14, 2);
     699        $this->second = substr($iso, 17, 2);
    700700        // WP adds timezone. See #2036
    701701        $this->timezone = substr($iso, 17);
    702702    }