Some doc blocks should use `bool` instead of `true|false`
See #32444. Built from https://develop.svn.wordpress.org/trunk@32963 git-svn-id: http://core.svn.wordpress.org/trunk@32934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
60b8e86b36
commit
642af1f3f4
|
@ -1832,7 +1832,7 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||||
* @param string|false $update Optional. Whether an update offer is available. Default false.
|
* @param string|false $update Optional. Whether an update offer is available. Default false.
|
||||||
* @param array $args Optional. Other optional arguments, see
|
* @param array $args Optional. Other optional arguments, see
|
||||||
* {@see Language_Pack_Upgrader::bulk_upgrade()}. Default empty array.
|
* {@see Language_Pack_Upgrader::bulk_upgrade()}. Default empty array.
|
||||||
* @return array|WP_Error The result of the upgrade, or a {@see wP_Error} object instead.
|
* @return array|bool|WP_Error The result of the upgrade, or a {@see wP_Error} object instead.
|
||||||
*/
|
*/
|
||||||
public function upgrade( $update = false, $args = array() ) {
|
public function upgrade( $update = false, $args = array() ) {
|
||||||
if ( $update ) {
|
if ( $update ) {
|
||||||
|
@ -1862,7 +1862,7 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||||
* @type bool $clear_update_cache Whether to clear the update cache when done.
|
* @type bool $clear_update_cache Whether to clear the update cache when done.
|
||||||
* Default true.
|
* Default true.
|
||||||
* }
|
* }
|
||||||
* @return array|true|false|WP_Error Will return an array of results, or true if there are no updates,
|
* @return array|bool|WP_Error Will return an array of results, or true if there are no updates,
|
||||||
* false or WP_Error for initial errors.
|
* false or WP_Error for initial errors.
|
||||||
*/
|
*/
|
||||||
public function bulk_upgrade( $language_updates = array(), $args = array() ) {
|
public function bulk_upgrade( $language_updates = array(), $args = array() ) {
|
||||||
|
|
|
@ -4608,7 +4608,7 @@ function _get_non_cached_ids( $object_ids, $cache_key ) {
|
||||||
* @since 3.4.0
|
* @since 3.4.0
|
||||||
* @access private
|
* @access private
|
||||||
*
|
*
|
||||||
* @return bool true|false Whether the device is able to upload files.
|
* @return bool Whether the device is able to upload files.
|
||||||
*/
|
*/
|
||||||
function _device_can_upload() {
|
function _device_can_upload() {
|
||||||
if ( ! wp_is_mobile() )
|
if ( ! wp_is_mobile() )
|
||||||
|
|
|
@ -120,7 +120,7 @@ $is_iis7 = $is_IIS && intval( substr( $_SERVER['SERVER_SOFTWARE'], strpos( $_SER
|
||||||
*
|
*
|
||||||
* @staticvar bool $is_mobile
|
* @staticvar bool $is_mobile
|
||||||
*
|
*
|
||||||
* @return bool true|false
|
* @return bool
|
||||||
*/
|
*/
|
||||||
function wp_is_mobile() {
|
function wp_is_mobile() {
|
||||||
static $is_mobile = null;
|
static $is_mobile = null;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-alpha-32962';
|
$wp_version = '4.3-alpha-32963';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue