WordPress.org

Make WordPress Core

Changes between Version 3 and Version 4 of Ticket #22182, comment 6


Ignore:
Timestamp:
10/25/12 09:01:28 (18 months ago)
Author:
dgwyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22182, comment 6

    v3 v4  
    33If we elect to use class methods, rather than a filter, a more elegant solution would be to add a get/set method to update section title labels rather than having to remove/add sections to update each one individually. 
    44 
    5 I have uploaded a patch (update_section_titles.diff) to add a class method that accepts an array of key/value pairs of section title id's/labels to update. Using this new method you can update ANY/ALL registered section title labels at once, included user defined ones (not just core defined ones). 
     5I have uploaded a patch (update_section_titles.diff) to add a class method that accepts an array of key/value pairs of section title id's/labels to update. Using this new method you can update any/all registered section title labels in ONE go, including user defined ones (not just core defined ones). 
    66 
    7 End usage is then simply: 
     7Usage is simply: 
    88 
    99{{{