mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Remove redundant and erroneous @uses tag from most core inline documentation.
Per our inline documentation standards, no further use of the `@uses` tag is recommended as used and used-by relationships can be derived through other means. This removes most uses of the tag in core documentation, with remaining tags to be converted to `@global` or `@see` as they apply. Fixes #30191. git-svn-id: https://develop.svn.wordpress.org/trunk@30105 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -77,8 +77,6 @@ function _wp_post_revision_fields( $post = null, $autosave = false ) {
|
||||
*
|
||||
* @since 2.6.0
|
||||
*
|
||||
* @uses _wp_put_post_revision()
|
||||
*
|
||||
* @param int $post_id The ID of the post to save as a revision.
|
||||
* @return mixed Null or 0 if error, new revision ID, if success.
|
||||
*/
|
||||
@@ -192,8 +190,6 @@ function wp_save_post_revision( $post_id ) {
|
||||
*
|
||||
* @since 2.6.0
|
||||
*
|
||||
* @uses wp_get_post_revisions()
|
||||
*
|
||||
* @param int $post_id The post ID.
|
||||
* @param int $user_id optional The post author ID.
|
||||
* @return object|bool The autosaved data or false on failure or when no autosave exists.
|
||||
@@ -252,8 +248,6 @@ function wp_is_post_autosave( $post ) {
|
||||
* @since 2.6.0
|
||||
* @access private
|
||||
*
|
||||
* @uses wp_insert_post()
|
||||
*
|
||||
* @param int|object|array $post Post ID, post object OR post array.
|
||||
* @param bool $autosave Optional. Is the revision an autosave?
|
||||
* @return mixed WP_Error or 0 if error, new revision ID if success.
|
||||
@@ -296,8 +290,6 @@ function _wp_put_post_revision( $post = null, $autosave = false ) {
|
||||
*
|
||||
* @since 2.6.0
|
||||
*
|
||||
* @uses get_post()
|
||||
*
|
||||
* @param int|object $post The post ID or object.
|
||||
* @param string $output Optional. OBJECT, ARRAY_A, or ARRAY_N.
|
||||
* @param string $filter Optional sanitation filter. @see sanitize_post().
|
||||
@@ -329,9 +321,6 @@ function wp_get_post_revision(&$post, $output = OBJECT, $filter = 'raw') {
|
||||
*
|
||||
* @since 2.6.0
|
||||
*
|
||||
* @uses wp_get_post_revision()
|
||||
* @uses wp_update_post()
|
||||
*
|
||||
* @param int|object $revision_id Revision ID or revision object.
|
||||
* @param array $fields Optional. What fields to restore from. Defaults to all.
|
||||
* @return mixed Null if error, false if no fields to restore, (int) post ID if success.
|
||||
@@ -390,9 +379,6 @@ function wp_restore_post_revision( $revision_id, $fields = null ) {
|
||||
*
|
||||
* @since 2.6.0
|
||||
*
|
||||
* @uses wp_get_post_revision()
|
||||
* @uses wp_delete_post()
|
||||
*
|
||||
* @param int|object $revision_id Revision ID or revision object.
|
||||
* @return mixed Null or WP_Error if error, deleted post if success.
|
||||
*/
|
||||
@@ -424,8 +410,6 @@ function wp_delete_post_revision( $revision_id ) {
|
||||
*
|
||||
* @since 2.6.0
|
||||
*
|
||||
* @uses get_children()
|
||||
*
|
||||
* @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post.
|
||||
* @return array An array of revisions, or an empty array if none.
|
||||
*/
|
||||
@@ -453,8 +437,6 @@ function wp_get_post_revisions( $post_id = 0, $args = null ) {
|
||||
*
|
||||
* @since 3.6.0
|
||||
*
|
||||
* @uses wp_revisions_to_keep()
|
||||
*
|
||||
* @param object $post The post object.
|
||||
* @return bool True if number of revisions to keep isn't zero, false otherwise.
|
||||
*/
|
||||
@@ -468,8 +450,6 @@ function wp_revisions_enabled( $post ) {
|
||||
*
|
||||
* @since 3.6.0
|
||||
*
|
||||
* @uses post_type_supports()
|
||||
*
|
||||
* @param object $post The post object.
|
||||
* @return int The number of revisions to keep.
|
||||
*/
|
||||
@@ -587,8 +567,6 @@ function _wp_get_post_revision_version( $revision ) {
|
||||
* @since 3.6.0
|
||||
* @access private
|
||||
*
|
||||
* @uses wp_get_post_revisions()
|
||||
*
|
||||
* @param object $post Post object
|
||||
* @param array $revisions Current revisions of the post
|
||||
* @return bool true if the revisions were upgraded, false if problems
|
||||
|
||||
Reference in New Issue
Block a user