Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: login_head

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
72      // This could be added by add_action('login_head'...) like wp_shake_js()
73      // but maybe better if it's not removable by plugins
74      if ( 'loggedout' == $wp_error->get_error_code() ) {
75           ?>
76           <script>if("sessionStorage" in window){try{for(var key in sessionStorage){if(key.indexOf("wp-autosave-")!=-1){sessionStorage.removeItem(key)}}}catch(e){}};</script>
77           <?php
78      }
79
80      do_action( 'login_enqueue_scripts' );
81      do_action( 'login_head' );
82
83      if ( is_multisite() ) {
84           $login_header_url   = network_home_url();
85           $login_header_title = $current_site->site_name;
86      } else {
87           $login_header_url   = __( 'http://wordpress.org/' );
88           $login_header_title = __( 'Powered by WordPress' );
89      }
90