[wp-trac] [WordPress Trac] #40695: `install_blog` suppresses database errors

WordPress Trac noreply at wordpress.org
Mon May 8 20:18:04 UTC 2017

#40695: `install_blog` suppresses database errors
 Reporter:  andy          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Database      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
 `install_blog` uses error suppression and `DESCRIBE $table` to detect the
 absence of tables. Error suppression can be removed in favor of `SHOW
 TABLES LIKE $table`, as in the patch on #40694.

 Another source of errors in `install_blog` is the call to
 `get_blogaddress_by_id`. This attempts to read the site's `home` attribute
 which hits the magic `WP_Site->__get`, which ultimately leads to a
 `SELECT` against the non-existent options table.

Ticket URL: <https://core.trac.wordpress.org/ticket/40695>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list