Make WordPress Core

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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36996, comment 3

    v2 v3  
    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['class'] string.
     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.