Changeset 1919210
- Timestamp:
- 08/03/2018 07:06:06 AM (8 years ago)
- Location:
- learnpress-bbpress
- Files:
-
- 10 added
- 4 edited
-
tags/3.0.3 (added)
-
tags/3.0.3/inc (added)
-
tags/3.0.3/inc/functions.php (added)
-
tags/3.0.3/inc/load.php (added)
-
tags/3.0.3/languages (added)
-
tags/3.0.3/languages/learnpress-bbpress.pot (added)
-
tags/3.0.3/learnpress-bbpress.php (added)
-
tags/3.0.3/readme.txt (added)
-
tags/3.0.3/templates (added)
-
tags/3.0.3/templates/forum-link.php (added)
-
trunk/inc/functions.php (modified) (1 diff)
-
trunk/languages/learnpress-bbpress.pot (modified) (2 diffs)
-
trunk/learnpress-bbpress.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
learnpress-bbpress/trunk/inc/functions.php
r1906856 r1919210 41 41 42 42 function learn_press_bbp_dynamic_roles( $_roles ) { 43 $roles['lp_teacher'] = array(44 'name' => __( 'Instructor', 'learnpress-bbpress' ),45 'capabilities' => bbp_get_caps_for_role( 'lp_teacher' )46 );47 43 48 foreach ( $_roles as $k => $role ) { 49 $roles[ $k ] = $role; 44 if ( is_admin() ) { 45 return $_roles; 46 } 47 48 if ( empty( $_roles['lp_teacher'] ) ) { 49 $roles['lp_teacher'] = array( 50 'name' => __( 'Instructor', 'learnpress-bbpress' ), 51 'capabilities' => bbp_get_caps_for_role( 'lp_teacher' ) 52 ); 53 54 foreach ( $_roles as $k => $role ) { 55 $roles[ $k ] = $role; 56 } 57 } else { 58 $roles = $_roles; 50 59 } 51 60 52 61 return $roles; 53 62 } 63 54 64 add_filter( 'bbp_get_dynamic_roles', 'learn_press_bbp_dynamic_roles' ); 55 65 56 / /function learn_press_bbp_get_user_role($role, $user_id, $user){57 // return 'instructor';58 //}59 // 60 //add_filter('bbp_get_user_role', 'learn_press_bbp_get_user_role', 10, 3); 66 /*function learn_press_bbp_get_user_role($role, $user_id, $user){ 67 return 'lp_teacher'; 68 } 69 70 add_filter('bbp_get_user_role', 'learn_press_bbp_get_user_role', 10, 3);*/ -
learnpress-bbpress/trunk/languages/learnpress-bbpress.pot
r1848986 r1919210 33 33 msgstr "" 34 34 35 #: inc/functions.php: 4435 #: inc/functions.php:50 36 36 msgid "Instructor" 37 37 msgstr "" 38 38 39 #: inc/load.php: 10139 #: inc/load.php:97 40 40 msgid "Create New" 41 41 msgstr "" 42 42 43 #: inc/load.php:11 943 #: inc/load.php:115 44 44 msgid "Forum" 45 45 msgstr "" 46 46 47 #: inc/load.php:12 547 #: inc/load.php:121 48 48 msgid "Enable" 49 49 msgstr "" 50 50 51 #: inc/load.php:12 851 #: inc/load.php:124 52 52 msgid "Enable bbPress forum for this course." 53 53 msgstr "" 54 54 55 #: inc/load.php:1 3255 #: inc/load.php:128 56 56 msgid "Course Forum" 57 57 msgstr "" 58 58 59 #: inc/load.php:13 559 #: inc/load.php:131 60 60 msgid "" 61 61 "Select forum of this course, choose Create New to create new forum for " … … 63 63 msgstr "" 64 64 65 #: inc/load.php:14 965 #: inc/load.php:145 66 66 msgid "Restrict User" 67 67 msgstr "" 68 68 69 #: inc/load.php:1 5269 #: inc/load.php:148 70 70 msgid "Only user(s) enrolled course can access this forum." 71 71 msgstr "" -
learnpress-bbpress/trunk/learnpress-bbpress.php
r1906856 r1919210 5 5 Description: Using the forum for courses provided by bbPress. 6 6 Author: ThimPress 7 Version: 3.0. 27 Version: 3.0.3 8 8 Author URI: http://thimpress.com 9 9 Tags: learnpress, lms, add-on, bbpress … … 16 16 17 17 define( 'LP_ADDON_BBPRESS_FILE', __FILE__ ); 18 define( 'LP_ADDON_BBPRESS_VER', '3.0. 2' );18 define( 'LP_ADDON_BBPRESS_VER', '3.0.3' ); 19 19 define( 'LP_ADDON_BBPRESS_REQUIRE_VER', '3.0.0' ); 20 20 -
learnpress-bbpress/trunk/readme.txt
r1906859 r1919210 4 4 Tags: lms, elearning, e-learning, learning management system, education, course, courses, quiz, quizzes, questions, training, guru, sell courses 5 5 Requires at least: 3.8 6 Tested up to: 4.9. 77 Stable tag: 3.0. 26 Tested up to: 4.9.8 7 Stable tag: 3.0.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 55 55 == Changelog == 56 56 57 = 3.0.3 = 58 + Fixed issue about missing instructor role in back end. 59 57 60 = 3.0.2 = 58 61 + Fixed can't change user forum role when editing user
Note: See TracChangeset
for help on using the changeset viewer.