WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #36996, comment 3


Ignore:
Timestamp:
08/13/2016 09:09:55 PM (5 years ago)
Author:
wido
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36996, comment 3

    v1 v2  
    1818}}}
    1919
    20 If this will considered a bug, we can do the same thing in code, just for example. Store the $attr parameter into $user_attr before the wp_parse_args and then check if the $user_attr has a key 'class', that means the $default classes have been overwrite, if so, append the default classes to the new $attr array.
     20If this will considered a bug, we can do the same thing in code, just for example. Store the $attr parameter into $user_attr before the wp_parse_args and then check if the $user_attr has a key 'class', that means the $default classes have been overwrite, if so, append the default classes to the new $attr['class'] string.