Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #22884, comment 2


Ignore:
Timestamp:
12/12/2012 07:49:54 PM (12 years ago)
Author:
nacin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22884, comment 2

    initial v1  
    33I found that unintentionally hilarious. Beyond that, though, you have a good enhancement request.
    44
    5 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().
     5WordPress 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 WordPress yet. If only some are missing, it assumes things are "insane" and issues a repair warning and dies with dead_db().
    66
    77We *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.