PluginProbe
bbPress / 2.6.19
bbPress v2.6.19
2.6.19 2.6.18 2.6.17 trunk 2.0 2.0-beta-1 2.0-beta-2b 2.0-beta-3 2.0-beta-3b 2.0-rc-2 2.0-rc-3 2.0-rc-4 2.0-rc-5 2.0.1 2.0.2 2.0.3 2.1 2.1-beta-1 2.1-rc1 2.1-rc2 2.1-rc3 2.1-rc4 2.1.1 2.1.2 2.1.3 All 74 releases
← All changes | includes/admin/tools/upgrade.php +7 -7 2.6.17 → 2.6.19 View file →
@@ -12,9 +12,9 @@
12 12
13 13 /**
14 14 * Admin repair page
15 15 *
16 - * @since 2.6.0 bbPress (r6278)
16 + * @since 2.6.0 bbPress (r6279)
17 17 *
18 18 */
19 19 function bbp_admin_upgrade_page() {
20 20
@@ -143,10 +143,10 @@
143 143 ?><div class="row-actions hide-if-no-js">
144 144 <span class="run">
145 145 <a href="<?php bbp_admin_repair_tool_run_url( $item ); ?>" aria-label="<?php printf(
146 146 /* translators: %s: Repair tool title */
147 - esc_html__( 'Run %s', 'bbpress' ),
148 - $item['title']
147 + esc_attr__( 'Run %s', 'bbpress' ),
148 + esc_attr( $item['title'] )
149 149 );
150 150 ?>" id="<?php echo esc_attr( $item['id'] ); ?>" ><?php esc_html_e( 'Run', 'bbpress' ); ?></a>
151 151 </span>
152 152 </div>
@@ -277,9 +277,9 @@
277 277 * Upgrade group forum ID mappings after a bbPress 1.x to bbPress 2.x conversion
278 278 *
279 279 * Previously named: bbp_admin_repair_group_forum_relationships()
280 280 *
281 - * @since 2.6.0 bbPress (r4395)
281 + * @since 2.6.0 bbPress (r6496)
282 282 *
283 283 * @return If a wp_error() occurs and no converted forums are found
284 284 */
285 285 function bbp_admin_upgrade_group_forum_relationships() {
@@ -324,9 +324,9 @@
324 324 continue;
325 325 }
326 326
327 327 // Attempt to update group meta
328 - $updated = $bbp_db->query( "UPDATE `{$groups_meta_table}` SET `meta_value` = '{$group_forums->ID}' WHERE `meta_key` = 'forum_id' AND `meta_value` = '{$group_forums->meta_value}'" );
328 + $updated = $bbp_db->query( $bbp_db->prepare( "UPDATE `{$groups_meta_table}` SET `meta_value` = %d WHERE `meta_key` = %s AND `meta_value` = %s", $group_forums->ID, 'forum_id', $group_forums->meta_value ) );
329 329
330 330 // Bump the count
331 331 if ( ! empty( $updated ) && ! is_wp_error( $updated ) ) {
332 332 ++$g_count;
@@ -426,9 +426,9 @@
426 426
427 427 /**
428 428 * Upgrade user favorites for bbPress 2.6 and higher
429 429 *
430 - * @since 2.6.0 bbPress (r6174)
430 + * @since 2.6.0 bbPress (r6176)
431 431 *
432 432 * @return array An array of the status code and the message
433 433 */
434 434 function bbp_admin_upgrade_user_favorites() {
@@ -488,9 +488,9 @@
488 488
489 489 /**
490 490 * Upgrade user topic subscriptions for bbPress 2.6 and higher
491 491 *
492 - * @since 2.6.0 bbPress (r6174)
492 + * @since 2.6.0 bbPress (r6193)
493 493 *
494 494 * @return array An array of the status code and the message
495 495 */
496 496 function bbp_admin_upgrade_user_topic_subscriptions() {