WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#37381 closed defect (bug) (invalid)

'users_can_register' option not updated

Reported by: tazotodua Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Login and Registration Keywords:
Focuses: multisite Cc:

Description

there seems no way to update 'users_can_register' option, when we use multisite.

get_site_option('users_can_register') always returns 0 in multisite installations.

how to enable/disable that from menu? no way is there..

Change History (2)

#1 in reply to: ↑ description @tazotodua
4 years ago

in phpmyadmin, it is frozen to 0

#2 @ocean90
4 years ago

  • Component changed from General to Login and Registration
  • Focuses multisite added
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hello @tazotodua, thanks for your report.

There is no network option for users_can_register, the option exists only per site (get_option( 'users_can_register' )).
In a multisite install this option inherits the value of the registration network option, see users_can_register_signup_filter(). You can change the value of this option in the Registration Settings on wp-admin/network/settings.php.

Note: See TracTickets for help on using tickets.