Skip to content

Commit

Permalink
Fixed response API regression. 2.6.0 launch
Browse files Browse the repository at this point in the history
  • Loading branch information
sybrew committed Oct 4, 2022
1 parent da5939c commit f0952e5
Show file tree
Hide file tree
Showing 12 changed files with 743 additions and 546 deletions.
12 changes: 9 additions & 3 deletions bootstrap/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ function _check_external_blocking() {
$host = $parsed_url['host'] ?? '';

if ( ! \defined( 'WP_ACCESSIBLE_HOSTS' ) || false === stristr( WP_ACCESSIBLE_HOSTS, $host ) ) {

// TODO We rely on TSF here but it might not be available.
if ( ! \function_exists( '\\tsf' ) ) return;

$tsf = \tsf();

$notice = $tsf->convert_markdown(
Expand Down Expand Up @@ -116,9 +120,11 @@ function _hook_plugins_api( $res, $action, $args ) {
);
} else {
// aka maybe_unserialize but then without class support.
$res = \is_serialized( $res )
? unserialize( trim( $res ), [ 'allowed_classes' => false ] ) // phpcs:ignore -- it fine.
: $res;
$body = \wp_remote_retrieve_body( $request );

$res = \is_serialized( $body )
? unserialize( trim( $body ), [ 'allowed_classes' => [ 'stdClass' ] ] ) // phpcs:ignore -- it fine.
: $body;

if ( \is_array( $res ) ) {
$res = (object) $res;
Expand Down
2 changes: 1 addition & 1 deletion extensions/essentials/articles/trunk/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ add_filter( 'the_seo_framework_sitemap_articles_news_sitemap_query_args', functi

### 2.2.1

[tsfep-release time="-1"]
[tsfep-release time="October 4th, 2022"]

* **Improved:** Modernized code with a focus on improving performance.

Expand Down
2 changes: 1 addition & 1 deletion extensions/essentials/focus/trunk/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ document.addEventListener( 'tsfem-focus-gutenberg-content-store-setup', () => {

### 1.5.2

[tsfep-release time="-1"]
[tsfep-release time="October 4th, 2022"]

* **Improved:** Modernized code with a focus on improving performance.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ protected function delete( $item_id, $from, &$results ) {
*/
protected function maybe_unserialize_no_class( $data ) {
return \is_serialized( $data )
? unserialize( trim( $data ), [ 'allowed_classes' => false ] ) // phpcs:ignore -- it fine.
? unserialize( trim( $data ), [ 'allowed_classes' => [ 'stdClass' ] ] ) // phpcs:ignore -- it fine.
: $data;
}
}
2 changes: 1 addition & 1 deletion extensions/free/transport/trunk/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,6 @@ The following data will be irretrievably deleted from your database; doing this

### 1.0.0

[tsfep-release time="-1"]
[tsfep-release time="October 4th, 2022"]

* Initial extension beta release.
2 changes: 1 addition & 1 deletion extensions/premium/local/trunk/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Also, when department URLs are filled in, then each specific department's data w

### 1.2.0

[tsfep-release time="-1"]
[tsfep-release time="October 4th, 2022"]

* **Improved:** Modernized code with a focus on improving performance.

Expand Down
4 changes: 2 additions & 2 deletions extensions/premium/monitor/trunk/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ If you just initiated a crawl request, you might receive outdated or incorrect d

### 1.2.8

[tsfep-release time="-1"]
[tsfep-release time="October 4th, 2022"]

* **Extension:**
* **Improved:** The valid sitemap message is now more descriptive.
* **Improved:** Modernized code with a focus on improving performance.
* **API - Our servers:**
* **September 27th, 2020:**
* **September 27th, 2022:**
* **Improved:** Improved lookups for descriptions, canonical URLs, and icons, now supporting more vigorous minification plugins.

### 1.2.7
Expand Down
2 changes: 1 addition & 1 deletion inc/classes/core.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ final public function send_html( $html, $type = 'success' ) {
* @since 1.2.0
* @since 2.4.0 Added nonce capability requirement, extra sanity for when the caller fails to do so.
* @access private
* @ignore unused. Leftover from the never-released Transporter
* @ignore unused. Leftover from the dumped release of Transporter (old version).
*
* @param array $args - Required : {
* 'options_key' => string The extension options key,
Expand Down
2 changes: 1 addition & 1 deletion inc/traits/extension/post-meta.trait.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private static function init_meta_cache( $id ) {
(
\get_post_meta( $id, TSF_EXTENSION_MANAGER_EXTENSION_POST_META, true ) ?: serialize( [] ) // phpcs:ignore -- serializing simple array.
),
[ 'allowed_classes' => false ] // Redundant.
[ 'allowed_classes' => [ 'stdClass' ] ] // Redundant.
);
}

Expand Down
Loading

0 comments on commit f0952e5

Please sign in to comment.