[wp-trac] [WordPress Trac] #17670: PHP Notices when Attachment is accessed via wrong url via pagerewrite

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 3 03:48:30 UTC 2011


#17670: PHP Notices when Attachment is accessed via wrong url via pagerewrite
------------------------------+----------------------------
 Reporter:  dd32              |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Future Release
Component:  Warnings/Notices  |    Version:  3.1
 Severity:  normal            |   Keywords:  needs-patch
------------------------------+----------------------------
 Example:

 {{{
 Expected url: /2008/06/10/post-format-test-gallery/canola2/
 Accessed url: /canola2/
 }}}

 get_page_by_path() will result in these 2 warnings:
 {{{
 NOTICE: wp-includes\post.php:3167 - Trying to get property of non-object
 NOTICE: wp-includes\post.php:3162 - Trying to get property of non-object
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17670>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list