- RT @dougal: VISHUS ATTAK KITTEH GARDS MAH SERVR! http://bit.ly/134XUb #heh #
- Just noticed the ALA's Banned Book Week has started! http://is.gd/3KBf1 #
- Just realized I didn't have a replies/mentions column open in Tweetdeck. Oops. #
- Computer scientists model Rome in a day, using 150K Flickr images http://is.gd/3q6zI #amazing #popsci #
- What Teabagger Signs Say Vs. What They Mean http://is.gd/3xnc8 (via @lesjenkins) #
- Will Ferrell's sticking up for the "real" victims — the super-rich health insurance executives: http://bit.ly/sW8uN #sickofit (via @MoveOn) #
- A real-life Calvin & Hobbes moment? http://bit.ly/16LuEq (via @DesignerDepot) #
- RT @BadAstronomer: Am I angry? *Damn right I'm angry!* http://is.gd/32DQ4 #
- RT @jcauditor: No one should die because they cannot afford health care or go broke because they get sick. If agree please tweet this today #
I like using Now-Reading to track what books I’m currently reading, have read and want to read on my website. Unfortunately the plugin’s author has been too busy of late to update the plugin and one of the recent updates to WordPress caused Now-Reading’s admin menu to break (when using the single menu option). PHP is not a programming language that I’m really familiar with but I did some poking around in Now-Reading’s code and found if I changed this snip of code:
if ( $options['menuLayout'] == NR_MENU_SINGLE ) {
add_menu_page('Now Reading', 'Now Reading', 9, 'admin.php?page=add_book', 'now_reading_add');
add_submenu_page('admin.php?page=add_book', 'Add a Book', 'Add a Book',$nr_level , 'add_book', 'now_reading_add');
add_submenu_page('admin.php?page=add_book', 'Manage Books', 'Manage Books', $nr_level, 'manage_books', 'nr_manage');
add_submenu_page('admin.php?page=add_book', 'Options', 'Options', 9, 'nr_options', 'nr_options');
To read like this:
if ( $options['menuLayout'] == NR_MENU_SINGLE ) {
add_menu_page('Now Reading', 'Now Reading', 9, 'add_book', 'now_reading_add');
add_submenu_page('add_book', 'Add a Book', 'Add a Book',$nr_level , 'add_book', 'now_reading_add');
add_submenu_page('add_book', 'Manage Books', 'Manage Books', $nr_level, 'manage_books', 'nr_manage');
add_submenu_page('add_book', 'Options', 'Options', 9, 'nr_options', 'nr_options');
Then Now-Reading’s single admin menu worked properly again.