Use == instead of =

git-svn-id: http://svn.automattic.com/wordpress/trunk@1787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-10-12 17:54:54 +00:00
parent dad5defb99
commit 6842c8a917
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'])) {