WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #14490, comment 12


Ignore:
Timestamp:
10/23/2016 04:40:49 PM (5 years ago)
Author:
jackreichert
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14490, comment 12

    initial v1  
    22
    33Categories I tried with:
    4 `       echo get_cat_ID( "Jack’s cat" ); # using single comma quotation mark
    5         echo get_cat_ID( "Someone's cat" ); # using apostrophe
     4`
     5        echo get_cat_ID( "Jack’s cat" ); # using a single comma quotation mark
     6        echo get_cat_ID( "Someone's cat" ); # using an apostrophe
    67        echo get_cat_ID( "“I like spaghetti”" ); # using left and right double turned comma quotation mark
    7         echo get_cat_ID( "˓ Modifier Letter Centered Left Half Ring" ); # using modifier letter centered left half ring `
     8        echo get_cat_ID( "˓ Modifier Letter Centered Left Half Ring" );
     9`
    810
    911One thing I noticed was that the apostrophe was being translated to a single comma quotation mark here `/wp-admin/edit-tags.php?taxonomy=category`. If I called it with get_cat_ID as a single comma quotation mark it came back 0 but if I called it as an apostrophe (what I had set it up as) it was fine.