10up / distributor

Share content between your websites.
https://distributorplugin.com
GNU General Public License v2.0
640 stars 156 forks source link

fix/warning: Undefined array key "id" #1247

Closed Sidsector9 closed 4 months ago

Sidsector9 commented 4 months ago

Description of the Change

This PR fixes a PHP warning shown on the "Pull Content" page.

How to test the Change

  1. Create 2 multisites env of types subdomain and subdir.

  2. Create pages and posts in both sites.

  3. Add the subdir site as external connection to subdomain site.

  4. Visit "Pull Content" and observe the error on develop. Screenshot 2024-07-15 at 12 35 56 AM

  5. Switch to the fix branch and see the error is fixed.

Changelog Entry

Fixed - Undefined array key "id" warning on the Pull Content page.

Credits

Props @Sidsector9

Checklist:

github-actions[bot] commented 4 months ago

@Sidsector9 thanks for the PR! Could you please fill out the PR template with description, changelog, and credits information so that we can properly review and merge this?