Skip to content
This repository was archived by the owner on Jan 3, 2025. It is now read-only.

WordCamp Talks - 1.0.0 Beta2

Pre-release
Pre-release

Choose a tag to compare

@imath imath released this 01 Dec 17:55
· 112 commits to master since this release
  • new role: Juror. Jurors can select the talks and manage talks.
  • the blind rater role has been improved so that users having this role are really blind (they will only be able to view their own ratings and comments).
  • Feedback messages are no more using cookies but query vars. It is now possible to output more than one type of feedback message (e.g.: display an error, + info + success). This can be interesting in case the talk was successfully created but the featured image could not be downloaded for instance;.
  • Registration Flow: Administrators can now choose whether they want to auto log the just signed up user and directly redirect him to the Talk submission form or display a message to ask the user to validate his account. Props @andreamiddleton
  • Remove the unnecessary restriction on tags containing 'script' in their name. Props @andreamiddleton

NB: if you activated 1.0.0-beta1, you'll need to remove the existing talk roles. As it's a beta, i'm not adding a specific upgrade routine. This can be achieved by adding a wct-functions.php file at the root of your plugins folder and containing the following code:

<?php
/**
 * WordCamp Talks Custom Functions.
 */

// Exit if accessed directly
defined( 'ABSPATH' ) || exit;

/**
 * Unregister Rater roles.
 */
function wct_custom_unregister_roles() {
    $juror = get_role( 'juror' );

    if ( is_null( $juror ) ) {
        remove_role( 'rater' );
        remove_role( 'blind_rater' );
    }
}
add_action( 'wct_admin_init', 'wct_custom_unregister_roles', 9 );

Happy testing 😘