
WordCamp Miami, 2015
Slides: https://adcwp.me/wcmia2015

Aaron D. Campbell – https://aarondcampbell.com/
aaron@ithemes.com – @AaronCampbell
http://profiles.wordpress.org/aaroncampbell/

Index: /trunk/wp-includes/post.php
===================================================================
--- /trunk/wp-includes/post.php (revision 5684)
+++ /trunk/wp-includes/post.php (revision 5685)
@@ -607,5 +607,5 @@
$suffix = 2;
do {
- $alt_post_name = $post_name . "-$suffix";
+ $alt_post_name = substr($post_name, 0, 200-(strlen($suffix)+1)). "-$suffix";
$post_name_check = $wpdb->get_var("SELECT ... LIMIT 1");
$suffix++;

Aaron D. Campbell – https://aarondcampbell.com/
aaron@ithemes.com – @AaronCampbell
http://profiles.wordpress.org/aaroncampbell/
Slides: https://adcwp.me/wcmia2015
This presentation is running on WordPress using the Presenter plugin