Title: [Plugin: Network Latest Posts] Problem with 3.0, unexpected T_FUNCTION
Last modified: August 20, 2016

---

# [Plugin: Network Latest Posts] Problem with 3.0, unexpected T_FUNCTION

 *  Resolved [coreybroderick](https://wordpress.org/support/users/coreybroderick/)
 * (@coreybroderick)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-problem-with-30-unexpected-t_function/)
 * This is a great plugin, thanks for the work so far.
 * When I updated to latest version of this plugin (3.0 from 2.0.4), I received:
   
   Parse error: syntax error, unexpected T_FUNCTION in ******\wp-content\plugins\
   network-latest-posts\network-latest-posts.php on line 1092
 * [http://wordpress.org/extend/plugins/network-latest-posts/](http://wordpress.org/extend/plugins/network-latest-posts/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [skepticblogsnet](https://wordpress.org/support/users/skepticblogsnet/)
 * (@skepticblogsnet)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-problem-with-30-unexpected-t_function/#post-2945123)
 * This happened to me as well. WP 3.4.1; subdirectory type network. Exactly the
   same error message, line etc..,
 *  Plugin Author [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * (@iluminatus)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-problem-with-30-unexpected-t_function/#post-2945164)
 * Hello guys, I’m going to check this out.
 *  Plugin Author [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * (@iluminatus)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-problem-with-30-unexpected-t_function/#post-2945165)
 * Ok guys, I think I found why this is happening. Line 1092 uses the add_action
   syntax for PHP 5.3, I will add support for ancient versions to avoid this behavior.
   I’m working on it.
 *  Plugin Author [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * (@iluminatus)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-problem-with-30-unexpected-t_function/#post-2945168)
 * Hello guys, this has been fixed. Explaining a little bit this problem, I was 
   using `add_action('widgets_init', function(){ })` which is the way used in PHP
   versions >= 5.3, I modified this for the way it was done before `add_action('
   widgets_init', create_function('', 'my_function'));` which provides compatibility
   for all PHP versions.
 * Thanks for your feedback, please test it and let me know if it works as expected
   so I can mark this topic as resolved.
 * Cheers.
 *  Thread Starter [coreybroderick](https://wordpress.org/support/users/coreybroderick/)
 * (@coreybroderick)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-problem-with-30-unexpected-t_function/#post-2945171)
 * I can confrim that fixed it for me. Works great now. Thanks so much.
 *  Plugin Author [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * (@iluminatus)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-problem-with-30-unexpected-t_function/#post-2945172)
 * Great news Corey!,
 * Thanks for your feedback, have a good day.
 * Cheers.
 *  [skepticblogsnet](https://wordpress.org/support/users/skepticblogsnet/)
 * (@skepticblogsnet)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-problem-with-30-unexpected-t_function/#post-2945184)
 * Thanks Jose, it appears to be working- but I do have a new issue. My theme (Purity)
   styles nav bars pretty weirdly (tabs and large text and hover effects). I’d rather
   just have plain text and links, and now I’m trying to de-skin the crap out of
   the nav bar.
 * Is there an easy way to circumvent the .nav stuff so it’s just a straight text
   list?
 *  Plugin Author [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * (@iluminatus)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-problem-with-30-unexpected-t_function/#post-2945185)
 * Hi skepticblogsnet,
 * I imagined that something like this could happen, well I’ve added two new parameters`
   wrapper_list_css` and `wrapper_block_css`, these parameters allows you to override
   the default classes.
 * Please test it and let me know what you think.
 * Cheers.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘[Plugin: Network Latest Posts] Problem with 3.0, unexpected T_FUNCTION’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/network-latest-posts_61c601.svg)
 * [Network Latest Posts](https://wordpress.org/plugins/network-latest-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/network-latest-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/network-latest-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/network-latest-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/network-latest-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/network-latest-posts/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-problem-with-30-unexpected-t_function/#post-2945185)
 * Status: resolved