Changeset 917483
- Timestamp:
- 05/19/2014 09:54:35 PM (11 years ago)
- Location:
- instantclick
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
instantclick/tags/1.0/class-wp-instantclick-options.php
r917444 r917483 139 139 140 140 public function load_settings() { 141 $this->settings = shortcode_atts( a rray(141 $this->settings = shortcode_atts( apply_filters( 'instantclick_defaults', array( 142 142 'before_init' => '', 143 143 'after_init' => '', 144 144 'preload_on' => 'hover', 145 145 'no_instant_scripts' => array() 146 ) , (array) get_option( self::SLUG ) );146 ) ), (array) get_option( self::SLUG ) ); 147 147 } 148 148 … … 154 154 $allowed_preload_values = array( 'hover', '50', '100', 'mousedown' ); 155 155 156 $settings = a rray(156 $settings = apply_filters( 'instantclick_sanitize_settings', array( 157 157 'before_init' => $sanitize_js( $settings['before_init'] ), 158 158 'after_init' => $sanitize_js( $settings['after_init'] ), 159 159 'preload_on' => in_array( $settings['preload_on'], $allowed_preload_values ) ? $settings['preload_on'] : 'hover', 160 160 'no_instant_scripts' => array_map( 'trim', explode( ",", str_replace( "\n", ',', $settings['no_instant_scripts'] ) ) ) 161 ) ;161 ), $settings ); 162 162 163 163 return $settings; -
instantclick/tags/1.0/readme.txt
r917450 r917483 42 42 == Screenshots == 43 43 44 * 44 1. The InstantClick settings page 45 45 46 46 == Changelog == -
instantclick/trunk/class-wp-instantclick-options.php
r917444 r917483 139 139 140 140 public function load_settings() { 141 $this->settings = shortcode_atts( a rray(141 $this->settings = shortcode_atts( apply_filters( 'instantclick_defaults', array( 142 142 'before_init' => '', 143 143 'after_init' => '', 144 144 'preload_on' => 'hover', 145 145 'no_instant_scripts' => array() 146 ) , (array) get_option( self::SLUG ) );146 ) ), (array) get_option( self::SLUG ) ); 147 147 } 148 148 … … 154 154 $allowed_preload_values = array( 'hover', '50', '100', 'mousedown' ); 155 155 156 $settings = a rray(156 $settings = apply_filters( 'instantclick_sanitize_settings', array( 157 157 'before_init' => $sanitize_js( $settings['before_init'] ), 158 158 'after_init' => $sanitize_js( $settings['after_init'] ), 159 159 'preload_on' => in_array( $settings['preload_on'], $allowed_preload_values ) ? $settings['preload_on'] : 'hover', 160 160 'no_instant_scripts' => array_map( 'trim', explode( ",", str_replace( "\n", ',', $settings['no_instant_scripts'] ) ) ) 161 ) ;161 ), $settings ); 162 162 163 163 return $settings; -
instantclick/trunk/readme.txt
r917450 r917483 42 42 == Screenshots == 43 43 44 * 44 1. The InstantClick settings page 45 45 46 46 == Changelog ==
Note: See TracChangeset
for help on using the changeset viewer.