Use == instead of =
git-svn-id: https://develop.svn.wordpress.org/trunk@1787 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2b105ba050
commit
afe389d930
@ -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'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user