WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18875, comment 1


Ignore:
Timestamp:
10/06/11 17:15:23 (3 years ago)
Author:
sbressler
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18875, comment 1

    initial v1  
    1 Attached is a patch that fixes this issue. I decided to address the issue in the constructor rather than before the classes were output so that we can address any other uses of $args that might be added later to the file. 
     1Attached ([attachment:18875.1.diff]) is a patch that fixes this issue. I decided to address the issue in the constructor rather than before the classes were output so that we can address any other uses of $args that might be added later to the file. 
    22 
    3 While $args['singular'] might be empty, there is no harm to running it through sanitize_title as well. However, that line could easily be wrapped in `if ( $args['singular'] )` if performance is a concern. 
     3While `$args['singular']` might be empty, there is no harm to running it through sanitize_title as well. However, that line could easily be wrapped in `if ( $args['singular'] )` if performance is a concern.