Plugin Directory

Changeset 552757


Ignore:
Timestamp:
06/04/2012 06:35:04 AM (14 years ago)
Author:
dwc
Message:

Associate options page label tags with their input fields; thanks to bananastalktome for the patch (closes #1514)

Location:
http-authentication/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • http-authentication/trunk/options-page.php

    r552737 r552757  
    2626        $section = 'http_authentication_main';
    2727        add_settings_section($section, 'Main Options', array($this, '_display_options_section'), $this->page);
    28         add_settings_field('http_authentication_allow_wp_auth', 'Allow WordPress authentication?', array($this, '_display_option_allow_wp_auth'), $this->page, $section);
    29         add_settings_field('http_authentication_auth_label', 'Authentication label', array($this, '_display_option_auth_label'), $this->page, $section);
    30         add_settings_field('http_authentication_login_uri', 'Login URI', array($this, '_display_option_login_uri'), $this->page, $section);
    31         add_settings_field('http_authentication_logout_uri', 'Logout URI', array($this, '_display_option_logout_uri'), $this->page, $section);
    32         add_settings_field('http_authentication_additional_server_keys', '$_SERVER variables', array($this, '_display_option_additional_server_keys'), $this->page, $section);
    33         add_settings_field('http_authentication_auto_create_user', 'Automatically create accounts?', array($this, '_display_option_auto_create_user'), $this->page, $section);
    34         add_settings_field('http_authentication_auto_create_email_domain', 'Email address domain', array($this, '_display_option_auto_create_email_domain'), $this->page, $section);
     28        add_settings_field('http_authentication_allow_wp_auth', 'Allow WordPress authentication?', array($this, '_display_option_allow_wp_auth'), $this->page, $section, array('label_for' => 'http_authentication_allow_wp_auth'));
     29        add_settings_field('http_authentication_auth_label', 'Authentication label', array($this, '_display_option_auth_label'), $this->page, $section, array('label_for' => 'http_authentication_auth_label'));
     30        add_settings_field('http_authentication_login_uri', 'Login URI', array($this, '_display_option_login_uri'), $this->page, $section, array('label_for' => 'http_authentication_login_uri'));
     31        add_settings_field('http_authentication_logout_uri', 'Logout URI', array($this, '_display_option_logout_uri'), $this->page, $section, array('label_for' => 'http_authentication_logout_uri'));
     32        add_settings_field('http_authentication_additional_server_keys', '$_SERVER variables', array($this, '_display_option_additional_server_keys'), $this->page, $section, array('label_for' => 'http_authentication_additional_server_keys'));
     33        add_settings_field('http_authentication_auto_create_user', 'Automatically create accounts?', array($this, '_display_option_auto_create_user'), $this->page, $section, array('label_for' => 'http_authentication_auto_create_user'));
     34        add_settings_field('http_authentication_auto_create_email_domain', 'Email address domain', array($this, '_display_option_auto_create_email_domain'), $this->page, $section, array('label_for' => 'http_authentication_auto_create_email_domain'));
    3535    }
    3636
  • http-authentication/trunk/readme.txt

    r552756 r552757  
    143143* Remove use of call-time pass by reference to avoid warnings on PHP 5.3 and newer
    144144* Fix deprecation notice in WordPress 3.3 on `get_userdatabylogin` (#1513)
     145* Associate options page label tags with their input fields (#1514)
    145146
    146147= 4.4 =
Note: See TracChangeset for help on using the changeset viewer.