Changeset 7376
- Timestamp:
- 11/20/2025 07:23:50 PM (3 weeks ago)
- Location:
- trunk
- Files:
-
- 14 edited
-
phpcs.xml.dist (modified) (5 diffs)
-
src/includes/admin/actions.php (modified) (3 diffs)
-
src/includes/admin/classes/class-bbp-admin.php (modified) (3 diffs)
-
src/includes/admin/classes/class-bbp-converter.php (modified) (1 diff)
-
src/includes/admin/converters/Invision.php (modified) (1 diff)
-
src/includes/admin/converters/phpBB.php (modified) (3 diffs)
-
src/includes/admin/metaboxes.php (modified) (1 diff)
-
src/includes/common/formatting.php (modified) (3 diffs)
-
src/includes/common/functions.php (modified) (1 diff)
-
src/includes/core/actions.php (modified) (2 diffs)
-
src/includes/core/theme-compat.php (modified) (1 diff)
-
src/includes/core/update.php (modified) (2 diffs)
-
src/includes/topics/template.php (modified) (1 diff)
-
src/includes/users/template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpcs.xml.dist
r7375 r7376 472 472 </rule> 473 473 474 <rule ref="Universal.WhiteSpace.CommaSpacing.TooMuchSpaceAfter">475 <exclude-pattern>/src/*</exclude-pattern>476 </rule>477 478 <rule ref="WordPress.Arrays.ArrayIndentation.ItemNotAligned">479 <exclude-pattern>/src/*</exclude-pattern>480 </rule>481 482 <rule ref="WordPress.Arrays.ArrayIndentation.MultiLineArrayItemNotAligned">483 <exclude-pattern>/src/*</exclude-pattern>484 </rule>485 486 <rule ref="WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys">487 <exclude-pattern>/src/*</exclude-pattern>488 </rule>489 490 <rule ref="WordPress.Arrays.ArrayKeySpacingRestrictions.SpacesAroundArrayKeys">491 <exclude-pattern>/src/*</exclude-pattern>492 </rule>493 494 474 <rule ref="WordPress.Arrays.ArrayKeySpacingRestrictions.TooMuchSpaceAfterKey"> 495 475 <exclude-pattern>/src/*</exclude-pattern> … … 500 480 </rule> 501 481 502 <rule ref="WordPress.Arrays.MultipleStatementAlignment.MultilineItemSpaceBeforeDoubleArrow">503 <exclude-pattern>/src/*</exclude-pattern>504 </rule>505 506 <rule ref="WordPress.Arrays.MultipleStatementAlignment.SpaceBeforeDoubleArrow">507 <exclude-pattern>/src/*</exclude-pattern>508 </rule>509 510 482 <rule ref="WordPress.DateTime.CurrentTimeTimestamp.Requested"> 511 483 <exclude-pattern>/src/*</exclude-pattern> … … 517 489 518 490 <rule ref="WordPress.Files.FileName.InvalidClassFileName"> 519 <exclude-pattern>/src/*</exclude-pattern>491 <exclude-pattern>/src/*</exclude-pattern> 520 492 </rule> 521 493 … … 524 496 </rule> 525 497 526 <rule ref="WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound">527 <exclude-pattern>/src/*</exclude-pattern>528 </rule>529 530 498 <rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound"> 531 499 <exclude-pattern>/src/*</exclude-pattern> … … 533 501 534 502 <rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound"> 535 <exclude-pattern>/src/*</exclude-pattern>503 <exclude-pattern>/src/*</exclude-pattern> 536 504 </rule> 537 505 -
trunk/src/includes/admin/actions.php
r7102 r7376 177 177 178 178 // Forum topic count 179 if ( isset( $columns[ 'bbp_forum_topic_count'] ) ) {180 $columns[ 'bbp_forum_topic_count'] = '<span class="vers bbp_topics_column" title="' . esc_attr__( 'Topics', 'bbpress' ) . '"><span class="screen-reader-text">' . esc_html__( 'Topics', 'bbpress' ) . '</span></span>';179 if ( isset( $columns['bbp_forum_topic_count'] ) ) { 180 $columns['bbp_forum_topic_count'] = '<span class="vers bbp_topics_column" title="' . esc_attr__( 'Topics', 'bbpress' ) . '"><span class="screen-reader-text">' . esc_html__( 'Topics', 'bbpress' ) . '</span></span>'; 181 181 } 182 182 183 183 // Forum reply count 184 if ( isset( $columns[ 'bbp_forum_reply_count'] ) ) {185 $columns[ 'bbp_forum_reply_count'] = '<span class="vers bbp_replies_column" title="' . esc_attr__( 'Replies', 'bbpress' ) . '"><span class="screen-reader-text">' . esc_html__( 'Replies', 'bbpress' ) . '</span></span>';184 if ( isset( $columns['bbp_forum_reply_count'] ) ) { 185 $columns['bbp_forum_reply_count'] = '<span class="vers bbp_replies_column" title="' . esc_attr__( 'Replies', 'bbpress' ) . '"><span class="screen-reader-text">' . esc_html__( 'Replies', 'bbpress' ) . '</span></span>'; 186 186 } 187 187 … … 189 189 190 190 // Topic forum 191 if ( isset( $columns[ 'bbp_topic_forum'] ) ) {192 $columns[ 'bbp_topic_forum'] = '<span class="vers bbp_forums_column" title="' . esc_attr__( 'Forum', 'bbpress' ) . '"><span class="screen-reader-text">' . esc_html__( 'Forum', 'bbpress' ) . '</span></span>';191 if ( isset( $columns['bbp_topic_forum'] ) ) { 192 $columns['bbp_topic_forum'] = '<span class="vers bbp_forums_column" title="' . esc_attr__( 'Forum', 'bbpress' ) . '"><span class="screen-reader-text">' . esc_html__( 'Forum', 'bbpress' ) . '</span></span>'; 193 193 } 194 194 195 195 // Topic reply count 196 if ( isset( $columns[ 'bbp_topic_reply_count'] ) ) {197 $columns[ 'bbp_topic_reply_count'] = '<span class="vers bbp_replies_column" title="' . esc_attr__( 'Replies', 'bbpress' ) . '"><span class="screen-reader-text">' . esc_html__( 'Replies', 'bbpress' ) . '</span></span>';196 if ( isset( $columns['bbp_topic_reply_count'] ) ) { 197 $columns['bbp_topic_reply_count'] = '<span class="vers bbp_replies_column" title="' . esc_attr__( 'Replies', 'bbpress' ) . '"><span class="screen-reader-text">' . esc_html__( 'Replies', 'bbpress' ) . '</span></span>'; 198 198 } 199 199 … … 201 201 202 202 // Reply forum 203 if ( isset( $columns[ 'bbp_reply_forum'] ) ) {204 $columns[ 'bbp_reply_forum'] = '<span class="vers bbp_forums_column" title="' . esc_attr__( 'Forum', 'bbpress' ) . '"><span class="screen-reader-text">' . esc_html__( 'Forum', 'bbpress' ) . '</span></span>';203 if ( isset( $columns['bbp_reply_forum'] ) ) { 204 $columns['bbp_reply_forum'] = '<span class="vers bbp_forums_column" title="' . esc_attr__( 'Forum', 'bbpress' ) . '"><span class="screen-reader-text">' . esc_html__( 'Forum', 'bbpress' ) . '</span></span>'; 205 205 } 206 206 207 207 // Reply topic 208 if ( isset( $columns[ 'bbp_reply_topic'] ) ) {209 $columns[ 'bbp_reply_topic'] = '<span class="vers bbp_topics_column" title="' . esc_attr__( 'Topic', 'bbpress' ) . '"><span class="screen-reader-text">' . esc_html__( 'Topic', 'bbpress' ) . '</span></span>';208 if ( isset( $columns['bbp_reply_topic'] ) ) { 209 $columns['bbp_reply_topic'] = '<span class="vers bbp_topics_column" title="' . esc_attr__( 'Topic', 'bbpress' ) . '"><span class="screen-reader-text">' . esc_html__( 'Topic', 'bbpress' ) . '</span></span>'; 210 210 } 211 211 -
trunk/src/includes/admin/classes/class-bbp-admin.php
r7374 r7376 447 447 448 448 if ( false !== $found ) { 449 $menu[ $menu_index ][ 0 ] = bbp_maybe_append_pending_upgrade_count( $menu[ $menu_index ][ 0] );449 $menu[ $menu_index ][0] = bbp_maybe_append_pending_upgrade_count( $menu[ $menu_index ][0] ); 450 450 continue; 451 451 } … … 1509 1509 1510 1510 // Switch to the new site 1511 bbp_switch_to_site( $details[ 'blog_id'] );1511 bbp_switch_to_site( $details['blog_id'] ); 1512 1512 1513 1513 $basename = bbpress()->basename; … … 1522 1522 1523 1523 // Do some actions to allow plugins to do things too 1524 do_action( 'after_bbpress_upgrade', $response );1525 do_action( 'bbp_upgrade_site', $details[ 'blog_id'] );1524 do_action( 'after_bbpress_upgrade', $response ); 1525 do_action( 'bbp_upgrade_site', $details['blog_id'] ); 1526 1526 1527 1527 endforeach; ?> -
trunk/src/includes/admin/classes/class-bbp-converter.php
r7360 r7376 320 320 321 321 // Platform 322 '_bbp_converter_platform' => ! empty( $_POST['_bbp_converter_platform' ] )323 ? sanitize_text_field( $_POST['_bbp_converter_platform' ] )322 '_bbp_converter_platform' => ! empty( $_POST['_bbp_converter_platform'] ) 323 ? sanitize_text_field( $_POST['_bbp_converter_platform'] ) 324 324 : '', 325 325 -
trunk/src/includes/admin/converters/Invision.php
r7374 r7376 547 547 $length = strlen( $input ); 548 548 for ( $i = 0; $i < $length; $i++ ) { 549 $j = ord( $input[ $i] );549 $j = ord( $input[ $i ] ); 550 550 if ( ( $j >= 65 && $j <= 90 ) 551 551 || ( $j >= 97 && $j <= 122 ) 552 552 || ( $j >= 48 && $j <= 57 ) ) { 553 $output .= $input[ $i];553 $output .= $input[ $i ]; 554 554 } else { 555 $output .= '&#' . ord( $input[ $i] ) . ';';555 $output .= '&#' . ord( $input[ $i ] ) . ';'; 556 556 } 557 557 } -
trunk/src/includes/admin/converters/phpBB.php
r7360 r7376 814 814 } 815 815 816 $output .= $itoa64[ ( $value >> 6 ) & 0x3f];816 $output .= $itoa64[ ( $value >> 6 ) & 0x3f ]; 817 817 818 818 if ( $i++ >= $count ) { … … 824 824 } 825 825 826 $output .= $itoa64[ ( $value >> 12 ) & 0x3f];826 $output .= $itoa64[ ( $value >> 12 ) & 0x3f ]; 827 827 828 828 if ( $i++ >= $count ) { … … 830 830 } 831 831 832 $output .= $itoa64[ ( $value >> 18 ) & 0x3f];832 $output .= $itoa64[ ( $value >> 18 ) & 0x3f ]; 833 833 } while ( $i < $count ); 834 834 -
trunk/src/includes/admin/metaboxes.php
r7374 r7376 481 481 'exclude' => '', 482 482 483 // Output-related484 'select_id' => 'parent_id',485 'options_only' => false,486 'show_none' => esc_html__( '— No forum —', 'bbpress' ),487 'disable_categories' => current_user_can( 'edit_forums' ),488 'disabled' => ''483 // Output-related 484 'select_id' => 'parent_id', 485 'options_only' => false, 486 'show_none' => esc_html__( '— No forum —', 'bbpress' ), 487 'disable_categories' => current_user_can( 'edit_forums' ), 488 'disabled' => '' 489 489 ) 490 490 ); -
trunk/src/includes/common/formatting.php
r7373 r7376 29 29 // Links 30 30 'a' => array( 31 'href' => true,32 'title' => true,33 'rel' => true,34 'target' => true31 'href' => true, 32 'title' => true, 33 'rel' => true, 34 'target' => true 35 35 ), 36 36 37 37 // Quotes 38 'blockquote' => array(39 'cite' => true38 'blockquote' => array( 39 'cite' => true 40 40 ), 41 41 42 42 // Code 43 'code' => array(),44 'pre' => array(45 'class' => true43 'code' => array(), 44 'pre' => array( 45 'class' => true 46 46 ), 47 47 48 48 // Formatting 49 'em' => array(),50 'strong' => array(),51 'del' => array(49 'em' => array(), 50 'strong' => array(), 51 'del' => array( 52 52 'datetime' => true, 53 53 'cite' => true … … 59 59 60 60 // Lists 61 'ul' => array(),62 'ol' => array(63 'start' => true,61 'ul' => array(), 62 'ol' => array( 63 'start' => true, 64 64 ), 65 'li' => array(),65 'li' => array(), 66 66 67 67 // Images 68 'img' => array(69 'src' => true,70 'border' => true,71 'alt' => true,72 'height' => true,73 'width' => true,68 'img' => array( 69 'src' => true, 70 'border' => true, 71 'alt' => true, 72 'height' => true, 73 'width' => true, 74 74 ) 75 75 ) ); … … 661 661 $chunks = array( 662 662 /* translators: %s: Number of years */ 663 array( YEAR_IN_SECONDS, _n_noop( '%s year', '%s years', 'bbpress' ) ), 663 array( YEAR_IN_SECONDS, _n_noop( '%s year', '%s years', 'bbpress' ) ), 664 664 665 /* translators: %s: Number of months */ 665 array( MONTH_IN_SECONDS, _n_noop( '%s month', '%s months', 'bbpress' ) ), 666 array( MONTH_IN_SECONDS, _n_noop( '%s month', '%s months', 'bbpress' ) ), 667 666 668 /* translators: %s: Number of weeks */ 667 array( WEEK_IN_SECONDS, _n_noop( '%s week', '%s weeks', 'bbpress' ) ), 669 array( WEEK_IN_SECONDS, _n_noop( '%s week', '%s weeks', 'bbpress' ) ), 670 668 671 /* translators: %s: Number of days */ 669 array( DAY_IN_SECONDS, _n_noop( '%s day', '%s days', 'bbpress' ) ), 672 array( DAY_IN_SECONDS, _n_noop( '%s day', '%s days', 'bbpress' ) ), 673 670 674 /* translators: %s: Number of hours */ 671 array( HOUR_IN_SECONDS, _n_noop( '%s hour', '%s hours', 'bbpress' ) ), 675 array( HOUR_IN_SECONDS, _n_noop( '%s hour', '%s hours', 'bbpress' ) ), 676 672 677 /* translators: %s: Number of minutes */ 673 678 array( MINUTE_IN_SECONDS, _n_noop( '%s minute', '%s minutes', 'bbpress' ) ), 679 674 680 /* translators: %s: Number of seconds */ 675 array( 1, _n_noop( '%s second', '%s seconds', 'bbpress' ) ),681 array( 1, _n_noop( '%s second', '%s seconds', 'bbpress' ) ), 676 682 ); 677 683 -
trunk/src/includes/common/functions.php
r7374 r7376 1612 1612 1613 1613 // Assemble $redirect_to and add it (encoded) to full $url 1614 $appended = add_query_arg( array( 'loggedout' => 'true'), $validated );1614 $appended = add_query_arg( array( 'loggedout' => 'true' ), $validated ); 1615 1615 $encoded = urlencode( $appended ); 1616 $url = add_query_arg( array( 'redirect_to' => $encoded ), $url );1616 $url = add_query_arg( array( 'redirect_to' => $encoded ), $url ); 1617 1617 } 1618 1618 -
trunk/src/includes/core/actions.php
r7231 r7376 150 150 151 151 // Widgets 152 // phpcs:disable Universal.WhiteSpace.CommaSpacing.TooMuchSpaceAfter 152 153 add_action( 'bbp_widgets_init', array( 'BBP_Login_Widget', 'register_widget' ), 10 ); 153 154 add_action( 'bbp_widgets_init', array( 'BBP_Views_Widget', 'register_widget' ), 10 ); … … 157 158 add_action( 'bbp_widgets_init', array( 'BBP_Replies_Widget', 'register_widget' ), 10 ); 158 159 add_action( 'bbp_widgets_init', array( 'BBP_Stats_Widget', 'register_widget' ), 10 ); 160 // phpcs:enable 159 161 160 162 // Notices -
trunk/src/includes/core/theme-compat.php
r7363 r7376 1006 1006 1007 1007 // Filters exist in this priority 1008 if ( ! empty( $priority ) && isset( $bbp->filters->wp_filter[ $tag ][ $priority ] ) ) {1008 if ( ! empty( $priority ) && isset( $bbp->filters->wp_filter[ $tag ][ $priority ] ) ) { 1009 1009 1010 1010 // Store filters in a backup -
trunk/src/includes/core/update.php
r7352 r7376 246 246 ), 247 247 array( 248 'forum_id' => $forum_id248 'forum_id' => $forum_id 249 249 ) 250 250 ); … … 259 259 ), 260 260 array( 261 'forum_id' => $forum_id,262 'topic_id' => $topic_id261 'forum_id' => $forum_id, 262 'topic_id' => $topic_id 263 263 ) 264 264 ); -
trunk/src/includes/topics/template.php
r7374 r7376 390 390 // Conditionally exclude private/hidden forum ID's 391 391 $exclude_forum_ids = bbp_exclude_forum_ids( 'array' ); 392 $post_parent_id = $r['post_parent']; 392 393 393 394 // Maybe remove the current forum from excluded forum IDs 394 if ( ! empty( $ r['post_parent' ]) ) {395 unset( $exclude_forum_ids[ $ r['post_parent' ]] );395 if ( ! empty( $post_parent_id ) ) { 396 unset( $exclude_forum_ids[ $post_parent_id ] ); 396 397 } 397 398 -
trunk/src/includes/users/template.php
r7366 r7376 159 159 160 160 if ( $this->user_count > 0 ) { 161 $this->user = $this->results[ 0];161 $this->user = $this->results[0]; 162 162 } 163 163 }
Note: See TracChangeset
for help on using the changeset viewer.