Support » Plugin: Simple URLs » Simple URLs not compatible with WordPress 3.5

Viewing 13 replies - 1 through 13 (of 13 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    moderator

    Tested this with rc 4 and the redirect url is saved correctly.

    try:
    – deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems.

    I should’ve mentioned this, but of course I already tried all of this. Not new to the game 😉 I merely put it here so Nathan has a reminder 😉

    Moderator keesiemeijer

    (@keesiemeijer)

    moderator

    I can confirm this issue on a brand new install.
    The plugin uses the ‘manage_links’ capability to check if you can save the redirect url. The problem probably arises from The Link Manager being removed in 3.5.
    http://core.trac.wordpress.org/ticket/21307

    By installing the link-manager plugin the redirect field saves correctly once more
    http://wordpress.org/extend/plugins/link-manager/

    This is correct. Brand new install, it doesn’t save URLs until you install “Link Manager” that keesiemeijer posted. Now all is well.

    Derek

    (@snakeair)

    Is this plugin going to ever get updated or do we have to leave the links manager plugin installed? I would love to have as little plugins as possible on my blog. lol

    For a minute, I thought the beta genesis framework I had installed was the cause but it’s not. Glad I checked this support section.

    tinasu

    (@tinasu)

    I’m having the same problem. Upgraded to WP 3.5.

    When I try to add a new Simple URL, the “Redirect URI” field isn’t being saved.

    Please help

    Surbma

    (@surbma)

    I can confirm too. The url is not saved. We are waiting for the fix. Thank you!

    John Levandowski

    (@jlevandowski)

    This can be fixed by going into the plugin.php file of the plugin.

    In the function meta_box_save remove the part that is
    !current_user_can( 'manage_links' ) ||

    Seems to work for me now.

    Surbma

    (@surbma)

    @john Levandowski – not a good idea to remove the condition. It is better to change the capability to “edit_pages” so you allow this function to users with the role editor or above.

    So it should look like this:

    if ( !current_user_can( 'edit_pages' ) || $post->post_type != 'surl' )

    Derek

    (@snakeair)

    So what is the correct coding to find and replace? I don’t want to change something and mess the whole plugin up.

    Surbma

    (@surbma)

    The code is in the plugin.php file in the line 121, right after the “is the user allowed to edit the post or page?” line.

    The original line:

    if ( !current_user_can( 'manage_links' ) || $post->post_type != 'surl' )

    Replace it with this line:

    if ( !current_user_can( 'edit_pages' ) || $post->post_type != 'surl' )

    Derek

    (@snakeair)

    That worked perfectly. Thank you for the fix.

    Mine didn’t work with new install either until I re-read the Installation part that said to go to Permalinks and hit save regardless if you made any changes. Worked like a charm… 😉

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Simple URLs not compatible with WordPress 3.5’ is closed to new replies.