[Quick fix] Debug_Bar_WP_Query::render array to string notice
-
Serialize the $value:
if ( is_object( $value ) ) { echo '<li>' . $key . ' => <ol>'; foreach ( $value as $_key => $_value ) echo '<li>' . $_key . ' => ' . $_value . '</li>'; echo '</ol></li>'; } else { echo '<li>' . $key . ' => ' . maybe_serialize( $value ) . '</li>'; }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Quick fix] Debug_Bar_WP_Query::render array to string notice’ is closed to new replies.