WordPress.org

Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #23387


Ignore:
Timestamp:
02/05/13 11:54:36 (15 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23387

    • Property Keywords settings-api added
    • Property Version changed from trunk to 3.5
  • Ticket #23387 – Description

    initial v2  
    33I've modified the add_settings_field() function to allow for a priority to be set (much like when adding settings to the theme customizer). I also added uasort($wp_settings_fields[$page][$section], 'compare_priority'); to the do_settings_fields() function, where 'compare_priority' is a slightly modified version of the compare function used to set the priority of the theme customizer sections. 
    44 
    5 This patch is loosely related to [http://core.trac.wordpress.org/ticket/22487] which adds priority to settings sections, but not individual settings. 
     5This patch is loosely related to #22487 which adds priority to settings sections, but not individual settings.