Plugin Directory

Changeset 1425374

Timestamp:
05/27/2016 09:24:43 AM (8 years ago)
Author:
wokamoto
Message:

[StaticPress] Update ver. 0.4.5

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  
    2323        'html','htm','txt','css','js','gif','png','jpg','jpeg',
    2424        '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',
    2627        );
    2728
  • staticpress/tags/0.4.5/includes/class-static_press_admin.php

    r1184011 r1425374  
    144144        $iv = new InputValidator('POST');
    145145        $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'));
     147'));
     148$iv->set_rules('basic_usr',  array('trim','esc_html'));
     149$iv->set_rules('basic_pwd',  array('trim','esc_html'));
     150);
    151151
    152152        // Update options
     
    164164
    165165            // 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
    179200
    180201        }
  • staticpress/tags/0.4.5/plugin.php

    r1184011 r1425374  
    55Plugin URI: http://en.staticpress.net/
    66Description: Transform your WordPress into static websites and blogs.
    7 Version: 0.4.4
     7Version: 0.4.
    88Author URI: http://www.digitalcube.jp/
    99Text Domain: static-press
  • staticpress/tags/0.4.5/readme.txt

    r1184011 r1425374  
    11=== StaticPress ===
    2 Contributors: wokamoto, megumithemes
     2Contributors: wokamoto, megumitheme
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJCY7XB8F4&lc=JP&item_name=WordPress%20Plugins&item_number=wp%2dplugins&currency_code=JPY&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
    44Tags: static
    55Requires at least: 3.5
    6 Tested up to: 4.2.2
    7 Stable tag: 0.4.4
     6Tested up to: 4..2
     7Stable tag: 0.4.
    88
    99Transform your WordPress into static websites and blogs.
     
    4141
    4242== Changelog ==
     43
     44
     45
     46
     47
    4348
    4449**0.4.4 - June 19, 2015**
  • staticpress/trunk/includes/class-static_press.php

    r1184011 r1425374  
    2323        'html','htm','txt','css','js','gif','png','jpg','jpeg',
    2424        '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',
    2627        );
    2728
  • staticpress/trunk/includes/class-static_press_admin.php

    r1184011 r1425374  
    144144        $iv = new InputValidator('POST');
    145145        $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'));
     147'));
     148$iv->set_rules('basic_usr',  array('trim','esc_html'));
     149$iv->set_rules('basic_pwd',  array('trim','esc_html'));
     150);
    151151
    152152        // Update options
     
    164164
    165165            // 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
    179200
    180201        }
  • staticpress/trunk/plugin.php

    r1184011 r1425374  
    55Plugin URI: http://en.staticpress.net/
    66Description: Transform your WordPress into static websites and blogs.
    7 Version: 0.4.4
     7Version: 0.4.
    88Author URI: http://www.digitalcube.jp/
    99Text Domain: static-press
  • staticpress/trunk/readme.txt

    r1184011 r1425374  
    11=== StaticPress ===
    2 Contributors: wokamoto, megumithemes
     2Contributors: wokamoto, megumitheme
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJCY7XB8F4&lc=JP&item_name=WordPress%20Plugins&item_number=wp%2dplugins&currency_code=JPY&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
    44Tags: static
    55Requires at least: 3.5
    6 Tested up to: 4.2.2
    7 Stable tag: 0.4.4
     6Tested up to: 4..2
     7Stable tag: 0.4.
    88
    99Transform your WordPress into static websites and blogs.
     
    4141
    4242== Changelog ==
     43
     44
     45
     46
     47
    4348
    4449**0.4.4 - June 19, 2015**
Note: See TracChangeset for help on using the changeset viewer.