Skip to content

fix replacement in serialized objects#96

Open
cyrillbolliger wants to merge 1 commit intoglobalis-ms:developfrom
cyrillbolliger:develop
Open

fix replacement in serialized objects#96
cyrillbolliger wants to merge 1 commit intoglobalis-ms:developfrom
cyrillbolliger:develop

Conversation

@cyrillbolliger
Copy link
Copy Markdown

Issue

Cloning fails while trying to replace wp_ in option_value of the option _site_transient_update_plugins.

Environment

  • WordPress 6.0.2
  • MultiSite Clone Duplicator 1.5.3
  • PHP 8.1.7

Bug

Variable reuse side effect: The $field variable is reassigned by the foreach loop, however the loop body expects the original value of $field.

Solution

Do not reuse the variable.

schuhwerk added a commit to dol-lab/multisite-clone-duplicator that referenced this pull request Dec 3, 2024
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.

1 participant