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/unmentored-camps.php

    r3727 r4525  
    1010<h2>Active Camps without a Mentor</h2>
    1111
     12<p class="description">Note: This is based on the <strong>Mentor WordPress.org User Name</strong> field. Some of these camps may have Mentor name and/or email data, but have not yet been updated with the WordPress.org username.</p>
     13
    1214<?php if ( $unmentored_camps ) : ?>
    1315
     
    1517                <?php foreach ( $unmentored_camps as $id => $name ) : ?>
    1618                        <li>
    17                                 <a href="<?php echo esc_url( admin_url( "post.php?post=$id&action=edit" ) ); ?>">
     19                                <a href="<?php echo esc_url( admin_url( "post.php?post=$id&action=edit#wcpt_mentor_wordpress_org_user_name" ) ); ?>">
    1820                                        <?php echo esc_html( $name ); ?>
    1921                                </a>
     
    2224        </ul>
    2325
     26        <p class="description">(*) Camp has a Mentor email address but no WordPress.org username.</p>
     27
    2428<?php else : ?>
    2529
Note: See TracChangeset for help on using the changeset viewer.