Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull changes from upstream #1
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
Uh oh!
There was an error while loading. Please reload this page.
Pull changes from upstream #1
Changes from 1 commit
0f51a986ec2594acfe40fcd616cf27a2a809aa15897d88c0166cb5e3022262505f2894e20beac07787404583801220a6ccee81f7140506e7fe3d953a2c0ccd43a8715402e2e6d4abd5c67f8702efc83a9d87fa56e83a3414e682f0e5e2b86ab0e915a65372529c5794927bc80a90e7ebb683b83cd1f87972de496d616b936201d435d6e99780b24abebe147c62e8d8f4418069f838c86524c2a62438acaef4119552fe9ff780be42a632c85b29e32c29531de8dee6dc485c6b8bb3075d17a285a1fad3bada835d6877c39b30f9d4e976de7b6b3019baf99f0e60d68fa9002ba21bbc5a4b7a495d1c9ac8cd43e6a6c5461a6afb38a682c52dabaa5ba388cdf9f793bde140edc2ad6851a3be4552db83b01e26c0800a52bc20b3326d8c6a9a5960876f2a542369031e8ae16b0490594079c4f4c344ca4765c46c9b700bf7d5e47a3b90e96aa672a3113b123b0e4653790bdbc7e56bff35b836d6e7d36bca16ec3b413cc1632c50d72481d0e444c556e0dacad2b4088f304ce168ea9abf35cdade4c643de6d514f9288c64c2d7d82acccad96dc2092ee0f08fe046a591d51cabe470f98b2846f1a983c3a3da83062b3df44a995f329608f5aaafdc0b328a07a7b4297790af57ad9f1ecad6aeab9b51ef386f6fbe12fd24d669c9a6408608873b17e881178fe9f6a2506aa74cece2cc81ade4d0f00893d7b91f99269cbdd05ecf2cb5e2615c18b5fe0f5dfd237efb56b2e2bf36ed6d55bc2752bf705d93f6ba8aa12706380a345f3546c69284764c364dfece0359da7c2b54e90b6ae9863b9f0ab501af48f29662bcff1d48c68e5f6755de4226e711f0aed8f6606326194de43ae66a3c69c3424bf9084de822e8f2d146d374adaabe25c1ba86f7c783b2339411eaeaed9f437eda09ec440336b92ff8974b60c38184e7c1267b0716367c011227fc5d96e75665d909404044f9ef20d5fdc54cea66ed91d0800c31dce6abef180a080a0e815d36e2ddd802fecad9de4594fb973ac18b684dae388b0cc77840fd54acbf2a19caec0f885d529d3b61833d428a5b1cf97a37fb3aa1a1a11d6e6ba58c2238c30aa37d5b22bb0fee1eb18d98bf67e9b6c18b28a1ec5489260ac043d400cf6d3e39479eb548829ffe81c8f965a38f59dc049c92c8dfba6b4c45b1da06f28310a86c54d8ec5ed031f1f1d62716cc59f9c81f57ded3c07ad6ef045bec5bb6c5db9ca3e8f2cd084a175ad4cFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
$contentparameter default value in `img_caption_shortco……de()`. The shortcode content is expected to be a string, not `null`. `do_shortcode()` expects a string for `$content`. The `img_caption_shortcode()` also expects a string for the `$content` parameter and is expected to return a string for the HTML content to display the caption. Prior to this commit: The default value for the `$content` parameter was set to `null`. If no `$content` was passed, the function: - could return `null` when the `$atts['width'] < 1` or there was no caption - else, it invoked `do_shortcode( $content )` passing `null` which on PHP 8.1+ triggers a deprecation notice: {{{ strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated }}} This commit: - Fixes the default `$content` value to align to the expected shortcode content of `string`, not `null`. - Fixes the PHP 8.1 deprecation notice when `null` was being passed to `do_shortcode()`. - Changes the assertion in a couple of tests to check for the empty string instead of `null. Follow-up to [8196], [8925], [8239], [26915], [31530], [42704]. Props jrf, hellofromTonya, azaozz, joedolson. See #53635. git-svn-id: https://develop.svn.wordpress.org/trunk@51816 602fd350-edb4-49c9-b593-d223f7449a82Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing