WordPress.org

Make WordPress Core

Changeset 2192


Ignore:
Timestamp:
02/01/2005 09:52:36 AM (17 years ago)
Author:
saxmatt
Message:

Dashboard and option tweaks

Location:
trunk
Files:
4 edited

Legend:

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

    r2096 r2192  
    8585</div>
    8686
     87<?php
     88$rss = @fetch_rss('http://feedster.com/links.php?url='. trailingslashit(get_option('home')) .'&type=rss&limit=6');
     89if ( isset($rss->items) && 0 != count($rss->items) ) {
     90?>
     91<div>
     92<h3><?php _e('Incoming Links'); ?> <cite><a href="http://feedster.com/links.php?url=<?php echo trailingslashit(get_option('home')); ?>"><?php _e('More'); ?> &raquo;</a></cite></h3>
     93<ul>
     94<?php
     95$rss->items = array_slice($rss->items, 0, 6);
     96foreach ($rss->items as $item ) {
     97?>
     98    <li><a href="<?php echo wp_filter_kses($item['link']); ?>"><?php echo wp_specialchars($item['title']); ?></a></li>
     99<?php } ?>
     100</ul>
     101</div>
     102<?php } ?>
     103
    87104</div>
    88105
     
    95112<h3>WordPress Development Blog</h3>
    96113<?php
    97 $rss->items = array_slice($rss->items, 0, 4);
     114$rss->items = array_slice($rss->items, 0, 3);
    98115foreach ($rss->items as $item ) {
    99116?>
    100 <h4><a href='<?php echo $item['link']; ?>'><?php echo wp_specialchars($item['title']); ?></a> &#8212; <?php echo human_time_diff( strtotime($item['pubdate'], time() ) ); ?> <?php _e('ago'); ?></h4>
     117<h4><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a> &#8212; <?php echo human_time_diff( strtotime($item['pubdate'], time() ) ); ?> <?php _e('ago'); ?></h4>
    101118<p><?php echo $item['description']; ?></p>
    102119<?php
     
    104121}
    105122?>
     123
     124<?php
     125$rss = @fetch_rss('http://planet.wordpress.org/feed/');
     126//var_dump($rss);
     127if ( $rss ) {
     128?>
     129<h3><?php _e('Other WordPress News'); ?> <a href="http://planet.wordpress.org/"><?php _e('more'); ?> &raquo;</a></h3>
     130<ul>
     131<?php
     132$rss->items = array_slice($rss->items, 0, 20);
     133foreach ($rss->items as $item ) {
     134?>
     135<li><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a></li>
     136<?php
     137    }
     138?>
     139</ul>
     140<?php
     141}
     142?>
     143
    106144<br clear="all" />
    107145</div>
  • trunk/wp-admin/upgrade-schema.php

    r2166 r2192  
    7373  option_can_override enum('Y','N') NOT NULL default 'Y',
    7474  option_type int(11) NOT NULL default '1',
    75   option_value text NOT NULL,
     75  option_value longtext NOT NULL,
    7676  option_width int(11) NOT NULL default '20',
    7777  option_height int(11) NOT NULL default '8',
  • trunk/wp-admin/wp-admin.css

    r2052 r2192  
    506506    border-bottom: 1px solid #ccc;
    507507    font-size: 16px;
    508     margin: 1em 0;
     508    margin: 1em 0 0;
     509}
     510
     511#zeitgeist h3 cite {
     512    font-size: 12px;
     513    font-style: normal;
    509514}
    510515
  • trunk/wp-includes/rss-functions.php

    r2027 r2192  
    599599   
    600600    if ( !defined('MAGPIE_FETCH_TIME_OUT') ) {
    601         define('MAGPIE_FETCH_TIME_OUT', 5); // 5 second timeout
     601        define('MAGPIE_FETCH_TIME_OUT', 2); // 2 second timeout
    602602    }
    603603   
Note: See TracChangeset for help on using the changeset viewer.