Fixed one of the common complaint of layout breaking when unable to retrieve feed. Instead of displaying the lengthy “Warning: array_slice(): The first argument should be an array…”, a simple message “Feed may be down” is shown.

List of updates for OneNews Theme v1.5

  • Display “Feed may be down” message instead of “Warning: array_slice(): The first argument should be an array”, which breaks the layout
  • Tested on WP 2.5
  • Fix fat top banner in IE (style.css and styleb.css)
  • Upgrade Exec-PHP plugin to version 4.7
  • Upgrade flickrRSS plugin to version 4.0

Grab the latest version of OneNews package

For existing theme user who prefer to do manual upgrade, below are the code/file changes. Remember to backup first.

1. Display “Feed may be down” message
In your post (you may refer to post.txt for comparison)
search every instance of

$rss = fetch_rss

insert a blank line below and add

if ($rss) {

search for every instance of

echo '</ul>';

and replace with

}
else {
print 'Feed may be down';
}
echo '</ul>';

2. Deprecated rss-functions.php file
In your post (you may refer to post.txt for comparison)
find

<?php require_once(ABSPATH . WPINC . '/rss-functions.php'); ?>

replace with

<?php require_once(ABSPATH . WPINC . '/rss.php'); ?>

3. Fat top banner in IE
In style.css and styleb.css
find

div#banner-nav-center {
width: 980px;
margin:0 auto 0 auto;
padding: 0.6em 10px 2em 10px;
}

replace with

div#banner-nav-center {
width: 980px;
height: 18px;
margin:0 auto 0 auto;
padding: 0.6em 10px 0.6em 10px;
}

4. Updgrade flickrss and Exec-PHP plugin
a. deactivate plugins
b. delete plugin files
c. update plugin files (in folders)
d. activate new plugins


What's Next?

» Bookmark and Share
» Subscribe to Feed
» Leave a Comment

Related Posts:
» Theme Update: OneNews 2.0
» Google PageRank Update
» Useful Plugin for OneNews Theme

» Newer Post:
« Previous Post: