First pass at dashboard. Hat tip: Jesuit.

git-svn-id: https://develop.svn.wordpress.org/trunk@1976 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-12-19 00:10:10 +00:00
parent 3e301ced14
commit 960463fdee
4 changed files with 173 additions and 15 deletions
+9 -6
View File
@@ -46,13 +46,16 @@ function the_title_rss() {
echo $title;
}
function get_the_title() {
global $post;
$output = $post->post_title;
if (!empty($post->post_password)) { // if there's a password
$output = 'Protected: ' . $output;
function get_the_title($id = 0) {
global $post, $wpdb;
$title = $post->post_title;
if ( 0 != $id )
$title = $wpdb->get_var("SELECT post_title FROM $wpdb->posts WHERE ID = $id");
if ( !empty($post->post_password) ) { // if there's a password
$title = 'Protected: ' . $title;
}
return $output;
return $title;
}
function the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {