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

WordPress Trac noreply at wordpress.org
Wed Dec 12 19:30:36 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   |
---------------------------+------------------------------
Changes (by nacin):

 * keywords:  dev-feedback close => dev-feedback
 * type:  defect (bug) => enhancement


Comment:

 > What if I delete wp_posts table from database.

 I found that unintentionally hilarious. Beyond that, though, you have a
 good enhancement request.

 WordPress currently checks for the options table on startup. See
 is_blog_installed(). If the options table is missing, it checks to see if
 any other tables are missing. If they are *all* missing, it assumes you
 haven't installed WordPres yet. If only some are missing, it assumes
 things are "insane" and issues a repair warning and dies with dead_db().

 We *could* do similar checks throughout the admin. Check posts and
 postmeta on edit.php/post.php, etc. I don't think it is truly necessary,
 but it's a good thought.

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


More information about the wp-trac mailing list