Initial add of post-meta functions.

git-svn-id: https://develop.svn.wordpress.org/trunk@988 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dougal Campbell
2004-03-23 18:02:05 +00:00
parent 8b7a7b2dcf
commit d4c07a526f
3 changed files with 151 additions and 1 deletions
+19 -1
View File
@@ -37,6 +37,20 @@ for ($i=0; $i<count($wpvarstoreset); $i += 1) {
switch($action) {
case 'deletemeta':
$standalone = 1;
require_once('./admin-header.php');
$post_ID = intval($_GET['post']);
$location = "post.php?action=edit&post=$post_ID";
del_meta($_GET['meta_id']);
header("Location: $location");
break;
case 'post':
$standalone = 1;
@@ -149,6 +163,8 @@ switch($action) {
");
}
}
add_meta($post_ID);
if (isset($sleep_after_edit) && $sleep_after_edit > 0) {
sleep($sleep_after_edit);
@@ -376,7 +392,9 @@ switch($action) {
}
}
} // end if publish
add_meta($post_ID);
if ($HTTP_POST_VARS['save']) {
$location = $HTTP_SERVER_VARS['HTTP_REFERER'];
} else {