[wp-trac] [WordPress Trac] #58693: wordpress posts custom-meta box issue

WordPress Trac noreply at wordpress.org
Sat Jul 1 11:37:35 UTC 2023


#58693: wordpress posts custom-meta box issue
-------------------------------------------------+-------------------------
 Reporter:  mdesignfa                            |      Owner:  (none)
     Type:  defect (bug)                         |     Status:  new
 Priority:  normal                               |  Milestone:  Awaiting
                                                 |  Review
Component:  Options, Meta APIs                   |    Version:  6.2.2
 Severity:  critical                             |   Keywords:  needs-
  Focuses:  ui, administration, coding-          |  testing
  standards                                      |
-------------------------------------------------+-------------------------
 Hello to the WordPress development team!

 im a wordpress plugin developer and I developed a Custom-Plugin for my
 customer (www.delbarbash.com) and I found a critical issue with
 post/products meta_box

 when i disable custom_meta (checkbox) form the screen-options (top-page)
 and reload the admin posts page or products page But again, the field was
 taken by PHP rendered (I saw this from view-page-source)

 Issue: and when i update some product meta value from database or by ajax
 or somewhere else and then update the post the post will send the old
 meta_keys and meta_values to the wpdb and it seems to be a bug or
 malfunction Of course I disabled entirely the meta_box with the aid of
 remove_meta_box function (in my plugin)

 My suggestion: to get rid of this weird issue I suggest a new system that
 when a user disable this meta_box (or all other boxes) from screen option
 an JS Confirmation take effect and ask the user (if you dont have un-saved
 values on this page, we will reload the page again) After page reload the
 page must-not render that box with PHP again! (instead of hidden that box
 with just CSS)

 Thanks a lot!

 Thank you for considering and checking my request and believe that this
 can be a big problem!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58693>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list