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:
Scott Taylor 2015-06-27 00:45:24 +00:00
parent 60b8e86b36
commit 642af1f3f4
4 changed files with 5 additions and 5 deletions

View File

@ -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 array $args Optional. Other optional arguments, see
* {@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() ) {
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.
* 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.
*/
public function bulk_upgrade( $language_updates = array(), $args = array() ) {

View File

@ -4608,7 +4608,7 @@ function _get_non_cached_ids( $object_ids, $cache_key ) {
* @since 3.4.0
* @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() {
if ( ! wp_is_mobile() )

View File

@ -120,7 +120,7 @@ $is_iis7 = $is_IIS && intval( substr( $_SERVER['SERVER_SOFTWARE'], strpos( $_SER
*
* @staticvar bool $is_mobile
*
* @return bool true|false
* @return bool
*/
function wp_is_mobile() {
static $is_mobile = null;

View File

@ -4,7 +4,7 @@
*
* @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.