Changeset 4709
- Timestamp:
- 01/09/2007 10:04:49 AM (19 years ago)
- Location:
- branches/2.0
- Files:
-
- 3 edited
-
wp-admin/post.php (modified) (2 diffs)
-
wp-includes/functions.php (modified) (1 diff)
-
wp-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-admin/post.php
r4697 r4709 141 141 142 142 $post = & get_post($post_id); 143 144 if ( $post->post_status == 'static') 143 if ( 'static' == $post->post_status ) 145 144 check_admin_referer('delete-page_' . $post_id); 146 145 else … … 159 158 160 159 $sendback = wp_get_referer(); 161 if ( $post->post_status == 'static')160 if ( 'static' == $post->post_status ) 162 161 $sendback = get_option('siteurl') . '/wp-admin/edit-pages.php'; 163 162 elseif ( strstr($sendback, 'post.php') ) -
branches/2.0/wp-includes/functions.php
r4684 r4709 2229 2229 $text = 'Gone'; 2230 2230 2231 // if ( substr(php_sapi_name(), 0, 3) == 'cgi' ) 2232 @header("HTTP/1.1 $header $text"); 2233 // else 2234 // @header("Status: $header $text"); 2231 @header("HTTP/1.1 $header $text"); 2235 2232 } 2236 2233 -
branches/2.0/wp-settings.php
r4696 r4709 72 72 require_once (ABSPATH . WPINC . '/wp-db.php'); 73 73 74 // $table_prefix will be deprecated in version 2.175 $wpdb->prefix = $table_prefix;76 77 if ( preg_match('|[^a-z0-9_]|i', $wpdb->prefix) )78 die(__('<strong>ERROR</strong>: <code>$table_prefix</code> in <code>wp-config.php</code> can only contain numbers, letters, and underscores.'));79 80 74 // Table names 81 $wpdb->posts = $wpdb->prefix . 'posts'; 82 $wpdb->users = $wpdb->prefix . 'users'; 83 $wpdb->categories = $wpdb->prefix . 'categories'; 84 $wpdb->post2cat = $wpdb->prefix . 'post2cat'; 85 $wpdb->comments = $wpdb->prefix . 'comments'; 86 $wpdb->links = $wpdb->prefix . 'links'; 87 $wpdb->linkcategories = $wpdb->prefix . 'linkcategories'; 88 $wpdb->options = $wpdb->prefix . 'options'; 89 $wpdb->postmeta = $wpdb->prefix . 'postmeta'; 90 $wpdb->usermeta = $wpdb->prefix . 'usermeta'; 75 $wpdb->posts = $table_prefix . 'posts'; 76 $wpdb->users = $table_prefix . 'users'; 77 $wpdb->categories = $table_prefix . 'categories'; 78 $wpdb->post2cat = $table_prefix . 'post2cat'; 79 $wpdb->comments = $table_prefix . 'comments'; 80 $wpdb->links = $table_prefix . 'links'; 81 $wpdb->linkcategories = $table_prefix . 'linkcategories'; 82 $wpdb->options = $table_prefix . 'options'; 83 $wpdb->postmeta = $table_prefix . 'postmeta'; 84 $wpdb->usermeta = $table_prefix . 'usermeta'; 85 86 $wpdb->prefix = $table_prefix; 91 87 92 88 if ( defined('CUSTOM_USER_TABLE') )
Note: See TracChangeset
for help on using the changeset viewer.