#2041 closed defect (bug) (fixed)
Images not displaying in pages, more info
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | high | |
| Severity: | normal | Version: | 2.0 |
| Component: | Security | Keywords: | attachments bg|has-patch bg|commit |
| Focuses: | Cc: |
Description
My last bug I reported where in the latest bulid of 2.0 RC1 images wasn't displaying and throwing out a "Sorry, no attachments matched your criteria." error http://gapras.co.uk/test/?page_id=9 << example there.
I've noticed the error occurs if your upgrade from the stable WP 1.5 this error will work with a brand new install of 1.5 then upgrade using the latest 2.0 RC1 from then on any page you make in 2.0 RC1 and your not logged in with give your or the guest that error above. I have tried this serveral times and it seems to repeat.
I am guessing this must be a database error... If I remove all the files in the installed directory and re upload a new bulid, its carries on with the error.. so it has to be the database.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
WP_Query was refusing access because the parent's post_status wasn't 'publish'.
This patch makes WP_Query allow access to page attachments.