Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull Updates into Local Branch #2

Merged
merged 184 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
184 commits
Select commit Hold shift + click to select a range
416d1a8
Build/Test Tools: Implicitly pass secrets to the called workflow.
desrosj Aug 24, 2023
c63e32f
Build/Tests: Tests_Formatting_MakeClickable should use data providors
aaronjorbin Aug 24, 2023
81423c3
Options, Meta APIs: Introduce `prime_options()` to load multiple opti…
Aug 24, 2023
2cdaf29
Plugins: Correctly display spaces in new plugins search results.
swissspidy Aug 24, 2023
40df0ec
Bundled Theme: Twenty Nineteen: Improve social media icon dimension a…
peterwilsoncc Aug 24, 2023
c10caf9
Rewrite Rules: Prevent stampedes when flush_rewrite_rules() is called
joemcgill Aug 24, 2023
b21d72b
Menus: Fix proximity of controls to Save and Delete menus.
joedolson Aug 24, 2023
1db3113
Menus: Revert unintentional changes in [56449].
Aug 24, 2023
179ac0c
Bundled Themes: Ensure that pull quotes are able to use the correct font
whyisjake Aug 24, 2023
f435b0d
Media: Add a filter to the `get_available_post_mime_types()` function…
johnbillion Aug 24, 2023
0d04972
Build/Test: Revert unintentional .env change in [56449].
joedolson Aug 24, 2023
1fc1e9c
Login and Registration: Improve test coverage for sign on related fun…
aaronjorbin Aug 24, 2023
0c82e15
Performance: Add fallback for `$script_uri` to prevent firing `plugin…
antpb Aug 24, 2023
b1f5563
Administration: Escape post type output as field attribute.
peterwilsoncc Aug 24, 2023
095617e
Editor: Optimize `wp_get_block_css_selector` to remove `array_merge` …
dream-encode Aug 24, 2023
1f66a06
General: Use regular core button styles for page header actions.
TimothyBJacobs Aug 24, 2023
e82474c
REST API: Remove misleading comment in WP_REST_Blocks_Controller->get…
kadamwhite Aug 24, 2023
dfda67a
Help/About: Match icon and text in Help for bulk edit button.
joedolson Aug 24, 2023
f085426
Build Tools: Avoid doing `copy:dynamic` when running `grunt watch` wh…
westonruter Aug 24, 2023
a84270a
Customizer: use the correct `X-Robots-Tag` header.
adamsilverstein Aug 24, 2023
218fbd9
Block Editor: Update SVN props to ignore new asset files.
peterwilsoncc Aug 24, 2023
a8a0bf0
Build/Test Tools: Ensure database containers are prepared for commands.
desrosj Aug 24, 2023
a5e6100
Coding Standards: Use strict comparison in `wp-includes/class-wp-widg…
SergeyBiryukov Aug 25, 2023
4ef1036
Introduce a `_deprecated_class()` function.
DrewAPicture Aug 25, 2023
515634f
Fix coding standards for translatable `_deprecated_class()` message s…
DrewAPicture Aug 25, 2023
8fd9604
Properly deprecate both constructors in `WP_User_Search`.
DrewAPicture Aug 25, 2023
2f76410
Fix coding standards for `Tests_Admin_wpUserSearch`
DrewAPicture Aug 25, 2023
73f7ecc
Docs: Docblock improvements in `_deprecated_class()` function, as per…
audrasjb Aug 25, 2023
e0e36e6
Docs: Improve PHPCS comments general consistency.
audrasjb Aug 25, 2023
7f38f68
Upgrade/Install: Add missing escaping function for `get_option( 'home…
audrasjb Aug 25, 2023
7ed2467
Docs: Fix typo in a translator comment in `_deprecated_class()`.
SergeyBiryukov Aug 26, 2023
f711404
Database: Remove support for the `mysql` extension.
johnbillion Aug 26, 2023
49f61a7
Database: Improve the documentation for various methods in the `wpdb`…
johnbillion Aug 26, 2023
29c2f01
Users: Remove unused `wpdb` global in `check_password_reset_key()`.
SergeyBiryukov Aug 27, 2023
28cb706
Users: Call `add_user_meta()` instead of `update_user_meta()` when ad…
johnbillion Aug 27, 2023
13becfa
Editor: Replace some accidental double setting up of tests with prope…
johnbillion Aug 27, 2023
7cf0516
XML-RPC: Remove unused `wpdb` global in `wp_xmlrpc_server::mw_newMedi…
SergeyBiryukov Aug 28, 2023
03290de
External Libraries: Update jQuery to version 3.7.1.
aaronjorbin Aug 28, 2023
7c254c5
Privacy: Improve docblocks for hooks and functions related to persona…
johnbillion Aug 28, 2023
61cd1a5
External Libraries: Upgrade PHPMailer to version 6.8.1.
SergeyBiryukov Aug 29, 2023
ec94944
Media: Prevent warning if `[caption]` shortcode is used without attri…
swissspidy Aug 29, 2023
ab5fd4d
Site Health: fix check name used for REST API permission checks.
swissspidy Aug 29, 2023
3d2f4d5
Posts, Post Types: Reinstate missing sort_column options in get_pages().
joemcgill Aug 29, 2023
e278fe3
Posts, Post Types: Avoid redundant SQL query in get_pages().
joemcgill Aug 29, 2023
c6088bb
Tests: Correct uses of `ReflectionProperty::setValue()` for static pr…
SergeyBiryukov Aug 30, 2023
973b456
HTML API: Stop processing HTML when encountering unsupported markup.
ockham Aug 30, 2023
bc92bb0
General: Replace two `esc_url_raw()` calls in core with `sanitize_url…
costdev Aug 30, 2023
98284ae
HTTP API: Update `WP_Http` class to avoid PHP deprecation warnings.
audrasjb Aug 30, 2023
39db9a6
Editor: Add relative time strings for the `wp-date` inline script out…
audrasjb Aug 30, 2023
a023fbc
Upload: Add a MIME type exception for `.docx` generated by Google Docs.
audrasjb Aug 30, 2023
9879434
Build/Test Tools: Enable running the tests on PHP 8.3.
SergeyBiryukov Aug 31, 2023
54a1779
Coding Standards: Remove unused global variables in various `/wp-admi…
audrasjb Aug 31, 2023
c29b095
Introduce font-face styles generator and printer.
hellofromtonya Aug 31, 2023
13531cc
Tests: Remove webfonts tests.
hellofromtonya Aug 31, 2023
3c98d25
Editor: Preserve block style variations when securing theme.
tellthemachines Sep 1, 2023
0b40c80
Editor: Don't use fluid layout value in typography.
tellthemachines Sep 1, 2023
9f3b57d
Media: Remove unused `$is_IE` and `$is_opera` globals in `media_uploa…
SergeyBiryukov Sep 1, 2023
36fe58a
Upgrade/Install: Remove unused globals in `core_upgrade_preamble()`.
SergeyBiryukov Sep 1, 2023
b447190
Build/Test Tools: Compare results in performance measurement workflow.
swissspidy Sep 1, 2023
5269bf6
Editor: Ensure main query loop is entered for singular content in blo…
felixarntz Sep 1, 2023
a22fee0
Options, Meta APIs: Introduce `wp_set_option_autoload_values()`.
felixarntz Sep 1, 2023
9a87bc5
Site Health: Show correct debug value for file uploads.
SergeyBiryukov Sep 2, 2023
d0deb5b
Upload: Correct duplicate MIME type for `.xlsx` files generated by Go…
SergeyBiryukov Sep 3, 2023
fa9f839
Coding Standards: Use strict comparison in `wp-includes/class-wp-hook…
SergeyBiryukov Sep 4, 2023
6be588c
Widgets: Improve performance of has_content method in WP_Widget_Media…
spacedmonkey Sep 4, 2023
92994bd
Query: Use split queries in WP_Query if persistent object caching is …
spacedmonkey Sep 5, 2023
5f1a92c
Code Modernization: Rename parameters that use reserved keywords in `…
SergeyBiryukov Sep 5, 2023
305de43
Administration: Add improved context for `add new` links.
joedolson Sep 5, 2023
3384a80
Administration: Use admin notice functions in nav menu admin.
joedolson Sep 5, 2023
6aa3721
Docs: Add a `@since` note for `add_new` labels change in `get_post_ty…
SergeyBiryukov Sep 6, 2023
77a7772
Editor: update packages with bug fixes for 6.3.2
tellthemachines Sep 6, 2023
a8b3461
Coding Standards: Correct equals sign alignment in various files.
SergeyBiryukov Sep 6, 2023
e619082
Database: Add expiration for `dirsize_cache` to transient to improve …
spacedmonkey Sep 6, 2023
bd594f7
Themes: Remove unnecessary check if file exists in the theme functions.
spacedmonkey Sep 6, 2023
8d65dc9
Themes: Avoid stale caches for core block styles.
joemcgill Sep 6, 2023
a138c19
Upgrade/Install: Check plugin compatibility during bulk upgrades.
costdev Sep 6, 2023
d67d8d6
Bundled Theme: Update default themes to use new script function signa…
felixarntz Sep 6, 2023
476db82
Editor: Fix loading of assets in blocks in child themes where the dir…
azaozz Sep 6, 2023
e14213e
Editor: Prevent possibility of a fatal error when previewing block th…
azaozz Sep 6, 2023
6ea6972
General: Introduce wp_trigger_error().
hellofromtonya Sep 6, 2023
f66fe0e
Bundled Themes: Use Node.js 16.x in themes with a build process.
desrosj Sep 6, 2023
d480448
Bundled Themes: Set `legacy-peer-deps` to `true`.
desrosj Sep 7, 2023
503addd
Bundled Themes: Update npm dependencies for Twenty Nineteen and Twent…
desrosj Sep 7, 2023
9f5dd61
Editor: allow disabling layout controls.
tellthemachines Sep 7, 2023
3626241
Editor: add configurable viewport sizes for fluid typography.
tellthemachines Sep 7, 2023
46f6492
Coding Standards: Remove superfluous blank lines at the end of variou…
SergeyBiryukov Sep 7, 2023
3452000
Build/Test Tools: Update 3rd-party GitHub Actions.
desrosj Sep 7, 2023
1cfefb9
Build/Test Tools: Update a few more 3rd-party GitHub Action occurrences.
desrosj Sep 7, 2023
9b6d04a
Fonts: Removes static instance in wp_print_font_faces().
hellofromtonya Sep 7, 2023
ef54f4e
Plugins: Respect `prefers-reduced-motion` on plugin thumbnails.
joedolson Sep 7, 2023
dc76011
Code Modernization: Use wp_trigger_error() in WP_List_Table magic met…
hellofromtonya Sep 7, 2023
a5eddea
Code Modernization: Use wp_trigger_error() in WP_User_Query magic met…
hellofromtonya Sep 7, 2023
9de4142
Code Modernization: Use wp_trigger_error() in WP_Text_Diff_Renderer_T…
hellofromtonya Sep 7, 2023
b693aeb
Editor: performance enhancements to `class-wp-theme-json`.
tellthemachines Sep 8, 2023
3f9bc4e
Editor: tweak root padding styles.
tellthemachines Sep 8, 2023
d790be1
Coding Standards: Remove superfluous blank lines at the end of variou…
SergeyBiryukov Sep 8, 2023
1118e37
Coding Standards: Remove superfluous blank lines at the end of variou…
SergeyBiryukov Sep 8, 2023
54e1b4b
Coding Standards: Use pre-increment/decrement for stand-alone stateme…
Sep 9, 2023
2a13d93
Upgrade/Install: Fix broken `sprintf()` call when deleting a backup.
costdev Sep 10, 2023
858bd4b
Coding Standards: Correct spacing for spread operators.
SergeyBiryukov Sep 10, 2023
aeba9d1
Code Modernization: Use `dirname()` with the `$levels` parameter.
SergeyBiryukov Sep 11, 2023
2453a6b
Cron: Cast `doing_cron` transient to a float.
peterwilsoncc Sep 11, 2023
46c1f6f
External Libraries: Update the Requests library to version 2.0.8.
costdev Sep 11, 2023
827a560
Taxonomy: Cache term objects in WP_Term_Query if query is filtered.
spacedmonkey Sep 11, 2023
cc775b9
Bundled Themes: Use `defer` loading strategy for theme scripts.
westonruter Sep 12, 2023
44e71c8
General: Add optional callback argument to serialize_block(s).
ockham Sep 12, 2023
9c9329c
HTML API: Store current token reference in HTML Processor state.
ockham Sep 12, 2023
fd6c560
Coding Standards: Include one space after `function` keyword for clos…
SergeyBiryukov Sep 12, 2023
15f5a95
Posts, Post Types: Avoid unnecessarily parsing blocks twice in `wp_tr…
felixarntz Sep 12, 2023
36f8240
Docs: Fix typo in a comment in `wp_trim_excerpt()`.
SergeyBiryukov Sep 13, 2023
8e4ff2a
Themes: Add test for `theme` atttibute in file-based block template.
ockham Sep 13, 2023
7dbf409
HTML API: Skip over contents of RAWTEXT elements such as STYLE.
ockham Sep 13, 2023
11e91d5
HTML API: Update documentation and rename internal variable on HTML P…
ockham Sep 13, 2023
640a533
REST API: Avoid unnecessarily preparing item links REST API index.
spacedmonkey Sep 13, 2023
6f74f61
Twenty-Twenty One: Fixes quotation mark being outside with background.
karmatosed Sep 13, 2023
1c2653d
General: Update `wp_register_script()` calls in core to use new funct…
felixarntz Sep 13, 2023
96a7954
Bundled Themes: Ensure Twenty Twenty's main script loads in `head` fo…
westonruter Sep 13, 2023
3cefc7c
Administration: Use `wp_admin_notice()` in `/wp-admin/`.
joedolson Sep 14, 2023
fa21528
Administration: Use `wp_admin_notice()` in `/wp-admin/includes`.
joedolson Sep 14, 2023
795534f
Administration: Use `wp_admin_notice()` in `/wp-includes/`.
joedolson Sep 14, 2023
f43aaaf
Administration: Use `wp_admin_notice()` for `.updated`.
joedolson Sep 14, 2023
1a168a1
Editor: disable default style engine optimisation.
tellthemachines Sep 14, 2023
ec47a8f
REST API: quality tweaks to WP_REST_Global_Styles_Controller.
tellthemachines Sep 14, 2023
4bdca50
Administration: Fix erroneous call to `wp_admin()`.
costdev Sep 14, 2023
11c53d5
Post Types: allow trashing draft patterns.
tellthemachines Sep 14, 2023
bbb85de
Themes: Inject `theme` attribute during serialization.
ockham Sep 14, 2023
18fbb97
Themes: Fix @covers PHPDoc line for test.
ockham Sep 14, 2023
7305399
Twenty Nineteen: Fixes button line height.
karmatosed Sep 14, 2023
943e2b9
Twenty Ninteen: Revert changes to 'style-rtl.css'.
karmatosed Sep 14, 2023
a5bcf19
Bundled Theme: Implement the_header_image_tag function for enhanced c…
spacedmonkey Sep 14, 2023
950e762
Tests: Split tests for _inject_theme_attribute_in_template_part_block
gziolo Sep 14, 2023
4ba29eb
Taxonomy: Introduce 'cache_results' parameter to WP_Term_Query for by…
spacedmonkey Sep 14, 2023
e005108
Coding Standards: Restore more descriptive variable names in a few cl…
SergeyBiryukov Sep 14, 2023
7b90f22
General: Add `block_hooks` field to block type registration, REST API.
ockham Sep 14, 2023
da28362
Tests: Improve the assertions for REST API endpoint for block types
gziolo Sep 14, 2023
bd8ff4a
Administration: Fix undeclared variable.
joedolson Sep 14, 2023
73d8392
Administration: `additional_classes` is not a function.
joedolson Sep 14, 2023
227fdb8
Media: Fix focus loss when closing Image Rotation menu.
joedolson Sep 14, 2023
fd894bf
Blocks: Remove the `gutenberg` textdomain accidently added to transla…
gziolo Sep 15, 2023
ffc7b50
Coding Standards: Improve organization of the WPCS-based PHPCS ruleset.
SergeyBiryukov Sep 15, 2023
60d2d8a
Coding Standards: Remove the custom property for the `FileName` sniff.
SergeyBiryukov Sep 15, 2023
0c7ddbd
Options, Meta APIs: Optimize get_option by relocating notoptions cach…
spacedmonkey Sep 15, 2023
8161a8c
Coding Standards: Remove extra parentheses in a few `str_contains()` …
SergeyBiryukov Sep 16, 2023
5cfb817
Administration: Increase `wp_admin_notice()` usage in `/wp-includes/`.
costdev Sep 16, 2023
fe097d1
Coding Standards: Fix a few newly introduced WPCS issues.
SergeyBiryukov Sep 17, 2023
ce32693
Administration: Use `wp_admin_notice()` more in `/wp-admin/includes/`.
costdev Sep 17, 2023
f058bd1
Administration: Use `wp_admin_notice()` more in `wp-admin/`.
joedolson Sep 17, 2023
1e11c3f
Administration: Use `wp_admin_notice()` in `wp-admin/network/`.
joedolson Sep 17, 2023
4e0e460
Administration: Move `tabindex="-1"` from notice to JS.
joedolson Sep 17, 2023
4bcf32a
Administration: Add support for attributes in `wp_admin_notice()`.
joedolson Sep 18, 2023
ac8db41
Editor: add block instance element color support for buttons and head…
tellthemachines Sep 18, 2023
da48a9e
Editor: add text orientation for blocks with typography support.
tellthemachines Sep 18, 2023
3239a8e
Posts: update admin notices to refer to patterns.
tellthemachines Sep 18, 2023
d47515c
Tests: Add additional tests covering Block Hooks registration
gziolo Sep 18, 2023
a7c9394
Docs: Document `aria-live` and `hidden` in `safecss_filter_attr()`.
costdev Sep 18, 2023
4ee5947
Plugins: Store result of call to array_keys, to save repeated calls i…
spacedmonkey Sep 18, 2023
6340624
Blocks: Introduce helper function to retrieve hooked blocks
gziolo Sep 18, 2023
6a264d2
Quick Edit: Allow Quick Edit to be disabled for custom post types or …
SergeyBiryukov Sep 18, 2023
414a123
Media: Enhance `wp_get_loading_optimization_attributes()` to support …
felixarntz Sep 18, 2023
d4cf682
Bundled Theme: Add missing dimension attributes to images in Twenty T…
felixarntz Sep 18, 2023
1327f17
Editor: add background image support.
tellthemachines Sep 19, 2023
1cd9877
Editor: fix pattern alignment in editor view.
tellthemachines Sep 19, 2023
8ce85f9
Coding Standards: Replace PHP alias `join()` with `implode()`.
costdev Sep 19, 2023
cf2f441
KSES: Add `writing-mode` to the list of safe CSS properties.
SergeyBiryukov Sep 19, 2023
8e8de91
Blocks: Implement block insertion functions.
ockham Sep 19, 2023
3916624
Editor: Fix parameter reference in block editor settings tests.
costdev Sep 19, 2023
48b9b6c
Blocks: Introduce a variation of serialize blocks helper with traversing
gziolo Sep 19, 2023
9a734f3
Themes: Improve performance of get_block_theme_folders function
spacedmonkey Sep 19, 2023
7d96189
Build/Test Tools: Add `sys_get_temp_dir()` to `open_basedir` tests.
costdev Sep 19, 2023
3bacfc9
Media: Edit new hook name in `get_available_post_mime_types()`.
joemcgill Sep 19, 2023
e266e93
External Libraries: Update the `regenerator-runtime` library.
desrosj Sep 19, 2023
3f76edd
External Libraries: Update the `regenerator-runtime` version.
desrosj Sep 19, 2023
a0cce39
Login and Registration: Introduce classes `wp-login.php` footer links.
costdev Sep 19, 2023
bee2dc4
Editor: Fix post editor layout when Post Content has no attributes.
tellthemachines Sep 20, 2023
669d11f
Editor: update docs for `css_var`.
tellthemachines Sep 20, 2023
1113b2d
Taxonomy: Restrict term edit link generation in `WP_Terms_List_Table:…
audrasjb Sep 20, 2023
8fea8aa
Coding Standards: Add missing escaping functions in `wp-admin/export.…
audrasjb Sep 20, 2023
58bb4b7
Coding Standards: Escape the whole attribute in `wp-admin/export.php`.
SergeyBiryukov Sep 20, 2023
8c0e0b3
Blocks: Revert implementation of block insertion functions.
ockham Sep 20, 2023
ec21b60
Themes: Deprecate usage of `TEMPLATEPATH` and `STYLESHEETPATH` consta…
felixarntz Sep 20, 2023
107c730
Users: Improve vertical spacing consistency in labels.
joedolson Sep 20, 2023
5b79a4c
XML-RPC: Add `alt` attribute value to media item API.
joedolson Sep 20, 2023
e40a118
General: Account for `Sec-CH-UA-Mobile` client hint request header in…
westonruter Sep 20, 2023
89b97ba
Administration: Improve control proximity in theme details modal.
joedolson Sep 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 9 additions & 5 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Set up PHP
uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d # v2.24.0
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2.25.4
with:
php-version: '7.4'
coverage: none
Expand All @@ -86,7 +88,7 @@ jobs:
run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT

- name: Cache PHPCS scan cache
uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0 # v3.2.6
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
path: |
.cache/phpcs-src.json
Expand Down Expand Up @@ -145,10 +147,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Set up Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: '.nvmrc'
cache: npm
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ jobs:
echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Set up Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: '.nvmrc'
cache: npm
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/javascript-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Set up Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: '.nvmrc'
cache: npm
Expand Down
54 changes: 48 additions & 6 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ env:
# changed if we want to normalize results against a different baseline.
BASE_TAG: '6.1.1'
LOCAL_DIR: build
TARGET_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || '' }}
TARGET_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}

jobs:
# Runs the performance test suite.
Expand All @@ -65,9 +67,17 @@ jobs:
# - Install MU plugin.
# - Run performance tests (current commit).
# - Print performance tests results.
# - Check out target commit (target branch or previous commit).
# - Install npm dependencies.
# - Build WordPress.
# - Run performance tests (previous/target commit).
# - Print target performance tests results.
# - Reset to original commit.
# - Set the environment to the baseline version.
# - Run baseline performance tests.
# - Print base line performance tests results.
# - Print baseline performance tests results.
# - Compare results with base.
# - Add workflow summary.
# - Set the base sha.
# - Set commit details.
# - Publish performance results.
Expand All @@ -87,10 +97,12 @@ jobs:
echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Set up Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: '.nvmrc'
cache: npm
Expand Down Expand Up @@ -152,7 +164,31 @@ jobs:
run: npm run test:performance

- name: Print performance tests results
run: "node ./tests/performance/results.js"
run: node ./tests/performance/results.js

- name: Check out target commit (target branch or previous commit)
run: |
if [[ -z "$TARGET_REF" ]]; then
git fetch -n origin $TARGET_SHA
else
git fetch -n origin $TARGET_REF
fi
git reset --hard $TARGET_SHA

- name: Install npm dependencies
run: npm ci

- name: Build WordPress
run: npm run build

- name: Run target performance tests (base/previous commit)
run: npm run test:performance -- --prefix=before

- name: Print target performance tests results
run: node ./tests/performance/results.js --prefix=before

- name: Reset to original commit
run: git reset --hard $GITHUB_SHA

- name: Set the environment to the baseline version
run: |
Expand All @@ -162,8 +198,14 @@ jobs:
- name: Run baseline performance tests
run: npm run test:performance -- --prefix=base

- name: Print base line performance tests results
run: "node ./tests/performance/results.js --prefix=base"
- name: Print baseline performance tests results
run: node ./tests/performance/results.js --prefix=base

- name: Compare results with base
run: node ./tests/performance/compare-results.js ${{ runner.temp }}/summary.md

- name: Add workflow summary
run: cat ${{ runner.temp }}/summary.md >> $GITHUB_STEP_SUMMARY

- name: Set the base sha
# Only needed when publishing results.
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/php-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Set up PHP
uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d # v2.24.0
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2.25.4
with:
php-version: '7.4'
coverage: none
Expand All @@ -85,7 +87,7 @@ jobs:
run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT

- name: Cache PHP compatibility scan cache
uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0 # v3.2.6
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
path: .cache/phpcompat.json
key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcompat-cache-${{ hashFiles('**/composer.json', 'phpcompat.xml.dist') }}
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/phpunit-tests-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,12 @@ jobs:
echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Set up Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: '.nvmrc'
cache: npm
Expand All @@ -101,7 +103,7 @@ jobs:
# dependency versions are installed and cached.
##
- name: Set up PHP
uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d # v2.24.0
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2.25.4
with:
php-version: '${{ inputs.php }}'
coverage: none
Expand Down Expand Up @@ -165,17 +167,19 @@ jobs:

# __fakegroup__ is excluded to force PHPUnit to ignore the <exclude> settings in phpunit.xml.dist.
- name: Run (Xdebug) tests
if: ${{ inputs.php != '8.3' }}
run: LOCAL_PHP_XDEBUG=true node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit -v --group xdebug --exclude-group __fakegroup__

- name: Ensure version-controlled files are not modified or deleted
run: git diff --exit-code

- name: Checkout the WordPress Test Reporter
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && inputs.report }}
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
repository: 'WordPress/phpunit-test-runner'
path: 'test-runner'
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Submit test results to the WordPress.org host test results
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && inputs.report }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/phpunit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ jobs:
uses: WordPress/wordpress-develop/.github/workflows/phpunit-tests-run.yml@trunk
permissions:
contents: read
secrets: inherit
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
php: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
php: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
db-type: [ 'mysql' ]
db-version: [ '5.7', '8.0' ]
multisite: [ false, true ]
Expand Down Expand Up @@ -90,12 +91,13 @@ jobs:
uses: WordPress/wordpress-develop/.github/workflows/phpunit-tests-run.yml@trunk
permissions:
contents: read
secrets: inherit
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
php: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
php: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
db-type: [ 'mariadb' ]
db-version: [ '10.4', '10.6', '10.11', '11.0' ]
multisite: [ false, true ]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/slack-notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ jobs:

steps:
- name: Post failure notifications to Slack
uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 # v1.23.0
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0
with:
payload: ${{ needs.prepare.outputs.payload }}
env:
Expand All @@ -177,7 +177,7 @@ jobs:

steps:
- name: Post failure notifications to Slack
uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 # v1.23.0
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0
with:
payload: ${{ needs.prepare.outputs.payload }}
env:
Expand All @@ -193,7 +193,7 @@ jobs:

steps:
- name: Post success notifications to Slack
uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 # v1.23.0
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0
with:
payload: ${{ needs.prepare.outputs.payload }}
env:
Expand All @@ -209,7 +209,7 @@ jobs:

steps:
- name: Post cancelled notifications to Slack
uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 # v1.23.0
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0
with:
payload: ${{ needs.prepare.outputs.payload }}
env:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test-and-zip-default-themes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,13 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.branch || github.ref }}
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Set up Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: '.nvmrc'
cache: npm
Expand Down Expand Up @@ -133,9 +134,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.branch || github.ref }}
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Upload theme ZIP as an artifact
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ jobs:
echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Set up Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: '.nvmrc'
cache: npm
Expand All @@ -92,7 +94,7 @@ jobs:
# dependency versions are installed and cached.
##
- name: Set up PHP
uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d # v2.24.0
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2.25.4
with:
php-version: '7.4'
coverage: none
Expand Down Expand Up @@ -151,7 +153,7 @@ jobs:

- name: Upload single site report to Codecov
if: ${{ ! matrix.multisite && github.event_name != 'pull_request' }}
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
with:
file: wp-code-coverage-single-clover-${{ github.sha }}.xml
flags: single,php
Expand All @@ -166,7 +168,7 @@ jobs:

- name: Upload multisite report to Codecov
if: ${{ matrix.multisite && github.event_name != 'pull_request' }}
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
with:
file: wp-code-coverage-multisite-clover-${{ github.sha }}.xml
flags: multisite,php
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/test-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Set up Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: '.nvmrc'
cache: npm
Expand Down Expand Up @@ -134,10 +136,12 @@ jobs:
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
steps:
- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Set up Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: '.nvmrc'
cache: npm
Expand Down
Loading