Ticket #3294: trac-3294-phpcs-fix-accidental-space-indents.patch
File trac-3294-phpcs-fix-accidental-space-indents.patch, 7.7 KB (added by , 5 years ago) |
---|
-
src/includes/admin/settings.php
1867 1867 'id' => 'overview', 1868 1868 'title' => esc_html__( 'Overview', 'bbpress' ), 1869 1869 'content' => '<p>' . esc_html__( 'This screen provides access to all of the Forums settings.', 'bbpress' ) . '</p>' . 1870 1870 '<p>' . esc_html__( 'Please see the additional help tabs for more information on each individual section.', 'bbpress' ) . '</p>' 1871 1871 ) ); 1872 1872 1873 1873 // Main Settings … … 1875 1875 'id' => 'main_settings', 1876 1876 'title' => esc_html__( 'Main Settings', 'bbpress' ), 1877 1877 'content' => '<p>' . esc_html__( 'The "Main Settings" section includes a number of options:', 'bbpress' ) . '</p>' . 1878 1878 '<p>' . 1879 1879 '<ul>' . 1880 1880 '<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>' . 1881 1881 '<li>' . esc_html__( '"Throttle time" is the amount of time required between posts from a single author. The higher the throttle time, the longer a user will need to wait between posting to the forum.', 'bbpress' ) . '</li>' . … … 1895 1895 'id' => 'theme_packages', 1896 1896 'title' => esc_html__( 'Theme Packages', 'bbpress' ), 1897 1897 'content' => '<p>' . esc_html__( 'The "Theme Packages" section allows you to choose which theme package should be used.', 'bbpress' ) . '</p>' . 1898 1898 '<p>' . 1899 1899 '<ul>' . 1900 1900 '<li>' . esc_html__( 'The "bbPress Default" package is installed by default.', 'bbpress' ) . '</li>' . 1901 1901 '<li>' . esc_html__( 'Some themes may choose to ignore this setting entirely.', 'bbpress' ) . '</li>' . … … 1913 1913 '<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>' . 1914 1914 '<li>' . esc_html__( 'These are broken up into two separate groups: one for what appears in your theme, another for RSS feeds.', 'bbpress' ) . '</li>' . 1915 1915 '</ul>' . 1916 1916 '<p>' 1917 1917 ) ); 1918 1918 1919 1919 // Slugs … … 1926 1926 '<li>' . esc_html__( '"Single Slugs" are used as a prefix when viewing an individual forum, topic, reply, user, or view.', 'bbpress' ) . '</li>' . 1927 1927 '<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>' . 1928 1928 '</ul>' . 1929 1929 '<p>' 1930 1930 ) ); 1931 1931 1932 1932 // Help Sidebar -
src/includes/admin/tools/help.php
29 29 'id' => 'repair_forums', 30 30 'title' => __( 'Repair Forums', 'bbpress' ), 31 31 'content' => '<p>' . __( 'There is more detailed information available on the bbPress and BuddyPress codex for the following:', 'bbpress' ) . '</p>' . 32 32 '<p>' . 33 33 '<ul>' . 34 34 '<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>' . 35 35 '<li>' . __( 'bbPress roles: <a href="https://codex.bbpress.org/bbpress-user-roles-and-capabilities/" target="_blank">bbPress User Roles and Capabilities</a>', 'bbpress' ) . '</li>' . … … 94 94 'id' => 'overview', 95 95 'title' => __( 'Overview', 'bbpress' ), 96 96 'content' => '<p>' . __( 'This screen provides access to all of the bbPress Import Forums settings and resources.', 'bbpress' ) . '</p>' . 97 98 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>' 99 99 ) ); 100 100 101 101 // Database Settings … … 103 103 'id' => 'database_settings', 104 104 'title' => __( 'Database Settings', 'bbpress' ), 105 105 'content' => '<p>' . __( 'In the Database Settings you have a number of options:', 'bbpress' ) . '</p>' . 106 106 '<p>' . 107 107 '<ul>' . 108 108 '<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>' . 109 109 '</ul>' . … … 115 115 'id' => 'importer_options', 116 116 'title' => __( 'Importer Options', 'bbpress' ), 117 117 'content' => '<p>' . __( 'In the Options you have a number of options:', 'bbpress' ) . '</p>' . 118 118 '<p>' . 119 119 '<ul>' . 120 120 '<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>' . 121 121 '<li>' . __( '"Convert Users" will import your legacy forum members as WordPress Users.', 'bbpress' ) . '</li>' . -
src/includes/common/formatting.php
313 313 314 314 // Bail on links that match the current domain 315 315 if ( preg_match( '%href=["\'](' . preg_quote( set_url_scheme( $home_url, 'http' ) ) . ')%i', $text ) || 316 316 preg_match( '%href=["\'](' . preg_quote( set_url_scheme( $home_url, 'https' ) ) . ')%i', $text ) 317 317 ) { 318 318 return "<a {$text}>"; 319 319 } -
src/includes/common/functions.php
176 176 177 177 // Is the post by an anonymous user? 178 178 if ( ( bbp_get_topic_post_type() === $data['post_type'] && ! bbp_is_topic_anonymous( $postarr['ID'] ) ) || 179 179 ( bbp_get_reply_post_type() === $data['post_type'] && ! bbp_is_reply_anonymous( $postarr['ID'] ) ) ) { 180 180 return $data; 181 181 }