mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Use == instead of =
git-svn-id: http://svn.automattic.com/wordpress/trunk@1787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dad5defb99
commit
6842c8a917
@ -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…
Reference in New Issue
Block a user