Making WordPress.org


Ignore:
Timestamp:
12/13/2016 08:45:19 PM (10 years ago)
Author:
coreymckrill
Message:

Mentor Dashboard: Use dotorg usernames to id mentors instead of email

  • Adds the Mentor WordPress.org User Name field to wcpt.
  • Introduces "protected" fields in wcpt, which will be marked as readonly unless current user has specific caps. Used to make all mentor fields in the wcpt edit screen readonly unless current user can manage the network.
  • Adds a dropdown pick list of current mentors next to Mentor WordPress.org User Name that will fill in username, name, and email when a mentor is chosen. This only appears if current user has the right caps.
  • Adds a field in the Mentor Dashboard for managing the list of current mentors based on their dotorg usernames.
  • Uses dotorg username to determine which camps a mentor currently has, with their dotorg account email address as a backup.
  • All camps that don't have a value for Mentor WordPress.org User Name or whose value doesn't match a current mentor will appear in the "Active Camps that don't have a mentor" list.
  • Enqueues existing admin.js script for wcpt instead of printing it in the footer.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/views/mentors/dashboard.php

    r3728 r4525  
    1212        <h1>WordCamp Mentors Dashboard</h1>
    1313
    14         <p class="description">
    15                 Note: This page doesn't include people who have agreed to be a mentor, but have never been assigned to a
    16                 camp.
    17         </p>
    18 
    1914        <ul>
    2015                <li>Number of mentors:             <?php echo count( $mentors );                                ?></li>
     
    2520        <?php require_once( __DIR__ . '/mentors.php'          ); ?>
    2621        <?php require_once( __DIR__ . '/unmentored-camps.php' ); ?>
     22        <?php require_once( __DIR__ . '/manage-mentors.php' ); ?>
    2723</div>
Note: See TracChangeset for help on using the changeset viewer.