Forum Replies Created

Viewing 7 replies - 31 through 37 (of 37 total)
  • Thread Starter PeteHoliday

    (@peteholiday)

    Apparently I was looking at an older version of the source (and transposed ‘status’ and ‘save’), but the point is still the same: the status filter is being called before WP decides what the final status should be.

    wp_insert_post calls sanitize_post on wp-admin/includes/post.php line 1224. sanitize_post calls sanitize_post_fields, which fires the status_save_pre filter.

    After all of that, WP decides if the post is “future” or not around line 1300.

    That filter either needs to be fired after the post status is actually determined by wordpress, or there should be a different filter fired that plugins can use what won’t muck-up the future posting.

    Changing Line 33 to the following fixes the error for me:

    if (array_key_exists('Referer', $package['headers_mixed']) && stripos($package['headers_mixed']['Referer'], $package['headers_mixed']['Host']) === FALSE) {

    30 seconds copy and paste and I’m set “forever.”

    And we’re back to making users muck around in PHP files when it could have easily been included on an admin screen. It’s just lazy on the part of the developers.

    Thread Starter PeteHoliday

    (@peteholiday)

    1. It takes as long as it takes.

    Gee, I was under the impression that it would take less time than it took. Thank you for clearing that up for me. You’ve been incredibly helpful.

    Forum: Plugins
    In reply to: Widget plugin fatal error

    I see this same problem but, odly, it only happens to one author. It doesn’t have to do with their username either, because when I log in to their accoutn I see the widgets just fine.

    Ok, so I solved my personal problem — it looks like the “Theme Switcher” extension conflicts. When I deactivated it sidebar widgets turned on.

    I have a bizarre problem.

    Simply: I cannot get the menu to appear. Here’s what I’ve done:

    1. downloaded and installed the latest widget files.
    2. Widgetized my theme (sidebar.php and functions.php)
    3. Activated the plugin and some widgets
    4. Swore at my computer because the menu didn’t appear.

    Then, thinking maybe I was messing something up, I…

    5. Copied the updated files to the Default (kubrick) and Classic themes from the widgets install.
    6. Switched to those themes in Presentation.
    7. Swore at my computer because the menu still didn’t appear.

    …I have no idea what’s going on or even where to begin. It just isn’t working.

    Suggestions?

    PS: I’m actually using 2.02 but I didn’t want to start a new thread for it.

Viewing 7 replies - 31 through 37 (of 37 total)