Пример #1
0
 header('Location: ' . $location);
 $postObject->assignCategories(get_param('post_category'));
 // are we going from draft/private to published?
 if (($prev_status == 'draft' || $prev_status == 'private') && $post_status == 'publish') {
     if (get_settings('use_geo_positions') && $post_latf != null && $post_lonf != null) {
         pingGeoUrl();
     }
     pingWeblogs();
 }
 // end if moving from draft/private to published
 if ($post_status == 'publish') {
     if ($post_pingback) {
         pingback($postObject->getVar('post_content', 'e'), $post_ID);
     }
     do_action('publish_post', $post_ID);
     do_trackback($postObject, get_param('useutf8'));
 }
 // Meta Stuff
 if (test_param('meta')) {
     foreach (get_param('meta') as $key => $value) {
         update_meta($key, $value['key'], $value['value']);
     }
 }
 if (test_param('deletemeta')) {
     foreach (get_param('deletemeta') as $key => $value) {
         delete_meta($key);
     }
 }
 add_meta($post_ID);
 do_action('edit_post', $post_ID);
 exit;
Пример #2
0
 $postObject->assignCategories($post_category);
 // are we going from draft/private to published?
 if (($prev_status == 'draft' || $prev_status == 'private') && $post_status == 'publish') {
     if (get_settings('use_geo_positions') && $post_latf != null && $post_lonf != null) {
         pingGeoUrl();
     }
     pingWeblogs();
     pingBlogs();
 }
 // end if moving from draft/private to published
 if ($post_status == 'publish') {
     if ($post_pingback) {
         pingback($postObject->getVar('post_content', 'e'), $post_ID);
     }
     do_action('publish_post', $post_ID);
     do_trackback($postObject, $useutf8);
 }
 // Meta Stuff
 if ($meta) {
     foreach ($meta as $key => $value) {
         update_meta($key, $value['key'], $value['value']);
     }
 }
 if ($deletemeta) {
     foreach ($deletemeta as $key => $value) {
         delete_meta($key);
     }
 }
 add_meta($post_ID);
 do_action('edit_post', $post_ID);
 exit;
Пример #3
0
 }
 // are we going from draft/private to published?
 if (($prev_status == 'draft' || $prev_status == 'private') && $post_status == 'publish') {
     if (get_settings('use_geo_positions') && $post_latf != null && $post_lonf != null) {
         pingGeoUrl($post_ID);
     }
     pingWeblogs($blog_ID);
     pingBlogs($blog_ID);
 }
 // end if moving from draft/private to published
 if ($post_status == 'publish') {
     if ($post_pingback) {
         pingback($content, $post_ID);
     }
     do_action('publish_post', $post_ID);
     do_trackback($post_ID, $post_title, $content, $excerpt, $useutf8);
 }
 // end if publish
 // Meta Stuff
 if ($meta) {
     foreach ($meta as $key => $value) {
         update_meta($key, $value['key'], $value['value']);
     }
 }
 if ($deletemeta) {
     foreach ($deletemeta as $key => $value) {
         delete_meta($key);
     }
 }
 add_meta($post_ID);
 do_action('edit_post', $post_ID);