Skip to content

Commit bf5f6cb

Browse files
authored
Merge branch 'develop' into add/post-url-filter
2 parents 96c715d + 9291c7c commit bf5f6cb

36 files changed

+84
-66
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [3.19.2](https://github.com/Parsely/wp-parsely/compare/3.19.1...3.19.2) - 2025-05-29
9+
10+
### Fixed
11+
12+
- add_parsely_preview_wrapper(): Allow mixed type values ([#3389](https://github.com/Parsely/wp-parsely/pull/3389))
13+
14+
### Dependency Updates
15+
16+
- The list of all dependency updates for this release is available [here](https://github.com/Parsely/wp-parsely/pulls?q=is%3Apr+is%3Amerged+milestone%3A3.19.2+label%3ADeps).
17+
818
## [3.19.1](https://github.com/Parsely/wp-parsely/compare/3.19.0...3.19.1) - 2025-05-21
919

1020
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Parse.ly
22

3-
Stable tag: 3.19.1
3+
Stable tag: 3.19.2
44
Requires at least: 6.0
55
Tested up to: 6.8
66
Requires PHP: 7.2

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wp-parsely",
3-
"version": "3.19.1",
3+
"version": "3.19.2",
44
"private": true,
55
"description": "The Parse.ly plugin facilitates real-time and historical analytics to your content through a platform designed and built for digital publishing.",
66
"author": "parsely, hbbtstar, jblz, mikeyarce, GaryJ, parsely_mike, acicovic, mehmoodak, vaurdan",
@@ -77,7 +77,7 @@
7777
"@wordpress/url": "^4.24.0",
7878
"@wordpress/wordcount": "^4.24.0",
7979
"concurrently": "^9.1.2",
80-
"eslint-plugin-jest": "^28.11.1",
80+
"eslint-plugin-jest": "^28.12.0",
8181
"husky": "^9.1.7",
8282
"lodash.debounce": "^4.0.8",
8383
"prettier": "^3.5.3",

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ parameters:
1313
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
1414
- vendor/php-stubs/wordpress-tests-stubs/wordpress-tests-stubs.php
1515
type_coverage:
16-
return_type: 87.7
16+
return_type: 87.6
1717
param_type: 79.1
1818
property_type: 0 # We can't use property types until PHP 7.4 becomes the plugin's minimum version.
1919
print_suggestions: false

src/UI/class-dashboard-page.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,17 @@ public function handle_preview_template(): void {
118118
*
119119
* @since 3.19.0
120120
*
121-
* @param string $content The post content.
122-
* @return string The modified content with wrapper div if needed.
121+
* @param mixed $content The post content.
122+
* @return mixed The modified content with wrapper div if needed, or the
123+
* unmodified content value in case of a non-string.
123124
*/
124-
public function add_parsely_preview_wrapper( string $content ): string {
125+
public function add_parsely_preview_wrapper( $content ) {
126+
if ( ! is_string( $content ) ) {
127+
// $content should always be a string, but is filterable by `the_content`.
128+
// If we get a non-string value, return it as is to avoid fatal errors.
129+
return $content;
130+
}
131+
125132
if ( ! isset( $_GET['parsely_preview'] ) || 'true' !== $_GET['parsely_preview'] ) {
126133
return $content;
127134
}

src/content-helper/dashboard-page/components/posts-table/component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { SinglePostRow } from './components/single-post-row';
3131
*
3232
* @since 3.19.0
3333
*
34-
* @param {Object} props The component props.
34+
* @param {Object} props The component's props.
3535
* @param {boolean} props.isLoading Whether the posts are loading.
3636
* @param {number} props.currentPage The current page.
3737
* @param {Function} props.setCurrentPage The function to set the current page.
@@ -113,7 +113,7 @@ type PostsTableType = {
113113
*
114114
* @since 3.19.0
115115
*
116-
* @param {PostsTableType} props The component props.
116+
* @param {PostsTableType} props The component's props.
117117
*/
118118
export const PostsTable = ( {
119119
query = {},

src/content-helper/dashboard-page/components/posts-table/components/post-details.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type PostDetailsProps = {
2626
*
2727
* @since 3.19.0
2828
*
29-
* @param {PostDetailsProps} props The component props.
29+
* @param {PostDetailsProps} props The component's props.
3030
*/
3131
export const PostDetails = ( { post }: PostDetailsProps ): React.JSX.Element => {
3232
const prettyDate = post.date ? getSmartShortDate( new Date( post.date ) ) : '';

src/content-helper/dashboard-page/components/typography-components.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export type DashboardHeadingProps = {
2222
*
2323
* @since 3.19.0
2424
*
25-
* @param {DashboardHeadingProps} props The component props.
25+
* @param {DashboardHeadingProps} props The component's props.
2626
*/
2727
export const DashboardHeading = ( { children, ...props }: DashboardHeadingProps ) => {
2828
return (

src/content-helper/editor-sidebar/smart-linking/component-link-monitor.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
*/
44
// eslint-disable-next-line import/named
55
import { BlockInstance } from '@wordpress/blocks';
6-
import { useEffect, useRef } from '@wordpress/element';
7-
import { useSelect } from '@wordpress/data';
86
import { debounce } from '@wordpress/compose';
7+
import { useSelect } from '@wordpress/data';
8+
import { useEffect, useRef } from '@wordpress/element';
99

1010
/**
1111
* Internal dependencies
@@ -123,7 +123,7 @@ type LinkMonitorProps = {
123123
*
124124
* @since 3.16.0
125125
*
126-
* @param {LinkMonitorProps} props The component props.
126+
* @param {LinkMonitorProps} props The component's props.
127127
*/
128128
export const LinkMonitor = ( {
129129
isDetectingEnabled,

0 commit comments

Comments
 (0)