WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Sketch Bookmarks needs a little fix with the directory (4 posts)

  1. Zemalf
    Member
    Posted 4 years ago #

    I believe the get_settings is deprecated. (for a long time: http://markjaquith.wordpress.com/2006/08/30/get_settings-is-deprecated/)

    + the plugin does not work if WP is not installed on separate dir. This is not a generic solution (as I used constant path), but made this quickly for my own blog:

    get_settings('home')
    -->
    get_option('home')

    +

    /wp-content/plugins/sketch-bookmarks/images/
    -->
    /<install dir or path>/wp-content/plugins/sketch-bookmarks/images/

    http://wordpress.org/extend/plugins/sketch-bookmarks/

  2. holas84
    Member
    Posted 4 years ago #

    I think that I now have that fixed. I'll have it udated in the directory in about 15 minutes. We'll call it 1.1.1 so when you see that version you'll see that it's been updated. Thanks for helping me find that.

  3. Zemalf
    Member
    Posted 4 years ago #

    This'll fix the latest fix :)

    $sketch_images_folder = get_option('wpurl')
    -->
    $sketch_images_folder = get_option('siteurl')

    or this works too (but I think get_option('siteurl') is better):

    $sketch_images_folder = get_bloginfo('wpurl')

    For future reference:

    1. get_option('siteurl') finds the option that is saved as "WordPress address" on Settings, where the install dir is defined.
    2. get_option('home') finds the option that is saved as "Blog address" on Settings, where the blog root is defined.
  4. holas84
    Member
    Posted 4 years ago #

    So get_option(wpurl) doesn't work?

    Alright. I'll get it fixed within the next hour. Thanks for the help.

Topic Closed

This topic has been closed to new replies.

About this Topic