mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Docs: @param fixes for a variety of docblocks.
See #32246 git-svn-id: https://develop.svn.wordpress.org/trunk@36232 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -622,6 +622,8 @@ function self_link() {
|
||||
* Return the content type for specified feed type.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @param string $type Type of feed. Possible values include 'rss', rss2', 'atom', and 'rdf'.
|
||||
*/
|
||||
function feed_content_type( $type = '' ) {
|
||||
if ( empty($type) )
|
||||
@@ -642,8 +644,7 @@ function feed_content_type( $type = '' ) {
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @param string $content_type Content type indicating the type of data that a feed contains.
|
||||
* @param string $type Type of feed. Possible values include 'rss2', 'atom'.
|
||||
* Default 'rss2'.
|
||||
* @param string $type Type of feed. Possible values include 'rss', rss2', 'atom', and 'rdf'.
|
||||
*/
|
||||
return apply_filters( 'feed_content_type', $content_type, $type );
|
||||
}
|
||||
|
||||
@@ -1671,6 +1671,10 @@ function kses_init() {
|
||||
* Inline CSS filter
|
||||
*
|
||||
* @since 2.8.1
|
||||
*
|
||||
* @param string $css A string of CSS rules.
|
||||
* @param string $deprecated Not used.
|
||||
* @return string Filtered string of CSS rules.
|
||||
*/
|
||||
function safecss_filter_attr( $css, $deprecated = '' ) {
|
||||
if ( !empty( $deprecated ) )
|
||||
|
||||
@@ -559,9 +559,10 @@ function delete_blog_option( $id, $option ) {
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @param int $id The blog id
|
||||
* @param string $option The option key
|
||||
* @param mixed $value The option value
|
||||
* @param int $id The blog id.
|
||||
* @param string $option The option key.
|
||||
* @param mixed $value The option value.
|
||||
* @param mixed $deprecated Not used.
|
||||
* @return bool True on success, false on failure.
|
||||
*/
|
||||
function update_blog_option( $id, $option, $value, $deprecated = null ) {
|
||||
|
||||
@@ -153,6 +153,10 @@ function is_main_blog() {
|
||||
* @since MU
|
||||
* @deprecated 3.0.0 Use is_email()
|
||||
* @see is_email()
|
||||
*
|
||||
* @param string $email Email address to verify.
|
||||
* @param bool $check_domain Deprecated.
|
||||
* @return string|bool Either false or the valid email address.
|
||||
*/
|
||||
function validate_email( $email, $check_domain = true) {
|
||||
_deprecated_function( __FUNCTION__, '3.0', 'is_email()' );
|
||||
|
||||
@@ -1159,7 +1159,8 @@ function wpmu_create_blog( $domain, $path, $title, $user_id, $meta = array(), $s
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @param int $blog_id The new site's ID.
|
||||
* @param int $blog_id The new site's ID.
|
||||
* @param string $deprecated Not used.
|
||||
* @return bool
|
||||
*/
|
||||
function newblog_notify_siteadmin( $blog_id, $deprecated = '' ) {
|
||||
@@ -1754,6 +1755,8 @@ function check_upload_mimes( $mimes ) {
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $deprecated Not used.
|
||||
*/
|
||||
function update_posts_count( $deprecated = '' ) {
|
||||
global $wpdb;
|
||||
@@ -1787,7 +1790,8 @@ function wpmu_log_new_registrations( $blog_id, $user_id ) {
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
* @staticvar int $global_terms_recurse
|
||||
*
|
||||
* @param int $term_id An ID for a term on the current blog.
|
||||
* @param int $term_id An ID for a term on the current blog.
|
||||
* @param string $deprecated Not used.
|
||||
* @return int An ID from the global terms table mapped from $term_id.
|
||||
*/
|
||||
function global_terms( $term_id, $deprecated = '' ) {
|
||||
@@ -1856,6 +1860,7 @@ function global_terms( $term_id, $deprecated = '' ) {
|
||||
* @see wp_validate_redirect()
|
||||
* @since MU
|
||||
*
|
||||
* @param array|string $deprecated Not used.
|
||||
* @return array The current site's domain
|
||||
*/
|
||||
function redirect_this_site( $deprecated = '' ) {
|
||||
@@ -2019,6 +2024,8 @@ function add_new_user_to_blog( $user_id, $password, $meta ) {
|
||||
* Correct From host on outgoing mail to match the site domain
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @param PHPMailer $phpmailer The PHPMailer instance, passed by reference.
|
||||
*/
|
||||
function fix_phpmailer_messageid( $phpmailer ) {
|
||||
$phpmailer->Hostname = get_current_site()->domain;
|
||||
@@ -2351,9 +2358,12 @@ function is_upload_space_available() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the maximum upload file size allowed, in bytes.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @return int of upload size limit in bytes
|
||||
* @param int $size Upload size limit in bytes.
|
||||
* @return int Upload size limit in bytes.
|
||||
*/
|
||||
function upload_size_limit_filter( $size ) {
|
||||
$fileupload_maxk = KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 );
|
||||
|
||||
@@ -275,6 +275,7 @@ abstract class WP_Session_Tokens {
|
||||
* @access protected
|
||||
*
|
||||
* @param string $verifier Verifier of the session to update.
|
||||
* @param array $session Optional. Session. Omitting this argument destroys the session.
|
||||
*/
|
||||
abstract protected function update_session( $verifier, $session = null );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user