If..Else Log

Custom Field bug

I've now made use of the new WP 1.5 Pages feature to add an about page to the site.

I am, however, encountering a bug in the admin panel when using Firefox. To specify a custom template for a page, you need to add a custom field called _wp_page_template. If I use Firefox to do this however, the value of the field is not entered into the system and instead is defaulted. I have to either use IE or manually update the DB to rectify this. Is anyone else encountering this bug?

Update: Coffelius left a comment on this entry which provides a workaround for this issue. For the convenience of anyone else who may be suffering from this issue, the fix is as follows:

In your /wp-admin/post.php page, comment out the following section on line 425 as shown:

if ($post_status == 'static') {
		generate_page_rewrite_rules();
		/*if ( ! update_post_meta($post_ID, '_wp_page_template',  $_POST['page_template'])) {
			add_post_meta($post_ID, '_wp_page_template',  $_POST['page_template'], true);
		}*/
	}

-30-

2 Responses to “Custom Field bug”

  1. Gravatar Coffelius » Páginas estáticas en Wordpress 1.5 February 24th, 2005 6:47 pm

    […] u valor y se quedaba vacio. Buscando un poco por los blogs encontré un post que describe un bug en los campos personalizados. Sin embargo escribe que el problema lo tiene s […]

  2. Gravatar coffelius February 24th, 2005 6:53 pm

    Hello ! I had the same problem but i have not another browser else the BEST firefox.
    I solved the problem successfuly commenting two lines of code. Take a look at my blog and identify the code. I’m sorry my english is very baaaaad. Is in spanish: Static pages with Wordpress 1.5 custom field bug”