Fix some erroneous `@param` annotations.

See #30799.

Built from https://develop.svn.wordpress.org/trunk@31219


git-svn-id: http://core.svn.wordpress.org/trunk@31200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-01-16 22:44:25 +00:00
parent fffd8c8e2d
commit eeda68bbda
9 changed files with 19 additions and 9 deletions

View File

@ -15,7 +15,10 @@
* @uses WP_Filesystem_Base Extends class
*/
class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
public $ftp = false;
/**
* @var ftp
*/
public $ftp;
public function __construct($opt = '') {
$this->method = 'ftpsockets';

View File

@ -36,7 +36,10 @@
class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
public $link = false;
public $sftp_link = false;
/**
* @var resource
*/
public $sftp_link;
public $keys = false;
public function __construct($opt='') {

View File

@ -205,6 +205,9 @@ class Plugin_Upgrader_Skin extends WP_Upgrader_Skin {
*/
class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
public $in_loop = false;
/**
* @var string|false
*/
public $error = false;
public function __construct($args = array()) {

View File

@ -977,7 +977,7 @@ function get_filesystem_method( $args = array(), $context = false, $allow_relaxe
* @param string $type the chosen Filesystem method in use
* @param boolean $error if the current request has failed to connect
* @param string $context The directory which is needed access to, The write-test will be performed on this directory by get_filesystem_method()
* @param string $extra_fields Extra POST fields which should be checked for to be included in the post.
* @param array $extra_fields Extra POST fields which should be checked for to be included in the post.
* @param bool $allow_relaxed_file_ownership Whether to allow Group/World writable.
* @return boolean False on failure. True on success.
*/

View File

@ -1341,7 +1341,7 @@ function edit_comment_link( $text = null, $before = '', $after = '' ) {
*
* @since 2.7.0
*
* @param int $link Optional. Bookmark ID.
* @param int|stdClass $link Optional. Bookmark ID.
* @return string The edit bookmark link URL.
*/
function get_edit_bookmark_link( $link = 0 ) {

View File

@ -1271,6 +1271,7 @@ class WP_Query {
*
* @since 3.1.0
* @access private
* @var bool|string
*/
private $query_vars_hash = false;

View File

@ -2971,7 +2971,7 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) {
* @param int $object_id The object to relate to.
* @param array|int|string $terms A single term slug, single term id, or array of either term slugs or ids.
* Will replace all existing related terms in this taxonomy.
* @param array|string $taxonomy The context in which to relate the term to the object.
* @param array $taxonomy The context in which to relate the term to the object.
* @param bool $append Optional. If false will delete difference of terms. Default false.
* @return array|WP_Error Affected Term IDs.
*/
@ -3693,7 +3693,7 @@ function clean_term_cache($ids, $taxonomy = '', $clean_taxonomy = true) {
*
* @since 2.3.0
*
* @param int|array $id Term object ID
* @param int $id Term object ID
* @param string $taxonomy Taxonomy Name
* @return bool|array Empty array if $terms found, but not $taxonomy. False if nothing is in cache for $taxonomy and $id.
*/
@ -4257,7 +4257,7 @@ function get_post_taxonomies( $post = 0 ) {
* @param int $object_id ID of the object (post ID, link ID, ...)
* @param string $taxonomy Single taxonomy name
* @param int|string|array $terms Optional. Term term_id, name, slug or array of said
* @return bool|WP_Error. WP_Error on input error.
* @return bool|WP_Error WP_Error on input error.
*/
function is_object_in_term( $object_id, $taxonomy, $terms = null ) {
if ( !$object_id = (int) $object_id )

View File

@ -934,7 +934,7 @@ function get_theme_mod( $name, $default = false ) {
* @since 2.1.0
*
* @param string $name Theme modification name.
* @param string $value theme modification value.
* @param mixed $value theme modification value.
*/
function set_theme_mod( $name, $value ) {
$mods = get_theme_mods();

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-alpha-31218';
$wp_version = '4.2-alpha-31219';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.