Changeset 903277
- Timestamp:
- 04/26/2014 08:48:00 PM (12 years ago)
- Location:
- wp-userlogin/trunk
- Files:
-
- 5 edited
-
readme.txt (modified) (1 diff)
-
userlogin.php (modified) (2 diffs)
-
wp-userlogin.pot (modified) (2 diffs)
-
wpul-bootstrap.php (modified) (3 diffs)
-
wpul-nostrap.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-userlogin/trunk/readme.txt
r889812 r903277 4 4 Requires at least: 3.0 5 5 Tested up to: 3.* 6 Stable tag: 14.04 6 Stable tag: 14.04.26 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
wp-userlogin/trunk/userlogin.php
r889344 r903277 5 5 Plugin URI: http://wayofthegeek.org/downloads/wp-userlogin/ 6 6 Description: Adds a UserLogin Widget to display login form or dashboard links depending on user role. 7 Version: 14.04 7 Version: 14.04.26 8 8 Author: Jerry Stephens 9 9 Author URI: http://wayofthegeek.org/ … … 442 442 #// END unsinstall function 443 443 444 #// Login fail redirect 445 add_action( 'wp_login_failed', 'wpul_fail' ); // hook failed login 446 function wpul_fail( $username ) { 447 $referrer = str_replace('?login=failed','',$_SERVER['HTTP_REFERER']); // where did the post submission come from? 448 // if there's a valid referrer, and it's not the default log-in screen 449 if ( !empty($referrer) && !strstr($referrer,'wp-login') && !strstr($referrer,'wp-admin') ) { 450 $failed = !isset($_GET['login']) && $_GET['login'] != 'failed' ? '?login=failed' :''; 451 wp_redirect( $referrer . $failed ); // let's aloginppend some information (login=failed) to the URL for the theme to use 452 exit; 453 } 454 } 455 444 456 #/> Load db info on plugin activation 445 457 register_activation_hook( __FILE__, 'wpul_initial_db' ); -
wp-userlogin/trunk/wp-userlogin.pot
r889340 r903277 5 5 "Project-Id-Version: \n" 6 6 "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-userlogin\n" 7 "POT-Creation-Date: 2014-04- 08 11:21:36+00:00\n"7 "POT-Creation-Date: 2014-04-26 20:44:39+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=UTF-8\n" … … 266 266 msgstr "" 267 267 268 #: wpul-bootstrap.php:13 1wpul-nostrap.php:168268 #: wpul-bootstrap.php:133 wpul-nostrap.php:168 269 269 msgid "Username" 270 270 msgstr "" 271 271 272 #: wpul-bootstrap.php:13 2wpul-nostrap.php:169272 #: wpul-bootstrap.php:134 wpul-nostrap.php:169 273 273 msgid "Password" 274 274 msgstr "" 275 275 276 #: wpul-bootstrap.php:13 3wpul-nostrap.php:170276 #: wpul-bootstrap.php:135 wpul-nostrap.php:170 277 277 msgid "Remember Me" 278 278 msgstr "" 279 279 280 #: wpul-bootstrap.php:13 4wpul-nostrap.php:171280 #: wpul-bootstrap.php:136 wpul-nostrap.php:171 281 281 msgid "Log In" 282 msgstr "" 283 284 #: wpul-bootstrap.php:146 wpul-nostrap.php:181 285 msgid "Login failed. Please try again." 282 286 msgstr "" 283 287 -
wp-userlogin/trunk/wpul-bootstrap.php
r875959 r903277 82 82 $foot = wpul_optional_links()."</ul>"; 83 83 $links = implode('',$link); 84 84 85 return $head.$links.$foot; 85 86 } 86 87 function widget( $args, $instance ) { 88 87 89 // Widget output 88 90 $check = get_option('wpul_settings'); … … 142 144 wp_login_form($outargs); 143 145 } 146 $before_title = isset($_GET['login']) && $_GET['login'] == 'failed' ? __('Login failed. Please try again.', 'wp-userlogin'):''; 144 147 echo $before_title 145 148 . $title … … 147 150 . $options 148 151 .$after_widget; 149 150 152 } 151 153 -
wp-userlogin/trunk/wpul-nostrap.php
r875959 r903277 179 179 wp_login_form($outargs); 180 180 } 181 $before_title = isset($_GET['login']) && $_GET['login'] == 'failed' ? __('Login failed. Please try again.'):''; 181 182 echo $before_title 182 183 . $title
Note: See TracChangeset
for help on using the changeset viewer.