Permalink
Browse files

Remove $this->setting in favor of class constant

Using the correct constant instead of a non-existent settings property.

Fixes #4
  • Loading branch information...
1 parent f953b37 commit c29abe957e2d34015044f514dc1cc17245d59786 @chrisguitarguy committed Dec 22, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 inc/admin.php
View
@@ -140,21 +140,21 @@ public function register()
);
add_settings_field(
- "{$this->setting}[limit]",
+ self::SETTING . '[limit]',
__('Login Attempt Limit', 'simple-login-lockdown'),
array($this, 'attempts_cb'),
$this->page,
self::SECTION,
- array('label_for' => "{$this->setting}[limit]", 'key' => 'limit')
+ array('label_for' => self::SETTING . '[limit]', 'key' => 'limit')
);
add_settings_field(
- "{$this->setting}[time]",
+ self::SETTING . '[time]',
__('Login Lockdown Time', 'simple-login-lockdown'),
array($this, 'time_cb'),
$this->page,
self::SECTION,
- array('label_for' => "{$this->setting}[time]", 'key' => 'time')
+ array('label_for' => self::SETTING . '[time]', 'key' => 'time')
);
}

0 comments on commit c29abe9

Please sign in to comment.