Changeset 10150 for trunk/wp-admin/includes/post.php
- Timestamp:
- 12/09/2008 06:03:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r10112 r10150 1045 1045 * @package WordPress 1046 1046 * @since 2.7 1047 * 1047 * 1048 1048 * @uses wp_write_post() 1049 1049 * @uses edit_post() … … 1051 1051 * @uses current_user_can() 1052 1052 * @uses wp_create_post_autosave() 1053 * 1053 * 1054 1054 * @return str URL to redirect to show the preview 1055 1055 */ … … 1059 1059 if ( $post_ID < 1 ) 1060 1060 wp_die( __('Preview not available. Please save as a draft first.') ); 1061 1061 1062 1062 if ( isset($_POST['catslist']) ) 1063 1063 $_POST['post_category'] = explode(",", $_POST['catslist']); 1064 1064 1065 1065 if ( isset($_POST['tags_input']) ) 1066 1066 $_POST['tags_input'] = explode(",", $_POST['tags_input']); 1067 1067 1068 1068 if ( $_POST['post_type'] == 'page' || empty($_POST['post_category']) ) 1069 1069 unset($_POST['post_category']); … … 1103 1103 /** 1104 1104 * Adds the TinyMCE editor used on the Write and Edit screens. 1105 * 1105 * 1106 1106 * Has option to output a trimmed down version used in Press This. 1107 1107 *
Note: See TracChangeset
for help on using the changeset viewer.