Changeset 382173
- Timestamp:
- 05/07/2011 03:01:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
polldaddy/trunk/polldaddy.php
r381925 r382173 90 90 add_action( "load-$hook", array( &$this, 'api_key_page_load' ) ); 91 91 92 if ( ( empty( $_GET['page'] ) || 'polls' != $_GET['page'] ) && ( empty( $_GET['page'] ) || 'ratings' != $_GET['page'] ) )93 add_action( 'admin_notices', create_function( '', 'echo "<div class=\"error\" id=\"polldaddy-error\"><p>" . sprintf( "<strong>Hey there!</strong> For Polldaddy Polls to work, we need you to <a href=\"%s\">enter your Polldaddy.com account details</a>.", "admin.php?page=polls" ) . "</p></div>";' ) );92 if ( ( empty( $_GET['page'] ) || 'polls' != $_GET['page'] ) && ( empty( $_GET['page'] ) || 'ratings' != $_GET['page'] ) ) 93 add_action( 'admin_notices', create_function( '', 'echo "<div class=\"error\" id=\"polldaddy-error\"><p>" . sprintf( "<strong>Hey there!</strong> For Polldaddy Polls to work, we need you to <a href=\"%s\">enter your Polldaddy.com account details</a>.", "admin.php?page=polls" ) . "</p></div>";' ) ); 94 94 95 95 return false;
Note: See TracChangeset
for help on using the changeset viewer.