Behold user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access content', 'use text format 1'));

  1. This should be 'use text format ' . plain_text_format->format because who told you that the auto increment is set to 1?
  2. This should not exist because filter module (specifically filter_permission_name) does not even expose a permission for the fallback filter format which minimal install already set to... guess what?
    variable_set('filter_fallback_format', $plain_text_format->format);
    

Comments

agentrickard’s picture

Seems reasonable and sane. RTBC if bot likes.

chx’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new741 bytes

Bot is off. And comment module is disabled, too.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.