Changeset 515095
- Timestamp:
- 03/06/2012 03:14:46 AM (14 years ago)
- Location:
- http-authentication/trunk
- Files:
-
- 3 edited
-
http-authentication.php (modified) (2 diffs)
-
options-page.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
http-authentication/trunk/http-authentication.php
r487647 r515095 43 43 } 44 44 45 $current_db_version = isset($this->options['db_version']) ? $this->options['db_version'] : 0;45 $current_db_version = isset($this->options['db_version']) ? $this->options['db_version'] : 0; 46 46 $this->upgrade($current_db_version); 47 47 $this->options['db_version'] = $this->db_version; 48 48 update_option($this->option_name, $this->options); 49 }49 } 50 50 } 51 51 … … 245 245 function _get_base_url() { 246 246 $home = parse_url(home_url()); 247 $base = str_replace(array($home['path'], $home['query'], $home['fragment']), '', home_url()); 247 248 $base = home_url(); 249 foreach (array('path', 'query', 'fragment') as $key) { 250 if (! isset($home[$key])) continue; 251 $base = str_replace($home[$key], '', $base); 252 } 248 253 249 254 return $base; -
http-authentication/trunk/options-page.php
r429816 r515095 40 40 $output = $input; 41 41 $output['db_version'] = $this->plugin->db_version; 42 $output['allow_wp_auth'] = isset($input['allow_wp_auth']) ? (bool) $input['allow_wp_auth'] : false; 43 $output['auto_create_user'] = isset($input['auto_create_user']) ? (bool) $input['auto_create_user'] : false; 42 44 43 45 return $output; -
http-authentication/trunk/readme.txt
r493364 r515095 137 137 == Changelog == 138 138 139 = 4.5 = 140 * Avoid some PHP notices due to saving options (William Schneider) 141 139 142 = 4.4 = 140 143 * Update CSS to correctly center login button on WordPress 3.3
Note: See TracChangeset
for help on using the changeset viewer.