Changeset 6196 for trunk/src/includes/common/shortcodes.php
- Timestamp:
- 12/28/2016 06:16:53 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/common/shortcodes.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/shortcodes.php
r5957 r6196 223 223 224 224 // Sanity check required info 225 if ( ! empty( $content ) || ( empty( $attr['id'] ) || ! is_numeric( $attr['id'] ) ) ) {225 if ( ! empty( $content ) || ( empty( $attr['id'] ) || ! is_numeric( $attr['id'] ) ) ) { 226 226 return $content; 227 227 } … … 317 317 318 318 // Sanity check required info 319 if ( ! empty( $content ) || ( empty( $attr['id'] ) || ! is_numeric( $attr['id'] ) ) ) {319 if ( ! empty( $content ) || ( empty( $attr['id'] ) || ! is_numeric( $attr['id'] ) ) ) { 320 320 return $content; 321 321 } … … 383 383 384 384 // Sanity check supplied info 385 if ( ! empty( $content ) || ( ! empty( $attr['forum_id'] ) && ( ! is_numeric( $attr['forum_id'] ) || ! bbp_is_forum( $attr['forum_id'] ) ) ) ) {385 if ( ! empty( $content ) || ( ! empty( $attr['forum_id'] ) && ( ! is_numeric( $attr['forum_id'] ) || ! bbp_is_forum( $attr['forum_id'] ) ) ) ) { 386 386 return $content; 387 387 } … … 438 438 439 439 // Sanity check required info 440 if ( ! empty( $content ) || ( empty( $attr['id'] ) || ! is_numeric( $attr['id'] ) ) ) {440 if ( ! empty( $content ) || ( empty( $attr['id'] ) || ! is_numeric( $attr['id'] ) ) ) { 441 441 return $content; 442 442 } … … 550 550 551 551 // Sanity check required info 552 if ( ! empty( $content ) || ( empty( $attr['id'] ) || ! is_numeric( $attr['id'] ) ) ) {552 if ( ! empty( $content ) || ( empty( $attr['id'] ) || ! is_numeric( $attr['id'] ) ) ) { 553 553 return $content; 554 554 } … … 734 734 735 735 // Output templates 736 if ( ! is_user_logged_in() ) {736 if ( ! is_user_logged_in() ) { 737 737 bbp_get_template_part( 'form', 'user-login' ); 738 738 } else { … … 760 760 761 761 // Output templates 762 if ( ! is_user_logged_in() ) {762 if ( ! is_user_logged_in() ) { 763 763 bbp_get_template_part( 'form', 'user-register' ); 764 764 } else { … … 786 786 787 787 // Output templates 788 if ( ! is_user_logged_in() ) {788 if ( ! is_user_logged_in() ) { 789 789 bbp_get_template_part( 'form', 'user-lost-pass' ); 790 790 } else {
Note:
See TracChangeset
for help on using the changeset viewer.