Ticket #5607: remove_admin_notices.diff
File remove_admin_notices.diff, 2.1 KB (added by , 17 years ago) |
---|
-
wp-includes/post-template.php
56 56 $title = $post->post_title; 57 57 if ( !empty($post->post_password) ) 58 58 $title = sprintf(__('Protected: %s'), $title); 59 else if ( 'private' == $post->post_status )59 else if ( isset($post->post_status) && 'private' == $post->post_status ) 60 60 $title = sprintf(__('Private: %s'), $title); 61 61 62 62 return apply_filters( 'the_title', $title ); … … 443 443 $post->iconsize = array($imagesize[0], $imagesize[1]); 444 444 $constraint = ''; 445 445 } 446 } else { 447 $constraint = ''; 446 448 } 447 449 448 450 $post_title = attribute_escape($post->post_title); -
wp-includes/bookmark.php
184 184 $recently_updated_test = ''; 185 185 } 186 186 187 if ($show_updated) { 188 $get_updated = ", UNIX_TIMESTAMP(link_updated) AS link_updated_f "; 189 } 187 $get_updated = ( $show_updated ) ? ", UNIX_TIMESTAMP(link_updated) AS link_updated_f " : ''; 190 188 191 189 $orderby = strtolower($orderby); 192 190 $length = ''; -
wp-includes/link-template.php
142 142 143 143 $pagestruct = $wp_rewrite->get_page_permastruct(); 144 144 145 if ( '' != $pagestruct && 'draft' != $post->post_status) {145 if ( '' != $pagestruct && ( empty($post->post_status) || 'draft' != $post->post_status ) ) { 146 146 $link = get_page_uri($id); 147 147 $link = str_replace('%pagename%', $link, $pagestruct); 148 148 $link = get_option('home') . "/$link"; … … 597 597 $request = remove_query_arg( 'paged' ); 598 598 599 599 $home_root = parse_url(get_option('home')); 600 $home_root = $home_root['path'];600 $home_root = ( isset($home_root['path']) ) ? $home_root['path'] : null; 601 601 $home_root = preg_quote( trailingslashit( $home_root ), '|' ); 602 602 603 603 $request = preg_replace('|^'. $home_root . '|', '', $request);