WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#12168 closed defect (bug) (fixed)

PHP4 - Notice: Array to string conversion in /Applications/MAMP/htdocs/wordpress-trunk/wp-includes/formatting.php on line 427

Reported by: westi Owned by: westi
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: Formatting Keywords:
Focuses: Cc:

Description

Basically when sanitizing the post fields we pass the ancestors of a post which is always and array of ints to a function which expects a string and hence we turn it into garbage.

It goes from being and Array of ints to being a string containing just Array().

Change History (3)

comment:1 @westi5 years ago

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

(In [13016]) Ensure we don't mangle the array of post ancestors when sanitising a post for editing. Fixes #12168.

comment:2 @westi5 years ago

Same error occurs when sanitising the fields for a bookmark/link with respect to the link_category field.

comment:3 @westi5 years ago

(In [13017]) Ensure we don't mangle the array of link categories when sanitising a link for editing. See #12168.

Note: See TracTickets for help on using tickets.