Skip to content

Commit 94da102

Browse files
authored
Merge branch 'develop' into filip/v19/improve-pdf-handling
2 parents 7e9dd1b + db94ee8 commit 94da102

75 files changed

Lines changed: 4979 additions & 178 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
= 1.9.0 =
22

3+
In this release we've added an integration with the **All In One Seo** plugin so you’ll now see personalized suggestions based on your current SEO configuration.
4+
5+
Added these recommendations from Ravi:
6+
7+
* All In One SEO: [noindex the author archive](https://prpl.fyi/aioseo-author-archive)
8+
* All In One SEO: [noindex the date archive](https://prpl.fyi/aioseo-date-archive)
9+
* All In One SEO: [Remove post authors feeds](https://prpl.fyi/aioseo-crawl-optimization-feed-authors)
10+
* All In One SEO: [Remove comment feeds](https://prpl.fyi/aioseo-crawl-optimization-feed-comments)
11+
* All In One SEO: [disable the media pages](https://prpl.fyi/aioseo-media-pages)
12+
* All In One SEO: set your [organization](https://prpl.fyi/aioseo-organization-logo) or [person](https://prpl.fyi/aioseo-person-logo) logo
13+
314
Enhancements:
415

516
* Add "Show all Recommendations" button to the "Ravi's Recommendations" widget
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* global prplInteractiveTaskFormListener, progressPlanner */
2+
3+
/*
4+
* All in One SEO: noindex the author archive.
5+
*
6+
* Dependencies: progress-planner/recommendations/interactive-task
7+
*/
8+
9+
prplInteractiveTaskFormListener.customSubmit( {
10+
taskId: 'aioseo-author-archive',
11+
popoverId: 'prpl-popover-aioseo-author-archive',
12+
callback: () => {
13+
fetch( progressPlanner.ajaxUrl, {
14+
method: 'POST',
15+
headers: {
16+
'Content-Type': 'application/x-www-form-urlencoded',
17+
},
18+
body: new URLSearchParams( {
19+
action: 'prpl_interactive_task_submit_aioseo-author-archive',
20+
nonce: progressPlanner.nonce,
21+
} ),
22+
} );
23+
},
24+
} );
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* global prplInteractiveTaskFormListener, progressPlanner */
2+
3+
/*
4+
* All in One SEO: disable author RSS feeds.
5+
*
6+
* Dependencies: progress-planner/recommendations/interactive-task
7+
*/
8+
9+
prplInteractiveTaskFormListener.customSubmit( {
10+
taskId: 'aioseo-crawl-settings-feed-authors',
11+
popoverId: 'prpl-popover-aioseo-crawl-settings-feed-authors',
12+
callback: () => {
13+
fetch( progressPlanner.ajaxUrl, {
14+
method: 'POST',
15+
headers: {
16+
'Content-Type': 'application/x-www-form-urlencoded',
17+
},
18+
body: new URLSearchParams( {
19+
action: 'prpl_interactive_task_submit_aioseo-crawl-settings-feed-authors',
20+
nonce: progressPlanner.nonce,
21+
} ),
22+
} );
23+
},
24+
} );
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* global prplInteractiveTaskFormListener, progressPlanner */
2+
3+
/*
4+
* All in One SEO: disable global comment RSS feeds.
5+
*
6+
* Dependencies: progress-planner/recommendations/interactive-task
7+
*/
8+
9+
prplInteractiveTaskFormListener.customSubmit( {
10+
taskId: 'aioseo-crawl-settings-feed-comments',
11+
popoverId: 'prpl-popover-aioseo-crawl-settings-feed-comments',
12+
callback: () => {
13+
fetch( progressPlanner.ajaxUrl, {
14+
method: 'POST',
15+
headers: {
16+
'Content-Type': 'application/x-www-form-urlencoded',
17+
},
18+
body: new URLSearchParams( {
19+
action: 'prpl_interactive_task_submit_aioseo-crawl-settings-feed-comments',
20+
nonce: progressPlanner.nonce,
21+
} ),
22+
} );
23+
},
24+
} );
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* global prplInteractiveTaskFormListener, progressPlanner */
2+
3+
/*
4+
* All in One SEO: noindex the date archive.
5+
*
6+
* Dependencies: progress-planner/recommendations/interactive-task
7+
*/
8+
9+
prplInteractiveTaskFormListener.customSubmit( {
10+
taskId: 'aioseo-date-archive',
11+
popoverId: 'prpl-popover-aioseo-date-archive',
12+
callback: () => {
13+
fetch( progressPlanner.ajaxUrl, {
14+
method: 'POST',
15+
headers: {
16+
'Content-Type': 'application/x-www-form-urlencoded',
17+
},
18+
body: new URLSearchParams( {
19+
action: 'prpl_interactive_task_submit_aioseo-date-archive',
20+
nonce: progressPlanner.nonce,
21+
} ),
22+
} );
23+
},
24+
} );
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* global prplInteractiveTaskFormListener, progressPlanner */
2+
3+
/*
4+
* All in One SEO: redirect media pages.
5+
*
6+
* Dependencies: progress-planner/recommendations/interactive-task
7+
*/
8+
9+
prplInteractiveTaskFormListener.customSubmit( {
10+
taskId: 'aioseo-media-pages',
11+
popoverId: 'prpl-popover-aioseo-media-pages',
12+
callback: () => {
13+
fetch( progressPlanner.ajaxUrl, {
14+
method: 'POST',
15+
headers: {
16+
'Content-Type': 'application/x-www-form-urlencoded',
17+
},
18+
body: new URLSearchParams( {
19+
action: 'prpl_interactive_task_submit_aioseo-media-pages',
20+
nonce: progressPlanner.nonce,
21+
} ),
22+
} );
23+
},
24+
} );
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/* global prplInteractiveTaskFormListener, prplDocumentReady, progressPlanner */
2+
3+
/*
4+
* Set the permalink structure.
5+
*
6+
* Dependencies: progress-planner/recommendations/interactive-task, progress-planner/document-ready
7+
*/
8+
9+
prplInteractiveTaskFormListener.customSubmit( {
10+
taskId: 'core-permalink-structure',
11+
popoverId: 'prpl-popover-core-permalink-structure',
12+
callback: () => {
13+
const customPermalinkStructure = document.querySelector(
14+
'#prpl-popover-core-permalink-structure input[name="prpl_custom_permalink_structure"]'
15+
);
16+
17+
fetch( progressPlanner.ajaxUrl, {
18+
method: 'POST',
19+
headers: {
20+
'Content-Type': 'application/x-www-form-urlencoded',
21+
},
22+
body: new URLSearchParams( {
23+
action: 'prpl_interactive_task_submit_core-permalink-structure',
24+
nonce: progressPlanner.nonce,
25+
value: customPermalinkStructure.value,
26+
} ),
27+
} );
28+
},
29+
} );
30+
31+
prplDocumentReady( () => {
32+
// Handle custom date format input, this value is what is actually submitted to the server.
33+
const customPermalinkStructureInput = document.querySelector(
34+
'#prpl-popover-core-permalink-structure input[name="prpl_custom_permalink_structure"]'
35+
);
36+
37+
// If there is no custom permalink structure input, return.
38+
if ( ! customPermalinkStructureInput ) {
39+
return;
40+
}
41+
42+
// Handle date format radio button clicks.
43+
document
44+
.querySelectorAll(
45+
'#prpl-popover-core-permalink-structure input[name="prpl_permalink_structure"]'
46+
)
47+
.forEach( function ( input ) {
48+
input.addEventListener( 'click', function () {
49+
// Dont update the custom permalink structure input if the custom radio button is checked.
50+
if ( 'prpl_permalink_structure_custom_radio' !== this.id ) {
51+
customPermalinkStructureInput.value = this.value;
52+
}
53+
} );
54+
} );
55+
56+
// If users clicks on the custom permalink structure input, check the custom radio button.
57+
customPermalinkStructureInput.addEventListener( 'click', function () {
58+
document.getElementById(
59+
'prpl_permalink_structure_custom_radio'
60+
).checked = true;
61+
} );
62+
} );

0 commit comments

Comments
 (0)