[guadec-web] Open registration for everyone



commit 87debb9ad08c504d66fb0e02e0f08bd750d255dd
Author: Rui Matos <tiagomatos gmail com>
Date:   Fri Jul 5 16:13:05 2013 +0200

    Open registration for everyone
    
    This reverts commit c309c2238ea1796065d8a2bad31727db205cec1d.

 wordcamp-base/custom/custom.php         |    7 -------
 wordcamp-base/template-registration.php |    9 ---------
 2 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/wordcamp-base/custom/custom.php b/wordcamp-base/custom/custom.php
index 13f513c..810b651 100644
--- a/wordcamp-base/custom/custom.php
+++ b/wordcamp-base/custom/custom.php
@@ -200,11 +200,4 @@ function my_reset_password_message($content, $key) {
        return $message;
 }
 
-
-function create_registration_role()
-{
-  add_role('registration', 'Registration', array('read' => true));
-}
-add_action('init', 'create_registration_role');
-
 ?>
diff --git a/wordcamp-base/template-registration.php b/wordcamp-base/template-registration.php
index 6f8e50b..df23128 100644
--- a/wordcamp-base/template-registration.php
+++ b/wordcamp-base/template-registration.php
@@ -114,14 +114,6 @@ if (is_user_logged_in()) {
   global $current_user;
   get_currentuserinfo();
 
-  $u = wp_get_current_user();
-  foreach ($u->roles as $r) {
-    if ($r != 'registration') {
-      echo "<p>Registration isn't available at this time.</p>";
-      goto out;
-    }
-  }
-
   $completed = (bool)$wpdb->get_var("select completed from $table_name where user_ID = $current_user->ID");
   $pending_registration = ($wpdb->num_rows > 0 && !$completed);
 
@@ -156,7 +148,6 @@ if (is_user_logged_in()) {
   wp_register("Don't have a GUADEC account yet? ", "");
 }
 
-out:
 echo "</div></div></div></div>";
 
 get_sidebar();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]