Skip to content

Commit c2947a7

Browse files
committed
Merge branch 'release/4.4.8' into main
2 parents 5035cee + 0afafb6 commit c2947a7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+879
-1208
lines changed

.github/workflows/create-release.yml

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Create Release
2+
run-name: Create release for ${{ github.event.client_payload.version }}
3+
4+
on:
5+
repository_dispatch:
6+
types:
7+
- craftcms/new-release
8+
9+
env:
10+
PROJECT_DIRECTORY: 'craftcms'
11+
BUNDLE_ZIP_FILENAME: 'CraftCMS-${{ github.event.client_payload.version }}.zip'
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v3
21+
22+
- name: 'Set up PHP for Craft 3'
23+
uses: shivammathur/[email protected]
24+
if: ${{ startsWith(github.event.client_payload.version, '3.') }}
25+
with:
26+
extensions: bcmath, curl, dom, json, intl, mbstring, mcrypt, openssl, pcre, pdo, zip
27+
php-version: 7.2.5
28+
tools: composer:v2
29+
30+
- name: 'Set up PHP for Craft 4'
31+
uses: shivammathur/[email protected]
32+
if: ${{ startsWith(github.event.client_payload.version, '4.') }}
33+
with:
34+
extensions: bcmath, curl, dom, json, intl, mbstring, mcrypt, openssl, pcre, pdo, zip
35+
php-version: 8.0.2
36+
tools: composer:v2
37+
38+
- name: 'Initialize Craft 3 starter project'
39+
if: ${{ startsWith(github.event.client_payload.version, '3.') }}
40+
run: 'composer create-project craftcms/craft=^1 ${{ env.PROJECT_DIRECTORY }}'
41+
42+
- name: 'Initialize Craft 4 starter project'
43+
if: ${{ startsWith(github.event.client_payload.version, '4.') }}
44+
run: 'composer create-project craftcms/craft ${{ env.PROJECT_DIRECTORY }}'
45+
46+
- name: 'Install specific Craft version'
47+
working-directory: ${{ env.PROJECT_DIRECTORY }}
48+
run: 'composer require craftcms/cms:${{ github.event.client_payload.version }} --update-with-dependencies'
49+
50+
- name: 'Update Craft 3 .env'
51+
if: ${{ startsWith(github.event.client_payload.version, '3.') }}
52+
working-directory: ${{ env.PROJECT_DIRECTORY }}
53+
run: |
54+
sed -i 's/SECURITY_KEY=.*/SECURITY_KEY=/g' .env
55+
sed -i 's/APP_ID=.*/APP_ID=/g' .env
56+
57+
- name: 'Update Craft 4 .env'
58+
if: ${{ startsWith(github.event.client_payload.version, '4.') }}
59+
working-directory: ${{ env.PROJECT_DIRECTORY }}
60+
run: |
61+
sed -i 's/CRAFT_SECURITY_KEY=.*/CRAFT_SECURITY_KEY=/g' .env
62+
sed -i 's/CRAFT_APP_ID=.*/CRAFT_APP_ID=/g' .env
63+
64+
- name: 'Create zip'
65+
working-directory: ${{ env.PROJECT_DIRECTORY }}
66+
run: 'zip -r ../${{ env.BUNDLE_ZIP_FILENAME }} ./'
67+
68+
- name: 'Create release'
69+
uses: ncipollo/release-action@v1
70+
with:
71+
allowUpdates: true
72+
artifacts: ${{ env.BUNDLE_ZIP_FILENAME }}
73+
body: ${{ github.event.client_payload.notes }}
74+
makeLatest: ${{ github.event.client_payload.latest }}
75+
name: ${{ github.event.client_payload.version }}
76+
prerelease: ${{ github.event.client_payload.prerelease }}
77+
tag: ${{ github.event.client_payload.tag }}

CHANGELOG.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Release Notes for Craft CMS 4
22

3+
## 4.4.8 - 2023-04-25
4+
5+
- Category/tag/global set reference tags now map to entries, if no category groups/tag groups/global sets exist. ([#13082](https://github.com/craftcms/cms/issues/13082))
6+
- HTML Purifier now allows `data-oembed-url` attributes on `div` tags. ([craftcms/ckeditor#80](https://github.com/craftcms/ckeditor/issues/80))
7+
- Added `craft\queue\Queue::EVENT_AFTER_EXEC_AND_RELEASE`. ([#13096](https://github.com/craftcms/cms/issues/13096))
8+
- `craft\services\Elements::propagateElements()` now returns the element in the target site.
9+
- A globally-defined element thumb loader is now available in the control panel via `Craft.cp.elementThumbLoader`.
10+
- Fixed a bug where it was possible to select a disallowed volume as the Default Asset Location in Assets field settings. ([#13072](https://github.com/craftcms/cms/issues/13072))
11+
- Fixed a bug where it was possible to upload files to Assets fields outside of the allowed volumes, if the Default Upload Location was set to a disallowed volume. ([#13072](https://github.com/craftcms/cms/issues/13072))
12+
- Fixed an error that could occur if a Plain Text field had over 1,000,000 bytes. ([#13083](https://github.com/craftcms/cms/issues/13083))
13+
- Fixed a bug where relational field values weren’t yielding any results for event handlers immediately after a draft had been merged. ([#13087](https://github.com/craftcms/cms/issues/13087))
14+
- Fixed a bug where element labels could bleed out of their container. ([#13099](https://github.com/craftcms/cms/issues/13099))
15+
- Fixed an error that occurred if `yii\web\UrlManager::addRules()` was called on a console request. ([#13109](https://github.com/craftcms/cms/issues/13109))
16+
- Fixed a bug where it was possible to select the current folder as the target when moving a volume folder, resulting in the folder and its contents being lost. ([#13118](https://github.com/craftcms/cms/issues/13118))
17+
- Fixed an error that could occur when running tests. ([#13076](https://github.com/craftcms/cms/issues/13076))
18+
- Fixed an error that occured when sending the activation email for a new user, if there were any validation errors due to new group assignments. ([#13060](https://github.com/craftcms/cms/issues/13060))
19+
- Fixed a bug where the “Send an activation email now” user account checkbox was losing its value if there were any validation errors.
20+
- Fixed an error that could occur when creating a database backup on MySQL and MariaDB. ([#12996](https://github.com/craftcms/cms/issues/12996))
21+
- Fixed a bug where Edit Category screens were including a Parent field, even if the category group’s Max Levels was set to `1`. ([#13097](https://github.com/craftcms/cms/discussions/13097))
22+
- Fixed a bug where the uploader’s user photo wasn’t always loading on Edit Asset pages.
23+
- Fixed a bug where the “Delete for site” bulk element action was deleting disabled elements and drafts across all sites. ([#13116](https://github.com/craftcms/cms/issues/13116))
24+
- Fixed a bug where Entries and Categories fields with “Maintain hierarchy” enabled could lose relations to elements that didn’t exist in the primary site. ([#13057](https://github.com/craftcms/cms/issues/13057))
25+
326
## 4.4.7.1 - 2023-04-15
427

528
- Locked the Yii 2 PSR Log Target library to 1.1.3 to avoid a PHP error that occurs on 1.1.4.
@@ -372,7 +395,7 @@
372395
## 4.3.9 - 2023-02-14
373396

374397
- Image thumbnails and previews are no longer versioned if their image URL doesn’t begin with one of the asset’s base filesystem URLs. ([#12663](https://github.com/craftcms/cms/issues/12663))
375-
- HTML Purifier now allows `oembed` tags. ([ckeditor#59](https://github.com/craftcms/ckeditor/issues/59))
398+
- HTML Purifier now allows `oembed` tags. ([craftcms/ckeditor#59](https://github.com/craftcms/ckeditor/issues/59))
376399
- Added `craft\htmlpurifier\VideoEmbedUrlDef`.
377400
- `craft\helpers\Assets::revUrl()` now has an `$fsOnly` argument.
378401
- Fixed a bug where entries that aren’t propagated to the primary site weren’t showing revision notes. ([#12641](https://github.com/craftcms/cms/issues/12641))

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"moneyphp/money": "^4.0",
5050
"monolog/monolog": "^2.3",
5151
"pixelandtonic/imagine": "~1.3.3.1",
52-
"samdark/yii2-psr-log-target": "1.1.3",
52+
"samdark/yii2-psr-log-target": "^1.1.3",
5353
"seld/cli-prompt": "^1.0.4",
5454
"symfony/http-client": "^6.0.3",
5555
"symfony/var-dumper": "^5.0|^6.0",

0 commit comments

Comments
 (0)