Add permalink basename format

This commit is contained in:
champsupertramp
2016-01-13 12:33:21 +08:00
parent aad5a39f85
commit 217b107c19
5 changed files with 29 additions and 5 deletions
+9 -1
View File
@@ -196,7 +196,15 @@ class UM_Permalinks {
}
if ( um_get_option('permalink_base') == 'name' ) {
$user_in_url = rawurlencode( strtolower( um_user('full_name') ) );
$user_in_url = rawurlencode( strtolower( str_replace(" ",".",um_user('full_name') ) ) );
}
if ( um_get_option('permalink_base') == 'name_dash' ) {
$user_in_url = rawurlencode( strtolower( str_replace(" ","-",um_user('full_name') ) ) );
}
if ( um_get_option('permalink_base') == 'name_plus' ) {
$user_in_url = strtolower( str_replace(" ","+",um_user('full_name') ) );
}
if ( get_option('permalink_structure') ) {