Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Photon: update filter docblock to match possible types #36731

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update filter docblock to match possible types.
2 changes: 1 addition & 1 deletion projects/packages/image-cdn/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-image-cdn",
"version": "0.3.3",
"version": "0.3.4-alpha",
"description": "Serve images through Jetpack's powerful CDN",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/image-cdn/#readme",
"bugs": {
Expand Down
8 changes: 4 additions & 4 deletions projects/packages/image-cdn/src/class-image-cdn.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
final class Image_CDN {

const PACKAGE_VERSION = '0.3.3';
const PACKAGE_VERSION = '0.3.4-alpha';

/**
* Singleton.
Expand Down Expand Up @@ -368,9 +368,9 @@ public static function filter_the_content( $content ) {
*
* @since 2.0.3
*
* @param bool false Should Photon ignore this image. Default to false.
* @param string $src Image URL.
* @param string $tag Image Tag (Image HTML output).
* @param bool false Should Photon ignore this image. Default to false.
* @param string $src Image URL.
* @param string|array|null $tag Image Tag (Image HTML output) or array of image details for srcset.
*/
if ( apply_filters( 'jetpack_photon_skip_image', false, $src, $tag ) ) {
continue;
Expand Down
Loading