Changeset 1425374
- Timestamp:
- 05/27/2016 09:24:43 AM (10 years ago)
- Location:
- staticpress
- Files:
-
- 6 added
- 1 deleted
- 4 edited
- 13 copied
-
tags/0.4.4/languages/static-press-tr.mo (added)
-
tags/0.4.4/languages/static-press-tr.po (added)
-
tags/0.4.5 (copied) (copied from staticpress/trunk)
-
tags/0.4.5/images (copied) (copied from staticpress/trunk/images)
-
tags/0.4.5/images/staticpress.png (copied) (copied from staticpress/trunk/images/staticpress.png)
-
tags/0.4.5/includes (copied) (copied from staticpress/trunk/includes)
-
tags/0.4.5/includes/class-InputValidator.php (copied) (copied from staticpress/trunk/includes/class-InputValidator.php)
-
tags/0.4.5/includes/class-admin-menu.php (deleted)
-
tags/0.4.5/includes/class-static_press.php (copied) (copied from staticpress/trunk/includes/class-static_press.php) (1 diff)
-
tags/0.4.5/includes/class-static_press_admin.php (copied) (copied from staticpress/trunk/includes/class-static_press_admin.php) (2 diffs)
-
tags/0.4.5/languages (copied) (copied from staticpress/trunk/languages)
-
tags/0.4.5/languages/static-press-de.mo (copied) (copied from staticpress/trunk/languages/static-press-de.mo)
-
tags/0.4.5/languages/static-press-de.po (copied) (copied from staticpress/trunk/languages/static-press-de.po)
-
tags/0.4.5/languages/static-press-tr.mo (added)
-
tags/0.4.5/languages/static-press-tr.po (added)
-
tags/0.4.5/plugin.php (copied) (copied from staticpress/trunk/plugin.php) (1 diff)
-
tags/0.4.5/readme.txt (copied) (copied from staticpress/trunk/readme.txt) (2 diffs)
-
tags/0.4.5/uninstall.php (copied) (copied from staticpress/trunk/uninstall.php)
-
trunk/includes/class-static_press.php (modified) (1 diff)
-
trunk/includes/class-static_press_admin.php (modified) (2 diffs)
-
trunk/languages/static-press-tr.mo (added)
-
trunk/languages/static-press-tr.po (added)
-
trunk/plugin.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
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 $iv->set_rules('basic_usr', array('trim','esc_html'));149 $iv->set_rules('basic_pwd', array('trim','esc_html'));150 $iv->set_rules('timeout', 'numeric');146 $iv->set_rules('static_url', array('trim','esc_html','url','required')); 147 $iv->set_rules('static_dir', array('trim','esc_html','required')); 148 $iv->set_rules('basic_usr', array('trim','esc_html')); 149 $iv->set_rules('basic_pwd', array('trim','esc_html')); 150 $iv->set_rules('timeout', array('numeric','required')); 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.5 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,amimotoami 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.5.2 7 Stable tag: 0.4.5 8 8 9 9 Transform your WordPress into static websites and blogs. … … 41 41 42 42 == Changelog == 43 44 **0.4.5 - May 27, 2016** 45 46 Added movie ext for movie contents 47 Added validations. 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 $iv->set_rules('basic_usr', array('trim','esc_html'));149 $iv->set_rules('basic_pwd', array('trim','esc_html'));150 $iv->set_rules('timeout', 'numeric');146 $iv->set_rules('static_url', array('trim','esc_html','url','required')); 147 $iv->set_rules('static_dir', array('trim','esc_html','required')); 148 $iv->set_rules('basic_usr', array('trim','esc_html')); 149 $iv->set_rules('basic_pwd', array('trim','esc_html')); 150 $iv->set_rules('timeout', array('numeric','required')); 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.5 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,amimotoami 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.5.2 7 Stable tag: 0.4.5 8 8 9 9 Transform your WordPress into static websites and blogs. … … 41 41 42 42 == Changelog == 43 44 **0.4.5 - May 27, 2016** 45 46 Added movie ext for movie contents 47 Added validations. 43 48 44 49 **0.4.4 - June 19, 2015**
Note: See TracChangeset
for help on using the changeset viewer.