Changeset 7373
- Timestamp:
- 11/18/2025 01:03:20 AM (5 weeks ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
phpcs.xml.dist (modified) (1 diff)
-
src/includes/admin/settings.php (modified) (8 diffs)
-
src/includes/admin/tools/help.php (modified) (4 diffs)
-
src/includes/common/formatting.php (modified) (1 diff)
-
src/includes/common/functions.php (modified) (1 diff)
-
src/includes/core/template-loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpcs.xml.dist
r7371 r7373 476 476 </rule> 477 477 478 <rule ref="Universal.WhiteSpace.PrecisionAlignment.Found">479 <exclude-pattern>/src/*</exclude-pattern>480 </rule>481 482 478 <rule ref="WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine"> 483 479 <exclude-pattern>/src/*</exclude-pattern> -
trunk/src/includes/admin/settings.php
r7360 r7373 1625 1625 function bbp_converter_setting_callback_dbserver() { 1626 1626 ?> 1627 <input name="_bbp_converter_db_server" 1628 id="_bbp_converter_db_server" 1629 type="text" 1630 class="code" 1631 value="<?php bbp_form_option( '_bbp_converter_db_server', 'localhost' ); ?>" 1632 <?php bbp_maybe_admin_setting_disabled( '_bbp_converter_db_server' ); ?> 1627 <input 1628 name="_bbp_converter_db_server" 1629 id="_bbp_converter_db_server" 1630 type="text" 1631 class="code" 1632 value="<?php bbp_form_option( '_bbp_converter_db_server', 'localhost' ); ?>" 1633 <?php bbp_maybe_admin_setting_disabled( '_bbp_converter_db_server' ); ?> 1633 1634 /> 1634 1635 <p class="description"> … … 1651 1652 function bbp_converter_setting_callback_dbport() { 1652 1653 ?> 1653 <input name="_bbp_converter_db_port" 1654 id="_bbp_converter_db_port" 1655 type="text" 1656 class="code" 1657 value="<?php bbp_form_option( '_bbp_converter_db_port', '3306' ); ?>" 1658 <?php bbp_maybe_admin_setting_disabled( '_bbp_converter_db_port' ); ?> 1654 <input 1655 name="_bbp_converter_db_port" 1656 id="_bbp_converter_db_port" 1657 type="text" 1658 class="code" 1659 value="<?php bbp_form_option( '_bbp_converter_db_port', '3306' ); ?>" 1660 <?php bbp_maybe_admin_setting_disabled( '_bbp_converter_db_port' ); ?> 1659 1661 /> 1660 1662 <p class="description"> … … 1943 1945 'id' => 'overview', 1944 1946 'title' => esc_html__( 'Overview', 'bbpress' ), 1945 'content' => '<p>' . esc_html__( 'This screen provides access to all of the Forums settings.', 'bbpress' ) . '</p>' . 1946 '<p>' . esc_html__( 'Please see the additional help tabs for more information on each individual section.', 'bbpress' ) . '</p>' 1947 'content' => 1948 '<p>' . esc_html__( 'This screen provides access to all of the Forums settings.', 'bbpress' ) . '</p>' . 1949 '<p>' . esc_html__( 'Please see the additional help tabs for more information on each individual section.', 'bbpress' ) . '</p>' 1947 1950 ) ); 1948 1951 … … 1951 1954 'id' => 'main_settings', 1952 1955 'title' => esc_html__( 'Main Settings', 'bbpress' ), 1953 'content' => '<p>' . esc_html__( 'The "Main Settings" section includes a number of options:', 'bbpress' ) . '</p>' . 1954 '<p>' . 1956 'content' => 1957 '<p>' . esc_html__( 'The "Main Settings" section includes a number of options:', 'bbpress' ) . '</p>' . 1958 '<p>' . 1955 1959 '<ul>' . 1956 1960 '<li>' . esc_html__( 'You can choose to lock a post after a certain number of minutes. "Locking post editing" will prevent the author from editing some amount of time after saving a post.', 'bbpress' ) . '</li>' . … … 1971 1975 'id' => 'theme_packages', 1972 1976 'title' => esc_html__( 'Theme Packages', 'bbpress' ), 1973 'content' => '<p>' . esc_html__( 'The "Theme Packages" section allows you to choose which theme package should be used.', 'bbpress' ) . '</p>' . 1974 '<p>' . 1977 'content' => 1978 '<p>' . esc_html__( 'The "Theme Packages" section allows you to choose which theme package should be used.', 'bbpress' ) . '</p>' . 1979 '<p>' . 1975 1980 '<ul>' . 1976 1981 '<li>' . esc_html__( 'The "bbPress Default" package is installed by default.', 'bbpress' ) . '</li>' . … … 1985 1990 'id' => 'per_page', 1986 1991 'title' => esc_html__( 'Per Page', 'bbpress' ), 1987 'content' => '<p>' . esc_html__( 'The "Per Page" section allows you to control the number of topics and replies appear on each page.', 'bbpress' ) . '</p>' . 1992 'content' => 1993 '<p>' . esc_html__( 'The "Per Page" section allows you to control the number of topics and replies appear on each page.', 'bbpress' ) . '</p>' . 1988 1994 '<ul>' . 1989 1995 '<li>' . esc_html__( 'This is comparable to the WordPress "Reading Settings" page, where you can set the number of posts that should show on blog pages and in feeds.', 'bbpress' ) . '</li>' . 1990 1996 '<li>' . esc_html__( 'These are broken up into two separate groups: one for what appears in your theme, another for RSS feeds.', 'bbpress' ) . '</li>' . 1991 1997 '</ul>' . 1992 '<p>'1998 '<p>' 1993 1999 ) ); 1994 2000 … … 1997 2003 'id' => 'slugs', 1998 2004 'title' => esc_html__( 'Slugs', 'bbpress' ), 1999 'content' => '<p>' . esc_html__( 'The "Slugs" section allows you to control the permalink structure for your forums.', 'bbpress' ) . '</p>' . 2005 'content' => 2006 '<p>' . esc_html__( 'The "Slugs" section allows you to control the permalink structure for your forums.', 'bbpress' ) . '</p>' . 2000 2007 '<ul>' . 2001 2008 '<li>' . esc_html__( '"Archive Slugs" are used as the "root" for your forums and topics. If you combine these values with existing page slugs, bbPress will attempt to output the most correct title and content.', 'bbpress' ) . '</li>' . … … 2003 2010 '<li>' . esc_html__( 'In the event of a slug collision with WordPress or BuddyPress, a warning will appear next to the problem slug(s).', 'bbpress' ) . '</li>' . 2004 2011 '</ul>' . 2005 '<p>'2012 '<p>' 2006 2013 ) ); 2007 2014 -
trunk/src/includes/admin/tools/help.php
r6573 r7373 29 29 'id' => 'repair_forums', 30 30 'title' => __( 'Repair Forums', 'bbpress' ), 31 'content' => '<p>' . __( 'There is more detailed information available on the bbPress and BuddyPress codex for the following:', 'bbpress' ) . '</p>' . 32 '<p>' . 31 'content' => 32 '<p>' . __( 'There is more detailed information available on the bbPress and BuddyPress codex for the following:', 'bbpress' ) . '</p>' . 33 '<p>' . 33 34 '<ul>' . 34 35 '<li>' . __( 'BuddyPress Group Forums: <a href="https://codex.buddypress.org/getting-started/installing-group-and-sitewide-forums/">Installing Group and Sitewide Forums</a> and <a href="https://codex.buddypress.org/getting-started/guides/migrating-from-old-forums-to-bbpress-2/">Migrating from old forums to bbPress 2.2+</a>.', 'bbpress' ) . '</li>' . … … 94 95 'id' => 'overview', 95 96 'title' => __( 'Overview', 'bbpress' ), 96 'content' => '<p>' . __( 'This screen provides access to all of the bbPress Import Forums settings and resources.', 'bbpress' ) . '</p>' . 97 '<p>' . __( 'Please see the additional help tabs for more information on each individual section.', 'bbpress' ) . '</p>' . 98 '<p>' . __( 'Also see the main article on the bbPress codex <a href="https://codex.bbpress.org/import-forums/">bbPress: Import Forums</a>.', 'bbpress' ) . '</p>' 97 'content' => 98 '<p>' . __( 'This screen provides access to all of the bbPress Import Forums settings and resources.', 'bbpress' ) . '</p>' . 99 '<p>' . __( 'Please see the additional help tabs for more information on each individual section.', 'bbpress' ) . '</p>' . 100 '<p>' . __( 'Also see the main article on the bbPress codex <a href="https://codex.bbpress.org/import-forums/">bbPress: Import Forums</a>.', 'bbpress' ) . '</p>' 99 101 ) ); 100 102 … … 103 105 'id' => 'database_settings', 104 106 'title' => __( 'Database Settings', 'bbpress' ), 105 'content' => '<p>' . __( 'In the Database Settings you have a number of options:', 'bbpress' ) . '</p>' . 106 '<p>' . 107 'content' => 108 '<p>' . __( 'In the Database Settings you have a number of options:', 'bbpress' ) . '</p>' . 109 '<p>' . 107 110 '<ul>' . 108 111 '<li>' . __( 'The settings in this section refer to the database connection strings used by your old forum software. The best way to determine the exact settings you need is to copy them from your legacy forums configuration file or contact your web hosting provider.', 'bbpress' ) . '</li>' . … … 115 118 'id' => 'importer_options', 116 119 'title' => __( 'Importer Options', 'bbpress' ), 117 'content' => '<p>' . __( 'In the Options you have a number of options:', 'bbpress' ) . '</p>' . 118 '<p>' . 120 'content' => 121 '<p>' . __( 'In the Options you have a number of options:', 'bbpress' ) . '</p>' . 122 '<p>' . 119 123 '<ul>' . 120 124 '<li>' . __( 'Depending on your MySQL configuration you can tweak the "Rows Limit" and "Delay Time" that may help to improve the overall time it takes to perform a complete forum import.', 'bbpress' ) . '</li>' . -
trunk/src/includes/common/formatting.php
r7368 r7373 313 313 314 314 // Bail on links that match the current domain 315 if ( preg_match( '%href=["\'](' . preg_quote( set_url_scheme( $home_url, 'http' ) ) . ')%i', $text ) || 316 preg_match( '%href=["\'](' . preg_quote( set_url_scheme( $home_url, 'https' ) ) . ')%i', $text ) 315 if ( 316 preg_match( '%href=["\'](' . preg_quote( set_url_scheme( $home_url, 'http' ) ) . ')%i', $text ) 317 || 318 preg_match( '%href=["\'](' . preg_quote( set_url_scheme( $home_url, 'https' ) ) . ')%i', $text ) 317 319 ) { 318 320 return "<a {$text}>"; -
trunk/src/includes/common/functions.php
r7360 r7373 176 176 177 177 // Is the post by an anonymous user? 178 if ( ( bbp_get_topic_post_type() === $data['post_type'] && ! bbp_is_topic_anonymous( $postarr['ID'] ) ) || 179 ( bbp_get_reply_post_type() === $data['post_type'] && ! bbp_is_reply_anonymous( $postarr['ID'] ) ) ) { 178 if ( 179 ( bbp_get_topic_post_type() === $data['post_type'] && ! bbp_is_topic_anonymous( $postarr['ID'] ) ) 180 || 181 ( bbp_get_reply_post_type() === $data['post_type'] && ! bbp_is_reply_anonymous( $postarr['ID'] ) ) 182 ) { 180 183 return $data; 181 184 } -
trunk/src/includes/core/template-loader.php
r7361 r7373 93 93 } 94 94 95 /**95 /** 96 96 * Filters the path to the template file that is being used. 97 97 *
Note: See TracChangeset
for help on using the changeset viewer.