Making WordPress.org


Ignore:
Timestamp:
09/21/2018 10:15:11 PM (6 years ago)
Author:
vedjain
Message:

WordCamp: Remove register_post_capabilities hook.

In Meetup application, we are now using more stricter map_subrole_caps to control access permissions, so this method is redundent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-event/class-event-loader.php

    r7685 r7693  
    1717        add_action( 'plugins_loaded', array( $this, 'includes' ) );
    1818        add_action( 'init', array( $this, 'register_post_types' ) );
    19         add_action( 'init', array( $this, 'register_post_capabilities' ) );
    2019        add_action( 'init', array( $this, 'register_post_statuses' ) );
    2120        add_filter( 'pre_get_posts', array( $this, 'query_public_statuses_on_archives' ) );
     
    3635     */
    3736    abstract protected function register_post_types();
    38 
    39     /**
    40      * Add capabilities to roles for post type.
    41      *
    42      * @return void
    43      */
    44     abstract protected function register_post_capabilities();
    4537
    4638    /**
Note: See TracChangeset for help on using the changeset viewer.