Ticket #8315: 8315_2.patch
File 8315_2.patch, 5.5 KB (added by , 4 years ago) |
---|
-
src/bp-core/admin/bp-core-admin-functions.php
151 151 152 152 foreach ( $notice_types as $type ) { 153 153 $notices = wp_list_filter( buddypress()->admin->notices, array( 'type' => $type ) ); 154 printf( '<div id="message" class="fade %s ">', sanitize_html_class( $type ) );154 printf( '<div id="message" class="fade %s notice is-dismissible">', sanitize_html_class( $type ) ); 155 155 156 156 foreach ( $notices as $notice ) { 157 157 printf( '<p>%s</p>', $notice['message'] ); -
src/bp-core/admin/bp-core-admin-tools.php
422 422 return false; 423 423 } 424 424 425 $message = '<div id="message" class="' . esc_attr( $class ) . ' ">' . $message . '</div>';425 $message = '<div id="message" class="' . esc_attr( $class ) . ' notice is-dismissible">' . $message . '</div>'; 426 426 $message = str_replace( "'", "\'", $message ); 427 427 $lambda = function() use ( $message ) { echo $message; }; 428 428 -
src/bp-loader.php
58 58 59 59 ?> 60 60 61 <div id="message" class="error notice ">61 <div id="message" class="error notice is-dismissible"> 62 62 <p><strong><?php esc_html_e( 'Your site does not support BuddyPress.', 'buddypress' ); ?></strong></p> 63 63 <?php /* translators: 1: current PHP version, 2: required PHP version */ ?> 64 64 <p><?php printf( esc_html__( 'Your site is currently running PHP version %1$s, while BuddyPress requires version %2$s or greater.', 'buddypress' ), esc_html( phpversion() ), esc_html( BP_REQUIRED_PHP_VERSION ) ); ?> <?php printf( __( 'See <a href="%s">the Codex guide</a> for more information.', 'buddypress' ), 'https://codex.buddypress.org/getting-started/buddypress-2-8-will-require-php-5-3/' ); ?></p> -
src/bp-members/classes/class-bp-members-admin.php
1986 1986 if ( ! empty( $notice ) ) : 1987 1987 if ( 'updated' === $notice['class'] ) : ?> 1988 1988 1989 <div id="message" class="<?php echo esc_attr( $notice['class'] ); ?> ">1989 <div id="message" class="<?php echo esc_attr( $notice['class'] ); ?> notice is-dismissible"> 1990 1990 1991 1991 <?php else: ?> 1992 1992 1993 <div class="<?php echo esc_attr( $notice['class'] ); ?> ">1993 <div class="<?php echo esc_attr( $notice['class'] ); ?> notice is-dismissible"> 1994 1994 1995 1995 <?php endif; ?> 1996 1996 -
src/bp-messages/classes/class-bp-messages-notices-admin.php
218 218 219 219 <?php if ( isset( $_GET['success'] ) || isset( $_GET['error'] ) ) : ?> 220 220 221 <div id="message" class="<?php echo isset( $_GET['success'] ) ? 'updated' : 'error'; ?> ">221 <div id="message" class="<?php echo isset( $_GET['success'] ) ? 'updated' : 'error'; ?> notice is-dismissible"> 222 222 223 223 <p> 224 224 <?php -
src/bp-xprofile/bp-xprofile-admin.php
170 170 if ( ! empty( $message ) ) : 171 171 $type = ( $type == 'error' ) ? 'error' : 'updated'; ?> 172 172 173 <div id="message" class="<?php echo $type; ?> fade ">173 <div id="message" class="<?php echo $type; ?> fade notice is-dismissible"> 174 174 <p><?php echo esc_html( $message ); ?></p> 175 175 </div> 176 176 … … 313 313 314 314 <?php endforeach; else : ?> 315 315 316 <div id="message" class="error "><p><?php _ex( 'You have no groups.', 'You have no profile fields groups.', 'buddypress' ); ?></p></div>316 <div id="message" class="error notice is-dismissible"><p><?php _ex( 'You have no groups.', 'You have no profile fields groups.', 'buddypress' ); ?></p></div> 317 317 <p><a href="<?php echo esc_url( $add_group_url ); ?>"><?php _ex( 'Add New Group', 'Add New Profile Fields Group', 'buddypress' ); ?></a></p> 318 318 319 319 <?php endif; ?> -
src/bp-xprofile/classes/class-bp-xprofile-field.php
1230 1230 1231 1231 <?php if ( !empty( $message ) ) : ?> 1232 1232 1233 <div id="message" class="error fade ">1233 <div id="message" class="error fade notice is-dismissible"> 1234 1234 <p><?php echo esc_html( $message ); ?></p> 1235 1235 </div> 1236 1236 -
src/bp-xprofile/classes/class-bp-xprofile-group.php
848 848 849 849 <?php if ( ! empty( $message ) ) : ?> 850 850 851 <div id="message" class="error fade ">851 <div id="message" class="error fade notice is-dismissible"> 852 852 <p><?php echo esc_html( $message ); ?></p> 853 853 </div> 854 854