Plugin Directory

Changeset 637684


Ignore:
Timestamp:
12/12/2012 12:39:31 PM (13 years ago)
Author:
codepress
Message:

1.4.8

Location:
codepress-admin-columns
Files:
77 added
4 edited

Legend:

Unmodified
Added
Removed
  • codepress-admin-columns/trunk/classes/license.php

    r637026 r637684  
    88     * @var string $type
    99     */
    10     private $type;
     10    public $type;
    1111   
    1212    public function __construct($type)
     
    3030     * @since 1.3.3
    3131     */
    32     private function check_remote_key( $key )
     32    public function check_remote_key( $key )
    3333    {   
    3434        if ( empty( $key ) ) {
     
    3737       
    3838        // check key with remote API       
    39         $response = wp_remote_post( $this->api_url, array(         
     39        $response = wp_remote_post( 'http://www.codepress.nl/', array(         
    4040            'body'  => array(
    4141                'api'   => 'addon',
     
    6868     * @since 1.3
    6969     */
    70     private function get_license_key()
     70    public function get_license_key()
    7171    {
    7272        return get_option("cpac_{$this->type}_ac");
     
    7878     * @since 1.3
    7979     */
    80     private function set_license_key( $key )
     80    public function set_license_key( $key )
    8181    {           
    8282        update_option( "cpac_{$this->type}_ac", trim( $key ) );
     
    8888     * @since 1.3.1
    8989     */
    90     private function remove_license_key()
     90    public function remove_license_key()
    9191    {
    9292        delete_option( "cpac_{$this->type}_ac" );
  • codepress-admin-columns/trunk/classes/utility.php

    r637026 r637684  
    2424}
    2525add_action( 'plugins_loaded', 'pre_load_wordpress_seo_class_metabox', 0 );
     26
     27/**
     28 * Fix which remove the Advanced Custom Fields Type (acf) from the admin columns settings page
     29 *
     30 * @since     1.5
     31 */
     32function remove_acf_from_cpac_post_types( $post_types )
     33{
     34    if ( class_exists('Acf') ) {       
     35        unset( $post_types['acf'] );
     36    }
     37   
     38    return $post_types;
     39}
     40add_filter( 'cpac-get-post-types', 'remove_acf_from_cpac_post_types' );
     41
     42/**
     43 * Fix which removes bbPress Posttypes ( forum, reply and topic ) from the admin columns settings page
     44 *
     45 * @since     1.5
     46 */
     47function remove_bbpress_from_cpac_post_types( $post_types )
     48{
     49    if ( class_exists('bbPress') ) {       
     50        unset( $post_types['topic'] );
     51        unset( $post_types['reply'] );
     52        unset( $post_types['forum'] );
     53    }
     54   
     55    return $post_types;
     56}
     57add_filter( 'cpac-get-post-types', 'remove_bbpress_from_cpac_post_types' );
  • codepress-admin-columns/trunk/codepress-admin-columns.php

    r637026 r637684  
    33
    44Plugin Name:        Codepress Admin Columns
    5 Version:            1.4.7
     5Version:            1.4.8
    66Description:        Customise columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
    77Author:             Codepress
     
    2828*/
    2929
    30 define( 'CPAC_VERSION',     '1.4.7' );
     30define( 'CPAC_VERSION',     '1.4.8' );
    3131define( 'CPAC_TEXTDOMAIN',  'codepress-admin-columns' );
    3232define( 'CPAC_SLUG',        'codepress-admin-columns' );
     
    6363            $codepress_url,
    6464            $wordpress_url,
    65             $api_url,
    6665            $admin_page,
    6766            $use_hidden_custom_fields;
     
    7473    function __construct()
    7574    {       
    76         $this->api_url = 'http://www.codepress.nl/';   
    77        
    7875        // wp is loaded
    7976        add_action( 'wp_loaded', array( $this, 'init') );
  • codepress-admin-columns/trunk/readme.txt

    r637026 r637684  
    55Requires at least: 3.1
    66Tested up to: 3.5
    7 Stable tag: 1.4.7
     7Stable tag: 1.4.8
    88
    99Customise columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
     
    247247== Changelog ==
    248248
     249= 1.4.8 =
     250* fixed bug: removed acf posttype placed by Advaced Custom Fields from settings menu
     251* fixed bug: removed bbPress posttypes topic, forum and reply from admin columns settings menu
     252* fixed bug: license key could not activate properly
     253
    249254= 1.4.7 =
    250255* ready for WP 3.5
Note: See TracChangeset for help on using the changeset viewer.