WordPress.org

Ready to get started?Download WordPress

Forums

Simple URLs
[resolved] Simple URLs not compatible with WordPress 3.5 (14 posts)

  1. Remkus de Vries
    Member
    Posted 1 year ago #

    In WordPress 3.5 you can't update (new or edit) a redirect url. It will save, but upon save the redirect field is empty.

    http://wordpress.org/extend/plugins/simple-urls/

  2. keesiemeijer
    moderator
    Posted 1 year ago #

    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.

  3. Remkus de Vries
    Member
    Posted 1 year ago #

    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 ;)

  4. keesiemeijer
    moderator
    Posted 1 year ago #

    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/

  5. Scott Buehler
    Member
    Posted 1 year ago #

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

  6. snakeair
    Member
    Posted 1 year ago #

    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.

  7. tinasu
    Member
    Posted 1 year ago #

    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

  8. Surbma
    Member
    Posted 1 year ago #

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

  9. John Levandowski
    Member
    Posted 1 year ago #

    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.

  10. Surbma
    Member
    Posted 1 year ago #

    @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' )

  11. snakeair
    Member
    Posted 1 year ago #

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

  12. Surbma
    Member
    Posted 1 year ago #

    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' )

  13. snakeair
    Member
    Posted 1 year ago #

    That worked perfectly. Thank you for the fix.

  14. dmodegirl
    Member
    Posted 1 year ago #

    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... ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.