Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter activi

    (@activi)

    Hi

    I found what was the problem. the Plug in don`t decode and encode the URL input.

    Can you please tell me where and how to change the code that it will encode and decode. That`s way your plugin is going for the oscar 🙂

    Thanks,
    Shahar

    Plugin Contributor Steve

    (@36flavours)

    Hi,

    I have relaxed the permalink reformatting function a little, allowing for Non-English Characters to be entered.

    This update requires some alterations and testing, which I will carry out tomorrow, however you can get it working by replacing the reformat_permalink function in index.php with the following as a temporary solution:

    function reformat_permalink( $permalink, $prefix = '/' )
    {
    	if ( empty( $permalink ) )
    		return null;
    	// Basic sanitize functionality...
    	$permalink = sanitize_text_field( $permalink );
    	// Replace hashes and white space...
    	$permalink = str_replace( array( '#', ' ' ), array( '', '-' ), $permalink );
    	// Remove multiple dots and slashes...
    	$permalink = preg_replace(
    		array( '#/+#', '#\.+#' ),
    		array( '/', '.' ),
    		$permalink
    	);
    	// Return formatted permalink with prefix...
    	return $prefix . ltrim( $permalink, '/' );
    }

    Hopefully the update will be committed within the next day or so.

    Thanks!

    Plugin Contributor Steve

    (@36flavours)

    Hi,

    I have made some adjustments to the plugin, which means that it now converts all accent characters to ASCII characters when reformatting permalinks.

    The update has been tagged as version 0.2.7 and should be available for download very soon.

    Thread Starter activi

    (@activi)

    Hi,

    I have 0.2.7 and i updated the function

    then non-english characters stay but when accessing directly on the website with special characters 404 occurs.

    this could only be prevented if you put the %pagename% instead of the %postname% in the settings. but this makes all the posts in the websites to have 404 errors.

    is there any way to fix that

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Permalink Editor] Language problems’ is closed to new replies.