Opened 2 years ago

Last modified 19 months ago

#17670 closed defect (bug)

PHP Notices when Attachment is accessed via wrong url via pagerewrite — at Initial Version

Reported by: dd32 Owned by:
Priority: highest omg bbq Milestone: 3.3
Component: Warnings/Notices Version: 3.1
Severity: blocker Keywords: has-patch needs-testing needs-unit-tests
Cc: ocean90, dkikizas@…, mtekkmonkey@…, marko@…, coenjacobs@…, Otto42

Description

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

Change History (1)

Note: See TracTickets for help on using tickets.