Unfilter links in captions in the WordPress Add Image dialogue

Between WordPress 3.0 and WordPress 3.1, code was added to change certain characters in image captions into their HTML/ASCII character code equivalents. However, some people like to include links in captions, and this new filter broke that ability by swapping valid link code (albeit with strict limitations on the use of single and double quote characters) for HTML characters.

The following function adds a filter that removes this character replacement.

### References


Leave a Reply