mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-04 20:19:53 +08:00
use ABSPATH
This commit is contained in:
parent
59997961a6
commit
bbb1df430a
1 changed files with 3 additions and 3 deletions
6
api.php
6
api.php
|
@ -8,9 +8,9 @@
|
|||
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||
*/
|
||||
|
||||
require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-config.php');
|
||||
require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-includes/option.php');
|
||||
require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-includes/capabilities.php');
|
||||
require_once($ABSPATH . 'wp-config.php');
|
||||
require_once($ABSPATH . 'wp-includes/option.php');
|
||||
require_once($ABSPATH . 'wp-includes/capabilities.php');
|
||||
|
||||
header('Content-Type:application/json; charset=utf-8');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue