Changeset 1256 for trunk/wp-admin/post.php
- Timestamp:
- 05/10/2004 08:13:42 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/post.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r1239 r1256 270 270 $post_categories = $_POST['post_category']; 271 271 if (!$post_categories) $post_categories[] = 1; 272 $post_autobr = intval($_POST['post_autobr']);273 272 $content = balanceTags($_POST['content']); 274 273 $content = format_to_post($content); … … 286 285 $latlonaddition = " post_lat=null, post_lon=null, "; 287 286 } 287 } else { 288 $latlonaddition = ''; 288 289 } 289 290 $prev_status = $_POST['prev_status']; … … 303 304 $trackback = preg_replace('|\s+|', '\n', $trackback); 304 305 305 if ( '' != $_POST['publish']) $post_status = 'publish';306 if (isset($_POST['publish'])) $post_status = 'publish'; 306 307 307 308 if (($user_level > 4) && (!empty($_POST['edit_date']))) { … … 365 366 366 367 // are we going from draft/private to published? 367 if ((($prev_status == 'draft') || ($prev_status == 'private')) && ($post_status == 'publish')) { 368 if ($prev_status != 'publish' && $post_status == 'publish') { 369 generic_ping(); 368 370 } // end if moving from draft/private to published 369 371 if ($post_status == 'publish') {
Note: See TracChangeset
for help on using the changeset viewer.