Plugin Directory

Changeset 1477304


Ignore:
Timestamp:
08/17/2016 08:49:35 PM (10 years ago)
Author:
X-NicON
Message:

tested on wordpress 4.6
fix for transtations

Location:
wp-post-expires/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-post-expires/trunk/readme.txt

    r1475897 r1477304  
    22Contributors: X-NicON
    33Donate link:
    4 Tags: expired post, posts expiring, expiration, expire
     4Tags: expired post, posts expiring, expiration, expire, wordpress post expiry
    55Requires at least: 3.0
    6 Tested up to: 4.5.3
    7 Stable tag: 1.0
     6Tested up to: 4.6
     7Stable tag: 1.0.1
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Plugin adds post expires time after which will be performed actions: add prefix, move to drafts or trash.
     11Plugin adds post expires time after which will be performed actions: add prefix to title, move to drafts or trash.
    1212
    1313== Description ==
    14 A simple plugin allow to set the posts, the time after which will be performed one of 3 actions: "Add prefix to title", "Move to drafts", "Move to trash".
     14A simple plugin that allows to set the date for the posts, after which will be performed one of 3 actions: "Add prefix to title", "Move to drafts", "Move to trash".
    1515
    1616= Features: =
    17 *   Set post expires date and time
    18 *   Use for custom post type (post and pages by default)
     17*   Set post expire date and time
     18*   Support custom post type (post and pages by default)
    1919*   Action for expired posts: move to drafts, move to trash or add custom prefix for title
    20 *   Adds class "post-expired" for post expired on site and admin interface (for custom styles in theme)
     20*   Adds class "post-expired" to post that expired on the site and in admin interface (for custom styles in theme)
    2121
    2222= Use in theme: =
     
    4040== Changelog ==
    4141
     42= 1.0.1 =
     43fixed translation
     44
    4245= 1.0 =
    4346
  • wp-post-expires/trunk/wp-post-expires.php

    r1475960 r1477304  
    3333
    3434    public function __construct() {
     35        load_plugin_textdomain('wp-post-expires', false, dirname(plugin_basename( __FILE__ ) ).'/languages');
     36
     37        $this->settings   = $this->load_settings();
    3538        $this->url_assets = plugin_dir_url( __FILE__ ).'assets/';
    36         $this->settings   = $this->load_settings();
    37 
    38         load_plugin_textdomain('wp-post-expires', false, dirname(plugin_basename( __FILE__ ) ).'/languages');
    3939
    4040        add_action('the_post', array($this,'xn_wppe_expired_post'));
     
    7979        $dtplang     = 'en';
    8080
    81         if($wplang == 'ru'){
     81        if($wplang[0] == 'ru'){
    8282            $dtplang = false;
    8383        }elseif(in_array($wplang[0], $supported)){
Note: See TracChangeset for help on using the changeset viewer.