Changeset 1252058
- Timestamp:
- 09/23/2015 02:00:19 PM (11 years ago)
- File:
-
- 1 edited
-
bbp-tweet/trunk/bbp-tweet.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bbp-tweet/trunk/bbp-tweet.php
r1252047 r1252058 33 33 // Function to create menu links 34 34 function bbp_tweet_menu_actions() { 35 add_menu_page( 'bbp tweet', 'bbp tweet', 1, 'bbp_tweet_settings_page', 'bbp_tweet_settings' ); 36 35 36 global $bbp_tweet_menu_page; 37 $bbp_tweet_menu_page = add_menu_page( 'bbp tweet', 'bbp tweet', 1, 'bbp_tweet_settings_page', 'bbp_tweet_settings' ); 38 39 global $bbp_tweet_oauth_instructions_page; 37 40 add_submenu_page( 'oauth-instructions.php', 'Twitter oAuth Instructions', 'Twitter oAuth Instructions', 'manage_options', 'oauth_instructions_page', 'oauth_instructions' ); 41 38 42 } 39 43 … … 45 49 function bbp_tweet_admin_init( $hook ) { 46 50 47 if ( 'bbp-tweet-admin.php' != $hook ) { 51 global $bbp_tweet_menu_page; 52 53 if ( 'bbp-tweet-admin.php' != $bbp_tweet_menu_page ) { 48 54 return; 49 55 } 50 56 51 57 wp_register_style( 'bbp_tweet_bootstrap_main_stylesheet', plugins_url( 'css/bootstrap.min.css', __FILE__) ); 52 58 wp_register_style( 'bbp_tweet_bootstrap_theme_stylesheet', plugins_url( 'css/bootstrap-theme.min.css', __FILE__) );
Note: See TracChangeset
for help on using the changeset viewer.