Make WordPress Core

Changes between Initial Version and Version 4 of Ticket #51288


Ignore:
Timestamp:
09/24/2020 12:03:56 AM (5 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51288

    • Property Keywords has-patch added; needs-patch removed
  • Ticket #51288 – Description

    initial v4  
    11I just stumbled upon some issues with (very) old blogs that still have the post_category column in the posts table.
    22
    3 After this column was removed 11 years ago (https://core.trac.wordpress.org/ticket/9435#comment:2) we never handled their removals on db upgrades.
     3After this column was removed 11 years ago in [10895] / #9435, we never handled their removals on db upgrades.
    44
    55This is an issue because we have a magic getter in WP_Post class that will fill the non existent post_category property. However, if the column exists in the database, the magic getter isn't triggered and we get 0 every time. So I think we can consider this a bug.