Changeset 13405 for trunk/src/bp-blogs/classes/class-bp-blogs-template.php
- Timestamp:
- 01/19/2023 01:07:13 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/classes/class-bp-blogs-template.php
r13399 r13405 30 30 * @var int 31 31 */ 32 public $blog_count = 0;32 public $blog_count; 33 33 34 34 /** … … 86 86 * @var int 87 87 */ 88 public $total_blog_count = 0;88 public $total_blog_count; 89 89 90 90 /** … … 161 161 } 162 162 163 $max = (int) wp_unslash( $r['max'] ); 164 163 165 // Set the total blog count. 164 if ( empty( $ r['max'] ) || ( $r['max']>= (int) $this->blogs['total'] ) ) {166 if ( empty( $max ) || ( $max >= (int) $this->blogs['total'] ) ) { 165 167 $this->total_blog_count = (int) $this->blogs['total']; 166 168 } else { 167 $this->total_blog_count = (int)$max;169 $this->total_blog_count = $max; 168 170 } 169 171 … … 175 177 176 178 // Set the current blog count. 177 if ( empty( $ r['max'] ) || ( $r['max']>= (int) $blog_count ) ) {179 if ( empty( $max ) || ( $max >= (int) $blog_count ) ) { 178 180 $this->blog_count = (int) $blog_count; 179 181 } else { 180 $this->blog_count = (int)$max;182 $this->blog_count = $max; 181 183 } 182 184
Note: See TracChangeset
for help on using the changeset viewer.