Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #45035, comment 14


Ignore:
Timestamp:
12/26/2025 11:49:46 AM (7 weeks ago)
Author:
manishchopra
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #45035, comment 14

    initial v1  
    1919- Plugins:
    2020  * Test Reports 1.2.1
     21
     22=== Steps to Reproduce / Verify
     231. Set up a local WordPress core development environment using the
     24   `wordpress-develop` repository and run WordPress from the `build/` directory.
     252. Download and apply the patch:
     26   https://patch-diff.githubusercontent.com/raw/WordPress/wordpress-develop/pull/10647.diff
     27   using `git apply`.
     283. Rebuild WordPress assets using `npm run build`.
     294. Register a custom post type with the `at_a_glance` argument set to `true`, for example:
     30
     31{{{
     32#!php
     33register_post_type(
     34    'mycpt',
     35    array(
     36        'label'       => 'My CPT',
     37        'public'      => true,
     38        'show_ui'     => true,
     39        'at_a_glance' => true,
     40    )
     41);
     42}}}
     43
     445. Create and publish at least one post of the custom post type.
     456. Navigate to Dashboard → At a Glance.
     467. Verify that the custom post type appears in the widget with the correct count.
     478. Update the custom post type registration by setting `at_a_glance` to `false`
     48   (or removing the argument), refresh the dashboard, and verify that the custom
     49   post type no longer appears.
    2150
    2251=== Actual Results