Opened 3 years ago

Closed 3 years ago

Last modified 3 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
Priority: normal Milestone: 3.0
Component: Formatting Version: 3.0
Severity: normal Keywords:
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)

  • 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.

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

(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.