Use == instead of =

git-svn-id: https://develop.svn.wordpress.org/trunk@1787 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-10-12 17:54:54 +00:00
parent 2b105ba050
commit afe389d930
1 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,7 @@ case 'post':
} // end if publish
if ($post_status = 'static') {
if ($post_status == 'static') {
generate_page_rewrite_rules();
add_post_meta($post_ID, '_wp_page_template', $_POST['page_template'], true);
@ -478,7 +478,7 @@ $now_gmt = current_time('mysql', 1);
}
} // end if publish
if ($post_status = 'static') {
if ($post_status == 'static') {
generate_page_rewrite_rules();
if ( ! update_post_meta($post_ID, '_wp_page_template', $_POST['page_template'])) {