Plugin Directory

Changeset 903277


Ignore:
Timestamp:
04/26/2014 08:48:00 PM (12 years ago)
Author:
leftville
Message:

Update trunk to 14.04.26

Location:
wp-userlogin/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wp-userlogin/trunk/readme.txt

    r889812 r903277  
    44Requires at least: 3.0
    55Tested up to: 3.*
    6 Stable tag: 14.04
     6Stable tag: 14.04.26
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • wp-userlogin/trunk/userlogin.php

    r889344 r903277  
    55Plugin URI: http://wayofthegeek.org/downloads/wp-userlogin/
    66Description: Adds a UserLogin Widget to display login form or dashboard links depending on user role.
    7 Version: 14.04
     7Version: 14.04.26
    88Author: Jerry Stephens
    99Author URI: http://wayofthegeek.org/
     
    442442#// END unsinstall function
    443443
     444#// Login fail redirect
     445add_action( 'wp_login_failed', 'wpul_fail' );  // hook failed login
     446function 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
    444456#/> Load db info on plugin activation
    445457register_activation_hook( __FILE__, 'wpul_initial_db' );
  • wp-userlogin/trunk/wp-userlogin.pot

    r889340 r903277  
    55"Project-Id-Version:  \n"
    66"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"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=UTF-8\n"
     
    266266msgstr ""
    267267
    268 #: wpul-bootstrap.php:131 wpul-nostrap.php:168
     268#: wpul-bootstrap.php:133 wpul-nostrap.php:168
    269269msgid "Username"
    270270msgstr ""
    271271
    272 #: wpul-bootstrap.php:132 wpul-nostrap.php:169
     272#: wpul-bootstrap.php:134 wpul-nostrap.php:169
    273273msgid "Password"
    274274msgstr ""
    275275
    276 #: wpul-bootstrap.php:133 wpul-nostrap.php:170
     276#: wpul-bootstrap.php:135 wpul-nostrap.php:170
    277277msgid "Remember Me"
    278278msgstr ""
    279279
    280 #: wpul-bootstrap.php:134 wpul-nostrap.php:171
     280#: wpul-bootstrap.php:136 wpul-nostrap.php:171
    281281msgid "Log In"
     282msgstr ""
     283
     284#: wpul-bootstrap.php:146 wpul-nostrap.php:181
     285msgid "Login failed. Please try again."
    282286msgstr ""
    283287
  • wp-userlogin/trunk/wpul-bootstrap.php

    r875959 r903277  
    8282    $foot = wpul_optional_links()."</ul>";
    8383$links = implode('',$link);
     84
    8485    return $head.$links.$foot;
    8586}
    8687    function widget( $args, $instance ) {
     88
    8789        // Widget output
    8890        $check = get_option('wpul_settings');
     
    142144            wp_login_form($outargs);
    143145        }
     146                $before_title = isset($_GET['login']) && $_GET['login'] == 'failed' ? __('Login failed. Please try again.', 'wp-userlogin'):'';
    144147        echo $before_title
    145148        . $title
     
    147150        . $options
    148151        .$after_widget;
    149        
    150152    }
    151153
  • wp-userlogin/trunk/wpul-nostrap.php

    r875959 r903277  
    179179            wp_login_form($outargs);
    180180        }
     181                $before_title = isset($_GET['login']) && $_GET['login'] == 'failed' ? __('Login failed. Please try again.'):'';
    181182        echo $before_title
    182183        . $title
Note: See TracChangeset for help on using the changeset viewer.