[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
Thu Oct 3 13:11:08 UTC 2013
#25477: Notice: Trying to get property of non-object in .../wp-includes/post.php
on line 2847
--------------------------+------------------------------
Reporter: jpswade | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.6.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by jpswade):
I suspect you're correct and it's the way I've formatted my taxonomy.
My $post is as follows:
{{{
Array
(
[post_content] => Full content
[post_excerpt] => Short excerpt
[post_name] => Post name
[post_title] => Post title
[post_status] => publish
[post_type] => custom-post-type
[tags_input] => this, that, other
[tax_input] => Array
(
[custom_tax] => String
)
)
}}}
I suspect I need to do it as:
{{{
[tax_input] => Array
(
[custom_tax] => Array
(
[0] => String
)
)
}}}
It seems as through the taxonomy isn't being validated before trying to
access the object.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25477#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list