Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#804 closed defect (bug) (fixed)

wp_get_single_post does not respect mode parameter

Reported by: ringmaster's profile ringmaster Owned by: ryan's profile ryan
Milestone: Priority: normal
Severity: minor Version: 1.5
Component: General Keywords:
Focuses: Cc:


wp_get_single_post() in functions-post.php fails if the mode parameter is set to the default (OBJECT). The error returned is "Cannot use a scalar value as an array".

Attachments (1)

functions-post.php.patch (708 bytes) - added by ringmaster 19 years ago.

Download all attachments as: .zip

Change History (5)

#1 @ringmaster
19 years ago

  • Patch set to No

#2 @ringmaster
19 years ago

  • Patch changed from No to Yes

#3 @ringmaster
19 years ago

I was using a breadcrumb plugin (from which uses this function with the parameter default and fails every time.

#4 @ryan
19 years ago

  • fixed_in_version set to 1.5
  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 20
  • Status changed from new to closed

Patch applied.

Note: See TracTickets for help on using tickets.