[wp-trac] [WordPress Trac] #61890: Handle WP_Term known, named dynamic properties for PHP 8.2

WordPress Trac noreply at wordpress.org
Fri Aug 23 17:09:50 UTC 2024


#61890: Handle WP_Term known, named dynamic properties for PHP 8.2
-------------------------------------+-------------------------------------
 Reporter:  hellofromTonya           |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  6.7
Component:  Taxonomy                 |     Version:  4.4
 Severity:  minor                    |  Resolution:
 Keywords:  php82 has-patch has-     |     Focuses:  coding-standards, php-
  unit-tests needs-testing needs-    |  compatibility
  dev-note has-testing-info          |
-------------------------------------+-------------------------------------
Changes (by hellofromTonya):

 * keywords:  php82 has-patch has-unit-tests needs-testing needs-dev-note =>
     php82 has-patch has-unit-tests needs-testing needs-dev-note has-
     testing-info


Comment:

 == Testing Instructions for Default Site

 === Step up
 1. Use WordPress 6.6.1.
 2. Use a default site, meaning no plugins or theme activated unless listed
 in the set up or testing instructions.
 3. For testing a classic / non-block site:
    * Install and activate the Classic Editor plugin.
    * Install and activate the Twenty Twenty theme.
    * No must-use scripts.
 4. For testing a default (i.e. block) site:
    * No plugins should be activated.
    * No must-use scripts.
    * Activate Twenty Twenty-Four (TT4) theme.

 === Steps to Test
 Do these test steps for both a default block site and classic / non-block
 site:

 1. Add multiple tags.
 2. Test the Bulk Delete: add 2 new tags and then bulk delete them.
 3. Add multiple categories including at least one with a parent.
 4. Test the Bulk Delete: add 2 new categories and then bulk delete them.
 5. Test assigning tags and categories:
    * Add at least one new post and assign the tags and categories to it.
    * Go to Posts > Categories and verify each category's Count matches the
 number of posts using that category.
    * Go the same with the Tags.
    * View the post in the frontend.
         * Verify the categories and tags are listed.
         * Click on one of the categories. Observe it's linkable and
 properly goes to the term's archive page.
         * Repeat with a tag.
 6. Feed: Go to the site's home page. Append `/feed/` to its URL. Check
 that the feed has each of the terms (listed as `category`) for the post(s)
 you added.

 === Expected Results

 - ✅ Should be able to add new categories and tags.
 - ✅ Should be able to edit categories and tags.
 - ✅ Should be able to bulk delete categories and tags.
 - ✅ Should be able to assign categories and tags in a post.
 - ✅ Each term count should match to the number of posts using it.
 - ✅ Term archives should be linkable and render posts using it.
 - ✅ Categories and tags should be shown and linkable in each post in the
 front-end.
 - ✅ Category widget and block should show all categories.
 - ✅ Tag cloud widget and block should include all assigned tags.
 - ✅ Server logs and/or the `debug.log` should be clear or at a minimum
 not include any errors associated with terms.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61890#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list