Title: Small mistake in code
Last modified: December 28, 2017

---

# Small mistake in code

 *  Resolved [Oleksandr](https://wordpress.org/support/users/track77/)
 * (@track77)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/small-mistake-in-code/)
 * Hello!
    Thanks for great plugin.
 * I found a small mistake in code
    file:”core-functions.php”
 *     ```
       apply_filters('usp_image_args', $args = array(
       		'post_type'   => 'attachment',
       		'post_parent' => get_the_ID(),
       		'numberposts' => -1,
       	)
       );
       ```
   
 * It should be
    **$args = **`apply_filters(‘usp_image_args’, $args = array( ‘post_type’
   => ‘attachment’, ‘post_parent’ => get_the_ID(), ‘numberposts’ => -1, ) );`
    -  This topic was modified 8 years, 4 months ago by [Oleksandr](https://wordpress.org/support/users/track77/).

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

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/small-mistake-in-code/#post-9816607)
 * Thanks for reporting, will get this fixed up in the next version of USP. Cheers
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/small-mistake-in-code/#post-10075891)
 * Just to follow up with this, the code has been updated in the next version of
   USP, should be available within the next few days. Thanks again for reporting.

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

The topic ‘Small mistake in code’ is closed to new replies.

 * ![](https://ps.w.org/user-submitted-posts/assets/icon-256x256.png?rev=2567685)
 * [User Submitted Posts – Enable Users to Submit Posts from the Front End](https://wordpress.org/plugins/user-submitted-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-submitted-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-submitted-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/user-submitted-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-submitted-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-submitted-posts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/small-mistake-in-code/#post-10075891)
 * Status: resolved