Jake Vanderwerf
2 days ago 235ce5716edc2f7cbe80fdccf26eac7269587839
activate.php
@@ -30,7 +30,6 @@
    do_action(BASE.'activation');
   error_log('Action done!');
   error_log('Checking custom tables...');
   Queue::defineTables();
   CustomTable::ensureTables();
   error_log('Dashboard is setup: '.print_r(JVB()->dashboard(), true));
@@ -65,7 +64,7 @@
   $role = get_role('administrator');
   $users = get_users(['role' => 'administrator']);
    foreach (array_merge(Registrar::getRegistered('post'), Registrar::getFeatured('is_content')) as $slug) {
    foreach (array_merge(Registrar::getRegistered('post'), Registrar::withFeature('is_content')) as $slug) {
      error_log('Adding administrative roles to '.$slug);
      $plural = $roleManager->getContentPlural($slug);
      $capabilities = [
@@ -106,7 +105,7 @@
   $roleManager = new RoleManager();
   $users = get_users(['role' => 'administrator']);
   foreach (array_merge(Registrar::getRegistered('post'), Registrar::getFeatured('is_content', 'term')) as $slug) {
   foreach (array_merge(Registrar::getRegistered('post'), Registrar::withFeature('is_content', 'term')) as $slug) {
      foreach ($users as $user) {
         // These methods should check if post type exists before adding caps