WordPress.org

Ready to get started?Download WordPress

Forums

Pros and Cons of WP 2.1 (IMHO) (18 posts)

  1. ElaineVigneault
    Member
    Posted 7 years ago #

    I switched to WP 2.1 a week ago, played around with it a bit and then went live. Here are some of my thoughts about the new version:

    Me likes:
    1. Auto-save posts. I've lost a few posts in older WP versions because there was no autosave and I never found an autosave plugin.
    2. I like the toggle tabs between visual editor and code editor.
    3. In the future I plan to use the feature that lets me set a particular page as the home page without moving WP into a subdirectory.

    Me no likes:
    1. Feed is cut off at the <--MORE--> tag without an option to override. I don't so much mind that it's cut off there because I use the More tag infrequently (1/5 posts) but it confuses some of my subscribers.

    I haven't noticed any other new features yet, nor have I had any problems.

    Thanks to everyone who worked hard to produce 2.1.

  2. Chris_K
    Member
    Posted 7 years ago #

    Regard the feed thing. I'm using this plugin to "fix" that: http://cavemonkey50.com/code/full-feed/

  3. calendo
    Member
    Posted 7 years ago #

    I do not like the autosave feature and would like some advice on how to turn it off.

    I don't want autosave to save changes I may not be sure of. Once the page saves, I lose the undo function in Firefox that allows me to reconsider and restore old versions.

    How do I shut autosave off? Surely this is a feature we can opt out of.

  4. Chris_K
    Member
    Posted 7 years ago #

    Autosave doesn't seem to happen once the post has been published. (in other words, when editing an already published post)

    Until then, why is it an issue?

  5. DianeV
    Member
    Posted 7 years ago #

    I'm going to guess that calendo is talking about posts he's writing but haven't yet been published. Maybe not?

  6. Chris_K
    Member
    Posted 7 years ago #

    Well, I guess that's where I was headed (in my own meandering style). If the post hasn't been published, then it isn't on the blog yet, right? So.. why worry about ill-effects of an early save? Nobody's gonna see it...

  7. calendo
    Member
    Posted 7 years ago #

    Correct. I work on a professional site that features blog entries. Like every conscientious writer, I write things, polish them and sometime realize I've overdone the polish and lost the basic sense of a sentence.

    But autosave wipes out the ability to undo in Firefox.

    This is why in most applications autosave is off by default. You need to go into options to switch it on.

    For me an uncontrollable autosave is a design flaw in 2.1, and I hope you will give users the option to turn it off, as well as set the time interval for saves, in future iterations.

    For now I would like to go into the basic code, if I have to, and shut this puppy down.

    Meanwhile, I love wp. Because of autosave, I have to write offline and then copy/paste copy in after the piece is more or less done (one never stops tweaking -- at least control-freaks like myself don't.) The downside is that by composing offline I lose the ability to see how the text is working with -- or against -- the pictures that I use to dress up the copy.

    Can you help me out?

  8. calendo
    Member
    Posted 7 years ago #

    The ill effects of an early autosave is you can't undo it, can't retrive anymore the copy you changed a moment ago and now wish to change back to its original.

    Autosave kills the "undo" capabilites of Firefox. Once a page is saved, Firefox loses memory of your past changes.

    Got it now?

  9. Rove
    Member
    Posted 7 years ago #

    To disable autosave you have to edit the files /wp-admin/post.php en /wp-admin/post-new.php.
    Find the line that says wp_enqueue_script('autosave'); and delete that line.

    Remember, make a backup of the files you edit first in case something goes wrong.

    I agree it should be an option instead of a default feature.

  10. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    A somewhat easier way:
    <?php
    function adjust_autosave($seconds) {
    return "999999";
    }
    add_filter('autosave_interval','adjust_autosave');
    ?>

    This adjusts the autosave interval from the default of 120 seconds up to 999999 seconds. Which means that it will only autosave if you leave it up for about 11.5 days or so. :)

    If you prefer a different interval, change the number.

    This could be inserted into a plugin or into your theme's functions.php file, if you don't feel like making a plugin.

  11. ElaineVigneault
    Member
    Posted 7 years ago #

    Overall, my main complaint with 2.1 (and for all WP upgrades) is that the new features added do not have options to turn them off. We now must get plugins to turn off new features.

    This is a serious design flaw in my opinion. I think every addition of functionality should include an option to remove that function.

    All in all, though, I'm happy with 2.1 and I'll keep using it :) And thank you to all the hard workers who created it. Open source is awesome and code IS beautiful (even if I don't understand most of it).

  12. jfinchatl
    Member
    Posted 7 years ago #

    I've been having problems with the Auto-Save functionality since it was deployed in 2.1.

    Here's what happens:

    1. I start to enter a post
    2. I continue to type (I can be long winded, imagine that!)
    3. Auto-Save kicks in and refreshes the screen.
    4. I can then no longer add categories, and when I try to click the "Save" button it gives me an error of "Are you sure you want to navigate away from this page?".
    5. At that point no matter what I click (OK or Cancel) I lose my post.
    6. My screams of rage can be heard in the next county.

    I would like to propose an enhancement to the WP-Admin interface whereby you can either disable the auto-save functionality (a check box would work great), or you can increase the auto-save time increment ... Or both!

    This would likely help those who are having issues with this new feature, and also give flexibility for Admins to configure their WordPress blog however they wish.

    Help? Please?

  13. MichaelH
    Member
    Posted 7 years ago #

    @jfinchatl - can't duplicate your problem, at least on a Version 2.2 system.

    Regarding your request that Autosave be a user option, you might want to post that request at the WordPress trac system http://trac.wordpress.org Your forum login/password will work there.

  14. Dgold
    Member
    Posted 7 years ago #

    I don't understand why they deprecated template-tags that have been used in the Default theme for years. This means 2.1 / 2.2 breaks everyone's theme who has been using Kubrick since 1.5. That must be 10,000's of broken blogs. I am hating this change right now. It might be better if I understood a reason for it.

    The biggest example is wp-list-cats is broken. You have to change the code to wp-list-categories, which uses different arguments so you have to figure out how to change the options too -- all this mucking around in the code, just to restore the same Category list I've had since WP 1.5!?!

    Without making this change: my category list displays the Link categories along with the Post cats! Ugly.

    This seems like a crazy task to require of people who merely selected the Default theme in 1.5 and stuck with it.

    I also found out previous_post and next_post are deprecated, but I haven't seen yet whether this breaks the links on my site.

  15. Chris_K
    Member
    Posted 7 years ago #

    But if you had upgraded the default theme as a proper part of your upgrade, you'd type with a lot fewer exclamation marks!

  16. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    It might be better if I understood a reason for it.

    All the older functions that used straight PHP parameter passing methods are being slowly phased out in favor of the query_string method of passing parameters.

    In your case, wp_list_cats() still exists, but it's not being updated anymore, and so the changes to categories (combining link and post categories) in 2.1 is what actually broke your listing.

    Why is query_string argument passing better? Well, the main reason is that it allows arguments which can be stacked internally using multiple functions.

    wp_list_categories() uses several possible parameters. But it then calls an internal function walk_category_tree() to handle the recursive display of the categories. walk_category_tree() gets passed that same query string down to it, where it uses some other parameters (not shared in this case). Thus the wp_list_categories() call gains all of walk_category_tree()'s options by default, without any special coding for it, since you can just use all those parameters in the call and control it at both levels.

    It makes the code a lot cleaner, a lot more expandable, and future-compatible.

  17. Dgold
    Member
    Posted 7 years ago #

    "It makes the code a lot cleaner, a lot more expandable, and future-compatible."

    "Well, the main reason is that... wp_list_categories()... allows... several possible parameters... which can be stacked..."

    Now that is an explanation, written in plain English, which sounds like a reasonable justification -- in contrast to the Codex and 2.1 announcements which I saw as simply saying 1 function changed to another function, without fair-warning of the likely impact on Ye Olde Default Theme.

    A user-friendly sentence like that should be in the Announcement when something like this is changed (something which affects the presentation of many ordinary users' themes if they upgrade the WP without totally overwriting their theme). The majority of WP users (I would guess 95%) are not code-hackers like a lot of people on this forum, don't know what a "function" is, and if they're like me - just want to know what the changes are, how to work-around, and basically why. Especially if it breaks themes. Especially the Default theme.

    The paragraph you wrote before that - thanks but I don't get it, but I did understand that the new wp-list-categories takes multiple arguments (and I've learned that arguments is code-speak for what normal people call Options; a more sophisticated but sometimes murky word is "parameters"). Options = Good, so that's good news as well.

    For the benefit of HandySolo, no exclamation marks were harmed in the production of this reply.

  18. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    The problem is that the reasoning behind these changes is all internal. It's hard to explain it without delving into the internal code, layout, and logic of the system. It doesn't offer any immediately obvious benefits to the user or theme author. It offers benefits to the code authors and people adding features and trying to maintain the thing and create new versions.

    As for the Default theme, the Default theme has been changed many times too. If you're not upgrading your theme along with everything else, well, you're not going to get the newest changes.

    The latest Default theme does indeed use wp_list_categories().

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags