- Timestamp:
- 05/13/2021 05:26:01 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/activity/widgets.php
r12156 r12949 4 4 * 5 5 * @since 3.0.0 6 * @version 3.1.06 * @version 8.0.0 7 7 */ 8 8 … … 81 81 $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); 82 82 83 // Check instance for custom max number of activities to display 83 // Check instance for custom max number of activities to display. 84 84 if ( ! empty( $instance['max'] ) ) { 85 85 $max = (int) $instance['max']; 86 86 } 87 87 88 // Check instance for custom activity types 88 // Check instance for custom activity types. 89 89 if ( ! empty( $instance['type'] ) ) { 90 $type = maybe_unserialize( $instance['type'] ); 90 $type = maybe_unserialize( $instance['type'] ); 91 if ( ! is_array( $type ) ) { 92 $type = (array) maybe_unserialize( $type ); 93 } 94 91 95 $classes = array_map( 'sanitize_html_class', array_merge( $type, array( 'bp-latest-activities' ) ) ); 92 96 … … 182 186 if ( ! empty( $instance['type'] ) ) { 183 187 $type = maybe_unserialize( $instance['type'] ); 188 if ( ! is_array( $type ) ) { 189 $type = (array) maybe_unserialize( $type ); 190 } 184 191 } 185 192 ?>
Note: See TracChangeset
for help on using the changeset viewer.