[wp-trac] [WordPress Trac] #38097: Add ability to Settings API to assign positioning

WordPress Trac noreply at wordpress.org
Tue Jun 1 06:55:23 UTC 2021


#38097: Add ability to Settings API to assign positioning
----------------------------+-----------------------------
 Reporter:  dartiss         |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  Administration  |     Version:  4.7
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  administration
----------------------------+-----------------------------

Comment (by dartiss):

 Hi 👋🏼

 Thank you @kapilpaul for the patch.

 I see these as two issues but put them into one ticket as one was reliant
 on the other - I'm not sure if you want to split it or not.

 The first stage, which you've done, is to add a positioning parameter to
 the Settings API so that we could define where on a screen a particular
 options should appear.

 However, this doesn't allow you to do this with the existing default
 settings, as they're all hard-coded, rather than using the API. Let me
 give you an example - if I created a plugin that was to do with Pingbacks
 and I wanted to add a new option next to the existing Pingback option
 then, even with this new positioning parameter, you couldn't do it as the
 core settings isn't using the API.

 So, the second stage is to modify the core settings so that they too using
 the API - it not only allows for the example that I just gave but is,
 well, let's be honest, it's just right that WordPress should be using its
 own APIs, where possible, to provide a standardised design.

 I hope this explains it a little further.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/38097#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list