WordPress.org

Plugin Directory

Changeset 179792


Ignore:
Timestamp:
12/04/09 23:30:13 (4 years ago)
Author:
rmccue
Message:

Make accented letters work. v1.0.1

Location:
to-title-case/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • to-title-case/trunk/readme.txt

    r178356 r179792  
    4848== Changelog == 
    4949 
     50= 1.0.1 = 
     51Kroc: Add `\p{L}` to get accented letters working. 
     52 
    5053= 1.0 = 
    5154* Original version. 
  • to-title-case/trunk/to-title-case.php

    r178363 r179792  
    44Plugin URL: http://ryanmccue.info/projects/wordpress/to-title-case/ 
    55Description: Automatically converts post titles on-the-fly, using <a href="http://camendesign.com/code/title-case">Kroc Camen's port</a> of John Gruber's title case. 
    6 Version: 1.0 
     6Version: 1.0.1 
    77Author: Ryan McCue 
    88Author URI: http://ryanmccue.info/ 
     
    2323     
    2424    //find each word (including punctuation attached) 
    25     preg_match_all ('/[\w&`\'?"?.@:\/\{\(\[<>_]+-? */u', $title, $m1, PREG_OFFSET_CAPTURE); 
     25    preg_match_all ('/[\w\p{L}&`\'?"?.@:\/\{\(\[<>_]+-? */u', $title, $m1, PREG_OFFSET_CAPTURE); 
    2626    foreach ($m1[0] as &$m2) { 
    2727        //shorthand these- "match" and "index" 
Note: See TracChangeset for help on using the changeset viewer.