bbPress - Version 2.5.10

Version Description

  • Improved user display-name rendering
Download this release

Release Info

Developer johnjamesjacoby
Plugin Icon 128x128 bbPress
Version 2.5.10
Comparing to
See all releases

Code changes from version 2.5.9 to 2.5.10

bbpress.php CHANGED
@@ -5,7 +5,7 @@
5
  *
6
  * bbPress is forum software with a twist from the creators of WordPress.
7
  *
8
- * $Id: bbpress.php 6018 2016-04-29 17:12:13Z johnjamesjacoby $
9
  *
10
  * @package bbPress
11
  * @subpackage Main
@@ -13,11 +13,11 @@
13
 
14
  /**
15
  * Plugin Name: bbPress
16
- * Plugin URI: http://bbpress.org
17
  * Description: bbPress is forum software with a twist from the creators of WordPress.
18
  * Author: The bbPress Community
19
- * Author URI: http://bbpress.org
20
- * Version: 2.5.9
21
  * Text Domain: bbpress
22
  * Domain Path: /languages/
23
  */
@@ -190,7 +190,7 @@ final class bbPress {
190
 
191
  /** Versions **********************************************************/
192
 
193
- $this->version = '2.5.9-6017';
194
  $this->db_version = '250';
195
 
196
  /** Paths *************************************************************/
5
  *
6
  * bbPress is forum software with a twist from the creators of WordPress.
7
  *
8
+ * $Id: bbpress.php 6064 2016-07-13 15:17:48Z johnjamesjacoby $
9
  *
10
  * @package bbPress
11
  * @subpackage Main
13
 
14
  /**
15
  * Plugin Name: bbPress
16
+ * Plugin URI: https://bbpress.org
17
  * Description: bbPress is forum software with a twist from the creators of WordPress.
18
  * Author: The bbPress Community
19
+ * Author URI: https://bbpress.org
20
+ * Version: 2.5.10
21
  * Text Domain: bbpress
22
  * Domain Path: /languages/
23
  */
190
 
191
  /** Versions **********************************************************/
192
 
193
+ $this->version = '2.5.10-6063';
194
  $this->db_version = '250';
195
 
196
  /** Paths *************************************************************/
includes/users/template.php CHANGED
@@ -1652,8 +1652,11 @@ function bbp_author_link( $args = '' ) {
1652
  }
1653
 
1654
  // Assemble some link bits
1655
- $link_title = !empty( $r['link_title'] ) ? ' title="' . $r['link_title'] . '"' : '';
1656
- $anonymous = bbp_is_reply_anonymous( $r['post_id'] );
 
 
 
1657
 
1658
  // Get avatar
1659
  if ( 'avatar' === $r['type'] || 'both' === $r['type'] ) {
@@ -1662,14 +1665,14 @@ function bbp_author_link( $args = '' ) {
1662
 
1663
  // Get display name
1664
  if ( 'name' === $r['type'] || 'both' === $r['type'] ) {
1665
- $author_links[] = get_the_author_meta( 'display_name', $user_id );
1666
  }
1667
 
1668
  // Add links if not anonymous
1669
  if ( empty( $anonymous ) && bbp_user_has_profile( $user_id ) ) {
1670
  $author_url = bbp_get_user_profile_url( $user_id );
1671
  foreach ( $author_links as $link_text ) {
1672
- $author_link[] = sprintf( '<a href="%1$s"%2$s>%3$s</a>', $author_url, $link_title, $link_text );
1673
  }
1674
  $author_link = implode( '&nbsp;', $author_link );
1675
 
1652
  }
1653
 
1654
  // Assemble some link bits
1655
+ $link_title = !empty( $r['link_title'] )
1656
+ ? ' title="' . esc_attr( $r['link_title'] ) . '"'
1657
+ : '';
1658
+
1659
+ $anonymous = bbp_is_reply_anonymous( $r['post_id'] );
1660
 
1661
  // Get avatar
1662
  if ( 'avatar' === $r['type'] || 'both' === $r['type'] ) {
1665
 
1666
  // Get display name
1667
  if ( 'name' === $r['type'] || 'both' === $r['type'] ) {
1668
+ $author_links[] = esc_html( get_the_author_meta( 'display_name', $user_id ) );
1669
  }
1670
 
1671
  // Add links if not anonymous
1672
  if ( empty( $anonymous ) && bbp_user_has_profile( $user_id ) ) {
1673
  $author_url = bbp_get_user_profile_url( $user_id );
1674
  foreach ( $author_links as $link_text ) {
1675
+ $author_link[] = sprintf( '<a href="%1$s"%2$s>%3$s</a>', esc_url( $author_url ), $link_title, $link_text );
1676
  }
1677
  $author_link = implode( '&nbsp;', $author_link );
1678
 
languages/bbpress.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the bbPress package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: bbPress 2.5.9\n"
6
  "Report-Msgid-Bugs-To: https://bbpress.trac.wordpress.org\n"
7
- "POT-Creation-Date: 2016-04-29 17:16:42+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -4939,11 +4939,11 @@ msgstr ""
4939
  msgid "bbPress"
4940
  msgstr ""
4941
 
4942
- #. #-#-#-#-# plugin.pot (bbPress 2.5.9) #-#-#-#-#
4943
  #. Plugin URI of the plugin/theme
4944
- #. #-#-#-#-# plugin.pot (bbPress 2.5.9) #-#-#-#-#
4945
  #. Author URI of the plugin/theme
4946
- msgid "http://bbpress.org"
4947
  msgstr ""
4948
 
4949
  #. Description of the plugin/theme
@@ -4953,3 +4953,4 @@ msgstr ""
4953
  #. Author of the plugin/theme
4954
  msgid "The bbPress Community"
4955
  msgstr ""
 
2
  # This file is distributed under the same license as the bbPress package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: bbPress 2.5.10\n"
6
  "Report-Msgid-Bugs-To: https://bbpress.trac.wordpress.org\n"
7
+ "POT-Creation-Date: 2016-07-13 15:23:01+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
4939
  msgid "bbPress"
4940
  msgstr ""
4941
 
4942
+ #. #-#-#-#-# plugin.pot (bbPress 2.5.10) #-#-#-#-#
4943
  #. Plugin URI of the plugin/theme
4944
+ #. #-#-#-#-# plugin.pot (bbPress 2.5.10) #-#-#-#-#
4945
  #. Author URI of the plugin/theme
4946
+ msgid "https://bbpress.org"
4947
  msgstr ""
4948
 
4949
  #. Description of the plugin/theme
4953
  #. Author of the plugin/theme
4954
  msgid "The bbPress Community"
4955
  msgstr ""
4956
+
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: matt, johnjamesjacoby, jmdodd, netweb
3
  Tags: forums, discussion, support, theme, akismet, multisite
4
  Requires at least: 3.6
5
  Tested up to: 4.5
6
- Stable tag: 2.5.9
7
  License: GPLv2 or later
8
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  bbPress is forum software, made the WordPress way.
11
 
@@ -40,6 +40,9 @@ We're keeping things as small and light as possible while still allowing for gre
40
 
41
  == Changelog ==
42
 
 
 
 
43
  = 2.5.9 =
44
  * Improved user mentions
45
 
3
  Tags: forums, discussion, support, theme, akismet, multisite
4
  Requires at least: 3.6
5
  Tested up to: 4.5
6
+ Stable tag: 2.5.10
7
  License: GPLv2 or later
8
+ License URI: https://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  bbPress is forum software, made the WordPress way.
11
 
40
 
41
  == Changelog ==
42
 
43
+ = 2.5.10 =
44
+ * Improved user display-name rendering
45
+
46
  = 2.5.9 =
47
  * Improved user mentions
48