Title: syntax error
Last modified: August 21, 2016

---

# syntax error

 *  Resolved [Randy Hicks](https://wordpress.org/support/users/vc27/)
 * (@vc27)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-64/)
 * I get a syntax error for line 26 of p2-post-feedback.php
 * I just removed the code since it wasn’t needed for my installation. The author
   is using function() {} with in the actions second parameter field.
 * line 26 — add_action( ‘admin_notices’, function() { … } );
 * An easy fix would be to move the function out of the add_action parameter. If
   there is a repo somewhere I don’t mind submitting the fix.
 * [http://wordpress.org/plugins/p2-post-feedback/](http://wordpress.org/plugins/p2-post-feedback/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Laura](https://wordpress.org/support/users/lauraquellmalz/)
 * (@lauraquellmalz)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-64/#post-4454164)
 * Ah, thanks. I’ll patch this!

Viewing 1 replies (of 1 total)

The topic ‘syntax error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/p2-post-feedback_3f4344.svg)
 * [P2 Post Feedback](https://wordpress.org/plugins/p2-post-feedback/)
 * [Support Threads](https://wordpress.org/support/plugin/p2-post-feedback/)
 * [Active Topics](https://wordpress.org/support/plugin/p2-post-feedback/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/p2-post-feedback/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/p2-post-feedback/reviews/)

## Tags

 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [Laura](https://wordpress.org/support/users/lauraquellmalz/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-64/#post-4454164)
 * Status: resolved