WordPress.org

Plugin Directory

Changeset 1298896


Ignore:
Timestamp:
12/02/15 09:39:34 (22 months ago)
Author:
sladix
Message:

Tagging version 1.2.8

Location:
restrict-taxonomies
Files:
3 edited
7 copied

Legend:

Unmodified
Added
Removed
  • restrict-taxonomies/tags/1.2.8/README.md

    r1278514 r1298896  
    77* Requires at least: 3.1 
    88* Tested up to: 4.3.1 
    9 * Stable tag: 1.2 
     9* Stable tag: 1.2.8 
    1010* License: GPLv2 or later 
    1111* License URI: http://www.gnu.org/licenses/gpl-2.0.html 
  • restrict-taxonomies/tags/1.2.8/readme.txt

    r1292426 r1298896  
    55Requires at least: 3.1 
    66Tested up to: 4.3.1 
    7 Stable tag: 1.2.7 
     7Stable tag: 1.2.8 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    3636== Changelog == 
    3737 
     38= 1.2.8 = 
     39* Added Dokan Dashboard support 
     40* Changed front hook to pre_get_posts instead of init 
     41 
    3842= 1.2.7 = 
    3943* Fixed warnings for frontend options 
  • restrict-taxonomies/tags/1.2.8/restrict-taxonomies.php

    r1292434 r1298896  
    55Author: Sladix 
    66Author URI: https://twitter.com/sladix 
    7 Version: 1.2.7 
     7Version: 1.2.8 
    88*/ 
    99 
     
    5858        { 
    5959            //Front 
    60             add_action( 'init', array( &$this, 'posts' ) ); 
     60            add_action( 'pre_get_posts', array( &$this, 'posts' ) ); 
    6161        } 
    6262 
     
    566566      elseif (isset($_REQUEST['post']) && get_post_type($_REQUEST['post'])) 
    567567        return get_post_type($_REQUEST['post']); 
     568 
     569      //Dokan seller dashboard products creation 
     570      if(function_exists('dokan_get_option')) 
     571      { 
     572        $page_id = dokan_get_option( 'dashboard', 'dokan_pages' ); 
     573          if(is_page($page_id)) 
     574            return 'product'; 
     575      } 
     576       
    568577         
    569578      //we do not know the post type! 
  • restrict-taxonomies/trunk/README.md

    r1278514 r1298896  
    77* Requires at least: 3.1 
    88* Tested up to: 4.3.1 
    9 * Stable tag: 1.2 
     9* Stable tag: 1.2.8 
    1010* License: GPLv2 or later 
    1111* License URI: http://www.gnu.org/licenses/gpl-2.0.html 
  • restrict-taxonomies/trunk/readme.txt

    r1292426 r1298896  
    55Requires at least: 3.1 
    66Tested up to: 4.3.1 
    7 Stable tag: 1.2.7 
     7Stable tag: 1.2.8 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    3636== Changelog == 
    3737 
     38= 1.2.8 = 
     39* Added Dokan Dashboard support 
     40* Changed front hook to pre_get_posts instead of init 
     41 
    3842= 1.2.7 = 
    3943* Fixed warnings for frontend options 
  • restrict-taxonomies/trunk/restrict-taxonomies.php

    r1292434 r1298896  
    55Author: Sladix 
    66Author URI: https://twitter.com/sladix 
    7 Version: 1.2.7 
     7Version: 1.2.8 
    88*/ 
    99 
     
    5858        { 
    5959            //Front 
    60             add_action( 'init', array( &$this, 'posts' ) ); 
     60            add_action( 'pre_get_posts', array( &$this, 'posts' ) ); 
    6161        } 
    6262 
     
    566566      elseif (isset($_REQUEST['post']) && get_post_type($_REQUEST['post'])) 
    567567        return get_post_type($_REQUEST['post']); 
     568 
     569      //Dokan seller dashboard products creation 
     570      if(function_exists('dokan_get_option')) 
     571      { 
     572        $page_id = dokan_get_option( 'dashboard', 'dokan_pages' ); 
     573          if(is_page($page_id)) 
     574            return 'product'; 
     575      } 
     576       
    568577         
    569578      //we do not know the post type! 
Note: See TracChangeset for help on using the changeset viewer.