OSDN Git Service

Look for WP installation in simple subdir configs
authorJustin de Vesine <justin@crowdfavorite.com>
Wed, 20 Nov 2013 21:21:59 +0000 (14:21 -0700)
committerJustin de Vesine <justin@crowdfavorite.com>
Tue, 10 Dec 2013 17:29:01 +0000 (10:29 -0700)
commit183595b6f0c9dde97c80310945725a469555c067
tree525026c633c5d85687613dbd4389fa9243456efa
parent335707f3898c23e58fb217cfaebef8177cfafd81
Look for WP installation in simple subdir configs

Teach WP-CLI about simple subdirectory installations of WP.

If the current directory contains `index.php` and index.php contains
a simple require of wp-blog-header.php (as the default index.php
and simple modifications of it for WP-in-a-subdirectory both do),
look for the WordPress installation based on that information.
php/WP_CLI/Runner.php