[wp-trac] [WordPress Trac] #22884: What if I delete wp_posts table from database.

WordPress Trac noreply at wordpress.org
Thu Dec 13 05:45:34 UTC 2012


#22884: What if I delete wp_posts table from database.
---------------------------+------------------------------
 Reporter:  mukkundthanki  |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Database       |     Version:  3.5
 Severity:  normal         |  Resolution:
 Keywords:  dev-feedback   |
---------------------------+------------------------------

Comment (by mukkundthanki):

 yes mark. I think it should. I have found that when I hit save it checks
 if this post exists or not with "get_post" and "get_instance" and at last
 "get_row" method of WPDB class. so "get_instance" returns false to
 "get_post" and it returns null and finally die with capability check with
 user. well I think it should be died earlier while checking with db. can
 we alter only db methods with this type of checks like table exists or
 what actually returns and then taking further actions with specific
 results.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22884#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list