Changeset 2914 for branches/plugin/bbp-includes/bbp-topic-functions.php
- Timestamp:
- 02/18/2011 10:16:22 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-topic-functions.php
r2907 r2914 1358 1358 1359 1359 // If it's a reply, then get the parent (topic id) 1360 if ( $reply_id = bbp_get_reply_id( $topic_id ) )1361 $topic_id = bbp_get_reply_topic_id( $ reply_id );1360 if ( bbp_is_reply( $topic_id ) ) 1361 $topic_id = bbp_get_reply_topic_id( $topic_id ); 1362 1362 else 1363 1363 $topic_id = bbp_get_topic_id( $topic_id ); … … 1391 1391 1392 1392 // If it's a reply, then get the parent (topic id) 1393 if ( $reply_id = bbp_get_reply_id( $topic_id ) )1393 if ( bbp_is_reply( $topic_id ) ) 1394 1394 $topic_id = bbp_get_reply_topic_id( $reply_id ); 1395 1395 else … … 1426 1426 1427 1427 // If it's a reply, then get the parent (topic id) 1428 if ( $reply_id = bbp_get_reply_id( $topic_id ) )1429 $topic_id = bbp_get_reply_topic_id( $ reply_id );1428 if ( bbp_is_reply( $topic_id ) ) 1429 $topic_id = bbp_get_reply_topic_id( $topic_id ); 1430 1430 else 1431 1431 $topic_id = bbp_get_topic_id( $topic_id ); … … 1455 1455 1456 1456 // If it's a reply, then get the parent (topic id) 1457 if ( $reply_id = bbp_get_reply_id( $topic_id ) )1458 $topic_id = bbp_get_reply_topic_id( $ reply_id );1457 if ( bbp_is_reply( $topic_id ) ) 1458 $topic_id = bbp_get_reply_topic_id( $topic_id ); 1459 1459 else 1460 1460 $topic_id = bbp_get_topic_id( $topic_id ); … … 1488 1488 1489 1489 // If it's a reply, then get the parent (topic id) 1490 if ( $reply_id = bbp_get_reply_id( $topic_id ) )1490 if ( bbp_is_reply( $topic_id ) ) 1491 1491 $topic_id = bbp_get_reply_topic_id( $reply_id ); 1492 1492 else … … 1517 1517 1518 1518 // If it's a reply, then get the parent (topic id) 1519 if ( empty( $reply_id ) && $reply_id = bbp_get_reply_id( $topic_id ) ) { 1519 if ( empty( $reply_id ) && bbp_is_reply( $topic_id ) ) { 1520 $reply_id = bbp_get_reply_id( $topic_id ); 1520 1521 $topic_id = bbp_get_reply_topic_id( $reply_id ); 1521 1522 } else { … … 1556 1557 1557 1558 // If it's a reply, then get the parent (topic id) 1558 if ( $reply_id = bbp_get_reply_id( $topic_id ) )1559 $topic_id = bbp_get_reply_topic_id( $ reply_id );1559 if ( bbp_is_reply( $topic_id ) ) 1560 $topic_id = bbp_get_reply_topic_id( $topic_id ); 1560 1561 else 1561 1562 $topic_id = bbp_get_topic_id( $topic_id );
Note: See TracChangeset
for help on using the changeset viewer.