~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-includes/class-wp-role.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        }
64
64
 
65
65
        /**
66
 
         * Remove capability from role.
 
66
         * Removes a capability from a role.
67
67
         *
68
 
         * This is a container for {@link WP_Roles::remove_cap()} to remove the
69
 
         * capability from the role. That is to say, that {@link
70
 
         * WP_Roles::remove_cap()} implements the functionality, but it also makes
71
 
         * sense to use this class, because you don't need to enter the role name.
 
68
         * This is a container for WP_Roles::remove_cap() to remove the
 
69
         * capability from the role. That is to say, that WP_Roles::remove_cap()
 
70
         * implements the functionality, but it also makes sense to use this class,
 
71
         * because you don't need to enter the role name.
72
72
         *
73
73
         * @since 2.0.0
74
74
         * @access public
96
96
         */
97
97
        public function has_cap( $cap ) {
98
98
                /**
99
 
                 * Filter which capabilities a role has.
 
99
                 * Filters which capabilities a role has.
100
100
                 *
101
101
                 * @since 2.0.0
102
102
                 *