diff --git a/index.php b/index.php index cddf2b6421..037f13bb5c 100644 --- a/index.php +++ b/index.php @@ -89,19 +89,16 @@ require('./wp-blog-header.php');
  • -
  • - -
  • diff --git a/wp-admin/templates.php b/wp-admin/templates.php index 762456a794..8444dc4fed 100644 --- a/wp-admin/templates.php +++ b/wp-admin/templates.php @@ -130,7 +130,7 @@ default: if (!$error) { ?>
    - +

    diff --git a/wp-includes/template-functions-general.php b/wp-includes/template-functions-general.php index 0b290f0f81..26c08894a8 100644 --- a/wp-includes/template-functions-general.php +++ b/wp-includes/template-functions-general.php @@ -2,6 +2,37 @@ /* Note: these tags go anywhere in the template */ +function wp_loginout() { + global $user_level; + get_currentuserinfo(); + + if (0 == $user_level) : + $link = '' . __('Login') . ''; + else : + $link = '' . __('Logout') . ''; + endif; + + echo apply_filters('loginout', $link); +} + +function wp_register() { + global $user_level; + + get_currentuserinfo(); + + if (0 == $user_level) : + $link = '' . __('Register') . ''; + else : + $link = '' . __('Site Admin') . ''; + endif; + + echo apply_filters('register', $link); +} + +function wp_meta() { + do_action('wp_meta', 1); +} + function bloginfo($show='') { $info = get_bloginfo($show); $info = apply_filters('bloginfo', $info);