Skip to content

Commit a263e51

Browse files
committed
Merge branch 'hotfix/1.20.4'
2 parents 7757a54 + f200605 commit a263e51

File tree

33 files changed

+249
-215
lines changed

33 files changed

+249
-215
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ contact_links:
44
url: https://wordpress.org/support/plugin/popup-maker/
55
about: Please ask for support here.
66
- name: Popup Maker Documentation
7-
url: https://docs.wppopupmaker.com
7+
url: https://wppopupmaker.com
88
about: Please review our documentation.

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Unreleased
44

5+
- Tweak: Updated documentation links to use new docs site.
6+
- Fix: Popup title aria-labelledby attribute was being double-quoted. Thanks to the [Equalize Digital](https://equalizedigital.com/) team.
7+
58
## v1.20.3 - 2024-11-27
69

710
* Fix: Deprecated notice in WordPress 6.7+ for early translation loading in plugin configuration.

assets/js/admin-general.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,14 @@
5353
count = parseInt($noticeCounts.eq(0).text());
5454

5555
function dismissAlert($alert, alertAction) {
56-
var dismissible = $alert.data("dismissible"),
56+
var dismissible = $alert.data('dismissible'),
5757
expires =
58-
dismissible === "1" || dismissible === 1 || dismissible === true
58+
$alert.data('expires') ? $alert.data('expires') :
59+
(dismissible === '1' ||
60+
dismissible === 1 ||
61+
dismissible === true
5962
? null
60-
: dismissible;
63+
: dismissible + ' days');
6164

6265
$.ajax({
6366
method: "POST",

assets/js/admin-general.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/site.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2123,7 +2123,7 @@ var pum_debug_mode = false,
21232123
debug_mode_enabled: "Popup Maker: Debug Mode Enabled",
21242124
debug_started_at: "Debug started at:",
21252125
debug_more_info:
2126-
"For more information on how to use this information visit https://docs.wppopupmaker.com/?utm_medium=js-debug-info&utm_campaign=contextual-help&utm_source=browser-console&utm_content=more-info",
2126+
"For more information on how to use this information visit https://wppopupmaker.com/docs/?utm_medium=js-debug-info&utm_campaign=contextual-help&utm_source=browser-console&utm_content=more-info",
21272127
global_info: "Global Information",
21282128
localized_vars: "Localized variables",
21292129
popups_initializing: "Popups Initializing",

assets/js/site.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/src/admin/general/plugins/alerts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
function dismissAlert($alert, alertAction) {
1212
var dismissible = $alert.data('dismissible'),
1313
expires =
14-
$alert.data('expires') ??
14+
$alert.data('expires') ? $alert.data('expires') :
1515
(dismissible === '1' ||
1616
dismissible === 1 ||
1717
dismissible === true

assets/js/src/site/plugins/pum-debug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var pum_debug_mode = false,
1919
debug_mode_enabled: "Popup Maker: Debug Mode Enabled",
2020
debug_started_at: "Debug started at:",
2121
debug_more_info:
22-
"For more information on how to use this information visit https://docs.wppopupmaker.com/?utm_medium=js-debug-info&utm_campaign=contextual-help&utm_source=browser-console&utm_content=more-info",
22+
"For more information on how to use this information visit https://wppopupmaker.com/docs/?utm_medium=js-debug-info&utm_campaign=contextual-help&utm_source=browser-console&utm_content=more-info",
2323
global_info: "Global Information",
2424
localized_vars: "Localized variables",
2525
popups_initializing: "Popups Initializing",

bin/update-changelog.js

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,32 @@ fs.writeFileSync( changelogFilePath, updatedChangelog, 'utf8' );
6060

6161
// Insert unreleased changes into readme.txt
6262
const readmeContent = fs.readFileSync( readmeFilePath, 'utf8' );
63-
const changelogPattern = /== Changelog ==([\s\S]*?)(= v\d+\.\d+\.\d+ - \d{2}\/\d{2}\/\d{4} =)/;
63+
64+
// Find the changelog section and first version entry
65+
const changelogPattern = /== Changelog ==\n\nFor the latest updates and release information:.*?\n\n(= v\d+\.\d+\.\d+ - \d{4}-\d{2}-\d{2} =)/s;
6466
const changelogMatch = readmeContent.match( changelogPattern );
6567

66-
const newChangelog = `== Changelog ==\n\nView our [complete changelog](https://github.com/PopupMaker/Popup-Maker/blob/master/CHANGELOG.md) for up-to-date information on what has been going on with the development of Popup Maker.\n\n= v${ newVersion } - ${ releaseDate } =\n\n${ formattedFileChanges }\n\n${
67-
changelogMatch ? changelogMatch[ 2 ] : ''
68-
}`;
68+
if ( ! changelogMatch ) {
69+
console.error( 'Could not find changelog section or first version entry' );
70+
process.exit( 1 );
71+
}
6972

70-
fs.writeFileSync(
71-
readmeFilePath,
72-
readmeContent.replace( changelogPattern, newChangelog ).trim(),
73-
'utf8'
73+
// Create the new version entry
74+
const newVersionEntry = `= v${ newVersion } - ${ releaseDate } =\n\n${ formattedFileChanges }\n\n`;
75+
76+
// Insert the new version entry before the first existing version
77+
const newChangelog = readmeContent.replace(
78+
changelogPattern,
79+
( match, firstVersion ) => {
80+
return match.replace(
81+
firstVersion,
82+
`${ newVersionEntry }${ firstVersion }`
83+
);
84+
}
7485
);
7586

87+
fs.writeFileSync( readmeFilePath, newChangelog.trim(), 'utf8' );
88+
7689
// Output the count of changes
7790
console.log(
7891
`Changelog updated successfully with ${ changeCount } change(s).`

classes/Admin/Onboarding.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,11 +371,11 @@ public static function get_random_tip() {
371371
],
372372
[
373373
'msg' => 'Using the Popup Maker menu in your admin bar, you can open and close popups, check conditions, reset cookies, and more!',
374-
'link' => 'https://docs.wppopupmaker.com/article/300-the-popup-maker-admin-toolbar',
374+
'link' => 'https://wppopupmaker.com/docs/problem-solving/turning-on-the-popups-admin-bar/',
375375
],
376376
[
377377
'msg' => "Did you know: You can easily customize your site's navigation to have a link open a popup by using the 'Trigger a Popup' option when editing your menus?",
378-
'link' => 'https://docs.wppopupmaker.com/article/51-open-a-popup-from-a-wordpress-nav-menu',
378+
'link' => 'https://wppopupmaker.com/docs/menu/open-a-popup-from-a-wordpress-nav-menu/',
379379
],
380380
];
381381

0 commit comments

Comments
 (0)