post_date, Jerome's plugin, WordPress 2.x (3 posts)

  1. dherren
    Posted 10 years ago #

    I run several sites in which pages get heavy use, and I've been using Jerome's pageupdate plugin for quite some time.

    For some reason, the plugin fails to update the database on SOME of the 2.0 blogs, while it works fine on others. In the testing I've done so far, it would _seem_ as though it works on blogs installed new as 2.0 blogs, but doesn't work on any blog upgraded from 1.x revs to the 2.0 tree. Nothing I see in the very simple would give me any indication of what the problem might be. If I manually run virtually the same code against the sql database, the fields update fine.

    No error is generated that I see, but the post_date and post_date_gmt fields are not updated.

    Incidental to this issue, I'm wondering if there is a way in 2.0 to display the post_modified and/or post_modifed_gmt times in post meta rather than having the_time() return the post_date. I've searched the docs and while I know I can do a custom query, this seems like something that would be commonly needed, particularly for pages

  2. dherren
    Posted 10 years ago #

    Follow up:

    After doing some testing by inserting some die("message") lines in various places, it would appear that the variable $post_status is not being returned to Jerome's plug-in though it is declared as global.

    Is this a 2.x change that $post_status is not available?

  3. dherren
    Posted 10 years ago #


    Is $post_status no longer a global in the 2.x versions of WP?

Topic Closed

This topic has been closed to new replies.

About this Topic