Plugin Directory

Changeset 1012281


Ignore:
Timestamp:
10/22/2014 05:40:34 PM (11 years ago)
Author:
farne
Message:

New version 1.1.0. Adding trunk and tag.

Location:
comment-expirator
Files:
16 edited
7 copied

Legend:

Unmodified
Added
Removed
  • comment-expirator/tags/1.1.0/classes/comment.php

    r972999 r1012281  
    8989      $use        = isset( $_POST['expirator']['use'] ) ? true : false;
    9090      $disable_pt = isset( $_POST['expirator']['pt'] ) ? 'true' : 'false';
    91      
     91
     92
    9293      // Only do this if checkbox is checked and we actually have a date and time
    9394      if( !empty( $date ) && !empty( $time ) && $use ) {
     
    229230      }
    230231
    231       //echo '<pre>' . print_r( $schedule, true ) . '</pre>';
    232       //echo '<pre>' . print_r( $options, true ) . '</pre>';
    233 
    234 
    235232
    236233      $pt_checked = $schedule->disable_pt;
     
    245242      }
    246243
     244
     245      if( empty( $schedule->date ) ) {
     246        $default_time = $options['default_time'];
     247        if( !empty( $default_time ) && is_int( $default_time ) ) {
     248          $schedule->date = date('Y-m-d', strtotime("+$default_time days"));
     249          $schedule->time = date_i18n('H:i');
     250        }
     251      }
    247252
    248253
  • comment-expirator/tags/1.1.0/classes/schedule.php

    r972999 r1012281  
    6767
    6868            return isset( $this->values[$key] ) ? $this->values[$key] : null;
     69
     70        }
     71
     72
     73        /**
     74         * __isset
     75         *
     76         * Function for checking if an object propery is set
     77         */
     78        public function __isset( $property ) {
     79
     80            return isset( $this->values[$property] );
    6981
    7082        }
  • comment-expirator/tags/1.1.0/classes/settings.php

    r972999 r1012281  
    3030      add_action( 'admin_init', array( $this, 'page_init' ) );
    3131
     32      $this->options = self::get_options();
     33
    3234    }
    3335
     
    5961     */
    6062    public function create_admin_page() {
    61      
    62       // Set class property
    63       $this->options = get_option( 'comment_expirator' );
    6463      ?>
    6564      <div class="wrap">
     
    7675      </div>
    7776      <?php
    78 
    7977    }
    8078
     
    9593        'posttypes', // ID
    9694        __( 'Post Types', COMMENT_EXPIRATOR_TEXTDOMAIN ), // Title
    97         array( $this, 'print_section_info' ), // Callback
     95        array( $this, 'print_posttype_section_info' ), // Callback
    9896        'comment-expirator' // Page
    9997      );
     
    102100        'allowed_posttypes', // ID
    103101        __( 'Check the post types you wish to display the comment expiration options on', COMMENT_EXPIRATOR_TEXTDOMAIN ), // Title
    104         array( $this, 'id_number_callback' ), // Callback
     102        array( $this, 'allowed_posttype_callback' ), // Callback
    105103        'comment-expirator', // Page
    106104        'posttypes' // Section           
     
    115113      );
    116114
     115      /* SECTION DEFAULT DATE */
     116
     117      add_settings_section(
     118        'default_time', // ID
     119        __( 'Default time', COMMENT_EXPIRATOR_TEXTDOMAIN ), // Title
     120        array( $this, 'print_default_date_section_info' ), // Callback
     121        'comment-expirator' // Page
     122      );
     123
     124      add_settings_field(
     125        'default_time', // ID
     126        __( 'Set a default expiration time in days', COMMENT_EXPIRATOR_TEXTDOMAIN ), // Title
     127        array( $this, 'default_time_callback' ), // Callback
     128        'comment-expirator', // Page
     129        'default_time' // Section           
     130      );
     131
    117132    }
    118133
     
    144159      }
    145160
     161      if( !empty( $input['default_time'] ) ) {
     162        if( intval( $input['default_time'] ) > 0 ) {
     163          $new_input['default_time'] = (int) intval( $input['default_time'] ); 
     164        }
     165      }
     166
    146167      return $new_input;
    147168     
     
    151172     * Print the Section text
    152173     */
    153     public function print_section_info() {
     174    public function print_posttype_section_info() {
    154175       
    155176        print __( 'Enter your settings below:', COMMENT_EXPIRATOR_TEXTDOMAIN );
     
    160181    public function pingbacks_and_trackbacks_callback() {
    161182
    162       $options = self::get_options();
    163       $disable_pt = !empty( $options['disable_pt'] ) ? true : false;
     183      $disable_pt = !empty( $this->options['disable_pt'] ) ? true : false;
    164184
    165185      $checked = '';
     
    176196     * Callback for the posttypes allowed
    177197     */
    178     public function id_number_callback() {
     198    public function allowed_posttype_callback() {
    179199
    180200      // Get all valid public post types
    181201      $post_types = get_post_types( array( 'public' => true ) );
    182202
    183       $options = get_option( 'comment_expirator' );
    184 
    185203      if( count( $post_types ) > 0 ) {
    186204       
     
    192210
    193211                $checked = '';
    194                 if( isset( $options['allowed_posttypes'] ) && is_array( $options['allowed_posttypes'] ) && count( $options['allowed_posttypes'] ) > 0 ) {
    195                 if( in_array( $post_type, $options['allowed_posttypes'] ) ) {
     212                if( isset( $this->options['allowed_posttypes'] ) && is_array( $this->options['allowed_posttypes'] ) && count( $this->options['allowed_posttypes'] ) > 0 ) {
     213                if( in_array( $post_type, $this->options['allowed_posttypes'] ) ) {
    196214             
    197215                    $checked = 'checked="checked"';
     
    200218                }
    201219
    202                 echo sprintf( '<input type="checkbox" name="comment_expirator[allowed_posttypes][%s]" value="%s" %s /> %s<br />', esc_attr( $post_type ), esc_attr( $post_type ), $checked, esc_attr( $post_type ) );
     220              echo sprintf( '<label for="posttype-%s">', esc_attr( $post_type ) );
     221                echo sprintf( '<input id="posttype-%s" type="checkbox" name="comment_expirator[allowed_posttypes][%s]" value="%s" %s /> %s', esc_attr( $post_type ), esc_attr( $post_type ), esc_attr( $post_type ), $checked, esc_attr( $post_type ) );
     222              echo '</label><br />';
    203223
    204224            }
     
    212232    }
    213233
     234
     235    /**
     236     * Print the Default time section text
     237     */
     238    public function print_default_time_section_info() {
     239       
     240        print __( 'Enter :', COMMENT_EXPIRATOR_TEXTDOMAIN );
     241
     242    }
     243
     244
     245    /**
     246     * The output for the default time setting
     247     */
     248    public function default_time_callback() {
     249
     250      $default_time = isset( $this->options['default_time'] ) ? esc_attr( $this->options['default_time'] ) : null;
     251
     252      echo '<input type="number" name="comment_expirator[default_time]" min="0" max="10000" value="' . $default_time . '" /><br />';
     253      echo '<p class="description">(' . __('Empty this field if you do not want a default time.', COMMENT_EXPIRATOR_TEXTDOMAIN) . ')</p>';
     254
     255
     256    }
     257
    214258  }
    215259
  • comment-expirator/tags/1.1.0/comment-expirator.php

    r972999 r1012281  
    55    Plugin Name: Comment Expirator
    66    Description: The plugin lets you set a specific closing date and time for comments on any post type.
    7     Version: 1.0.0
     7    Version: 1.1.0
    88    Author: Andreas Färnstrand <andreas@farnstranddev.se>
    99  Author URI: http://www.farnstranddev.se
     
    3535    define( 'COMMENT_EXPIRATOR_TEXTDOMAIN', 'comment-expirator' );
    3636  define( 'COMMENT_EXPIRATOR_TEXTDOMAIN_PATH', dirname( plugin_basename( __FILE__) ) .'/languages' );
    37   define( 'COMMENT_EXPIRATOR_VERSION', '0.1.0' );
     37  define( 'COMMENT_EXPIRATOR_VERSION', '1.1.0' );
    3838
    3939    // Require necessary classes
  • comment-expirator/tags/1.1.0/languages/comment-expirator-sv_SE.pot

    r972999 r1012281  
    22msgstr ""
    33"Project-Id-Version: comment-expirator\n"
    4 "POT-Creation-Date: 2014-08-22 22:24+0100\n"
    5 "PO-Revision-Date: 2014-08-22 23:01+0100\n"
     4"POT-Creation-Date: 2014-10-22 19:19+0100\n"
     5"PO-Revision-Date: 2014-10-22 19:21+0100\n"
    66"Last-Translator: Andeas Färnstrand <andreas@farnstranddev.se>\n"
    77"Language-Team:  <andreas@farnstranddev.se>\n"
     
    1515"X-Poedit-SearchPath-0: .\n"
    1616
    17 #: classes/comment.php:186
     17#: classes/comment.php:202
    1818msgid "Comment expiration"
    1919msgstr "Avaktivering av kommentarer"
    2020
    21 #: classes/comment.php:237
     21#: classes/comment.php:257
    2222msgid "Deactivate comments"
    2323msgstr "Avaktivera kommentarer"
    2424
    25 #: classes/comment.php:239
     25#: classes/comment.php:259
    2626msgid "Date"
    2727msgstr "Datum"
    2828
    29 #: classes/comment.php:241
     29#: classes/comment.php:261
    3030msgid "Time"
    3131msgstr "Tid"
    3232
    33 #: classes/comment.php:243
     33#: classes/comment.php:263
    3434msgid "Also disable trackbacks and pingbacks"
    3535msgstr "Avaktivera också trackbacks och pingbacks"
    3636
    37 #: classes/settings.php:48
     37#: classes/settings.php:51
    3838msgid "Comment Expirator"
    3939msgstr "Comment Expirator"
     
    4343msgstr "Inställningar för Comment Expirator"
    4444
    45 #: classes/settings.php:95
     45#: classes/settings.php:94
    4646msgid "Post Types"
    4747msgstr "Posttyper"
    4848
    49 #: classes/settings.php:102
     49#: classes/settings.php:101
    5050msgid ""
    5151"Check the post types you wish to display the comment expiration options on"
     
    5454"kommentarer på"
    5555
    56 #: classes/settings.php:110
     56#: classes/settings.php:109
    5757msgid "Disable trackbacks and pingbacks by default"
    5858msgstr "Avaktivera trackbacks och pingbacks som standard"
    5959
    60 #: classes/settings.php:154
     60#: classes/settings.php:119
     61msgid "Default time"
     62msgstr "Standardtid"
     63
     64#: classes/settings.php:126
     65msgid "Set a default expiration time in days"
     66msgstr "Sätt en standardutgångstid i antal dagar"
     67
     68#: classes/settings.php:176
    6169msgid "Enter your settings below:"
    6270msgstr "Ange dina inställningar nedan:"
     71
     72#: classes/settings.php:240
     73msgid "Enter :"
     74msgstr "Skriv :"
     75
     76#: classes/settings.php:253
     77msgid "Empty this field if you do not want a default time."
     78msgstr "Töm detta fält om du inte vill ha en standardtid."
  • comment-expirator/tags/1.1.0/languages/comment-expirator.pot

    r972999 r1012281  
    22msgstr ""
    33"Project-Id-Version: comment-expirator\n"
    4 "POT-Creation-Date: 2014-08-22 22:24+0100\n"
    5 "PO-Revision-Date: 2014-08-22 22:53+0100\n"
     4"POT-Creation-Date: 2014-10-22 19:17+0100\n"
     5"PO-Revision-Date: 2014-10-22 19:18+0100\n"
    66"Last-Translator: Andeas Färnstrand <andreas@farnstranddev.se>\n"
    77"Language-Team:  <andreas@farnstranddev.se>\n"
     
    1515"X-Poedit-SearchPath-0: .\n"
    1616
    17 #: classes/comment.php:186
     17#: classes/comment.php:202
    1818msgid "Comment expiration"
    1919msgstr "Comment expiration"
    2020
    21 #: classes/comment.php:237
     21#: classes/comment.php:257
    2222msgid "Deactivate comments"
    2323msgstr "Deactivate comments"
    2424
    25 #: classes/comment.php:239
     25#: classes/comment.php:259
    2626msgid "Date"
    2727msgstr "Date"
    2828
    29 #: classes/comment.php:241
     29#: classes/comment.php:261
    3030msgid "Time"
    3131msgstr "Time"
    3232
    33 #: classes/comment.php:243
     33#: classes/comment.php:263
    3434msgid "Also disable trackbacks and pingbacks"
    3535msgstr "Also disable trackbacks and pingbacks"
    3636
    37 #: classes/settings.php:48
     37#: classes/settings.php:51
    3838msgid "Comment Expirator"
    3939msgstr "Comment Expirator"
     
    4343msgstr "Comment Expirator Settings"
    4444
    45 #: classes/settings.php:95
     45#: classes/settings.php:94
    4646msgid "Post Types"
    4747msgstr "Post Types"
    4848
    49 #: classes/settings.php:102
     49#: classes/settings.php:101
    5050msgid ""
    5151"Check the post types you wish to display the comment expiration options on"
     
    5353"Check the post types you wish to display the comment expiration options on"
    5454
    55 #: classes/settings.php:110
     55#: classes/settings.php:109
    5656msgid "Disable trackbacks and pingbacks by default"
    5757msgstr "Disable trackbacks and pingbacks by default"
    5858
    59 #: classes/settings.php:154
     59#: classes/settings.php:119
     60msgid "Default time"
     61msgstr "Default time"
     62
     63#: classes/settings.php:126
     64msgid "Set a default expiration time in days"
     65msgstr "Set a default expiration time in days"
     66
     67#: classes/settings.php:176
    6068msgid "Enter your settings below:"
    6169msgstr "Enter your settings below:"
     70
     71#: classes/settings.php:240
     72msgid "Enter :"
     73msgstr "Enter :"
     74
     75#: classes/settings.php:253
     76msgid "Empty this field if you do not want a default time."
     77msgstr "Empty this field if you do not want a default time."
  • comment-expirator/tags/1.1.0/readme.txt

    r984687 r1012281  
    44Requires at least: 3.9
    55Tested up to: 4.0
    6 Stable tag: 1.0.0
     6Stable tag: 1.1.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3535* Initial version
    3636
     37= 1.1.0 =
     38* New feature. Now possible to set a default expiration time in days.
     39* A little code cleanup.
     40
  • comment-expirator/trunk/classes/comment.php

    r972999 r1012281  
    8989      $use        = isset( $_POST['expirator']['use'] ) ? true : false;
    9090      $disable_pt = isset( $_POST['expirator']['pt'] ) ? 'true' : 'false';
    91      
     91
     92
    9293      // Only do this if checkbox is checked and we actually have a date and time
    9394      if( !empty( $date ) && !empty( $time ) && $use ) {
     
    229230      }
    230231
    231       //echo '<pre>' . print_r( $schedule, true ) . '</pre>';
    232       //echo '<pre>' . print_r( $options, true ) . '</pre>';
    233 
    234 
    235232
    236233      $pt_checked = $schedule->disable_pt;
     
    245242      }
    246243
     244
     245      if( empty( $schedule->date ) ) {
     246        $default_time = $options['default_time'];
     247        if( !empty( $default_time ) && is_int( $default_time ) ) {
     248          $schedule->date = date('Y-m-d', strtotime("+$default_time days"));
     249          $schedule->time = date_i18n('H:i');
     250        }
     251      }
    247252
    248253
  • comment-expirator/trunk/classes/schedule.php

    r972999 r1012281  
    6767
    6868            return isset( $this->values[$key] ) ? $this->values[$key] : null;
     69
     70        }
     71
     72
     73        /**
     74         * __isset
     75         *
     76         * Function for checking if an object propery is set
     77         */
     78        public function __isset( $property ) {
     79
     80            return isset( $this->values[$property] );
    6981
    7082        }
  • comment-expirator/trunk/classes/settings.php

    r972999 r1012281  
    3030      add_action( 'admin_init', array( $this, 'page_init' ) );
    3131
     32      $this->options = self::get_options();
     33
    3234    }
    3335
     
    5961     */
    6062    public function create_admin_page() {
    61      
    62       // Set class property
    63       $this->options = get_option( 'comment_expirator' );
    6463      ?>
    6564      <div class="wrap">
     
    7675      </div>
    7776      <?php
    78 
    7977    }
    8078
     
    9593        'posttypes', // ID
    9694        __( 'Post Types', COMMENT_EXPIRATOR_TEXTDOMAIN ), // Title
    97         array( $this, 'print_section_info' ), // Callback
     95        array( $this, 'print_posttype_section_info' ), // Callback
    9896        'comment-expirator' // Page
    9997      );
     
    102100        'allowed_posttypes', // ID
    103101        __( 'Check the post types you wish to display the comment expiration options on', COMMENT_EXPIRATOR_TEXTDOMAIN ), // Title
    104         array( $this, 'id_number_callback' ), // Callback
     102        array( $this, 'allowed_posttype_callback' ), // Callback
    105103        'comment-expirator', // Page
    106104        'posttypes' // Section           
     
    115113      );
    116114
     115      /* SECTION DEFAULT DATE */
     116
     117      add_settings_section(
     118        'default_time', // ID
     119        __( 'Default time', COMMENT_EXPIRATOR_TEXTDOMAIN ), // Title
     120        array( $this, 'print_default_date_section_info' ), // Callback
     121        'comment-expirator' // Page
     122      );
     123
     124      add_settings_field(
     125        'default_time', // ID
     126        __( 'Set a default expiration time in days', COMMENT_EXPIRATOR_TEXTDOMAIN ), // Title
     127        array( $this, 'default_time_callback' ), // Callback
     128        'comment-expirator', // Page
     129        'default_time' // Section           
     130      );
     131
    117132    }
    118133
     
    144159      }
    145160
     161      if( !empty( $input['default_time'] ) ) {
     162        if( intval( $input['default_time'] ) > 0 ) {
     163          $new_input['default_time'] = (int) intval( $input['default_time'] ); 
     164        }
     165      }
     166
    146167      return $new_input;
    147168     
     
    151172     * Print the Section text
    152173     */
    153     public function print_section_info() {
     174    public function print_posttype_section_info() {
    154175       
    155176        print __( 'Enter your settings below:', COMMENT_EXPIRATOR_TEXTDOMAIN );
     
    160181    public function pingbacks_and_trackbacks_callback() {
    161182
    162       $options = self::get_options();
    163       $disable_pt = !empty( $options['disable_pt'] ) ? true : false;
     183      $disable_pt = !empty( $this->options['disable_pt'] ) ? true : false;
    164184
    165185      $checked = '';
     
    176196     * Callback for the posttypes allowed
    177197     */
    178     public function id_number_callback() {
     198    public function allowed_posttype_callback() {
    179199
    180200      // Get all valid public post types
    181201      $post_types = get_post_types( array( 'public' => true ) );
    182202
    183       $options = get_option( 'comment_expirator' );
    184 
    185203      if( count( $post_types ) > 0 ) {
    186204       
     
    192210
    193211                $checked = '';
    194                 if( isset( $options['allowed_posttypes'] ) && is_array( $options['allowed_posttypes'] ) && count( $options['allowed_posttypes'] ) > 0 ) {
    195                 if( in_array( $post_type, $options['allowed_posttypes'] ) ) {
     212                if( isset( $this->options['allowed_posttypes'] ) && is_array( $this->options['allowed_posttypes'] ) && count( $this->options['allowed_posttypes'] ) > 0 ) {
     213                if( in_array( $post_type, $this->options['allowed_posttypes'] ) ) {
    196214             
    197215                    $checked = 'checked="checked"';
     
    200218                }
    201219
    202                 echo sprintf( '<input type="checkbox" name="comment_expirator[allowed_posttypes][%s]" value="%s" %s /> %s<br />', esc_attr( $post_type ), esc_attr( $post_type ), $checked, esc_attr( $post_type ) );
     220              echo sprintf( '<label for="posttype-%s">', esc_attr( $post_type ) );
     221                echo sprintf( '<input id="posttype-%s" type="checkbox" name="comment_expirator[allowed_posttypes][%s]" value="%s" %s /> %s', esc_attr( $post_type ), esc_attr( $post_type ), esc_attr( $post_type ), $checked, esc_attr( $post_type ) );
     222              echo '</label><br />';
    203223
    204224            }
     
    212232    }
    213233
     234
     235    /**
     236     * Print the Default time section text
     237     */
     238    public function print_default_time_section_info() {
     239       
     240        print __( 'Enter :', COMMENT_EXPIRATOR_TEXTDOMAIN );
     241
     242    }
     243
     244
     245    /**
     246     * The output for the default time setting
     247     */
     248    public function default_time_callback() {
     249
     250      $default_time = isset( $this->options['default_time'] ) ? esc_attr( $this->options['default_time'] ) : null;
     251
     252      echo '<input type="number" name="comment_expirator[default_time]" min="0" max="10000" value="' . $default_time . '" /><br />';
     253      echo '<p class="description">(' . __('Empty this field if you do not want a default time.', COMMENT_EXPIRATOR_TEXTDOMAIN) . ')</p>';
     254
     255
     256    }
     257
    214258  }
    215259
  • comment-expirator/trunk/comment-expirator.php

    r972999 r1012281  
    55    Plugin Name: Comment Expirator
    66    Description: The plugin lets you set a specific closing date and time for comments on any post type.
    7     Version: 1.0.0
     7    Version: 1.1.0
    88    Author: Andreas Färnstrand <andreas@farnstranddev.se>
    99  Author URI: http://www.farnstranddev.se
     
    3535    define( 'COMMENT_EXPIRATOR_TEXTDOMAIN', 'comment-expirator' );
    3636  define( 'COMMENT_EXPIRATOR_TEXTDOMAIN_PATH', dirname( plugin_basename( __FILE__) ) .'/languages' );
    37   define( 'COMMENT_EXPIRATOR_VERSION', '0.1.0' );
     37  define( 'COMMENT_EXPIRATOR_VERSION', '1.1.0' );
    3838
    3939    // Require necessary classes
  • comment-expirator/trunk/languages/comment-expirator-sv_SE.pot

    r972999 r1012281  
    22msgstr ""
    33"Project-Id-Version: comment-expirator\n"
    4 "POT-Creation-Date: 2014-08-22 22:24+0100\n"
    5 "PO-Revision-Date: 2014-08-22 23:01+0100\n"
     4"POT-Creation-Date: 2014-10-22 19:19+0100\n"
     5"PO-Revision-Date: 2014-10-22 19:21+0100\n"
    66"Last-Translator: Andeas Färnstrand <andreas@farnstranddev.se>\n"
    77"Language-Team:  <andreas@farnstranddev.se>\n"
     
    1515"X-Poedit-SearchPath-0: .\n"
    1616
    17 #: classes/comment.php:186
     17#: classes/comment.php:202
    1818msgid "Comment expiration"
    1919msgstr "Avaktivering av kommentarer"
    2020
    21 #: classes/comment.php:237
     21#: classes/comment.php:257
    2222msgid "Deactivate comments"
    2323msgstr "Avaktivera kommentarer"
    2424
    25 #: classes/comment.php:239
     25#: classes/comment.php:259
    2626msgid "Date"
    2727msgstr "Datum"
    2828
    29 #: classes/comment.php:241
     29#: classes/comment.php:261
    3030msgid "Time"
    3131msgstr "Tid"
    3232
    33 #: classes/comment.php:243
     33#: classes/comment.php:263
    3434msgid "Also disable trackbacks and pingbacks"
    3535msgstr "Avaktivera också trackbacks och pingbacks"
    3636
    37 #: classes/settings.php:48
     37#: classes/settings.php:51
    3838msgid "Comment Expirator"
    3939msgstr "Comment Expirator"
     
    4343msgstr "Inställningar för Comment Expirator"
    4444
    45 #: classes/settings.php:95
     45#: classes/settings.php:94
    4646msgid "Post Types"
    4747msgstr "Posttyper"
    4848
    49 #: classes/settings.php:102
     49#: classes/settings.php:101
    5050msgid ""
    5151"Check the post types you wish to display the comment expiration options on"
     
    5454"kommentarer på"
    5555
    56 #: classes/settings.php:110
     56#: classes/settings.php:109
    5757msgid "Disable trackbacks and pingbacks by default"
    5858msgstr "Avaktivera trackbacks och pingbacks som standard"
    5959
    60 #: classes/settings.php:154
     60#: classes/settings.php:119
     61msgid "Default time"
     62msgstr "Standardtid"
     63
     64#: classes/settings.php:126
     65msgid "Set a default expiration time in days"
     66msgstr "Sätt en standardutgångstid i antal dagar"
     67
     68#: classes/settings.php:176
    6169msgid "Enter your settings below:"
    6270msgstr "Ange dina inställningar nedan:"
     71
     72#: classes/settings.php:240
     73msgid "Enter :"
     74msgstr "Skriv :"
     75
     76#: classes/settings.php:253
     77msgid "Empty this field if you do not want a default time."
     78msgstr "Töm detta fält om du inte vill ha en standardtid."
  • comment-expirator/trunk/languages/comment-expirator.pot

    r972999 r1012281  
    22msgstr ""
    33"Project-Id-Version: comment-expirator\n"
    4 "POT-Creation-Date: 2014-08-22 22:24+0100\n"
    5 "PO-Revision-Date: 2014-08-22 22:53+0100\n"
     4"POT-Creation-Date: 2014-10-22 19:17+0100\n"
     5"PO-Revision-Date: 2014-10-22 19:18+0100\n"
    66"Last-Translator: Andeas Färnstrand <andreas@farnstranddev.se>\n"
    77"Language-Team:  <andreas@farnstranddev.se>\n"
     
    1515"X-Poedit-SearchPath-0: .\n"
    1616
    17 #: classes/comment.php:186
     17#: classes/comment.php:202
    1818msgid "Comment expiration"
    1919msgstr "Comment expiration"
    2020
    21 #: classes/comment.php:237
     21#: classes/comment.php:257
    2222msgid "Deactivate comments"
    2323msgstr "Deactivate comments"
    2424
    25 #: classes/comment.php:239
     25#: classes/comment.php:259
    2626msgid "Date"
    2727msgstr "Date"
    2828
    29 #: classes/comment.php:241
     29#: classes/comment.php:261
    3030msgid "Time"
    3131msgstr "Time"
    3232
    33 #: classes/comment.php:243
     33#: classes/comment.php:263
    3434msgid "Also disable trackbacks and pingbacks"
    3535msgstr "Also disable trackbacks and pingbacks"
    3636
    37 #: classes/settings.php:48
     37#: classes/settings.php:51
    3838msgid "Comment Expirator"
    3939msgstr "Comment Expirator"
     
    4343msgstr "Comment Expirator Settings"
    4444
    45 #: classes/settings.php:95
     45#: classes/settings.php:94
    4646msgid "Post Types"
    4747msgstr "Post Types"
    4848
    49 #: classes/settings.php:102
     49#: classes/settings.php:101
    5050msgid ""
    5151"Check the post types you wish to display the comment expiration options on"
     
    5353"Check the post types you wish to display the comment expiration options on"
    5454
    55 #: classes/settings.php:110
     55#: classes/settings.php:109
    5656msgid "Disable trackbacks and pingbacks by default"
    5757msgstr "Disable trackbacks and pingbacks by default"
    5858
    59 #: classes/settings.php:154
     59#: classes/settings.php:119
     60msgid "Default time"
     61msgstr "Default time"
     62
     63#: classes/settings.php:126
     64msgid "Set a default expiration time in days"
     65msgstr "Set a default expiration time in days"
     66
     67#: classes/settings.php:176
    6068msgid "Enter your settings below:"
    6169msgstr "Enter your settings below:"
     70
     71#: classes/settings.php:240
     72msgid "Enter :"
     73msgstr "Enter :"
     74
     75#: classes/settings.php:253
     76msgid "Empty this field if you do not want a default time."
     77msgstr "Empty this field if you do not want a default time."
  • comment-expirator/trunk/readme.txt

    r984687 r1012281  
    44Requires at least: 3.9
    55Tested up to: 4.0
    6 Stable tag: 1.0.0
     6Stable tag: 1.1.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3535* Initial version
    3636
     37= 1.1.0 =
     38* New feature. Now possible to set a default expiration time in days.
     39* A little code cleanup.
     40
Note: See TracChangeset for help on using the changeset viewer.