[wp-trac] [WordPress Trac] #25477: Notice: Trying to get property of non-object in .../wp-includes/post.php on line 2847

WordPress Trac noreply at wordpress.org
Fri Dec 18 20:14:49 UTC 2015


#25477: Notice:  Trying to get property of non-object in .../wp-includes/post.php
on line 2847
-------------------------------+---------------------------
 Reporter:  jpswade            |       Owner:  boonebgorges
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  4.4
Component:  Posts, Post Types  |     Version:  3.6.1
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:
-------------------------------+---------------------------

Comment (by selnomeria):

 I think, you are making a custom call before 'init'....
 you should execute those commands in

 ADD_ACTION('init','your_function');

 function your_function(){
     YOUR CODES HEREEEEEEEEEEE............
 }

--
Ticket URL: <https://core.trac.wordpress.org/ticket/25477#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list