title-capitalization-for-wordpress icon indicating copy to clipboard operation
title-capitalization-for-wordpress copied to clipboard

Ignore code in titles/headings

Open galengidman opened this issue 11 years ago • 4 comments

On my blog I sometimes have case-sensitive code in the title of my posts. A good example of this is one I wrote last night:

http://galengidman.com/2014/05/08/adding-static-menu-items-to-wp_nav_menu/

For functions, if it could find all instances of (), track backwards to the first space, and ignore everything in between that might work. Variables would be a little harder, but I think it might be something to look into.

galengidman avatar May 09 '14 15:05 galengidman

Just tested with your title and it capitalized as it should, the code not capitalized.

afragen avatar Aug 06 '16 17:08 afragen

This has been tested and verified; however, if a function call exists in your title and includes a variable such as call_this( $variable ); the result will be call_this( $Variable );.

Before a final 1.3.0 release, this will be fixed.

tommcfarlin avatar Aug 16 '16 21:08 tommcfarlin

Honestly, I don't even remember opening this, but thanks so much for testing and taking care of this!

galengidman avatar Aug 16 '16 21:08 galengidman

Some of #30 should solve this issue.

afragen avatar Aug 23 '16 21:08 afragen