The MU forums have moved to WordPress.org

New default page in WP MU 2.8.1 (1 post)

  1. Romik84
    Member
    Posted 14 years ago #

    Hi there,

    I have a trouble with creating a new page after a new blog is created. I used WP MU 2.7 and after I upgraded to 2.8.1 the function in wpmu-functions.php doesn't work anymore. I called function arround line 1443 as:

    $wpdb->query("INSERT INTO $wpdb->posts (post_author, post_date, post_date_gmt, post_content, post_excerpt, post_title, post_category, post_name, post_modified, post_modified_gmt, post_status, post_type, to_ping, pinged, post_content_filtered) VALUES ('$user_id', '$now', '$now_gmt', '".$wpdb->escape(__(''))."', '', '".$wpdb->escape(__('Archives'))."', '3', '".$wpdb->escape(__('archives'))."', '$now', '$now_gmt', 'publish', 'page', '', '', '')");
    $wpdb->query("insert into $wpdb->postmeta (post_id,meta_key,meta_value) values ('3','_wp_page_template','archives.php')");

    what should I change? Thanks.

About this Topic

  • Started 14 years ago by Romik84