Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Oct 11th, 2018 57 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. function sanitize_select( $input, $setting )
  2. {
  3.     $input = sanitize_key( $input );
  4.     $control = $setting->manager->get_control( $setting->id );
  5.     $choices = $control->choices;
  6.     return ( array_key_exists( $input, $choices ) ? $input : $setting->default );
  7. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top