Changeset 4694
- Timestamp:
- 01/22/2013 03:49:42 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/common/functions.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/common/functions.php
r4655 r4694 106 106 */ 107 107 function bbp_get_time_since( $older_date, $newer_date = false ) { 108 108 109 109 // Setup the strings 110 110 $unknown_text = apply_filters( 'bbp_core_time_since_unknown_text', __( 'sometime', 'bbpress' ) ); … … 573 573 'empty_topic_tag_count' 574 574 ) ) ); 575 575 576 576 // Add the hidden (topic/reply) count title attribute strings because we 577 577 // don't need to run the math functions on these (see above) … … 737 737 return false; 738 738 } 739 739 740 740 // User is logged in, so check their last posted time 741 741 } elseif ( !empty( $author_id ) ) { … … 1056 1056 1057 1057 %2$s 1058 1058 1059 1059 Post Link: %3$s 1060 1060 … … 1064 1064 1065 1065 Login and visit the topic to unsubscribe from these emails.', 'bbpress' ), 1066 1066 1067 1067 $reply_author_name, 1068 1068 $reply_content, … … 1438 1438 function bbp_verify_nonce_request( $action = '', $query_arg = '_wpnonce' ) { 1439 1439 1440 // Parse home_url() into pieces to remove query-strings, strange characters, 1440 // Parse home_url() into pieces to remove query-strings, strange characters, 1441 1441 // and other funny things that plugins might to do to it. 1442 1442 $parsed_home = parse_url( home_url( '/', ( is_ssl() ? 'https://' : 'http://' ) ) ); … … 1495 1495 if ( isset( $query_vars[bbp_get_forum_post_type()] ) ) { 1496 1496 1497 // Get the forum by the path1498 $forum = get_page_by_path( $query_vars[bbp_get_forum_post_type()], OBJECT, bbp_get_forum_post_type() );1499 $forum_id = $forum->ID;1500 1501 1497 // Load up our own query 1502 1498 query_posts( array( 1503 1499 'post_type' => bbp_get_forum_post_type(), 1504 ' ID' => $forum_id,1500 'name' => $query_vars[bbp_get_forum_post_type()], 1505 1501 'feed' => true 1506 1502 ) ); … … 1509 1505 $meta_query = array( array( 1510 1506 'key' => '_bbp_forum_id', 1511 'value' => $forum_id,1507 'value' => bbp_get_forum_id(), 1512 1508 'type' => 'numeric', 1513 1509 'compare' => '=' … … 1541 1537 'feed' => true, 1542 1538 'post_type' => bbp_get_topic_post_type(), 1543 'post_parent' => $forum_id,1539 'post_parent' => bbp_get_forum_id(), 1544 1540 'post_status' => join( ',', array( bbp_get_public_status_id(), bbp_get_closed_status_id() ) ), 1545 1541 'posts_per_page' => bbp_get_topics_per_rss_page(),
Note: See TracChangeset
for help on using the changeset viewer.