Changeset 11269
- Timestamp:
- 10/07/2021 07:32:58 PM (3 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/post-type.php
r11241 r11269 75 75 'exclude_from_search' => false, 76 76 'publicly_queryable' => true, 77 'capability_type' => 'page', 77 'capability_type' => array( 'lesson_plan', 'lesson_plans' ), 78 'map_meta_cap' => true, 78 79 'show_in_rest' => true, 79 80 ); … … 145 146 'exclude_from_search' => false, 146 147 'publicly_queryable' => true, 147 'capability_type' => 'page', 148 'capability_type' => array( 'workshop', 'workshops' ), 149 'map_meta_cap' => true, 148 150 'show_in_rest' => true, 149 151 'rewrite' => array( 'slug' => 'workshop' ), -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/taxonomy.php
r11193 r11269 63 63 'show_tagcloud' => false, 64 64 'show_in_rest' => true, 65 'capabilities' => array( 66 'assign_terms' => 'edit_lesson_plans', 67 ), 65 68 ); 66 69 … … 105 108 'show_tagcloud' => false, 106 109 'show_in_rest' => true, 110 'capabilities' => array( 111 'assign_terms' => 'edit_lesson_plans', 112 ), 107 113 ); 108 114 … … 147 153 'show_tagcloud' => false, 148 154 'show_in_rest' => true, 155 'capabilities' => array( 156 'assign_terms' => 'edit_lesson_plans', 157 ), 149 158 ); 150 159 … … 188 197 'show_tagcloud' => false, 189 198 'show_in_rest' => true, 199 'capabilities' => array( 200 'assign_terms' => 'edit_lesson_plans', 201 ), 190 202 ); 191 203 … … 230 242 'show_tagcloud' => false, 231 243 'show_in_rest' => true, 244 'capabilities' => array( 245 'assign_terms' => 'edit_lesson_plans', 246 ), 232 247 ); 233 248 … … 272 287 'show_tagcloud' => false, 273 288 'show_in_rest' => true, 289 'capabilities' => array( 290 'assign_terms' => 'edit_lesson_plans', 291 ), 274 292 ); 275 293 … … 315 333 'show_tagcloud' => false, 316 334 'show_in_rest' => true, 335 'capabilities' => array( 336 'assign_terms' => 'edit_workshops', 337 ), 317 338 ); 318 339 … … 357 378 'show_tagcloud' => false, 358 379 'show_in_rest' => true, 380 'capabilities' => array( 381 'assign_terms' => 'edit_workshops', 382 ), 359 383 ); 360 384 … … 397 421 'show_tagcloud' => false, 398 422 'show_in_rest' => true, 423 'capabilities' => array( 424 'assign_terms' => 'edit_any_learn_content', // See \WPOrg_Learn\Capabilities\map_meta_caps. 425 ), 399 426 ); 400 427 … … 439 466 'show_tagcloud' => false, 440 467 'show_in_rest' => true, 468 'capabilities' => array( 469 'assign_terms' => 'edit_any_learn_content', // See \WPOrg_Learn\Capabilities\map_meta_caps. 470 ), 441 471 ); 442 472 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/wporg-learn.php
r10880 r11269 67 67 require_once get_includes_path() . 'admin.php'; 68 68 require_once get_includes_path() . 'blocks.php'; 69 require_once get_includes_path() . 'capabilities.php'; 69 70 require_once get_includes_path() . 'class-markdown-import.php'; 70 71 require_once get_includes_path() . 'events.php';
Note: See TracChangeset
for help on using the changeset viewer.