Changeset 30284
- Timestamp:
- 11/08/2014 08:55:14 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r30168 r30284 1150 1150 wp_die( 1 ); 1151 1151 1152 // If the post is an autodraft, save the post as a draft and then 1153 // attempt to save the meta. 1152 // If the post is an autodraft, save the post as a draft and then attempt to save the meta. 1154 1153 if ( $post->post_status == 'auto-draft' ) { 1155 1154 $save_POST = $_POST; // Backup $_POST -
trunk/src/wp-includes/post.php
r30246 r30284 1070 1070 * 1071 1071 * @param array|string $args Optional. Array or string of post status arguments to compare against 1072 * properties of the global $wp_post_statuses objects. Default empty array.1072 * properties of the global `$wp_post_statuses objects`. Default empty array. 1073 1073 * @param string $output Optional. The type of output to return, either 'names' or 'objects'. Default 'names'. 1074 1074 * @param string $operator Optional. The logical operation to perform. 'or' means only one element -
trunk/src/wp-includes/revision.php
r30155 r30284 78 78 * @since 2.6.0 79 79 * 80 * @param int 81 * @return mixedNull or 0 if error, new revision ID, if success.80 * @param int $post_id The ID of the post to save as a revision. 81 * @return null|int Null or 0 if error, new revision ID, if success. 82 82 */ 83 83 function wp_save_post_revision( $post_id ) { … … 456 456 * @since 3.6.0 457 457 * 458 * @param object $post The post object.458 * @param WP_Post $post The post object. 459 459 * @return int The number of revisions to keep. 460 460 */
Note: See TracChangeset
for help on using the changeset viewer.