Making WordPress.org

Changeset 14537


Ignore:
Timestamp:
09/24/2025 08:23:01 PM (8 weeks ago)
Author:
coffee2code
Message:

Photo Directory, Registrations: Define custom caps for managing photo_tags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/registrations.php

    r12785 r14537  
    123123
    124124    /**
    125      * Reggisters taxonomies.
     125     * Registers taxonomies.
    126126     */
    127127    public static function register_taxonomies() {
     
    259259            'rewrite'               => [ 'slug' => 't' ],
    260260            'capabilities'          => [
    261                 'manage_terms' => 'manage_options',
    262                 'edit_terms'   => 'manage_options',
    263                 'delete_terms' => 'manage_options',
     261                'manage_terms' => 'manage_photo_tags',
     262                'edit_terms'   => 'manage_photo_tags',
     263                'delete_terms' => 'manage_photo_tags',
    264264                'assign_terms' => 'edit_photos',
    265265            ]
Note: See TracChangeset for help on using the changeset viewer.