- Timestamp:
- Sep 8, 2009, 6:18:52 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/dashboard_feed.php
r376 r379 6 6 function xpress_register_dashboard_widget() { 7 7 global $wp_registered_widgets, $wp_registered_widget_controls, $wp_dashboard_control_callbacks; 8 global $xpress_config; 8 9 9 10 $widget_options = get_option( 'xpress_dashboard_widget_options' ); … … 37 38 } 38 39 update_option( 'xpress_dashboard_widget_options', $widget_options ); 39 40 wp_add_dashboard_widget( 'xpress_dashboard_primary', $widget_options['xpress_dashboard_primary']['title'], 'xpress_dashboard_primary', 'xpress_dashboard_primary_control' ); 41 wp_add_dashboard_widget( 'xpress_dashboard_secondary', $widget_options['xpress_dashboard_secondary']['title'], 'xpress_dashboard_secondary', 'xpress_dashboard_secondary_control'); 40 if ($xpress_config->is_dashboard_blog_disp){ 41 wp_add_dashboard_widget( 'xpress_dashboard_primary', $widget_options['xpress_dashboard_primary']['title'], 'xpress_dashboard_primary', 'xpress_dashboard_primary_control' ); 42 } 43 if ($xpress_config->is_dashboard_forum_disp){ 44 wp_add_dashboard_widget( 'xpress_dashboard_secondary', $widget_options['xpress_dashboard_secondary']['title'], 'xpress_dashboard_secondary', 'xpress_dashboard_secondary_control'); 45 } 42 46 } 43 47
Note: See TracChangeset
for help on using the changeset viewer.