Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-4782

Check if there are still campaigns that have the old _campaign_page_template attribute

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Released
    • Icon: Should have Should have
    • 2.33.0
    • None
    • 2
    • Campaigns
    • Sprint #136, Sprint #137, Sprint #138
    • phobos

      We needed to change the attribute containing the theme of a campaign page from "_campaign_page_template" to "theme" because the underscore prevented the field from being used in the gutenberg editor. Currently the backend code still has fallbacks to this old value. If no more live content is depending on this old attribute anymore, we can remove the fallbacks from the code.

      • Check if there are any more sites that have a value in the postmeta table for "_campaign_page_template" and no value for "theme". Probably best to also check dev and staging environments, to avoid any confusion or issues during testing/verification.
      • If possible update all these campaigns so that they have the "theme" attribute with the value of "_campaign_page_template".
      • Maybe get from WPCLI?
      • provide recommended solution I(e.g. Script)

            fhernand Florent Hernandez (Inactive)
            pvincent Pieter Vincent (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: