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

  1. Franz Josef Kaiser
    Posted 3 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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

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