WordPress.org

Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#2041 closed defect (bug) (fixed)

Images not displaying in pages, more info

Reported by: Vazz Owned by: ryan
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)

classes.diff (591 bytes) - added by skeltoac 13 years ago.

Download all attachments as: .zip

Change History (5)

#1 @skeltoac
13 years ago

  • Owner changed from anonymous to skeltoac
  • Status changed from new to assigned

@skeltoac
13 years ago

#2 @skeltoac
13 years ago

  • Keywords attachments bg|has-patch bg|commit added; Database removed
  • Owner changed from skeltoac to ryan
  • Severity changed from blocker to normal
  • Status changed from assigned to new

WP_Query was refusing access because the parent's post_status wasn't 'publish'.

This patch makes WP_Query allow access to page attachments.

#3 @ryan
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3293]) Fix attachment queries. fixes #2041

#4 @(none)
12 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.