Changeset 5829 for trunk/src/includes/common/shortcodes.php
- Timestamp:
- 07/14/2015 12:46:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/shortcodes.php
r5466 r5829 224 224 225 225 // Sanity check required info 226 if ( ! empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) {226 if ( ! empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) { 227 227 return $content; 228 228 } … … 232 232 233 233 // Bail if ID passed is not a forum 234 if ( ! bbp_is_forum( $forum_id ) ) {234 if ( ! bbp_is_forum( $forum_id ) ) { 235 235 return $content; 236 236 } … … 320 320 321 321 // Sanity check required info 322 if ( ! empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) {322 if ( ! empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) { 323 323 return $content; 324 324 } … … 332 332 333 333 // Bail if ID passed is not a topic 334 if ( ! bbp_is_topic( $topic_id ) ) {334 if ( ! bbp_is_topic( $topic_id ) ) { 335 335 return $content; 336 336 } 337 337 338 338 // Reset the queries if not in theme compat 339 if ( ! bbp_is_theme_compat_active() ) {339 if ( ! bbp_is_theme_compat_active() ) { 340 340 341 341 $bbp = bbpress(); … … 386 386 387 387 // Sanity check supplied info 388 if ( ! empty( $content ) || ( !empty( $attr['forum_id'] ) && ( !is_numeric( $attr['forum_id'] ) || !bbp_is_forum( $attr['forum_id'] ) ) ) ) {388 if ( ! empty( $content ) || ( ! empty( $attr['forum_id'] ) && ( !is_numeric( $attr['forum_id'] ) || ! bbp_is_forum( $attr['forum_id'] ) ) ) ) { 389 389 return $content; 390 390 } … … 394 394 395 395 // If forum id is set, use the 'bbp_single_forum' query name 396 if ( ! empty( $attr['forum_id'] ) ) {396 if ( ! empty( $attr['forum_id'] ) ) { 397 397 398 398 // Set the global current_forum_id for future requests … … 441 441 442 442 // Sanity check required info 443 if ( ! empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) {443 if ( ! empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) { 444 444 return $content; 445 445 } … … 453 453 454 454 // Bail if ID passed is not a reply 455 if ( ! bbp_is_reply( $reply_id ) ) {455 if ( ! bbp_is_reply( $reply_id ) ) { 456 456 return $content; 457 457 } 458 458 459 459 // Reset the queries if not in theme compat 460 if ( ! bbp_is_theme_compat_active() ) {460 if ( ! bbp_is_theme_compat_active() ) { 461 461 462 462 $bbp = bbpress(); … … 553 553 554 554 // Sanity check required info 555 if ( ! empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) {555 if ( ! empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) { 556 556 return $content; 557 557 } … … 688 688 689 689 // Sanity check required info 690 if ( ! empty( $content ) ) {690 if ( ! empty( $content ) ) { 691 691 return $content; 692 692 }
Note: See TracChangeset
for help on using the changeset viewer.