-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
787b47f
commit eee1547
Showing
3 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
namespace { | ||
define( 'OBJECT', 'OBJECT' ); | ||
define( 'object', 'OBJECT' ); | ||
define( 'OBJECT_K', 'OBJECT_K' ); | ||
define( 'ARRAY_A', 'ARRAY_A' ); | ||
define( 'ARRAY_N', 'ARRAY_N' ); | ||
|
||
class wpdb { | ||
|
||
/** @var string */ | ||
public $login_log_table = ''; | ||
|
||
/** | ||
* @param string $query | ||
* @param mixed $args | ||
* @return string|null | ||
*/ | ||
public function prepare( $query, ...$args ) {} | ||
} | ||
|
||
/** | ||
* @param mixed $data Optional. Data to encode as JSON, then print and die. Default null. | ||
* @param int $status_code Optional. The HTTP status code to output. Default null. | ||
* @param int $options Optional. Options to be passed to json_encode(). Default 0. | ||
* @psalm-return never-returns | ||
*/ | ||
function wp_send_json_error( $data = null, $status_code = null, $options = 0 ) {} | ||
|
||
/** | ||
* @param mixed $response Variable (usually an array or object) to encode as JSON, | ||
* then print and die. | ||
* @param int $status_code Optional. The HTTP status code to output. Default null. | ||
* @param int $options Optional. Options to be passed to json_encode(). Default 0. | ||
* @psalm-return never-returns | ||
*/ | ||
function wp_send_json( $response, $status_code = null, $options = 0 ) {} | ||
|
||
/** | ||
* @param string $id | ||
* @param string $title | ||
* @param callable $callback | ||
* @param string $page | ||
* @param string $section | ||
* @psalm-param array{class?: string, label_for?: string, ...} $args | ||
* @return void | ||
*/ | ||
function add_settings_field( $id, $title, $callback, $page, $section = 'default', $args = array() ) {} | ||
} |