Skip to:
Content

BuddyPress.org

Changeset 6133


Ignore:
Timestamp:
06/24/2012 08:18:36 PM (12 years ago)
Author:
djpaul
Message:

Fix missing screen options in the Activity admin on multisite. Fixes #4288

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-admin.php

    r6129 r6133  
    139139 */
    140140function bp_activity_admin_edit_hidden_metaboxes( $hidden, $screen ) {
    141     if ( empty( $screen->id ) || 'toplevel_page_bp-activity' != $screen->id )
     141    if ( empty( $screen->id ) || 'toplevel_page_bp-activity' != $screen->id && 'toplevel_page_bp-activity_network' != $screen->id )
    142142        return $hidden;
    143143
     
    200200
    201201        // Register metaboxes for the edit screen.
    202         add_meta_box( 'submitdiv',           _x( 'Status', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_status', 'toplevel_page_bp-activity', 'side', 'core' );
    203         add_meta_box( 'bp_activity_itemids', _x( 'Primary Item/Secondary Item', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_itemids', 'toplevel_page_bp-activity', 'normal', 'core' );
    204         add_meta_box( 'bp_activity_link',    _x( 'Link', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_link', 'toplevel_page_bp-activity', 'normal', 'core' );
    205         add_meta_box( 'bp_activity_type',    _x( 'Type', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_type', 'toplevel_page_bp-activity', 'normal', 'core' );
    206         add_meta_box( 'bp_activity_userid',  _x( 'Author ID', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_userid', 'toplevel_page_bp-activity', 'normal', 'core' );
     202        add_meta_box( 'submitdiv',           _x( 'Status', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_status', get_current_screen()->id, 'side', 'core' );
     203        add_meta_box( 'bp_activity_itemids', _x( 'Primary Item/Secondary Item', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_itemids', get_current_screen()->id, 'normal', 'core' );
     204        add_meta_box( 'bp_activity_link',    _x( 'Link', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_link', get_current_screen()->id, 'normal', 'core' );
     205        add_meta_box( 'bp_activity_type',    _x( 'Type', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_type', get_current_screen()->id, 'normal', 'core' );
     206        add_meta_box( 'bp_activity_userid',  _x( 'Author ID', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_userid', get_current_screen()->id, 'normal', 'core' );
    207207
    208208        // Enqueue javascripts
     
    589589
    590590                        <div id="postbox-container-1" class="postbox-container">
    591                             <?php do_meta_boxes( 'toplevel_page_bp-activity', 'side', $activity ); ?>
     591                            <?php do_meta_boxes( get_current_screen()->id, 'side', $activity ); ?>
    592592                        </div>
    593593
    594594                        <div id="postbox-container-2" class="postbox-container">
    595                             <?php do_meta_boxes( 'toplevel_page_bp-activity', 'normal', $activity ); ?>
    596                             <?php do_meta_boxes( 'toplevel_page_bp-activity', 'advanced', $activity ); ?>
     595                            <?php do_meta_boxes( get_current_screen()->id, 'normal', $activity ); ?>
     596                            <?php do_meta_boxes( get_current_screen()->id, 'advanced', $activity ); ?>
    597597                        </div>
    598598                    </div><!-- #post-body -->
  • trunk/bp-activity/bp-activity-akismet.php

    r6129 r6133  
    497497
    498498        // Display meta box with a low priority (low position on screen by default)
    499         add_meta_box( 'bp_activity_history',  __( 'Activity History', 'buddypress' ), array( $this, 'history_metabox' ), 'toplevel_page_bp-activity', 'normal', 'low' );
     499        add_meta_box( 'bp_activity_history',  __( 'Activity History', 'buddypress' ), array( $this, 'history_metabox' ), get_current_screen()->id, 'normal', 'low' );
    500500    }
    501501
  • trunk/bp-core/admin/css/common.dev.css

    r6093 r6133  
    5252
    5353/* Activity */
    54 ul#adminmenu li.toplevel_page_bp-activity .wp-menu-image a img {
     54ul#adminmenu li.toplevel_page_bp-activity .wp-menu-image a img,
     55ul#adminmenu li.toplevel_page_bp-activity_network .wp-menu-image a img {
    5556    display: none;
    5657}
    57 ul#adminmenu li.toplevel_page_bp-activity .wp-menu-image a {
     58ul#adminmenu li.toplevel_page_bp-activity .wp-menu-image a,
     59ul#adminmenu li.toplevel_page_bp-activity_network .wp-menu-image a {
    5860    background-image: url( ../images/menu.png ) !important;
    5961    background-position: 0 -34px;
     
    6163ul#adminmenu li.toplevel_page_bp-activity:hover .wp-menu-image a,
    6264ul#adminmenu li.toplevel_page_bp-activity.current .wp-menu-image a,
    63 ul#adminmenu li.toplevel_page_bp-activity.wp-has-current-submenu .wp-menu-image a {
     65ul#adminmenu li.toplevel_page_bp-activity.wp-has-current-submenu .wp-menu-image a,
     66ul#adminmenu li.toplevel_page_bp-activity_network:hover .wp-menu-image a,
     67ul#adminmenu li.toplevel_page_bp-activity_network.current .wp-menu-image a,
     68ul#adminmenu li.toplevel_page_bp-activity_network.wp-has-current-submenu .wp-menu-image a {
    6469    background-position: 0 -2px;
    6570}
Note: See TracChangeset for help on using the changeset viewer.