WordPress.org

Plugin Directory

Changeset 625956


Ignore:
Timestamp:
11/16/12 01:49:41 (17 months ago)
Author:
japh
Message:

Release of version 0.7

Location:
favorite-plugins/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • favorite-plugins/trunk/favorite-plugins.php

    r606352 r625956  
    44Plugin URI: http://japh.wordpress.com/plugins/favorite-plugins 
    55Description: Quickly and easily access and install your favorited plugins from WordPress.org, right from your dashboard. 
    6 Version: 0.6 
     6Version: 0.7 
    77Author: Japh 
    88Author URI: http://japh.wordpress.com 
     
    3636 * @copyright 2012 Japh 
    3737 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt GPL2 
    38  * @version 0.6 
     38 * @version 0.7 
    3939 * @link http://japh.wordpress.com/plugins/favorite-plugins 
    4040 * @since 0.1 
    4141 */ 
    42  
    43 // Plugin folder URL 
    44 if ( ! defined( 'JFP_PLUGIN_URL' ) ) { 
    45     define( 'JFP_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 
    46 } 
    47  
    48 // Plugin folder path 
    49 if ( ! defined(' JFP_PLUGIN_DIR' ) ) { 
    50     define( 'JFP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 
    51 } 
    52  
    53 // Plugin base file 
    54 if ( ! defined( 'JFP_PLUGIN_FILE' ) ) { 
    55     define( 'JFP_PLUGIN_FILE', __FILE__ ); 
    56 } 
    5742 
    5843/** 
     
    6247 * @copyright 2012 Japh 
    6348 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt GPL2 
    64  * @version 0.6 
     49 * @version 0.7 
    6550 * @since 0.1 
    6651 */ 
    6752class Japh_Favorite_Plugins { 
    6853 
    69     public $version = '0.6'; 
     54    public $version = '0.7'; 
    7055    public $username = null; 
    7156 
     
    8570            } 
    8671 
    87             add_action( 'init', array( &$this, 'textdomain' ) ); 
    88             add_filter( 'install_plugins_tabs', array( &$this, 'add_favorites_tab' ) ); 
    89  
    90             add_action( 'install_plugins_pre_favorites', array( &$this, 'do_favorites_tab' ) ); 
    91             add_action( 'install_plugins_favorites', array( &$this, 'install_plugins_favorites' ), 10, 1 ); 
     72            add_action( 'init', array( $this, 'textdomain' ) ); 
     73            add_filter( 'install_plugins_tabs', array( $this, 'add_favorites_tab' ) ); 
     74 
     75            add_action( 'install_plugins_pre_favorites', array( $this, 'do_favorites_tab' ) ); 
     76            add_action( 'install_plugins_favorites', array( $this, 'install_plugins_favorites' ), 10, 1 ); 
    9277            add_action( 'install_plugins_favorites', 'display_plugins_table'); 
    9378 
     
    146131     */ 
    147132    function do_favorites_tab() { 
    148         global $wp_list_table; 
     133        global $wp_list_table, $paged; 
    149134 
    150135        $this->username = isset( $_REQUEST['user'] ) ? stripslashes( $_REQUEST['user'] ) : $this->username; 
    151136 
    152137        if ( $this->username ) { 
    153             $args = array( 'user' => $this->username ); 
     138            $per_page = 30; 
     139 
     140            $args = array( 'user' => $this->username, 'page' => $paged, 'per_page' => $per_page ); 
    154141            update_user_meta( get_current_user_id(), 'wporg_favorites', $this->username ); 
    155142 
     
    160147                array( 
    161148                    'total_items' => $api->info['results'], 
    162                     'per_page' => 24, 
     149                    'per_page' => $per_page, 
    163150                ) 
    164151            ); 
     
    204191 
    205192        // Setup plugin's language directory and filter 
    206         $jfp_language_directory = dirname( plugin_basename( JFP_PLUGIN_FILE ) ) . DIRECTORY_SEPARATOR . 'languages' . DIRECTORY_SEPARATOR; 
     193        $jfp_language_directory = dirname( plugin_basename( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'languages' . DIRECTORY_SEPARATOR; 
    207194        $jfp_language_directory = apply_filters( 'jfp_language_directory', $jfp_language_directory ); 
    208195 
  • favorite-plugins/trunk/readme.txt

    r606352 r625956  
    44Requires at least: 3.4 
    55Tested up to: 3.4.2 
    6 Stable tag: 0.6 
     6Stable tag: 0.7 
    77License: GPLv2 or later 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    4444== Changelog == 
    4545 
     46= 0.7 = 
     47* Fixed pagination issues. Props to @wpriley and @dadib for reporting 
     48* Changed from default of 24 per page to 30 to be in line with WordPress defaults 
     49* Switched from pass-by-reference to pass-by-value for forward compatibility 
     50 
    4651= 0.6 = 
    4752* Moved screenshot to assets directory to make plugin download smaller 
Note: See TracChangeset for help on using the changeset viewer.