Skip to content

Sorting/Filtering for PHP version does not work #815

@Zodiac1978

Description

@Zodiac1978

Describe the bug
On /wp-admin/admin.php?page=managesites I have 88 sites listed. The dropdown is set to "Show all entries". But if I click on the column header "PHP" in the table the table does not get sorted correctly.

And even weirder: If I filter for "PHP < 8.0" it shows only one site (although the Insights menu shows 27 on PHP 7.4)

To Reproduce
Steps to reproduce the behavior:

  1. Go to /wp-admin/admin.php?page=managesites

  2. Click on column header PHP in table

  3. If you have different PHP version in the table, the sorting does not reflect that

  4. Go to /wp-admin/admin.php?page=managesites

  5. Click on Status dropdown and set it to "PHP < 8.0"

  6. If you have different PHP version in the table, the filtering does not reflect that

Expected behavior
1: Sorting based on PHP version (descending or ascending, but not mixed anymore)

2: Only sites on PHP < 8.0 (in my case 27 on 7.4 should be seen and not only one)

Screenshots

27 sites on PHP 7.4:
Image

Only 1 shows up if I filter for "PHP < 8.0":
Image

Table is sorted by PHP version (active little arrow in header), but PHP version are still mixed up:
Image

Desktop (please complete the following information):

  • OS: macOS 13.7.6
  • Browser Firefox 140.0.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions