Version Description
Download this release
Release Info
| Developer | Otto42 |
| Plugin | |
| Version | 2.6.5 |
| Comparing to | |
| See all releases | |
Code changes from version 2.6.4 to 2.6.5
- bbpress.php +13 -11
- bbpress.pot +332 -313
- includes/admin/assets/js/common.js +1 -0
- includes/admin/assets/js/common.min.js +1 -1
- includes/admin/classes/class-bbp-admin.php +85 -20
- includes/admin/forums.php +11 -2
- includes/admin/settings.php +40 -37
- includes/common/formatting.php +28 -9
- includes/common/shortcodes.php +8 -3
- includes/common/template.php +76 -23
- includes/core/actions.php +10 -4
- includes/core/sub-actions.php +4 -4
- includes/core/template-functions.php +10 -9
- includes/core/theme-compat.php +22 -0
- includes/search/template.php +5 -2
- includes/users/capabilities.php +36 -4
- includes/users/signups.php +120 -33
- readme.txt +2 -2
bbpress.php
CHANGED
|
@@ -5,22 +5,24 @@
|
|
| 5 |
*
|
| 6 |
* bbPress is forum software with a twist from the creators of WordPress.
|
| 7 |
*
|
| 8 |
-
* $Id: bbpress.php
|
| 9 |
*
|
| 10 |
* @package bbPress
|
| 11 |
* @subpackage Main
|
| 12 |
*/
|
| 13 |
|
| 14 |
/**
|
| 15 |
-
* Plugin Name:
|
| 16 |
-
* Plugin URI:
|
| 17 |
-
* Description:
|
| 18 |
-
* Author:
|
| 19 |
-
* Author URI:
|
| 20 |
-
* Version:
|
| 21 |
-
* Text Domain:
|
| 22 |
-
* Domain Path:
|
| 23 |
-
* License:
|
|
|
|
|
|
|
| 24 |
*/
|
| 25 |
|
| 26 |
// Exit if accessed directly
|
|
@@ -203,7 +205,7 @@ final class bbPress {
|
|
| 203 |
|
| 204 |
/** Versions **********************************************************/
|
| 205 |
|
| 206 |
-
$this->version = '2.6.
|
| 207 |
$this->db_version = '263';
|
| 208 |
|
| 209 |
/** Paths *************************************************************/
|
| 5 |
*
|
| 6 |
* bbPress is forum software with a twist from the creators of WordPress.
|
| 7 |
*
|
| 8 |
+
* $Id: bbpress.php 7090 2020-05-28 16:58:55Z johnjamesjacoby $
|
| 9 |
*
|
| 10 |
* @package bbPress
|
| 11 |
* @subpackage Main
|
| 12 |
*/
|
| 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 Contributors
|
| 19 |
+
* Author URI: https://bbpress.org
|
| 20 |
+
* Version: 2.6.5
|
| 21 |
+
* Text Domain: bbpress
|
| 22 |
+
* Domain Path: /languages/
|
| 23 |
+
* License: GPLv2 or later (license.txt)
|
| 24 |
+
* Requires PHP: 5.6.20
|
| 25 |
+
* Requires at least: 4.7
|
| 26 |
*/
|
| 27 |
|
| 28 |
// Exit if accessed directly
|
| 205 |
|
| 206 |
/** Versions **********************************************************/
|
| 207 |
|
| 208 |
+
$this->version = '2.6.5';
|
| 209 |
$this->db_version = '263';
|
| 210 |
|
| 211 |
/** Paths *************************************************************/
|
bbpress.pot
CHANGED
|
@@ -2,9 +2,9 @@
|
|
| 2 |
# This file is distributed under the GPLv2 or later (license.txt).
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: bbPress 2.6.
|
| 6 |
"Report-Msgid-Bugs-To: https://bbpress.trac.wordpress.org\n"
|
| 7 |
-
"POT-Creation-Date: 2020-
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
|
@@ -13,40 +13,40 @@ msgstr ""
|
|
| 13 |
"Language-Team: ENGLISH <jjj@bbpress.org>\n"
|
| 14 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
| 15 |
|
| 16 |
-
#: bbpress.php:
|
| 17 |
msgid "Cheatin’ huh?"
|
| 18 |
msgstr ""
|
| 19 |
|
| 20 |
-
#: bbpress.php:
|
| 21 |
msgid "bbPress Forums"
|
| 22 |
msgstr ""
|
| 23 |
|
| 24 |
-
#: bbpress.php:
|
| 25 |
msgid "bbPress Topics"
|
| 26 |
msgstr ""
|
| 27 |
|
| 28 |
-
#: bbpress.php:
|
| 29 |
msgid "bbPress Replies"
|
| 30 |
msgstr ""
|
| 31 |
|
| 32 |
-
#: bbpress.php:
|
| 33 |
msgid "Most popular topics"
|
| 34 |
msgstr ""
|
| 35 |
|
| 36 |
-
#: bbpress.php:
|
| 37 |
msgid "Topics with no replies"
|
| 38 |
msgstr ""
|
| 39 |
|
| 40 |
-
#: bbpress.php:
|
| 41 |
msgid "bbPress Item Count"
|
| 42 |
msgstr ""
|
| 43 |
|
| 44 |
-
#: bbpress.php:
|
| 45 |
msgid "bbPress User Activity"
|
| 46 |
msgstr ""
|
| 47 |
|
| 48 |
#: includes/admin/actions.php:178 includes/admin/forums.php:538
|
| 49 |
-
#: includes/admin/settings.php:
|
| 50 |
#: includes/admin/tools/common.php:437 includes/admin/topics.php:854
|
| 51 |
#: includes/extend/buddypress/activity.php:197
|
| 52 |
#: includes/extend/buddypress/activity.php:391
|
|
@@ -58,8 +58,8 @@ msgid "Topics"
|
|
| 58 |
msgstr ""
|
| 59 |
|
| 60 |
#: includes/admin/actions.php:183 includes/admin/actions.php:195
|
| 61 |
-
#: includes/admin/forums.php:539 includes/admin/settings.php:
|
| 62 |
-
#: includes/admin/settings.php:
|
| 63 |
#: includes/admin/topics.php:390 includes/admin/topics.php:856
|
| 64 |
#: includes/core/theme-compat.php:694
|
| 65 |
#: includes/extend/buddypress/activity.php:207
|
|
@@ -77,7 +77,7 @@ msgstr ""
|
|
| 77 |
#: includes/admin/actions.php:190 includes/admin/actions.php:202
|
| 78 |
#: includes/admin/forums.php:537 includes/admin/metaboxes.php:113
|
| 79 |
#: includes/admin/metaboxes.php:432 includes/admin/metaboxes.php:496
|
| 80 |
-
#: includes/admin/replies.php:665 includes/admin/settings.php:
|
| 81 |
#: includes/admin/topics.php:855 includes/extend/buddypress/groups.php:51
|
| 82 |
#: includes/extend/buddypress/groups.php:52 includes/forums/template.php:50
|
| 83 |
#: templates/default/bbpress/loop-forums.php:20
|
|
@@ -86,7 +86,7 @@ msgstr ""
|
|
| 86 |
|
| 87 |
#: includes/admin/actions.php:207 includes/admin/metaboxes.php:130
|
| 88 |
#: includes/admin/metaboxes.php:523 includes/admin/replies.php:666
|
| 89 |
-
#: includes/admin/settings.php:
|
| 90 |
#: templates/default/bbpress/content-single-topic-lead.php:23
|
| 91 |
#: templates/default/bbpress/content-single-topic-lead.php:91
|
| 92 |
#: templates/default/bbpress/loop-topics.php:18
|
|
@@ -132,70 +132,71 @@ msgstr ""
|
|
| 132 |
#: includes/admin/classes/class-bbp-admin.php:515
|
| 133 |
#: includes/admin/classes/class-bbp-admin.php:536
|
| 134 |
#: includes/admin/classes/class-bbp-admin.php:537
|
| 135 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 136 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 137 |
msgid "Update Forums"
|
| 138 |
msgstr ""
|
| 139 |
|
| 140 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 141 |
msgid "Settings"
|
| 142 |
msgstr ""
|
| 143 |
|
| 144 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 145 |
msgid "About"
|
| 146 |
msgstr ""
|
| 147 |
|
| 148 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 149 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 150 |
-
|
|
|
|
| 151 |
msgstr ""
|
| 152 |
|
| 153 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 154 |
msgid "Welcome to bbPress %s"
|
| 155 |
msgstr ""
|
| 156 |
|
| 157 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 158 |
msgid ""
|
| 159 |
"bbPress is fun to use, contains no artificial colors or preservatives, and "
|
| 160 |
"is absolutely wonderful in every environment. Your community is going to "
|
| 161 |
"love using it."
|
| 162 |
msgstr ""
|
| 163 |
|
| 164 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 165 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 166 |
msgid "What’s New"
|
| 167 |
msgstr ""
|
| 168 |
|
| 169 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 170 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 171 |
msgid "Credits"
|
| 172 |
msgstr ""
|
| 173 |
|
| 174 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 175 |
msgid "Forum Subscriptions"
|
| 176 |
msgstr ""
|
| 177 |
|
| 178 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 179 |
msgid "Subscribe to Forums"
|
| 180 |
msgstr ""
|
| 181 |
|
| 182 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 183 |
msgid "Now your users can subscribe to new topics in specific forums."
|
| 184 |
msgstr ""
|
| 185 |
|
| 186 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 187 |
msgid "Manage Subscriptions"
|
| 188 |
msgstr ""
|
| 189 |
|
| 190 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 191 |
msgid "Your users can manage all of their subscriptions in one convenient location."
|
| 192 |
msgstr ""
|
| 193 |
|
| 194 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 195 |
msgid "Converters"
|
| 196 |
msgstr ""
|
| 197 |
|
| 198 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 199 |
msgid ""
|
| 200 |
"We’re all abuzz about the hive of new importers, AEF, Drupal, FluxBB, "
|
| 201 |
"Kunena Forums for Joomla, MyBB, Phorum, PHPFox, PHPWind, PunBB, SMF, "
|
|
@@ -204,120 +205,120 @@ msgid ""
|
|
| 204 |
"now gone if you need to remove imported users."
|
| 205 |
msgstr ""
|
| 206 |
|
| 207 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 208 |
msgid "Theme Compatibility"
|
| 209 |
msgstr ""
|
| 210 |
|
| 211 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 212 |
msgid "Better handling of styles and scripts in the template stack."
|
| 213 |
msgstr ""
|
| 214 |
|
| 215 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 216 |
msgid "Polyglot support"
|
| 217 |
msgstr ""
|
| 218 |
|
| 219 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 220 |
msgid "bbPress fully supports automatic translation updates."
|
| 221 |
msgstr ""
|
| 222 |
|
| 223 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 224 |
msgid "User capabilities"
|
| 225 |
msgstr ""
|
| 226 |
|
| 227 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 228 |
msgid "Roles and capabilities have been swept through, cleaned up, and simplified."
|
| 229 |
msgstr ""
|
| 230 |
|
| 231 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 232 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 233 |
msgid "Go to Forum Settings"
|
| 234 |
msgstr ""
|
| 235 |
|
| 236 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 237 |
msgid "bbPress is created by a worldwide swarm of busy, busy bees."
|
| 238 |
msgstr ""
|
| 239 |
|
| 240 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 241 |
msgid "Project Leaders"
|
| 242 |
msgstr ""
|
| 243 |
|
| 244 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 245 |
msgid "Founding Developer"
|
| 246 |
msgstr ""
|
| 247 |
|
| 248 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 249 |
msgid "Lead Developer"
|
| 250 |
msgstr ""
|
| 251 |
|
| 252 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 253 |
msgid "Feature Virtuoso"
|
| 254 |
msgstr ""
|
| 255 |
|
| 256 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 257 |
msgid "Tool Maven"
|
| 258 |
msgstr ""
|
| 259 |
|
| 260 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 261 |
msgid "Contributing Developers"
|
| 262 |
msgstr ""
|
| 263 |
|
| 264 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 265 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 266 |
msgid "Core Developer"
|
| 267 |
msgstr ""
|
| 268 |
|
| 269 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 270 |
msgid "Project Emeriti"
|
| 271 |
msgstr ""
|
| 272 |
|
| 273 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 274 |
msgid "Feature Developer"
|
| 275 |
msgstr ""
|
| 276 |
|
| 277 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 278 |
msgid "Integration Testing"
|
| 279 |
msgstr ""
|
| 280 |
|
| 281 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 282 |
msgid "Contributors to bbPress 2.6"
|
| 283 |
msgstr ""
|
| 284 |
|
| 285 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 286 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 287 |
msgid "Update Forum"
|
| 288 |
msgstr ""
|
| 289 |
|
| 290 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 291 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 292 |
msgid "All done!"
|
| 293 |
msgstr ""
|
| 294 |
|
| 295 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 296 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 297 |
msgid "Go Back"
|
| 298 |
msgstr ""
|
| 299 |
|
| 300 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 301 |
msgid "You can update your forum through this page. Hit the link below to update."
|
| 302 |
msgstr ""
|
| 303 |
|
| 304 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 305 |
msgid ""
|
| 306 |
"Warning! Problem updating %1$s. Your server may not be able to connect to "
|
| 307 |
"sites running on it. Error message: %2$s"
|
| 308 |
msgstr ""
|
| 309 |
|
| 310 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 311 |
msgid ""
|
| 312 |
"If your browser doesn’t start loading the next page automatically, "
|
| 313 |
"click this link:"
|
| 314 |
msgstr ""
|
| 315 |
|
| 316 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 317 |
msgid "Next Forums"
|
| 318 |
msgstr ""
|
| 319 |
|
| 320 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 321 |
msgid ""
|
| 322 |
"You can update all the forums on your network through this page. It works "
|
| 323 |
"by calling the update script of each site automatically. Hit the link below "
|
|
@@ -329,7 +330,7 @@ msgid "Database connection failed."
|
|
| 329 |
msgstr ""
|
| 330 |
|
| 331 |
#: includes/admin/classes/class-bbp-converter.php:162
|
| 332 |
-
#: includes/admin/settings.php:
|
| 333 |
msgid "Start"
|
| 334 |
msgstr ""
|
| 335 |
|
|
@@ -642,7 +643,7 @@ msgid "View"
|
|
| 642 |
msgstr ""
|
| 643 |
|
| 644 |
#: includes/admin/classes/class-bbp-topic-replies-list-table.php:149
|
| 645 |
-
#: includes/admin/settings.php:
|
| 646 |
#: includes/forums/template.php:54 includes/replies/template.php:55
|
| 647 |
#: includes/replies/template.php:1848 includes/topics/template.php:53
|
| 648 |
#: includes/topics/template.php:2403
|
|
@@ -655,7 +656,7 @@ msgid "No replies to this topic."
|
|
| 655 |
msgstr ""
|
| 656 |
|
| 657 |
#: includes/admin/forums.php:101 includes/admin/replies.php:115
|
| 658 |
-
#: includes/admin/settings.php:
|
| 659 |
#: includes/admin/topics.php:119
|
| 660 |
msgid "Overview"
|
| 661 |
msgstr ""
|
|
@@ -758,7 +759,7 @@ msgstr ""
|
|
| 758 |
|
| 759 |
#: includes/admin/forums.php:144 includes/admin/forums.php:200
|
| 760 |
#: includes/admin/replies.php:161 includes/admin/replies.php:215
|
| 761 |
-
#: includes/admin/settings.php:
|
| 762 |
#: includes/admin/tools/help.php:72 includes/admin/tools/help.php:130
|
| 763 |
#: includes/admin/topics.php:167 includes/admin/topics.php:220
|
| 764 |
msgid "For more information:"
|
|
@@ -766,7 +767,7 @@ msgstr ""
|
|
| 766 |
|
| 767 |
#: includes/admin/forums.php:145 includes/admin/forums.php:201
|
| 768 |
#: includes/admin/replies.php:162 includes/admin/replies.php:216
|
| 769 |
-
#: includes/admin/settings.php:
|
| 770 |
#: includes/admin/tools/help.php:73 includes/admin/tools/help.php:131
|
| 771 |
#: includes/admin/topics.php:168 includes/admin/topics.php:221
|
| 772 |
msgid ""
|
|
@@ -776,7 +777,7 @@ msgstr ""
|
|
| 776 |
|
| 777 |
#: includes/admin/forums.php:146 includes/admin/forums.php:202
|
| 778 |
#: includes/admin/replies.php:163 includes/admin/replies.php:217
|
| 779 |
-
#: includes/admin/settings.php:
|
| 780 |
#: includes/admin/tools/help.php:74 includes/admin/tools/help.php:132
|
| 781 |
#: includes/admin/topics.php:169 includes/admin/topics.php:222
|
| 782 |
msgid ""
|
|
@@ -886,13 +887,13 @@ msgstr ""
|
|
| 886 |
msgid "Publish Box"
|
| 887 |
msgstr ""
|
| 888 |
|
| 889 |
-
#: includes/admin/forums.php:237 includes/admin/settings.php:
|
| 890 |
#: includes/admin/tools/reset.php:42
|
| 891 |
msgid "Forum Moderators"
|
| 892 |
msgstr ""
|
| 893 |
|
| 894 |
-
#: includes/admin/forums.php:267 includes/admin/settings.php:
|
| 895 |
-
#: includes/admin/settings.php:
|
| 896 |
#: includes/admin/topics.php:480 includes/extend/buddypress/loader.php:260
|
| 897 |
#: templates/default/bbpress/user-details.php:67
|
| 898 |
msgid "Subscriptions"
|
|
@@ -960,58 +961,58 @@ msgstr ""
|
|
| 960 |
msgid "Open this forum"
|
| 961 |
msgstr ""
|
| 962 |
|
| 963 |
-
#: includes/admin/forums.php:
|
| 964 |
#: includes/forums/template.php:79
|
| 965 |
msgid "Forum updated."
|
| 966 |
msgstr ""
|
| 967 |
|
| 968 |
-
#: includes/admin/forums.php:
|
| 969 |
msgid "View forum"
|
| 970 |
msgstr ""
|
| 971 |
|
| 972 |
-
#: includes/admin/forums.php:
|
| 973 |
#: includes/admin/topics.php:1181
|
| 974 |
msgid "Custom field updated."
|
| 975 |
msgstr ""
|
| 976 |
|
| 977 |
-
#: includes/admin/forums.php:
|
| 978 |
#: includes/admin/topics.php:1184
|
| 979 |
msgid "Custom field deleted."
|
| 980 |
msgstr ""
|
| 981 |
|
| 982 |
-
#: includes/admin/forums.php:
|
| 983 |
#. translators: %s: date and time of the revision
|
| 984 |
msgid "Forum restored to revision from %s"
|
| 985 |
msgstr ""
|
| 986 |
|
| 987 |
-
#: includes/admin/forums.php:
|
| 988 |
msgid "Forum created."
|
| 989 |
msgstr ""
|
| 990 |
|
| 991 |
-
#: includes/admin/forums.php:
|
| 992 |
msgid "Forum saved."
|
| 993 |
msgstr ""
|
| 994 |
|
| 995 |
-
#: includes/admin/forums.php:
|
| 996 |
msgid "Forum submitted."
|
| 997 |
msgstr ""
|
| 998 |
|
| 999 |
-
#: includes/admin/forums.php:
|
| 1000 |
-
#: includes/admin/forums.php:
|
| 1001 |
msgid "Preview forum"
|
| 1002 |
msgstr ""
|
| 1003 |
|
| 1004 |
-
#: includes/admin/forums.php:
|
| 1005 |
msgid "Forum scheduled for: %s."
|
| 1006 |
msgstr ""
|
| 1007 |
|
| 1008 |
-
#: includes/admin/forums.php:
|
| 1009 |
#: includes/admin/topics.php:1220
|
| 1010 |
#. translators: Publish box date format, see http:php.net/date
|
| 1011 |
msgid "M j, Y @ G:i"
|
| 1012 |
msgstr ""
|
| 1013 |
|
| 1014 |
-
#: includes/admin/forums.php:
|
| 1015 |
msgid "Forum draft updated."
|
| 1016 |
msgstr ""
|
| 1017 |
|
|
@@ -1055,7 +1056,7 @@ msgid_plural "Replies"
|
|
| 1055 |
msgstr[0] ""
|
| 1056 |
msgstr[1] ""
|
| 1057 |
|
| 1058 |
-
#: includes/admin/metaboxes.php:166 includes/admin/settings.php:
|
| 1059 |
#: includes/topics/template.php:3380
|
| 1060 |
msgid "Topic Tag"
|
| 1061 |
msgid_plural "Topic Tags"
|
|
@@ -1118,7 +1119,7 @@ msgstr ""
|
|
| 1118 |
msgid "Forum Parent"
|
| 1119 |
msgstr ""
|
| 1120 |
|
| 1121 |
-
#: includes/admin/metaboxes.php:369 includes/admin/settings.php:
|
| 1122 |
#: templates/default/bbpress/form-forum.php:144
|
| 1123 |
msgid "— No parent —"
|
| 1124 |
msgstr ""
|
|
@@ -1656,17 +1657,25 @@ msgstr ""
|
|
| 1656 |
msgid "Anonymous"
|
| 1657 |
msgstr ""
|
| 1658 |
|
| 1659 |
-
#: includes/admin/settings.php:168
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1660 |
msgid "Revisions"
|
| 1661 |
msgstr ""
|
| 1662 |
|
| 1663 |
-
#: includes/admin/settings.php:
|
| 1664 |
#: includes/admin/topics.php:450 includes/extend/buddypress/loader.php:247
|
| 1665 |
#: templates/default/bbpress/user-details.php:57
|
| 1666 |
msgid "Favorites"
|
| 1667 |
msgstr ""
|
| 1668 |
|
| 1669 |
-
#: includes/admin/settings.php:
|
| 1670 |
#: includes/admin/tools/common.php:455 includes/admin/topics.php:420
|
| 1671 |
#: includes/extend/buddypress/loader.php:234
|
| 1672 |
#: includes/extend/buddypress/loader.php:336
|
|
@@ -1674,602 +1683,602 @@ msgstr ""
|
|
| 1674 |
msgid "Engagements"
|
| 1675 |
msgstr ""
|
| 1676 |
|
| 1677 |
-
#: includes/admin/settings.php:
|
| 1678 |
msgid "Topic tags"
|
| 1679 |
msgstr ""
|
| 1680 |
|
| 1681 |
-
#: includes/admin/settings.php:
|
| 1682 |
-
|
| 1683 |
-
msgstr ""
|
| 1684 |
-
|
| 1685 |
-
#: includes/admin/settings.php:224 includes/admin/settings.php:399
|
| 1686 |
-
#: includes/common/template.php:2393 includes/search/template.php:175
|
| 1687 |
#: templates/default/bbpress/form-reply-search.php:20
|
| 1688 |
#: templates/default/bbpress/form-search.php:21
|
| 1689 |
#: templates/default/bbpress/form-topic-search.php:20
|
| 1690 |
msgid "Search"
|
| 1691 |
msgstr ""
|
| 1692 |
|
| 1693 |
-
#: includes/admin/settings.php:
|
| 1694 |
msgid "Post Formatting"
|
| 1695 |
msgstr ""
|
| 1696 |
|
| 1697 |
-
#: includes/admin/settings.php:
|
| 1698 |
-
msgid "
|
| 1699 |
-
msgstr ""
|
| 1700 |
-
|
| 1701 |
-
#: includes/admin/settings.php:248
|
| 1702 |
-
msgid "Reply Threading"
|
| 1703 |
msgstr ""
|
| 1704 |
|
| 1705 |
-
#: includes/admin/settings.php:
|
| 1706 |
msgid "Current Package"
|
| 1707 |
msgstr ""
|
| 1708 |
|
| 1709 |
-
#: includes/admin/settings.php:
|
| 1710 |
msgid "Forum Root"
|
| 1711 |
msgstr ""
|
| 1712 |
|
| 1713 |
-
#: includes/admin/settings.php:
|
| 1714 |
msgid "Forum Prefix"
|
| 1715 |
msgstr ""
|
| 1716 |
|
| 1717 |
-
#: includes/admin/settings.php:
|
| 1718 |
msgid "Forum root should show"
|
| 1719 |
msgstr ""
|
| 1720 |
|
| 1721 |
-
#: includes/admin/settings.php:
|
| 1722 |
msgid "Topic View"
|
| 1723 |
msgstr ""
|
| 1724 |
|
| 1725 |
-
#: includes/admin/settings.php:
|
| 1726 |
msgid "User Base"
|
| 1727 |
msgstr ""
|
| 1728 |
|
| 1729 |
-
#: includes/admin/settings.php:
|
| 1730 |
#: includes/extend/buddypress/loader.php:319
|
| 1731 |
#: templates/default/bbpress/user-details.php:36
|
| 1732 |
msgid "Topics Started"
|
| 1733 |
msgstr ""
|
| 1734 |
|
| 1735 |
-
#: includes/admin/settings.php:
|
| 1736 |
#: includes/extend/buddypress/loader.php:327
|
| 1737 |
#: templates/default/bbpress/user-details.php:42
|
| 1738 |
msgid "Replies Created"
|
| 1739 |
msgstr ""
|
| 1740 |
|
| 1741 |
-
#: includes/admin/settings.php:
|
| 1742 |
msgid "Favorite Topics"
|
| 1743 |
msgstr ""
|
| 1744 |
|
| 1745 |
-
#: includes/admin/settings.php:
|
| 1746 |
#: includes/extend/buddypress/functions.php:341
|
| 1747 |
msgid "Group Forums"
|
| 1748 |
msgstr ""
|
| 1749 |
|
| 1750 |
-
#: includes/admin/settings.php:
|
| 1751 |
msgid "Primary Forum"
|
| 1752 |
msgstr ""
|
| 1753 |
|
| 1754 |
-
#: includes/admin/settings.php:
|
| 1755 |
msgid "Use Akismet"
|
| 1756 |
msgstr ""
|
| 1757 |
|
| 1758 |
-
#: includes/admin/settings.php:
|
| 1759 |
msgid "Select Platform"
|
| 1760 |
msgstr ""
|
| 1761 |
|
| 1762 |
-
#: includes/admin/settings.php:
|
| 1763 |
msgid "Database Server"
|
| 1764 |
msgstr ""
|
| 1765 |
|
| 1766 |
-
#: includes/admin/settings.php:
|
| 1767 |
msgid "Database Port"
|
| 1768 |
msgstr ""
|
| 1769 |
|
| 1770 |
-
#: includes/admin/settings.php:
|
| 1771 |
msgid "Database Name"
|
| 1772 |
msgstr ""
|
| 1773 |
|
| 1774 |
-
#: includes/admin/settings.php:
|
| 1775 |
msgid "Database User"
|
| 1776 |
msgstr ""
|
| 1777 |
|
| 1778 |
-
#: includes/admin/settings.php:
|
| 1779 |
msgid "Database Password"
|
| 1780 |
msgstr ""
|
| 1781 |
|
| 1782 |
-
#: includes/admin/settings.php:
|
| 1783 |
msgid "Table Prefix"
|
| 1784 |
msgstr ""
|
| 1785 |
|
| 1786 |
-
#: includes/admin/settings.php:
|
| 1787 |
msgid "Rows Limit"
|
| 1788 |
msgstr ""
|
| 1789 |
|
| 1790 |
-
#: includes/admin/settings.php:
|
| 1791 |
msgid "Delay Time"
|
| 1792 |
msgstr ""
|
| 1793 |
|
| 1794 |
-
#: includes/admin/settings.php:
|
| 1795 |
msgid "Convert Users"
|
| 1796 |
msgstr ""
|
| 1797 |
|
| 1798 |
-
#: includes/admin/settings.php:
|
| 1799 |
msgid "Stop on Error"
|
| 1800 |
msgstr ""
|
| 1801 |
|
| 1802 |
-
#: includes/admin/settings.php:
|
| 1803 |
msgid "Start Over"
|
| 1804 |
msgstr ""
|
| 1805 |
|
| 1806 |
-
#: includes/admin/settings.php:
|
| 1807 |
msgid "Helper Data"
|
| 1808 |
msgstr ""
|
| 1809 |
|
| 1810 |
-
#: includes/admin/settings.php:
|
| 1811 |
msgid "Setting time limits and other user posting capabilities"
|
| 1812 |
msgstr ""
|
| 1813 |
|
| 1814 |
-
#: includes/admin/settings.php:
|
| 1815 |
msgid "Allow users to edit their content for %s minutes after posting"
|
| 1816 |
msgstr ""
|
| 1817 |
|
| 1818 |
-
#: includes/admin/settings.php:
|
| 1819 |
msgid "If checked, setting to \"0 minutes\" allows editing forever."
|
| 1820 |
msgstr ""
|
| 1821 |
|
| 1822 |
-
#: includes/admin/settings.php:
|
| 1823 |
msgid "Allow flood protection by throttling users for %s seconds after posting"
|
| 1824 |
msgstr ""
|
| 1825 |
|
| 1826 |
-
#: includes/admin/settings.php:
|
| 1827 |
msgid "Use this to discourage users from spamming your forums."
|
| 1828 |
msgstr ""
|
| 1829 |
|
| 1830 |
-
#: includes/admin/settings.php:
|
| 1831 |
msgid "Allow guest users without accounts to create topics and replies"
|
| 1832 |
msgstr ""
|
| 1833 |
|
| 1834 |
-
#: includes/admin/settings.php:
|
| 1835 |
msgid "Works best on intranets or paired with antispam measures like Akismet."
|
| 1836 |
msgstr ""
|
| 1837 |
|
| 1838 |
-
#: includes/admin/settings.php:
|
| 1839 |
msgid "Automatically give registered visitors the %s forum role"
|
| 1840 |
msgstr ""
|
| 1841 |
|
| 1842 |
-
#: includes/admin/settings.php:
|
| 1843 |
msgid "Uncheck this to manually assign all user access to your forums."
|
| 1844 |
msgstr ""
|
| 1845 |
|
| 1846 |
-
#: includes/admin/settings.php:
|
| 1847 |
msgid "Forum features that can be toggled on and off"
|
| 1848 |
msgstr ""
|
| 1849 |
|
| 1850 |
-
#: includes/admin/settings.php:
|
| 1851 |
msgid "Allow users to mark topics as favorites"
|
| 1852 |
msgstr ""
|
| 1853 |
|
| 1854 |
-
#: includes/admin/settings.php:
|
| 1855 |
msgid "Allow users to subscribe to forums and topics"
|
| 1856 |
msgstr ""
|
| 1857 |
|
| 1858 |
-
#: includes/admin/settings.php:
|
| 1859 |
msgid "Allow tracking of topics each user engages in"
|
| 1860 |
msgstr ""
|
| 1861 |
|
| 1862 |
-
#: includes/admin/settings.php:
|
| 1863 |
msgid "Allow topics to have tags"
|
| 1864 |
msgstr ""
|
| 1865 |
|
| 1866 |
-
#: includes/admin/settings.php:
|
| 1867 |
msgid "Allow forums to have dedicated moderators"
|
| 1868 |
msgstr ""
|
| 1869 |
|
| 1870 |
-
#: includes/admin/settings.php:
|
| 1871 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1872 |
msgstr ""
|
| 1873 |
|
| 1874 |
-
#: includes/admin/settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1875 |
msgid "Allow forum wide search"
|
| 1876 |
msgstr ""
|
| 1877 |
|
| 1878 |
-
#: includes/admin/settings.php:
|
| 1879 |
msgid "Enable threaded (nested) replies %s levels deep"
|
| 1880 |
msgstr ""
|
| 1881 |
|
| 1882 |
-
#: includes/admin/settings.php:
|
| 1883 |
msgid "Allow topic and reply revision logging"
|
| 1884 |
msgstr ""
|
| 1885 |
|
| 1886 |
-
#: includes/admin/settings.php:
|
| 1887 |
msgid "Add toolbar & buttons to textareas to help with HTML formatting"
|
| 1888 |
msgstr ""
|
| 1889 |
|
| 1890 |
-
#: includes/admin/settings.php:
|
| 1891 |
msgid "How your forum content is displayed within your existing theme."
|
| 1892 |
msgstr ""
|
| 1893 |
|
| 1894 |
-
#: includes/admin/settings.php:
|
| 1895 |
msgid "will serve all bbPress templates"
|
| 1896 |
msgstr ""
|
| 1897 |
|
| 1898 |
-
#: includes/admin/settings.php:
|
| 1899 |
msgid "No template packages available."
|
| 1900 |
msgstr ""
|
| 1901 |
|
| 1902 |
-
#: includes/admin/settings.php:
|
| 1903 |
msgid ""
|
| 1904 |
"Embed media (YouTube, Twitter, Flickr, etc...) directly into topics and "
|
| 1905 |
"replies"
|
| 1906 |
msgstr ""
|
| 1907 |
|
| 1908 |
-
#: includes/admin/settings.php:
|
| 1909 |
msgid "How many topics and replies to show per page"
|
| 1910 |
msgstr ""
|
| 1911 |
|
| 1912 |
-
#: includes/admin/settings.php:
|
| 1913 |
-
#: includes/admin/settings.php:
|
| 1914 |
msgid "per page"
|
| 1915 |
msgstr ""
|
| 1916 |
|
| 1917 |
-
#: includes/admin/settings.php:
|
| 1918 |
msgid "How many topics and replies to show per RSS page"
|
| 1919 |
msgstr ""
|
| 1920 |
|
| 1921 |
-
#: includes/admin/settings.php:
|
| 1922 |
msgid ""
|
| 1923 |
"Customize your Forums root. Partner with a WordPress Page and use "
|
| 1924 |
"Shortcodes for more flexibility."
|
| 1925 |
msgstr ""
|
| 1926 |
|
| 1927 |
-
#: includes/admin/settings.php:
|
| 1928 |
msgid "Prefix all forum content with the Forum Root slug (Recommended)"
|
| 1929 |
msgstr ""
|
| 1930 |
|
| 1931 |
-
#: includes/admin/settings.php:
|
| 1932 |
msgid "Forum Index"
|
| 1933 |
msgstr ""
|
| 1934 |
|
| 1935 |
-
#: includes/admin/settings.php:
|
| 1936 |
msgid "Topics by Last Post"
|
| 1937 |
msgstr ""
|
| 1938 |
|
| 1939 |
-
#: includes/admin/settings.php:
|
| 1940 |
msgid "This setting will be ignored because %s was found in your theme."
|
| 1941 |
msgstr ""
|
| 1942 |
|
| 1943 |
-
#: includes/admin/settings.php:
|
| 1944 |
msgid "Customize your user profile slugs."
|
| 1945 |
msgstr ""
|
| 1946 |
|
| 1947 |
-
#: includes/admin/settings.php:
|
| 1948 |
msgid ""
|
| 1949 |
"Custom slugs for single forums, topics, replies, tags, views, edit, and "
|
| 1950 |
"search."
|
| 1951 |
msgstr ""
|
| 1952 |
|
| 1953 |
-
#: includes/admin/settings.php:
|
| 1954 |
msgid "Forum settings for BuddyPress"
|
| 1955 |
msgstr ""
|
| 1956 |
|
| 1957 |
-
#: includes/admin/settings.php:
|
| 1958 |
msgid "Allow BuddyPress Groups to have their own forums"
|
| 1959 |
msgstr ""
|
| 1960 |
|
| 1961 |
-
#: includes/admin/settings.php:
|
| 1962 |
msgid "create a new one"
|
| 1963 |
msgstr ""
|
| 1964 |
|
| 1965 |
-
#: includes/admin/settings.php:
|
| 1966 |
msgid "Use %s to contain your group forums, or %s"
|
| 1967 |
msgstr ""
|
| 1968 |
|
| 1969 |
-
#: includes/admin/settings.php:
|
| 1970 |
msgid "Use %s to contain your group forums"
|
| 1971 |
msgstr ""
|
| 1972 |
|
| 1973 |
-
#: includes/admin/settings.php:
|
| 1974 |
msgid "Changing this will not move existing forums."
|
| 1975 |
msgstr ""
|
| 1976 |
|
| 1977 |
-
#: includes/admin/settings.php:
|
| 1978 |
msgid "Forum settings for Akismet"
|
| 1979 |
msgstr ""
|
| 1980 |
|
| 1981 |
-
#: includes/admin/settings.php:
|
| 1982 |
msgid "Allow Akismet to actively prevent forum spam."
|
| 1983 |
msgstr ""
|
| 1984 |
|
| 1985 |
-
#: includes/admin/settings.php:
|
| 1986 |
msgid "Forums Settings"
|
| 1987 |
msgstr ""
|
| 1988 |
|
| 1989 |
-
#: includes/admin/settings.php:
|
| 1990 |
#: templates/default/bbpress/form-user-edit.php:161
|
| 1991 |
msgid "Save Changes"
|
| 1992 |
msgstr ""
|
| 1993 |
|
| 1994 |
-
#: includes/admin/settings.php:
|
| 1995 |
msgid ""
|
| 1996 |
"Information about the database for your previous forums so they can be "
|
| 1997 |
"converted."
|
| 1998 |
msgstr ""
|
| 1999 |
|
| 2000 |
-
#: includes/admin/settings.php:
|
| 2001 |
msgid "The previous forum software"
|
| 2002 |
msgstr ""
|
| 2003 |
|
| 2004 |
-
#: includes/admin/settings.php:
|
| 2005 |
msgid "Use default %s if same server, or IP or hostname"
|
| 2006 |
msgstr ""
|
| 2007 |
|
| 2008 |
-
#: includes/admin/settings.php:
|
| 2009 |
msgid "Use default %s if unsure"
|
| 2010 |
msgstr ""
|
| 2011 |
|
| 2012 |
-
#: includes/admin/settings.php:
|
| 2013 |
msgid "User to access the database"
|
| 2014 |
msgstr ""
|
| 2015 |
|
| 2016 |
-
#: includes/admin/settings.php:
|
| 2017 |
msgid "Toggle"
|
| 2018 |
msgstr ""
|
| 2019 |
|
| 2020 |
-
#: includes/admin/settings.php:
|
| 2021 |
msgid "Password for the above database user"
|
| 2022 |
msgstr ""
|
| 2023 |
|
| 2024 |
-
#: includes/admin/settings.php:
|
| 2025 |
msgid "Name of the database with your old forum data"
|
| 2026 |
msgstr ""
|
| 2027 |
|
| 2028 |
-
#: includes/admin/settings.php:
|
| 2029 |
msgid "Some optional parameters to help tune the conversion process."
|
| 2030 |
msgstr ""
|
| 2031 |
|
| 2032 |
-
#: includes/admin/settings.php:
|
| 2033 |
msgid "Use %s if converting from BuddyPress Legacy"
|
| 2034 |
msgstr ""
|
| 2035 |
|
| 2036 |
-
#: includes/admin/settings.php:
|
| 2037 |
msgid "entry maximum when querying for data to convert"
|
| 2038 |
msgstr ""
|
| 2039 |
|
| 2040 |
-
#: includes/admin/settings.php:
|
| 2041 |
msgid "Keep this low if you experience out-of-memory issues."
|
| 2042 |
msgstr ""
|
| 2043 |
|
| 2044 |
-
#: includes/admin/settings.php:
|
| 2045 |
msgid "second delay between each query of rows above"
|
| 2046 |
msgstr ""
|
| 2047 |
|
| 2048 |
-
#: includes/admin/settings.php:
|
| 2049 |
msgid "Keep this high to prevent too-many-connection issues."
|
| 2050 |
msgstr ""
|
| 2051 |
|
| 2052 |
-
#: includes/admin/settings.php:
|
| 2053 |
msgid "Halt the conversion if an error occurs"
|
| 2054 |
msgstr ""
|
| 2055 |
|
| 2056 |
-
#: includes/admin/settings.php:
|
| 2057 |
msgid "This is helpful if you want to debug problems."
|
| 2058 |
msgstr ""
|
| 2059 |
|
| 2060 |
-
#: includes/admin/settings.php:
|
| 2061 |
msgid "Restart the converter from the beginning"
|
| 2062 |
msgstr ""
|
| 2063 |
|
| 2064 |
-
#: includes/admin/settings.php:
|
| 2065 |
msgid ""
|
| 2066 |
"This forces all steps back to 0. Avoid duplicate data by purging or "
|
| 2067 |
"resetting first."
|
| 2068 |
msgstr ""
|
| 2069 |
|
| 2070 |
-
#: includes/admin/settings.php:
|
| 2071 |
msgid "Purge all meta-data from a previous import"
|
| 2072 |
msgstr ""
|
| 2073 |
|
| 2074 |
-
#: includes/admin/settings.php:
|
| 2075 |
msgid ""
|
| 2076 |
"Use this if an import failed, or you just want to remove the relationship "
|
| 2077 |
"data."
|
| 2078 |
msgstr ""
|
| 2079 |
|
| 2080 |
-
#: includes/admin/settings.php:
|
| 2081 |
msgid "Import user accounts from previous forums"
|
| 2082 |
msgstr ""
|
| 2083 |
|
| 2084 |
-
#: includes/admin/settings.php:
|
| 2085 |
msgid "Passwords remain encrypted, and are converted as individual users log in."
|
| 2086 |
msgstr ""
|
| 2087 |
|
| 2088 |
-
#: includes/admin/settings.php:
|
| 2089 |
msgid "Up next: step %s"
|
| 2090 |
msgstr ""
|
| 2091 |
|
| 2092 |
-
#: includes/admin/settings.php:
|
| 2093 |
msgid "Ready"
|
| 2094 |
msgstr ""
|
| 2095 |
|
| 2096 |
-
#: includes/admin/settings.php:
|
| 2097 |
msgid "Resume"
|
| 2098 |
msgstr ""
|
| 2099 |
|
| 2100 |
-
#: includes/admin/settings.php:
|
| 2101 |
-
msgid "Previously stopped at step %d of %d"
|
| 2102 |
msgstr ""
|
| 2103 |
|
| 2104 |
-
#: includes/admin/settings.php:
|
| 2105 |
msgid "Ready to go."
|
| 2106 |
msgstr ""
|
| 2107 |
|
| 2108 |
-
#: includes/admin/settings.php:
|
| 2109 |
#: includes/admin/tools/reset.php:23 includes/admin/tools/upgrade.php:40
|
| 2110 |
msgid "Forum Tools"
|
| 2111 |
msgstr ""
|
| 2112 |
|
| 2113 |
-
#: includes/admin/settings.php:
|
| 2114 |
msgid "Toggle panel: Import Status"
|
| 2115 |
msgstr ""
|
| 2116 |
|
| 2117 |
-
#: includes/admin/settings.php:
|
| 2118 |
msgid "Import Monitor"
|
| 2119 |
msgstr ""
|
| 2120 |
|
| 2121 |
-
#: includes/admin/settings.php:
|
| 2122 |
msgid "Pause"
|
| 2123 |
msgstr ""
|
| 2124 |
|
| 2125 |
-
#: includes/admin/settings.php:
|
| 2126 |
msgid "This screen provides access to all of the Forums settings."
|
| 2127 |
msgstr ""
|
| 2128 |
|
| 2129 |
-
#: includes/admin/settings.php:
|
| 2130 |
msgid ""
|
| 2131 |
"Please see the additional help tabs for more information on each individual "
|
| 2132 |
"section."
|
| 2133 |
msgstr ""
|
| 2134 |
|
| 2135 |
-
#: includes/admin/settings.php:
|
| 2136 |
msgid "Main Settings"
|
| 2137 |
msgstr ""
|
| 2138 |
|
| 2139 |
-
#: includes/admin/settings.php:
|
| 2140 |
msgid "The \"Main Settings\" section includes a number of options:"
|
| 2141 |
msgstr ""
|
| 2142 |
|
| 2143 |
-
#: includes/admin/settings.php:
|
| 2144 |
msgid ""
|
| 2145 |
"You can choose to lock a post after a certain number of minutes. \"Locking "
|
| 2146 |
"post editing\" will prevent the author from editing some amount of time "
|
| 2147 |
"after saving a post."
|
| 2148 |
msgstr ""
|
| 2149 |
|
| 2150 |
-
#: includes/admin/settings.php:
|
| 2151 |
msgid ""
|
| 2152 |
"\"Throttle time\" is the amount of time required between posts from a "
|
| 2153 |
"single author. The higher the throttle time, the longer a user will need to "
|
| 2154 |
"wait between posting to the forum."
|
| 2155 |
msgstr ""
|
| 2156 |
|
| 2157 |
-
#: includes/admin/settings.php:
|
| 2158 |
msgid ""
|
| 2159 |
"Favorites are a way for users to save and later return to topics they "
|
| 2160 |
"favor. This is enabled by default."
|
| 2161 |
msgstr ""
|
| 2162 |
|
| 2163 |
-
#: includes/admin/settings.php:
|
| 2164 |
msgid ""
|
| 2165 |
"Subscriptions allow users to subscribe for notifications to topics that "
|
| 2166 |
"interest them. This is enabled by default."
|
| 2167 |
msgstr ""
|
| 2168 |
|
| 2169 |
-
#: includes/admin/settings.php:
|
| 2170 |
msgid ""
|
| 2171 |
"Topic-Tags allow users to filter topics between forums. This is enabled by "
|
| 2172 |
"default."
|
| 2173 |
msgstr ""
|
| 2174 |
|
| 2175 |
-
#: includes/admin/settings.php:
|
| 2176 |
msgid ""
|
| 2177 |
"\"Anonymous Posting\" allows guest users who do not have accounts on your "
|
| 2178 |
"site to both create topics as well as replies."
|
| 2179 |
msgstr ""
|
| 2180 |
|
| 2181 |
-
#: includes/admin/settings.php:
|
| 2182 |
msgid ""
|
| 2183 |
"The Fancy Editor brings the luxury of the Visual editor and HTML editor "
|
| 2184 |
"from the traditional WordPress dashboard into your theme."
|
| 2185 |
msgstr ""
|
| 2186 |
|
| 2187 |
-
#: includes/admin/settings.php:
|
| 2188 |
msgid ""
|
| 2189 |
"Auto-embed will embed the media content from a URL directly into the "
|
| 2190 |
"replies. For example: links to Flickr and YouTube."
|
| 2191 |
msgstr ""
|
| 2192 |
|
| 2193 |
-
#: includes/admin/settings.php:
|
| 2194 |
msgid ""
|
| 2195 |
"You must click the Save Changes button at the bottom of the screen for new "
|
| 2196 |
"settings to take effect."
|
| 2197 |
msgstr ""
|
| 2198 |
|
| 2199 |
-
#: includes/admin/settings.php:
|
| 2200 |
msgid "Theme Packages"
|
| 2201 |
msgstr ""
|
| 2202 |
|
| 2203 |
-
#: includes/admin/settings.php:
|
| 2204 |
msgid ""
|
| 2205 |
"The \"Theme Packages\" section allows you to choose which theme package "
|
| 2206 |
"should be used."
|
| 2207 |
msgstr ""
|
| 2208 |
|
| 2209 |
-
#: includes/admin/settings.php:
|
| 2210 |
msgid "The \"bbPress Default\" package is installed by default."
|
| 2211 |
msgstr ""
|
| 2212 |
|
| 2213 |
-
#: includes/admin/settings.php:
|
| 2214 |
msgid "Some themes may choose to ignore this setting entirely."
|
| 2215 |
msgstr ""
|
| 2216 |
|
| 2217 |
-
#: includes/admin/settings.php:
|
| 2218 |
msgid "Packages can be stacked to allow for intelligent fallbacks."
|
| 2219 |
msgstr ""
|
| 2220 |
|
| 2221 |
-
#: includes/admin/settings.php:
|
| 2222 |
msgid "Per Page"
|
| 2223 |
msgstr ""
|
| 2224 |
|
| 2225 |
-
#: includes/admin/settings.php:
|
| 2226 |
msgid ""
|
| 2227 |
"The \"Per Page\" section allows you to control the number of topics and "
|
| 2228 |
"replies appear on each page."
|
| 2229 |
msgstr ""
|
| 2230 |
|
| 2231 |
-
#: includes/admin/settings.php:
|
| 2232 |
msgid ""
|
| 2233 |
"This is comparable to the WordPress \"Reading Settings\" page, where you "
|
| 2234 |
"can set the number of posts that should show on blog pages and in feeds."
|
| 2235 |
msgstr ""
|
| 2236 |
|
| 2237 |
-
#: includes/admin/settings.php:
|
| 2238 |
msgid ""
|
| 2239 |
"These are broken up into two separate groups: one for what appears in your "
|
| 2240 |
"theme, another for RSS feeds."
|
| 2241 |
msgstr ""
|
| 2242 |
|
| 2243 |
-
#: includes/admin/settings.php:
|
| 2244 |
msgid "Slugs"
|
| 2245 |
msgstr ""
|
| 2246 |
|
| 2247 |
-
#: includes/admin/settings.php:
|
| 2248 |
msgid ""
|
| 2249 |
"The \"Slugs\" section allows you to control the permalink structure for "
|
| 2250 |
"your forums."
|
| 2251 |
msgstr ""
|
| 2252 |
|
| 2253 |
-
#: includes/admin/settings.php:
|
| 2254 |
msgid ""
|
| 2255 |
"\"Archive Slugs\" are used as the \"root\" for your forums and topics. If "
|
| 2256 |
"you combine these values with existing page slugs, bbPress will attempt to "
|
| 2257 |
"output the most correct title and content."
|
| 2258 |
msgstr ""
|
| 2259 |
|
| 2260 |
-
#: includes/admin/settings.php:
|
| 2261 |
msgid ""
|
| 2262 |
"\"Single Slugs\" are used as a prefix when viewing an individual forum, "
|
| 2263 |
"topic, reply, user, or view."
|
| 2264 |
msgstr ""
|
| 2265 |
|
| 2266 |
-
#: includes/admin/settings.php:
|
| 2267 |
msgid ""
|
| 2268 |
"In the event of a slug collision with WordPress or BuddyPress, a warning "
|
| 2269 |
"will appear next to the problem slug(s)."
|
| 2270 |
msgstr ""
|
| 2271 |
|
| 2272 |
-
#: includes/admin/settings.php:
|
| 2273 |
#: templates/default/bbpress/loop-forums.php:24
|
| 2274 |
#: templates/default/bbpress/loop-replies.php:21
|
| 2275 |
#: templates/default/bbpress/loop-replies.php:47
|
|
@@ -2277,67 +2286,67 @@ msgstr ""
|
|
| 2277 |
msgid "Posts"
|
| 2278 |
msgstr ""
|
| 2279 |
|
| 2280 |
-
#: includes/admin/settings.php:
|
| 2281 |
msgid "Pages"
|
| 2282 |
msgstr ""
|
| 2283 |
|
| 2284 |
-
#: includes/admin/settings.php:
|
| 2285 |
msgid "Attachments"
|
| 2286 |
msgstr ""
|
| 2287 |
|
| 2288 |
-
#: includes/admin/settings.php:
|
| 2289 |
msgid "Menus"
|
| 2290 |
msgstr ""
|
| 2291 |
|
| 2292 |
-
#: includes/admin/settings.php:
|
| 2293 |
msgid "Tag base"
|
| 2294 |
msgstr ""
|
| 2295 |
|
| 2296 |
-
#: includes/admin/settings.php:
|
| 2297 |
msgid "Category base"
|
| 2298 |
msgstr ""
|
| 2299 |
|
| 2300 |
-
#: includes/admin/settings.php:
|
| 2301 |
msgid "Forums base"
|
| 2302 |
msgstr ""
|
| 2303 |
|
| 2304 |
-
#: includes/admin/settings.php:
|
| 2305 |
msgid "Topics base"
|
| 2306 |
msgstr ""
|
| 2307 |
|
| 2308 |
-
#: includes/admin/settings.php:
|
| 2309 |
msgid "Forum slug"
|
| 2310 |
msgstr ""
|
| 2311 |
|
| 2312 |
-
#: includes/admin/settings.php:
|
| 2313 |
msgid "Topic slug"
|
| 2314 |
msgstr ""
|
| 2315 |
|
| 2316 |
-
#: includes/admin/settings.php:
|
| 2317 |
msgid "Reply slug"
|
| 2318 |
msgstr ""
|
| 2319 |
|
| 2320 |
-
#: includes/admin/settings.php:
|
| 2321 |
msgid "Edit slug"
|
| 2322 |
msgstr ""
|
| 2323 |
|
| 2324 |
-
#: includes/admin/settings.php:
|
| 2325 |
msgid "User base"
|
| 2326 |
msgstr ""
|
| 2327 |
|
| 2328 |
-
#: includes/admin/settings.php:
|
| 2329 |
msgid "View base"
|
| 2330 |
msgstr ""
|
| 2331 |
|
| 2332 |
-
#: includes/admin/settings.php:
|
| 2333 |
msgid "Topic tag slug"
|
| 2334 |
msgstr ""
|
| 2335 |
|
| 2336 |
-
#: includes/admin/settings.php:
|
| 2337 |
msgid "%s page"
|
| 2338 |
msgstr ""
|
| 2339 |
|
| 2340 |
-
#: includes/admin/settings.php:
|
| 2341 |
msgid "Possible %1$s conflict: %2$s"
|
| 2342 |
msgstr ""
|
| 2343 |
|
|
@@ -3584,7 +3593,7 @@ msgid "Topic draft updated."
|
|
| 3584 |
msgstr ""
|
| 3585 |
|
| 3586 |
#: includes/admin/users.php:98 includes/admin/users.php:282
|
| 3587 |
-
#: includes/users/signups.php:
|
| 3588 |
#: templates/default/bbpress/form-user-roles.php:23
|
| 3589 |
msgid "Forum Role"
|
| 3590 |
msgstr ""
|
|
@@ -3606,59 +3615,55 @@ msgstr ""
|
|
| 3606 |
msgid "Site Role"
|
| 3607 |
msgstr ""
|
| 3608 |
|
| 3609 |
-
#: includes/common/
|
| 3610 |
-
msgid "%1$s - %2$s"
|
| 3611 |
-
msgstr ""
|
| 3612 |
-
|
| 3613 |
-
#: includes/common/formatting.php:627
|
| 3614 |
msgid "sometime"
|
| 3615 |
msgstr ""
|
| 3616 |
|
| 3617 |
-
#: includes/common/formatting.php:
|
| 3618 |
msgid "right now"
|
| 3619 |
msgstr ""
|
| 3620 |
|
| 3621 |
-
#: includes/common/formatting.php:
|
| 3622 |
msgid "%s ago"
|
| 3623 |
msgstr ""
|
| 3624 |
|
| 3625 |
-
#: includes/common/formatting.php:
|
| 3626 |
msgid "%s year"
|
| 3627 |
msgid_plural "%s years"
|
| 3628 |
msgstr[0] ""
|
| 3629 |
msgstr[1] ""
|
| 3630 |
|
| 3631 |
-
#: includes/common/formatting.php:
|
| 3632 |
msgid "%s month"
|
| 3633 |
msgid_plural "%s months"
|
| 3634 |
msgstr[0] ""
|
| 3635 |
msgstr[1] ""
|
| 3636 |
|
| 3637 |
-
#: includes/common/formatting.php:
|
| 3638 |
msgid "%s week"
|
| 3639 |
msgid_plural "%s weeks"
|
| 3640 |
msgstr[0] ""
|
| 3641 |
msgstr[1] ""
|
| 3642 |
|
| 3643 |
-
#: includes/common/formatting.php:
|
| 3644 |
msgid "%s day"
|
| 3645 |
msgid_plural "%s days"
|
| 3646 |
msgstr[0] ""
|
| 3647 |
msgstr[1] ""
|
| 3648 |
|
| 3649 |
-
#: includes/common/formatting.php:
|
| 3650 |
msgid "%s hour"
|
| 3651 |
msgid_plural "%s hours"
|
| 3652 |
msgstr[0] ""
|
| 3653 |
msgstr[1] ""
|
| 3654 |
|
| 3655 |
-
#: includes/common/formatting.php:
|
| 3656 |
msgid "%s minute"
|
| 3657 |
msgid_plural "%s minutes"
|
| 3658 |
msgstr[0] ""
|
| 3659 |
msgstr[1] ""
|
| 3660 |
|
| 3661 |
-
#: includes/common/formatting.php:
|
| 3662 |
msgid "%s second"
|
| 3663 |
msgid_plural "%s seconds"
|
| 3664 |
msgstr[0] ""
|
|
@@ -3718,127 +3723,133 @@ msgid ""
|
|
| 3718 |
"Login and visit the topic to unsubscribe from these emails."
|
| 3719 |
msgstr ""
|
| 3720 |
|
| 3721 |
-
#: includes/common/template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3722 |
msgid "No topics available"
|
| 3723 |
msgstr ""
|
| 3724 |
|
| 3725 |
-
#: includes/common/template.php:
|
| 3726 |
msgid "No forums available"
|
| 3727 |
msgstr ""
|
| 3728 |
|
| 3729 |
-
#: includes/common/template.php:
|
| 3730 |
msgid "None available"
|
| 3731 |
msgstr ""
|
| 3732 |
|
| 3733 |
-
#: includes/common/template.php:
|
| 3734 |
msgid "Home"
|
| 3735 |
msgstr ""
|
| 3736 |
|
| 3737 |
-
#: includes/common/template.php:
|
| 3738 |
msgid "(Edit)"
|
| 3739 |
msgstr ""
|
| 3740 |
|
| 3741 |
-
#: includes/common/template.php:
|
| 3742 |
-
#: includes/common/template.php:
|
| 3743 |
#: templates/default/extras/taxonomy-topic-tag-edit.php:17
|
| 3744 |
#: templates/default/extras/taxonomy-topic-tag.php:17
|
| 3745 |
msgid "Topic Tag: %s"
|
| 3746 |
msgstr ""
|
| 3747 |
|
| 3748 |
-
#: includes/common/template.php:
|
| 3749 |
msgid "‹"
|
| 3750 |
msgstr ""
|
| 3751 |
|
| 3752 |
-
#: includes/common/template.php:
|
| 3753 |
msgid "›"
|
| 3754 |
msgstr ""
|
| 3755 |
|
| 3756 |
-
#: includes/common/template.php:
|
| 3757 |
msgid "Log Out"
|
| 3758 |
msgstr ""
|
| 3759 |
|
| 3760 |
-
#: includes/common/template.php:
|
| 3761 |
msgid "Forum Edit: %s"
|
| 3762 |
msgstr ""
|
| 3763 |
|
| 3764 |
-
#: includes/common/template.php:
|
| 3765 |
msgid "Topic Edit: %s"
|
| 3766 |
msgstr ""
|
| 3767 |
|
| 3768 |
-
#: includes/common/template.php:
|
| 3769 |
msgid "Reply Edit: %s"
|
| 3770 |
msgstr ""
|
| 3771 |
|
| 3772 |
-
#: includes/common/template.php:
|
| 3773 |
msgid "Topic Tag Edit: %s"
|
| 3774 |
msgstr ""
|
| 3775 |
|
| 3776 |
-
#: includes/common/template.php:
|
| 3777 |
msgid "Forum: %s"
|
| 3778 |
msgstr ""
|
| 3779 |
|
| 3780 |
-
#: includes/common/template.php:
|
| 3781 |
msgid "Topic: %s"
|
| 3782 |
msgstr ""
|
| 3783 |
|
| 3784 |
-
#: includes/common/template.php:
|
| 3785 |
msgid "Your Topics"
|
| 3786 |
msgstr ""
|
| 3787 |
|
| 3788 |
-
#: includes/common/template.php:
|
| 3789 |
#. translators: user's display name
|
| 3790 |
msgid "%s's Topics"
|
| 3791 |
msgstr ""
|
| 3792 |
|
| 3793 |
-
#: includes/common/template.php:
|
| 3794 |
msgid "Your Replies"
|
| 3795 |
msgstr ""
|
| 3796 |
|
| 3797 |
-
#: includes/common/template.php:
|
| 3798 |
#. translators: user's display name
|
| 3799 |
msgid "%s's Replies"
|
| 3800 |
msgstr ""
|
| 3801 |
|
| 3802 |
-
#: includes/common/template.php:
|
| 3803 |
msgid "Your Favorites"
|
| 3804 |
msgstr ""
|
| 3805 |
|
| 3806 |
-
#: includes/common/template.php:
|
| 3807 |
#: templates/default/bbpress/user-details.php:57
|
| 3808 |
#. translators: user's display name
|
| 3809 |
msgid "%s's Favorites"
|
| 3810 |
msgstr ""
|
| 3811 |
|
| 3812 |
-
#: includes/common/template.php:
|
| 3813 |
msgid "Your Subscriptions"
|
| 3814 |
msgstr ""
|
| 3815 |
|
| 3816 |
-
#: includes/common/template.php:
|
| 3817 |
#: templates/default/bbpress/user-details.php:67
|
| 3818 |
#. translators: user's display name
|
| 3819 |
msgid "%s's Subscriptions"
|
| 3820 |
msgstr ""
|
| 3821 |
|
| 3822 |
-
#: includes/common/template.php:
|
| 3823 |
msgid "Your Profile"
|
| 3824 |
msgstr ""
|
| 3825 |
|
| 3826 |
-
#: includes/common/template.php:
|
| 3827 |
#: templates/default/bbpress/user-details.php:30
|
| 3828 |
#. translators: user's display name
|
| 3829 |
msgid "%s's Profile"
|
| 3830 |
msgstr ""
|
| 3831 |
|
| 3832 |
-
#: includes/common/template.php:
|
| 3833 |
msgid "Edit Your Profile"
|
| 3834 |
msgstr ""
|
| 3835 |
|
| 3836 |
-
#: includes/common/template.php:
|
| 3837 |
#: templates/default/bbpress/user-details.php:74
|
| 3838 |
msgid "Edit %s's Profile"
|
| 3839 |
msgstr ""
|
| 3840 |
|
| 3841 |
-
#: includes/common/template.php:
|
| 3842 |
msgid "View: %s"
|
| 3843 |
msgstr ""
|
| 3844 |
|
|
@@ -4814,13 +4825,13 @@ msgstr[1] ""
|
|
| 4814 |
msgid "Search Results for '%s'"
|
| 4815 |
msgstr ""
|
| 4816 |
|
| 4817 |
-
#: includes/search/template.php:
|
| 4818 |
msgid "Viewing %1$s result"
|
| 4819 |
msgid_plural "Viewing %1$s results"
|
| 4820 |
msgstr[0] ""
|
| 4821 |
msgstr[1] ""
|
| 4822 |
|
| 4823 |
-
#: includes/search/template.php:
|
| 4824 |
msgid "Viewing %2$s results (of %4$s total)"
|
| 4825 |
msgid_plural "Viewing %1$s results - %2$s through %3$s (of %4$s total)"
|
| 4826 |
msgstr[0] ""
|
|
@@ -5337,6 +5348,14 @@ msgstr ""
|
|
| 5337 |
msgid "[%s] New Email Address"
|
| 5338 |
msgstr ""
|
| 5339 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5340 |
#: includes/users/template.php:677
|
| 5341 |
msgid "Guest"
|
| 5342 |
msgstr ""
|
|
@@ -6114,60 +6133,60 @@ msgstr ""
|
|
| 6114 |
msgid "The bbPress Contributors"
|
| 6115 |
msgstr ""
|
| 6116 |
|
| 6117 |
-
#: bbpress.php:
|
| 6118 |
msgctxt "post"
|
| 6119 |
msgid "Closed"
|
| 6120 |
msgstr ""
|
| 6121 |
|
| 6122 |
-
#: bbpress.php:
|
| 6123 |
msgctxt "post"
|
| 6124 |
msgid "Closed <span class=\"count\">(%s)</span>"
|
| 6125 |
msgid_plural "Closed <span class=\"count\">(%s)</span>"
|
| 6126 |
msgstr[0] ""
|
| 6127 |
msgstr[1] ""
|
| 6128 |
|
| 6129 |
-
#: bbpress.php:
|
| 6130 |
msgctxt "post"
|
| 6131 |
msgid "Spam"
|
| 6132 |
msgstr ""
|
| 6133 |
|
| 6134 |
-
#: bbpress.php:
|
| 6135 |
msgctxt "post"
|
| 6136 |
msgid "Spam <span class=\"count\">(%s)</span>"
|
| 6137 |
msgid_plural "Spam <span class=\"count\">(%s)</span>"
|
| 6138 |
msgstr[0] ""
|
| 6139 |
msgstr[1] ""
|
| 6140 |
|
| 6141 |
-
#: bbpress.php:
|
| 6142 |
msgctxt "post"
|
| 6143 |
msgid "Orphan"
|
| 6144 |
msgstr ""
|
| 6145 |
|
| 6146 |
-
#: bbpress.php:
|
| 6147 |
msgctxt "post"
|
| 6148 |
msgid "Orphan <span class=\"count\">(%s)</span>"
|
| 6149 |
msgid_plural "Orphans <span class=\"count\">(%s)</span>"
|
| 6150 |
msgstr[0] ""
|
| 6151 |
msgstr[1] ""
|
| 6152 |
|
| 6153 |
-
#: bbpress.php:
|
| 6154 |
msgctxt "post"
|
| 6155 |
msgid "Hidden"
|
| 6156 |
msgstr ""
|
| 6157 |
|
| 6158 |
-
#: bbpress.php:
|
| 6159 |
msgctxt "post"
|
| 6160 |
msgid "Hidden <span class=\"count\">(%s)</span>"
|
| 6161 |
msgid_plural "Hidden <span class=\"count\">(%s)</span>"
|
| 6162 |
msgstr[0] ""
|
| 6163 |
msgstr[1] ""
|
| 6164 |
|
| 6165 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 6166 |
msgctxt "admin color scheme"
|
| 6167 |
msgid "Mint"
|
| 6168 |
msgstr ""
|
| 6169 |
|
| 6170 |
-
#: includes/admin/classes/class-bbp-admin.php:
|
| 6171 |
msgctxt "admin color scheme"
|
| 6172 |
msgid "Evergreen"
|
| 6173 |
msgstr ""
|
|
@@ -6192,7 +6211,7 @@ msgctxt "Approve reply"
|
|
| 6192 |
msgid "Approve"
|
| 6193 |
msgstr ""
|
| 6194 |
|
| 6195 |
-
#: includes/admin/settings.php:
|
| 6196 |
msgctxt "noun"
|
| 6197 |
msgid "Reply"
|
| 6198 |
msgstr ""
|
|
@@ -6217,7 +6236,7 @@ msgctxt "Open a Topic"
|
|
| 6217 |
msgid "Open"
|
| 6218 |
msgstr ""
|
| 6219 |
|
| 6220 |
-
#: includes/common/formatting.php:
|
| 6221 |
msgctxt "Separator in time since"
|
| 6222 |
msgid ","
|
| 6223 |
msgstr ""
|
| 2 |
# This file is distributed under the GPLv2 or later (license.txt).
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: bbPress 2.6.5\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://bbpress.trac.wordpress.org\n"
|
| 7 |
+
"POT-Creation-Date: 2020-05-28 16:59:55+00:00\n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 13 |
"Language-Team: ENGLISH <jjj@bbpress.org>\n"
|
| 14 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
| 15 |
|
| 16 |
+
#: bbpress.php:146 bbpress.php:153
|
| 17 |
msgid "Cheatin’ huh?"
|
| 18 |
msgstr ""
|
| 19 |
|
| 20 |
+
#: bbpress.php:515
|
| 21 |
msgid "bbPress Forums"
|
| 22 |
msgstr ""
|
| 23 |
|
| 24 |
+
#: bbpress.php:541
|
| 25 |
msgid "bbPress Topics"
|
| 26 |
msgstr ""
|
| 27 |
|
| 28 |
+
#: bbpress.php:567
|
| 29 |
msgid "bbPress Replies"
|
| 30 |
msgstr ""
|
| 31 |
|
| 32 |
+
#: bbpress.php:711
|
| 33 |
msgid "Most popular topics"
|
| 34 |
msgstr ""
|
| 35 |
|
| 36 |
+
#: bbpress.php:724
|
| 37 |
msgid "Topics with no replies"
|
| 38 |
msgstr ""
|
| 39 |
|
| 40 |
+
#: bbpress.php:761
|
| 41 |
msgid "bbPress Item Count"
|
| 42 |
msgstr ""
|
| 43 |
|
| 44 |
+
#: bbpress.php:798
|
| 45 |
msgid "bbPress User Activity"
|
| 46 |
msgstr ""
|
| 47 |
|
| 48 |
#: includes/admin/actions.php:178 includes/admin/forums.php:538
|
| 49 |
+
#: includes/admin/settings.php:281 includes/admin/settings.php:302
|
| 50 |
#: includes/admin/tools/common.php:437 includes/admin/topics.php:854
|
| 51 |
#: includes/extend/buddypress/activity.php:197
|
| 52 |
#: includes/extend/buddypress/activity.php:391
|
| 58 |
msgstr ""
|
| 59 |
|
| 60 |
#: includes/admin/actions.php:183 includes/admin/actions.php:195
|
| 61 |
+
#: includes/admin/forums.php:539 includes/admin/settings.php:289
|
| 62 |
+
#: includes/admin/settings.php:310 includes/admin/tools/common.php:440
|
| 63 |
#: includes/admin/topics.php:390 includes/admin/topics.php:856
|
| 64 |
#: includes/core/theme-compat.php:694
|
| 65 |
#: includes/extend/buddypress/activity.php:207
|
| 77 |
#: includes/admin/actions.php:190 includes/admin/actions.php:202
|
| 78 |
#: includes/admin/forums.php:537 includes/admin/metaboxes.php:113
|
| 79 |
#: includes/admin/metaboxes.php:432 includes/admin/metaboxes.php:496
|
| 80 |
+
#: includes/admin/replies.php:665 includes/admin/settings.php:352
|
| 81 |
#: includes/admin/topics.php:855 includes/extend/buddypress/groups.php:51
|
| 82 |
#: includes/extend/buddypress/groups.php:52 includes/forums/template.php:50
|
| 83 |
#: templates/default/bbpress/loop-forums.php:20
|
| 86 |
|
| 87 |
#: includes/admin/actions.php:207 includes/admin/metaboxes.php:130
|
| 88 |
#: includes/admin/metaboxes.php:523 includes/admin/replies.php:666
|
| 89 |
+
#: includes/admin/settings.php:360 includes/topics/template.php:49
|
| 90 |
#: templates/default/bbpress/content-single-topic-lead.php:23
|
| 91 |
#: templates/default/bbpress/content-single-topic-lead.php:91
|
| 92 |
#: templates/default/bbpress/loop-topics.php:18
|
| 132 |
#: includes/admin/classes/class-bbp-admin.php:515
|
| 133 |
#: includes/admin/classes/class-bbp-admin.php:536
|
| 134 |
#: includes/admin/classes/class-bbp-admin.php:537
|
| 135 |
+
#: includes/admin/classes/class-bbp-admin.php:1319
|
| 136 |
+
#: includes/admin/classes/class-bbp-admin.php:1417
|
| 137 |
msgid "Update Forums"
|
| 138 |
msgstr ""
|
| 139 |
|
| 140 |
+
#: includes/admin/classes/class-bbp-admin.php:727
|
| 141 |
msgid "Settings"
|
| 142 |
msgstr ""
|
| 143 |
|
| 144 |
+
#: includes/admin/classes/class-bbp-admin.php:732
|
| 145 |
msgid "About"
|
| 146 |
msgstr ""
|
| 147 |
|
| 148 |
+
#: includes/admin/classes/class-bbp-admin.php:938
|
| 149 |
+
#: includes/admin/classes/class-bbp-admin.php:1018
|
| 150 |
+
#: includes/common/classes.php:493 includes/replies/template.php:2564
|
| 151 |
+
msgid "%1$s - %2$s"
|
| 152 |
msgstr ""
|
| 153 |
|
| 154 |
+
#: includes/admin/classes/class-bbp-admin.php:1036
|
| 155 |
msgid "Welcome to bbPress %s"
|
| 156 |
msgstr ""
|
| 157 |
|
| 158 |
+
#: includes/admin/classes/class-bbp-admin.php:1038
|
| 159 |
msgid ""
|
| 160 |
"bbPress is fun to use, contains no artificial colors or preservatives, and "
|
| 161 |
"is absolutely wonderful in every environment. Your community is going to "
|
| 162 |
"love using it."
|
| 163 |
msgstr ""
|
| 164 |
|
| 165 |
+
#: includes/admin/classes/class-bbp-admin.php:1064
|
| 166 |
+
#: includes/admin/classes/class-bbp-admin.php:1138
|
| 167 |
msgid "What’s New"
|
| 168 |
msgstr ""
|
| 169 |
|
| 170 |
+
#: includes/admin/classes/class-bbp-admin.php:1066
|
| 171 |
+
#: includes/admin/classes/class-bbp-admin.php:1140
|
| 172 |
msgid "Credits"
|
| 173 |
msgstr ""
|
| 174 |
|
| 175 |
+
#: includes/admin/classes/class-bbp-admin.php:1071
|
| 176 |
msgid "Forum Subscriptions"
|
| 177 |
msgstr ""
|
| 178 |
|
| 179 |
+
#: includes/admin/classes/class-bbp-admin.php:1075
|
| 180 |
msgid "Subscribe to Forums"
|
| 181 |
msgstr ""
|
| 182 |
|
| 183 |
+
#: includes/admin/classes/class-bbp-admin.php:1076
|
| 184 |
msgid "Now your users can subscribe to new topics in specific forums."
|
| 185 |
msgstr ""
|
| 186 |
|
| 187 |
+
#: includes/admin/classes/class-bbp-admin.php:1080
|
| 188 |
msgid "Manage Subscriptions"
|
| 189 |
msgstr ""
|
| 190 |
|
| 191 |
+
#: includes/admin/classes/class-bbp-admin.php:1081
|
| 192 |
msgid "Your users can manage all of their subscriptions in one convenient location."
|
| 193 |
msgstr ""
|
| 194 |
|
| 195 |
+
#: includes/admin/classes/class-bbp-admin.php:1087
|
| 196 |
msgid "Converters"
|
| 197 |
msgstr ""
|
| 198 |
|
| 199 |
+
#: includes/admin/classes/class-bbp-admin.php:1091
|
| 200 |
msgid ""
|
| 201 |
"We’re all abuzz about the hive of new importers, AEF, Drupal, FluxBB, "
|
| 202 |
"Kunena Forums for Joomla, MyBB, Phorum, PHPFox, PHPWind, PunBB, SMF, "
|
| 205 |
"now gone if you need to remove imported users."
|
| 206 |
msgstr ""
|
| 207 |
|
| 208 |
+
#: includes/admin/classes/class-bbp-admin.php:1097
|
| 209 |
msgid "Theme Compatibility"
|
| 210 |
msgstr ""
|
| 211 |
|
| 212 |
+
#: includes/admin/classes/class-bbp-admin.php:1098
|
| 213 |
msgid "Better handling of styles and scripts in the template stack."
|
| 214 |
msgstr ""
|
| 215 |
|
| 216 |
+
#: includes/admin/classes/class-bbp-admin.php:1102
|
| 217 |
msgid "Polyglot support"
|
| 218 |
msgstr ""
|
| 219 |
|
| 220 |
+
#: includes/admin/classes/class-bbp-admin.php:1103
|
| 221 |
msgid "bbPress fully supports automatic translation updates."
|
| 222 |
msgstr ""
|
| 223 |
|
| 224 |
+
#: includes/admin/classes/class-bbp-admin.php:1107
|
| 225 |
msgid "User capabilities"
|
| 226 |
msgstr ""
|
| 227 |
|
| 228 |
+
#: includes/admin/classes/class-bbp-admin.php:1108
|
| 229 |
msgid "Roles and capabilities have been swept through, cleaned up, and simplified."
|
| 230 |
msgstr ""
|
| 231 |
|
| 232 |
+
#: includes/admin/classes/class-bbp-admin.php:1114
|
| 233 |
+
#: includes/admin/classes/class-bbp-admin.php:1254
|
| 234 |
msgid "Go to Forum Settings"
|
| 235 |
msgstr ""
|
| 236 |
|
| 237 |
+
#: includes/admin/classes/class-bbp-admin.php:1144
|
| 238 |
msgid "bbPress is created by a worldwide swarm of busy, busy bees."
|
| 239 |
msgstr ""
|
| 240 |
|
| 241 |
+
#: includes/admin/classes/class-bbp-admin.php:1146
|
| 242 |
msgid "Project Leaders"
|
| 243 |
msgstr ""
|
| 244 |
|
| 245 |
+
#: includes/admin/classes/class-bbp-admin.php:1150
|
| 246 |
msgid "Founding Developer"
|
| 247 |
msgstr ""
|
| 248 |
|
| 249 |
+
#: includes/admin/classes/class-bbp-admin.php:1154
|
| 250 |
msgid "Lead Developer"
|
| 251 |
msgstr ""
|
| 252 |
|
| 253 |
+
#: includes/admin/classes/class-bbp-admin.php:1158
|
| 254 |
msgid "Feature Virtuoso"
|
| 255 |
msgstr ""
|
| 256 |
|
| 257 |
+
#: includes/admin/classes/class-bbp-admin.php:1162
|
| 258 |
msgid "Tool Maven"
|
| 259 |
msgstr ""
|
| 260 |
|
| 261 |
+
#: includes/admin/classes/class-bbp-admin.php:1166
|
| 262 |
msgid "Contributing Developers"
|
| 263 |
msgstr ""
|
| 264 |
|
| 265 |
+
#: includes/admin/classes/class-bbp-admin.php:1170
|
| 266 |
+
#: includes/admin/classes/class-bbp-admin.php:1174
|
| 267 |
msgid "Core Developer"
|
| 268 |
msgstr ""
|
| 269 |
|
| 270 |
+
#: includes/admin/classes/class-bbp-admin.php:1178
|
| 271 |
msgid "Project Emeriti"
|
| 272 |
msgstr ""
|
| 273 |
|
| 274 |
+
#: includes/admin/classes/class-bbp-admin.php:1182
|
| 275 |
msgid "Feature Developer"
|
| 276 |
msgstr ""
|
| 277 |
|
| 278 |
+
#: includes/admin/classes/class-bbp-admin.php:1186
|
| 279 |
msgid "Integration Testing"
|
| 280 |
msgstr ""
|
| 281 |
|
| 282 |
+
#: includes/admin/classes/class-bbp-admin.php:1190
|
| 283 |
msgid "Contributors to bbPress 2.6"
|
| 284 |
msgstr ""
|
| 285 |
|
| 286 |
+
#: includes/admin/classes/class-bbp-admin.php:1275
|
| 287 |
+
#: includes/admin/classes/class-bbp-admin.php:1298
|
| 288 |
msgid "Update Forum"
|
| 289 |
msgstr ""
|
| 290 |
|
| 291 |
+
#: includes/admin/classes/class-bbp-admin.php:1287
|
| 292 |
+
#: includes/admin/classes/class-bbp-admin.php:1337
|
| 293 |
msgid "All done!"
|
| 294 |
msgstr ""
|
| 295 |
|
| 296 |
+
#: includes/admin/classes/class-bbp-admin.php:1288
|
| 297 |
+
#: includes/admin/classes/class-bbp-admin.php:1338
|
| 298 |
msgid "Go Back"
|
| 299 |
msgstr ""
|
| 300 |
|
| 301 |
+
#: includes/admin/classes/class-bbp-admin.php:1297
|
| 302 |
msgid "You can update your forum through this page. Hit the link below to update."
|
| 303 |
msgstr ""
|
| 304 |
|
| 305 |
+
#: includes/admin/classes/class-bbp-admin.php:1372
|
| 306 |
msgid ""
|
| 307 |
"Warning! Problem updating %1$s. Your server may not be able to connect to "
|
| 308 |
"sites running on it. Error message: %2$s"
|
| 309 |
msgstr ""
|
| 310 |
|
| 311 |
+
#: includes/admin/classes/class-bbp-admin.php:1397
|
| 312 |
msgid ""
|
| 313 |
"If your browser doesn’t start loading the next page automatically, "
|
| 314 |
"click this link:"
|
| 315 |
msgstr ""
|
| 316 |
|
| 317 |
+
#: includes/admin/classes/class-bbp-admin.php:1398
|
| 318 |
msgid "Next Forums"
|
| 319 |
msgstr ""
|
| 320 |
|
| 321 |
+
#: includes/admin/classes/class-bbp-admin.php:1416
|
| 322 |
msgid ""
|
| 323 |
"You can update all the forums on your network through this page. It works "
|
| 324 |
"by calling the update script of each site automatically. Hit the link below "
|
| 330 |
msgstr ""
|
| 331 |
|
| 332 |
#: includes/admin/classes/class-bbp-converter.php:162
|
| 333 |
+
#: includes/admin/settings.php:1794
|
| 334 |
msgid "Start"
|
| 335 |
msgstr ""
|
| 336 |
|
| 643 |
msgstr ""
|
| 644 |
|
| 645 |
#: includes/admin/classes/class-bbp-topic-replies-list-table.php:149
|
| 646 |
+
#: includes/admin/settings.php:392 includes/common/template.php:2331
|
| 647 |
#: includes/forums/template.php:54 includes/replies/template.php:55
|
| 648 |
#: includes/replies/template.php:1848 includes/topics/template.php:53
|
| 649 |
#: includes/topics/template.php:2403
|
| 656 |
msgstr ""
|
| 657 |
|
| 658 |
#: includes/admin/forums.php:101 includes/admin/replies.php:115
|
| 659 |
+
#: includes/admin/settings.php:1871 includes/admin/tools/help.php:95
|
| 660 |
#: includes/admin/topics.php:119
|
| 661 |
msgid "Overview"
|
| 662 |
msgstr ""
|
| 759 |
|
| 760 |
#: includes/admin/forums.php:144 includes/admin/forums.php:200
|
| 761 |
#: includes/admin/replies.php:161 includes/admin/replies.php:215
|
| 762 |
+
#: includes/admin/settings.php:1937 includes/admin/tools/help.php:43
|
| 763 |
#: includes/admin/tools/help.php:72 includes/admin/tools/help.php:130
|
| 764 |
#: includes/admin/topics.php:167 includes/admin/topics.php:220
|
| 765 |
msgid "For more information:"
|
| 767 |
|
| 768 |
#: includes/admin/forums.php:145 includes/admin/forums.php:201
|
| 769 |
#: includes/admin/replies.php:162 includes/admin/replies.php:216
|
| 770 |
+
#: includes/admin/settings.php:1938 includes/admin/tools/help.php:44
|
| 771 |
#: includes/admin/tools/help.php:73 includes/admin/tools/help.php:131
|
| 772 |
#: includes/admin/topics.php:168 includes/admin/topics.php:221
|
| 773 |
msgid ""
|
| 777 |
|
| 778 |
#: includes/admin/forums.php:146 includes/admin/forums.php:202
|
| 779 |
#: includes/admin/replies.php:163 includes/admin/replies.php:217
|
| 780 |
+
#: includes/admin/settings.php:1939 includes/admin/tools/help.php:45
|
| 781 |
#: includes/admin/tools/help.php:74 includes/admin/tools/help.php:132
|
| 782 |
#: includes/admin/topics.php:169 includes/admin/topics.php:222
|
| 783 |
msgid ""
|
| 887 |
msgid "Publish Box"
|
| 888 |
msgstr ""
|
| 889 |
|
| 890 |
+
#: includes/admin/forums.php:237 includes/admin/settings.php:246
|
| 891 |
#: includes/admin/tools/reset.php:42
|
| 892 |
msgid "Forum Moderators"
|
| 893 |
msgstr ""
|
| 894 |
|
| 895 |
+
#: includes/admin/forums.php:267 includes/admin/settings.php:206
|
| 896 |
+
#: includes/admin/settings.php:445 includes/admin/tools/common.php:452
|
| 897 |
#: includes/admin/topics.php:480 includes/extend/buddypress/loader.php:260
|
| 898 |
#: templates/default/bbpress/user-details.php:67
|
| 899 |
msgid "Subscriptions"
|
| 961 |
msgid "Open this forum"
|
| 962 |
msgstr ""
|
| 963 |
|
| 964 |
+
#: includes/admin/forums.php:710 includes/admin/forums.php:722
|
| 965 |
#: includes/forums/template.php:79
|
| 966 |
msgid "Forum updated."
|
| 967 |
msgstr ""
|
| 968 |
|
| 969 |
+
#: includes/admin/forums.php:712 includes/admin/forums.php:735
|
| 970 |
msgid "View forum"
|
| 971 |
msgstr ""
|
| 972 |
|
| 973 |
+
#: includes/admin/forums.php:716 includes/admin/replies.php:977
|
| 974 |
#: includes/admin/topics.php:1181
|
| 975 |
msgid "Custom field updated."
|
| 976 |
msgstr ""
|
| 977 |
|
| 978 |
+
#: includes/admin/forums.php:719 includes/admin/replies.php:980
|
| 979 |
#: includes/admin/topics.php:1184
|
| 980 |
msgid "Custom field deleted."
|
| 981 |
msgstr ""
|
| 982 |
|
| 983 |
+
#: includes/admin/forums.php:727
|
| 984 |
#. translators: %s: date and time of the revision
|
| 985 |
msgid "Forum restored to revision from %s"
|
| 986 |
msgstr ""
|
| 987 |
|
| 988 |
+
#: includes/admin/forums.php:733
|
| 989 |
msgid "Forum created."
|
| 990 |
msgstr ""
|
| 991 |
|
| 992 |
+
#: includes/admin/forums.php:739
|
| 993 |
msgid "Forum saved."
|
| 994 |
msgstr ""
|
| 995 |
|
| 996 |
+
#: includes/admin/forums.php:744
|
| 997 |
msgid "Forum submitted."
|
| 998 |
msgstr ""
|
| 999 |
|
| 1000 |
+
#: includes/admin/forums.php:746 includes/admin/forums.php:758
|
| 1001 |
+
#: includes/admin/forums.php:766
|
| 1002 |
msgid "Preview forum"
|
| 1003 |
msgstr ""
|
| 1004 |
|
| 1005 |
+
#: includes/admin/forums.php:753
|
| 1006 |
msgid "Forum scheduled for: %s."
|
| 1007 |
msgstr ""
|
| 1008 |
|
| 1009 |
+
#: includes/admin/forums.php:755 includes/admin/replies.php:1016
|
| 1010 |
#: includes/admin/topics.php:1220
|
| 1011 |
#. translators: Publish box date format, see http:php.net/date
|
| 1012 |
msgid "M j, Y @ G:i"
|
| 1013 |
msgstr ""
|
| 1014 |
|
| 1015 |
+
#: includes/admin/forums.php:764
|
| 1016 |
msgid "Forum draft updated."
|
| 1017 |
msgstr ""
|
| 1018 |
|
| 1056 |
msgstr[0] ""
|
| 1057 |
msgstr[1] ""
|
| 1058 |
|
| 1059 |
+
#: includes/admin/metaboxes.php:166 includes/admin/settings.php:368
|
| 1060 |
#: includes/topics/template.php:3380
|
| 1061 |
msgid "Topic Tag"
|
| 1062 |
msgid_plural "Topic Tags"
|
| 1119 |
msgid "Forum Parent"
|
| 1120 |
msgstr ""
|
| 1121 |
|
| 1122 |
+
#: includes/admin/metaboxes.php:369 includes/admin/settings.php:1447
|
| 1123 |
#: templates/default/bbpress/form-forum.php:144
|
| 1124 |
msgid "— No parent —"
|
| 1125 |
msgstr ""
|
| 1657 |
msgid "Anonymous"
|
| 1658 |
msgstr ""
|
| 1659 |
|
| 1660 |
+
#: includes/admin/settings.php:168
|
| 1661 |
+
msgid "Auto-embed links"
|
| 1662 |
+
msgstr ""
|
| 1663 |
+
|
| 1664 |
+
#: includes/admin/settings.php:176
|
| 1665 |
+
msgid "Reply Threading"
|
| 1666 |
+
msgstr ""
|
| 1667 |
+
|
| 1668 |
+
#: includes/admin/settings.php:190 includes/admin/settings.php:2026
|
| 1669 |
msgid "Revisions"
|
| 1670 |
msgstr ""
|
| 1671 |
|
| 1672 |
+
#: includes/admin/settings.php:198 includes/admin/tools/common.php:449
|
| 1673 |
#: includes/admin/topics.php:450 includes/extend/buddypress/loader.php:247
|
| 1674 |
#: templates/default/bbpress/user-details.php:57
|
| 1675 |
msgid "Favorites"
|
| 1676 |
msgstr ""
|
| 1677 |
|
| 1678 |
+
#: includes/admin/settings.php:214 includes/admin/settings.php:453
|
| 1679 |
#: includes/admin/tools/common.php:455 includes/admin/topics.php:420
|
| 1680 |
#: includes/extend/buddypress/loader.php:234
|
| 1681 |
#: includes/extend/buddypress/loader.php:336
|
| 1683 |
msgid "Engagements"
|
| 1684 |
msgstr ""
|
| 1685 |
|
| 1686 |
+
#: includes/admin/settings.php:222
|
| 1687 |
msgid "Topic tags"
|
| 1688 |
msgstr ""
|
| 1689 |
|
| 1690 |
+
#: includes/admin/settings.php:230 includes/admin/settings.php:400
|
| 1691 |
+
#: includes/common/template.php:2446 includes/search/template.php:175
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1692 |
#: templates/default/bbpress/form-reply-search.php:20
|
| 1693 |
#: templates/default/bbpress/form-search.php:21
|
| 1694 |
#: templates/default/bbpress/form-topic-search.php:20
|
| 1695 |
msgid "Search"
|
| 1696 |
msgstr ""
|
| 1697 |
|
| 1698 |
+
#: includes/admin/settings.php:238
|
| 1699 |
msgid "Post Formatting"
|
| 1700 |
msgstr ""
|
| 1701 |
|
| 1702 |
+
#: includes/admin/settings.php:254
|
| 1703 |
+
msgid "Super Moderators"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1704 |
msgstr ""
|
| 1705 |
|
| 1706 |
+
#: includes/admin/settings.php:268
|
| 1707 |
msgid "Current Package"
|
| 1708 |
msgstr ""
|
| 1709 |
|
| 1710 |
+
#: includes/admin/settings.php:323
|
| 1711 |
msgid "Forum Root"
|
| 1712 |
msgstr ""
|
| 1713 |
|
| 1714 |
+
#: includes/admin/settings.php:331
|
| 1715 |
msgid "Forum Prefix"
|
| 1716 |
msgstr ""
|
| 1717 |
|
| 1718 |
+
#: includes/admin/settings.php:339
|
| 1719 |
msgid "Forum root should show"
|
| 1720 |
msgstr ""
|
| 1721 |
|
| 1722 |
+
#: includes/admin/settings.php:376
|
| 1723 |
msgid "Topic View"
|
| 1724 |
msgstr ""
|
| 1725 |
|
| 1726 |
+
#: includes/admin/settings.php:413
|
| 1727 |
msgid "User Base"
|
| 1728 |
msgstr ""
|
| 1729 |
|
| 1730 |
+
#: includes/admin/settings.php:421 includes/extend/buddypress/loader.php:211
|
| 1731 |
#: includes/extend/buddypress/loader.php:319
|
| 1732 |
#: templates/default/bbpress/user-details.php:36
|
| 1733 |
msgid "Topics Started"
|
| 1734 |
msgstr ""
|
| 1735 |
|
| 1736 |
+
#: includes/admin/settings.php:429 includes/extend/buddypress/loader.php:222
|
| 1737 |
#: includes/extend/buddypress/loader.php:327
|
| 1738 |
#: templates/default/bbpress/user-details.php:42
|
| 1739 |
msgid "Replies Created"
|
| 1740 |
msgstr ""
|
| 1741 |
|
| 1742 |
+
#: includes/admin/settings.php:437 includes/extend/buddypress/loader.php:346
|
| 1743 |
msgid "Favorite Topics"
|
| 1744 |
msgstr ""
|
| 1745 |
|
| 1746 |
+
#: includes/admin/settings.php:466 includes/admin/tools/upgrade.php:371
|
| 1747 |
#: includes/extend/buddypress/functions.php:341
|
| 1748 |
msgid "Group Forums"
|
| 1749 |
msgstr ""
|
| 1750 |
|
| 1751 |
+
#: includes/admin/settings.php:474
|
| 1752 |
msgid "Primary Forum"
|
| 1753 |
msgstr ""
|
| 1754 |
|
| 1755 |
+
#: includes/admin/settings.php:487
|
| 1756 |
msgid "Use Akismet"
|
| 1757 |
msgstr ""
|
| 1758 |
|
| 1759 |
+
#: includes/admin/settings.php:501
|
| 1760 |
msgid "Select Platform"
|
| 1761 |
msgstr ""
|
| 1762 |
|
| 1763 |
+
#: includes/admin/settings.php:509
|
| 1764 |
msgid "Database Server"
|
| 1765 |
msgstr ""
|
| 1766 |
|
| 1767 |
+
#: includes/admin/settings.php:517
|
| 1768 |
msgid "Database Port"
|
| 1769 |
msgstr ""
|
| 1770 |
|
| 1771 |
+
#: includes/admin/settings.php:525
|
| 1772 |
msgid "Database Name"
|
| 1773 |
msgstr ""
|
| 1774 |
|
| 1775 |
+
#: includes/admin/settings.php:533
|
| 1776 |
msgid "Database User"
|
| 1777 |
msgstr ""
|
| 1778 |
|
| 1779 |
+
#: includes/admin/settings.php:541
|
| 1780 |
msgid "Database Password"
|
| 1781 |
msgstr ""
|
| 1782 |
|
| 1783 |
+
#: includes/admin/settings.php:549
|
| 1784 |
msgid "Table Prefix"
|
| 1785 |
msgstr ""
|
| 1786 |
|
| 1787 |
+
#: includes/admin/settings.php:561
|
| 1788 |
msgid "Rows Limit"
|
| 1789 |
msgstr ""
|
| 1790 |
|
| 1791 |
+
#: includes/admin/settings.php:569
|
| 1792 |
msgid "Delay Time"
|
| 1793 |
msgstr ""
|
| 1794 |
|
| 1795 |
+
#: includes/admin/settings.php:577
|
| 1796 |
msgid "Convert Users"
|
| 1797 |
msgstr ""
|
| 1798 |
|
| 1799 |
+
#: includes/admin/settings.php:585
|
| 1800 |
msgid "Stop on Error"
|
| 1801 |
msgstr ""
|
| 1802 |
|
| 1803 |
+
#: includes/admin/settings.php:593
|
| 1804 |
msgid "Start Over"
|
| 1805 |
msgstr ""
|
| 1806 |
|
| 1807 |
+
#: includes/admin/settings.php:601
|
| 1808 |
msgid "Helper Data"
|
| 1809 |
msgstr ""
|
| 1810 |
|
| 1811 |
+
#: includes/admin/settings.php:654
|
| 1812 |
msgid "Setting time limits and other user posting capabilities"
|
| 1813 |
msgstr ""
|
| 1814 |
|
| 1815 |
+
#: includes/admin/settings.php:678
|
| 1816 |
msgid "Allow users to edit their content for %s minutes after posting"
|
| 1817 |
msgstr ""
|
| 1818 |
|
| 1819 |
+
#: includes/admin/settings.php:680
|
| 1820 |
msgid "If checked, setting to \"0 minutes\" allows editing forever."
|
| 1821 |
msgstr ""
|
| 1822 |
|
| 1823 |
+
#: includes/admin/settings.php:703
|
| 1824 |
msgid "Allow flood protection by throttling users for %s seconds after posting"
|
| 1825 |
msgstr ""
|
| 1826 |
|
| 1827 |
+
#: includes/admin/settings.php:705
|
| 1828 |
msgid "Use this to discourage users from spamming your forums."
|
| 1829 |
msgstr ""
|
| 1830 |
|
| 1831 |
+
#: includes/admin/settings.php:719
|
| 1832 |
msgid "Allow guest users without accounts to create topics and replies"
|
| 1833 |
msgstr ""
|
| 1834 |
|
| 1835 |
+
#: includes/admin/settings.php:720
|
| 1836 |
msgid "Works best on intranets or paired with antispam measures like Akismet."
|
| 1837 |
msgstr ""
|
| 1838 |
|
| 1839 |
+
#: includes/admin/settings.php:753
|
| 1840 |
msgid "Automatically give registered visitors the %s forum role"
|
| 1841 |
msgstr ""
|
| 1842 |
|
| 1843 |
+
#: includes/admin/settings.php:755
|
| 1844 |
msgid "Uncheck this to manually assign all user access to your forums."
|
| 1845 |
msgstr ""
|
| 1846 |
|
| 1847 |
+
#: includes/admin/settings.php:770
|
| 1848 |
msgid "Forum features that can be toggled on and off"
|
| 1849 |
msgstr ""
|
| 1850 |
|
| 1851 |
+
#: includes/admin/settings.php:784
|
| 1852 |
msgid "Allow users to mark topics as favorites"
|
| 1853 |
msgstr ""
|
| 1854 |
|
| 1855 |
+
#: includes/admin/settings.php:798
|
| 1856 |
msgid "Allow users to subscribe to forums and topics"
|
| 1857 |
msgstr ""
|
| 1858 |
|
| 1859 |
+
#: includes/admin/settings.php:812
|
| 1860 |
msgid "Allow tracking of topics each user engages in"
|
| 1861 |
msgstr ""
|
| 1862 |
|
| 1863 |
+
#: includes/admin/settings.php:826
|
| 1864 |
msgid "Allow topics to have tags"
|
| 1865 |
msgstr ""
|
| 1866 |
|
| 1867 |
+
#: includes/admin/settings.php:840
|
| 1868 |
msgid "Allow forums to have dedicated moderators"
|
| 1869 |
msgstr ""
|
| 1870 |
|
| 1871 |
+
#: includes/admin/settings.php:841
|
| 1872 |
+
msgid "This does not include the ability to edit users."
|
| 1873 |
+
msgstr ""
|
| 1874 |
+
|
| 1875 |
+
#: includes/admin/settings.php:855
|
| 1876 |
+
msgid "Allow Moderators and Keymasters to edit users"
|
| 1877 |
msgstr ""
|
| 1878 |
|
| 1879 |
+
#: includes/admin/settings.php:856
|
| 1880 |
+
msgid "This includes roles, passwords, and email addresses."
|
| 1881 |
+
msgstr ""
|
| 1882 |
+
|
| 1883 |
+
#: includes/admin/settings.php:870
|
| 1884 |
msgid "Allow forum wide search"
|
| 1885 |
msgstr ""
|
| 1886 |
|
| 1887 |
+
#: includes/admin/settings.php:905
|
| 1888 |
msgid "Enable threaded (nested) replies %s levels deep"
|
| 1889 |
msgstr ""
|
| 1890 |
|
| 1891 |
+
#: includes/admin/settings.php:920
|
| 1892 |
msgid "Allow topic and reply revision logging"
|
| 1893 |
msgstr ""
|
| 1894 |
|
| 1895 |
+
#: includes/admin/settings.php:934
|
| 1896 |
msgid "Add toolbar & buttons to textareas to help with HTML formatting"
|
| 1897 |
msgstr ""
|
| 1898 |
|
| 1899 |
+
#: includes/admin/settings.php:947
|
| 1900 |
msgid "How your forum content is displayed within your existing theme."
|
| 1901 |
msgstr ""
|
| 1902 |
|
| 1903 |
+
#: includes/admin/settings.php:975
|
| 1904 |
msgid "will serve all bbPress templates"
|
| 1905 |
msgstr ""
|
| 1906 |
|
| 1907 |
+
#: includes/admin/settings.php:979
|
| 1908 |
msgid "No template packages available."
|
| 1909 |
msgstr ""
|
| 1910 |
|
| 1911 |
+
#: includes/admin/settings.php:993
|
| 1912 |
msgid ""
|
| 1913 |
"Embed media (YouTube, Twitter, Flickr, etc...) directly into topics and "
|
| 1914 |
"replies"
|
| 1915 |
msgstr ""
|
| 1916 |
|
| 1917 |
+
#: includes/admin/settings.php:1008
|
| 1918 |
msgid "How many topics and replies to show per page"
|
| 1919 |
msgstr ""
|
| 1920 |
|
| 1921 |
+
#: includes/admin/settings.php:1022 includes/admin/settings.php:1036
|
| 1922 |
+
#: includes/admin/settings.php:1065 includes/admin/settings.php:1079
|
| 1923 |
msgid "per page"
|
| 1924 |
msgstr ""
|
| 1925 |
|
| 1926 |
+
#: includes/admin/settings.php:1051
|
| 1927 |
msgid "How many topics and replies to show per RSS page"
|
| 1928 |
msgstr ""
|
| 1929 |
|
| 1930 |
+
#: includes/admin/settings.php:1098
|
| 1931 |
msgid ""
|
| 1932 |
"Customize your Forums root. Partner with a WordPress Page and use "
|
| 1933 |
"Shortcodes for more flexibility."
|
| 1934 |
msgstr ""
|
| 1935 |
|
| 1936 |
+
#: includes/admin/settings.php:1127
|
| 1937 |
msgid "Prefix all forum content with the Forum Root slug (Recommended)"
|
| 1938 |
msgstr ""
|
| 1939 |
|
| 1940 |
+
#: includes/admin/settings.php:1145
|
| 1941 |
msgid "Forum Index"
|
| 1942 |
msgstr ""
|
| 1943 |
|
| 1944 |
+
#: includes/admin/settings.php:1148
|
| 1945 |
msgid "Topics by Last Post"
|
| 1946 |
msgstr ""
|
| 1947 |
|
| 1948 |
+
#: includes/admin/settings.php:1170
|
| 1949 |
msgid "This setting will be ignored because %s was found in your theme."
|
| 1950 |
msgstr ""
|
| 1951 |
|
| 1952 |
+
#: includes/admin/settings.php:1185
|
| 1953 |
msgid "Customize your user profile slugs."
|
| 1954 |
msgstr ""
|
| 1955 |
|
| 1956 |
+
#: includes/admin/settings.php:1290
|
| 1957 |
msgid ""
|
| 1958 |
"Custom slugs for single forums, topics, replies, tags, views, edit, and "
|
| 1959 |
"search."
|
| 1960 |
msgstr ""
|
| 1961 |
|
| 1962 |
+
#: includes/admin/settings.php:1411
|
| 1963 |
msgid "Forum settings for BuddyPress"
|
| 1964 |
msgstr ""
|
| 1965 |
|
| 1966 |
+
#: includes/admin/settings.php:1425
|
| 1967 |
msgid "Allow BuddyPress Groups to have their own forums"
|
| 1968 |
msgstr ""
|
| 1969 |
|
| 1970 |
+
#: includes/admin/settings.php:1469
|
| 1971 |
msgid "create a new one"
|
| 1972 |
msgstr ""
|
| 1973 |
|
| 1974 |
+
#: includes/admin/settings.php:1470
|
| 1975 |
msgid "Use %s to contain your group forums, or %s"
|
| 1976 |
msgstr ""
|
| 1977 |
|
| 1978 |
+
#: includes/admin/settings.php:1472
|
| 1979 |
msgid "Use %s to contain your group forums"
|
| 1980 |
msgstr ""
|
| 1981 |
|
| 1982 |
+
#: includes/admin/settings.php:1477
|
| 1983 |
msgid "Changing this will not move existing forums."
|
| 1984 |
msgstr ""
|
| 1985 |
|
| 1986 |
+
#: includes/admin/settings.php:1492
|
| 1987 |
msgid "Forum settings for Akismet"
|
| 1988 |
msgstr ""
|
| 1989 |
|
| 1990 |
+
#: includes/admin/settings.php:1507
|
| 1991 |
msgid "Allow Akismet to actively prevent forum spam."
|
| 1992 |
msgstr ""
|
| 1993 |
|
| 1994 |
+
#: includes/admin/settings.php:1523
|
| 1995 |
msgid "Forums Settings"
|
| 1996 |
msgstr ""
|
| 1997 |
|
| 1998 |
+
#: includes/admin/settings.php:1533
|
| 1999 |
#: templates/default/bbpress/form-user-edit.php:161
|
| 2000 |
msgid "Save Changes"
|
| 2001 |
msgstr ""
|
| 2002 |
|
| 2003 |
+
#: includes/admin/settings.php:1551
|
| 2004 |
msgid ""
|
| 2005 |
"Information about the database for your previous forums so they can be "
|
| 2006 |
"converted."
|
| 2007 |
msgstr ""
|
| 2008 |
|
| 2009 |
+
#: includes/admin/settings.php:1574
|
| 2010 |
msgid "The previous forum software"
|
| 2011 |
msgstr ""
|
| 2012 |
|
| 2013 |
+
#: includes/admin/settings.php:1588
|
| 2014 |
msgid "Use default %s if same server, or IP or hostname"
|
| 2015 |
msgstr ""
|
| 2016 |
|
| 2017 |
+
#: includes/admin/settings.php:1602
|
| 2018 |
msgid "Use default %s if unsure"
|
| 2019 |
msgstr ""
|
| 2020 |
|
| 2021 |
+
#: includes/admin/settings.php:1616
|
| 2022 |
msgid "User to access the database"
|
| 2023 |
msgstr ""
|
| 2024 |
|
| 2025 |
+
#: includes/admin/settings.php:1632
|
| 2026 |
msgid "Toggle"
|
| 2027 |
msgstr ""
|
| 2028 |
|
| 2029 |
+
#: includes/admin/settings.php:1636
|
| 2030 |
msgid "Password for the above database user"
|
| 2031 |
msgstr ""
|
| 2032 |
|
| 2033 |
+
#: includes/admin/settings.php:1650
|
| 2034 |
msgid "Name of the database with your old forum data"
|
| 2035 |
msgstr ""
|
| 2036 |
|
| 2037 |
+
#: includes/admin/settings.php:1663
|
| 2038 |
msgid "Some optional parameters to help tune the conversion process."
|
| 2039 |
msgstr ""
|
| 2040 |
|
| 2041 |
+
#: includes/admin/settings.php:1677
|
| 2042 |
msgid "Use %s if converting from BuddyPress Legacy"
|
| 2043 |
msgstr ""
|
| 2044 |
|
| 2045 |
+
#: includes/admin/settings.php:1691
|
| 2046 |
msgid "entry maximum when querying for data to convert"
|
| 2047 |
msgstr ""
|
| 2048 |
|
| 2049 |
+
#: includes/admin/settings.php:1692
|
| 2050 |
msgid "Keep this low if you experience out-of-memory issues."
|
| 2051 |
msgstr ""
|
| 2052 |
|
| 2053 |
+
#: includes/admin/settings.php:1706
|
| 2054 |
msgid "second delay between each query of rows above"
|
| 2055 |
msgstr ""
|
| 2056 |
|
| 2057 |
+
#: includes/admin/settings.php:1707
|
| 2058 |
msgid "Keep this high to prevent too-many-connection issues."
|
| 2059 |
msgstr ""
|
| 2060 |
|
| 2061 |
+
#: includes/admin/settings.php:1721
|
| 2062 |
msgid "Halt the conversion if an error occurs"
|
| 2063 |
msgstr ""
|
| 2064 |
|
| 2065 |
+
#: includes/admin/settings.php:1722
|
| 2066 |
msgid "This is helpful if you want to debug problems."
|
| 2067 |
msgstr ""
|
| 2068 |
|
| 2069 |
+
#: includes/admin/settings.php:1737
|
| 2070 |
msgid "Restart the converter from the beginning"
|
| 2071 |
msgstr ""
|
| 2072 |
|
| 2073 |
+
#: includes/admin/settings.php:1738
|
| 2074 |
msgid ""
|
| 2075 |
"This forces all steps back to 0. Avoid duplicate data by purging or "
|
| 2076 |
"resetting first."
|
| 2077 |
msgstr ""
|
| 2078 |
|
| 2079 |
+
#: includes/admin/settings.php:1752
|
| 2080 |
msgid "Purge all meta-data from a previous import"
|
| 2081 |
msgstr ""
|
| 2082 |
|
| 2083 |
+
#: includes/admin/settings.php:1753
|
| 2084 |
msgid ""
|
| 2085 |
"Use this if an import failed, or you just want to remove the relationship "
|
| 2086 |
"data."
|
| 2087 |
msgstr ""
|
| 2088 |
|
| 2089 |
+
#: includes/admin/settings.php:1767
|
| 2090 |
msgid "Import user accounts from previous forums"
|
| 2091 |
msgstr ""
|
| 2092 |
|
| 2093 |
+
#: includes/admin/settings.php:1768
|
| 2094 |
msgid "Passwords remain encrypted, and are converted as individual users log in."
|
| 2095 |
msgstr ""
|
| 2096 |
|
| 2097 |
+
#: includes/admin/settings.php:1788
|
| 2098 |
msgid "Up next: step %s"
|
| 2099 |
msgstr ""
|
| 2100 |
|
| 2101 |
+
#: includes/admin/settings.php:1789
|
| 2102 |
msgid "Ready"
|
| 2103 |
msgstr ""
|
| 2104 |
|
| 2105 |
+
#: includes/admin/settings.php:1793
|
| 2106 |
msgid "Resume"
|
| 2107 |
msgstr ""
|
| 2108 |
|
| 2109 |
+
#: includes/admin/settings.php:1798
|
| 2110 |
+
msgid "Previously stopped at step %1$d of %2$d"
|
| 2111 |
msgstr ""
|
| 2112 |
|
| 2113 |
+
#: includes/admin/settings.php:1799
|
| 2114 |
msgid "Ready to go."
|
| 2115 |
msgstr ""
|
| 2116 |
|
| 2117 |
+
#: includes/admin/settings.php:1802 includes/admin/tools/repair.php:43
|
| 2118 |
#: includes/admin/tools/reset.php:23 includes/admin/tools/upgrade.php:40
|
| 2119 |
msgid "Forum Tools"
|
| 2120 |
msgstr ""
|
| 2121 |
|
| 2122 |
+
#: includes/admin/settings.php:1813
|
| 2123 |
msgid "Toggle panel: Import Status"
|
| 2124 |
msgstr ""
|
| 2125 |
|
| 2126 |
+
#: includes/admin/settings.php:1817
|
| 2127 |
msgid "Import Monitor"
|
| 2128 |
msgstr ""
|
| 2129 |
|
| 2130 |
+
#: includes/admin/settings.php:1829
|
| 2131 |
msgid "Pause"
|
| 2132 |
msgstr ""
|
| 2133 |
|
| 2134 |
+
#: includes/admin/settings.php:1872
|
| 2135 |
msgid "This screen provides access to all of the Forums settings."
|
| 2136 |
msgstr ""
|
| 2137 |
|
| 2138 |
+
#: includes/admin/settings.php:1873 includes/admin/tools/help.php:97
|
| 2139 |
msgid ""
|
| 2140 |
"Please see the additional help tabs for more information on each individual "
|
| 2141 |
"section."
|
| 2142 |
msgstr ""
|
| 2143 |
|
| 2144 |
+
#: includes/admin/settings.php:1879
|
| 2145 |
msgid "Main Settings"
|
| 2146 |
msgstr ""
|
| 2147 |
|
| 2148 |
+
#: includes/admin/settings.php:1880
|
| 2149 |
msgid "The \"Main Settings\" section includes a number of options:"
|
| 2150 |
msgstr ""
|
| 2151 |
|
| 2152 |
+
#: includes/admin/settings.php:1883
|
| 2153 |
msgid ""
|
| 2154 |
"You can choose to lock a post after a certain number of minutes. \"Locking "
|
| 2155 |
"post editing\" will prevent the author from editing some amount of time "
|
| 2156 |
"after saving a post."
|
| 2157 |
msgstr ""
|
| 2158 |
|
| 2159 |
+
#: includes/admin/settings.php:1884
|
| 2160 |
msgid ""
|
| 2161 |
"\"Throttle time\" is the amount of time required between posts from a "
|
| 2162 |
"single author. The higher the throttle time, the longer a user will need to "
|
| 2163 |
"wait between posting to the forum."
|
| 2164 |
msgstr ""
|
| 2165 |
|
| 2166 |
+
#: includes/admin/settings.php:1885
|
| 2167 |
msgid ""
|
| 2168 |
"Favorites are a way for users to save and later return to topics they "
|
| 2169 |
"favor. This is enabled by default."
|
| 2170 |
msgstr ""
|
| 2171 |
|
| 2172 |
+
#: includes/admin/settings.php:1886
|
| 2173 |
msgid ""
|
| 2174 |
"Subscriptions allow users to subscribe for notifications to topics that "
|
| 2175 |
"interest them. This is enabled by default."
|
| 2176 |
msgstr ""
|
| 2177 |
|
| 2178 |
+
#: includes/admin/settings.php:1887
|
| 2179 |
msgid ""
|
| 2180 |
"Topic-Tags allow users to filter topics between forums. This is enabled by "
|
| 2181 |
"default."
|
| 2182 |
msgstr ""
|
| 2183 |
|
| 2184 |
+
#: includes/admin/settings.php:1888
|
| 2185 |
msgid ""
|
| 2186 |
"\"Anonymous Posting\" allows guest users who do not have accounts on your "
|
| 2187 |
"site to both create topics as well as replies."
|
| 2188 |
msgstr ""
|
| 2189 |
|
| 2190 |
+
#: includes/admin/settings.php:1889
|
| 2191 |
msgid ""
|
| 2192 |
"The Fancy Editor brings the luxury of the Visual editor and HTML editor "
|
| 2193 |
"from the traditional WordPress dashboard into your theme."
|
| 2194 |
msgstr ""
|
| 2195 |
|
| 2196 |
+
#: includes/admin/settings.php:1890
|
| 2197 |
msgid ""
|
| 2198 |
"Auto-embed will embed the media content from a URL directly into the "
|
| 2199 |
"replies. For example: links to Flickr and YouTube."
|
| 2200 |
msgstr ""
|
| 2201 |
|
| 2202 |
+
#: includes/admin/settings.php:1893
|
| 2203 |
msgid ""
|
| 2204 |
"You must click the Save Changes button at the bottom of the screen for new "
|
| 2205 |
"settings to take effect."
|
| 2206 |
msgstr ""
|
| 2207 |
|
| 2208 |
+
#: includes/admin/settings.php:1899
|
| 2209 |
msgid "Theme Packages"
|
| 2210 |
msgstr ""
|
| 2211 |
|
| 2212 |
+
#: includes/admin/settings.php:1900
|
| 2213 |
msgid ""
|
| 2214 |
"The \"Theme Packages\" section allows you to choose which theme package "
|
| 2215 |
"should be used."
|
| 2216 |
msgstr ""
|
| 2217 |
|
| 2218 |
+
#: includes/admin/settings.php:1903
|
| 2219 |
msgid "The \"bbPress Default\" package is installed by default."
|
| 2220 |
msgstr ""
|
| 2221 |
|
| 2222 |
+
#: includes/admin/settings.php:1904
|
| 2223 |
msgid "Some themes may choose to ignore this setting entirely."
|
| 2224 |
msgstr ""
|
| 2225 |
|
| 2226 |
+
#: includes/admin/settings.php:1905
|
| 2227 |
msgid "Packages can be stacked to allow for intelligent fallbacks."
|
| 2228 |
msgstr ""
|
| 2229 |
|
| 2230 |
+
#: includes/admin/settings.php:1913
|
| 2231 |
msgid "Per Page"
|
| 2232 |
msgstr ""
|
| 2233 |
|
| 2234 |
+
#: includes/admin/settings.php:1914
|
| 2235 |
msgid ""
|
| 2236 |
"The \"Per Page\" section allows you to control the number of topics and "
|
| 2237 |
"replies appear on each page."
|
| 2238 |
msgstr ""
|
| 2239 |
|
| 2240 |
+
#: includes/admin/settings.php:1916
|
| 2241 |
msgid ""
|
| 2242 |
"This is comparable to the WordPress \"Reading Settings\" page, where you "
|
| 2243 |
"can set the number of posts that should show on blog pages and in feeds."
|
| 2244 |
msgstr ""
|
| 2245 |
|
| 2246 |
+
#: includes/admin/settings.php:1917
|
| 2247 |
msgid ""
|
| 2248 |
"These are broken up into two separate groups: one for what appears in your "
|
| 2249 |
"theme, another for RSS feeds."
|
| 2250 |
msgstr ""
|
| 2251 |
|
| 2252 |
+
#: includes/admin/settings.php:1925
|
| 2253 |
msgid "Slugs"
|
| 2254 |
msgstr ""
|
| 2255 |
|
| 2256 |
+
#: includes/admin/settings.php:1926
|
| 2257 |
msgid ""
|
| 2258 |
"The \"Slugs\" section allows you to control the permalink structure for "
|
| 2259 |
"your forums."
|
| 2260 |
msgstr ""
|
| 2261 |
|
| 2262 |
+
#: includes/admin/settings.php:1928
|
| 2263 |
msgid ""
|
| 2264 |
"\"Archive Slugs\" are used as the \"root\" for your forums and topics. If "
|
| 2265 |
"you combine these values with existing page slugs, bbPress will attempt to "
|
| 2266 |
"output the most correct title and content."
|
| 2267 |
msgstr ""
|
| 2268 |
|
| 2269 |
+
#: includes/admin/settings.php:1929
|
| 2270 |
msgid ""
|
| 2271 |
"\"Single Slugs\" are used as a prefix when viewing an individual forum, "
|
| 2272 |
"topic, reply, user, or view."
|
| 2273 |
msgstr ""
|
| 2274 |
|
| 2275 |
+
#: includes/admin/settings.php:1930
|
| 2276 |
msgid ""
|
| 2277 |
"In the event of a slug collision with WordPress or BuddyPress, a warning "
|
| 2278 |
"will appear next to the problem slug(s)."
|
| 2279 |
msgstr ""
|
| 2280 |
|
| 2281 |
+
#: includes/admin/settings.php:2024
|
| 2282 |
#: templates/default/bbpress/loop-forums.php:24
|
| 2283 |
#: templates/default/bbpress/loop-replies.php:21
|
| 2284 |
#: templates/default/bbpress/loop-replies.php:47
|
| 2286 |
msgid "Posts"
|
| 2287 |
msgstr ""
|
| 2288 |
|
| 2289 |
+
#: includes/admin/settings.php:2025
|
| 2290 |
msgid "Pages"
|
| 2291 |
msgstr ""
|
| 2292 |
|
| 2293 |
+
#: includes/admin/settings.php:2027
|
| 2294 |
msgid "Attachments"
|
| 2295 |
msgstr ""
|
| 2296 |
|
| 2297 |
+
#: includes/admin/settings.php:2028
|
| 2298 |
msgid "Menus"
|
| 2299 |
msgstr ""
|
| 2300 |
|
| 2301 |
+
#: includes/admin/settings.php:2031
|
| 2302 |
msgid "Tag base"
|
| 2303 |
msgstr ""
|
| 2304 |
|
| 2305 |
+
#: includes/admin/settings.php:2034
|
| 2306 |
msgid "Category base"
|
| 2307 |
msgstr ""
|
| 2308 |
|
| 2309 |
+
#: includes/admin/settings.php:2039
|
| 2310 |
msgid "Forums base"
|
| 2311 |
msgstr ""
|
| 2312 |
|
| 2313 |
+
#: includes/admin/settings.php:2042
|
| 2314 |
msgid "Topics base"
|
| 2315 |
msgstr ""
|
| 2316 |
|
| 2317 |
+
#: includes/admin/settings.php:2045
|
| 2318 |
msgid "Forum slug"
|
| 2319 |
msgstr ""
|
| 2320 |
|
| 2321 |
+
#: includes/admin/settings.php:2048
|
| 2322 |
msgid "Topic slug"
|
| 2323 |
msgstr ""
|
| 2324 |
|
| 2325 |
+
#: includes/admin/settings.php:2051
|
| 2326 |
msgid "Reply slug"
|
| 2327 |
msgstr ""
|
| 2328 |
|
| 2329 |
+
#: includes/admin/settings.php:2054
|
| 2330 |
msgid "Edit slug"
|
| 2331 |
msgstr ""
|
| 2332 |
|
| 2333 |
+
#: includes/admin/settings.php:2057
|
| 2334 |
msgid "User base"
|
| 2335 |
msgstr ""
|
| 2336 |
|
| 2337 |
+
#: includes/admin/settings.php:2060
|
| 2338 |
msgid "View base"
|
| 2339 |
msgstr ""
|
| 2340 |
|
| 2341 |
+
#: includes/admin/settings.php:2063
|
| 2342 |
msgid "Topic tag slug"
|
| 2343 |
msgstr ""
|
| 2344 |
|
| 2345 |
+
#: includes/admin/settings.php:2075
|
| 2346 |
msgid "%s page"
|
| 2347 |
msgstr ""
|
| 2348 |
|
| 2349 |
+
#: includes/admin/settings.php:2098
|
| 2350 |
msgid "Possible %1$s conflict: %2$s"
|
| 2351 |
msgstr ""
|
| 2352 |
|
| 3593 |
msgstr ""
|
| 3594 |
|
| 3595 |
#: includes/admin/users.php:98 includes/admin/users.php:282
|
| 3596 |
+
#: includes/users/signups.php:30
|
| 3597 |
#: templates/default/bbpress/form-user-roles.php:23
|
| 3598 |
msgid "Forum Role"
|
| 3599 |
msgstr ""
|
| 3615 |
msgid "Site Role"
|
| 3616 |
msgstr ""
|
| 3617 |
|
| 3618 |
+
#: includes/common/formatting.php:646
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3619 |
msgid "sometime"
|
| 3620 |
msgstr ""
|
| 3621 |
|
| 3622 |
+
#: includes/common/formatting.php:647
|
| 3623 |
msgid "right now"
|
| 3624 |
msgstr ""
|
| 3625 |
|
| 3626 |
+
#: includes/common/formatting.php:648
|
| 3627 |
msgid "%s ago"
|
| 3628 |
msgstr ""
|
| 3629 |
|
| 3630 |
+
#: includes/common/formatting.php:652
|
| 3631 |
msgid "%s year"
|
| 3632 |
msgid_plural "%s years"
|
| 3633 |
msgstr[0] ""
|
| 3634 |
msgstr[1] ""
|
| 3635 |
|
| 3636 |
+
#: includes/common/formatting.php:653
|
| 3637 |
msgid "%s month"
|
| 3638 |
msgid_plural "%s months"
|
| 3639 |
msgstr[0] ""
|
| 3640 |
msgstr[1] ""
|
| 3641 |
|
| 3642 |
+
#: includes/common/formatting.php:654
|
| 3643 |
msgid "%s week"
|
| 3644 |
msgid_plural "%s weeks"
|
| 3645 |
msgstr[0] ""
|
| 3646 |
msgstr[1] ""
|
| 3647 |
|
| 3648 |
+
#: includes/common/formatting.php:655
|
| 3649 |
msgid "%s day"
|
| 3650 |
msgid_plural "%s days"
|
| 3651 |
msgstr[0] ""
|
| 3652 |
msgstr[1] ""
|
| 3653 |
|
| 3654 |
+
#: includes/common/formatting.php:656
|
| 3655 |
msgid "%s hour"
|
| 3656 |
msgid_plural "%s hours"
|
| 3657 |
msgstr[0] ""
|
| 3658 |
msgstr[1] ""
|
| 3659 |
|
| 3660 |
+
#: includes/common/formatting.php:657
|
| 3661 |
msgid "%s minute"
|
| 3662 |
msgid_plural "%s minutes"
|
| 3663 |
msgstr[0] ""
|
| 3664 |
msgstr[1] ""
|
| 3665 |
|
| 3666 |
+
#: includes/common/formatting.php:658
|
| 3667 |
msgid "%s second"
|
| 3668 |
msgid_plural "%s seconds"
|
| 3669 |
msgstr[0] ""
|
| 3723 |
"Login and visit the topic to unsubscribe from these emails."
|
| 3724 |
msgstr ""
|
| 3725 |
|
| 3726 |
+
#: includes/common/template.php:1157
|
| 3727 |
+
msgid ""
|
| 3728 |
+
"Conditional query tags do not work before the query is run. Before then, "
|
| 3729 |
+
"they always return false."
|
| 3730 |
+
msgstr ""
|
| 3731 |
+
|
| 3732 |
+
#: includes/common/template.php:1629
|
| 3733 |
msgid "No topics available"
|
| 3734 |
msgstr ""
|
| 3735 |
|
| 3736 |
+
#: includes/common/template.php:1634
|
| 3737 |
msgid "No forums available"
|
| 3738 |
msgstr ""
|
| 3739 |
|
| 3740 |
+
#: includes/common/template.php:1639
|
| 3741 |
msgid "None available"
|
| 3742 |
msgstr ""
|
| 3743 |
|
| 3744 |
+
#: includes/common/template.php:2253
|
| 3745 |
msgid "Home"
|
| 3746 |
msgstr ""
|
| 3747 |
|
| 3748 |
+
#: includes/common/template.php:2323
|
| 3749 |
msgid "(Edit)"
|
| 3750 |
msgstr ""
|
| 3751 |
|
| 3752 |
+
#: includes/common/template.php:2327 includes/common/template.php:2442
|
| 3753 |
+
#: includes/common/template.php:2687 includes/core/theme-compat.php:794
|
| 3754 |
#: templates/default/extras/taxonomy-topic-tag-edit.php:17
|
| 3755 |
#: templates/default/extras/taxonomy-topic-tag.php:17
|
| 3756 |
msgid "Topic Tag: %s"
|
| 3757 |
msgstr ""
|
| 3758 |
|
| 3759 |
+
#: includes/common/template.php:2348
|
| 3760 |
msgid "‹"
|
| 3761 |
msgstr ""
|
| 3762 |
|
| 3763 |
+
#: includes/common/template.php:2348
|
| 3764 |
msgid "›"
|
| 3765 |
msgstr ""
|
| 3766 |
|
| 3767 |
+
#: includes/common/template.php:2611
|
| 3768 |
msgid "Log Out"
|
| 3769 |
msgstr ""
|
| 3770 |
|
| 3771 |
+
#: includes/common/template.php:2651
|
| 3772 |
msgid "Forum Edit: %s"
|
| 3773 |
msgstr ""
|
| 3774 |
|
| 3775 |
+
#: includes/common/template.php:2656
|
| 3776 |
msgid "Topic Edit: %s"
|
| 3777 |
msgstr ""
|
| 3778 |
|
| 3779 |
+
#: includes/common/template.php:2661
|
| 3780 |
msgid "Reply Edit: %s"
|
| 3781 |
msgstr ""
|
| 3782 |
|
| 3783 |
+
#: includes/common/template.php:2666
|
| 3784 |
msgid "Topic Tag Edit: %s"
|
| 3785 |
msgstr ""
|
| 3786 |
|
| 3787 |
+
#: includes/common/template.php:2673
|
| 3788 |
msgid "Forum: %s"
|
| 3789 |
msgstr ""
|
| 3790 |
|
| 3791 |
+
#: includes/common/template.php:2678
|
| 3792 |
msgid "Topic: %s"
|
| 3793 |
msgstr ""
|
| 3794 |
|
| 3795 |
+
#: includes/common/template.php:2700
|
| 3796 |
msgid "Your Topics"
|
| 3797 |
msgstr ""
|
| 3798 |
|
| 3799 |
+
#: includes/common/template.php:2704
|
| 3800 |
#. translators: user's display name
|
| 3801 |
msgid "%s's Topics"
|
| 3802 |
msgstr ""
|
| 3803 |
|
| 3804 |
+
#: includes/common/template.php:2710
|
| 3805 |
msgid "Your Replies"
|
| 3806 |
msgstr ""
|
| 3807 |
|
| 3808 |
+
#: includes/common/template.php:2714
|
| 3809 |
#. translators: user's display name
|
| 3810 |
msgid "%s's Replies"
|
| 3811 |
msgstr ""
|
| 3812 |
|
| 3813 |
+
#: includes/common/template.php:2720
|
| 3814 |
msgid "Your Favorites"
|
| 3815 |
msgstr ""
|
| 3816 |
|
| 3817 |
+
#: includes/common/template.php:2724
|
| 3818 |
#: templates/default/bbpress/user-details.php:57
|
| 3819 |
#. translators: user's display name
|
| 3820 |
msgid "%s's Favorites"
|
| 3821 |
msgstr ""
|
| 3822 |
|
| 3823 |
+
#: includes/common/template.php:2730
|
| 3824 |
msgid "Your Subscriptions"
|
| 3825 |
msgstr ""
|
| 3826 |
|
| 3827 |
+
#: includes/common/template.php:2734
|
| 3828 |
#: templates/default/bbpress/user-details.php:67
|
| 3829 |
#. translators: user's display name
|
| 3830 |
msgid "%s's Subscriptions"
|
| 3831 |
msgstr ""
|
| 3832 |
|
| 3833 |
+
#: includes/common/template.php:2740
|
| 3834 |
msgid "Your Profile"
|
| 3835 |
msgstr ""
|
| 3836 |
|
| 3837 |
+
#: includes/common/template.php:2744
|
| 3838 |
#: templates/default/bbpress/user-details.php:30
|
| 3839 |
#. translators: user's display name
|
| 3840 |
msgid "%s's Profile"
|
| 3841 |
msgstr ""
|
| 3842 |
|
| 3843 |
+
#: includes/common/template.php:2753
|
| 3844 |
msgid "Edit Your Profile"
|
| 3845 |
msgstr ""
|
| 3846 |
|
| 3847 |
+
#: includes/common/template.php:2758
|
| 3848 |
#: templates/default/bbpress/user-details.php:74
|
| 3849 |
msgid "Edit %s's Profile"
|
| 3850 |
msgstr ""
|
| 3851 |
|
| 3852 |
+
#: includes/common/template.php:2766
|
| 3853 |
msgid "View: %s"
|
| 3854 |
msgstr ""
|
| 3855 |
|
| 4825 |
msgid "Search Results for '%s'"
|
| 4826 |
msgstr ""
|
| 4827 |
|
| 4828 |
+
#: includes/search/template.php:414
|
| 4829 |
msgid "Viewing %1$s result"
|
| 4830 |
msgid_plural "Viewing %1$s results"
|
| 4831 |
msgstr[0] ""
|
| 4832 |
msgstr[1] ""
|
| 4833 |
|
| 4834 |
+
#: includes/search/template.php:418
|
| 4835 |
msgid "Viewing %2$s results (of %4$s total)"
|
| 4836 |
msgid_plural "Viewing %1$s results - %2$s through %3$s (of %4$s total)"
|
| 4837 |
msgstr[0] ""
|
| 5348 |
msgid "[%s] New Email Address"
|
| 5349 |
msgstr ""
|
| 5350 |
|
| 5351 |
+
#: includes/users/signups.php:209
|
| 5352 |
+
msgid "<strong>ERROR</strong>: Empty role."
|
| 5353 |
+
msgstr ""
|
| 5354 |
+
|
| 5355 |
+
#: includes/users/signups.php:214
|
| 5356 |
+
msgid "<strong>ERROR</strong>: Invalid role."
|
| 5357 |
+
msgstr ""
|
| 5358 |
+
|
| 5359 |
#: includes/users/template.php:677
|
| 5360 |
msgid "Guest"
|
| 5361 |
msgstr ""
|
| 6133 |
msgid "The bbPress Contributors"
|
| 6134 |
msgstr ""
|
| 6135 |
|
| 6136 |
+
#: bbpress.php:599
|
| 6137 |
msgctxt "post"
|
| 6138 |
msgid "Closed"
|
| 6139 |
msgstr ""
|
| 6140 |
|
| 6141 |
+
#: bbpress.php:600
|
| 6142 |
msgctxt "post"
|
| 6143 |
msgid "Closed <span class=\"count\">(%s)</span>"
|
| 6144 |
msgid_plural "Closed <span class=\"count\">(%s)</span>"
|
| 6145 |
msgstr[0] ""
|
| 6146 |
msgstr[1] ""
|
| 6147 |
|
| 6148 |
+
#: bbpress.php:612
|
| 6149 |
msgctxt "post"
|
| 6150 |
msgid "Spam"
|
| 6151 |
msgstr ""
|
| 6152 |
|
| 6153 |
+
#: bbpress.php:613
|
| 6154 |
msgctxt "post"
|
| 6155 |
msgid "Spam <span class=\"count\">(%s)</span>"
|
| 6156 |
msgid_plural "Spam <span class=\"count\">(%s)</span>"
|
| 6157 |
msgstr[0] ""
|
| 6158 |
msgstr[1] ""
|
| 6159 |
|
| 6160 |
+
#: bbpress.php:626
|
| 6161 |
msgctxt "post"
|
| 6162 |
msgid "Orphan"
|
| 6163 |
msgstr ""
|
| 6164 |
|
| 6165 |
+
#: bbpress.php:627
|
| 6166 |
msgctxt "post"
|
| 6167 |
msgid "Orphan <span class=\"count\">(%s)</span>"
|
| 6168 |
msgid_plural "Orphans <span class=\"count\">(%s)</span>"
|
| 6169 |
msgstr[0] ""
|
| 6170 |
msgstr[1] ""
|
| 6171 |
|
| 6172 |
+
#: bbpress.php:640
|
| 6173 |
msgctxt "post"
|
| 6174 |
msgid "Hidden"
|
| 6175 |
msgstr ""
|
| 6176 |
|
| 6177 |
+
#: bbpress.php:641
|
| 6178 |
msgctxt "post"
|
| 6179 |
msgid "Hidden <span class=\"count\">(%s)</span>"
|
| 6180 |
msgid_plural "Hidden <span class=\"count\">(%s)</span>"
|
| 6181 |
msgstr[0] ""
|
| 6182 |
msgstr[1] ""
|
| 6183 |
|
| 6184 |
+
#: includes/admin/classes/class-bbp-admin.php:834
|
| 6185 |
msgctxt "admin color scheme"
|
| 6186 |
msgid "Mint"
|
| 6187 |
msgstr ""
|
| 6188 |
|
| 6189 |
+
#: includes/admin/classes/class-bbp-admin.php:843
|
| 6190 |
msgctxt "admin color scheme"
|
| 6191 |
msgid "Evergreen"
|
| 6192 |
msgstr ""
|
| 6211 |
msgid "Approve"
|
| 6212 |
msgstr ""
|
| 6213 |
|
| 6214 |
+
#: includes/admin/settings.php:384 includes/replies/template.php:51
|
| 6215 |
msgctxt "noun"
|
| 6216 |
msgid "Reply"
|
| 6217 |
msgstr ""
|
| 6236 |
msgid "Open"
|
| 6237 |
msgstr ""
|
| 6238 |
|
| 6239 |
+
#: includes/common/formatting.php:724
|
| 6240 |
msgctxt "Separator in time since"
|
| 6241 |
msgid ","
|
| 6242 |
msgstr ""
|
includes/admin/assets/js/common.js
CHANGED
|
@@ -5,6 +5,7 @@ jQuery( document ).ready( function() {
|
|
| 5 |
bbp_author_id.suggest(
|
| 6 |
bbp_author_id.data( 'ajax-url' ),
|
| 7 |
{
|
|
|
|
| 8 |
onSelect: function() {
|
| 9 |
var value = this.value;
|
| 10 |
bbp_author_id.val( value.substr( 0, value.indexOf( ' ' ) ) );
|
| 5 |
bbp_author_id.suggest(
|
| 6 |
bbp_author_id.data( 'ajax-url' ),
|
| 7 |
{
|
| 8 |
+
minchars: 1, // Allow single-digit user IDs
|
| 9 |
onSelect: function() {
|
| 10 |
var value = this.value;
|
| 11 |
bbp_author_id.val( value.substr( 0, value.indexOf( ' ' ) ) );
|
includes/admin/assets/js/common.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
/*! This file is automatically generated. */
|
| 2 |
|
| 3 |
-
jQuery(document).ready(function(){var a=jQuery("#bbp_author_id");a.suggest(a.data("ajax-url"),{onSelect:function(){var u=this.value;a.val(u.substr(0,u.indexOf(" ")))}})});
|
| 1 |
/*! This file is automatically generated. */
|
| 2 |
|
| 3 |
+
jQuery(document).ready(function(){var a=jQuery("#bbp_author_id");a.suggest(a.data("ajax-url"),{minchars:1,onSelect:function(){var u=this.value;a.val(u.substr(0,u.indexOf(" ")))}})});
|
includes/admin/classes/class-bbp-admin.php
CHANGED
|
@@ -586,6 +586,11 @@ class BBP_Admin {
|
|
| 586 |
// Loop through fields for this section
|
| 587 |
foreach ( (array) $fields as $field_id => $field ) {
|
| 588 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 589 |
// Add the field
|
| 590 |
if ( ! empty( $field['callback'] ) && ! empty( $field['title'] ) ) {
|
| 591 |
add_settings_field( $field_id, $field['title'], $field['callback'], $page, $section_id, $field['args'] );
|
|
@@ -891,29 +896,46 @@ class BBP_Admin {
|
|
| 891 |
*/
|
| 892 |
public function suggest_topic() {
|
| 893 |
|
| 894 |
-
//
|
| 895 |
-
|
| 896 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 897 |
}
|
| 898 |
|
| 899 |
-
// Bail if user cannot moderate
|
| 900 |
if ( ! current_user_can( 'moderate' ) ) {
|
| 901 |
-
wp_die(
|
| 902 |
}
|
| 903 |
|
| 904 |
// Check the ajax nonce
|
| 905 |
check_ajax_referer( 'bbp_suggest_topic_nonce' );
|
| 906 |
|
|
|
|
|
|
|
|
|
|
| 907 |
// Try to get some topics
|
| 908 |
$topics = get_posts( array(
|
| 909 |
-
's'
|
| 910 |
-
'post_type'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 911 |
) );
|
| 912 |
|
| 913 |
// If we found some topics, loop through and display them
|
| 914 |
if ( ! empty( $topics ) ) {
|
| 915 |
foreach ( (array) $topics as $post ) {
|
| 916 |
-
printf( esc_html__( '%s - %s', 'bbpress' ), bbp_get_topic_id( $post->ID ), bbp_get_topic_title( $post->ID ) . "\n" );
|
| 917 |
}
|
| 918 |
}
|
| 919 |
die();
|
|
@@ -926,31 +948,74 @@ class BBP_Admin {
|
|
| 926 |
*/
|
| 927 |
public function suggest_user() {
|
| 928 |
|
| 929 |
-
//
|
| 930 |
-
|
| 931 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 932 |
}
|
| 933 |
|
| 934 |
-
// Bail if user cannot moderate
|
| 935 |
if ( ! current_user_can( 'moderate' ) ) {
|
| 936 |
-
wp_die(
|
| 937 |
}
|
| 938 |
|
| 939 |
// Check the ajax nonce
|
| 940 |
check_ajax_referer( 'bbp_suggest_user_nonce' );
|
| 941 |
|
| 942 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 943 |
$users_query = new WP_User_Query( array(
|
| 944 |
-
'search' => '*' . bbp_db()->esc_like( $
|
| 945 |
-
'fields' =>
|
| 946 |
-
'search_columns' =>
|
| 947 |
-
'orderby' => 'ID'
|
|
|
|
|
|
|
| 948 |
) );
|
| 949 |
|
| 950 |
-
// If we found some users, loop through and
|
| 951 |
if ( ! empty( $users_query->results ) ) {
|
| 952 |
foreach ( (array) $users_query->results as $user ) {
|
| 953 |
-
printf( esc_html__( '%s - %s', 'bbpress' ), bbp_get_user_id( $user->ID ), bbp_get_user_nicename( $user->ID, array( 'force' => $user->user_nicename ) ) . "\n" );
|
| 954 |
}
|
| 955 |
}
|
| 956 |
die();
|
| 586 |
// Loop through fields for this section
|
| 587 |
foreach ( (array) $fields as $field_id => $field ) {
|
| 588 |
|
| 589 |
+
// Skip field if user is not capable
|
| 590 |
+
if ( ! empty( $field['capability'] ) && ! current_user_can( $field['capability'] ) ) {
|
| 591 |
+
continue;
|
| 592 |
+
}
|
| 593 |
+
|
| 594 |
// Add the field
|
| 595 |
if ( ! empty( $field['callback'] ) && ! empty( $field['title'] ) ) {
|
| 596 |
add_settings_field( $field_id, $field['title'], $field['callback'], $page, $section_id, $field['args'] );
|
| 896 |
*/
|
| 897 |
public function suggest_topic() {
|
| 898 |
|
| 899 |
+
// Do some very basic request checking
|
| 900 |
+
$request = ! empty( $_REQUEST['q'] )
|
| 901 |
+
? trim( $_REQUEST['q'] )
|
| 902 |
+
: '';
|
| 903 |
+
|
| 904 |
+
// Bail early if empty request
|
| 905 |
+
if ( empty( $request ) ) {
|
| 906 |
+
wp_die();
|
| 907 |
}
|
| 908 |
|
| 909 |
+
// Bail if user cannot moderate
|
| 910 |
if ( ! current_user_can( 'moderate' ) ) {
|
| 911 |
+
wp_die();
|
| 912 |
}
|
| 913 |
|
| 914 |
// Check the ajax nonce
|
| 915 |
check_ajax_referer( 'bbp_suggest_topic_nonce' );
|
| 916 |
|
| 917 |
+
// Allow the maximum number of results to be filtered
|
| 918 |
+
$number = (int) apply_filters( 'bbp_suggest_topic_count', 10 );
|
| 919 |
+
|
| 920 |
// Try to get some topics
|
| 921 |
$topics = get_posts( array(
|
| 922 |
+
's' => bbp_db()->esc_like( $_REQUEST['q'] ),
|
| 923 |
+
'post_type' => bbp_get_topic_post_type(),
|
| 924 |
+
'posts_per_page' => $number,
|
| 925 |
+
|
| 926 |
+
// Performance
|
| 927 |
+
'nopaging' => true,
|
| 928 |
+
'suppress_filters' => true,
|
| 929 |
+
'update_post_term_cache' => false,
|
| 930 |
+
'update_post_meta_cache' => false,
|
| 931 |
+
'ignore_sticky_posts' => true,
|
| 932 |
+
'no_found_rows' => true
|
| 933 |
) );
|
| 934 |
|
| 935 |
// If we found some topics, loop through and display them
|
| 936 |
if ( ! empty( $topics ) ) {
|
| 937 |
foreach ( (array) $topics as $post ) {
|
| 938 |
+
printf( esc_html__( '%1$s - %2$s', 'bbpress' ), bbp_get_topic_id( $post->ID ), bbp_get_topic_title( $post->ID ) . "\n" );
|
| 939 |
}
|
| 940 |
}
|
| 941 |
die();
|
| 948 |
*/
|
| 949 |
public function suggest_user() {
|
| 950 |
|
| 951 |
+
// Do some very basic request checking
|
| 952 |
+
$request = ! empty( $_REQUEST['q'] )
|
| 953 |
+
? trim( $_REQUEST['q'] )
|
| 954 |
+
: '';
|
| 955 |
+
|
| 956 |
+
// Bail early if empty request
|
| 957 |
+
if ( empty( $request ) ) {
|
| 958 |
+
wp_die();
|
| 959 |
}
|
| 960 |
|
| 961 |
+
// Bail if user cannot moderate
|
| 962 |
if ( ! current_user_can( 'moderate' ) ) {
|
| 963 |
+
wp_die();
|
| 964 |
}
|
| 965 |
|
| 966 |
// Check the ajax nonce
|
| 967 |
check_ajax_referer( 'bbp_suggest_user_nonce' );
|
| 968 |
|
| 969 |
+
// Fields to retrieve & search by
|
| 970 |
+
$fields = $search = array( 'ID', 'user_nicename' );
|
| 971 |
+
|
| 972 |
+
// Keymasters & Super-Mods can also search by email
|
| 973 |
+
if ( current_user_can( 'keep_gate' ) || bbp_allow_super_mods() ) {
|
| 974 |
+
|
| 975 |
+
// Add user_email to searchable columns
|
| 976 |
+
array_push( $search, 'user_email' );
|
| 977 |
+
|
| 978 |
+
// Unstrict to also allow some email characters
|
| 979 |
+
$strict = false;
|
| 980 |
+
|
| 981 |
+
// Strict sanitizing if not Keymaster or Super-Mod
|
| 982 |
+
} else {
|
| 983 |
+
$strict = true;
|
| 984 |
+
}
|
| 985 |
+
|
| 986 |
+
// Sanitize the request value (possibly not strictly)
|
| 987 |
+
$suggest = sanitize_user( $request, $strict );
|
| 988 |
+
|
| 989 |
+
// Bail if searching for invalid user string
|
| 990 |
+
if ( empty( $suggest ) ) {
|
| 991 |
+
wp_die();
|
| 992 |
+
}
|
| 993 |
+
|
| 994 |
+
// These single characters should not trigger a user query
|
| 995 |
+
$disallowed_single_chars = array( '@', '.', '_', '-', '+', '!', '#', '$', '%', '&', '\\', '*', '+', '/', '=', '?', '^', '`', '{', '|', '}', '~' );
|
| 996 |
+
|
| 997 |
+
// Bail if request is only for the above single characters
|
| 998 |
+
if ( in_array( $suggest, $disallowed_single_chars, true ) ) {
|
| 999 |
+
wp_die();
|
| 1000 |
+
}
|
| 1001 |
+
|
| 1002 |
+
// Allow the maximum number of results to be filtered
|
| 1003 |
+
$number = (int) apply_filters( 'bbp_suggest_user_count', 10 );
|
| 1004 |
+
|
| 1005 |
+
// Query database for users based on above criteria
|
| 1006 |
$users_query = new WP_User_Query( array(
|
| 1007 |
+
'search' => '*' . bbp_db()->esc_like( $suggest ) . '*',
|
| 1008 |
+
'fields' => $fields,
|
| 1009 |
+
'search_columns' => $search,
|
| 1010 |
+
'orderby' => 'ID',
|
| 1011 |
+
'number' => $number,
|
| 1012 |
+
'count_total' => false
|
| 1013 |
) );
|
| 1014 |
|
| 1015 |
+
// If we found some users, loop through and output them to the AJAX
|
| 1016 |
if ( ! empty( $users_query->results ) ) {
|
| 1017 |
foreach ( (array) $users_query->results as $user ) {
|
| 1018 |
+
printf( esc_html__( '%1$s - %2$s', 'bbpress' ), bbp_get_user_id( $user->ID ), bbp_get_user_nicename( $user->ID, array( 'force' => $user->user_nicename ) ) . "\n" );
|
| 1019 |
}
|
| 1020 |
}
|
| 1021 |
die();
|
includes/admin/forums.php
CHANGED
|
@@ -635,8 +635,17 @@ class BBP_Forums_Admin {
|
|
| 635 |
}
|
| 636 |
}
|
| 637 |
|
| 638 |
-
//
|
| 639 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 640 |
|
| 641 |
// Sort & return
|
| 642 |
return $this->sort_row_actions( $actions );
|
| 635 |
}
|
| 636 |
}
|
| 637 |
|
| 638 |
+
// Only show content if user can read it and there is no password
|
| 639 |
+
if ( current_user_can( 'read_forum', $forum->ID ) && ! post_password_required( $forum ) ) {
|
| 640 |
+
|
| 641 |
+
// Get the forum description
|
| 642 |
+
$content = bbp_get_forum_content( $forum->ID );
|
| 643 |
+
|
| 644 |
+
// Only proceed if there is a description
|
| 645 |
+
if ( ! empty( $content ) ) {
|
| 646 |
+
echo '<div class="bbp-escaped-content">' . esc_html( wp_trim_excerpt( $content, $forum ) ) . '</div>';
|
| 647 |
+
}
|
| 648 |
+
}
|
| 649 |
|
| 650 |
// Sort & return
|
| 651 |
return $this->sort_row_actions( $actions );
|
includes/admin/settings.php
CHANGED
|
@@ -163,6 +163,28 @@ function bbp_admin_get_settings_fields() {
|
|
| 163 |
|
| 164 |
'bbp_settings_features' => array(
|
| 165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
// Allow topic and reply revisions
|
| 167 |
'_bbp_allow_revisions' => array(
|
| 168 |
'title' => esc_html__( 'Revisions', 'bbpress' ),
|
|
@@ -203,22 +225,6 @@ function bbp_admin_get_settings_fields() {
|
|
| 203 |
'args' => array()
|
| 204 |
),
|
| 205 |
|
| 206 |
-
// Allow per-forum moderators
|
| 207 |
-
'_bbp_allow_forum_mods' => array(
|
| 208 |
-
'title' => esc_html__( 'Forum Moderators', 'bbpress' ),
|
| 209 |
-
'callback' => 'bbp_admin_setting_callback_forum_mods',
|
| 210 |
-
'sanitize_callback' => 'intval',
|
| 211 |
-
'args' => array()
|
| 212 |
-
),
|
| 213 |
-
|
| 214 |
-
// Allow moderators to edit users
|
| 215 |
-
'_bbp_allow_super_mods' => array(
|
| 216 |
-
'title' => esc_html__( 'Super Moderators', 'bbpress' ),
|
| 217 |
-
'callback' => 'bbp_admin_setting_callback_super_mods',
|
| 218 |
-
'sanitize_callback' => 'intval',
|
| 219 |
-
'args' => array()
|
| 220 |
-
),
|
| 221 |
-
|
| 222 |
// Allow topic tags
|
| 223 |
'_bbp_allow_search' => array(
|
| 224 |
'title' => esc_html__( 'Search', 'bbpress' ),
|
|
@@ -235,25 +241,20 @@ function bbp_admin_get_settings_fields() {
|
|
| 235 |
'sanitize_callback' => 'intval'
|
| 236 |
),
|
| 237 |
|
| 238 |
-
// Allow
|
| 239 |
-
'
|
| 240 |
-
'title' => esc_html__( '
|
| 241 |
-
'callback' => '
|
| 242 |
-
'sanitize_callback' => 'intval',
|
| 243 |
-
'args' => array()
|
| 244 |
-
),
|
| 245 |
-
|
| 246 |
-
// Set reply threading level
|
| 247 |
-
'_bbp_thread_replies_depth' => array(
|
| 248 |
-
'title' => esc_html__( 'Reply Threading', 'bbpress' ),
|
| 249 |
-
'callback' => 'bbp_admin_setting_callback_thread_replies_depth',
|
| 250 |
'sanitize_callback' => 'intval',
|
| 251 |
'args' => array()
|
| 252 |
),
|
| 253 |
|
| 254 |
-
// Allow
|
| 255 |
-
'
|
|
|
|
|
|
|
| 256 |
'sanitize_callback' => 'intval',
|
|
|
|
| 257 |
'args' => array()
|
| 258 |
)
|
| 259 |
),
|
|
@@ -837,6 +838,7 @@ function bbp_admin_setting_callback_forum_mods() {
|
|
| 837 |
|
| 838 |
<input name="_bbp_allow_forum_mods" id="_bbp_allow_forum_mods" type="checkbox" value="1" <?php checked( bbp_allow_forum_mods( true ) ); bbp_maybe_admin_setting_disabled( '_bbp_allow_forum_mods' ); ?> />
|
| 839 |
<label for="_bbp_allow_forum_mods"><?php esc_html_e( 'Allow forums to have dedicated moderators', 'bbpress' ); ?></label>
|
|
|
|
| 840 |
|
| 841 |
<?php
|
| 842 |
}
|
|
@@ -850,7 +852,8 @@ function bbp_admin_setting_callback_super_mods() {
|
|
| 850 |
?>
|
| 851 |
|
| 852 |
<input name="_bbp_allow_super_mods" id="_bbp_allow_super_mods" type="checkbox" value="1" <?php checked( bbp_allow_super_mods( false ) ); bbp_maybe_admin_setting_disabled( '_bbp_allow_super_mods' ); ?> />
|
| 853 |
-
<label for="_bbp_allow_super_mods"><?php esc_html_e( 'Allow
|
|
|
|
| 854 |
|
| 855 |
<?php
|
| 856 |
}
|
|
@@ -968,7 +971,7 @@ function bbp_admin_setting_callback_subtheme_id() {
|
|
| 968 |
|
| 969 |
if ( ! empty( $theme_options ) ) : ?>
|
| 970 |
|
| 971 |
-
<select name="_bbp_theme_package_id" id="_bbp_theme_package_id" <?php bbp_maybe_admin_setting_disabled( '_bbp_theme_package_id' ); ?>><?php echo $theme_options ?></select>
|
| 972 |
<label for="_bbp_theme_package_id"><?php esc_html_e( 'will serve all bbPress templates', 'bbpress' ); ?></label>
|
| 973 |
|
| 974 |
<?php else : ?>
|
|
@@ -1464,7 +1467,7 @@ function bbp_admin_setting_callback_group_forums_root_id() {
|
|
| 1464 |
|
| 1465 |
// Button & text
|
| 1466 |
$button = '<a href="' . esc_url( $new_url ) . '">' . esc_html__( 'create a new one', 'bbpress' ) . '</a>';
|
| 1467 |
-
$text = esc_html__( 'Use %s to contain your group forums, or %s', 'bbpress' );
|
| 1468 |
} else {
|
| 1469 |
$text = esc_html__( 'Use %s to contain your group forums', 'bbpress' );
|
| 1470 |
}
|
|
@@ -1517,7 +1520,7 @@ function bbp_admin_settings() {
|
|
| 1517 |
?>
|
| 1518 |
|
| 1519 |
<div class="wrap">
|
| 1520 |
-
<h1 class="wp-heading-inline"><?php esc_html_e( 'Forums Settings', 'bbpress' ) ?></h1>
|
| 1521 |
<hr class="wp-header-end">
|
| 1522 |
|
| 1523 |
<form action="options.php" method="post">
|
|
@@ -1567,7 +1570,7 @@ function bbp_converter_setting_callback_platform() {
|
|
| 1567 |
$options .= '<option value="' . esc_attr( $name ) . '"' . selected( $name, $current, false ) . '>' . esc_html( $name ) . '</option>';
|
| 1568 |
} ?>
|
| 1569 |
|
| 1570 |
-
<select name="_bbp_converter_platform" id="_bbp_converter_platform"><?php echo $options ?></select>
|
| 1571 |
<p class="description"><?php esc_html_e( 'The previous forum software', 'bbpress' ); ?></p>
|
| 1572 |
|
| 1573 |
<?php
|
|
@@ -1792,7 +1795,7 @@ function bbp_converter_settings_page() {
|
|
| 1792 |
|
| 1793 |
// Starting or continuing?
|
| 1794 |
$progress_text = ! empty( $step )
|
| 1795 |
-
? sprintf( esc_html__( 'Previously stopped at step %d of %d', 'bbpress' ), $step, $max )
|
| 1796 |
: esc_html__( 'Ready to go.', 'bbpress' ); ?>
|
| 1797 |
|
| 1798 |
<div class="wrap">
|
|
@@ -1957,7 +1960,7 @@ function bbp_maybe_admin_setting_disabled( $option_key = '' ) {
|
|
| 1957 |
* @param string $default
|
| 1958 |
* @param bool $slug
|
| 1959 |
*/
|
| 1960 |
-
function bbp_form_option( $option, $default = ''
|
| 1961 |
echo bbp_get_form_option( $option, $default, $slug );
|
| 1962 |
}
|
| 1963 |
/**
|
| 163 |
|
| 164 |
'bbp_settings_features' => array(
|
| 165 |
|
| 166 |
+
// Allow auto embedding setting
|
| 167 |
+
'_bbp_use_autoembed' => array(
|
| 168 |
+
'title' => esc_html__( 'Auto-embed links', 'bbpress' ),
|
| 169 |
+
'callback' => 'bbp_admin_setting_callback_use_autoembed',
|
| 170 |
+
'sanitize_callback' => 'intval',
|
| 171 |
+
'args' => array()
|
| 172 |
+
),
|
| 173 |
+
|
| 174 |
+
// Set reply threading level
|
| 175 |
+
'_bbp_thread_replies_depth' => array(
|
| 176 |
+
'title' => esc_html__( 'Reply Threading', 'bbpress' ),
|
| 177 |
+
'callback' => 'bbp_admin_setting_callback_thread_replies_depth',
|
| 178 |
+
'sanitize_callback' => 'intval',
|
| 179 |
+
'args' => array()
|
| 180 |
+
),
|
| 181 |
+
|
| 182 |
+
// Allow threaded replies
|
| 183 |
+
'_bbp_allow_threaded_replies' => array(
|
| 184 |
+
'sanitize_callback' => 'intval',
|
| 185 |
+
'args' => array()
|
| 186 |
+
),
|
| 187 |
+
|
| 188 |
// Allow topic and reply revisions
|
| 189 |
'_bbp_allow_revisions' => array(
|
| 190 |
'title' => esc_html__( 'Revisions', 'bbpress' ),
|
| 225 |
'args' => array()
|
| 226 |
),
|
| 227 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 228 |
// Allow topic tags
|
| 229 |
'_bbp_allow_search' => array(
|
| 230 |
'title' => esc_html__( 'Search', 'bbpress' ),
|
| 241 |
'sanitize_callback' => 'intval'
|
| 242 |
),
|
| 243 |
|
| 244 |
+
// Allow per-forum moderators
|
| 245 |
+
'_bbp_allow_forum_mods' => array(
|
| 246 |
+
'title' => esc_html__( 'Forum Moderators', 'bbpress' ),
|
| 247 |
+
'callback' => 'bbp_admin_setting_callback_forum_mods',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 248 |
'sanitize_callback' => 'intval',
|
| 249 |
'args' => array()
|
| 250 |
),
|
| 251 |
|
| 252 |
+
// Allow moderators to edit users
|
| 253 |
+
'_bbp_allow_super_mods' => array(
|
| 254 |
+
'title' => esc_html__( 'Super Moderators', 'bbpress' ),
|
| 255 |
+
'callback' => 'bbp_admin_setting_callback_super_mods',
|
| 256 |
'sanitize_callback' => 'intval',
|
| 257 |
+
'capability' => 'edit_users',
|
| 258 |
'args' => array()
|
| 259 |
)
|
| 260 |
),
|
| 838 |
|
| 839 |
<input name="_bbp_allow_forum_mods" id="_bbp_allow_forum_mods" type="checkbox" value="1" <?php checked( bbp_allow_forum_mods( true ) ); bbp_maybe_admin_setting_disabled( '_bbp_allow_forum_mods' ); ?> />
|
| 840 |
<label for="_bbp_allow_forum_mods"><?php esc_html_e( 'Allow forums to have dedicated moderators', 'bbpress' ); ?></label>
|
| 841 |
+
<p class="description"><?php esc_html_e( 'This does not include the ability to edit users.', 'bbpress' ); ?></p>
|
| 842 |
|
| 843 |
<?php
|
| 844 |
}
|
| 852 |
?>
|
| 853 |
|
| 854 |
<input name="_bbp_allow_super_mods" id="_bbp_allow_super_mods" type="checkbox" value="1" <?php checked( bbp_allow_super_mods( false ) ); bbp_maybe_admin_setting_disabled( '_bbp_allow_super_mods' ); ?> />
|
| 855 |
+
<label for="_bbp_allow_super_mods"><?php esc_html_e( 'Allow Moderators and Keymasters to edit users', 'bbpress' ); ?></label>
|
| 856 |
+
<p class="description"><?php esc_html_e( 'This includes roles, passwords, and email addresses.', 'bbpress' ); ?></p>
|
| 857 |
|
| 858 |
<?php
|
| 859 |
}
|
| 971 |
|
| 972 |
if ( ! empty( $theme_options ) ) : ?>
|
| 973 |
|
| 974 |
+
<select name="_bbp_theme_package_id" id="_bbp_theme_package_id" <?php bbp_maybe_admin_setting_disabled( '_bbp_theme_package_id' ); ?>><?php echo $theme_options; ?></select>
|
| 975 |
<label for="_bbp_theme_package_id"><?php esc_html_e( 'will serve all bbPress templates', 'bbpress' ); ?></label>
|
| 976 |
|
| 977 |
<?php else : ?>
|
| 1467 |
|
| 1468 |
// Button & text
|
| 1469 |
$button = '<a href="' . esc_url( $new_url ) . '">' . esc_html__( 'create a new one', 'bbpress' ) . '</a>';
|
| 1470 |
+
$text = esc_html__( 'Use %s to contain your group forums, or %s', 'bbpress' ); //phpcs:ignore
|
| 1471 |
} else {
|
| 1472 |
$text = esc_html__( 'Use %s to contain your group forums', 'bbpress' );
|
| 1473 |
}
|
| 1520 |
?>
|
| 1521 |
|
| 1522 |
<div class="wrap">
|
| 1523 |
+
<h1 class="wp-heading-inline"><?php esc_html_e( 'Forums Settings', 'bbpress' ); ?></h1>
|
| 1524 |
<hr class="wp-header-end">
|
| 1525 |
|
| 1526 |
<form action="options.php" method="post">
|
| 1570 |
$options .= '<option value="' . esc_attr( $name ) . '"' . selected( $name, $current, false ) . '>' . esc_html( $name ) . '</option>';
|
| 1571 |
} ?>
|
| 1572 |
|
| 1573 |
+
<select name="_bbp_converter_platform" id="_bbp_converter_platform"><?php echo $options; ?></select>
|
| 1574 |
<p class="description"><?php esc_html_e( 'The previous forum software', 'bbpress' ); ?></p>
|
| 1575 |
|
| 1576 |
<?php
|
| 1795 |
|
| 1796 |
// Starting or continuing?
|
| 1797 |
$progress_text = ! empty( $step )
|
| 1798 |
+
? sprintf( esc_html__( 'Previously stopped at step %1$d of %2$d', 'bbpress' ), $step, $max )
|
| 1799 |
: esc_html__( 'Ready to go.', 'bbpress' ); ?>
|
| 1800 |
|
| 1801 |
<div class="wrap">
|
| 1960 |
* @param string $default
|
| 1961 |
* @param bool $slug
|
| 1962 |
*/
|
| 1963 |
+
function bbp_form_option( $option, $default = '', $slug = false ) {
|
| 1964 |
echo bbp_get_form_option( $option, $default, $slug );
|
| 1965 |
}
|
| 1966 |
/**
|
includes/common/formatting.php
CHANGED
|
@@ -462,7 +462,7 @@ function bbp_make_emails_clickable( $text = '' ) {
|
|
| 462 |
* @return string
|
| 463 |
*/
|
| 464 |
function bbp_make_mentions_clickable( $text = '' ) {
|
| 465 |
-
return preg_replace_callback( '
|
| 466 |
}
|
| 467 |
|
| 468 |
/**
|
|
@@ -476,30 +476,49 @@ function bbp_make_mentions_clickable( $text = '' ) {
|
|
| 476 |
*/
|
| 477 |
function bbp_make_mentions_clickable_callback( $matches = array() ) {
|
| 478 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 479 |
// Get user; bail if not found
|
| 480 |
-
$user = get_user_by( 'slug', $matches[
|
| 481 |
if ( empty( $user ) || bbp_is_user_inactive( $user->ID ) ) {
|
| 482 |
return $matches[0];
|
| 483 |
}
|
| 484 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 485 |
// Filter classes
|
| 486 |
-
$classes = (array) apply_filters( 'bbp_make_mentions_clickable_classes',
|
| 487 |
-
'bbp-user-id-' . $user->ID,
|
| 488 |
-
'bbp-user-mention'
|
| 489 |
-
) );
|
| 490 |
|
| 491 |
// Escape & implode if not empty, otherwise an empty string
|
| 492 |
$class_str = ! empty( $classes )
|
| 493 |
? implode( ' ', array_map( 'sanitize_html_class', $classes ) )
|
| 494 |
: '';
|
| 495 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 496 |
// Create the link to the user's profile
|
|
|
|
| 497 |
$url = bbp_get_user_profile_url( $user->ID );
|
| 498 |
-
$
|
| 499 |
-
|
|
|
|
| 500 |
$link = bbp_rel_nofollow( $anchor );
|
| 501 |
|
| 502 |
-
return
|
|
|
|
|
|
|
|
|
|
|
|
|
| 503 |
}
|
| 504 |
|
| 505 |
/** Numbers *******************************************************************/
|
| 462 |
* @return string
|
| 463 |
*/
|
| 464 |
function bbp_make_mentions_clickable( $text = '' ) {
|
| 465 |
+
return preg_replace_callback( '#([\s>])@([0-9a-zA-Z-_]+)#i', 'bbp_make_mentions_clickable_callback', $text );
|
| 466 |
}
|
| 467 |
|
| 468 |
/**
|
| 476 |
*/
|
| 477 |
function bbp_make_mentions_clickable_callback( $matches = array() ) {
|
| 478 |
|
| 479 |
+
// Bail if the match is empty malformed
|
| 480 |
+
if ( empty( $matches[2] ) || ! is_string( $matches[2] ) ) {
|
| 481 |
+
return $matches[0];
|
| 482 |
+
}
|
| 483 |
+
|
| 484 |
// Get user; bail if not found
|
| 485 |
+
$user = get_user_by( 'slug', $matches[2] );
|
| 486 |
if ( empty( $user ) || bbp_is_user_inactive( $user->ID ) ) {
|
| 487 |
return $matches[0];
|
| 488 |
}
|
| 489 |
|
| 490 |
+
// Default anchor classes
|
| 491 |
+
$classes = array(
|
| 492 |
+
'bbp-user-mention',
|
| 493 |
+
'bbp-user-id-' . absint( $user->ID )
|
| 494 |
+
);
|
| 495 |
+
|
| 496 |
// Filter classes
|
| 497 |
+
$classes = (array) apply_filters( 'bbp_make_mentions_clickable_classes', $classes, $user );
|
|
|
|
|
|
|
|
|
|
| 498 |
|
| 499 |
// Escape & implode if not empty, otherwise an empty string
|
| 500 |
$class_str = ! empty( $classes )
|
| 501 |
? implode( ' ', array_map( 'sanitize_html_class', $classes ) )
|
| 502 |
: '';
|
| 503 |
|
| 504 |
+
// Setup as a variable to avoid a potentially empty class attribute
|
| 505 |
+
$class = ! empty( $class_str )
|
| 506 |
+
? ' class="' . esc_attr( $class_str ) . '"'
|
| 507 |
+
: '';
|
| 508 |
+
|
| 509 |
// Create the link to the user's profile
|
| 510 |
+
$html = '<a href="%1$s"' . $class . '">%2$s</a>';
|
| 511 |
$url = bbp_get_user_profile_url( $user->ID );
|
| 512 |
+
$anchor = sprintf( $html, esc_url( $url ), esc_html( $matches[0] ) );
|
| 513 |
+
|
| 514 |
+
// Prevent this link from being followed by bots
|
| 515 |
$link = bbp_rel_nofollow( $anchor );
|
| 516 |
|
| 517 |
+
// Concatenate the matches into the return value
|
| 518 |
+
$retval = $matches[1] . $link;
|
| 519 |
+
|
| 520 |
+
// Return the link
|
| 521 |
+
return $retval;
|
| 522 |
}
|
| 523 |
|
| 524 |
/** Numbers *******************************************************************/
|
includes/common/shortcodes.php
CHANGED
|
@@ -671,16 +671,21 @@ class BBP_Shortcodes {
|
|
| 671 |
}
|
| 672 |
|
| 673 |
// Set passed attribute to $search_terms for clarity
|
| 674 |
-
$search_terms = empty( $attr['search'] )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 675 |
|
| 676 |
// Unset globals
|
| 677 |
$this->unset_globals();
|
| 678 |
|
| 679 |
// Set terms for query
|
| 680 |
-
set_query_var(
|
| 681 |
|
| 682 |
// Start output buffer
|
| 683 |
-
$this->start(
|
| 684 |
|
| 685 |
// Output template
|
| 686 |
bbp_get_template_part( 'content', 'search' );
|
| 671 |
}
|
| 672 |
|
| 673 |
// Set passed attribute to $search_terms for clarity
|
| 674 |
+
$search_terms = empty( $attr['search'] )
|
| 675 |
+
? bbp_get_search_terms()
|
| 676 |
+
: $attr['search'];
|
| 677 |
+
|
| 678 |
+
// Get the rewrite ID (one time, to avoid repeated calls)
|
| 679 |
+
$rewrite_id = bbp_get_search_rewrite_id();
|
| 680 |
|
| 681 |
// Unset globals
|
| 682 |
$this->unset_globals();
|
| 683 |
|
| 684 |
// Set terms for query
|
| 685 |
+
set_query_var( $rewrite_id, $search_terms );
|
| 686 |
|
| 687 |
// Start output buffer
|
| 688 |
+
$this->start( $rewrite_id );
|
| 689 |
|
| 690 |
// Output template
|
| 691 |
bbp_get_template_part( 'content', 'search' );
|
includes/common/template.php
CHANGED
|
@@ -134,11 +134,13 @@ function bbp_is_forum( $post_id = 0 ) {
|
|
| 134 |
* @return bool
|
| 135 |
*/
|
| 136 |
function bbp_is_forum_archive() {
|
| 137 |
-
global $wp_query;
|
| 138 |
|
| 139 |
// Default to false
|
| 140 |
$retval = false;
|
| 141 |
|
|
|
|
|
|
|
|
|
|
| 142 |
// In forum archive
|
| 143 |
if ( is_post_type_archive( bbp_get_forum_post_type() ) || bbp_is_query_name( 'bbp_forum_archive' ) || ! empty( $wp_query->bbp_show_topics_on_root ) ) {
|
| 144 |
$retval = true;
|
|
@@ -182,11 +184,14 @@ function bbp_is_single_forum() {
|
|
| 182 |
* @return bool True if it's the forum edit page, false if not
|
| 183 |
*/
|
| 184 |
function bbp_is_forum_edit() {
|
| 185 |
-
global $
|
| 186 |
|
| 187 |
// Assume false
|
| 188 |
$retval = false;
|
| 189 |
|
|
|
|
|
|
|
|
|
|
| 190 |
// Check query
|
| 191 |
if ( ! empty( $wp_query->bbp_is_forum_edit ) && ( $wp_query->bbp_is_forum_edit === true ) ) {
|
| 192 |
$retval = true;
|
|
@@ -277,11 +282,14 @@ function bbp_is_topic_archive() {
|
|
| 277 |
* @return bool True if it's the topic edit page, false if not
|
| 278 |
*/
|
| 279 |
function bbp_is_topic_edit() {
|
| 280 |
-
global $
|
| 281 |
|
| 282 |
// Assume false
|
| 283 |
$retval = false;
|
| 284 |
|
|
|
|
|
|
|
|
|
|
| 285 |
// Check query
|
| 286 |
if ( ! empty( $wp_query->bbp_is_topic_edit ) && ( $wp_query->bbp_is_topic_edit === true ) ) {
|
| 287 |
$retval = true;
|
|
@@ -376,7 +384,7 @@ function bbp_is_topic_tag() {
|
|
| 376 |
* @return bool True if editing a topic tag, false if not
|
| 377 |
*/
|
| 378 |
function bbp_is_topic_tag_edit() {
|
| 379 |
-
global $
|
| 380 |
|
| 381 |
// Bail if topic-tags are off
|
| 382 |
if ( ! bbp_allow_topic_tags() ) {
|
|
@@ -386,6 +394,9 @@ function bbp_is_topic_tag_edit() {
|
|
| 386 |
// Assume false
|
| 387 |
$retval = false;
|
| 388 |
|
|
|
|
|
|
|
|
|
|
| 389 |
// Check query
|
| 390 |
if ( ! empty( $wp_query->bbp_is_topic_tag_edit ) && ( true === $wp_query->bbp_is_topic_tag_edit ) ) {
|
| 391 |
$retval = true;
|
|
@@ -456,11 +467,14 @@ function bbp_is_reply( $post_id = 0 ) {
|
|
| 456 |
* @return bool True if it's the reply edit page, false if not
|
| 457 |
*/
|
| 458 |
function bbp_is_reply_edit() {
|
| 459 |
-
global $
|
| 460 |
|
| 461 |
// Assume false
|
| 462 |
$retval = false;
|
| 463 |
|
|
|
|
|
|
|
|
|
|
| 464 |
// Check query
|
| 465 |
if ( ! empty( $wp_query->bbp_is_reply_edit ) && ( true === $wp_query->bbp_is_reply_edit ) ) {
|
| 466 |
$retval = true;
|
|
@@ -527,11 +541,13 @@ function bbp_is_single_reply() {
|
|
| 527 |
* @return bool True if it's the favorites page, false if not
|
| 528 |
*/
|
| 529 |
function bbp_is_favorites() {
|
| 530 |
-
global $wp_query;
|
| 531 |
|
| 532 |
// Assume false
|
| 533 |
$retval = false;
|
| 534 |
|
|
|
|
|
|
|
|
|
|
| 535 |
// Check query
|
| 536 |
if ( ! empty( $wp_query->bbp_is_single_user_favs ) && ( true === $wp_query->bbp_is_single_user_favs ) ) {
|
| 537 |
$retval = true;
|
|
@@ -549,11 +565,13 @@ function bbp_is_favorites() {
|
|
| 549 |
* @return bool True if it's the subscriptions page, false if not
|
| 550 |
*/
|
| 551 |
function bbp_is_subscriptions() {
|
| 552 |
-
global $wp_query;
|
| 553 |
|
| 554 |
// Assume false
|
| 555 |
$retval = false;
|
| 556 |
|
|
|
|
|
|
|
|
|
|
| 557 |
// Check query
|
| 558 |
if ( ! empty( $wp_query->bbp_is_single_user_subs ) && ( true === $wp_query->bbp_is_single_user_subs ) ) {
|
| 559 |
$retval = true;
|
|
@@ -572,11 +590,13 @@ function bbp_is_subscriptions() {
|
|
| 572 |
* @return bool True if it's the topics created page, false if not
|
| 573 |
*/
|
| 574 |
function bbp_is_topics_created() {
|
| 575 |
-
global $wp_query;
|
| 576 |
|
| 577 |
// Assume false
|
| 578 |
$retval = false;
|
| 579 |
|
|
|
|
|
|
|
|
|
|
| 580 |
// Check query
|
| 581 |
if ( ! empty( $wp_query->bbp_is_single_user_topics ) && ( true === $wp_query->bbp_is_single_user_topics ) ) {
|
| 582 |
$retval = true;
|
|
@@ -595,11 +615,13 @@ function bbp_is_topics_created() {
|
|
| 595 |
* @return bool True if it's the replies created page, false if not
|
| 596 |
*/
|
| 597 |
function bbp_is_replies_created() {
|
| 598 |
-
global $wp_query;
|
| 599 |
|
| 600 |
// Assume false
|
| 601 |
$retval = false;
|
| 602 |
|
|
|
|
|
|
|
|
|
|
| 603 |
// Check query
|
| 604 |
if ( ! empty( $wp_query->bbp_is_single_user_replies ) && ( true === $wp_query->bbp_is_single_user_replies ) ) {
|
| 605 |
$retval = true;
|
|
@@ -617,11 +639,13 @@ function bbp_is_replies_created() {
|
|
| 617 |
* @return bool True if it's the user's home, false if not
|
| 618 |
*/
|
| 619 |
function bbp_is_user_home() {
|
| 620 |
-
global $wp_query;
|
| 621 |
|
| 622 |
// Assume false
|
| 623 |
$retval = false;
|
| 624 |
|
|
|
|
|
|
|
|
|
|
| 625 |
// Check query
|
| 626 |
if ( ! empty( $wp_query->bbp_is_single_user_home ) && ( true === $wp_query->bbp_is_single_user_home ) ) {
|
| 627 |
$retval = true;
|
|
@@ -659,11 +683,13 @@ function bbp_is_user_home_edit() {
|
|
| 659 |
* @return bool True if it's a user's profile page, false if not
|
| 660 |
*/
|
| 661 |
function bbp_is_single_user() {
|
| 662 |
-
global $wp_query;
|
| 663 |
|
| 664 |
// Assume false
|
| 665 |
$retval = false;
|
| 666 |
|
|
|
|
|
|
|
|
|
|
| 667 |
// Check query
|
| 668 |
if ( ! empty( $wp_query->bbp_is_single_user ) && ( true === $wp_query->bbp_is_single_user ) ) {
|
| 669 |
$retval = true;
|
|
@@ -681,11 +707,13 @@ function bbp_is_single_user() {
|
|
| 681 |
* @return bool True if it's a user's profile edit page, false if not
|
| 682 |
*/
|
| 683 |
function bbp_is_single_user_edit() {
|
| 684 |
-
global $wp_query;
|
| 685 |
|
| 686 |
// Assume false
|
| 687 |
$retval = false;
|
| 688 |
|
|
|
|
|
|
|
|
|
|
| 689 |
// Check query
|
| 690 |
if ( ! empty( $wp_query->bbp_is_single_user_edit ) && ( true === $wp_query->bbp_is_single_user_edit ) ) {
|
| 691 |
$retval = true;
|
|
@@ -703,11 +731,13 @@ function bbp_is_single_user_edit() {
|
|
| 703 |
* @return bool True if it's a user's profile page, false if not
|
| 704 |
*/
|
| 705 |
function bbp_is_single_user_profile() {
|
| 706 |
-
global $wp_query;
|
| 707 |
|
| 708 |
// Assume false
|
| 709 |
$retval = false;
|
| 710 |
|
|
|
|
|
|
|
|
|
|
| 711 |
// Check query
|
| 712 |
if ( ! empty( $wp_query->bbp_is_single_user_profile ) && ( true === $wp_query->bbp_is_single_user_profile ) ) {
|
| 713 |
$retval = true;
|
|
@@ -725,11 +755,13 @@ function bbp_is_single_user_profile() {
|
|
| 725 |
* @return bool True if it's a user's topics page, false if not
|
| 726 |
*/
|
| 727 |
function bbp_is_single_user_topics() {
|
| 728 |
-
global $wp_query;
|
| 729 |
|
| 730 |
// Assume false
|
| 731 |
$retval = false;
|
| 732 |
|
|
|
|
|
|
|
|
|
|
| 733 |
// Check query
|
| 734 |
if ( ! empty( $wp_query->bbp_is_single_user_topics ) && ( true === $wp_query->bbp_is_single_user_topics ) ) {
|
| 735 |
$retval = true;
|
|
@@ -747,11 +779,13 @@ function bbp_is_single_user_topics() {
|
|
| 747 |
* @return bool True if it's a user's replies page, false if not
|
| 748 |
*/
|
| 749 |
function bbp_is_single_user_replies() {
|
| 750 |
-
global $wp_query;
|
| 751 |
|
| 752 |
// Assume false
|
| 753 |
$retval = false;
|
| 754 |
|
|
|
|
|
|
|
|
|
|
| 755 |
// Check query
|
| 756 |
if ( ! empty( $wp_query->bbp_is_single_user_replies ) && ( true === $wp_query->bbp_is_single_user_replies ) ) {
|
| 757 |
$retval = true;
|
|
@@ -769,11 +803,13 @@ function bbp_is_single_user_replies() {
|
|
| 769 |
* @return bool True if it's a user's replies page, false if not
|
| 770 |
*/
|
| 771 |
function bbp_is_single_user_engagements() {
|
| 772 |
-
global $wp_query;
|
| 773 |
|
| 774 |
// Assume false
|
| 775 |
$retval = false;
|
| 776 |
|
|
|
|
|
|
|
|
|
|
| 777 |
// Check query
|
| 778 |
if ( ! empty( $wp_query->bbp_is_single_user_engagements ) && ( true === $wp_query->bbp_is_single_user_engagements ) ) {
|
| 779 |
$retval = true;
|
|
@@ -792,11 +828,13 @@ function bbp_is_single_user_engagements() {
|
|
| 792 |
* @return bool Is it a view page?
|
| 793 |
*/
|
| 794 |
function bbp_is_single_view() {
|
| 795 |
-
global $wp_query;
|
| 796 |
|
| 797 |
// Assume false
|
| 798 |
$retval = false;
|
| 799 |
|
|
|
|
|
|
|
|
|
|
| 800 |
// Check query
|
| 801 |
if ( ! empty( $wp_query->bbp_is_view ) && ( true === $wp_query->bbp_is_view ) ) {
|
| 802 |
$retval = true;
|
|
@@ -820,7 +858,6 @@ function bbp_is_single_view() {
|
|
| 820 |
* @return bool Is it a search page?
|
| 821 |
*/
|
| 822 |
function bbp_is_search() {
|
| 823 |
-
global $wp_query;
|
| 824 |
|
| 825 |
// Bail if search is disabled
|
| 826 |
if ( ! bbp_allow_search() ) {
|
|
@@ -830,18 +867,24 @@ function bbp_is_search() {
|
|
| 830 |
// Assume false
|
| 831 |
$retval = false;
|
| 832 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 833 |
// Check query
|
| 834 |
if ( ! empty( $wp_query->bbp_is_search ) && ( true === $wp_query->bbp_is_search ) ) {
|
| 835 |
$retval = true;
|
| 836 |
}
|
| 837 |
|
| 838 |
// Check query name
|
| 839 |
-
if ( empty( $retval ) && bbp_is_query_name(
|
| 840 |
$retval = true;
|
| 841 |
}
|
| 842 |
|
| 843 |
// Check $_GET
|
| 844 |
-
if ( empty( $retval ) && isset( $_REQUEST[
|
| 845 |
$retval = true;
|
| 846 |
}
|
| 847 |
|
|
@@ -858,7 +901,6 @@ function bbp_is_search() {
|
|
| 858 |
* @return bool Is it a search page?
|
| 859 |
*/
|
| 860 |
function bbp_is_search_results() {
|
| 861 |
-
global $wp_query;
|
| 862 |
|
| 863 |
// Bail if search is disabled
|
| 864 |
if ( ! bbp_allow_search() ) {
|
|
@@ -868,6 +910,9 @@ function bbp_is_search_results() {
|
|
| 868 |
// Assume false
|
| 869 |
$retval = false;
|
| 870 |
|
|
|
|
|
|
|
|
|
|
| 871 |
// Check query
|
| 872 |
if ( ! empty( $wp_query->bbp_search_terms ) ) {
|
| 873 |
$retval = true;
|
|
@@ -895,11 +940,13 @@ function bbp_is_search_results() {
|
|
| 895 |
* @return bool True if it's the edit page, false if not
|
| 896 |
*/
|
| 897 |
function bbp_is_edit() {
|
| 898 |
-
global $wp_query;
|
| 899 |
|
| 900 |
// Assume false
|
| 901 |
$retval = false;
|
| 902 |
|
|
|
|
|
|
|
|
|
|
| 903 |
// Check query
|
| 904 |
if ( ! empty( $wp_query->bbp_is_edit ) && ( $wp_query->bbp_is_edit === true ) ) {
|
| 905 |
$retval = true;
|
|
@@ -1102,9 +1149,15 @@ function bbp_has_shortcode( $text = '' ) {
|
|
| 1102 |
*/
|
| 1103 |
function is_bbpress() {
|
| 1104 |
|
| 1105 |
-
//
|
| 1106 |
$retval = false;
|
| 1107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1108 |
/** Archives **************************************************************/
|
| 1109 |
|
| 1110 |
if ( bbp_is_forum_archive() ) {
|
| 134 |
* @return bool
|
| 135 |
*/
|
| 136 |
function bbp_is_forum_archive() {
|
|
|
|
| 137 |
|
| 138 |
// Default to false
|
| 139 |
$retval = false;
|
| 140 |
|
| 141 |
+
// Get the main query global
|
| 142 |
+
$wp_query = bbp_get_wp_query();
|
| 143 |
+
|
| 144 |
// In forum archive
|
| 145 |
if ( is_post_type_archive( bbp_get_forum_post_type() ) || bbp_is_query_name( 'bbp_forum_archive' ) || ! empty( $wp_query->bbp_show_topics_on_root ) ) {
|
| 146 |
$retval = true;
|
| 184 |
* @return bool True if it's the forum edit page, false if not
|
| 185 |
*/
|
| 186 |
function bbp_is_forum_edit() {
|
| 187 |
+
global $pagenow;
|
| 188 |
|
| 189 |
// Assume false
|
| 190 |
$retval = false;
|
| 191 |
|
| 192 |
+
// Get the main query global
|
| 193 |
+
$wp_query = bbp_get_wp_query();
|
| 194 |
+
|
| 195 |
// Check query
|
| 196 |
if ( ! empty( $wp_query->bbp_is_forum_edit ) && ( $wp_query->bbp_is_forum_edit === true ) ) {
|
| 197 |
$retval = true;
|
| 282 |
* @return bool True if it's the topic edit page, false if not
|
| 283 |
*/
|
| 284 |
function bbp_is_topic_edit() {
|
| 285 |
+
global $pagenow;
|
| 286 |
|
| 287 |
// Assume false
|
| 288 |
$retval = false;
|
| 289 |
|
| 290 |
+
// Get the main query global
|
| 291 |
+
$wp_query = bbp_get_wp_query();
|
| 292 |
+
|
| 293 |
// Check query
|
| 294 |
if ( ! empty( $wp_query->bbp_is_topic_edit ) && ( $wp_query->bbp_is_topic_edit === true ) ) {
|
| 295 |
$retval = true;
|
| 384 |
* @return bool True if editing a topic tag, false if not
|
| 385 |
*/
|
| 386 |
function bbp_is_topic_tag_edit() {
|
| 387 |
+
global $pagenow, $taxnow;
|
| 388 |
|
| 389 |
// Bail if topic-tags are off
|
| 390 |
if ( ! bbp_allow_topic_tags() ) {
|
| 394 |
// Assume false
|
| 395 |
$retval = false;
|
| 396 |
|
| 397 |
+
// Get the main query global
|
| 398 |
+
$wp_query = bbp_get_wp_query();
|
| 399 |
+
|
| 400 |
// Check query
|
| 401 |
if ( ! empty( $wp_query->bbp_is_topic_tag_edit ) && ( true === $wp_query->bbp_is_topic_tag_edit ) ) {
|
| 402 |
$retval = true;
|
| 467 |
* @return bool True if it's the reply edit page, false if not
|
| 468 |
*/
|
| 469 |
function bbp_is_reply_edit() {
|
| 470 |
+
global $pagenow;
|
| 471 |
|
| 472 |
// Assume false
|
| 473 |
$retval = false;
|
| 474 |
|
| 475 |
+
// Get the main query global
|
| 476 |
+
$wp_query = bbp_get_wp_query();
|
| 477 |
+
|
| 478 |
// Check query
|
| 479 |
if ( ! empty( $wp_query->bbp_is_reply_edit ) && ( true === $wp_query->bbp_is_reply_edit ) ) {
|
| 480 |
$retval = true;
|
| 541 |
* @return bool True if it's the favorites page, false if not
|
| 542 |
*/
|
| 543 |
function bbp_is_favorites() {
|
|
|
|
| 544 |
|
| 545 |
// Assume false
|
| 546 |
$retval = false;
|
| 547 |
|
| 548 |
+
// Get the main query global
|
| 549 |
+
$wp_query = bbp_get_wp_query();
|
| 550 |
+
|
| 551 |
// Check query
|
| 552 |
if ( ! empty( $wp_query->bbp_is_single_user_favs ) && ( true === $wp_query->bbp_is_single_user_favs ) ) {
|
| 553 |
$retval = true;
|
| 565 |
* @return bool True if it's the subscriptions page, false if not
|
| 566 |
*/
|
| 567 |
function bbp_is_subscriptions() {
|
|
|
|
| 568 |
|
| 569 |
// Assume false
|
| 570 |
$retval = false;
|
| 571 |
|
| 572 |
+
// Get the main query global
|
| 573 |
+
$wp_query = bbp_get_wp_query();
|
| 574 |
+
|
| 575 |
// Check query
|
| 576 |
if ( ! empty( $wp_query->bbp_is_single_user_subs ) && ( true === $wp_query->bbp_is_single_user_subs ) ) {
|
| 577 |
$retval = true;
|
| 590 |
* @return bool True if it's the topics created page, false if not
|
| 591 |
*/
|
| 592 |
function bbp_is_topics_created() {
|
|
|
|
| 593 |
|
| 594 |
// Assume false
|
| 595 |
$retval = false;
|
| 596 |
|
| 597 |
+
// Get the main query global
|
| 598 |
+
$wp_query = bbp_get_wp_query();
|
| 599 |
+
|
| 600 |
// Check query
|
| 601 |
if ( ! empty( $wp_query->bbp_is_single_user_topics ) && ( true === $wp_query->bbp_is_single_user_topics ) ) {
|
| 602 |
$retval = true;
|
| 615 |
* @return bool True if it's the replies created page, false if not
|
| 616 |
*/
|
| 617 |
function bbp_is_replies_created() {
|
|
|
|
| 618 |
|
| 619 |
// Assume false
|
| 620 |
$retval = false;
|
| 621 |
|
| 622 |
+
// Get the main query global
|
| 623 |
+
$wp_query = bbp_get_wp_query();
|
| 624 |
+
|
| 625 |
// Check query
|
| 626 |
if ( ! empty( $wp_query->bbp_is_single_user_replies ) && ( true === $wp_query->bbp_is_single_user_replies ) ) {
|
| 627 |
$retval = true;
|
| 639 |
* @return bool True if it's the user's home, false if not
|
| 640 |
*/
|
| 641 |
function bbp_is_user_home() {
|
|
|
|
| 642 |
|
| 643 |
// Assume false
|
| 644 |
$retval = false;
|
| 645 |
|
| 646 |
+
// Get the main query global
|
| 647 |
+
$wp_query = bbp_get_wp_query();
|
| 648 |
+
|
| 649 |
// Check query
|
| 650 |
if ( ! empty( $wp_query->bbp_is_single_user_home ) && ( true === $wp_query->bbp_is_single_user_home ) ) {
|
| 651 |
$retval = true;
|
| 683 |
* @return bool True if it's a user's profile page, false if not
|
| 684 |
*/
|
| 685 |
function bbp_is_single_user() {
|
|
|
|
| 686 |
|
| 687 |
// Assume false
|
| 688 |
$retval = false;
|
| 689 |
|
| 690 |
+
// Get the main query global
|
| 691 |
+
$wp_query = bbp_get_wp_query();
|
| 692 |
+
|
| 693 |
// Check query
|
| 694 |
if ( ! empty( $wp_query->bbp_is_single_user ) && ( true === $wp_query->bbp_is_single_user ) ) {
|
| 695 |
$retval = true;
|
| 707 |
* @return bool True if it's a user's profile edit page, false if not
|
| 708 |
*/
|
| 709 |
function bbp_is_single_user_edit() {
|
|
|
|
| 710 |
|
| 711 |
// Assume false
|
| 712 |
$retval = false;
|
| 713 |
|
| 714 |
+
// Get the main query global
|
| 715 |
+
$wp_query = bbp_get_wp_query();
|
| 716 |
+
|
| 717 |
// Check query
|
| 718 |
if ( ! empty( $wp_query->bbp_is_single_user_edit ) && ( true === $wp_query->bbp_is_single_user_edit ) ) {
|
| 719 |
$retval = true;
|
| 731 |
* @return bool True if it's a user's profile page, false if not
|
| 732 |
*/
|
| 733 |
function bbp_is_single_user_profile() {
|
|
|
|
| 734 |
|
| 735 |
// Assume false
|
| 736 |
$retval = false;
|
| 737 |
|
| 738 |
+
// Get the main query global
|
| 739 |
+
$wp_query = bbp_get_wp_query();
|
| 740 |
+
|
| 741 |
// Check query
|
| 742 |
if ( ! empty( $wp_query->bbp_is_single_user_profile ) && ( true === $wp_query->bbp_is_single_user_profile ) ) {
|
| 743 |
$retval = true;
|
| 755 |
* @return bool True if it's a user's topics page, false if not
|
| 756 |
*/
|
| 757 |
function bbp_is_single_user_topics() {
|
|
|
|
| 758 |
|
| 759 |
// Assume false
|
| 760 |
$retval = false;
|
| 761 |
|
| 762 |
+
// Get the main query global
|
| 763 |
+
$wp_query = bbp_get_wp_query();
|
| 764 |
+
|
| 765 |
// Check query
|
| 766 |
if ( ! empty( $wp_query->bbp_is_single_user_topics ) && ( true === $wp_query->bbp_is_single_user_topics ) ) {
|
| 767 |
$retval = true;
|
| 779 |
* @return bool True if it's a user's replies page, false if not
|
| 780 |
*/
|
| 781 |
function bbp_is_single_user_replies() {
|
|
|
|
| 782 |
|
| 783 |
// Assume false
|
| 784 |
$retval = false;
|
| 785 |
|
| 786 |
+
// Get the main query global
|
| 787 |
+
$wp_query = bbp_get_wp_query();
|
| 788 |
+
|
| 789 |
// Check query
|
| 790 |
if ( ! empty( $wp_query->bbp_is_single_user_replies ) && ( true === $wp_query->bbp_is_single_user_replies ) ) {
|
| 791 |
$retval = true;
|
| 803 |
* @return bool True if it's a user's replies page, false if not
|
| 804 |
*/
|
| 805 |
function bbp_is_single_user_engagements() {
|
|
|
|
| 806 |
|
| 807 |
// Assume false
|
| 808 |
$retval = false;
|
| 809 |
|
| 810 |
+
// Get the main query global
|
| 811 |
+
$wp_query = bbp_get_wp_query();
|
| 812 |
+
|
| 813 |
// Check query
|
| 814 |
if ( ! empty( $wp_query->bbp_is_single_user_engagements ) && ( true === $wp_query->bbp_is_single_user_engagements ) ) {
|
| 815 |
$retval = true;
|
| 828 |
* @return bool Is it a view page?
|
| 829 |
*/
|
| 830 |
function bbp_is_single_view() {
|
|
|
|
| 831 |
|
| 832 |
// Assume false
|
| 833 |
$retval = false;
|
| 834 |
|
| 835 |
+
// Get the main query global
|
| 836 |
+
$wp_query = bbp_get_wp_query();
|
| 837 |
+
|
| 838 |
// Check query
|
| 839 |
if ( ! empty( $wp_query->bbp_is_view ) && ( true === $wp_query->bbp_is_view ) ) {
|
| 840 |
$retval = true;
|
| 858 |
* @return bool Is it a search page?
|
| 859 |
*/
|
| 860 |
function bbp_is_search() {
|
|
|
|
| 861 |
|
| 862 |
// Bail if search is disabled
|
| 863 |
if ( ! bbp_allow_search() ) {
|
| 867 |
// Assume false
|
| 868 |
$retval = false;
|
| 869 |
|
| 870 |
+
// Get the main query global
|
| 871 |
+
$wp_query = bbp_get_wp_query();
|
| 872 |
+
|
| 873 |
+
// Get the rewrite ID (one time, to avoid repeated calls)
|
| 874 |
+
$rewrite_id = bbp_get_search_rewrite_id();
|
| 875 |
+
|
| 876 |
// Check query
|
| 877 |
if ( ! empty( $wp_query->bbp_is_search ) && ( true === $wp_query->bbp_is_search ) ) {
|
| 878 |
$retval = true;
|
| 879 |
}
|
| 880 |
|
| 881 |
// Check query name
|
| 882 |
+
if ( empty( $retval ) && bbp_is_query_name( $rewrite_id ) ) {
|
| 883 |
$retval = true;
|
| 884 |
}
|
| 885 |
|
| 886 |
// Check $_GET
|
| 887 |
+
if ( empty( $retval ) && isset( $_REQUEST[ $rewrite_id ] ) && empty( $_REQUEST[ $rewrite_id ] ) ) {
|
| 888 |
$retval = true;
|
| 889 |
}
|
| 890 |
|
| 901 |
* @return bool Is it a search page?
|
| 902 |
*/
|
| 903 |
function bbp_is_search_results() {
|
|
|
|
| 904 |
|
| 905 |
// Bail if search is disabled
|
| 906 |
if ( ! bbp_allow_search() ) {
|
| 910 |
// Assume false
|
| 911 |
$retval = false;
|
| 912 |
|
| 913 |
+
// Get the main query global
|
| 914 |
+
$wp_query = bbp_get_wp_query();
|
| 915 |
+
|
| 916 |
// Check query
|
| 917 |
if ( ! empty( $wp_query->bbp_search_terms ) ) {
|
| 918 |
$retval = true;
|
| 940 |
* @return bool True if it's the edit page, false if not
|
| 941 |
*/
|
| 942 |
function bbp_is_edit() {
|
|
|
|
| 943 |
|
| 944 |
// Assume false
|
| 945 |
$retval = false;
|
| 946 |
|
| 947 |
+
// Get the main query global
|
| 948 |
+
$wp_query = bbp_get_wp_query();
|
| 949 |
+
|
| 950 |
// Check query
|
| 951 |
if ( ! empty( $wp_query->bbp_is_edit ) && ( $wp_query->bbp_is_edit === true ) ) {
|
| 952 |
$retval = true;
|
| 1149 |
*/
|
| 1150 |
function is_bbpress() {
|
| 1151 |
|
| 1152 |
+
// Default to false
|
| 1153 |
$retval = false;
|
| 1154 |
|
| 1155 |
+
// Bail if main query has not been populated.
|
| 1156 |
+
if ( ! bbp_get_wp_query() ) {
|
| 1157 |
+
_doing_it_wrong( __FUNCTION__, esc_html__( 'Conditional query tags do not work before the query is run. Before then, they always return false.', 'bbpress' ), '2.7.0' );
|
| 1158 |
+
return $retval;
|
| 1159 |
+
}
|
| 1160 |
+
|
| 1161 |
/** Archives **************************************************************/
|
| 1162 |
|
| 1163 |
if ( bbp_is_forum_archive() ) {
|
includes/core/actions.php
CHANGED
|
@@ -407,12 +407,15 @@ add_action( 'bbp_user_edit_after', 'bbp_user_edit_after' );
|
|
| 407 |
// Clean bbPress post caches when WordPress's is cleaned
|
| 408 |
add_action( 'clean_post_cache', 'bbp_clean_post_cache', 10, 2 );
|
| 409 |
|
| 410 |
-
// User
|
|
|
|
|
|
|
|
|
|
|
|
|
| 411 |
add_action( 'invite_user', 'bbp_user_add_role_on_invite', 10, 3 );
|
|
|
|
|
|
|
| 412 |
add_action( 'wpmu_activate_user', 'bbp_user_add_role_on_activate', 10, 3 );
|
| 413 |
-
add_action( 'bbp_user_register', 'bbp_user_add_role_on_register', 10, 1 );
|
| 414 |
-
add_action( 'added_existing_user', 'bbp_user_add_role_on_register', 10, 1 );
|
| 415 |
-
add_action( 'register_new_user', 'bbp_user_add_role_on_register', 10, 1 );
|
| 416 |
|
| 417 |
/**
|
| 418 |
* bbPress needs to redirect the user around in a few different circumstances:
|
|
@@ -433,6 +436,9 @@ add_action( 'bbp_template_redirect', 'bbp_check_topic_edit', 10 );
|
|
| 433 |
add_action( 'bbp_template_redirect', 'bbp_check_reply_edit', 10 );
|
| 434 |
add_action( 'bbp_template_redirect', 'bbp_check_topic_tag_edit', 10 );
|
| 435 |
|
|
|
|
|
|
|
|
|
|
| 436 |
// Theme-side POST requests
|
| 437 |
add_action( 'bbp_post_request', 'bbp_do_ajax', 1 );
|
| 438 |
add_action( 'bbp_post_request', 'bbp_edit_topic_tag_handler', 1 );
|
| 407 |
// Clean bbPress post caches when WordPress's is cleaned
|
| 408 |
add_action( 'clean_post_cache', 'bbp_clean_post_cache', 10, 2 );
|
| 409 |
|
| 410 |
+
// User Registration
|
| 411 |
+
add_action( 'added_existing_user', 'bbp_user_add_role_on_register', 10, 1 );
|
| 412 |
+
add_action( 'bbp_user_register', 'bbp_user_add_role_on_register', 10, 1 );
|
| 413 |
+
|
| 414 |
+
// Invite a New User
|
| 415 |
add_action( 'invite_user', 'bbp_user_add_role_on_invite', 10, 3 );
|
| 416 |
+
|
| 417 |
+
// Multisite Activation (does not work in wp-activate.php)
|
| 418 |
add_action( 'wpmu_activate_user', 'bbp_user_add_role_on_activate', 10, 3 );
|
|
|
|
|
|
|
|
|
|
| 419 |
|
| 420 |
/**
|
| 421 |
* bbPress needs to redirect the user around in a few different circumstances:
|
| 436 |
add_action( 'bbp_template_redirect', 'bbp_check_reply_edit', 10 );
|
| 437 |
add_action( 'bbp_template_redirect', 'bbp_check_topic_tag_edit', 10 );
|
| 438 |
|
| 439 |
+
// Must be after bbp_template_include_theme_compat
|
| 440 |
+
add_action( 'bbp_template_redirect', 'bbp_remove_adjacent_posts', 10 );
|
| 441 |
+
|
| 442 |
// Theme-side POST requests
|
| 443 |
add_action( 'bbp_post_request', 'bbp_do_ajax', 1 );
|
| 444 |
add_action( 'bbp_post_request', 'bbp_edit_topic_tag_handler', 1 );
|
includes/core/sub-actions.php
CHANGED
|
@@ -378,8 +378,8 @@ function bbp_post_request() {
|
|
| 378 |
return;
|
| 379 |
}
|
| 380 |
|
| 381 |
-
// Bail if no action
|
| 382 |
-
if ( empty( $_POST['action'] ) ) {
|
| 383 |
return;
|
| 384 |
}
|
| 385 |
|
|
@@ -411,8 +411,8 @@ function bbp_get_request() {
|
|
| 411 |
return;
|
| 412 |
}
|
| 413 |
|
| 414 |
-
// Bail if no action
|
| 415 |
-
if ( empty( $_GET['action'] ) ) {
|
| 416 |
return;
|
| 417 |
}
|
| 418 |
|
| 378 |
return;
|
| 379 |
}
|
| 380 |
|
| 381 |
+
// Bail if no action, or if not a string (arrays not supported)
|
| 382 |
+
if ( empty( $_POST['action'] ) || ! is_string( $_POST['action'] ) ) {
|
| 383 |
return;
|
| 384 |
}
|
| 385 |
|
| 411 |
return;
|
| 412 |
}
|
| 413 |
|
| 414 |
+
// Bail if no action, or if not a string (arrays not supported)
|
| 415 |
+
if ( empty( $_GET['action'] ) || ! is_string( $_GET['action'] ) ) {
|
| 416 |
return;
|
| 417 |
}
|
| 418 |
|
includes/core/template-functions.php
CHANGED
|
@@ -535,13 +535,14 @@ function bbp_parse_query( $posts_query ) {
|
|
| 535 |
return;
|
| 536 |
}
|
| 537 |
|
| 538 |
-
// Get query variables
|
| 539 |
-
$bbp_view
|
| 540 |
-
$bbp_user
|
| 541 |
-
$is_edit
|
|
|
|
| 542 |
|
| 543 |
// It is a user page - We'll also check if it is user edit
|
| 544 |
-
if ( !
|
| 545 |
|
| 546 |
/** Find User *********************************************************/
|
| 547 |
|
|
@@ -572,7 +573,7 @@ function bbp_parse_query( $posts_query ) {
|
|
| 572 |
$is_engagements = $posts_query->get( bbp_get_user_engagements_rewrite_id() );
|
| 573 |
|
| 574 |
// View or edit?
|
| 575 |
-
if ( !
|
| 576 |
|
| 577 |
// We are editing a profile
|
| 578 |
$posts_query->bbp_is_single_user_edit = true;
|
|
@@ -644,7 +645,7 @@ function bbp_parse_query( $posts_query ) {
|
|
| 644 |
bbpress()->displayed_user = $the_user;
|
| 645 |
|
| 646 |
// View Page
|
| 647 |
-
} elseif ( !
|
| 648 |
|
| 649 |
// Check if the view exists by checking if there are query args are set
|
| 650 |
$view_args = bbp_get_view_query_args( $bbp_view );
|
|
@@ -665,7 +666,7 @@ function bbp_parse_query( $posts_query ) {
|
|
| 665 |
$posts_query->bbp_is_404 = false;
|
| 666 |
|
| 667 |
// Search Page
|
| 668 |
-
} elseif (
|
| 669 |
|
| 670 |
// Check if there are search query args set
|
| 671 |
$search_terms = bbp_get_search_terms();
|
|
@@ -683,7 +684,7 @@ function bbp_parse_query( $posts_query ) {
|
|
| 683 |
$posts_query->bbp_is_404 = false;
|
| 684 |
|
| 685 |
// Forum/Topic/Reply Edit Page
|
| 686 |
-
} elseif ( !
|
| 687 |
|
| 688 |
// Get the post type from the main query loop
|
| 689 |
$post_type = $posts_query->get( 'post_type' );
|
| 535 |
return;
|
| 536 |
}
|
| 537 |
|
| 538 |
+
// Get query variables (default to null if not set)
|
| 539 |
+
$bbp_view = $posts_query->get( bbp_get_view_rewrite_id(), null );
|
| 540 |
+
$bbp_user = $posts_query->get( bbp_get_user_rewrite_id(), null );
|
| 541 |
+
$is_edit = $posts_query->get( bbp_get_edit_rewrite_id(), null );
|
| 542 |
+
$is_search = $posts_query->get( bbp_get_search_rewrite_id(), null );
|
| 543 |
|
| 544 |
// It is a user page - We'll also check if it is user edit
|
| 545 |
+
if ( ! is_null( $bbp_user ) ) {
|
| 546 |
|
| 547 |
/** Find User *********************************************************/
|
| 548 |
|
| 573 |
$is_engagements = $posts_query->get( bbp_get_user_engagements_rewrite_id() );
|
| 574 |
|
| 575 |
// View or edit?
|
| 576 |
+
if ( ! is_null( $is_edit ) ) {
|
| 577 |
|
| 578 |
// We are editing a profile
|
| 579 |
$posts_query->bbp_is_single_user_edit = true;
|
| 645 |
bbpress()->displayed_user = $the_user;
|
| 646 |
|
| 647 |
// View Page
|
| 648 |
+
} elseif ( ! is_null( $bbp_view ) ) {
|
| 649 |
|
| 650 |
// Check if the view exists by checking if there are query args are set
|
| 651 |
$view_args = bbp_get_view_query_args( $bbp_view );
|
| 666 |
$posts_query->bbp_is_404 = false;
|
| 667 |
|
| 668 |
// Search Page
|
| 669 |
+
} elseif ( ! is_null( $is_search ) ) {
|
| 670 |
|
| 671 |
// Check if there are search query args set
|
| 672 |
$search_terms = bbp_get_search_terms();
|
| 684 |
$posts_query->bbp_is_404 = false;
|
| 685 |
|
| 686 |
// Forum/Topic/Reply Edit Page
|
| 687 |
+
} elseif ( ! is_null( $is_edit ) ) {
|
| 688 |
|
| 689 |
// Get the post type from the main query loop
|
| 690 |
$post_type = $posts_query->get( 'post_type' );
|
includes/core/theme-compat.php
CHANGED
|
@@ -1026,3 +1026,25 @@ function bbp_force_comment_status( $open = false, $post_id = 0 ) {
|
|
| 1026 |
// Filter & return
|
| 1027 |
return (bool) apply_filters( 'bbp_force_comment_status', $retval, $open, $post_id, $post_type );
|
| 1028 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1026 |
// Filter & return
|
| 1027 |
return (bool) apply_filters( 'bbp_force_comment_status', $retval, $open, $post_id, $post_type );
|
| 1028 |
}
|
| 1029 |
+
|
| 1030 |
+
/**
|
| 1031 |
+
* Remove "prev" and "next" relational links from <head> on bbPress pages.
|
| 1032 |
+
*
|
| 1033 |
+
* WordPress automatically generates these relational links to the current
|
| 1034 |
+
* page, but bbPress does not use these links, nor would they work the same.
|
| 1035 |
+
*
|
| 1036 |
+
* In this function, we remove these links when on a bbPress page. This also
|
| 1037 |
+
* prevents additional, unnecessary queries from running.
|
| 1038 |
+
*
|
| 1039 |
+
* @since 2.6.0 bbPress (r7071)
|
| 1040 |
+
*/
|
| 1041 |
+
function bbp_remove_adjacent_posts() {
|
| 1042 |
+
|
| 1043 |
+
// Bail if not a bbPress page
|
| 1044 |
+
if ( ! is_bbpress() ) {
|
| 1045 |
+
return;
|
| 1046 |
+
}
|
| 1047 |
+
|
| 1048 |
+
// Remove the WordPress core action for adjacent posts
|
| 1049 |
+
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10 );
|
| 1050 |
+
}
|
includes/search/template.php
CHANGED
|
@@ -297,8 +297,11 @@ function bbp_search_terms( $search_terms = '' ) {
|
|
| 297 |
} else {
|
| 298 |
|
| 299 |
// Global
|
| 300 |
-
|
| 301 |
-
|
|
|
|
|
|
|
|
|
|
| 302 |
|
| 303 |
// Other searches
|
| 304 |
} else {
|
| 297 |
} else {
|
| 298 |
|
| 299 |
// Global
|
| 300 |
+
$search_terms = get_query_var( bbp_get_search_rewrite_id(), null );
|
| 301 |
+
|
| 302 |
+
// Searching globally
|
| 303 |
+
if ( ! is_null( $search_terms ) ) {
|
| 304 |
+
$search_terms = wp_unslash( $search_terms );
|
| 305 |
|
| 306 |
// Other searches
|
| 307 |
} else {
|
includes/users/capabilities.php
CHANGED
|
@@ -148,7 +148,7 @@ function bbp_map_primary_meta_caps( $caps = array(), $cap = '', $user_id = 0, $a
|
|
| 148 |
*
|
| 149 |
* @param int $user_id
|
| 150 |
*
|
| 151 |
-
* @return
|
| 152 |
*/
|
| 153 |
function bbp_set_user_role( $user_id = 0, $new_role = '' ) {
|
| 154 |
|
|
@@ -159,15 +159,15 @@ function bbp_set_user_role( $user_id = 0, $new_role = '' ) {
|
|
| 159 |
// User exists
|
| 160 |
if ( ! empty( $user ) ) {
|
| 161 |
|
| 162 |
-
// Get
|
| 163 |
$role = bbp_get_user_role( $user_id );
|
| 164 |
|
| 165 |
// User already has this role so no new role is set
|
| 166 |
if ( $new_role === $role ) {
|
| 167 |
$new_role = false;
|
| 168 |
|
| 169 |
-
//
|
| 170 |
-
}
|
| 171 |
|
| 172 |
// Remove the old role
|
| 173 |
if ( ! empty( $role ) ) {
|
|
@@ -306,6 +306,38 @@ function bbp_profile_update_role( $user_id = 0 ) {
|
|
| 306 |
bbp_set_user_role( $user_id, $new_role );
|
| 307 |
}
|
| 308 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 309 |
/**
|
| 310 |
* Add the default role to the current user if needed
|
| 311 |
*
|
| 148 |
*
|
| 149 |
* @param int $user_id
|
| 150 |
*
|
| 151 |
+
* @return mixed False if no change. String of new role if changed.
|
| 152 |
*/
|
| 153 |
function bbp_set_user_role( $user_id = 0, $new_role = '' ) {
|
| 154 |
|
| 159 |
// User exists
|
| 160 |
if ( ! empty( $user ) ) {
|
| 161 |
|
| 162 |
+
// Get user forum role
|
| 163 |
$role = bbp_get_user_role( $user_id );
|
| 164 |
|
| 165 |
// User already has this role so no new role is set
|
| 166 |
if ( $new_role === $role ) {
|
| 167 |
$new_role = false;
|
| 168 |
|
| 169 |
+
// User role is different than the new (valid) role
|
| 170 |
+
} elseif ( bbp_is_valid_role( $new_role ) ) {
|
| 171 |
|
| 172 |
// Remove the old role
|
| 173 |
if ( ! empty( $role ) ) {
|
| 306 |
bbp_set_user_role( $user_id, $new_role );
|
| 307 |
}
|
| 308 |
|
| 309 |
+
/**
|
| 310 |
+
* Check if a role string is valid
|
| 311 |
+
*
|
| 312 |
+
* @since 2.6.5
|
| 313 |
+
*
|
| 314 |
+
* @param string $role
|
| 315 |
+
*
|
| 316 |
+
* @return bool True if role is valid. False if role is not valid.
|
| 317 |
+
*/
|
| 318 |
+
function bbp_is_valid_role( $role = '' ) {
|
| 319 |
+
|
| 320 |
+
// Default return value
|
| 321 |
+
$retval = false;
|
| 322 |
+
|
| 323 |
+
// Skip if no role to check
|
| 324 |
+
if ( ! empty( $role ) && is_string( $role ) ) {
|
| 325 |
+
|
| 326 |
+
// Get the dynamic role IDs
|
| 327 |
+
$roles = array_keys( bbp_get_dynamic_roles() );
|
| 328 |
+
|
| 329 |
+
// Skip if no known role IDs
|
| 330 |
+
if ( ! empty( $roles ) ) {
|
| 331 |
+
|
| 332 |
+
// Is role in dynamic roles array?
|
| 333 |
+
$retval = in_array( $role, $roles, true );
|
| 334 |
+
}
|
| 335 |
+
}
|
| 336 |
+
|
| 337 |
+
// Filter & return
|
| 338 |
+
return (bool) apply_filters( 'bbp_is_valid_role', $retval, $role );
|
| 339 |
+
}
|
| 340 |
+
|
| 341 |
/**
|
| 342 |
* Add the default role to the current user if needed
|
| 343 |
*
|
includes/users/signups.php
CHANGED
|
@@ -19,7 +19,11 @@ defined( 'ABSPATH' ) || exit;
|
|
| 19 |
* @since 2.6.0 bbPress (r6674)
|
| 20 |
*/
|
| 21 |
function bbp_add_user_form_role_field() {
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
<table class="form-table">
|
| 25 |
<tr class="form-field">
|
|
@@ -66,21 +70,26 @@ function bbp_add_user_form_role_field() {
|
|
| 66 |
*/
|
| 67 |
function bbp_user_add_role_to_signup_meta( $meta = array() ) {
|
| 68 |
|
| 69 |
-
//
|
| 70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
? sanitize_key( $_POST['bbp-forums-role'] )
|
| 72 |
-
:
|
| 73 |
|
| 74 |
-
//
|
| 75 |
-
$
|
| 76 |
|
| 77 |
-
// Bail if
|
| 78 |
-
if (
|
| 79 |
return $meta;
|
| 80 |
}
|
| 81 |
|
| 82 |
// Add role to meta
|
| 83 |
-
$meta['bbp_new_role'] = $
|
| 84 |
|
| 85 |
// Return meta
|
| 86 |
return $meta;
|
|
@@ -97,16 +106,16 @@ function bbp_user_add_role_to_signup_meta( $meta = array() ) {
|
|
| 97 |
*/
|
| 98 |
function bbp_user_add_role_on_invite( $user_id = '', $role = '', $newuser_key = '' ) {
|
| 99 |
|
| 100 |
-
//
|
| 101 |
-
$
|
| 102 |
? sanitize_key( $_POST['bbp-forums-role'] )
|
| 103 |
-
:
|
| 104 |
|
| 105 |
-
//
|
| 106 |
-
$
|
| 107 |
|
| 108 |
-
// Bail if
|
| 109 |
-
if (
|
| 110 |
return;
|
| 111 |
}
|
| 112 |
|
|
@@ -117,7 +126,7 @@ function bbp_user_add_role_on_invite( $user_id = '', $role = '', $newuser_key =
|
|
| 117 |
$user_option = get_option( $option_key, array() );
|
| 118 |
|
| 119 |
// Add the new role
|
| 120 |
-
$user_option['bbp_new_role'] = $
|
| 121 |
|
| 122 |
// Update the invitation
|
| 123 |
update_option( $option_key, $user_option );
|
|
@@ -132,21 +141,21 @@ function bbp_user_add_role_on_invite( $user_id = '', $role = '', $newuser_key =
|
|
| 132 |
*/
|
| 133 |
function bbp_user_add_role_on_register( $user_id = '' ) {
|
| 134 |
|
| 135 |
-
//
|
| 136 |
-
$
|
| 137 |
? sanitize_key( $_POST['bbp-forums-role'] )
|
| 138 |
-
:
|
| 139 |
|
| 140 |
-
//
|
| 141 |
-
$
|
| 142 |
|
| 143 |
-
// Bail if
|
| 144 |
-
if (
|
| 145 |
return;
|
| 146 |
}
|
| 147 |
|
| 148 |
// Set the user role
|
| 149 |
-
bbp_set_user_role( $user_id, $
|
| 150 |
}
|
| 151 |
|
| 152 |
/**
|
|
@@ -158,19 +167,97 @@ function bbp_user_add_role_on_register( $user_id = '' ) {
|
|
| 158 |
*/
|
| 159 |
function bbp_user_add_role_on_activate( $user_id = 0, $password = '', $meta = array() ) {
|
| 160 |
|
| 161 |
-
//
|
| 162 |
-
$
|
| 163 |
? sanitize_key( $meta['bbp_new_role'] )
|
| 164 |
-
:
|
| 165 |
|
| 166 |
-
//
|
| 167 |
-
$
|
| 168 |
|
| 169 |
-
// Bail if
|
| 170 |
-
if (
|
| 171 |
return;
|
| 172 |
}
|
| 173 |
|
| 174 |
// Set the user role
|
| 175 |
-
bbp_set_user_role( $user_id, $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
}
|
| 19 |
* @since 2.6.0 bbPress (r6674)
|
| 20 |
*/
|
| 21 |
function bbp_add_user_form_role_field() {
|
| 22 |
+
|
| 23 |
+
// Bail if current user cannot promote users
|
| 24 |
+
if ( ! current_user_can( 'promote_users' ) ) {
|
| 25 |
+
return;
|
| 26 |
+
} ?>
|
| 27 |
|
| 28 |
<table class="form-table">
|
| 29 |
<tr class="form-field">
|
| 70 |
*/
|
| 71 |
function bbp_user_add_role_to_signup_meta( $meta = array() ) {
|
| 72 |
|
| 73 |
+
// Bail if already added
|
| 74 |
+
if ( ! empty( $meta['bbp_new_role'] ) ) {
|
| 75 |
+
return $meta;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
// Role to validate
|
| 79 |
+
$to_validate = ! empty( $_POST['bbp-forums-role'] ) && is_string( $_POST['bbp-forums-role'] )
|
| 80 |
? sanitize_key( $_POST['bbp-forums-role'] )
|
| 81 |
+
: '';
|
| 82 |
|
| 83 |
+
// Validate the signup role
|
| 84 |
+
$valid_role = bbp_validate_registration_role( $to_validate );
|
| 85 |
|
| 86 |
+
// Bail if errors
|
| 87 |
+
if ( bbp_has_errors() ) {
|
| 88 |
return $meta;
|
| 89 |
}
|
| 90 |
|
| 91 |
// Add role to meta
|
| 92 |
+
$meta['bbp_new_role'] = $valid_role;
|
| 93 |
|
| 94 |
// Return meta
|
| 95 |
return $meta;
|
| 106 |
*/
|
| 107 |
function bbp_user_add_role_on_invite( $user_id = '', $role = '', $newuser_key = '' ) {
|
| 108 |
|
| 109 |
+
// Role to validate
|
| 110 |
+
$to_validate = ! empty( $_POST['bbp-forums-role'] ) && is_string( $_POST['bbp-forums-role'] )
|
| 111 |
? sanitize_key( $_POST['bbp-forums-role'] )
|
| 112 |
+
: '';
|
| 113 |
|
| 114 |
+
// Validate the signup role
|
| 115 |
+
$valid_role = bbp_validate_registration_role( $to_validate );
|
| 116 |
|
| 117 |
+
// Bail if errors
|
| 118 |
+
if ( bbp_has_errors() ) {
|
| 119 |
return;
|
| 120 |
}
|
| 121 |
|
| 126 |
$user_option = get_option( $option_key, array() );
|
| 127 |
|
| 128 |
// Add the new role
|
| 129 |
+
$user_option['bbp_new_role'] = $valid_role;
|
| 130 |
|
| 131 |
// Update the invitation
|
| 132 |
update_option( $option_key, $user_option );
|
| 141 |
*/
|
| 142 |
function bbp_user_add_role_on_register( $user_id = '' ) {
|
| 143 |
|
| 144 |
+
// Role to validate
|
| 145 |
+
$to_validate = ! empty( $_POST['bbp-forums-role'] ) && is_string( $_POST['bbp-forums-role'] )
|
| 146 |
? sanitize_key( $_POST['bbp-forums-role'] )
|
| 147 |
+
: '';
|
| 148 |
|
| 149 |
+
// Validate the signup role
|
| 150 |
+
$valid_role = bbp_validate_registration_role( $to_validate );
|
| 151 |
|
| 152 |
+
// Bail if errors
|
| 153 |
+
if ( bbp_has_errors() ) {
|
| 154 |
return;
|
| 155 |
}
|
| 156 |
|
| 157 |
// Set the user role
|
| 158 |
+
bbp_set_user_role( $user_id, $valid_role );
|
| 159 |
}
|
| 160 |
|
| 161 |
/**
|
| 167 |
*/
|
| 168 |
function bbp_user_add_role_on_activate( $user_id = 0, $password = '', $meta = array() ) {
|
| 169 |
|
| 170 |
+
// Role to validate
|
| 171 |
+
$to_validate = ! empty( $meta['bbp_new_role'] ) && is_string( $meta['bbp_new_role'] )
|
| 172 |
? sanitize_key( $meta['bbp_new_role'] )
|
| 173 |
+
: '';
|
| 174 |
|
| 175 |
+
// Validate the signup role
|
| 176 |
+
$valid_role = bbp_validate_activation_role( $to_validate );
|
| 177 |
|
| 178 |
+
// Bail if errors
|
| 179 |
+
if ( bbp_has_errors() ) {
|
| 180 |
return;
|
| 181 |
}
|
| 182 |
|
| 183 |
// Set the user role
|
| 184 |
+
bbp_set_user_role( $user_id, $valid_role );
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
/** Validators ****************************************************************/
|
| 188 |
+
|
| 189 |
+
/**
|
| 190 |
+
* Validate the Forum role during signup
|
| 191 |
+
*
|
| 192 |
+
* This helper function performs a number of generic checks, and encapsulates
|
| 193 |
+
* the logic used to validate if a Forum Role is valid, typically during new
|
| 194 |
+
* user registration, but also when adding an existing user to a site in
|
| 195 |
+
* Multisite installations.
|
| 196 |
+
*
|
| 197 |
+
* @since 2.6.5
|
| 198 |
+
*
|
| 199 |
+
* @param string $to_validate A role ID to validate
|
| 200 |
+
* @return string A valid role ID, or empty string on error
|
| 201 |
+
*/
|
| 202 |
+
function bbp_validate_signup_role( $to_validate = '' ) {
|
| 203 |
+
|
| 204 |
+
// Default return value
|
| 205 |
+
$retval = '';
|
| 206 |
+
|
| 207 |
+
// Add error if role is empty
|
| 208 |
+
if ( empty( $to_validate ) ) {
|
| 209 |
+
bbp_add_error( 'bbp_signup_role_empty', __( '<strong>ERROR</strong>: Empty role.', 'bbpress' ) );
|
| 210 |
+
}
|
| 211 |
+
|
| 212 |
+
// Add error if posted role is not a valid role
|
| 213 |
+
if ( ! bbp_is_valid_role( $to_validate ) ) {
|
| 214 |
+
bbp_add_error( 'bbp_signup_role_invalid', __( '<strong>ERROR</strong>: Invalid role.', 'bbpress' ) );
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
// If no errors, set return value to the role to validate
|
| 218 |
+
if ( ! bbp_has_errors() ) {
|
| 219 |
+
$retval = $to_validate;
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
// Filter & return
|
| 223 |
+
return (string) apply_filters( 'bbp_validate_signup_role', $retval, $to_validate );
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
/**
|
| 227 |
+
* Validate the Forum role during the registration process
|
| 228 |
+
*
|
| 229 |
+
* @since 2.6.5
|
| 230 |
+
*
|
| 231 |
+
* @param string $to_validate A well-formed (string) role ID to validate
|
| 232 |
+
* @return string A valid role ID, or empty string on error
|
| 233 |
+
*/
|
| 234 |
+
function bbp_validate_registration_role( $to_validate = '' ) {
|
| 235 |
+
|
| 236 |
+
// Default return value
|
| 237 |
+
$retval = bbp_get_default_role();
|
| 238 |
+
|
| 239 |
+
// Conditionally handle posted values for capable users
|
| 240 |
+
if ( is_admin() && current_user_can( 'create_users' ) ) {
|
| 241 |
+
$retval = $to_validate;
|
| 242 |
+
}
|
| 243 |
+
|
| 244 |
+
// Validate & return
|
| 245 |
+
return bbp_validate_signup_role( $retval );
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
/**
|
| 249 |
+
* Validate the Forum role during activation
|
| 250 |
+
*
|
| 251 |
+
* This function exists simply for parity with registrations, and to maintain an
|
| 252 |
+
* intentional layer of abstraction from the more generic function it uses.
|
| 253 |
+
*
|
| 254 |
+
* @since 2.6.5
|
| 255 |
+
*
|
| 256 |
+
* @param string $to_validate A well-formed (string) role ID to validate
|
| 257 |
+
* @return string A valid role ID, or empty string on error
|
| 258 |
+
*/
|
| 259 |
+
function bbp_validate_activation_role( $to_validate = '' ) {
|
| 260 |
+
|
| 261 |
+
// Validate & return
|
| 262 |
+
return bbp_validate_signup_role( $to_validate );
|
| 263 |
}
|
readme.txt
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
=== bbPress ===
|
| 2 |
Contributors: matt, johnjamesjacoby, jmdodd, netweb, sergeybiryukov
|
| 3 |
Tags: forum, forums, discussion, support
|
| 4 |
-
Requires at least: 4.7
|
| 5 |
Tested up to: 5.4
|
| 6 |
-
Stable tag: 2.6.
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
Requires PHP: 5.6.20
|
|
|
|
| 10 |
|
| 11 |
bbPress is forum software for WordPress.
|
| 12 |
|
| 1 |
=== bbPress ===
|
| 2 |
Contributors: matt, johnjamesjacoby, jmdodd, netweb, sergeybiryukov
|
| 3 |
Tags: forum, forums, discussion, support
|
|
|
|
| 4 |
Tested up to: 5.4
|
| 5 |
+
Stable tag: 2.6.5
|
| 6 |
License: GPLv2 or later
|
| 7 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
| 8 |
Requires PHP: 5.6.20
|
| 9 |
+
Requires at least: 4.7
|
| 10 |
|
| 11 |
bbPress is forum software for WordPress.
|
| 12 |
|
