[wp-trac] [WordPress Trac] #25267: PHP notices in register_post_type()
WordPress Trac
noreply at wordpress.org
Mon Sep 9 21:51:47 UTC 2013
#25267: PHP notices in register_post_type()
--------------------------+-----------------------------
Reporter: Looimaster | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.6
Severity: normal | Keywords:
--------------------------+-----------------------------
Code: http://pastebin.com/P4Ac7seu
What I get when entering:
1) http://localhost/portfolio_category/motion/ - nothing found (content-
none.php)
2) http://localhost/portfolio_category/motion/?post_type=portfolio - found
a few posts but there is also `NOTICE: UNDEFINED PROPERTY:
STDCLASS::$LABELS IN C:\WAMP\WWW\WP-INCLUDES\GENERAL-TEMPLATE.PHP ON LINE
700` twice
3) http://localhost/?portfolio_category=motion&post_type=portfolio - found
a few posts but there is also `NOTICE: UNDEFINED PROPERTY:
STDCLASS::$LABELS IN C:\WAMP\WWW\WP-INCLUDES\GENERAL-TEMPLATE.PHP ON LINE
700` twice
4) http://localhost/?portfolio_category=motion - nothing found (content-
none.php)
5) http://localhost/portfolio-items/ - works fine
Besides PHP notice I can't access single `portfolio_category` archives
unless I add `?post_type=portfolio` to the URL. Should it be this way?
Testing on Twenty Thirteen.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25267>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list