WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #21013, comment 5


Ignore:
Timestamp:
06/18/12 22:00:24 (22 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21013, comment 5

    initial v1  
    11[attachment:21013.patch] didn't work for two reasons: 
    2 1. When we run the query to check if the slug already exists, `$alt_post_name` should be urlencoded. 
     21. When we run the query to check if the slug already exists, the slug should stay urlencoded. 
    332. The decoded string is shorter than 200 characters, so the slug wasn't truncated. We would need a compat version of `mb_strlen()` as well. 
    44