Skip to content

add acf image_aspect_ratio_crop as related item (WP-902)#535

Merged
vsolovei-smartling merged 10 commits into
masterfrom
WP-902-block-related-items
Jul 26, 2024
Merged

add acf image_aspect_ratio_crop as related item (WP-902)#535
vsolovei-smartling merged 10 commits into
masterfrom
WP-902-block-related-items

Conversation

@vsolovei-smartling

Copy link
Copy Markdown
Contributor

This appears to be a rarely used acf field type. The client should now be able to send related images from the related UI.

{
return substr(md5(microtime(true)), 0, $length);
if ($length > 23) {
throw new \RuntimeException("Length should be less than 23 characters");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Less than or equal to according to the condition

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Comment thread inc/config/media-attachment-rules.yml Outdated
wordpress.editor.mode:
class: Smartling\Helpers\GutenbergReplacementRule
arguments:
- ".+"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mean "everything". I don't know what GutenbergReplacementRule does, but want to draw your attention.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct, restricted to acf/.+

@PavelLoparev PavelLoparev Jul 26, 2024

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to escape /

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked, the escape is not needed

Comment thread tests/IntegrationTests/testdata/wp-690-expected.html
@vsolovei-smartling vsolovei-smartling merged commit 16acb29 into master Jul 26, 2024
@vsolovei-smartling vsolovei-smartling deleted the WP-902-block-related-items branch July 26, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants