WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/29/2011 08:05:12 PM (9 years ago)
Author:
ryan
Message:

Constructor cleanup. Props ocean90. fixes #16768

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-feed.php

    r11787 r17771  
    55
    66class WP_Feed_Cache extends SimplePie_Cache {
    7     /**
    8      * Don't call the constructor. Please.
    9      *
    10      * @access private
    11      */
    12     function WP_Feed_Cache() {
    13         trigger_error('Please call SimplePie_Cache::create() instead of the constructor', E_USER_ERROR);
    14     }
    15 
    167    /**
    178     * Create a new SimplePie_Cache object
     
    3021    var $lifetime = 43200; //Default lifetime in cache of 12 hours
    3122
    32     function WP_Feed_Cache_Transient($location, $filename, $extension) {
     23    function __construct($location, $filename, $extension) {
    3324        $this->name = 'feed_' . $filename;
    3425        $this->mod_name = 'feed_mod_' . $filename;
     
    6657class WP_SimplePie_File extends SimplePie_File {
    6758
    68     function WP_SimplePie_File($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false) {
     59    function __construct($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false) {
    6960        $this->url = $url;
    7061        $this->timeout = $timeout;
Note: See TracChangeset for help on using the changeset viewer.