Ticket #569: template-functions-links.diff

File template-functions-links.diff, 586 bytes (added by stilgar, 6 years ago)
  • template-functions-links.php

    old new  
    7070                        date('H', $unixtime), 
    7171                        date('i', $unixtime), 
    7272                        date('s', $unixtime), 
    73                         $post->post_name, 
     73                        urlencode($post->post_name), 
    7474                        $post->ID, 
    7575                        $category, 
    7676                        $author, 
    77                         $post->post_name, 
     77                        urlencode($post->post_name), 
    7878                ); 
    7979                return apply_filters('post_link', get_settings('home') . str_replace($rewritecode, $rewritereplace, $permalink), $post); 
    8080        } else { // if they're not using the fancy permalink option