[wp-trac] [WordPress Trac] #35835: _deprecated_file undefined in rss-functions.php

WordPress Trac noreply at wordpress.org
Mon Feb 15 12:20:41 UTC 2016


#35835: _deprecated_file undefined in rss-functions.php
--------------------------+-----------------------------
 Reporter:  thib3113      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.4.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 If you call wp-includes/rss-functions.php directly, you have an error .

 Because _deprecated_file is not defined, you can patch with :
 {{{#!php
 <?php
 /**
  * Deprecated. Use rss.php instead.
  *
  * @package WordPress
  */

 if(defined(ABSPATH)){
     _deprecated_file( basename(__FILE__), '2.1', WPINC . '/rss.php' );
     require_once( ABSPATH . WPINC . '/rss.php' );
 }
 }}}

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


More information about the wp-trac mailing list