Skip to content

Switching to "I don't have this page" on the settings page doesn't properly save the setting #201

Open
@tacoverdo

Description

  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened

https://github.com/user-attachments/assets/04e6ba78-b99b-4bc0-8bda-32000213f063
Setting the FAQ page to "I don't have this page yet" and then clicking save triggers a reload of the page, after which the FAQ page is set to "I have this page".

To Reproduce

Step-by-step reproduction instructions

  1. Go to the PP settings.

  2. Set your FAQ page to My site doesn't need this page and save the page.

  3. Now change the FAQ page setting to "I don't have this page yet", and click Save.

  4. Expected results

  5. After reloading, the setting should remain at "I don't have this page yet".

Actual results

  1. The setting switches to "I have this page".

Screenshots, screen recording, code snippet

See screen recording above.

Technical info

  • If relevant, which editor is affected (or editors):
  • Block Editor
  • Gutenberg Editor
  • Elementor Editor
  • Classic Editor
  • Other:
  • Which browser is affected (or browsers):
  • Chrome
  • Firefox
  • Safari
  • Other:

Used versions

  • Device you are using: Macbook
  • Operating system: OSX Sonoma 14.4
  • PHP version: 8.4
  • WordPress version: 6.7.1
  • WordPress Theme: Home-made
  • Plugin version: 1.0.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions