WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #15434, comment 5


Ignore:
Timestamp:
05/22/13 10:49:37 (11 months ago)
Author:
networksolution
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15434, comment 5

    v2 v3  
    11Hi. You can use ' that is the HTML entity for single quote in shortcode attributes, if he purpose is to display the value of that shortcode attribute. 
     2 
     3Remember that attributes not to be displayed should be intended as variables in a programming Language, so complex strings as value aren't a requirement. It would be bad programming to pass via attributes things like html code (the only one exception would be, for example, for a title attribute to be displayed, in this case you may use html entities as stated before). If you need to pass complex data, pass an id and retrieve data from db/file in the php code... 
    24 
    35Regards.