Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/index.php

    r4399 r3443  
    22require_once('admin.php');
    33$title = __('Dashboard');
    4 $parent_file = 'index.php';
    54require_once('admin-header.php');
    6 require_once (ABSPATH . WPINC . '/rss.php');
     5require_once (ABSPATH . WPINC . '/rss-functions.php');
    76
    87$today = current_time('mysql', 1);
     
    1110<div class="wrap">
    1211
    13 <h2><?php _e('Welcome to WordPress'); ?></h2>
     12<h2><?php _e('Dashboard'); ?></h2>
    1413
    1514<div id="zeitgeist">
     
    2120?>
    2221<div id="incominglinks">
    23 <h3><?php _e('Incoming Links'); ?> <cite><a href="http://www.technorati.com/search/<?php echo trailingslashit(get_option('home')); ?>?partner=wordpress"><?php _e('More &raquo;'); ?></a></cite></h3>
     22<h3><?php _e('Incoming Links'); ?> <cite><a href="http://www.technorati.com/search/<?php echo trailingslashit(get_option('home')); ?>?partner=wordpress"><?php _e('More'); ?> &raquo;</a></cite></h3>
    2423<ul>
    2524<?php
     
    2726foreach ($rss->items as $item ) {
    2827?>
    29     <li><a href="<?php echo wp_filter_kses($item['link']); ?>"><?php echo wptexturize(wp_specialchars($item['title'])); ?></a></li>
     28    <li><a href="<?php echo wp_filter_kses($item['link']); ?>"><?php echo wp_specialchars($item['title']); ?></a></li>
    3029<?php } ?>
    3130</ul>
     
    4544<p><strong><a href="moderation.php"><?php echo sprintf(__('Comments in moderation (%s)'), number_format($numcomments) ); ?> &raquo;</a></strong></p>
    4645<?php endif; ?>
     46</div>
    4747
    4848<ul>
     
    5757?>
    5858</ul>
    59 </div>
     59
    6060<?php endif; ?>
    6161
    6262<?php
    63 if ( $recentposts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 5") ) :
     63if ( $recentposts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 5") ) :
    6464?>
    6565<div>
     
    8080
    8181<?php
    82 if ( $scheduled = $wpdb->get_results("SELECT ID, post_title, post_date_gmt FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'future' ORDER BY post_date ASC") ) :
     82if ( $scheduled = $wpdb->get_results("SELECT ID, post_title, post_date_gmt FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt > '$today' ORDER BY post_date ASC") ) :
    8383?>
    8484<div>
     
    9999<h3><?php _e('Blog Stats'); ?></h3>
    100100<?php
    101 $numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish'");
     101$numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish'");
    102102if (0 < $numposts) $numposts = number_format($numposts);
    103103
     
    114114</div>
    115115
     116<h3><?php _e('Welcome to WordPress'); ?></h3>
     117
    116118<p><?php _e('Use these links to get started:'); ?></p>
    117119
    118120<ul>
    119 <?php if ( current_user_can('edit_posts') ) : ?>
    120     <li><a href="post-new.php"><?php _e('Write a post'); ?></a></li>
    121 <?php endif; ?>
    122     <li><a href="profile.php"><?php _e('Update your profile or change your password'); ?></a></li>
    123 <?php if ( current_user_can('manage_links') ) : ?>
    124     <li><a href="link-add.php"><?php _e('Add a bookmark to your blogroll'); ?></a></li>
    125 <?php endif; ?>
    126 <?php if ( current_user_can('switch_themes') ) : ?>
    127     <li><a href="themes.php"><?php _e('Change your site&#8217;s look or theme'); ?></a></li>
    128 <?php endif; ?>
     121<li><a href="post.php"><?php _e('Write a post'); ?></a></li>
     122<li><a href="profile.php"><?php _e('Update your profile or change your password'); ?></a></li>
     123<li><a href="link-add.php"><?php _e('Add a link to your blogroll'); ?></a></li>
     124<li><a href="themes.php"><?php _e('Change your site&#8217;s look or theme'); ?></a></li>
    129125</ul>
    130 <p><?php _e("Need help with WordPress? Please see our <a href='http://codex.wordpress.org/'>documentation</a> or visit the <a href='http://wordpress.org/support/'>support forums</a>."); ?></p>
     126
     127<p><?php _e("Below is the latest news from the official WordPress development blog, click on a title to read the full entry. If you need help with WordPress please see our <a href='http://codex.wordpress.org/'>great documentation</a> or if that doesn't help visit the <a href='http://wordpress.org/support/'>support forums</a>."); ?></p>
    131128<?php
    132129$rss = @fetch_rss('http://wordpress.org/development/feed/');
    133130if ( isset($rss->items) && 0 != count($rss->items) ) {
    134131?>
    135 <div id="devnews">
    136132<h3><?php _e('WordPress Development Blog'); ?></h3>
    137133<?php
     
    145141}
    146142?>
    147 </div>
     143
    148144
    149145<?php
     
    152148?>
    153149<div id="planetnews">
    154 <h3><?php _e('Other WordPress News'); ?></h3>
     150<h3><?php _e('Other WordPress News'); ?> <a href="http://planet.wordpress.org/"><?php _e('more'); ?> &raquo;</a></h3>
    155151<ul>
    156152<?php
    157153$rss->items = array_slice($rss->items, 0, 20);
    158154foreach ($rss->items as $item ) {
    159 $title = wp_specialchars($item['title']);
    160 $author = preg_replace( '|(.+?):.+|s', '$1', $item['title'] );
    161 $post = preg_replace( '|.+?:(.+)|s', '$1', $item['title'] );
    162155?>
    163 <li><a href='<?php echo wp_filter_kses($item['link']); ?>'><span class="post"><?php echo $post; ?></span><span class="hidden"> - </span><cite><?php echo $author; ?></cite></a></li>
     156<li><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a></li>
    164157<?php
    165158    }
    166159?>
    167160</ul>
    168 <p class="readmore"><a href="http://planet.wordpress.org/"><?php _e('Read more'); ?> &raquo;</a></p>
    169161</div>
    170162<?php
Note: See TracChangeset for help on using the changeset viewer.