Changeset 1425374
- Timestamp:
- 05/27/2016 09:24:43 AM (8 years ago)
- Location:
- staticpress
- Files:
-
- 6 added
- 1 deleted
- 4 edited
- 13 copied
Legend:
- Unmodified
- Added
- Removed
-
staticpress/tags/0.4.5/includes/class-static_press.php
r1184011 r1425374 23 23 'html','htm','txt','css','js','gif','png','jpg','jpeg', 24 24 'mp3','ico','ttf','woff','woff2','otf','eot','svg','svgz','xml', 25 'gz','zip', 'pdf', 'swf', 'xsl', 25 'gz','zip', 'pdf', 'swf', 'xsl', 'mov', 'mp4', 'wmv', 'flv', 26 'webm', 'ogg', 'oga', 'ogv', 'ogx', 'spx', 'opus', 26 27 ); 27 28 -
staticpress/tags/0.4.5/includes/class-static_press_admin.php
r1184011 r1425374 144 144 $iv = new InputValidator('POST'); 145 145 $iv->set_rules($nonce_name, 'required'); 146 $iv->set_rules('static_url', array('trim','esc_html'));147 $iv->set_rules('static_dir', array('trim','esc_html'));148 149 150 $iv->set_rules('timeout', 'numeric');146 ')); 147 ')); 148 $iv->set_rules('basic_usr', array('trim','esc_html')); 149 $iv->set_rules('basic_pwd', array('trim','esc_html')); 150 ); 151 151 152 152 // Update options … … 164 164 165 165 // Update options 166 update_option(self::OPTION_STATIC_URL, $static_url); 167 update_option(self::OPTION_STATIC_DIR, $static_dir); 168 update_option(self::OPTION_STATIC_BASIC, $basic_auth); 169 update_option(self::OPTION_STATIC_TIMEOUT, $timeout); 170 printf( 171 '<div id="message" class="updated fade"><p><strong>%s</strong></p></div>'."\n", 172 empty($err_message) ? __('Done!', self::TEXT_DOMAIN) : $err_message 173 ); 174 175 $this->static_url = $static_url; 176 $this->static_dir = $static_dir; 177 $this->basic_auth = $basic_auth; 178 $this->timeout = $timeout; 166 $e = new WP_Error(); 167 if (is_wp_error($static_url)) { 168 $e->add('error', $static_url->get_error_messages()); 169 }else{ 170 update_option(self::OPTION_STATIC_URL, $static_url); 171 $this->static_url = $static_url; 172 } 173 if (is_wp_error($static_dir)) { 174 $e->add('error', $static_dir->get_error_messages()); 175 }else{ 176 update_option(self::OPTION_STATIC_DIR, $static_dir); 177 $this->static_dir = $static_dir; 178 } 179 if (is_wp_error($timeout)) { 180 $e->add('error', $timeout->get_error_messages()); 181 }else{ 182 update_option(self::OPTION_STATIC_TIMEOUT, $timeout); 183 $this->timeout = $timeout; 184 } 185 186 if ($e->get_error_code()){ 187 $errors = $e->get_error_messages('error'); 188 echo '<div id="message" class="error"><p><strong>'; 189 foreach( $errors as $error ) { 190 $err_message = $error[0]; 191 echo "$err_message" . '<br />'; 192 } 193 echo '</strong></p></div>'; 194 }else{ 195 printf( 196 '<div id="message" class="updated fade"><p><strong>%s</strong></p></div>'."\n", __('Done!', self::TEXT_DOMAIN) 197 ); 198 } 199 179 200 180 201 } -
staticpress/tags/0.4.5/plugin.php
r1184011 r1425374 5 5 Plugin URI: http://en.staticpress.net/ 6 6 Description: Transform your WordPress into static websites and blogs. 7 Version: 0.4. 47 Version: 0.4. 8 8 Author URI: http://www.digitalcube.jp/ 9 9 Text Domain: static-press -
staticpress/tags/0.4.5/readme.txt
r1184011 r1425374 1 1 === StaticPress === 2 Contributors: wokamoto, megumitheme s2 Contributors: wokamoto, megumitheme 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJCY7XB8F4&lc=JP&item_name=WordPress%20Plugins&item_number=wp%2dplugins¤cy_code=JPY&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted 4 4 Tags: static 5 5 Requires at least: 3.5 6 Tested up to: 4. 2.27 Stable tag: 0.4. 46 Tested up to: 4..2 7 Stable tag: 0.4. 8 8 9 9 Transform your WordPress into static websites and blogs. … … 41 41 42 42 == Changelog == 43 44 45 46 47 43 48 44 49 **0.4.4 - June 19, 2015** -
staticpress/trunk/includes/class-static_press.php
r1184011 r1425374 23 23 'html','htm','txt','css','js','gif','png','jpg','jpeg', 24 24 'mp3','ico','ttf','woff','woff2','otf','eot','svg','svgz','xml', 25 'gz','zip', 'pdf', 'swf', 'xsl', 25 'gz','zip', 'pdf', 'swf', 'xsl', 'mov', 'mp4', 'wmv', 'flv', 26 'webm', 'ogg', 'oga', 'ogv', 'ogx', 'spx', 'opus', 26 27 ); 27 28 -
staticpress/trunk/includes/class-static_press_admin.php
r1184011 r1425374 144 144 $iv = new InputValidator('POST'); 145 145 $iv->set_rules($nonce_name, 'required'); 146 $iv->set_rules('static_url', array('trim','esc_html'));147 $iv->set_rules('static_dir', array('trim','esc_html'));148 149 150 $iv->set_rules('timeout', 'numeric');146 ')); 147 ')); 148 $iv->set_rules('basic_usr', array('trim','esc_html')); 149 $iv->set_rules('basic_pwd', array('trim','esc_html')); 150 ); 151 151 152 152 // Update options … … 164 164 165 165 // Update options 166 update_option(self::OPTION_STATIC_URL, $static_url); 167 update_option(self::OPTION_STATIC_DIR, $static_dir); 168 update_option(self::OPTION_STATIC_BASIC, $basic_auth); 169 update_option(self::OPTION_STATIC_TIMEOUT, $timeout); 170 printf( 171 '<div id="message" class="updated fade"><p><strong>%s</strong></p></div>'."\n", 172 empty($err_message) ? __('Done!', self::TEXT_DOMAIN) : $err_message 173 ); 174 175 $this->static_url = $static_url; 176 $this->static_dir = $static_dir; 177 $this->basic_auth = $basic_auth; 178 $this->timeout = $timeout; 166 $e = new WP_Error(); 167 if (is_wp_error($static_url)) { 168 $e->add('error', $static_url->get_error_messages()); 169 }else{ 170 update_option(self::OPTION_STATIC_URL, $static_url); 171 $this->static_url = $static_url; 172 } 173 if (is_wp_error($static_dir)) { 174 $e->add('error', $static_dir->get_error_messages()); 175 }else{ 176 update_option(self::OPTION_STATIC_DIR, $static_dir); 177 $this->static_dir = $static_dir; 178 } 179 if (is_wp_error($timeout)) { 180 $e->add('error', $timeout->get_error_messages()); 181 }else{ 182 update_option(self::OPTION_STATIC_TIMEOUT, $timeout); 183 $this->timeout = $timeout; 184 } 185 186 if ($e->get_error_code()){ 187 $errors = $e->get_error_messages('error'); 188 echo '<div id="message" class="error"><p><strong>'; 189 foreach( $errors as $error ) { 190 $err_message = $error[0]; 191 echo "$err_message" . '<br />'; 192 } 193 echo '</strong></p></div>'; 194 }else{ 195 printf( 196 '<div id="message" class="updated fade"><p><strong>%s</strong></p></div>'."\n", __('Done!', self::TEXT_DOMAIN) 197 ); 198 } 199 179 200 180 201 } -
staticpress/trunk/plugin.php
r1184011 r1425374 5 5 Plugin URI: http://en.staticpress.net/ 6 6 Description: Transform your WordPress into static websites and blogs. 7 Version: 0.4. 47 Version: 0.4. 8 8 Author URI: http://www.digitalcube.jp/ 9 9 Text Domain: static-press -
staticpress/trunk/readme.txt
r1184011 r1425374 1 1 === StaticPress === 2 Contributors: wokamoto, megumitheme s2 Contributors: wokamoto, megumitheme 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJCY7XB8F4&lc=JP&item_name=WordPress%20Plugins&item_number=wp%2dplugins¤cy_code=JPY&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted 4 4 Tags: static 5 5 Requires at least: 3.5 6 Tested up to: 4. 2.27 Stable tag: 0.4. 46 Tested up to: 4..2 7 Stable tag: 0.4. 8 8 9 9 Transform your WordPress into static websites and blogs. … … 41 41 42 42 == Changelog == 43 44 45 46 47 43 48 44 49 **0.4.4 - June 19, 2015**
Note: See TracChangeset
for help on using the changeset viewer.