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>';
</pre?
<strong>2. Deprecated rss-functions.php file</strong>
In your post (you may refer to post.txt for comparison)
find
<pre class="brush: php; gutter: true; first-line: 1; highlight: []; html-script: false">
<?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
Browse and Share
» Subscribe to Feed» Leave a Comment
Related Posts:
» Theme Update: OneNews 2.0
» Theme Update: OneNews 3.2
» Useful Plugin for OneNews Theme
» Newer Post: Cheap Webhosting with Unlimited Storage/Bandwidth/Domains
« Previous Post: Comment on High PR Blogs for Free Linkbacks












Have you considered creating a forum for this theme since there are a lot us using it and maybe a way to exchange tips on how to use and modify it.
BTW, thanks for creating this theme. You rock!
Maintaining a forum can be a chore :p