Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #32308


Ignore:
Timestamp:
05/08/2015 09:44:49 AM (10 years ago)
Author:
SergeyBiryukov
Comment:

Looks like wpdb::strip_invalid_text_for_column() returns a WP_Error object when siteurl and home options are sanitized: tags/4.2.2/src/wp-includes/formatting.php#L3422.

We need to check the returned value and handle accordingly.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32308

    • Property Status changed from new to reopened
    • Property Component changed from General to Formatting
    • Property Milestone changed from Awaiting Review to 4.2.3
  • Ticket #32308 – Description

    initial v2  
    22
    33Here is errors (the screen is dead at this page)
    4 
     4{{{
    55Warning: preg_match() expects parameter 2 to be string, object given in /home1/xxx/public_html/wp-includes/formatting.php on line 3435
    66
     
    1414
    1515Catchable fatal error: Object of class WP_Error could not be converted to string in /home1/xxx/public_html/wp-includes/kses.php on line 1038
    16 
     16}}}
    1717I did the same installation in my localhost, it worked but not on my hosting.
    1818