Specify a type (array) for the $post_data parameter in the DocBlock for wp_autosave().
Props tillkruess. See #30508. Built from https://develop.svn.wordpress.org/trunk@30645 git-svn-id: http://core.svn.wordpress.org/trunk@30635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1629,7 +1629,7 @@ function post_preview() {
|
||||
*
|
||||
* @since 3.9.0
|
||||
*
|
||||
* @param $post_data Associative array of the submitted post data.
|
||||
* @param array $post_data Associative array of the submitted post data.
|
||||
* @return mixed The value 0 or WP_Error on failure. The saved post ID on success.
|
||||
* Te ID can be the draft post_id or the autosave revision post_id.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user