From a0c3a29b5b2f135cf5897e595f92c565d7f19751 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Mon, 13 Jul 2026 17:05:42 -0500 Subject: [PATCH] Fix ScopeIndent whitespace violations across the codebase Run phpcbf with the Generic.WhiteSpace.ScopeIndent sniff to correct indentation across the tree. Changes are whitespace-only. Also manually re-indent the commented-out array entries in the core credits files, which phpcbf left one tab short of their sibling array() entries. Exclude mu-plugins/pub/locales/locales.php from phpcs: it is a verbatim copy of GlotPress' locales.php kept in sync with upstream, so our coding standards should not be applied to it. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01VdcXQ8385jCLecyxmsCrqT --- .../core/browse-happy/1.0/parse.php | 2 +- .../public_html/core/credits/index.php | 6 +- .../public_html/core/credits/wp-32.php | 4 +- .../public_html/core/credits/wp-33.php | 4 +- .../public_html/core/credits/wp-34.php | 4 +- .../public_html/core/credits/wp-35.php | 4 +- .../public_html/core/credits/wp-36.php | 4 +- .../public_html/core/credits/wp-37.php | 4 +- .../public_html/core/credits/wp-38.php | 4 +- .../public_html/core/credits/wp-39.php | 4 +- .../public_html/core/credits/wp-40.php | 4 +- .../public_html/core/credits/wp-41.php | 4 +- .../public_html/dotorg/slack/announce.php | 36 +- .../dotorg/slack/security-team.php | 112 ++-- .../dotorg/trac/mentions-handler.php | 4 +- browsehappy.com/public_html/index.php | 2 +- .../plugins/bbpress-org/toolbar.php | 4 +- .../plugins/buddypress-org/extensions.php | 6 +- .../plugins/buddypress-org/toolbar.php | 6 +- .../wp-content/themes/bb-base/attachment.php | 8 +- .../themes/bb-base/bbpress/form-topic.php | 2 +- .../buddypress/members/single/home.php | 2 +- .../members/single/profile/edit.php | 6 +- .../wp-content/themes/bb-base/functions.php | 32 +- .../wp-content/themes/bb-base/image.php | 6 +- .../wp-content/themes/bb-base/index.php | 2 +- .../wp-content/themes/bb-base/page.php | 12 +- .../wp-content/themes/bb-base/single.php | 6 +- .../themes/bbpress-org/bbpress/form-topic.php | 2 +- .../page-under-construction.php | 4 +- .../buddypress-org/bbpress/form-topic.php | 2 +- .../themes/codex-bbpress-org/front-page.php | 84 +-- .../themes/codex-bbpress-org/index.php | 4 +- .../themes/codex-bbpress-org/page.php | 20 +- .../codex-buddypress-org/front-page.php | 84 +-- .../themes/codex-buddypress-org/functions.php | 2 +- .../themes/codex-buddypress-org/index.php | 4 +- .../themes/codex-buddypress-org/page.php | 20 +- .../themes/codex-buddypress-org/sidebar.php | 24 +- .../codex-buddypress-org/widgets/inbox.php | 2 +- .../codex-buddypress-org/widgets/login.php | 2 +- .../roles/views/cross-locale-pte.php | 2 +- .../roles/views/edit-cross-locale-pte.php | 2 +- .../roles/views/edit-translation-editor.php | 2 +- .../wp-content/themes/rosetta/comments.php | 4 +- .../wp-content/themes/rosetta/download.php | 52 +- .../wp-content/themes/rosetta/front-page.php | 74 +-- .../themes/rosetta/sidebar-page.php | 6 +- .../plugins/jobswp/jobswp-moderation.php | 26 +- .../plugins/jobswp/jobswp-walker.php | 8 +- .../themes/jobswp/content-category.php | 2 +- .../wp-content/themes/jobswp/content-home.php | 32 +- .../wp-content/themes/jobswp/content-list.php | 90 +-- .../wp-content/themes/jobswp/content-page.php | 2 +- .../jobswp/content-post-job-success.php | 4 +- .../themes/jobswp/content-post-job.php | 2 +- .../themes/jobswp/content-search.php | 2 +- .../themes/jobswp/content-single.php | 8 +- .../wp-content/themes/jobswp/functions.php | 92 +-- .../themes/jobswp/inc/template-tags.php | 140 ++--- .../wp-content/themes/jobswp/sidebar.php | 2 +- phpcs.xml.dist | 3 + .../mu-plugins/pub/wporg-redirects.php | 6 +- .../mu-plugins/pub/wporg-robots.php | 4 +- .../mu-plugins/pub/wporg-time-shortcode.php | 2 +- .../mu-plugins/pub/wporg-well-known.php | 2 +- .../plugins/handbook/inc/navigation.php | 2 +- .../plugins/handbook/inc/template-tags.php | 2 +- .../handbook/phpunit/tests/handbook.php | 8 +- .../plugins/photo-directory/inc/admin.php | 92 +-- .../photo-directory/inc/moderation.php | 46 +- .../plugins/photo-directory/inc/photo.php | 28 +- .../plugins/photo-directory/inc/rejection.php | 2 +- .../parts/result-set-single.php | 12 +- .../admin/list-table/class-committers.php | 2 +- .../list-table/class-plugin-comments.php | 2 +- .../admin/list-table/class-plugin-posts.php | 8 +- .../admin/list-table/class-support-reps.php | 2 +- .../admin/metabox/class-controls.php | 22 +- .../admin/metabox/class-review-tools.php | 2 +- .../admin/tools/class-stats-report.php | 14 +- .../api/routes/class-plugin-upload.php | 2 +- .../api/routes/class-plugin.php | 4 +- .../plugin-directory/class-template.php | 2 +- .../email/class-plugin-approved.php | 2 +- .../jobs/class-plugin-scan.php | 2 +- .../shortcodes/class-block-validator.php | 4 +- .../shortcodes/class-reviews.php | 4 +- .../shortcodes/class-upload.php | 154 ++--- .../widgets/class-categorization.php | 8 +- .../widgets/class-support.php | 2 +- .../inc/class-directory-compat.php | 2 +- .../support-forums/inc/class-dropin.php | 8 +- .../support-forums/inc/class-hooks.php | 4 +- .../support-forums/inc/class-moderators.php | 8 +- .../inc/class-performance-optimizations.php | 4 +- .../inc/class-ratings-compat.php | 46 +- .../inc/class-stickies-compat.php | 4 +- .../inc/class-support-compat.php | 4 +- .../plugins/theme-directory/admin-edit.php | 2 +- .../theme-directory/theme-directory.php | 8 +- .../trac-notifications/trac-components.php | 4 +- .../trac-notifications/trac-notifications.php | 22 +- .../class-wordpress-map-users-import.php | 18 +- .../wp-i18n-teams/views/all-locales.php | 18 +- .../wp-i18n-teams/views/locale-details.php | 2 +- .../wporg-bbp-codexify/wporg-bbp-codexify.php | 66 +-- .../wporg-bbp-redirect/wporg-bbp-redirect.php | 80 +-- .../inc/class-plugin.php | 4 +- .../wporg-bbp-topic-archive.php | 28 +- .../inc/class-plugin.php | 10 +- .../wporg-bbp-user-mention-autocomplete.php | 38 +- .../inc/class-plugin.php | 6 +- .../inc/class-plugin.php | 2 +- .../wporg-cli/inc/class-markdown-import.php | 12 +- .../wporg-gp-custom-warnings.php | 2 +- .../templates/footer.php | 2 +- .../templates/helper-functions.php | 10 +- .../templates/locale-projects.php | 20 +- .../templates/projects-wp-plugins.php | 34 +- .../templates/projects-wp-themes.php | 34 +- .../stats-plugin-themes-overview.php | 6 +- .../plugins/wporg-gp-help/wporg-gp-help.php | 4 +- .../plugins/wporg-gp-profiles/profiles.php | 4 +- .../admin/list-table/class-translators.php | 4 +- .../wporg-gp-translation-fixer.php | 2 +- .../ajax-fetch-openai-review.php | 12 +- .../templates/other-languages-suggestions.php | 26 +- .../wporg-make-sites-cpt/make_sites_cpt.php | 12 +- .../wporg-meeting-posttype.php | 558 +++++++++--------- .../wporg-trac-watcher/admin/reports-page.php | 42 +- .../wporg-breathe-2024/archive-component.php | 34 +- .../class-user-registrations-list-table.php | 10 +- .../themes/pub/wporg-login/backup-codes.php | 46 +- .../themes/pub/wporg-login/enable-2fa.php | 10 +- .../themes/pub/wporg-login/functions.php | 2 +- .../themes/pub/wporg-login/loggedout.php | 24 +- .../themes/pub/wporg-login/pending-create.php | 8 +- .../themes/pub/wporg-login/register.php | 6 +- .../themes/pub/wporg-login/updated-tos.php | 2 +- .../wporg-main/inc/page-meta-descriptions.php | 2 +- .../wporg-main/page-about-accessibility.php | 10 +- .../wporg-main/page-about-privacy-cookies.php | 2 +- .../pub/wporg-main/page-about-privacy.php | 2 +- .../pub/wporg-main/page-about-security.php | 70 +-- .../themes/pub/wporg-main/page-download.php | 2 +- .../wporg-main/page-guides-adding-blog.php | 2 +- .../wporg-main/page-guides-create-blog.php | 2 +- .../wporg-main/page-guides-moving-blog.php | 2 +- .../pub/wporg-plugins-2024/patterns/nav.php | 6 +- .../wporg-plugins-2024/patterns/page-add.php | 2 +- .../template-parts/plugin-single.php | 14 +- .../themes/pub/wporg-showcase/404.php | 30 +- .../themes/pub/wporg-showcase/comments.php | 8 +- .../themes/pub/wporg-showcase/feed-extras.php | 6 +- .../themes/pub/wporg-showcase/functions.php | 2 +- .../themes/pub/wporg-showcase/page-submit.php | 14 +- .../themes/pub/wporg-showcase/single.php | 30 +- .../bbpress/content-single-user.php | 6 +- .../bbpress/content-single-view.php | 4 +- .../wporg-support-2024/bbpress/form-reply.php | 26 +- .../wporg-support-2024/bbpress/form-topic.php | 20 +- .../bbpress/form-user-roles.php | 2 +- .../wporg-support-2024/bbpress/loop-posts.php | 2 +- .../bbpress/user-details.php | 2 +- .../bbpress/user-profile.php | 104 ++-- .../pub/wporg-support-2024/comments.php | 4 +- .../pub/wporg-support-2024/functions.php | 38 +- .../pub/wporg-support-2024/searchform.php | 22 +- .../themes/pub/wporg-support-2024/sidebar.php | 14 +- .../wp-content/themes/pub/wporg/comments.php | 6 +- .../wp-content/themes/pub/wporg/search.php | 4 +- .../pub/wporg/template-parts/content.php | 4 +- .../wp-content/themes/wptv2/archive.php | 20 +- .../themes/wptv2/category-wordcamptv.php | 2 +- .../wp-content/themes/wptv2/comments.php | 42 +- .../wp-content/themes/wptv2/front-page.php | 22 +- .../wp-content/themes/wptv2/functions.php | 4 +- .../wp-content/themes/wptv2/index.php | 6 +- .../wordpresstv-anon-upload/anon-upload.php | 16 +- .../wordpresstv-upload-subtitles.php | 4 +- .../themes/wptv2/sidebar-single.php | 134 ++--- .../wp-content/themes/wptv2/sidebar.php | 2 +- .../themes/wptv2/taxonomy-event.php | 14 +- .../wptv2/upload-subtitles-template.php | 4 +- .../wp-content/themes/wptvblog2/index.php | 4 +- .../content/mu-plugins/locales.php | 2 +- 187 files changed, 1801 insertions(+), 1798 deletions(-) diff --git a/api.wordpress.org/public_html/core/browse-happy/1.0/parse.php b/api.wordpress.org/public_html/core/browse-happy/1.0/parse.php index ec171815f2..425e827884 100644 --- a/api.wordpress.org/public_html/core/browse-happy/1.0/parse.php +++ b/api.wordpress.org/public_html/core/browse-happy/1.0/parse.php @@ -39,7 +39,7 @@ * } */ function browsehappy_get_explicit_browser_tokens() { - return array( + return array( 'Camino' => array(), 'Chromium' => array(), 'Edge' => array( diff --git a/api.wordpress.org/public_html/core/credits/index.php b/api.wordpress.org/public_html/core/credits/index.php index d554a0e7e5..fc522031fc 100644 --- a/api.wordpress.org/public_html/core/credits/index.php +++ b/api.wordpress.org/public_html/core/credits/index.php @@ -26,9 +26,9 @@ require_once dirname( __FILE__ ) . '/wp-credits.php'; if ( ! function_exists( 'like_escape' ) ) : -function like_escape( $text ) { - return str_replace( array( "%", "_") , array( "\\%", "\\_" ), $text ); -} + function like_escape( $text ) { + return str_replace( array( "%", "_") , array( "\\%", "\\_" ), $text ); + } endif; if ( ! empty( $_GET['version'] ) ) { diff --git a/api.wordpress.org/public_html/core/credits/wp-32.php b/api.wordpress.org/public_html/core/credits/wp-32.php index 311810649c..a7c54cfbf5 100644 --- a/api.wordpress.org/public_html/core/credits/wp-32.php +++ b/api.wordpress.org/public_html/core/credits/wp-32.php @@ -174,7 +174,7 @@ function external_libraries() { return array( array( 'Class POP3', 'https://squirrelmail.org/' ), array( 'Color Animations', 'http://plugins.jquery.com/project/color' ), - // array( 'ColorPicker', 'http://' ), + // array( 'ColorPicker', 'http://' ), array( 'Horde Text Diff', 'http://pear.horde.org/' ), array( 'hoverIntent', 'http://plugins.jquery.com/project/hoverIntent' ), array( 'imgAreaSelect', 'https://github.com/odyniec/imgareaselect' ), @@ -183,7 +183,7 @@ function external_libraries() { array( 'jQuery Hotkeys', 'https://github.com/mathusiast/jquery.hotkeys' ), array( 'jQuery serializeObject', 'https://benalman.com/projects/jquery-misc-plugins/' ), array( 'jQuery.query', 'http://plugins.jquery.com/project/query-object' ), - // array( 'jquery.schedule', 'http://' ), + // array( 'jquery.schedule', 'http://' ), array( 'jQuery.suggest', 'http://plugins.jquery.com/project/suggest' ), array( 'json2', 'https://github.com/douglascrockford/JSON-js' ), array( 'PclZip', 'https://www.phpconcept.net/pclzip/' ), diff --git a/api.wordpress.org/public_html/core/credits/wp-33.php b/api.wordpress.org/public_html/core/credits/wp-33.php index 42c250dd00..a4855d6498 100644 --- a/api.wordpress.org/public_html/core/credits/wp-33.php +++ b/api.wordpress.org/public_html/core/credits/wp-33.php @@ -233,7 +233,7 @@ function external_libraries() { return array( array( 'Class POP3', 'https://squirrelmail.org/' ), array( 'Color Animations', 'http://plugins.jquery.com/project/color' ), - // array( 'ColorPicker', 'http://' ), + // array( 'ColorPicker', 'http://' ), array( 'Horde Text Diff', 'http://pear.horde.org/' ), array( 'hoverIntent', 'http://plugins.jquery.com/project/hoverIntent' ), array( 'imgAreaSelect', 'https://github.com/odyniec/imgareaselect' ), @@ -242,7 +242,7 @@ function external_libraries() { array( 'jQuery Hotkeys', 'https://github.com/mathusiast/jquery.hotkeys' ), array( 'jQuery serializeObject', 'https://benalman.com/projects/jquery-misc-plugins/' ), array( 'jQuery.query', 'http://plugins.jquery.com/project/query-object' ), - // array( 'jquery.schedule', 'http://' ), + // array( 'jquery.schedule', 'http://' ), array( 'jQuery.suggest', 'http://plugins.jquery.com/project/suggest' ), array( 'json2', 'https://github.com/douglascrockford/JSON-js' ), array( 'PclZip', 'https://www.phpconcept.net/pclzip/' ), diff --git a/api.wordpress.org/public_html/core/credits/wp-34.php b/api.wordpress.org/public_html/core/credits/wp-34.php index 86607e0580..72bd4f4960 100644 --- a/api.wordpress.org/public_html/core/credits/wp-34.php +++ b/api.wordpress.org/public_html/core/credits/wp-34.php @@ -242,7 +242,7 @@ function external_libraries() { return array( array( 'Class POP3', 'https://squirrelmail.org/' ), array( 'Color Animations', 'http://plugins.jquery.com/project/color' ), - // array( 'ColorPicker', 'http://' ), + // array( 'ColorPicker', 'http://' ), array( 'Horde Text Diff', 'http://pear.horde.org/' ), array( 'hoverIntent', 'http://plugins.jquery.com/project/hoverIntent' ), array( 'imgAreaSelect', 'https://github.com/odyniec/imgareaselect' ), @@ -251,7 +251,7 @@ function external_libraries() { array( 'jQuery Hotkeys', 'https://github.com/mathusiast/jquery.hotkeys' ), array( 'jQuery serializeObject', 'https://benalman.com/projects/jquery-misc-plugins/' ), array( 'jQuery.query', 'http://plugins.jquery.com/project/query-object' ), - // array( 'jquery.schedule', 'http://' ), + // array( 'jquery.schedule', 'http://' ), array( 'jQuery.suggest', 'http://plugins.jquery.com/project/suggest' ), array( 'jQuery UI Touch Punch', 'https://github.com/furf/jquery-ui-touch-punch' ), array( 'json2', 'https://github.com/douglascrockford/JSON-js' ), diff --git a/api.wordpress.org/public_html/core/credits/wp-35.php b/api.wordpress.org/public_html/core/credits/wp-35.php index dd380a7e8d..144f250be4 100644 --- a/api.wordpress.org/public_html/core/credits/wp-35.php +++ b/api.wordpress.org/public_html/core/credits/wp-35.php @@ -335,7 +335,7 @@ function external_libraries() { array( 'Backbone', 'http://backbonejs.org/' ), array( 'Class POP3', 'https://squirrelmail.org/' ), array( 'Color Animations', 'http://plugins.jquery.com/project/color' ), - // array( 'ColorPicker', 'http://' ), + // array( 'ColorPicker', 'http://' ), array( 'Horde Text Diff', 'http://pear.horde.org/' ), array( 'hoverIntent', 'http://plugins.jquery.com/project/hoverIntent' ), array( 'imgAreaSelect', 'https://github.com/odyniec/imgareaselect' ), @@ -346,7 +346,7 @@ function external_libraries() { array( 'jQuery Masonry', 'https://masonry.desandro.com/' ), array( 'jQuery serializeObject', 'https://benalman.com/projects/jquery-misc-plugins/' ), array( 'jQuery.query', 'http://plugins.jquery.com/project/query-object' ), - // array( 'jquery.schedule', 'http://' ), + // array( 'jquery.schedule', 'http://' ), array( 'jQuery.suggest', 'http://plugins.jquery.com/project/suggest' ), array( 'jQuery UI Touch Punch', 'https://github.com/furf/jquery-ui-touch-punch' ), array( 'json2', 'https://github.com/douglascrockford/JSON-js' ), diff --git a/api.wordpress.org/public_html/core/credits/wp-36.php b/api.wordpress.org/public_html/core/credits/wp-36.php index 807d662bfe..eaa51ac303 100644 --- a/api.wordpress.org/public_html/core/credits/wp-36.php +++ b/api.wordpress.org/public_html/core/credits/wp-36.php @@ -304,7 +304,7 @@ function external_libraries() { array( 'Backbone.js', 'http://backbonejs.org/' ), array( 'Class POP3', 'https://squirrelmail.org/' ), array( 'Color Animations', 'http://plugins.jquery.com/project/color' ), - // array( 'ColorPicker', 'http://' ), + // array( 'ColorPicker', 'http://' ), array( 'Horde Text Diff', 'http://pear.horde.org/' ), array( 'hoverIntent', 'http://plugins.jquery.com/project/hoverIntent' ), array( 'imgAreaSelect', 'https://github.com/odyniec/imgareaselect' ), @@ -315,7 +315,7 @@ function external_libraries() { array( 'jQuery Masonry', 'https://masonry.desandro.com/' ), array( 'jQuery serializeObject', 'https://benalman.com/projects/jquery-misc-plugins/' ), array( 'jQuery.query', 'http://plugins.jquery.com/project/query-object' ), - // array( 'jquery.schedule', 'http://' ), + // array( 'jquery.schedule', 'http://' ), array( 'jQuery.suggest', 'http://plugins.jquery.com/project/suggest' ), array( 'jQuery UI Touch Punch', 'https://github.com/furf/jquery-ui-touch-punch' ), array( 'json2', 'https://github.com/douglascrockford/JSON-js' ), diff --git a/api.wordpress.org/public_html/core/credits/wp-37.php b/api.wordpress.org/public_html/core/credits/wp-37.php index 15f1b3fbd1..7b49c70507 100644 --- a/api.wordpress.org/public_html/core/credits/wp-37.php +++ b/api.wordpress.org/public_html/core/credits/wp-37.php @@ -280,7 +280,7 @@ function external_libraries() { array( 'Backbone.js', 'http://backbonejs.org/' ), array( 'Class POP3', 'https://squirrelmail.org/' ), array( 'Color Animations', 'http://plugins.jquery.com/project/color' ), - // array( 'ColorPicker', 'http://' ), + // array( 'ColorPicker', 'http://' ), array( 'Horde Text Diff', 'http://pear.horde.org/' ), array( 'hoverIntent', 'http://plugins.jquery.com/project/hoverIntent' ), array( 'imgAreaSelect', 'https://github.com/odyniec/imgareaselect' ), @@ -291,7 +291,7 @@ function external_libraries() { array( 'jQuery Masonry', 'https://masonry.desandro.com/' ), array( 'jQuery serializeObject', 'https://benalman.com/projects/jquery-misc-plugins/' ), array( 'jQuery.query', 'http://plugins.jquery.com/project/query-object' ), - // array( 'jquery.schedule', 'http://' ), + // array( 'jquery.schedule', 'http://' ), array( 'jQuery.suggest', 'http://plugins.jquery.com/project/suggest' ), array( 'jQuery UI Touch Punch', 'https://github.com/furf/jquery-ui-touch-punch' ), array( 'json2', 'https://github.com/douglascrockford/JSON-js' ), diff --git a/api.wordpress.org/public_html/core/credits/wp-38.php b/api.wordpress.org/public_html/core/credits/wp-38.php index 37d7f8562f..4e78ee1ad2 100644 --- a/api.wordpress.org/public_html/core/credits/wp-38.php +++ b/api.wordpress.org/public_html/core/credits/wp-38.php @@ -291,7 +291,7 @@ function external_libraries() { array( 'Backbone.js', 'http://backbonejs.org/' ), array( 'Class POP3', 'https://squirrelmail.org/' ), array( 'Color Animations', 'http://plugins.jquery.com/project/color' ), - // array( 'ColorPicker', 'http://' ), + // array( 'ColorPicker', 'http://' ), array( 'Horde Text Diff', 'http://pear.horde.org/' ), array( 'hoverIntent', 'http://plugins.jquery.com/project/hoverIntent' ), array( 'imgAreaSelect', 'https://github.com/odyniec/imgareaselect' ), @@ -302,7 +302,7 @@ function external_libraries() { array( 'jQuery Masonry', 'https://masonry.desandro.com/' ), array( 'jQuery serializeObject', 'https://benalman.com/projects/jquery-misc-plugins/' ), array( 'jQuery.query', 'http://plugins.jquery.com/project/query-object' ), - // array( 'jquery.schedule', 'http://' ), + // array( 'jquery.schedule', 'http://' ), array( 'jQuery.suggest', 'http://plugins.jquery.com/project/suggest' ), array( 'jQuery UI Touch Punch', 'https://github.com/furf/jquery-ui-touch-punch' ), array( 'json2', 'https://github.com/douglascrockford/JSON-js' ), diff --git a/api.wordpress.org/public_html/core/credits/wp-39.php b/api.wordpress.org/public_html/core/credits/wp-39.php index a3f4a664cf..3d67228db8 100644 --- a/api.wordpress.org/public_html/core/credits/wp-39.php +++ b/api.wordpress.org/public_html/core/credits/wp-39.php @@ -349,7 +349,7 @@ function external_libraries() { array( 'Backbone.js', 'http://backbonejs.org/' ), array( 'Class POP3', 'https://squirrelmail.org/' ), array( 'Color Animations', 'http://plugins.jquery.com/project/color' ), - // array( 'ColorPicker', 'http://' ), + // array( 'ColorPicker', 'http://' ), array( 'Horde Text Diff', 'http://pear.horde.org/' ), array( 'hoverIntent', 'http://plugins.jquery.com/project/hoverIntent' ), array( 'imgAreaSelect', 'https://github.com/odyniec/imgareaselect' ), @@ -359,7 +359,7 @@ function external_libraries() { array( 'jQuery Hotkeys', 'https://github.com/mathusiast/jquery.hotkeys' ), array( 'jQuery serializeObject', 'https://benalman.com/projects/jquery-misc-plugins/' ), array( 'jQuery.query', 'http://plugins.jquery.com/project/query-object' ), - // array( 'jquery.schedule', 'http://' ), + // array( 'jquery.schedule', 'http://' ), array( 'jQuery.suggest', 'http://plugins.jquery.com/project/suggest' ), array( 'jQuery UI Touch Punch', 'https://github.com/furf/jquery-ui-touch-punch' ), array( 'json2', 'https://github.com/douglascrockford/JSON-js' ), diff --git a/api.wordpress.org/public_html/core/credits/wp-40.php b/api.wordpress.org/public_html/core/credits/wp-40.php index 0439f9cdb3..bd35bf504f 100644 --- a/api.wordpress.org/public_html/core/credits/wp-40.php +++ b/api.wordpress.org/public_html/core/credits/wp-40.php @@ -348,7 +348,7 @@ function external_libraries() { array( 'Backbone.js', 'http://backbonejs.org/' ), array( 'Class POP3', 'https://squirrelmail.org/' ), array( 'Color Animations', 'http://plugins.jquery.com/project/color' ), - // array( 'ColorPicker', 'http://' ), + // array( 'ColorPicker', 'http://' ), array( 'Horde Text Diff', 'http://pear.horde.org/' ), array( 'hoverIntent', 'http://plugins.jquery.com/project/hoverIntent' ), array( 'imgAreaSelect', 'https://github.com/odyniec/imgareaselect' ), @@ -358,7 +358,7 @@ function external_libraries() { array( 'jQuery Hotkeys', 'https://github.com/mathusiast/jquery.hotkeys' ), array( 'jQuery serializeObject', 'https://benalman.com/projects/jquery-misc-plugins/' ), array( 'jQuery.query', 'http://plugins.jquery.com/project/query-object' ), - // array( 'jquery.schedule', 'http://' ), + // array( 'jquery.schedule', 'http://' ), array( 'jQuery.suggest', 'http://plugins.jquery.com/project/suggest' ), array( 'jQuery UI Touch Punch', 'https://github.com/furf/jquery-ui-touch-punch' ), array( 'json2', 'https://github.com/douglascrockford/JSON-js' ), diff --git a/api.wordpress.org/public_html/core/credits/wp-41.php b/api.wordpress.org/public_html/core/credits/wp-41.php index 283218030a..97c80b591d 100644 --- a/api.wordpress.org/public_html/core/credits/wp-41.php +++ b/api.wordpress.org/public_html/core/credits/wp-41.php @@ -374,7 +374,7 @@ function external_libraries() { array( 'Backbone.js', 'http://backbonejs.org/' ), array( 'Class POP3', 'https://squirrelmail.org/' ), array( 'Color Animations', 'http://plugins.jquery.com/color/' ), - // array( 'ColorPicker', 'http://' ), + // array( 'ColorPicker', 'http://' ), array( 'Horde Text Diff', 'http://pear.horde.org/' ), array( 'hoverIntent', 'http://plugins.jquery.com/project/hoverIntent' ), array( 'imgAreaSelect', 'https://github.com/odyniec/imgareaselect' ), @@ -384,7 +384,7 @@ function external_libraries() { array( 'jQuery Hotkeys', 'https://github.com/mathusiast/jquery.hotkeys' ), array( 'jQuery serializeObject', 'https://benalman.com/projects/jquery-misc-plugins/' ), array( 'jQuery.query', 'http://plugins.jquery.com/query-object/' ), - // array( 'jquery.schedule', 'http://' ), + // array( 'jquery.schedule', 'http://' ), array( 'jQuery.suggest', 'http://plugins.jquery.com/project/suggest' ), array( 'jQuery UI Touch Punch', 'https://github.com/furf/jquery-ui-touch-punch' ), array( 'json2', 'https://github.com/douglascrockford/JSON-js' ), diff --git a/api.wordpress.org/public_html/dotorg/slack/announce.php b/api.wordpress.org/public_html/dotorg/slack/announce.php index 04a7c8918b..9f193db6bc 100644 --- a/api.wordpress.org/public_html/dotorg/slack/announce.php +++ b/api.wordpress.org/public_html/dotorg/slack/announce.php @@ -7,32 +7,32 @@ namespace Dotorg\Slack\Announce { -require dirname( dirname( __DIR__ ) ) . '/includes/slack/announce/lib.php'; + require dirname( dirname( __DIR__ ) ) . '/includes/slack/announce/lib.php'; -function get_avatar( $username, $slack_id, $team_id ) { - global $wpdb; + function get_avatar( $username, $slack_id, $team_id ) { + global $wpdb; - $wp_user_id = $wpdb->get_var( $wpdb->prepare( + $wp_user_id = $wpdb->get_var( $wpdb->prepare( "SELECT user_id FROM slack_users WHERE slack_id = %s", $slack_id - ) ); + ) ); - $email = $wpdb->get_var( $wpdb->prepare( - "SELECT user_email FROM $wpdb->users WHERE ID = %d", - $wp_user_id - ) ); + $email = $wpdb->get_var( $wpdb->prepare( + "SELECT user_email FROM $wpdb->users WHERE ID = %d", + $wp_user_id + ) ); - $hash = hash( 'sha256', strtolower( trim( $email ) ) ); - return sprintf( 'https://secure.gravatar.com/avatar/%s?s=96d=mm&r=G&%s', $hash, time() ); -} + $hash = hash( 'sha256', strtolower( trim( $email ) ) ); + return sprintf( 'https://secure.gravatar.com/avatar/%s?s=96d=mm&r=G&%s', $hash, time() ); + } -$i = 0; -// WEBHOOK_TOKEN_1, WEBHOOK_TOKEN_2, etc. -while ( defined( __NAMESPACE__ . '\\WEBHOOK_TOKEN_' . ++$i ) ) { - if ( hash_equals( constant( __NAMESPACE__ . '\\WEBHOOK_TOKEN_' . $i ), $_POST['token'] ) ) { - run( $_POST ); + $i = 0; + // WEBHOOK_TOKEN_1, WEBHOOK_TOKEN_2, etc. + while ( defined( __NAMESPACE__ . '\\WEBHOOK_TOKEN_' . ++$i ) ) { + if ( hash_equals( constant( __NAMESPACE__ . '\\WEBHOOK_TOKEN_' . $i ), $_POST['token'] ) ) { + run( $_POST ); + } } -} } diff --git a/api.wordpress.org/public_html/dotorg/slack/security-team.php b/api.wordpress.org/public_html/dotorg/slack/security-team.php index 65ce43cf57..4d82194e69 100644 --- a/api.wordpress.org/public_html/dotorg/slack/security-team.php +++ b/api.wordpress.org/public_html/dotorg/slack/security-team.php @@ -8,80 +8,80 @@ namespace Dotorg\Slack\Security_Team { -require dirname( dirname( __DIR__ ) ) . '/includes/slack-config.php'; + require dirname( dirname( __DIR__ ) ) . '/includes/slack-config.php'; -function slack_api( $method, $content = array() ) { - $content['token'] = SLACK_TOKEN; - $content = http_build_query( $content ); - $context = stream_context_create( array( + function slack_api( $method, $content = array() ) { + $content['token'] = SLACK_TOKEN; + $content = http_build_query( $content ); + $context = stream_context_create( array( 'http' => array( 'method' => 'POST', 'header' => 'Content-Type: application/x-www-form-urlencoded' . PHP_EOL, 'content' => $content, ), - ) ); + ) ); - $response = file_get_contents( 'https://slack.com/api/' . $method, false, $context ); - return json_decode( $response, true ); -} + $response = file_get_contents( 'https://slack.com/api/' . $method, false, $context ); + return json_decode( $response, true ); + } -/** - * Returns array of security team members by specified field value. - * - * @param string $user_field Optional. The user column value to return for each security team member. Defaut 'user_login'. - * @return array - */ -function get_security_team( $user_field = 'user_login' ) { - global $wpdb; - $group = slack_api( 'groups.info', array( 'channel' => SECURITY_GROUP_ID ) ); - - if ( empty( $group['ok'] ) ) { - return false; + /** + * Returns array of security team members by specified field value. + * + * @param string $user_field Optional. The user column value to return for each security team member. Defaut 'user_login'. + * @return array + */ + function get_security_team( $user_field = 'user_login' ) { + global $wpdb; + $group = slack_api( 'groups.info', array( 'channel' => SECURITY_GROUP_ID ) ); + + if ( empty( $group['ok'] ) ) { + return false; + } + + $slack_user_ids = $group['group']['members']; + $slack_user_ids = array_filter( $slack_user_ids, function( $user_id ) { + return (bool) preg_match( '/^U[A-Z0-9]+$/', $user_id ); + }); + $slack_user_ids_for_sql = "'" . implode( "', '", $slack_user_ids ) . "'"; + $user_ids = $wpdb->get_col( "SELECT user_id FROM slack_users WHERE slack_id IN ($slack_user_ids_for_sql)" ); + + $user_ids = array_map( 'intval', $user_ids ); + $user_ids_for_sql = implode( ', ', $user_ids ); + + // Whitelist user field before using. + if ( ! in_array( $user_field, array( 'ID', 'user_email', 'user_login', 'user_nicename', 'display_name' ) ) ) { + $user_field = 'user_login'; + } + + $user_logins = $wpdb->get_col( "SELECT $user_field FROM $wpdb->users WHERE ID IN ($user_ids_for_sql)" ); + return $user_logins; } - $slack_user_ids = $group['group']['members']; - $slack_user_ids = array_filter( $slack_user_ids, function( $user_id ) { - return (bool) preg_match( '/^U[A-Z0-9]+$/', $user_id ); - }); - $slack_user_ids_for_sql = "'" . implode( "', '", $slack_user_ids ) . "'"; - $user_ids = $wpdb->get_col( "SELECT user_id FROM slack_users WHERE slack_id IN ($slack_user_ids_for_sql)" ); + function api_call() { + header( 'Content-type: text/plain' ); - $user_ids = array_map( 'intval', $user_ids ); - $user_ids_for_sql = implode( ', ', $user_ids ); + // Confirm it came from the Trac server. + if ( ! hash_equals( API_TOKEN, $_GET['token'] ?? '' ) ) { + exit; + } - // Whitelist user field before using. - if ( ! in_array( $user_field, array( 'ID', 'user_email', 'user_login', 'user_nicename', 'display_name' ) ) ) { $user_field = 'user_login'; - } + if ( isset( $_GET['user_field'] ) && 'user_email' === $_GET['user_field'] ) { + $user_field = 'user_email'; + } - $user_logins = $wpdb->get_col( "SELECT $user_field FROM $wpdb->users WHERE ID IN ($user_ids_for_sql)" ); - return $user_logins; -} - -function api_call() { - header( 'Content-type: text/plain' ); + $team = get_security_team( $user_field ); + if ( $team === false ) { + exit; + } - // Confirm it came from the Trac server. - if ( ! hash_equals( API_TOKEN, $_GET['token'] ?? '' ) ) { + echo implode( "\n", $team ) . "\n"; // Trailing newline critical. exit; } - $user_field = 'user_login'; - if ( isset( $_GET['user_field'] ) && 'user_email' === $_GET['user_field'] ) { - $user_field = 'user_email'; - } - - $team = get_security_team( $user_field ); - if ( $team === false ) { - exit; + if ( isset( $_SERVER['REQUEST_URI'] ) && false !== strpos( $_SERVER['REQUEST_URI'], '/security-team.php?token=' ) ) { + api_call(); } - echo implode( "\n", $team ) . "\n"; // Trailing newline critical. - exit; -} - -if ( isset( $_SERVER['REQUEST_URI'] ) && false !== strpos( $_SERVER['REQUEST_URI'], '/security-team.php?token=' ) ) { - api_call(); -} - } diff --git a/api.wordpress.org/public_html/dotorg/trac/mentions-handler.php b/api.wordpress.org/public_html/dotorg/trac/mentions-handler.php index 151b1008a4..becfb4b027 100644 --- a/api.wordpress.org/public_html/dotorg/trac/mentions-handler.php +++ b/api.wordpress.org/public_html/dotorg/trac/mentions-handler.php @@ -52,7 +52,7 @@ function wporg_get_trac_ticket_subscription_status( $username, $ticket ) { * * The replacement is a HTTP API call via Trac_Notifications_API::get_trac_ticket_subscription_status_for_user( $ticket, $username ) */ -/* + /* global $wpdb; add_db_table( 'trac_core', '_ticket_subs' ); // HyperDB $status = $wpdb->get_var( $wpdb->prepare( @@ -63,7 +63,7 @@ function wporg_get_trac_ticket_subscription_status( $username, $ticket ) { if ( is_numeric( $status ) ) { return (int) $status; } -*/ + */ return false; } diff --git a/browsehappy.com/public_html/index.php b/browsehappy.com/public_html/index.php index 36114b3ddd..a8d1ff11dd 100644 --- a/browsehappy.com/public_html/index.php +++ b/browsehappy.com/public_html/index.php @@ -60,7 +60,7 @@

+ echo $what; ?>

diff --git a/buddypress.org/public_html/wp-content/plugins/bbpress-org/toolbar.php b/buddypress.org/public_html/wp-content/plugins/bbpress-org/toolbar.php index 02be48b888..eefd838cdd 100644 --- a/buddypress.org/public_html/wp-content/plugins/bbpress-org/toolbar.php +++ b/buddypress.org/public_html/wp-content/plugins/bbpress-org/toolbar.php @@ -266,7 +266,7 @@ function bbporg_new_admin_bar_site_menu( $wp_admin_bar ) { 'href' => 'https://bbpress.org/forums/new-topic/' ) ); - // Not logged in + // Not logged in } else { $wp_admin_bar->add_menu( array( 'id' => 'bbp-login', @@ -413,7 +413,7 @@ function bbporg_admin_bar_my_account_menu( $wp_admin_bar ) { ) ); } - // Anonymous + // Anonymous } else { $wp_admin_bar->add_group( array( 'parent' => 'my-account', diff --git a/buddypress.org/public_html/wp-content/plugins/buddypress-org/extensions.php b/buddypress.org/public_html/wp-content/plugins/buddypress-org/extensions.php index 82408e56c1..51903c67db 100644 --- a/buddypress.org/public_html/wp-content/plugins/buddypress-org/extensions.php +++ b/buddypress.org/public_html/wp-content/plugins/buddypress-org/extensions.php @@ -114,18 +114,18 @@ function bporg_redirect() { if ( empty( $uri_chunks[3] ) ) { bp_core_redirect( home_url( '/support/' ) ); - // Single group topic redirect + // Single group topic redirect } elseif ( !empty( $uri_chunks[5] ) && ( $uri_chunks[5] === 'topic' ) && !empty( $uri_chunks[6] ) ) { bp_core_redirect( home_url( '/support/topic/' . $uri_chunks[6] . '/' ) ); - // Single group forum redirect + // Single group forum redirect } elseif ( empty( $uri_chunks[4] ) || ( $uri_chunks[4] === 'forum' ) ) { // Use legacy group slug if ( ! in_array( $uri_chunks[3], array( 'gallery', 'how-to-and-troubleshooting' ) ) ) { bp_core_redirect( home_url( '/support/forum/plugin-forums/' . $uri_chunks[3] . '/' ) ); - // Root forums, maybe with new slug + // Root forums, maybe with new slug } else { // New BuddyPress project forums locations diff --git a/buddypress.org/public_html/wp-content/plugins/buddypress-org/toolbar.php b/buddypress.org/public_html/wp-content/plugins/buddypress-org/toolbar.php index 1e8b89af0a..345be8d15b 100644 --- a/buddypress.org/public_html/wp-content/plugins/buddypress-org/toolbar.php +++ b/buddypress.org/public_html/wp-content/plugins/buddypress-org/toolbar.php @@ -325,7 +325,7 @@ function bporg_new_admin_bar_site_menu( $wp_admin_bar ) { ) ); } - // Not logged in + // Not logged in } else { $wp_admin_bar->add_menu( array( 'id' => 'bp-login', @@ -367,7 +367,7 @@ function bporg_admin_bar_my_account_menu( $wp_admin_bar ) { 'class' => 'ab-sub-secondary' ) ) ); - // Show login and sign-up links + // Show login and sign-up links } elseif ( !empty( $wp_admin_bar ) ) { add_filter ( 'show_admin_bar', '__return_true' ); @@ -434,7 +434,7 @@ function bporg_admin_bar_my_account_item( $wp_admin_bar ) { ), ) ); - // Logged in + // Logged in } else { if ( current_user_can( 'read' ) ) { $profile_url = get_edit_profile_url( $user_id ); diff --git a/buddypress.org/public_html/wp-content/themes/bb-base/attachment.php b/buddypress.org/public_html/wp-content/themes/bb-base/attachment.php index f493343af2..7fbc68fbb8 100644 --- a/buddypress.org/public_html/wp-content/themes/bb-base/attachment.php +++ b/buddypress.org/public_html/wp-content/themes/bb-base/attachment.php @@ -51,13 +51,13 @@

- + ?>

- diff --git a/buddypress.org/public_html/wp-content/themes/bb-base/buddypress/members/single/home.php b/buddypress.org/public_html/wp-content/themes/bb-base/buddypress/members/single/home.php index 0c738e95da..8463fb8f43 100644 --- a/buddypress.org/public_html/wp-content/themes/bb-base/buddypress/members/single/home.php +++ b/buddypress.org/public_html/wp-content/themes/bb-base/buddypress/members/single/home.php @@ -36,7 +36,7 @@ elseif ( bp_is_user_settings() ) : bp_get_template_part( 'members/single/settings' ); - // If nothing sticks, load a generic template + // If nothing sticks, load a generic template else : bp_get_template_part( 'members/single/plugins' ); diff --git a/buddypress.org/public_html/wp-content/themes/bb-base/buddypress/members/single/profile/edit.php b/buddypress.org/public_html/wp-content/themes/bb-base/buddypress/members/single/profile/edit.php index 05a36654f6..5e9031c5d5 100644 --- a/buddypress.org/public_html/wp-content/themes/bb-base/buddypress/members/single/profile/edit.php +++ b/buddypress.org/public_html/wp-content/themes/bb-base/buddypress/members/single/profile/edit.php @@ -5,7 +5,7 @@
- +

@@ -120,7 +120,7 @@ - +
@@ -128,7 +128,7 @@ - + diff --git a/buddypress.org/public_html/wp-content/themes/bb-base/functions.php b/buddypress.org/public_html/wp-content/themes/bb-base/functions.php index fc4e337821..ffe41b6cce 100644 --- a/buddypress.org/public_html/wp-content/themes/bb-base/functions.php +++ b/buddypress.org/public_html/wp-content/themes/bb-base/functions.php @@ -73,7 +73,7 @@ function bb_base_register_stylesheets() { add_action( 'wp_enqueue_scripts', 'bb_base_register_stylesheets' ); function bb_base_topic_search_form() { -?> + ?> - + ?> - + ?> - + ); + ?>
  • @@ -195,8 +195,8 @@ function bb_base_single_topic_description() { /* translators: %s: reply author link */ printf( __( 'Last voice: %s', 'bborg' ), bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_reply, 'size' => '15' ) ) - ); - ?> + ); + ?>
  • + ); + ?>
  • @@ -262,8 +262,8 @@ function bb_base_single_forum_description() { /* translators: %s: post author link */ printf( __( 'Last voice: %s', 'bborg' ), bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_active ) ) - ); - ?> + ); + ?>
  • comment_status ) : - _e( '
    Respond if
    you’d like to leave feedback
    ', 'bbporg' ); + if ( 'open' == $post->comment_status ) : + _e( '
    Respond if
    you’d like to leave feedback
    ', 'bbporg' ); endif; edit_post_link( esc_html__( 'Edit', 'bbporg' ), "\t\t\t\t\t
    " . esc_html__( 'You can', 'bborg' ) . "
    \n\t\t\t\t\t
    ", "
    \n"); ?> @@ -54,6 +54,6 @@ ?>

    -
    -

    - '

    ' . __( 'Pages:', 'bborg' ), 'after' => "

    \n", 'next_or_number' => 'number', - ) ); - edit_post_link( __( 'Edit', 'bborg' ), '

    ', '

    ' ); -?> + ) ); + edit_post_link( __( 'Edit', 'bborg' ), '

    ', '

    ' ); + ?> diff --git a/buddypress.org/public_html/wp-content/themes/bb-base/single.php b/buddypress.org/public_html/wp-content/themes/bb-base/single.php index 70a0937a28..85ce20d90f 100644 --- a/buddypress.org/public_html/wp-content/themes/bb-base/single.php +++ b/buddypress.org/public_html/wp-content/themes/bb-base/single.php @@ -6,13 +6,13 @@ printf( __( 'Published on %1$s by %2$s', 'bborg' ), get_the_time( 'F jS, Y' ), get_the_author_link() - ); - ?> + ); + ?>
    - + diff --git a/buddypress.org/public_html/wp-content/themes/bbpress-org/bbpress/form-topic.php b/buddypress.org/public_html/wp-content/themes/bbpress-org/bbpress/form-topic.php index 1bed7babcd..f1ce93a1e4 100644 --- a/buddypress.org/public_html/wp-content/themes/bbpress-org/bbpress/form-topic.php +++ b/buddypress.org/public_html/wp-content/themes/bbpress-org/bbpress/form-topic.php @@ -22,7 +22,7 @@ diff --git a/buddypress.org/public_html/wp-content/themes/bporg-developer/page-under-construction.php b/buddypress.org/public_html/wp-content/themes/bporg-developer/page-under-construction.php index 00e236ca8e..546ea86009 100644 --- a/buddypress.org/public_html/wp-content/themes/bporg-developer/page-under-construction.php +++ b/buddypress.org/public_html/wp-content/themes/bporg-developer/page-under-construction.php @@ -31,8 +31,8 @@ diff --git a/buddypress.org/public_html/wp-content/themes/buddypress-org/bbpress/form-topic.php b/buddypress.org/public_html/wp-content/themes/buddypress-org/bbpress/form-topic.php index 26fe140dfa..4ca89e5704 100644 --- a/buddypress.org/public_html/wp-content/themes/buddypress-org/bbpress/form-topic.php +++ b/buddypress.org/public_html/wp-content/themes/buddypress-org/bbpress/form-topic.php @@ -22,7 +22,7 @@ diff --git a/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/front-page.php b/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/front-page.php index eef29bbb51..b60ca8e337 100644 --- a/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/front-page.php +++ b/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/front-page.php @@ -15,16 +15,16 @@ $terms = get_terms( 'component' ); $count = count( $terms ); - if ( $count > 0 ) { - echo '
    '; - echo '

    Components

    '; - echo ''; - echo '
    '; + if ( $count > 0 ) { + echo '
    '; + echo '

    Components

    '; + echo ''; + echo '
    '; + } ?> @@ -33,16 +33,16 @@ $terms = get_terms( 'version', array( 'order' => 'DESC' ) ); $count = count( $terms ); - if ( $count > 0 ) { - echo '
    '; - echo '

    Versions

    '; - echo ''; - echo '
    '; + if ( $count > 0 ) { + echo '
    '; + echo '

    Versions

    '; + echo ''; + echo '
    '; + } ?> @@ -51,16 +51,16 @@ $terms = get_terms( 'type' ); $count = count( $terms ); - if ( $count > 0 ) { - echo '
    '; - echo '

    Types

    '; - echo ''; - echo '
    '; + if ( $count > 0 ) { + echo '
    '; + echo '

    Types

    '; + echo ''; + echo '
    '; + } ?> @@ -69,16 +69,16 @@ $terms = get_terms( 'context' ); $count = count( $terms ); - if ( $count > 0 ) { - echo '
    '; - echo '

    Contexts

    '; - echo ''; - echo '
    '; + if ( $count > 0 ) { + echo '
    '; + echo '

    Contexts

    '; + echo ''; + echo '
    '; + } ?> @@ -94,13 +94,13 @@ $args = array( 'order' => 'ASC', ); $revisions = wp_get_post_revisions( get_queried_object_id(), $args ); $post_authors = array( $post->post_author => 1 ); - foreach( (array) $revisions as $revision ) { - if ( isset( $post_authors[ $revision->post_author ] ) ) { - $post_authors[ $revision->post_author ]++; - } else { - $post_authors[ $revision->post_author ] = 1; - } + foreach( (array) $revisions as $revision ) { + if ( isset( $post_authors[ $revision->post_author ] ) ) { + $post_authors[ $revision->post_author ]++; + } else { + $post_authors[ $revision->post_author ] = 1; } + } asort( $post_authors, SORT_NUMERIC ); global $codex_contributors; diff --git a/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/index.php b/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/index.php index b0561e1281..b78fcaf623 100644 --- a/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/index.php +++ b/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/index.php @@ -6,8 +6,8 @@ printf( __( 'Published on %1$s by %2$s', 'bbporg' ), get_the_time( 'F jS, Y' ), get_the_author_link() - ); - ?> + ); + ?>
    diff --git a/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/page.php b/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/page.php index 7e7e722176..529904f5ff 100644 --- a/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/page.php +++ b/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/page.php @@ -25,17 +25,17 @@ $args = array( 'order' => 'ASC', ); $revisions = wp_get_post_revisions( get_queried_object_id(), $args ); $post_authors = array( $post->post_author => 1 ); - foreach( (array)$revisions as $revision ) { - if ( ! $revision->post_author ) { - continue; - } - - if ( isset( $post_authors[ $revision->post_author ] ) ) { - $post_authors[ $revision->post_author ]++; - } else { - $post_authors[ $revision->post_author ] = 1; - } +foreach( (array)$revisions as $revision ) { + if ( ! $revision->post_author ) { + continue; } + + if ( isset( $post_authors[ $revision->post_author ] ) ) { + $post_authors[ $revision->post_author ]++; + } else { + $post_authors[ $revision->post_author ] = 1; + } +} asort( $post_authors, SORT_NUMERIC ); global $codex_contributors; diff --git a/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/front-page.php b/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/front-page.php index d0543c1eb9..785218ed78 100644 --- a/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/front-page.php +++ b/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/front-page.php @@ -15,16 +15,16 @@ $terms = get_terms( 'component' ); $count = count( $terms ); - if ( $count > 0 ) { - echo '
    '; - echo '

    Components

    '; - echo ''; - echo '
    '; + if ( $count > 0 ) { + echo '
    '; + echo '

    Components

    '; + echo ''; + echo '
    '; + } ?> @@ -33,16 +33,16 @@ $terms = get_terms( 'version', array( 'order' => 'DESC' ) ); $count = count( $terms ); - if ( $count > 0 ) { - echo '
    '; - echo '

    Versions

    '; - echo ''; - echo '
    '; + if ( $count > 0 ) { + echo '
    '; + echo '

    Versions

    '; + echo ''; + echo '
    '; + } ?> @@ -51,16 +51,16 @@ $terms = get_terms( 'type' ); $count = count( $terms ); - if ( $count > 0 ) { - echo '
    '; - echo '

    Types

    '; - echo ''; - echo '
    '; + if ( $count > 0 ) { + echo '
    '; + echo '

    Types

    '; + echo ''; + echo '
    '; + } ?> @@ -69,16 +69,16 @@ $terms = get_terms( 'context' ); $count = count( $terms ); - if ( $count > 0 ) { - echo '
    '; - echo '

    Contexts

    '; - echo ''; - echo '
    '; + if ( $count > 0 ) { + echo '
    '; + echo '

    Contexts

    '; + echo ''; + echo '
    '; + } ?> @@ -94,13 +94,13 @@ $args = array( 'order' => 'ASC', ); $revisions = wp_get_post_revisions( get_queried_object_id(), $args ); $post_authors = array( $post->post_author => 1 ); - foreach( (array)$revisions as $revision ) { - if ( isset( $post_authors[ $revision->post_author ] ) ) { - $post_authors[ $revision->post_author ]++; - } else { - $post_authors[ $revision->post_author ] = 1; - } + foreach( (array)$revisions as $revision ) { + if ( isset( $post_authors[ $revision->post_author ] ) ) { + $post_authors[ $revision->post_author ]++; + } else { + $post_authors[ $revision->post_author ] = 1; } + } asort( $post_authors, SORT_NUMERIC ); global $codex_contributors; diff --git a/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/functions.php b/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/functions.php index a9de1e0827..188cb6bddf 100644 --- a/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/functions.php +++ b/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/functions.php @@ -76,7 +76,7 @@ function bpc_record_page_edits( $post_id, $post ) { // Get diff //$content = wp_text_diff( $revision->post_content, $post->post_content ); - // No revisions, so use original post author + // No revisions, so use original post author } else { $post_author = (int) $post->post_author; } diff --git a/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/index.php b/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/index.php index a9b14fa3ed..b6bfde4d11 100644 --- a/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/index.php +++ b/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/index.php @@ -6,8 +6,8 @@ printf( __( 'Published on %1$s by %2$s', 'bporg' ), get_the_time( 'F jS, Y' ), get_the_author_link() - ); - ?> + ); + ?>
    diff --git a/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/page.php b/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/page.php index 0b6dc61d84..5dc5a3355e 100644 --- a/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/page.php +++ b/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/page.php @@ -26,17 +26,17 @@ $args = array( 'order' => 'ASC', ); $revisions = wp_get_post_revisions( get_queried_object_id(), $args ); $post_authors = array( $post->post_author => 1 ); - foreach( (array)$revisions as $revision ) { - if ( ! $revision->post_author ) { - continue; - } - - if ( isset( $post_authors[ $revision->post_author ] ) ) { - $post_authors[ $revision->post_author ]++; - } else { - $post_authors[ $revision->post_author ] = 1; - } +foreach( (array)$revisions as $revision ) { + if ( ! $revision->post_author ) { + continue; } + + if ( isset( $post_authors[ $revision->post_author ] ) ) { + $post_authors[ $revision->post_author ]++; + } else { + $post_authors[ $revision->post_author ] = 1; + } +} asort( $post_authors, SORT_NUMERIC ); global $codex_contributors; diff --git a/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/sidebar.php b/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/sidebar.php index 3e6f323c92..3dfaa94864 100644 --- a/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/sidebar.php +++ b/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/sidebar.php @@ -32,20 +32,20 @@ } ?> term_id ) ? '&cat=' . $cat[0]->term_id : ''; - $relateds = get_posts( 'nopaging=1&post_type=page&post_parent=0&orderby=title&order=ASC&exclude=' . $post->ID . $incat ); - if ( $relateds ) { - foreach ( $relateds as $related ) { - $title = apply_filters('the_title', $related->post_title); - $rel .= '
  • ' . $title . '
  • '; - } - $rel = '
      ' . $rel . '
    '; - echo ''; + if ( !is_page( 'home' ) && $show_related ) { + $rel = ''; + $cat = get_the_category(); + $incat = ! empty( $cat[0]->term_id ) ? '&cat=' . $cat[0]->term_id : ''; + $relateds = get_posts( 'nopaging=1&post_type=page&post_parent=0&orderby=title&order=ASC&exclude=' . $post->ID . $incat ); + if ( $relateds ) { + foreach ( $relateds as $related ) { + $title = apply_filters('the_title', $related->post_title); + $rel .= '
  • ' . $title . '
  • '; } + $rel = '
      ' . $rel . '
    '; + echo ''; } + } ?> diff --git a/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/widgets/inbox.php b/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/widgets/inbox.php index db938aea34..404f33e292 100644 --- a/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/widgets/inbox.php +++ b/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/widgets/inbox.php @@ -35,7 +35,7 @@ function widget( $args, $instance ) { - - projects ); echo implode( ', ', array_map( 'esc_html', $user->projects ) ); - ?> + ?> diff --git a/global.wordpress.org/public_html/wp-content/mu-plugins/roles/views/edit-cross-locale-pte.php b/global.wordpress.org/public_html/wp-content/mu-plugins/roles/views/edit-cross-locale-pte.php index 24bc57790b..5f23d63277 100644 --- a/global.wordpress.org/public_html/wp-content/mu-plugins/roles/views/edit-cross-locale-pte.php +++ b/global.wordpress.org/public_html/wp-content/mu-plugins/roles/views/edit-cross-locale-pte.php @@ -12,7 +12,7 @@ $user->user_login ) ); - ?>

    + ?>

    diff --git a/global.wordpress.org/public_html/wp-content/mu-plugins/roles/views/edit-translation-editor.php b/global.wordpress.org/public_html/wp-content/mu-plugins/roles/views/edit-translation-editor.php index d8fe96a119..ff05d6cc64 100644 --- a/global.wordpress.org/public_html/wp-content/mu-plugins/roles/views/edit-translation-editor.php +++ b/global.wordpress.org/public_html/wp-content/mu-plugins/roles/views/edit-translation-editor.php @@ -13,7 +13,7 @@ $user->user_login ) ); - ?>

    + ?>

    diff --git a/global.wordpress.org/public_html/wp-content/themes/rosetta/comments.php b/global.wordpress.org/public_html/wp-content/themes/rosetta/comments.php index bd16ff01d3..0607d3b034 100644 --- a/global.wordpress.org/public_html/wp-content/themes/rosetta/comments.php +++ b/global.wordpress.org/public_html/wp-content/themes/rosetta/comments.php @@ -33,8 +33,8 @@ + if ( ! comments_open() && get_comments_number() ) : + ?>

    diff --git a/global.wordpress.org/public_html/wp-content/themes/rosetta/download.php b/global.wordpress.org/public_html/wp-content/themes/rosetta/download.php index 1d0a8f650b..a15c71a74e 100644 --- a/global.wordpress.org/public_html/wp-content/themes/rosetta/download.php +++ b/global.wordpress.org/public_html/wp-content/themes/rosetta/download.php @@ -18,54 +18,54 @@
    +if ( ! empty( $releases ) ): + if ( isset( $releases['latest'] ) ): + rosetta_release_row( null, null, null, true ); + ?>

    - +
    - + if ( ! empty( $releases['branches'] ) ): + ?> - $branch_rels ): rosetta_release_row( null, null, null, true ); -?> + ?>

    - + - + ?>
    - + if ( ! empty( $releases['betas'] ) ): + ?>

    - + - + ?>
    - + ?>

    diff --git a/global.wordpress.org/public_html/wp-content/themes/rosetta/front-page.php b/global.wordpress.org/public_html/wp-content/themes/rosetta/front-page.php index 435d4d42d3..ea44e35fe3 100644 --- a/global.wordpress.org/public_html/wp-content/themes/rosetta/front-page.php +++ b/global.wordpress.org/public_html/wp-content/themes/rosetta/front-page.php @@ -4,7 +4,7 @@ rosetta->get_latest_public_release(); if ( false === $latest_release && $rosetta->rosetta->get_latest_release() ) : -?> + ?>
    @@ -22,23 +22,23 @@
    +while(have_posts()): + the_post(); + ?>

    - ', - $hw, - esc_url( $header_image ) - ); - } + ', + $hw, + esc_url( $header_image ) + ); + } - the_content(); - ?> + the_content(); + ?>
    @@ -46,39 +46,39 @@
    rosetta->get_latest_public_release(); - if (false !== $latest_release): -?> +if (false !== $latest_release): + ?>
    - + ?>

    -showcase->front(); - if ( $showcase ) : -?> +if ( $showcase ) : + ?>

      -ID ); -?> + ?>
    • - + ?>
    - + ?>
    @@ -113,19 +113,19 @@
    - + ?> +while(have_posts()): + the_post(); + ?>

    - +
    @@ -135,10 +135,10 @@

    - + ?>

    diff --git a/global.wordpress.org/public_html/wp-content/themes/rosetta/sidebar-page.php b/global.wordpress.org/public_html/wp-content/themes/rosetta/sidebar-page.php index ff492a8ec1..ebdf6a7323 100644 --- a/global.wordpress.org/public_html/wp-content/themes/rosetta/sidebar-page.php +++ b/global.wordpress.org/public_html/wp-content/themes/rosetta/sidebar-page.php @@ -11,8 +11,8 @@ __( 'Download WordPress %s', 'rosetta' ), $latest_release['version'] ) - ); - ?> + ); + ?>

    @@ -21,7 +21,7 @@ + ?>

    '; echo '' . esc_html( $similar_job->post_title ) . ''; echo '' . $similar_job->post_status . ''; - // Output job categories - echo ''; - $job_categories = get_the_terms($similar_job->ID, 'job_category'); - if ($job_categories && !is_wp_error($job_categories)) { - $category_names = wp_list_pluck($job_categories, 'name'); - echo implode(', ', $category_names); - } - echo ''; + // Output job categories + echo ''; + $job_categories = get_the_terms($similar_job->ID, 'job_category'); + if ($job_categories && !is_wp_error($job_categories)) { + $category_names = wp_list_pluck($job_categories, 'name'); + echo implode(', ', $category_names); + } + echo ''; echo '' . get_post_meta( $similar_job->ID, 'first_name', true ) . ' ' . get_post_meta( $similar_job->ID, 'last_name', true ) . ''; echo '' . get_post_meta( $similar_job->ID, 'email', true ) . ''; -echo ''; -if ( $similar_job->post_content === $post->post_content ) { - echo 'Same job description'; -} -echo ''; + echo ''; + if ( $similar_job->post_content === $post->post_content ) { + echo 'Same job description'; + } + echo ''; echo ''; } diff --git a/jobs.wordpress.net/public_html/wp-content/plugins/jobswp/jobswp-walker.php b/jobs.wordpress.net/public_html/wp-content/plugins/jobswp/jobswp-walker.php index 8c25fc8055..8c12b5529f 100644 --- a/jobs.wordpress.net/public_html/wp-content/plugins/jobswp/jobswp-walker.php +++ b/jobs.wordpress.net/public_html/wp-content/plugins/jobswp/jobswp-walker.php @@ -19,16 +19,16 @@ class Walker_Jobs_Category extends Walker_Category { * @param int $depth Depth of category in reference to parents. * @param array $args */ - function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) { + function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) { extract($args); $cat_name = esc_attr( $category->name ); $cat_name = apply_filters( 'list_cats', $cat_name, $category ); $link = 'description) ) - $link .= 'title="' . esc_attr( sprintf(__( 'View all jobs filed under %s', 'jobswp' ), $cat_name) ) . '"'; + $link .= 'title="' . esc_attr( sprintf(__( 'View all jobs filed under %s', 'jobswp' ), $cat_name) ) . '"'; else - $link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"'; + $link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"'; $link .= '>'; $link .= $cat_name . ''; @@ -63,7 +63,7 @@ function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) { } if ( !empty($show_count) ) - $link .= ' (' . intval($category->count) . ')'; + $link .= ' (' . intval($category->count) . ')'; if ( 'list' == $args['style'] ) { $output .= "\t + ?>
    diff --git a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-home.php b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-home.php index 5713c550bc..5a672922c3 100644 --- a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-home.php +++ b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-home.php @@ -169,8 +169,8 @@ static function ( $a, $b ) { $paged_candidates = $candidates_result['candidates']; $total_candidates = $candidates_result['total']; $total_pages = $candidates_result['pages']; - if ( ! empty( $paged_candidates ) ) : -?> +if ( ! empty( $paged_candidates ) ) : + ?>
    @@ -180,13 +180,13 @@ static function ( $a, $b ) {

    - +
    @@ -243,17 +243,17 @@ static function ( $a, $b ) {

    Update your WordPress.org profile and toggle "Open to Work" in the Jobs section.', 'jobswp' ), - 'https://profiles.wordpress.org/me/profile/edit/' - ), - array( 'a' => array( 'href' => array() ) ) + sprintf( + /* translators: %s: URL to update WordPress.org profile */ + __( 'Want to appear here? Update your WordPress.org profile and toggle "Open to Work" in the Jobs section.', 'jobswp' ), + 'https://profiles.wordpress.org/me/profile/edit/' + ), + array( 'a' => array( 'href' => array() ) ) ); ?>

    - diff --git a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-list.php b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-list.php index 1a411c7a10..6e695bc091 100644 --- a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-list.php +++ b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-list.php @@ -1,59 +1,59 @@ '; - - echo '
    ' . get_the_date( 'M j' ) . '
    '; - echo ''; - echo '
    '; - echo jobswp_get_job_meta( get_the_ID(), 'jobtype' ); - echo '
    '; - echo '
    '; - echo jobswp_get_job_meta( get_the_ID(), 'location' ); - echo '
    '; - - echo '
    '; - echo ''; - - } // End foreach - } // End if posts - else { - echo '
    '; - echo "
    "; - echo sprintf( - __( 'There are no jobs in this category. If you\'re hiring, you can post a new job.', 'jobswp' ), - '/post-a-job' - ); +if ( $posts ) { + global $post; + + foreach ( $posts as $post ) { + + $evenodd = abs( $evenodd - 1 ); + echo '
    '; + + echo '
    ' . get_the_date( 'M j' ) . '
    '; + echo ''; + echo '
    '; + echo jobswp_get_job_meta( get_the_ID(), 'jobtype' ); echo '
    '; + echo '
    '; + echo jobswp_get_job_meta( get_the_ID(), 'location' ); echo '
    '; - } - ?> + + echo '
    '; + echo '
    '; + + } // End foreach +} // End if posts +else { + echo '
    '; + echo "
    "; + echo sprintf( + __( 'There are no jobs in this category. If you\'re hiring, you can post a new job.', 'jobswp' ), + '/post-a-job' + ); + echo '
    '; + echo '
    '; +} +?> '; + if ( is_front_page() ) { + global $category; + echo '

    '; if ( ! $category ) { $terms = get_the_terms( get_the_ID(), 'job_category' ); $category = $terms ? array_pop( $terms ) : null; } - $link = ''; - $link .= 'name ) ) . '"'; - $link .= '>'; - $link .= 'Show all '.apply_filters( 'list_terms', $category->name, $category ) . ' jobs »'; - echo $link; - echo '

    '; - } else { - jobswp_content_nav( 'all-job-categories' ); - } + $link = ''; + $link .= 'name ) ) . '"'; + $link .= '>'; + $link .= 'Show all '.apply_filters( 'list_terms', $category->name, $category ) . ' jobs »'; + echo $link; + echo '

    '; + } else { + jobswp_content_nav( 'all-job-categories' ); + } ?>
    diff --git a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-page.php b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-page.php index a0a0176b6e..ba9af65507 100644 --- a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-page.php +++ b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-page.php @@ -20,7 +20,7 @@ 'before' => '', ) ); - ?> + ?> ', '' ); ?>
    diff --git a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-post-job-success.php b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-post-job-success.php index 93a11b22db..7b2ab2a078 100644 --- a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-post-job-success.php +++ b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-post-job-success.php @@ -3,7 +3,7 @@

    FAQ. After approval, your posting will stay on the job board for a total of 21 days.', 'jobswp' ), - '/faq/' ); ?>

    + '/faq/' ); ?>

    Important! Take note of the following job token. It is your only means of removing the job from the site in a timely fashion prior to its automatic expiration. (Otherwise, you would have to make a request via the feedback form which could take 24-48 hours or longer to honor). The token is used on the job removal page.', 'jobswp' ), '/remove-a-job/' @@ -13,7 +13,7 @@

    feedback form. Be sure to specify the email address you supplied in your job posting.', 'jobswp' ), - '/feedback/' ); ?>

    + '/feedback/' ); ?>

    diff --git a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-post-job.php b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-post-job.php index eaec5f6794..e190890211 100644 --- a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-post-job.php +++ b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-post-job.php @@ -123,7 +123,7 @@ + ?>

    diff --git a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-search.php b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-search.php index 9262fe1d6f..d732959b55 100644 --- a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-search.php +++ b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-search.php @@ -10,6 +10,6 @@ get_template_part( 'content', 'list' ); -?> + ?>
    diff --git a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-single.php b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-single.php index 393ffb7950..e4e54eb022 100644 --- a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-single.php +++ b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-single.php @@ -124,13 +124,13 @@ // "Consider These Candidates" section on single job pages. $single_result = jobswp_get_open_to_work_candidates( 1, 4 ); $single_candidates = $single_result['candidates']; - if ( ! empty( $single_candidates ) ) : -?> +if ( ! empty( $single_candidates ) ) : + ?>

    - + current_role ) ? $person->current_role : ''; $company = isset( $person->current_company ) ? $person->current_company : ''; @@ -159,6 +159,6 @@

    - diff --git a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/functions.php b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/functions.php index 59fc657ae5..b5f9cb530c 100644 --- a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/functions.php +++ b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/functions.php @@ -12,56 +12,56 @@ $content_width = 640; /* pixels */ if ( ! function_exists( 'jobswp_setup' ) ) : -/** - * Sets up theme defaults and registers support for various WordPress features. - * - * Note that this function is hooked into the after_setup_theme hook, which runs - * before the init hook. The init hook is too late for some features, such as indicating - * support post thumbnails. - */ -function jobswp_setup() { - /** - * Make theme available for translation - * Translations can be filed in the /languages/ directory - * If you're building a theme based on jobswp, use a find and replace - * to change 'jobswp' to the name of your theme in all the template files - */ - load_theme_textdomain( 'jobswp', get_template_directory() . '/languages' ); - - /** - * Add default posts RSS feed links to head. - * Comments feed is removed below as jobs don't have comments. - */ - add_theme_support( 'automatic-feed-links' ); - - /** - * Enable support for Post Thumbnails on posts and pages + * Sets up theme defaults and registers support for various WordPress features. * - * @link https://developer.wordpress.org/reference/functions/add_theme_support/#post-thumbnails - */ - //add_theme_support( 'post-thumbnails' ); - - /** - * This theme uses wp_nav_menu() in one location. + * Note that this function is hooked into the after_setup_theme hook, which runs + * before the init hook. The init hook is too late for some features, such as indicating + * support post thumbnails. */ - register_nav_menus( array( + function jobswp_setup() { + + /** + * Make theme available for translation + * Translations can be filed in the /languages/ directory + * If you're building a theme based on jobswp, use a find and replace + * to change 'jobswp' to the name of your theme in all the template files + */ + load_theme_textdomain( 'jobswp', get_template_directory() . '/languages' ); + + /** + * Add default posts RSS feed links to head. + * Comments feed is removed below as jobs don't have comments. + */ + add_theme_support( 'automatic-feed-links' ); + + /** + * Enable support for Post Thumbnails on posts and pages + * + * @link https://developer.wordpress.org/reference/functions/add_theme_support/#post-thumbnails + */ + //add_theme_support( 'post-thumbnails' ); + + /** + * This theme uses wp_nav_menu() in one location. + */ + register_nav_menus( array( 'primary' => __( 'Primary Menu', 'jobswp' ), - ) ); - - /** - * Enable support for Post Formats - */ -// add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); - - /** - * Setup the WordPress core custom background feature. - */ - add_theme_support( 'custom-background', apply_filters( 'jobswp_custom_background_args', array( - 'default-color' => 'ffffff', - 'default-image' => '', - ) ) ); -} + ) ); + + /** + * Enable support for Post Formats + */ + // add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); + + /** + * Setup the WordPress core custom background feature. + */ + add_theme_support( 'custom-background', apply_filters( 'jobswp_custom_background_args', array( + 'default-color' => 'ffffff', + 'default-image' => '', + ) ) ); + } endif; // jobswp_setup add_action( 'after_setup_theme', 'jobswp_setup' ); diff --git a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/inc/template-tags.php b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/inc/template-tags.php index 481cec991f..007cf98666 100644 --- a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/inc/template-tags.php +++ b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/inc/template-tags.php @@ -8,35 +8,35 @@ */ if ( ! function_exists( 'jobswp_content_nav' ) ) : -/** - * Display navigation to next/previous pages when applicable - */ -function jobswp_content_nav( $nav_id ) { - global $wp_query, $post; + /** + * Display navigation to next/previous pages when applicable + */ + function jobswp_content_nav( $nav_id ) { + global $wp_query, $post; - // Don't print empty markup on single pages if there's nowhere to navigate. - if ( is_single() ) { - $previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true ); - $next = get_adjacent_post( false, '', false ); + // Don't print empty markup on single pages if there's nowhere to navigate. + if ( is_single() ) { + $previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true ); + $next = get_adjacent_post( false, '', false ); - if ( ! $next && ! $previous ) + if ( ! $next && ! $previous ) return; - } + } - // Don't print empty markup in archives if there's only one page. - if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) ) + // Don't print empty markup in archives if there's only one page. + if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) ) return; - $nav_class = ( is_single() ) ? 'post-navigation' : 'paging-navigation'; + $nav_class = ( is_single() ) ? 'post-navigation' : 'paging-navigation'; - ?> + ?>
    ', '' . _x( '←', 'Previous post link', 'jobswp' ) . ' %title' ); ?> - %link', '%title ' . _x( '→', 'Next post link', 'jobswp' ) . '' ); ?> + %link', '' . _x( '←', 'Previous post link', 'jobswp' ) . ' %title' ); ?> + %link', '%title ' . _x( '→', 'Next post link', 'jobswp' ) . '' ); ?> max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?> @@ -51,27 +51,27 @@ function jobswp_content_nav( $nav_id ) { - comment_type || 'trackback' == $comment->comment_type ) : ?> + if ( 'pingback' == $comment->comment_type || 'trackback' == $comment->comment_type ) : ?>
  • >
    - ', '' ); ?> + ', '' ); ?>
    - +
  • >
    @@ -110,27 +110,27 @@ function jobswp_comment( $comment, $args, $depth ) { ?>
    - $post->post_parent, 'fields' => 'ids', 'numberposts' => -1, @@ -139,48 +139,48 @@ function jobswp_the_attached_image() { 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' - ) ); - - // If there is more than 1 attachment in a gallery... - if ( count( $attachment_ids ) > 1 ) { - foreach ( $attachment_ids as $attachment_id ) { - if ( $attachment_id == $post->ID ) { - $next_id = current( $attachment_ids ); - break; + ) ); + + // If there is more than 1 attachment in a gallery... + if ( count( $attachment_ids ) > 1 ) { + foreach ( $attachment_ids as $attachment_id ) { + if ( $attachment_id == $post->ID ) { + $next_id = current( $attachment_ids ); + break; + } } - } - // get the URL of the next image attachment... - if ( $next_id ) + // get the URL of the next image attachment... + if ( $next_id ) $next_attachment_url = get_attachment_link( $next_id ); - // or get the URL of the first image attachment. - else + // or get the URL of the first image attachment. + else $next_attachment_url = get_attachment_link( array_shift( $attachment_ids ) ); - } + } - printf( '%3$s', + printf( '%3$s', esc_url( $next_attachment_url ), the_title_attribute( array( 'echo' => false ) ), wp_get_attachment_image( $post->ID, $attachment_size ) - ); -} + ); + } endif; if ( ! function_exists( 'jobswp_posted_on' ) ) : -/** - * Prints HTML with meta information for the current post-date/time and author. - */ -function jobswp_posted_on() { - printf( // phpcs:ignore Generic.WhiteSpace.ScopeIndent.Incorrect -- Whole file uses this indentation. + /** + * Prints HTML with meta information for the current post-date/time and author. + */ + function jobswp_posted_on() { + printf( // phpcs:ignore Generic.WhiteSpace.ScopeIndent.Incorrect -- Whole file uses this indentation. wp_kses_post( __( 'Posted %1$s', 'jobswp' ) ), sprintf( '', esc_url( get_permalink() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ) - ); -} + ); + } endif; /** diff --git a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/sidebar.php b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/sidebar.php index c4c96304a7..7306bdd471 100644 --- a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/sidebar.php +++ b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/sidebar.php @@ -24,7 +24,7 @@ $sidebar_result = jobswp_get_open_to_work_candidates( 1, 5 ); $sidebar_candidates = $sidebar_result['candidates']; if ( ! empty( $sidebar_candidates ) ) : - ?> + ?>
  • diff --git a/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/tools/class-stats-report.php b/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/tools/class-stats-report.php index b73631a516..a7dac09690 100644 --- a/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/tools/class-stats-report.php +++ b/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/tools/class-stats-report.php @@ -456,14 +456,14 @@ public function show_stats() { esc_html( $stats['plugin_delist'] ) ); $reasons = array(); - if ( $stats['plugin_delist_reasons'] ) { - echo ''; + if ( $stats['plugin_delist_reasons'] ) { + echo ''; + } ?>
  • diff --git a/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-upload.php b/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-upload.php index ae68456469..6b41b4ffb0 100644 --- a/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-upload.php +++ b/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-upload.php @@ -210,7 +210,7 @@ public function send_slug_change_email( $plugin ) { $email_content = sprintf( // translators: 1: plugin slug. __( -'Your request to change your plugin slug to %1$s has been received and will be reviewed by our team. + 'Your request to change your plugin slug to %1$s has been received and will be reviewed by our team. We will contact you when your plugin has been approved or if we have any questions. diff --git a/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php b/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php index 8014357ea5..589975a25f 100644 --- a/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php +++ b/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php @@ -388,7 +388,7 @@ protected function get_plugin_reviews_markup( $plugin_slug ) { protected function get_plugin_reviews_markup_singular( $review ) { $reviewer = get_user_by( 'id', $review->post_author ); ob_start(); -?> + ?>
    @@ -427,7 +427,7 @@ protected function get_plugin_reviews_markup_singular( $review ) {
    post_content; ?>
    - 0 ) { - // self::notify_plugin_authors( $plugin, $plugin_check_result, $tag ); // TODO: Enable, disabled until email content is finalised. + // self::notify_plugin_authors( $plugin, $plugin_check_result, $tag ); // TODO: Enable, disabled until email content is finalised. self::notify_slack_channel( $plugin, $plugin_check_result, $tag ); } } diff --git a/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-block-validator.php b/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-block-validator.php index 4dd7226c52..837e619696 100644 --- a/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-block-validator.php +++ b/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-block-validator.php @@ -76,7 +76,7 @@ public static function display() { } else { printf( '', $upload_script ); } - ?> + ?>
    - + ?> diff --git a/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php b/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php index ea5d8acb0e..c203152f45 100644 --- a/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php +++ b/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php @@ -244,43 +244,43 @@ public static function display() { $plugin->status ) ); - if ( + if ( 'pending' === $plugin->post_status && ! empty( $plugin->review_email ) && ! empty( $plugin->review_email->subject ) && ! empty( $plugin->review_email->created ) ) { - printf( - '
    ✉️✔️ %s
    ', - sprintf( - __( 'Our team emailed you on %s regarding your submission. The subject line is: "%s".', 'wporg-plugins' ), - esc_html( wp_date( get_option( 'date_format' ), strtotime( $plugin->review_email->created ) ) ), - esc_html( $plugin->review_email->subject ) - ) - ); - echo '
    '; - esc_html_e( 'Please follow the instructions in that email to continue the review process. If you don’t see it in your inbox, check your spam or junk folder. You may also want to add plugins@wordpress.org to your email whitelist to ensure you receive future updates.', 'wporg-plugins' ); - echo '
    '; - } - if ( 'new' === $plugin->post_status ) { - printf( - '
    ✉️⏳ %s
    ', - sprintf( - __( 'Please be patient and wait for the review email. It will be sent to your email address, %s, with the subject line: "%s".', 'wporg-plugins' ), - esc_html( get_userdata( $plugin->post_author )->user_email ), - '[WordPress Plugin Directory] Review in Progress: ' . $plugin->post_title - ) - ); - echo '
    '; - esc_html_e( 'Be sure to check your spam folder, and consider adding plugins@wordpress.org to your email whitelist to ensure the message does not get missed.', 'wporg-plugins' ); - echo '
    '; - } + printf( + '
    ✉️✔️ %s
    ', + sprintf( + __( 'Our team emailed you on %s regarding your submission. The subject line is: "%s".', 'wporg-plugins' ), + esc_html( wp_date( get_option( 'date_format' ), strtotime( $plugin->review_email->created ) ) ), + esc_html( $plugin->review_email->subject ) + ) + ); + echo '
    '; + esc_html_e( 'Please follow the instructions in that email to continue the review process. If you don’t see it in your inbox, check your spam or junk folder. You may also want to add plugins@wordpress.org to your email whitelist to ensure you receive future updates.', 'wporg-plugins' ); + echo '
    '; + } + if ( 'new' === $plugin->post_status ) { + printf( + '
    ✉️⏳ %s
    ', + sprintf( + __( 'Please be patient and wait for the review email. It will be sent to your email address, %s, with the subject line: "%s".', 'wporg-plugins' ), + esc_html( get_userdata( $plugin->post_author )->user_email ), + '[WordPress Plugin Directory] Review in Progress: ' . $plugin->post_title + ) + ); + echo '
    '; + esc_html_e( 'Be sure to check your spam folder, and consider adding plugins@wordpress.org to your email whitelist to ensure the message does not get missed.', 'wporg-plugins' ); + echo '
    '; + } echo '
    '; printf( __( 'Current assigned slug: %s', 'wporg-plugins' ), '' . esc_html( $plugin->post_name ) . '' ); - ?> + ?> @@ -298,7 +298,7 @@ public static function display() { __( "Your slug is used to generate your plugins URL. Currently it's %s", 'wporg-plugins' ), '' . esc_url( home_url( $plugin->post_name ) . '/' ) . '' ); - ?>

    + ?>

    @@ -335,7 +335,7 @@ public static function display() {

    - '; @@ -347,18 +347,18 @@ public static function display() { $attached_media = get_attached_media( 'application/zip', $plugin ); remove_filter( 'get_attached_media_args', $get_attached_media_args ); - if ( $can_upload_extras ) { - echo '
    '; - echo '' . sprintf( __( 'Upload updated "%s" plugin for review.', 'wporg-plugins' ), esc_html( $plugin->post_title ) ) . ''; + if ( $can_upload_extras ) { + echo '
    '; + echo '' . sprintf( __( 'Upload updated "%s" plugin for review.', 'wporg-plugins' ), esc_html( $plugin->post_title ) ) . ''; - ?> + ?> '; - } + } echo ''; echo "
  • \n"; } @@ -505,7 +505,7 @@ public static function display() { __( 'Names that begin with a project, organization, or trademark are only accepted if submitted by the verified owner. Ownership can be confirmed through the email domain in your user profile - update it before submitting.', 'wporg-plugins' ) ), esc_url( 'https://profiles.wordpress.org/profile/edit' ) - ); ?> + ); ?>
    For example, use an official Acme email domain (e.g., “john@acme.example”) for a plugin named “Acme AI Writer”.', 'wporg-plugins' ) ); ?>

    @@ -562,10 +562,10 @@ public static function display() {

    diff --git a/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-categorization.php b/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-categorization.php index 609e2555ca..623064b670 100644 --- a/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-categorization.php +++ b/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-categorization.php @@ -62,10 +62,10 @@ public function widget( $args, $instance ) { // and the current user can update the categorization options so that the update can be // easily reflected in the widget on the same page. (CSS will prevent a link with an empty // URL from being shown.) - if ( $url || ( get_query_var( 'plugin_advanced' ) && current_user_can( 'plugin_admin_edit', $post ) ) ) { - printf( '%2$s', esc_url( $url ), esc_html( $link_text ) ); - } - ?> + if ( $url || ( get_query_var( 'plugin_advanced' ) && current_user_can( 'plugin_admin_edit', $post ) ) ) { + printf( '%2$s', esc_url( $url ), esc_html( $link_text ) ); + } + ?>

    + ?>

    diff --git a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php index fc293e91df..69ee8c22f5 100644 --- a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php +++ b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php @@ -662,7 +662,7 @@ public function get_view_link( $url, $view ) { } $url = home_url( user_trailingslashit( $url ) ); - // Unpretty permalinks. + // Unpretty permalinks. } else { $url = add_query_arg( array( bbp_get_view_rewrite_id() => $view, diff --git a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-dropin.php b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-dropin.php index d3297e6cd5..4c78986906 100644 --- a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-dropin.php +++ b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-dropin.php @@ -278,7 +278,7 @@ function bbp_update_topic( $topic_id = 0, $forum_id = 0, $anonymous_data = false if ( true === $subscribed && false === $subscheck ) { bbp_remove_user_subscription( $author_id, $topic_id ); - // Subscribing + // Subscribing } elseif ( false === $subscribed && true === $subscheck ) { bbp_add_user_subscription( $author_id, $topic_id ); } @@ -304,8 +304,8 @@ function bbp_update_topic( $topic_id = 0, $forum_id = 0, $anonymous_data = false bbp_update_topic_reply_count_hidden ( $topic_id, 0 ); bbp_update_topic_voice_count ( $topic_id ); - // Walk up ancestors and do the dirty work - // bbp_update_topic_walker( $topic_id, $last_active, $forum_id, 0, false ); + // Walk up ancestors and do the dirty work + // bbp_update_topic_walker( $topic_id, $last_active, $forum_id, 0, false ); } } @@ -402,7 +402,7 @@ function bbp_update_reply( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymo if ( true === $subscribed && false === $subscheck ) { bbp_remove_user_subscription( $author_id, $topic_id ); - // Subscribing + // Subscribing } elseif ( false === $subscribed && true === $subscheck ) { bbp_add_user_subscription( $author_id, $topic_id ); } diff --git a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php index faf14084b2..29867ba4c9 100644 --- a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php +++ b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php @@ -536,7 +536,7 @@ public function should_noindex_robots( $robots ) { if ( bbpress()->displayed_user && bbpress()->displayed_user->has_cap( bbp_get_blocked_role() ) ) { $robots = true; - // Users with no Topics/Replies/Reviews are not indexed. + // Users with no Topics/Replies/Reviews are not indexed. } elseif ( ! wporg_support_get_user_topics_count() && ! bbp_get_user_reply_count_raw() && @@ -544,7 +544,7 @@ public function should_noindex_robots( $robots ) { ) { $robots = true; - // Noindex all of the single user subpages. + // Noindex all of the single user subpages. } elseif ( ! bbp_is_single_user_profile() ) { $robots = true; } diff --git a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php index c72f4fa89b..a0b2ea7ff4 100644 --- a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php +++ b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php @@ -384,11 +384,11 @@ public function archive_handler( $action = '' ) { if ( ! $post ) { bbp_add_error( 'wporg_bbp_archive_post_id', __( 'Error: No post was found! Which post are you archiving?', 'wporg-forums' ) ); - // Check for current user. + // Check for current user. } elseif ( empty( $user_id ) ) { bbp_add_error( 'wporg_bbp_archive_logged_in', __( 'Error: You must be logged in to do this!', 'wporg-forums' ) ); - // Check nonce. + // Check nonce. } elseif ( ! bbp_verify_nonce_request( 'toggle-post-archive_' . $user_id . '_' . $post->ID ) ) { bbp_add_error( 'wporg_bbp_archive_nonce', __( 'Error: Are you sure you wanted to do that?', 'wporg-forums' ) ); @@ -811,7 +811,7 @@ public function handle_topic_actions_request( $action = '' ) { if ( ( false !== $retval['status'] ) && ! is_wp_error( $retval['status'] ) ) { bbp_redirect( $retval['redirect_to'] ); - // Handle errors + // Handle errors } else { bbp_add_error( 'bbp_toggle_topic', $retval['message'] ); } @@ -875,7 +875,7 @@ public function handle_reply_actions_request( $action = '' ) { if ( ( false !== $retval['status'] ) && ! is_wp_error( $retval['status'] ) ) { bbp_redirect( $retval['redirect_to'] ); - // Handle errors + // Handle errors } else { bbp_add_error( 'bbp_toggle_reply', $retval['message'] ); } diff --git a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php index 247eb1f7cf..8ef1de9907 100644 --- a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php +++ b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php @@ -277,8 +277,8 @@ public function has_topics( $r ) { unset( $r['meta_key'] ); unset( $r['meta_type'] ); $r['orderby'] = 'ID'; - // Some views use meta key lookups and should only look at known - // open topics. + // Some views use meta key lookups and should only look at known + // open topics. } elseif ( ! empty( $r['meta_key'] ) ) { $r['orderby'] = 'ID'; add_filter( 'posts_where', array( $this, 'posts_in_last_six_months' ) ); diff --git a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php index 0272c1b7cf..14dbeedeca 100644 --- a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php +++ b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php @@ -218,34 +218,34 @@ public function do_view_header() { // Undo the above filter, for titles of replies to reviews. See #meta4254 add_filter( 'bbp_get_topic_last_topic_title', array( $this, 'undo_topic_title' ), 10, 1 ); -?> + ?>

    ' ); ?>
    @@ -256,8 +256,8 @@ public function do_view_header() { /* translators: %s: number of reviews */ _n( '%s review', '%s reviews', $this->reviews_count, 'wporg-forums' ), '' . number_format_i18n( $this->reviews_count ) . '' - ); - ?>
    + ); + ?> ' ); ?> @@ -489,7 +489,7 @@ public function do_template_notice() { __( 'Please do not add links to your review, keep the review about your experience in text only.', 'wporg-forums' ), esc_url( __( 'https://wordpress.org/support/forum-user-guide/faq/#why-are-links-not-allowed-in-reviews', 'wporg-forums' ) ) ); - ?> + ?> Error: No topic was found! Which topic are you sticking?', 'wporg-forums' ) ); - // Check user. + // Check user. } elseif ( ! $this->user_can_stick( $user_id, $term->term_id, $topic->ID ) ) { bbp_add_error( 'wporg_bbp_sticky_logged_in', __( 'Error: You do not have permission to do this!', 'wporg-forums' ) ); - // Check nonce. + // Check nonce. } elseif( ! bbp_verify_nonce_request( 'toggle-topic-sticky_' . $topic->ID . '_' . $term->term_id ) ) { bbp_add_error( 'wporg_bbp_sticky_nonce', __( 'Error: Are you sure you wanted to do that?', 'wporg-forums' ) ); } diff --git a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-support-compat.php b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-support-compat.php index a650d71805..9dd8033abc 100644 --- a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-support-compat.php +++ b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-support-compat.php @@ -268,7 +268,7 @@ public function get_view_link( $url, $view ) { $url = $wp_rewrite->root . "view/{$view}/" . $this->user->user_nicename; $url = home_url( user_trailingslashit( $url ) ); - // Unpretty permalinks. + // Unpretty permalinks. } else { $url = add_query_arg( array( bbp_get_view_rewrite_id() => $view, @@ -609,7 +609,7 @@ public function redirect_old_topic_id() { $forum_id = absint( $segments[ $count - 2 ] ); $topic_id = absint( $segments[ $count - 1 ] ); - // {...}/{forum_id} - but not /page/{n}/ pagination. + // {...}/{forum_id} - but not /page/{n}/ pagination. } elseif ( $count >= 1 && ctype_digit( $segments[ $count - 1 ] ) && diff --git a/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php b/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php index b0348ef3b8..fc4175b2cf 100644 --- a/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php +++ b/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php @@ -589,7 +589,7 @@ function wporg_themes_meta_box_callback( $post ) {

    - + ?> -ID) ? $user_ID : $post->post_author; $user = new WP_User($value); echo ""; echo ""; -?> + ?> - + ?> - __('Team', 'wporg') ) + array_slice( $columns, 1, null, true ); - return $columns; - } - - public function meeting_custom_columns( $column, $post_id ) { - switch ( $column ) { - case 'team' : - $team = get_post_meta( $post_id, 'team', true ); - echo esc_html( $team ); - break; + return $columns; } - } - public function meeting_archive_page_query( $query ) { - if ( is_admin() || ! $query->is_main_query() || ! $query->is_post_type_archive( 'meeting' ) ) { - return; + public function meeting_custom_columns( $column, $post_id ) { + switch ( $column ) { + case 'team' : + $team = get_post_meta( $post_id, 'team', true ); + echo esc_html( $team ); + break; + } } - // turn off paging on the archive page, to show all meetings in the table - $query->set( 'nopaging', true ); - // meta query to eliminate expired meetings from query - $query->set( 'meta_query', $this->meeting_meta_query ); + public function meeting_archive_page_query( $query ) { + if ( is_admin() || ! $query->is_main_query() || ! $query->is_post_type_archive( 'meeting' ) ) { + return; + } + // turn off paging on the archive page, to show all meetings in the table + $query->set( 'nopaging', true ); - // WP doesn't understand CURDATE() and prepares it as a quoted string. Repair this: - add_filter( 'get_meta_sql', function ($sql) { - return str_replace( "'CURDATE()'", 'CURDATE()', $sql ); - } ); + // meta query to eliminate expired meetings from query + $query->set( 'meta_query', $this->meeting_meta_query ); - } + // WP doesn't understand CURDATE() and prepares it as a quoted string. Repair this: + add_filter( 'get_meta_sql', function ($sql) { + return str_replace( "'CURDATE()'", 'CURDATE()', $sql ); + } ); - public function meeting_set_next_meeting( $posts, $query ) { - if ( !$query->is_post_type_archive( 'meeting' ) ) { - return $posts; } - // for each entry, set a fake meta value to show the next date for recurring meetings - array_walk( $posts, function ( &$post ) { - if ( 'weekly' === $post->recurring || '1' === $post->recurring ) { - try { - // from the start date, advance the week until it's past now - $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ); - $next = $start; - // minus 30 minutes to account for currently ongoing meetings - $now = new DateTime( '-30 minutes' ); - - if ( $next < $now ) { - $interval = $start->diff( $now ); - // add one to days to account for events that happened earlier today - $weekdiff = ceil( ( $interval->days + 1 ) / 7 ); - $next->modify( '+ ' . $weekdiff . ' weeks' ); - } + public function meeting_set_next_meeting( $posts, $query ) { + if ( !$query->is_post_type_archive( 'meeting' ) ) { + return $posts; + } - $post->next_date = $next->format( 'Y-m-d' ); - } catch ( Exception $e ) { - // if the datetime is invalid, then set the post->next_date to the start date instead - $post->next_date = $post->start_date; - } - } else if ( 'biweekly' === $post->recurring ) { - try { - // advance the start date 2 weeks at a time until it's past now - $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ); - $next = $start; - // minus 30 minutes to account for currently ongoing meetings - $now = new DateTime( '-30 minutes' ); - - while ( $next < $now ) { - $next->modify( '+2 weeks' ); + // for each entry, set a fake meta value to show the next date for recurring meetings + array_walk( $posts, function ( &$post ) { + if ( 'weekly' === $post->recurring || '1' === $post->recurring ) { + try { + // from the start date, advance the week until it's past now + $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ); + $next = $start; + // minus 30 minutes to account for currently ongoing meetings + $now = new DateTime( '-30 minutes' ); + + if ( $next < $now ) { + $interval = $start->diff( $now ); + // add one to days to account for events that happened earlier today + $weekdiff = ceil( ( $interval->days + 1 ) / 7 ); + $next->modify( '+ ' . $weekdiff . ' weeks' ); + } + + $post->next_date = $next->format( 'Y-m-d' ); + } catch ( Exception $e ) { + // if the datetime is invalid, then set the post->next_date to the start date instead + $post->next_date = $post->start_date; } + } else if ( 'biweekly' === $post->recurring ) { + try { + // advance the start date 2 weeks at a time until it's past now + $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ); + $next = $start; + // minus 30 minutes to account for currently ongoing meetings + $now = new DateTime( '-30 minutes' ); + + while ( $next < $now ) { + $next->modify( '+2 weeks' ); + } - $post->next_date = $next->format( 'Y-m-d' ); - } catch ( Exception $e ) { - // if the datetime is invalid, then set the post->next_date to the start date instead - $post->next_date = $post->start_date; - } - } else if ( 'occurrence' === $post->recurring ) { - try { - // advance the occurrence day in the current month until it's past now - $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ); - $next = $start; - // minus 30 minutes to account for currently ongoing meetings - $now = new DateTime( '-30 minutes' ); - - $day_index = date( 'w', strtotime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ) ); - $day_name = $GLOBALS['wp_locale']->get_weekday( $day_index ); - $numerals = array( 'first', 'second', 'third', 'fourth' ); - $months = array( 'this month', 'next month' ); - - foreach ( $months as $month ) { - foreach ( $post->occurrence as $index ) { - $next = new DateTime( sprintf( '%s %s of %s %s GMT', $numerals[ $index - 1 ], $day_name, $month, $post->time ) ); - if ( $next > $now ) { - break 2; + $post->next_date = $next->format( 'Y-m-d' ); + } catch ( Exception $e ) { + // if the datetime is invalid, then set the post->next_date to the start date instead + $post->next_date = $post->start_date; + } + } else if ( 'occurrence' === $post->recurring ) { + try { + // advance the occurrence day in the current month until it's past now + $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ); + $next = $start; + // minus 30 minutes to account for currently ongoing meetings + $now = new DateTime( '-30 minutes' ); + + $day_index = date( 'w', strtotime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ) ); + $day_name = $GLOBALS['wp_locale']->get_weekday( $day_index ); + $numerals = array( 'first', 'second', 'third', 'fourth' ); + $months = array( 'this month', 'next month' ); + + foreach ( $months as $month ) { + foreach ( $post->occurrence as $index ) { + $next = new DateTime( sprintf( '%s %s of %s %s GMT', $numerals[ $index - 1 ], $day_name, $month, $post->time ) ); + if ( $next > $now ) { + break 2; + } } } - } - $post->next_date = $next->format( 'Y-m-d' ); - } catch ( Exception $e ) { - // if the datetime is invalid, then set the post->next_date to the start date instead - $post->next_date = $post->start_date; - } - } else if ( 'monthly' === $post->recurring ) { - try { - // advance the start date 1 month at a time until it's past now - $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ); - $next = $start; - // minus 30 minutes to account for currently ongoing meetings - $now = new DateTime( '-30 minutes' ); - - while ( $next < $now ) { - $next->modify( '+1 month' ); + $post->next_date = $next->format( 'Y-m-d' ); + } catch ( Exception $e ) { + // if the datetime is invalid, then set the post->next_date to the start date instead + $post->next_date = $post->start_date; } + } else if ( 'monthly' === $post->recurring ) { + try { + // advance the start date 1 month at a time until it's past now + $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ); + $next = $start; + // minus 30 minutes to account for currently ongoing meetings + $now = new DateTime( '-30 minutes' ); + + while ( $next < $now ) { + $next->modify( '+1 month' ); + } - $post->next_date = $next->format( 'Y-m-d' ); - } catch ( Exception $e ) { - // if the datetime is invalid, then set the post->next_date to the start date instead + $post->next_date = $next->format( 'Y-m-d' ); + } catch ( Exception $e ) { + // if the datetime is invalid, then set the post->next_date to the start date instead + $post->next_date = $post->start_date; + } + } else { $post->next_date = $post->start_date; } - } else { - $post->next_date = $post->start_date; - } - }); + }); - // reorder the posts by next_date + time - usort( $posts, function ($a, $b) { - $adate = strtotime( $a->next_date . ' ' . $a->time ); - $bdate = strtotime( $b->next_date . ' ' . $b->time ); - if ( $adate == $bdate ) { - return 0; - } - return ( $adate < $bdate ) ? -1 : 1; - }); + // reorder the posts by next_date + time + usort( $posts, function ($a, $b) { + $adate = strtotime( $a->next_date . ' ' . $a->time ); + $bdate = strtotime( $b->next_date . ' ' . $b->time ); + if ( $adate == $bdate ) { + return 0; + } + return ( $adate < $bdate ) ? -1 : 1; + }); - return $posts; - } + return $posts; + } - public function register_meeting_post_type() { - $labels = array( + public function register_meeting_post_type() { + $labels = array( 'name' => _x( 'Meetings', 'Post Type General Name', 'wporg' ), 'singular_name' => _x( 'Meeting', 'Post Type Singular Name', 'wporg' ), 'menu_name' => __( 'Meetings', 'wporg' ), @@ -198,8 +198,8 @@ public function register_meeting_post_type() { 'search_items' => __( 'Search Meeting', 'wporg' ), 'not_found' => __( 'Not found', 'wporg' ), 'not_found_in_trash' => __( 'Not found in Trash', 'wporg' ), - ); - $args = array( + ); + $args = array( 'label' => __( 'meeting', 'wporg' ), 'description' => __( 'Meeting', 'wporg' ), 'labels' => $labels, @@ -222,39 +222,39 @@ public function register_meeting_post_type() { 'with_front' => false, 'slug' => __( 'meetings', 'wporg' ), ), - ); - register_post_type( 'meeting', $args ); - } + ); + register_post_type( 'meeting', $args ); + } - public function add_meta_boxes() { - add_meta_box( + public function add_meta_boxes() { + add_meta_box( 'meeting-info', 'Meeting Info', array( $this, 'render_meta_boxes' ), 'meeting', 'normal', 'high' - ); - } - - function render_meta_boxes( $post ) { - wp_enqueue_script( 'jquery-ui-datepicker' ); - wp_enqueue_style( 'jquery-ui-style', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css', true); - - $meta = get_post_custom( $post->ID ); - $team = isset( $meta['team'][0] ) ? $meta['team'][0] : ''; - $start = isset( $meta['start_date'][0] ) ? $meta['start_date'][0] : ''; - $end = isset( $meta['end_date'][0] ) ? $meta['end_date'][0] : ''; - $time = isset( $meta['time'][0] ) ? $meta['time'][0] : ''; - $recurring = isset( $meta['recurring'][0] ) ? $meta['recurring'][0] : ''; - if ( '1' === $recurring ) { - $recurring = 'weekly'; + ); } - $occurrence = isset( $meta['occurrence'][0] ) ? unserialize( $meta['occurrence'][0] ) : array(); - $link = isset( $meta['link'][0] ) ? $meta['link'][0] : ''; - $location = isset( $meta['location'][0] ) ? $meta['location'][0] : ''; - wp_nonce_field( 'save_meeting_meta_'.$post->ID , 'meeting_nonce' ); - ?> + + function render_meta_boxes( $post ) { + wp_enqueue_script( 'jquery-ui-datepicker' ); + wp_enqueue_style( 'jquery-ui-style', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css', true); + + $meta = get_post_custom( $post->ID ); + $team = isset( $meta['team'][0] ) ? $meta['team'][0] : ''; + $start = isset( $meta['start_date'][0] ) ? $meta['start_date'][0] : ''; + $end = isset( $meta['end_date'][0] ) ? $meta['end_date'][0] : ''; + $time = isset( $meta['time'][0] ) ? $meta['time'][0] : ''; + $recurring = isset( $meta['recurring'][0] ) ? $meta['recurring'][0] : ''; + if ( '1' === $recurring ) { + $recurring = 'weekly'; + } + $occurrence = isset( $meta['occurrence'][0] ) ? unserialize( $meta['occurrence'][0] ) : array(); + $link = isset( $meta['link'][0] ) ? $meta['link'][0] : ''; + $location = isset( $meta['location'][0] ) ? $meta['location'][0] : ''; + wp_nonce_field( 'save_meeting_meta_'.$post->ID , 'meeting_nonce' ); + ?>

    -
    +

    '; - $out .= esc_html( $attr['before'] ); - $out .= '' . esc_html( $post->post_title ) . ''; - $display_more = $query->found_posts - intval( $limit ); - if ( $display_more > 0 ) { - $out .= ' ' . sprintf( __( '(+%s more)'), $display_more ) . ''; - } - $out .= '
    '; - $out .= ' '; - $out .= sprintf( esc_html__( '(%s from now)' ), human_time_diff( $next_meeting_timestamp, current_time('timestamp') ) ); - if ( $post->location && $slack_channel ) { - $out .= ' ' . sprintf( wp_kses( __( 'accessible via %2$s on Slack', 'wporg-meeting-calendar' ), array( 'a' => array( 'href' => array() ) ) ), 'https://wordpress.slack.com/messages/' . $slack_channel, $post->location ); + $out .= '

    '; + $out .= esc_html( $attr['before'] ); + $out .= '' . esc_html( $post->post_title ) . ''; + $display_more = $query->found_posts - intval( $limit ); + if ( $display_more > 0 ) { + $out .= ' ' . sprintf( __( '(+%s more)'), $display_more ) . ''; + } + $out .= '
    '; + $out .= ' '; + $out .= sprintf( esc_html__( '(%s from now)' ), human_time_diff( $next_meeting_timestamp, current_time('timestamp') ) ); + if ( $post->location && $slack_channel ) { + $out .= ' ' . sprintf( wp_kses( __( 'accessible via %2$s on Slack', 'wporg-meeting-calendar' ), array( 'a' => array( 'href' => array() ) ) ), 'https://wordpress.slack.com/messages/' . $slack_channel, $post->location ); + } + $out .= '

    '; } - $out .= '

    '; - } - restore_current_blog(); + restore_current_blog(); - return $out; - } + return $out; + } - private $meeting_meta_query = array( + private $meeting_meta_query = array( 'relation'=>'OR', // not recurring AND start_date >= CURDATE() = one-time meeting today or still in future array( @@ -553,8 +553,8 @@ public function meeting_time_shortcode( $attr, $content = '' ) { ), ); - public function time_conversion_script() { - echo << var parse_date = function (text) { @@ -584,11 +584,11 @@ public function time_conversion_script() { } EOF; + } } -} -// fire it up -Meeting_Post_Type::init(); + // fire it up + Meeting_Post_Type::init(); endif; diff --git a/wordpress.org/public_html/wp-content/plugins/wporg-trac-watcher/admin/reports-page.php b/wordpress.org/public_html/wp-content/plugins/wporg-trac-watcher/admin/reports-page.php index acfab2968a..6616cb0f52 100644 --- a/wordpress.org/public_html/wp-content/plugins/wporg-trac-watcher/admin/reports-page.php +++ b/wordpress.org/public_html/wp-content/plugins/wporg-trac-watcher/admin/reports-page.php @@ -289,29 +289,29 @@ function display_reports_page( $details ) { echo ''; echo ''; - foreach ( $details as $p ) { - $link = add_query_arg( - [ - 'page' => str_replace( 'reports', 'edit', $_REQUEST['page'] ), - 's' => $p->prop_name, - ], - admin_url( 'admin.php' ) - ); + foreach ( $details as $p ) { + $link = add_query_arg( + [ + 'page' => str_replace( 'reports', 'edit', $_REQUEST['page'] ), + 's' => $p->prop_name, + ], + admin_url( 'admin.php' ) + ); - $profile = $p->prop_name; - if ( $p->user_id ) { - $u = get_user_by( 'ID', $p->user_id ); - $profile = "" . ( $u->display_name ?: $u->user_login ) . ""; - } - - printf( - '', - $profile, - $p->count, - esc_attr( $p->versions ), - $compress( $p->versions ) - ); + $profile = $p->prop_name; + if ( $p->user_id ) { + $u = get_user_by( 'ID', $p->user_id ); + $profile = "" . ( $u->display_name ?: $u->user_login ) . ""; } + + printf( + '', + $profile, + $p->count, + esc_attr( $p->versions ), + $compress( $p->versions ) + ); + } echo '
    PropCountVersions
    %s%s%s
    %s%s%s
    '; break; diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/archive-component.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/archive-component.php index 9c4e37dc46..65d3567462 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/archive-component.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/archive-component.php @@ -15,26 +15,26 @@

    '; - while ( have_posts() ) : the_post(); - do_action( 'component_table_row', get_post() ); +if ( $cached = get_transient( 'trac_components_page' ) ) { + echo $cached; +} else { + ob_start(); + $post = get_page_by_path( 'components' ); + setup_postdata( $post ); + + the_content(); + if ( have_posts() ) : + echo ''; + while ( have_posts() ) : the_post(); + do_action( 'component_table_row', get_post() ); endwhile; - echo '
    '; + echo ''; endif; - $cache = ob_get_clean(); - set_transient( 'trac_components_page', $cache, 300 ); - echo $cache; - } + $cache = ob_get_clean(); + set_transient( 'trac_components_page', $cache, 300 ); + echo $cache; +} ?> diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-login/admin/class-user-registrations-list-table.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-login/admin/class-user-registrations-list-table.php index ce09ac3fc0..08fa6c4488 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-login/admin/class-user-registrations-list-table.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-login/admin/class-user-registrations-list-table.php @@ -252,13 +252,13 @@ public function get_columns() { 'scores' => 'Anti-spam
    reCaptcha Akismet', 'user_registered' => 'Registered', ]; - } + } - public function get_sortable_columns() { + public function get_sortable_columns() { return [ - 'user_login' => array( 'user_login', true ), - 'scores' => array( 'scores', true ), - 'user_registered' => array( 'user_registered', true ), + 'user_login' => array( 'user_login', true ), + 'scores' => array( 'scores', true ), + 'user_registered' => array( 'user_registered', true ), ]; } diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-login/backup-codes.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-login/backup-codes.php index 34709e4343..ea1c538860 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-login/backup-codes.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-login/backup-codes.php @@ -38,36 +38,36 @@ ?>

     

    These codes are intended to be used when you lose access to your authentication device.
    Please take a moment to review your account settings and ensure your two-factor settings are up-to-date.", 'wporg' ); +if ( $used_backup_code ) { + _e( "You've logged in with a backup code.
    These codes are intended to be used when you lose access to your authentication device.
    Please take a moment to review your account settings and ensure your two-factor settings are up-to-date.", 'wporg' ); +} else { + if ( ! $codes_available ) { + _e( 'You do not have any backup codes remaining.', 'wporg' ); } else { - if ( ! $codes_available ) { - _e( 'You do not have any backup codes remaining.', 'wporg' ); - } else { - printf( - _n( - 'You have %s backup code remaining.', - 'You have %s backup codes remaining.', - $codes_available, - 'wporg' - ), - '' . number_format_i18n( $codes_available ) . '' - ); - } - - // Direct to the backup codes screen. - $account_settings_url = add_query_arg( 'screen', 'backup-codes', $account_settings_url ); + printf( + _n( + 'You have %s backup code remaining.', + 'You have %s backup codes remaining.', + $codes_available, + 'wporg' + ), + '' . number_format_i18n( $codes_available ) . '' + ); } + + // Direct to the backup codes screen. + $account_settings_url = add_query_arg( 'screen', 'backup-codes', $account_settings_url ); +} ?>

     

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-login/enable-2fa.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-login/enable-2fa.php index 8601e93733..414adb9e9c 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-login/enable-2fa.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-login/enable-2fa.php @@ -35,11 +35,11 @@

     

     

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php index 0af44d26a1..9c3f9fec14 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php @@ -428,7 +428,7 @@ function wporg_login_canonical_url( $canonical ) { if ( false === $matching_route ) { $canonical = home_url( WP_WPOrg_SSO::$matched_route_regex ?: '/' ); - // Else, if there's a long enough slug followed by a `/`, that's a parent page. + // Else, if there's a long enough slug followed by a `/`, that's a parent page. } elseif ( $matching_route >= 3 && '/' === substr( WP_WPOrg_SSO::$matched_route_regex, $matching_route + 1, 1 ) ) { $canonical = home_url( substr( WP_WPOrg_SSO::$matched_route_regex, 0, $matching_route ) ); diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-login/loggedout.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-login/loggedout.php index 463fde46a4..f4ad8d53f8 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-login/loggedout.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-login/loggedout.php @@ -15,19 +15,19 @@ $redirect_to = wp_sanitize_redirect( $redirect_to ); $redirect_to = wp_validate_redirect( $redirect_to ); - if ( $redirect_to ) { - $hostname = parse_url( $redirect_to, PHP_URL_HOST ); +if ( $redirect_to ) { + $hostname = parse_url( $redirect_to, PHP_URL_HOST ); - echo '

     

    '; - echo '

    '; - printf( - /* translators: 1: url, 2: Hostname, ie. wordcamp.org */ - __( 'Return to %2$s.', 'wporg' ), - esc_url( $redirect_to ), - esc_html( $hostname ) - ); - echo '

    '; - } + echo '

     

    '; + echo '

    '; + printf( + /* translators: 1: url, 2: Hostname, ie. wordcamp.org */ + __( 'Return to %2$s.', 'wporg' ), + esc_url( $redirect_to ), + esc_html( $hostname ) + ); + echo '

    '; +} ?> + ?>

    @@ -193,9 +193,9 @@ ?>

    ' . __( 'Please try again.', 'wporg' ) . '

    '; - } + if ( $error_recapcha_status ) { + echo '

    ' . __( 'Please try again.', 'wporg' ) . '

    '; + } ?>

    ' . __( 'Please try again.', 'wporg' ) . '

    '; - } + if ( $error_recapcha_status ) { + echo '

    ' . __( 'Please try again.', 'wporg' ) . '

    '; + } ?> + ?>

     

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/inc/page-meta-descriptions.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/inc/page-meta-descriptions.php index 17d8eaf6f8..57361742b4 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/inc/page-meta-descriptions.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/inc/page-meta-descriptions.php @@ -273,7 +273,7 @@ function sites_attributes_schema() { ] } - + ?>

    @@ -58,7 +58,7 @@ esc_url( home_url( '/themes/tags/accessibility-ready/' ) ), 'https://make.wordpress.org/themes/handbook/review/accessibility/required/' ); - ?> + ?>

    @@ -69,7 +69,7 @@ wp_kses_post( __( 'The WordPress Accessibility Team provides accessibility expertise across the project to improve the accessibility of WordPress core and resources.', 'wporg' ) ), 'https://make.wordpress.org/accessibility/' ); - ?> + ?>

    @@ -83,7 +83,7 @@ 'https://make.wordpress.org/accessibility/handbook/get-involved/audits-and-testing/', 'https://make.wordpress.org/accessibility/handbook/get-involved/' ); - ?> + ?>

    @@ -93,7 +93,7 @@ wp_kses_post( __( 'To report an Accessibility issue you’ve encountered in WordPress or on WordPress.org, please see the Accessibility Handbook page on Reporting Accessibility Issues.', 'wporg' ) ), 'https://make.wordpress.org/accessibility/handbook/reporting-issues/' ); - ?> + ?>

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy-cookies.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy-cookies.php index a3b220a6f6..6177da0487 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy-cookies.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy-cookies.php @@ -56,7 +56,7 @@ __( 'Our Privacy Policy explains our principles when it comes to the collection, processing, and storage of your information. The Cookie Policy specifically explains how we, our partners, and users of our services deploy cookies, as well as the options you have to control them.', 'wporg' ), home_url( '/about/privacy/' ) ) ); - ?>

    + ?>

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy.php index 824adce9e6..a5a8a3ccb6 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy.php @@ -148,7 +148,7 @@ __( 'Please see our cookie policy for more information about what cookies are collected on WordPress.org.', 'wporg' ), home_url( '/about/privacy/cookies/' ) ) ); - ?>

    + ?>

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-security.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-security.php index 05bac2d84e..085b0fdcdf 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-security.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-security.php @@ -49,7 +49,7 @@ wp_kses_post( __( 'Learn more about WordPress core software security in this free white paper. You can also download it in PDF format.', 'wporg' ) ), 'https://github.com/WordPress/Security-White-Paper/blob/master/WordPressSecurityWhitePaper.pdf?raw=true' ); - ?> + ?>

    @@ -67,7 +67,7 @@ esc_html__( 'WordPress is a dynamic open-source content management system which is used to power millions of websites, web applications, and blogs. It currently powers more than %s%% of the top 10 million websites on the Internet. WordPress’ usability, extensibility, and mature development community make it a popular and secure choice for websites of all sizes.', 'wporg' ), esc_html( WP_MARKET_SHARE ) ); - ?> + ?>

    @@ -85,7 +85,7 @@ '1', 62 ); - ?> + ?>

    @@ -113,7 +113,7 @@ esc_html__( 'A release cycle follows the following pattern%s:', 'wporg' ), '2' ); - ?> + ?>

    • @@ -134,7 +134,7 @@ esc_html__( 'A minor WordPress version is dictated by the third sequence. Version 3.5.1 is a minor release, as is 3.4.2%s. A minor release is reserved for fixing security vulnerabilities and addressing critical bugs only. Since new versions of WordPress are released so frequently — the aim is every 4-5 months for a major release, and minor releases happen as needed — there is only a need for major and minor releases.', 'wporg' ), '3' ); - ?> + ?>

      @@ -149,7 +149,7 @@ 50, '3' ); - ?> + ?>

      @@ -159,7 +159,7 @@ esc_html__( 'The WordPress Security Team often collaborates with other security teams to address issues in common dependencies, such as resolving the vulnerability in the PHP XML parser, used by the XML-RPC API that ships with WordPress, in WordPress 3.9.2%s. This vulnerability resolution was a result of a joint effort by both WordPress and Drupal security teams.', 'wporg' ), '4' ); - ?> + ?>

      @@ -170,7 +170,7 @@ 'https://hackerone.com/wordpress', '5' ); - ?> + ?>

      @@ -182,7 +182,7 @@ esc_html__( 'For an immediate security release, an advisory is published by the Security Team to the WordPress.org News site%s announcing the release and detailing the changes. Credit for the responsible disclosure of a vulnerability is given in the advisory to encourage and reinforce continued responsible reporting in the future.', 'wporg' ), '6' ); - ?> + ?>

      @@ -195,7 +195,7 @@ esc_html__( 'Starting with version 3.7, WordPress introduced automated background updates for all minor releases%s, such as 3.7.1 and 3.7.2. The WordPress Security Team can identify, fix, and push out automated security enhancements for WordPress without the site owner needing to do anything on their end, and the security update will install automatically.', 'wporg' ), '7' ); - ?> + ?>

      @@ -209,7 +209,7 @@ esc_html__( 'The Open Web Application Security Project (OWASP) is an online community dedicated to web application security. The OWASP Top 10 list%s focuses on identifying the most serious application security risks for a broad array of organizations. The Top 10 items are selected and prioritized in combination with consensus estimates of exploitability, detectability, and impact estimates.', 'wporg' ), '8' ); - ?> + ?>

      @@ -221,7 +221,7 @@ esc_html__( 'There is a set of functions and APIs available in WordPress to assist developers in making sure unauthorized code cannot be injected, and help them validate and sanitize data. Best practices and documentation are available%s on how to use these APIs to protect, validate, or sanitize input and output data in HTML, URLs, HTTP headers, and when interacting with the database and filesystem. Administrators can also further restrict the types of file which can be uploaded via filters.', 'wporg' ), '9' ); - ?> + ?>

      @@ -234,7 +234,7 @@ '10', 'wp_kses' ); - ?> + ?>

      @@ -244,7 +244,7 @@ esc_html__( 'As an example, the WordPress core team noticed before the release of WordPress 2.3 that the function %s was being misused by most theme authors, who were not escaping the function’s output for use in HTML. In a very rare case of slightly breaking backward compatibility, the function’s output was changed in WordPress 2.3 to be pre-escaped.', 'wporg' ), 'the_search_query()' ); - ?> + ?>

      @@ -256,7 +256,7 @@ esc_html__( 'The majority of the WordPress security configuration operations are limited to a single authorized administrator. Default settings for WordPress are continually evaluated at the core team level, and the WordPress core team provides documentation and best practices to tighten security for server configuration for running a WordPress site%s.', 'wporg' ), '11' ); - ?> + ?>

      @@ -266,7 +266,7 @@ esc_html__( 'WordPress user account passwords are salted and hashed based on the Portable PHP Password Hashing Framework%s. WordPress’ permission system is used to control access to private information such an registered users’ PII, commenters’ email addresses, privately published content, etc. In WordPress 3.7, a password strength meter was included in the core software providing additional information to users setting their passwords and hints on increasing strength. WordPress also has an optional configuration setting for requiring HTTPS.', 'wporg' ), '12' ); - ?> + ?>

      @@ -280,7 +280,7 @@ esc_html__( 'WordPress uses cryptographic tokens, called nonces%s, to validate intent of action requests from authorized users to protect against potential CSRF threats. WordPress provides an API for the generation of these tokens to create and verify unique and temporary tokens, and the token is limited to a specific user, a specific action, a specific object, and a specific time period, which can be added to forms and URLs as needed. Additionally, all nonces are invalidated upon logout.', 'wporg' ), '13' ); - ?> + ?>

      @@ -291,7 +291,7 @@ esc_html__( 'The WordPress core team closely monitors the few included libraries and frameworks WordPress integrates with for core functionality. In the past the core team has made contributions to several third-party components to make them more secure, such as the update to fix a cross-site vulnerability in TinyMCE in WordPress 3.5.2%s.', 'wporg' ), '14' ); - ?> + ?>

      @@ -301,7 +301,7 @@ esc_html__( 'If necessary, the core team may decide to fork or replace critical external components, such as when the SWFUpload library was officially replaced by the Plupload library in 3.5.2, and a secure fork of SWFUpload was made available by the security team<%s for those plugins who continued to use SWFUpload in the short-term.', 'wporg' ), '15' ); - ?> + ?>

      @@ -312,7 +312,7 @@ wp_kses_post( __( 'WordPress’ internal access control and authentication system will protect against attempts to direct users to unwanted destinations or automatic redirects. This functionality is also made available to plugin developers via an API, wp_safe_redirect()%s.', 'wporg' ) ), '16' ); - ?> + ?>

      @@ -328,7 +328,7 @@ esc_html__( 'WordPress requires a theme to be enabled to render content visible on the frontend. The default theme which ships with core WordPress (currently "%s") has been vigorously reviewed and tested for security reasons by both the team of theme developers plus the core development team.', 'wporg' ), esc_html( wp_get_theme( 'core/' . WP_CORE_DEFAULT_THEME )->display( 'Name' ) ) ); - ?> + ?>

      @@ -345,7 +345,7 @@ esc_html( number_format_i18n( 50000 ) ), esc_html( number_format_i18n( 5000 ) ) ); - ?> + ?>

      @@ -356,7 +356,7 @@ '17', '18' ); - ?> + ?>

      @@ -372,7 +372,7 @@ '20', '21' ); - ?> + ?>

      @@ -384,7 +384,7 @@ esc_html__( 'WordPress.com is the largest WordPress installation in the world, and is owned and managed by Automattic, Inc., which was founded by Matt Mullenweg, the WordPress project co-creator. WordPress.com runs on the core WordPress software, and has its own security processes, risks, and solutions%s. This document refers to security regarding the self-hosted, downloadable open source WordPress software available from WordPress.org and installable on any server in the world.', 'wporg' ), '22' ); - ?> + ?>

      @@ -395,7 +395,7 @@ esc_html__( 'The WordPress Core Application Programming Interface (API) is comprised of several individual APIs%s, each one covering the functions involved in, and use of, a given set of functionality. Together, these form the project interface which allows plugins and themes to interact with, alter, and extend WordPress core functionality safely and securely.', 'wporg' ), '23' ); - ?> + ?>

      @@ -409,7 +409,7 @@ esc_html__( 'The Database API%s, added in WordPress 0.71, provides the correct method for accessing data as named values which are stored in the database layer.', 'wporg' ), '24' ); - ?> + ?>

      @@ -422,7 +422,7 @@ '25', '26' ); - ?> + ?>

      WP_Filesystem_Base class, and several subclasses which implement different ways of connecting to the local filesystem, depending on individual host support. Any theme or plugin that needs to write files locally should do so using the WP_Filesystem family of classes.', 'wporg' ) ); ?>

      @@ -437,7 +437,7 @@ '27', '28' ); - ?> + ?>

      @@ -449,7 +449,7 @@ esc_html__( 'The permissions and current user API%s is a set of functions which will help verify the current user’s permissions and authority to perform any task or operation being requested, and can protect further against unauthorized users accessing or performing functions beyond their permitted capabilities.', 'wporg' ), '29' ); - ?> + ?>

      @@ -460,7 +460,7 @@ 'https://wordpressfoundation.org/trademark-policy/', 'https://creativecommons.org/publicdomain/zero/1.0/' ); - ?> + ?>

      @@ -470,7 +470,7 @@ wp_kses_post( __( 'A special thank you to Drupal’s security white paper, which provided some inspiration. ', 'wporg' ) ), 'https://www.drupal.org/files/drupal-security-whitepaper-1-3_0.pdf' ); - ?> + ?>

        @@ -481,7 +481,7 @@ esc_html__( 'WordPress News %s', 'wporg' ), 'https://wordpress.org/news/' ); - ?> + ?>
      • https://wordpress.org/news/category/security/' ); - ?> + ?>
      • https://developer.wordpress.org/' ); - ?> + ?>
      diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download.php index 305406cee4..512a2bbc51 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download.php @@ -174,7 +174,7 @@ " />

      diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-guides-adding-blog.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-guides-adding-blog.php index f97fa3487b..405d3f7160 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-guides-adding-blog.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-guides-adding-blog.php @@ -77,4 +77,4 @@ post_name, $lang_suggest_endpoint ); - } +if ( is_singular( 'plugin' ) ) { + $lang_suggest_endpoint = add_query_arg( 'plugin_slug', get_queried_object()->post_name, $lang_suggest_endpoint ); +} ?>
      diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/patterns/page-add.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/patterns/page-add.php index debce175da..e9417cda67 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/patterns/page-add.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/patterns/page-add.php @@ -82,7 +82,7 @@ __( 'It depends on what you want to change. If you want to change the plugin display name you can update that by updating your plugin files in this page. If what you want to change is the permalink / slug of your plugin, you can do that ONCE before we begin with the review (if that’s available you’ll see a link to change it on this page). If this is not possible, you will need to contact us at %s, we can change it as long as the plugin has not yet been approved.', 'wporg-plugins' ), 'plugins@wordpress.org' ); - ?>

      + ?>

      diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/template-parts/plugin-single.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/template-parts/plugin-single.php index cdf32fc5e7..7127321a3c 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/template-parts/plugin-single.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/template-parts/plugin-single.php @@ -147,13 +147,13 @@ diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/404.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/404.php index b7baf67074..f2e5d82fed 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/404.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/404.php @@ -25,35 +25,35 @@
      \n"; - echo $output; - } + echo $output; + } ?> ', ''); ?> diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/comments.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/comments.php index 7f1d0a11c3..e43629f8f8 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/comments.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/comments.php @@ -10,19 +10,19 @@

        - +
      1. > - +

        + ); ?>

      2. - +
      diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/feed-extras.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/feed-extras.php index 3803c29b95..150ed6b57a 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/feed-extras.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/feed-extras.php @@ -44,7 +44,7 @@ - + ]]> ]]> @@ -59,8 +59,8 @@ - - + + diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php index 72507a1652..a11d758a5b 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php @@ -177,7 +177,7 @@ function breadcrumb() { ?> -submission form.', 'wporg-showcase' ), 'https://wordpress.org/showcase/submit-a-wordpress-site/' - ); ?>

      + ); ?>

      @@ -42,16 +42,16 @@ while ( have_posts() ) : the_post(); breadcrumb(); -?> + ?>
      - +
      - + ?>

      @@ -104,14 +104,14 @@ $recaptcha_url = 'http://www.google.com/recaptcha/api/challenge?k=' . $recaptcha_pubkey; if ( !empty( $recaptcha_error ) ) $recaptcha_url .= '&error=' . $recaptcha_error; - ?> + ?> - diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/single.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/single.php index eba7390e12..1decceed44 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/single.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/single.php @@ -18,35 +18,35 @@ \n"; - echo $output; - } + echo $output; + } ?> ', ''); ?> diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-user.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-user.php index b6d971d5b3..d52feaf8cc 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-user.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-user.php @@ -28,9 +28,9 @@ diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-view.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-view.php index d69446e247..68a0df0100 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-view.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-view.php @@ -23,11 +23,11 @@ - + - + diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-reply.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-reply.php index 4592840cdc..f9d30910a4 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-reply.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-reply.php @@ -43,7 +43,7 @@ esc_html__( 'The forum ‘%s’ is closed to new topics and replies, however your posting capabilities still allow you to post.', 'wporg-forums' ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); - ?>

      + ?>

      @@ -212,19 +212,19 @@

      logged in to reply to this review.', 'wporg-forums' ), wp_login_url() ); - } + if ( wporg_support_is_single_review() ) { + if ( is_user_logged_in() ) { + esc_html_e( 'You cannot reply to this review.', 'wporg-forums' ); } else { - if ( is_user_logged_in() ) { - esc_html_e( 'You cannot reply to this topic.', 'wporg-forums' ); - } else { - printf( __( 'You must be logged in to reply to this topic.', 'wporg-forums' ), wp_login_url() ); - } + printf( __( 'You must be logged in to reply to this review.', 'wporg-forums' ), wp_login_url() ); } + } else { + if ( is_user_logged_in() ) { + esc_html_e( 'You cannot reply to this topic.', 'wporg-forums' ); + } else { + printf( __( 'You must be logged in to reply to this topic.', 'wporg-forums' ), wp_login_url() ); + } + } ?>

      + ?>

      diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-topic.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-topic.php index 64b7a5d9cb..eab8c02c81 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-topic.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-topic.php @@ -79,13 +79,13 @@ printf( __( 'Read the Welcome Guide to maximize your odds of getting help.', 'wporg-forums' ), esc_url( __( 'https://wordpress.org/support/welcome/', 'wporg-forums' ) ) ); - ?> + ?>
    • Search the forums for similar inquiries.', 'wporg-forums' ), esc_url( bbp_get_search_url() ) ); - ?>
    • + ?>
    • Update your plugins, themes, and WordPress site to the latest versions.', 'wporg-forums' ); ?>
    • Describe the steps needed to reproduce an issue.', 'wporg-forums' ); ?>
    • Provide relevant information, such as your browser, operating system, or server environment.', 'wporg-forums' ); ?>
    • @@ -96,14 +96,14 @@ esc_url( __( 'https://wordpress.org/themes/', 'wporg-forums' ) ), esc_url( __( 'https://wordpress.org/plugins/', 'wporg-forums' ) ) ); - ?> + ?>
    • Reporting a security issue? Please follow the guidelines on reporting vulnerabilities responsibly.', 'wporg-forums' ), esc_url( __( 'https://make.wordpress.org/core/handbook/testing/reporting-security-vulnerabilities/', 'wporg-forums' ) ) ); - ?>
    • + ?>
    @@ -138,11 +138,11 @@


    @@ -272,7 +272,7 @@ 'https://make.wordpress.org/support/2025/03/about-the-spectator-role-in-the-wordpress-support-forums/', WordPressdotorg\Forums\MODERATION_EMAIL ); - ?>

    + ?>

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-user-roles.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-user-roles.php index fb0dba3cef..da2d3c87eb 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-user-roles.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-user-roles.php @@ -8,7 +8,7 @@ * that causes us to need to filter capabilities and the resulting UI. */ if ( bbp_is_user_keymaster( get_current_user_id() ) ) { -?>
    + ?>
    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/loop-posts.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/loop-posts.php index 75c343c92c..c3384213aa 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/loop-posts.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/loop-posts.php @@ -18,7 +18,7 @@ - + reply_query = bbpress()->topic_query; ?> diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/user-details.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/user-details.php index ee89fa228d..c8e92ad59d 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/user-details.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/user-details.php @@ -131,7 +131,7 @@ "> + ?>"> diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/user-profile.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/user-profile.php index c827a4919a..b5873e5b57 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/user-profile.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/user-profile.php @@ -15,41 +15,41 @@
    diff --git a/wordpress.tv/public_html/wp-content/themes/wptv2/archive.php b/wordpress.tv/public_html/wp-content/themes/wptv2/archive.php index 7299230a88..195a04392f 100644 --- a/wordpress.tv/public_html/wp-content/themes/wptv2/archive.php +++ b/wordpress.tv/public_html/wp-content/themes/wptv2/archive.php @@ -14,8 +14,8 @@ ?>

    + ?>

    @@ -63,17 +63,17 @@ the_terms( 'event', '', ', ', '', false ); $speakers = get_the_terms( $post->ID, 'speakers' ); - if ( $speakers ) { - $label = _n( 'Speaker:', 'Speakers:', count( $speakers ), 'wptv' ); - $wptv->the_terms( 'speakers', '' . $label . ' ', ', ', '', false ); - } + if ( $speakers ) { + $label = _n( 'Speaker:', 'Speakers:', count( $speakers ), 'wptv' ); + $wptv->the_terms( 'speakers', '' . $label . ' ', ', ', '', false ); + } ?> diff --git a/wordpress.tv/public_html/wp-content/themes/wptv2/category-wordcamptv.php b/wordpress.tv/public_html/wp-content/themes/wptv2/category-wordcamptv.php index c2d63f51ea..8823e14422 100644 --- a/wordpress.tv/public_html/wp-content/themes/wptv2/category-wordcamptv.php +++ b/wordpress.tv/public_html/wp-content/themes/wptv2/category-wordcamptv.php @@ -66,7 +66,7 @@ 'depth' => 1, 'walker' => new WordCampTV_Walker_Nav_Menu, ) ); - ?> + ?>
    diff --git a/wordpress.tv/public_html/wp-content/themes/wptv2/comments.php b/wordpress.tv/public_html/wp-content/themes/wptv2/comments.php index 840fbb5a8d..089b5bf02f 100644 --- a/wordpress.tv/public_html/wp-content/themes/wptv2/comments.php +++ b/wordpress.tv/public_html/wp-content/themes/wptv2/comments.php @@ -17,40 +17,40 @@ global $wptv; if ( have_comments() ) : -?> + ?>

    ' . get_the_title() . '' ); - } else { - printf( - /* translators: 1: number of comments, 2: post title */ - _nx( - '%1$s response on “%2$s”', - '%1$s responses on “%2$s”', - $comments_number, - 'comments title', - 'wptv' - ), - number_format_i18n( $comments_number ), - '' . get_the_title() . '' - ); - } + if ( 1 == $comments_number ) { + /* translators: %s: post title */ + printf( _x( 'One response on “%s”', 'comments title', 'wptv' ), '' . get_the_title() . '' ); + } else { + printf( + /* translators: 1: number of comments, 2: post title */ + _nx( + '%1$s response on “%2$s”', + '%1$s responses on “%2$s”', + $comments_number, + 'comments title', + 'wptv' + ), + number_format_i18n( $comments_number ), + '' . get_the_title() . '' + ); + } ?>

      array( $wptv, 'list_comments' ) ) ); ?>
    - + ?>

    -have_posts() ) : $featured->the_post(); - ?> + ?>
  • @@ -59,13 +59,13 @@ - the_event( '', '' ); ?> + the_event( '', '' ); ?>
  • - have_posts unset( $featured ); - ?> + ?>
    @@ -77,8 +77,8 @@ + if ( have_posts() ) : + ?>

      @@ -92,7 +92,7 @@
    - have_posts // Popular Videos @@ -107,11 +107,11 @@ ) ); if ( $popular->have_posts() ) : - ?> + ?>

    - have_posts unset( $popular ); - ?> + ?>
    diff --git a/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php b/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php index b35bf21bf8..c2784a07bb 100644 --- a/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php +++ b/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php @@ -74,7 +74,7 @@ function rel_canonical() { if ( is_front_page() ) { $canonical = home_url('/'); - // Speakers, Events, Producers, Tags, Years/WordCamp.TV, + // Speakers, Events, Producers, Tags, Years/WordCamp.TV, } elseif ( is_tax() || is_tag() || is_category() ) { $canonical = get_term_link( get_queried_object() ); if ( is_wp_error( $canonical ) ) { @@ -499,7 +499,7 @@ function list_comments( $comment, $args, $depth ) {
    - + ?>

    @@ -37,7 +37,7 @@ post_excerpt ) : ?>
    - the_terms( 'event', '
    Event

    ', '
    ', '

    ' ); @@ -83,7 +83,7 @@
    -term_id . '" class="button-secondary anon-approve anon-cat-link" title="Click to approve">Approve
    '; - } + if ( $cat ) { + echo 'Approve'; + } ?>

    @@ -518,11 +518,11 @@ function display() { Unknown?, '; - } + foreach ( $cats as $cat ) { + if ( intval( $cat ) ) { + echo 'Unknown?, '; } + } ?>

    @@ -624,7 +624,7 @@ function display() { }); })(jQuery); - for this video and language. If you approve the current file, the other will be automatically unapproved.

    - @@ -413,7 +413,7 @@ function in_post_edit_form( $attachment_post ) { Approved

    -
    - the_terms( 'event', '
    Event

    ', '
    ', '

    ' ); @@ -22,88 +22,88 @@ $wptv->the_terms( 'post_tag', '
    Tags

    ', '
    ', '

    ' ); $wptv->the_terms( 'language', '
    Language

    ', '
    ', '

    ' ); - if ( function_exists( 'find_all_videopress_shortcodes' ) ) { - $videos = array_keys( find_all_videopress_shortcodes( $originalcontent ) ); - if ( ! empty( $videos ) ) { - $video = video_get_info_by_guid( $videos[0] ); - $api_data = video_get_single_response( $video ); - $formats = array( 'fmt_std' => 'Low', 'fmt_dvd' => 'Med', 'fmt_hd' => 'High', 'fmt1_ogg' => 'Low' ); - $mp4_links = array(); - $ogg_link = false; - - foreach ( $formats as $format => $name ) { - if ( 'fmt1_ogg' == $format ) { - $link = video_highest_resolution_ogg( $video ); - } else { - - // Check if HLS transcoded, no audio, no need to link to it. - if ( ! empty( $api_data['files'][ str_replace( 'fmt_', '', $format ) ]['hls'] ) ) { - continue; - } - - $link = video_url_by_format( $video, $format ); - } - - if ( empty( $link ) ) { + if ( function_exists( 'find_all_videopress_shortcodes' ) ) { + $videos = array_keys( find_all_videopress_shortcodes( $originalcontent ) ); + if ( ! empty( $videos ) ) { + $video = video_get_info_by_guid( $videos[0] ); + $api_data = video_get_single_response( $video ); + $formats = array( 'fmt_std' => 'Low', 'fmt_dvd' => 'Med', 'fmt_hd' => 'High', 'fmt1_ogg' => 'Low' ); + $mp4_links = array(); + $ogg_link = false; + + foreach ( $formats as $format => $name ) { + if ( 'fmt1_ogg' == $format ) { + $link = video_highest_resolution_ogg( $video ); + } else { + + // Check if HLS transcoded, no audio, no need to link to it. + if ( ! empty( $api_data['files'][ str_replace( 'fmt_', '', $format ) ]['hls'] ) ) { continue; } - if ( 'fmt1_ogg' == $format ) { - $ogg_link = "$name"; - } else { - $mp4_links[] = "$name"; - } + $link = video_url_by_format( $video, $format ); } - $attachment_url = $wptv->get_video_attachment_url(); - if ( $attachment_url ) { - $mp4_links[] = "Original"; - } elseif ( ! empty( $api_data['original'] ) ) { - $mp4_links[] = "Original"; + if ( empty( $link ) ) { + continue; } - if ( ! empty( $mp4_links ) || ! empty( $ogg_link ) ) { -?> -
    Download
    -
    -'; - } - if ( ! empty( $ogg_link ) ) { - echo "OGG: $ogg_link"; - } -?> -
    -$name"; + } else { + $mp4_links[] = "$name"; } + } - echo '
    Subtitles
    '; - $ttml_links = array(); - $languages = VideoPress_Subtitles::get_languages(); - $subtitles = (array) get_post_meta( $video->post_id, '_videopress_subtitles', true ); + $attachment_url = $wptv->get_video_attachment_url(); + if ( $attachment_url ) { + $mp4_links[] = "Original"; + } elseif ( ! empty( $api_data['original'] ) ) { + $mp4_links[] = "Original"; + } - foreach ( $subtitles as $track ) { - if ( empty( $track['subtitles_post_id'] ) ) { - continue; - } + if ( ! empty( $mp4_links ) || ! empty( $ogg_link ) ) { + ?> +
    Download
    +
    + '; + } + if ( ! empty( $ogg_link ) ) { + echo "OGG: $ogg_link"; + } + ?> +
    + $video->guid, - 'language' => $track['language'], - 'subtitles_post_id' => $track['subtitles_post_id'], - ) ); + echo '
    Subtitles
    '; + $ttml_links = array(); + $languages = VideoPress_Subtitles::get_languages(); + $subtitles = (array) get_post_meta( $video->post_id, '_videopress_subtitles', true ); - $ttml_links[] = ''. $languages[ $track['language'] ]['localized_label'] .''; + foreach ( $subtitles as $track ) { + if ( empty( $track['subtitles_post_id'] ) ) { + continue; } - if ( ! empty( $ttml_links ) ) { - echo 'TTML: ' . join( ', ', $ttml_links ) . '
    '; - } + $tracks[ $track['language'] ] = new VideoPress_Subtitles_Track( array( + 'guid' => $video->guid, + 'language' => $track['language'], + 'subtitles_post_id' => $track['subtitles_post_id'], + ) ); - printf( 'Subtitle this video →', esc_url( add_query_arg( 'video', $video->post_id, home_url( 'subtitle/' ) ) ) ); + $ttml_links[] = ''. $languages[ $track['language'] ]['localized_label'] .''; } + + if ( ! empty( $ttml_links ) ) { + echo 'TTML: ' . join( ', ', $ttml_links ) . '
    '; + } + + printf( 'Subtitle this video →', esc_url( add_query_arg( 'video', $video->post_id, home_url( 'subtitle/' ) ) ) ); } + } /* * Credit video producer with link to their WordPress.org profile @@ -145,5 +145,5 @@ 'content' => '

    Creative Commons License
    This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.', ] ); - ?> + ?> diff --git a/wordpress.tv/public_html/wp-content/themes/wptv2/sidebar.php b/wordpress.tv/public_html/wp-content/themes/wptv2/sidebar.php index a6ff2b593d..498218cce7 100644 --- a/wordpress.tv/public_html/wp-content/themes/wptv2/sidebar.php +++ b/wordpress.tv/public_html/wp-content/themes/wptv2/sidebar.php @@ -18,6 +18,6 @@ 'after_widget' => '', ] ); - ?> + ?> diff --git a/wordpress.tv/public_html/wp-content/themes/wptv2/taxonomy-event.php b/wordpress.tv/public_html/wp-content/themes/wptv2/taxonomy-event.php index 9332e074f1..21d7bd2b29 100644 --- a/wordpress.tv/public_html/wp-content/themes/wptv2/taxonomy-event.php +++ b/wordpress.tv/public_html/wp-content/themes/wptv2/taxonomy-event.php @@ -36,18 +36,18 @@
      + the_post(); + ?>
    • - the_video_image( 50, null, false ); ?> + the_video_image( 50, null, false ); ?> diff --git a/wordpress.tv/public_html/wp-content/themes/wptv2/upload-subtitles-template.php b/wordpress.tv/public_html/wp-content/themes/wptv2/upload-subtitles-template.php index ec221a5cee..6df2f634e5 100644 --- a/wordpress.tv/public_html/wp-content/themes/wptv2/upload-subtitles-template.php +++ b/wordpress.tv/public_html/wp-content/themes/wptv2/upload-subtitles-template.php @@ -157,7 +157,7 @@ function subtitles_upload_css() { // Password-protect this form. if ( post_password_required() ) : get_header(); -?> + ?>

      @@ -172,7 +172,7 @@ function subtitles_upload_css() {
    - + ?>
    >
    post_author, 110 ); ?>
    @@ -65,7 +65,7 @@
    - diff --git a/wp15.wordpress.net/public_html/content/mu-plugins/locales.php b/wp15.wordpress.net/public_html/content/mu-plugins/locales.php index 141feb0408..35cd4b11e3 100644 --- a/wp15.wordpress.net/public_html/content/mu-plugins/locales.php +++ b/wp15.wordpress.net/public_html/content/mu-plugins/locales.php @@ -229,7 +229,7 @@ function locale_notice() { if ( isset( $mapped_locales[ $current_locale ] ) ) { $contribute_url .= $mapped_locales[ $current_locale ] . '/default'; } - ?> + ?>