Skip to:
Content

BuddyPress.org

Changeset 12664


Ignore:
Timestamp:
06/13/2020 04:42:35 PM (4 years ago)
Author:
imath
Message:

Make Activity and Group screens admin notices dismissible

props immeet94

See #8315

Location:
trunk/src
Files:
2 edited

Legend:

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

    r12659 r12664  
    11721172        <?php // If the user has just made a change to an activity item, display the status messages. ?>
    11731173        <?php if ( !empty( $messages ) ) : ?>
    1174             <div id="moderated" class="<?php echo ( ! empty( $_REQUEST['error'] ) ) ? 'error' : 'updated'; ?>"><p><?php echo implode( "<br/>\n", $messages ); ?></p></div>
     1174            <div id="moderated" class="<?php echo ( ! empty( $_REQUEST['error'] ) ) ? 'error' : 'updated'; ?> notice is-dismissible"><p><?php echo implode( "<br/>\n", $messages ); ?></p></div>
    11751175        <?php endif; ?>
    11761176
  • trunk/src/bp-groups/bp-groups-admin.php

    r12590 r12664  
    607607        <?php // If the user has just made a change to an group, display the status messages. ?>
    608608        <?php if ( !empty( $messages ) ) : ?>
    609             <div id="moderated" class="<?php echo ( $is_error ) ? 'error' : 'updated'; ?>"><p><?php echo implode( "</p><p>", $messages ); ?></p></div>
     609            <div id="moderated" class="<?php echo ( $is_error ) ? 'error' : 'updated'; ?> notice is-dismissible"><p><?php echo implode( "</p><p>", $messages ); ?></p></div>
    610610        <?php endif; ?>
    611611
     
    802802        <?php // If the user has just made a change to an group, display the status messages. ?>
    803803        <?php if ( !empty( $messages ) ) : ?>
    804             <div id="moderated" class="<?php echo ( ! empty( $_REQUEST['error'] ) ) ? 'error' : 'updated'; ?>"><p><?php echo implode( "<br/>\n", $messages ); ?></p></div>
     804            <div id="moderated" class="<?php echo ( ! empty( $_REQUEST['error'] ) ) ? 'error' : 'updated'; ?> notice is-dismissible"><p><?php echo implode( "<br/>\n", $messages ); ?></p></div>
    805805        <?php endif; ?>
    806806
Note: See TracChangeset for help on using the changeset viewer.