Docs: Add a missing summary, @since version, and parameter descriptions to the DocBlock for wp_xmlrpc_server::add_enclosure_if_new().

Introduced in [10383].

See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@35963 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2015-12-16 17:31:10 +00:00
parent 86d78d3975
commit 62d70a58a3

View File

@ -5079,8 +5079,12 @@ class wp_xmlrpc_server extends IXR_Server {
}
/**
* @param integer $post_ID
* @param array $enclosure
* Adds an enclosure to a post if it's new.
*
* @since 2.8.0
*
* @param integer $post_ID Post ID.
* @param array $enclosure Enclosure data.
*/
public function add_enclosure_if_new( $post_ID, $enclosure ) {
if ( is_array( $enclosure ) && isset( $enclosure['url'] ) && isset( $enclosure['length'] ) && isset( $enclosure['type'] ) ) {