[wp-trac] [WordPress Trac] #38069: WP_Feed_Cache::create() should be declared static

WordPress Trac noreply at wordpress.org
Thu Sep 15 14:23:05 UTC 2016


#38069: WP_Feed_Cache::create() should be declared static
--------------------------+-----------------------------
 Reporter:  fabifott      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The factory function WP_Feed_Cache::create() is not declared static.

 It should be:
 {{{#!php
         public static function create($location, $filename, $extension) {
                 return new WP_Feed_Cache_Transient($location, $filename,
 $extension);
         }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38069>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list