WordPress.org

Ready to get started?Download WordPress

Forums

Quick Post Widget
`form` function could be much easier (1 post)

  1. Franz Josef Kaiser
    Member
    Posted 2 years ago #

    You're writing a pretty big list for something that could be pretty easy replaced by a short one-liner:
    extract( array_map( 'esc_attr', $instance ), EXTR_SKIP );. This way you run esc_attr() on every item of the array and afterwards extract every $instance-item into it's own variable exactly named like the ones in your array. Double values will be skipped using EXTR_SKIP, but you can take a look at the alternatives on php.net.

    http://wordpress.org/extend/plugins/quick-post-widget/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Franz Josef Kaiser
  • This topic is not resolved
  • WordPress version: 3.3.1