﻿Stars	ticket	summary	owner	component	_version	priority	severity	milestone	type	_status	workflow	_created	modified	_description	_reporter
	14368	"make the 'orderby' argument in get_posts() accept all ""post"" fields"		Query	3.0	normal	normal		enhancement	reopened	has-patch	2010-07-20T23:58:41Z	2022-08-01T15:09:02Z	"Right now, some post's fields were not accepted when retrieving posts (even though they were documented in codex . for example ""name"" (slug)  was missing).

this patch sorts the elements in the $allow_keys array (in the same order as the db' s columns) and adds the missing ones, I added every field except the ones that were long text fields (content, excerpt, etc)
"	wjm
	65523	Connectors: add support for activation and deactivation from the Connectors screen		AI	7.0	normal	normal	7.3	defect (bug)	assigned	has-patch	2026-06-23T15:27:59Z	2026-10-20T10:14:00Z	"Currently, users who want to temporarily stop using a configured Connector must deactivate the associated connector plugin outside of the Connectors screen (meaning directly within the Plugins screen).

While connector configuration (including any stored credentials / API key) is preserved when a connector plugin is deactivated, this workflow is not obvious to users and requires navigating away from the Connectors interface.

Potential use cases include:

* Temporarily disabling a Connector while troubleshooting
* Switching between multiple configured AI providers
* Avoiding the need to delete and later reconfigure Connector credentials

The underlying functionality already exists through plugin activation and deactivation.  However, the Connectors UI does not currently provide an obvious way to manage Connector availability.

This ticket proposes exploring improvements to the Connectors screen that would allow users to activate or deactivate configured connectors directly from that interface, while preserving existing configuration and credentials.

This issue was identified through AI provider connectors but applies generally to the Connectors infrastructure in Core.

----

Originally reported by @pbearne in https://github.com/WordPress/ai/issues/632.

"	JeffPaul
	65612	Abilities API: proposal for read-only navigation menu abilities (core/list-nav-menus, core/get-nav-menu)		Abilities API		normal	normal	Future Release	enhancement	new		2026-07-11T01:45:29Z	2026-07-14T07:49:48Z	"An end-to-end agent session against a live WordPress site (Astra child theme, MCP server driving abilities-api) surfaced a gap: there's no way for an agent to list, inspect, or otherwise reason about the site's navigation menus. wp_get_nav_menus(), wp_get_nav_menu_items(), get_registered_nav_menus(), and get_nav_menu_locations() are all stable core functions, but none of them are exposed through the Abilities API. Full details and the manual-work-cost ranking are in [https://github.com/WordPress/mcp-adapter/issues/181 WordPress/mcp-adapter#181].

== Proposal ==
Two read-only abilities:

* core/list-nav-menus: wraps wp_get_nav_menus(), get_registered_nav_menus(), and get_nav_menu_locations().
* core/get-nav-menu({ id }): wraps wp_get_nav_menu_items() for a given menu.

Both are read-only and idempotent, with no destructive side effects. A working proof of concept is drafted and tested on a fork: [https://github.com/SankofaForge-Hacks/wordpress-develop/compare/trunk...add/nav-menu-core-abilities fork diff].

== Open questions ==
* Category: should these live under navigation, or under the existing site category alongside core/get-site-info?
* Is the readonly: true, destructive: false, idempotent: true meta annotation the right shape for abilities like this?

== Next steps ==
Per justlevine's guidance in #core-ai, the plan is to land this in WordPress/ai for review and real-usage feedback before proposing a merge into core. This ticket is the first step; a WordPress/ai PR and eventual merge proposal will follow."	builder106
	65349	Add Theme Abilities (tracking issue)		Abilities API	7.1	normal	normal	Future Release	enhancement	assigned		2026-05-26T13:56:42Z	2026-05-27T09:38:28Z	"**Add Theme Abilities:**

**core/get-active-theme**                   
Returns information about the currently active theme, optionally filtered to a subset of fields.                                                            
                                                                                                                                                              
**core/get-theme-info**
Returns information about a specific installed theme looked up by its stylesheet slug, optionally filtered to a subset of fields.                           
                                                                                                                                                              
**core/get-themes**
Returns a list of all installed themes (optionally filtered by active/inactive status) along with the slug of the currently active one.                     
                                                                                                                                                              
**core/activate-theme**
Activates an installed theme by its stylesheet slug and reports the previous and new active stylesheet.  "	mmaattiiaass
	66549	Tests: Add unit tests for the uncovered code of the Abilities API classes and the users and content abilities		Abilities API		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T13:26:34Z	2026-11-06T13:33:07Z	"The code coverage report on Codecov shows lines of the Abilities API that no test runs:

* `WP_Ability`: unknown properties, a missing category, input without an input schema, `wp_ability_validate_input` and `wp_ability_validate_output` filters that return `false`, an invalid execute callback, a permission callback that returns a `WP_Error`, and serializing or unserializing the object.
* `WP_Abilities_Registry` and `WP_Ability_Categories_Registry`: serializing and unserializing, the registry being requested before `init`, and the first creation of the categories registry.
* `WP_Ability_Category`: an empty slug.
* `WP_Abilities_Users`: the `description`, `url`, `first_name`, `last_name`, `nickname` and `locale` fields, IDs that are not integers, rows that are not users, and a registration date that cannot be parsed.
* `WP_Abilities_Content`: posts whose parents loop, whose parent is not exposed, or whose status is not registered or not a string, and the IDs that are not in a list.

This ticket adds tests for these lines."	hmbashar
	57268	Add Escaping properly in Class Custom background Page		Administration		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-12-03T10:10:30Z	2026-08-18T08:45:16Z	"In the class-custom-background.php , I noticed there are some missing escaping. I think these should be escaped properly. 

Example: 

{{{
<?php echo $input['label']; ?>
}}}
"	shailu25
	51597	Add debugging of a single session		Administration		normal	normal	Awaiting Review	defect (bug)	new		2020-10-22T01:30:19Z	2020-10-22T01:30:19Z	"At the moment, debugging options are controlled by constants. This means that an entire site is either producing debug output and/or saving queries, or it doesn't.

In this situation, every user session sees the same output, and that's a problem for all but the person who's trying to fix the problem. On large, active sites, this can be a problem for many, many users, thus affecting the respective business negatively for no good reason.

I propose to add a way to debug only a single session. Those with the ""administrator"" role and/or a new ""debug"" capability should see a new menu in the admin bar, where they can turn on various debugging options.

By using GET parameters and/or cookies, it should be possible to then trigger debugging functions that match the user's selection only for that one session.

Some debugging still requires site-wide flags, e.g. background tasks, API calls, etc. Therefore, the new mechanism cannot replace the use of constants completely. However, if may be possible to identify cases for constants, cases for session flags and cases for both."	galbaras
	64466	Admin layout broken: #wpcontent height constraint prevents container from extending to full content height		Administration	6.9	normal	normal	Awaiting Review	defect (bug)	new		2026-01-01T06:44:55Z	2026-01-01T11:01:58Z	"
The WordPress admin layout has a CSS architecture flaw that prevents `#wpwrap` and `#wpcontent` containers from extending to their full content height. This causes layout issues on admin pages with long content, such as WooCommerce orders pages with thousands of entries. I've seen this issue in WooCommerce and possibly WordPress in general on many occasions over recent years.

**Steps to Reproduce:**

1. Navigate to any WordPress admin page with content exceeding viewport height (e.g., WooCommerce > Orders on a site with 1000+ orders)
2. Inspect the `#wpwrap` element in browser DevTools
3. Observe that `#wpwrap` only extends to the height of the left sidebar (~1840px) rather than the full content height (~5000px+)
4. The page footer and background styles do not extend to the bottom of the actual content

**Expected Behavior:**

The `#wpwrap` container should extend to contain all its child content, regardless of how tall that content is. The layout should work correctly whether content is 500px or 50,000px tall.

**Actual Behavior:**

`#wpwrap` and `#wpcontent` are constrained in height, causing the layout to break. The containers only extend to approximately the sidebar height rather than the full content height.

**Root Cause:**

In `wp-admin/css/common.min.css` (version 6.9), the following CSS creates a circular height dependency:

{{{#!css
#wpwrap {
    min-height: 100%;
}

#wpcontent {
    height: 100%;
}
}}}

**The problem:**
1. `#wpcontent` has `height: 100%`, which means ""be 100% of parent's height""
2. Parent `#wpwrap` has `min-height: 100%`, which is calculated relative to `<body>`
3. `<body>` doesn't have an explicit height, so percentage-based heights create a constraint loop
4. Neither element can expand beyond the calculated constraint, even though child content (`#wpbody`) is much taller

**Technical Analysis:**

With default WordPress CSS:
- `#wpwrap` offsetHeight: ~1840px (constrained)
- `#wpcontent` offsetHeight: ~1194px (constrained) 
- `#wpcontent` scrollHeight: ~5102px (actual content height)
- `#wpbody` offsetHeight: ~5042px (actual content)

The `height: 100%` on `#wpcontent` prevents it from growing with its content, creating a hard ceiling that shouldn't exist.

**Proposed Solution:**

Change the CSS in `wp-admin/css/common.css` from:

{{{#!css
#wpwrap {
    min-height: 100%;
}

#wpcontent {
    height: 100%;
}
}}}

To:

{{{#!css
html {
    height: 100%;
}

body {
    min-height: 100vh;
    height: auto;
}

#wpwrap {
    min-height: 100vh;
    height: auto;
}

#wpcontent {
    min-height: 100vh;
    height: auto;
}
}}}

This approach:
- Ensures minimum viewport height for short pages
- Allows containers to grow with content for tall pages
- Uses modern `vh` units instead of percentage-based heights
- Breaks the circular dependency

**Workaround:**

Site administrators can add this CSS to their admin theme or via a plugin:

{{{#!css
html {
    height: 100%;
}

body {
    min-height: 100vh;
    height: auto !important;
}

#wpwrap {
    min-height: 100vh !important;
    height: auto !important;
}

#wpcontent {
    min-height: 100vh !important;
    height: auto !important;
}
}}}

**Impact:**

This affects any WordPress admin page with content exceeding viewport height. It's particularly noticeable on:
- WooCommerce orders/products pages with many items
- Sites with large media libraries
- User lists on sites with many users
- Any admin page with extensive tabular data

**Browser Testing:**

Issue confirmed in:
- Chrome 131
- Likely affects all modern browsers due to CSS architecture issue

**Additional Notes:**

This is a longstanding issue in WordPress core CSS architecture. Similar height-based layout issues have been reported in other tickets (#43244, #52623), but this specific `#wpcontent` height constraint has not been addressed.

"	inspired888
	56302	Admin menu links have relative URLs		Administration		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-07-29T06:01:54Z	2026-08-18T08:42:27Z	"Hey,

When i opened `abc.com/wp-admin/options.php/` and then try to go on submenu under settings then menu link is wrong and not opening page. more information you can see quick recording.

https://www.loom.com/share/e64670a986df4c5da8e81838799a7ea1

Thank you
 "	iihglobal
	65266	Admin sidebar menu item shows a 0.19px height difference causing slight spacing and alignment inconsistency.		Administration		low	normal	Awaiting Review	defect (bug)	new	has-patch	2026-05-19T07:07:09Z	2026-05-19T14:31:31Z	"The WordPress admin sidebar contains a minor UI spacing issue where the .wp-menu-name element renders at 34.19px height instead of the expected 34px. This creates a subtle visual mismatch between sidebar menu items and the Collapse Menu button.

Actual Result
.wp-menu-name height renders as 34.19px.
Collapse Menu button height renders as 34px.
A slight spacing/alignment inconsistency appears in the sidebar.
Expected Result

All sidebar menu items and the collapse button should render with consistent heights and spacing using whole pixel values."	modi2918
	65444	Align admin CSS border-radius values with design system tokens		Administration		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-06-09T13:15:22Z	2026-06-10T11:31:38Z	"Several admin CSS files use legacy `border-radius` values (3px, 5px, 9px, 10px, 11px) that don't match the design system scale defined in `_tokens.scss` (1px, 2px, 4px, 8px, 12px, 9999px).

This creates subtle visual inconsistency across the admin interface. For example, the customizer save button uses 3px while standard buttons use 2px, and admin menu notification badges use 9px while dashboard widgets use 8px.     

The fix aligns all non-standard values to their nearest design token:                                                                                                                                                                 
  - 3px → 2px (`radius-s`) — 10 locations                                                                                                                                                                                                 
  - 5px → 4px (`radius-m`) — 3 locations                                                                                                                                                                                                  
  - 9px → 8px (`radius-l`) — 1 location                                                                                                                                                                                                   
  - 10px → 8px (`radius-l`) — 1 location                                                                                                                                                                                                  
  - 11px → 12px (`radius-30`) — 1 location                                                                                                                                                                                                

7 files, 16 replacements. Differences are 1px, barely perceptible but bring the admin in line with the design system.                                                                                                                 

GitHub PR: https://github.com/WordPress/wordpress-develop/pull/12139              "	dervishov
	49694	All pages menu on admin panel has DOM errors		Administration	5.3.2	normal	normal	Future Release	defect (bug)	new	has-patch	2020-03-24T19:41:52Z	2020-11-04T05:26:45Z	"Opening All pages menu on admin panel, produces errors in console with
[DOM] Found 2 elements with non-unique id #post_parent
<redacted>/wp-admin/edit.php?post_type=page:1

Checking page content, indeed there are TWO id=""post_parent"" in the TBODY id=inlineedit, and other later in the TR id=bulk-edit

Bug appears with all plugins turned off, and fresh install as well.
Reproduce: Simply open the ""All pages"" menu on admin panel, and see the console for the DOM form errors.

"	iarovuo
	58198	CSS on Login Security page missing		Administration	6.2	normal	normal	Awaiting Review	defect (bug)	new		2023-04-26T16:06:37Z	2023-04-26T16:06:37Z	"Hello
I had a problem with logging in today, I was kept in the Verification email loop. So I deactivated Wordfence via FTP and deleted. This caused the site not to work at all. So I deleted all Wordfence related entries in the user.ini and htaccess files.
Then the login worked and I deleted and reinstalled Wordfence.
Now it seems to work fine. I havn't logged out since and hope, login works again. But I wanted to change the sensibility for the reCaptcha verification. It is on 0.9 right now. But I can not find the Save button on that page as the CSS is missing.
Greetings
Heinz"	bodhi1970
	39762	Change in DOM Element Properties as seen in Javascript Event Handlers Between 4.6.2 and 4.7+		Administration	4.7	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2017-02-01T22:37:55Z	2025-07-31T00:10:12Z	"I'm seeing a problem that appears to be related to the change introduced by ticket #37973 in 4.7. I don't see this issue in 4.6.2. I filed ticket #39739 earlier this week that documented another problem related to this change as well.

This problem is also related to a ""select all"" checkbox but has to do with the state of child checkboxes within javascript event handlers being different between 4.6.2 and 4.7. In short, I have an event handler for ""click"" for the ""manage-column check-column"" checkbox (simplified HTML shown below). This event handler looks for child checkboxes in the table (""nslb_import_rows"") and triggers their ""click"" event accordingly. The ""click"" events are triggered so that additional HTML can be displayed on the page if certain conditions are met when the individual rows are selected / unselected or en masse via this ""select all"".


{{{
<table class=""form-table"">
  <tbody class=""nslb-dynamic-content"">
    <tr>
      <td>
        <table class=""wp-list-table fixed widefat striped"">
          <thead>
            <tr>
              <th scope=""col"" class=""manage-column check-column"">
                <label><input type=""checkbox"" class=""check-all""></label>
              </th>
              <th scope=""col"">
                Name
              </th>
            </tr>
          </thead>
          <tbody id=""the-list"">
            <tr>
              <th scope=""row"" class="" check-column"">
                <input type=""checkbox"" id=""cb-select-1"" name=""nslb_import_rows"" class=""nslb-input"" value=""1"">
              </th>
              <td>
                Steven<input type=""hidden"" name=""s_1_1"" class=""nslb-input"" value=""Steven"">
              </td>
            </tr>
            <tr>
              <th scope=""row"" class="" check-column"">
                <input type=""checkbox"" id=""cb-select-2"" name=""nslb_import_rows"" class=""nslb-input"" value=""2"">
              </th>
              <td>
                David<input type=""hidden"" name=""s_2_1"" class=""nslb-input"" value=""David"">
              </td>
            </tr>
          </tbody>
        </table>
      </td>
    </tr>
  </tbody>
</table>
}}}

Please note the first <tbody> element with the class ""nslb-dynamic-content"". As the name implies, this content is created dynamically and added to the page via javascript as certain other options on the page are chosen. Because the inner HTML is added dynamically, when this code in common.js at line 459 at the 4.6.2 level executes:

{{{
$('thead, tfoot').find('.check-column :checkbox').on( 'click.wp-toggle-checkboxes', function( event ) { 
...
}}}

it doesn't find any elements that match the search criteria as they are not present on the page yet, therefore no event handlers are registered here. The HTML at this point would look only like this:

{{{
<table class=""form-table"">
  <tbody class=""nslb-dynamic-content"">
  </tbody>
</table>
}}}

Conversely, the code in common.js at 4.7+ on line 452 that replaced this line


{{{
$body.on( 'click.wp-toggle-checkboxes', 'thead .check-column :checkbox, tfoot .check-column :checkbox', function( event ) {
...
}}}

fires when the ""manage-column check-column"" checkbox is clicked even though it's in HTML that is added dynamically. This is because the line in 4.7+ handles click events in the body and then evaluates whether or not a ""check-column"" checkbox was clicked in a <thead> or <tfoot> as part of click event processing itself thereby finding my ""manage-column check-column"" checkbox"" in the DOM at that point.
	
The net of effect of all this is a change in the value of the ""clicked"" property of these child checkboxes when my own click event handler executes. For example, in 4.6.2, if no checkboxes are selected on the page and I click my ""manage-column check-column"" checkbox, the ""clicked"" properties for the child checkboxes are ""false"" because the event handler on line 459 in common.js doesn't execute. However, in 4.7+ given the same scenario, the ""clicked"" properties for the child checkboxes are already ""true"" because the event handler on line 452 in common.js does execute each time.

You could actually argue the behavior in 4.6.2 is defective since the handler does not get registered for ""check-column"" checkboxes added dynamically. FYI, if I hard code this exact HTML statically, then the 4.6.2 event handler does get registered and the ""clicked"" property for child checkboxes is consistent between 4.6.2 and 4.7+.

Additionally, the code in common.js at the 4.7+ level could potentially trigger the ""click"" event for any child checkboxes it finds as opposed to just modifying their ""checked"" property, although I'm not sure of the ramifications of that type change."	reldev
	62856	Changing the author of a post in the author selector is impossible		Administration		normal	normal	Awaiting Review	defect (bug)	new		2025-01-24T09:11:35Z	2025-01-27T09:39:35Z	"Changing an author (when there are more than 8) is only possible in quick edit mode. 
When you go to a typical post, the selector displays only 8 authors, whereas there are many more, so it's impossible to change the post's author.

[[Image(https://github.com/user-attachments/assets/4433f529-9fb6-475a-915d-61838b4da2f5)]]
[[Image(https://github.com/user-attachments/assets/207f8080-3677-401f-ad22-bc6a4089e373)]]

"	dhenriet
	55768	Checkboxes not displayed when images are turned off in browser		Administration	5.3	normal	normal	Future Release	defect (bug)	new		2022-05-18T09:24:11Z	2025-04-14T18:57:45Z	​W​hen images ​are ​turned off in browser, ​the ​checked post categories in the admin ​post dashboard disappear​.​ 	martiniwebb
	66023	Control+K does not show in the admin bar when logged in and viewing a page		Administration	7.1	normal	normal	Awaiting Review	defect (bug)	new	close	2026-09-02T13:46:45Z	2026-09-08T16:21:59Z	"When you are logged in and viewing a page you can see the Admin bar.

The option to click the CTRL+K is missing from that bar and in Chrome CTRL+K takes you to the URL bar so cannot use.

1. Add the CTRL+K to the admin bar when viewing a page
2. Make the CTRL+K a customisable shortcut (perhaps)"	nampara17
	52919	Dashboard tabs issue on focus		Administration	5.7	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-03-26T09:27:49Z	2023-05-25T19:26:58Z	Dashboard tabs issue on focus, it needs to be the vertical center.	muhammadbux
	62998	Deactivate button and search filter on plugin list page		Administration	6.7.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-02-21T09:12:45Z	2025-11-06T15:25:00Z	"Admin backend page: /wp-admin/plugins.php
If a plugin requires an other plugin, then the ""Deactivate"" button on the required plugin is not active. This is okay.

But if you searching plugins (/wp-admin/plugins.php?s=searchstring&plugin_status=all) then the button is active and you can deactivate the required plugin. The button should be not active.
"	hupe13
	43611	Duplicate _ajax_nonce input cause conflict between find_post_div and post_custom_div		Administration	4.9.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-03-22T18:39:18Z	2026-08-18T08:39:32Z	"I ran into the error today. Here is the situation

On Post edit page, I’ve added the FindPost functionality. I’ve included find_posts_div using the admin_footer hook, as normal. It is added to 2 custom post types without custom-fields support and to the regular Post post type. 

It worked flawlessly on both custom post types, but the ajax call to get the post list from inside the Post edit page, sent back a 403. I’ve isolated the problem to the _ajax_nonce value, which was different from the 2 others post types. 

After checking the source of the admin page, I saw that there was 2 _ajax_nonce fields, and that the value sent to Find-Posts query was the _ajax_nonce from the Custom-Post-field.

More over, I’ve checked and both _ajax_nonce inputs share the same ID (_ajax_nonce). Poor media.js can’t find the right one on line 107.

So, they must be differentiated. Easiest fix would be to change the ID of the _ajax_nonce input in FindPostDiv.

Further more, the Post Custom div interface creates duplicate #_ajax_nonce for each custom fields (at least with the same value). Feel free to create another ticket for this."	charlesstpierre
	56384	Error in CSS for form input		Administration	6.0	normal	minor	Awaiting Review	defect (bug)	new		2022-08-15T21:50:28Z	2022-08-15T22:12:27Z	"In ''user-new.php'' and ''user-edit.php'', I created an interface to add some custom meta fields using checkboxes.

The problem is that the CSS bit 


{{{
#adduser .form-field input, #createuser .form-field input {
  width: 25em;
}
}}}

breaks my interface as I'm using the HTML 

{{{
<input type=""checkbox"" name=""class_languages[]"" id=""class_languages-english"" value=""english"">
}}}

So ''.form-field input'' without excluding checkbox types, or specifically applying it to text/url types, stretches the checkboxes...

Below I'm attaching two screenshots, the first with the CSS bit in effect, and the second with it disabled in the developer tools of the browser...

[[Image(https://i.ibb.co/Lkf2r4P/Screenshot-2022-08-16-003733.jpg)]]

[[Image(https://i.ibb.co/yPKBSCS/Screenshot-2022-08-16-003822.jpg)]]"	princeofabyss
	39651	Find Posts modal does not show post-type labels correctly		Administration	4.7.1	normal	normal	Future Release	defect (bug)	new	has-patch	2017-01-20T11:59:21Z	2026-05-08T09:20:50Z	"The screenshot shows the output of four different posts in the '''Find Posts Modal'''. The last two post are correct, at the first and second post the post-type-label (e.g. cpt_example) is missing. The problem is the post-type parameter ""''public''"", if it is set to ""''false''"" the label will not be shown AND you will get the following PHP-Notice (if DEBUG is true):

{{{
Undefined index: cpt_example in ... /wp-admin/includes/ajax-actions.php on line 1803
Trying to get property of non-object in ... /wp-admin/includes/ajax-actions.php on line 1803
}}}

At the following code (1745 ff.) you will notice the reason of this issue: '''$post_types''' only includes '''public posts''' 

{{{#!php
<?php
/**
 * Ajax handler for querying posts for the Find Posts modal.
 *
 * @see window.findPosts
 *
 * @since 3.1.0
 */
function wp_ajax_find_posts() {
	check_ajax_referer( 'find-posts' );

	$post_types = get_post_types( array( 'public' => true ), 'objects' );
                                             ^^^^^^^^^^^^^^^^
}}}

The output of this modal shows all posts (public and unpublic), so i don't think that this ""filter"" was set for security reasons. In my opinion it must either show all posts correctly with their labels (which would be great) or it must suppress all ""unpublic"" posts completely.  "	arkonisus
	66314	HMTL entities in wp-admin/js/inline-edit-post.js:219		Administration	trunk	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-15T00:21:46Z	2026-10-16T09:24:58Z	"I spotted html entities in a JS file.

https://translate.wordpress.org/projects/wp/dev/admin/de/formal/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=13717084&filters%5Btranslation_id%5D=168589039"	timse201
	57156	Icons missing in iOS Lockdown Mode		Administration		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-11-19T19:52:21Z	2025-07-04T07:37:28Z	"Have you made any progress on a back-end workaround or better explanation for why all of the icons on mobile devices (WordPress, and numerous other third party applications) all have broken ""squares"" on all of these products.

The superficial cause is iOS16 in lockdown mode. But it's breaking all of our products including yours. 

It will get worse when MacOS Ventura gets released into GA and has the same behavior.

I suspect it is a result of loading external JS in the https zone, such as previous problems with XSS and mixed content that have broken other web technologies in the past.

There is a workaround called ""How to exclude apps or websites from Lockdown Mode"" at the URL below. Best,  https://support.apple.com/en-in/HT212650"	noexitorescape
	49259	Improper Cache control		Administration	5.1.1	normal	normal	Awaiting Review	defect (bug)	new		2020-01-21T10:03:31Z	2020-02-24T10:46:02Z	"Browse some internal authenticated pages and when we set the
browser to “Work Offline” mode still user can accessible from browser History
directly"	vishal05
	55742	In Safari Browser, when we click on preview in new tab then it opens a page/post in same tab		Administration	5.9.3	normal	normal	Awaiting Review	defect (bug)	new		2022-05-16T08:13:16Z	2022-05-27T11:25:12Z	When we create a page/post and after updating its content we can preview a page/post in new tab then in chrome it always open in new tab but in safari the preview in new tab works only once and from the second time it always open in same tab, for more detail please find the attachment and let me know if there is anything.	kmadhak
	51575	Inconsistent focus styling for select and link elements in modern color scheme		Administration	5.5	normal	normal	Future Release	defect (bug)	new		2020-10-20T09:58:55Z	2020-10-30T17:32:39Z	"Related: #50504

I noticed some inconsistency in the focus styling with the modern color scheme. See the attached screenshots and the one from the block editor.

Would be nice to use the same styling for all elements."	ocean90
	49820	Input and select elements are misaligned in the admin area		Administration	5.4	normal	trivial	Awaiting Review	defect (bug)	new	has-patch	2020-04-05T16:36:03Z	2026-10-05T04:23:34Z	When placed side by side with inline select boxes, input elements are vertically misaligned in the admin area. Setting vertical-align to middle after line 78 of the /wp-admin/css/forms.css file – similarly to how select boxes are defined later in this stylesheet – seems to fix the problem.	luigipulcini
	48793	Issue in selecting option from auto-suggest drop-down using plugin editor.		Administration	5.3	normal	normal	Future Release	defect (bug)	new	close	2019-11-26T05:39:39Z	2026-02-18T14:54:13Z	"Hello Team,

I noticed that when I edit the plugin/theme using the editor in the backend, it gives auto-suggest. But when I start typing, I could not select any option from the drop-down (by navigating using up/down arrow keys). It is selected sometimes only if I could manage to press enter at the same time.

PFA
"	sonali1215
	66655	JSDoc: src/js/_enqueues/wp/svg-painter.js		Administration		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-11-11T00:17:25Z	2026-11-11T00:17:25Z	"This ticket adds JSDoc inline documentation to `src/js/_enqueues/wp/svg-painter.js`, following the JavaScript Documentation Standards.

The file had no JSDoc blocks for the `wp.svgPainter` namespace or any of its methods (`init`, `setColors`, `findElements`, `paint` and `paintElement`). The patch:

* Improves the file header description and adds `@since 3.8.0`.
* Documents the `wp.svgPainter` namespace.
* Adds summaries, descriptions, `@since` and `@param` tags to all five methods.

The `@since 3.8.0` version was determined with `git blame` and `git tag --contains` (the file was introduced in [26072] as part of the 3.8 admin redesign).

The patch only changes comments; no code behavior is modified.

Related: JS docs initiative https://make.wordpress.org/core/2018/01/31/js-docs-initiative-add-inline-docs-for-javascript/"	diegosa
	61938	Lack of consistency on update types.		Administration		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2024-08-27T15:22:42Z	2024-08-27T15:22:42Z	"Hello,

I wonder if we couldn't add a little more of consistencies in update type.

At https://github.com/WordPress/WordPress/blob/b8dbab954688836bafc72457a21300380e96078a/wp-includes/l10n.php#L1518 we're checking `themes` & `plugins` in plural form. 

At https://github.com/WordPress/WordPress/blob/b8dbab954688836bafc72457a21300380e96078a/wp-includes/update.php#L859 we're checking the same words but in singular...

I do not know if it could be improved without breaking all updates system.
"	sebastienserre
	47517	Left Navigation Disappeared		Administration		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2019-06-10T09:27:48Z	2019-06-11T18:49:07Z	"Hello,

Left navigation is disappeared when we open inspect element/tool in google chrome browser after reaching to the bottom of the page on Admin Dashboard > settings > discussion.

Please checked attached video.

Thanks."	shashank3105
	44631	Limit the displayed search phrase for the posts list table		Administration		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-07-24T09:31:00Z	2025-09-03T11:32:14Z	"When searching for long text in the ''comments'' list table, the displayed search phrase is limited by 50 characters by using {{{wp_html_excerpt()}}}.

On the other hand when searching for long text in the ''posts'' list table, the displayed search phrase is unlimited.

It would be nice to have this consistent between those two tables.

Later (another ticket) we could also consider ''plugins'', ''users'', ''media'', ''sites'', ... list tables that also display unlimited search phrase."	birgire
	57943	Massive SQL statement shown in Dashboard WordPress Events and News. WordPress database error Got a packet bigger than 'max_allowed_packet'		Administration		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-03-17T19:21:55Z	2025-05-12T01:38:06Z	"=== Bug Report
Massive SQL statement shown in Dashboard WordPress Events and News. WordPress database error Got a packet bigger than 'max_allowed_packet'

=== Environment
- OS: Windows 10
- Server: Apache (WINNT)
- PHP: 8.2.0
- WordPress: 6.2-RC2
- Browser: Edge
- Theme: Twenty Ten 3.7
- MU-Plugins: None activated
- Plugins: 
  * WordPress Beta Tester 3.3.1
  * WP SMS 6.1.1

=== Steps to Reproduce
Not sure but maybe:
1. Debugging enabled.

{{{
define( 'WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );
}}}

2. Set max_allowed_packet to very low value.
3. GO to http://localhost/test/wp-admin/index.php
x. 🐞 Bug occurs.

=== Expected Results
1. ✅ WordPress Events and News should be shown.
2. ✅ If failed a user friendly message shown in GUI
3. ✅ Not to log 18 MB of errors.

=== Actual Results
1. ❌ Massive SQL statement was shown
2. ❌ User friendly error message was not shown in GUI
2. ❌ Logging was made of 18MB

Some few lines from the logfile. 

{{{
17-Mar-2023 18:13:23 UTC] WordPress database error Got a packet bigger than 'max_allowed_packet' bytes for query

INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`)
VALUES
(
'_transient_feed_d117b5738fbd35bd8c0391cda1f2b5d9',
'a:4:{s:5:\""child\"";a:1:{s:0:\""\"";a:1:{s:3:\""rss\"";a:1:{i:0;a:6:s:4:\""data\"";s:3:\""\n\n\n\"";s:7:\""attribs\"";a:1:{s:0:\""\"";a:1:s:7:\""version\"";s:3:\""2.0\"";}}s:8:\""xml_base\"";s:0:\""\"";s:17:\""xml_base_explicit\"";b:0;s:8:\""xml_lang\"";s:0:\""\"";s:5:\""child\"";a:1:{s:0:\""\"";a:1:{s:7:\""channel\"";a:1:{i:0;a:6:{s:4:\""data\"";s:61:\""\n	\n	\n	\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\"";s:7:\""attribs\"";a:0:}s:8:\""xml_base\"";s:0:\""\"";s:17:\""xml_base_explicit\"";b:0;s:8:\""xml_lang\"";s:0:\""\"";s:5:\""child\"";a:1:{s:0:\""\"";a:5:{s:5:\""title\"";a:1:{i:0;a:5{s:4:\""data\"";s:16:\""WordPress Planet\"";s:7:\""attribs\"";a:0:{}s:8:\""xml_base\"";s:0:\""\"";s:17:\""xml_base_explicit\"";b:0;s:8:\""xml_lang\"";s:0:\""\"";}}s:4:\""link\"";a:1:{i:0;a:5:{s:4:\""data\"";s:28:\""http://planet.wordpress.org/\"";s:7:\""attribs\"";a:0:{}s:8:\""xml_base\"";s:0:\""\"";s:17:\""xml_base_explicit\"";b:0;s:8:\""xml_lang\"";s:0:\""\"";}}s:8:\""language\"";a:1:{i:0;a:5:{s:4:\""data\"";s:2:\""en\"";s:7:\""attribs\"";a:0:{}s:8:\""xml_base\"";s:0:\""\"";s:17:\""xml_base_explicit\"";b:0;s:8:\""xml_lang\"";s:0:\""\"";}}s:11:\""description\"";a:1:{i:0;a:5:{s:4:\""data\"";s:47:\""WordPress Planet - http://planet.wordpress.org/\"";s:7:\""attribs\"";a:0:{}s:8:\""xml_base\"";s:0:\""\"";s:17:\""xml_base_explicit\"";b:0;s:8:\""xml_lang\"";s:0:\""\"";}}s:4:\""item\"";a:50:{i:0;a:6:{s:4:\""data\"";s:13:\""\n	\n	\n	\n	\n	\n	\n\"";s:7:\""attribs\"";a:0:{}s:8:\""xml_base\"";s:0:\""\"";s:17:\""xml_base_explicit\"";b:0;s:8:\""xml_lang\"";s:0:\""\"";s:5:\""child\"";a:2:{s:0:\""\"";a:5:{s:5:\""title\"";a:1:{i:0;a:5:{s:4:\""data\"";s:39:\""WordCamp Central: WordCamp Buffalo 2023\"";s:7:\""attribs\"";a:0:{}s:8:\""xml_base\"";s:0:\""\"";s:17:\""xml_base_explicit\"";b:0;s:8:\""xml_lang\"";s:0:\""\"";}}s:4:\""guid\"";a:1:{i:0;a:5:{s:4:\""data\"";s:39:\""https://central.wordcamp.org/?p=3163106\"";s:7:\""attribs\"";a:0:{}s:8:\""xml_base\"";s:0:\""\"";s:17:\""xml_base_explicit\"";b:0;s:8:\""xml_lang\"";s:0:\""\"";}}s:4:\""link\"";a:1:{i:0;a:5:{s:4:\""data\"";s:64:\""https://central.wordcamp.org/news/2023/03/wordcamp-buffalo-2023/\"";s:7:\""attribs\"";a:0:{}s:8:\""xml_base\"";s:0:\""\"";s:17:\""xml_base_explicit\"";b:0;s:8:\""xml_lang\"";s:0:\""\"";}}s:11:\""description\"";a:1:{i:0;a:5:{s:4:\""data\"";s:1802:\""<a href=\""https://profiles.wordpress.org/empireoflight/\""><img /></a>WordCamp Buffalo 2023 logo. Design by Ben Dunkle.\n\n\n\n<p>Buffalo again will host the region’s WordCamp for bloggers and web designers and developers of all skill levels. Novices are very welcome. WordCamp Buffalo will be held Saturday, May 6, 2023.</p>\n\n\n\n<p>Registration opens at 8:00am. Sessions begin at 9 a.m. and continue through 5 p.m. This year’s WordCamp will be held at Ken-Ton Elmwood Commons, 3200 Elmwood Ave Suite 110, Kenmore, NY 14217. Tickets are required in advance.</p>\n\n\n\n<p>The $25 ticket cost covers WordCamp Buffalo swag, morning coffee, lunch, and the evenings’s after-party food. Participants are strongly encouraged to bring their laptops or tablets. Ticket purchase and program details are available at <a href=\""https://buffalo.wordcamp.org/2023\"">buffalo.wordcamp.org/2023</a>. The capacity for this event is about 120 people, so getting tickets early is advised.</p>\n\n\n\n<p>WordCamps are held worldwide, locally run and purposely at a low cost for accessibility to all. WordCamp Buffalo is dedicated to WordPress, blogging and web facility. WordCamps are sponsored by WordPress, the open-source, free, not-for-profit platform for individuals, groups and businesses to build their own blogs and websites. WordPress.org began in 2003. Its administrators call it the “largest self-hosted blogging tool in the world, used on millions of sites and seen by tens of millions of people every day.”</p>\n\n\n\n<p>Similar to previous years, Buffalo’s 2023 WordCamp will divide its workshops along two tracks, with sessions for every ability and level of use.</p>\n\n\n\n<p>Speakers will include WordPress users from Buffalo, Rochester, and beyond, with experience ranging from user/blogger to advanced developer.</p>\"";s:7:\
}}}

If you need the full log, let me know but as I don't know what's included I don't want share in the public ticket.

"	ipajen
	48187	Missing admin color scheme causes incorrect body class		Administration		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2019-09-30T19:49:02Z	2019-09-30T19:49:02Z	"If you pick a non-core admin color scheme (one that is added via some available plugin) but later that color scheme is no longer available (by deactivating said plugin) the admin-area body class continues to reflect the now missing color scheme.

To test:

1. Install and activate [https://wordpress.org/plugins/admin-color-schemes/ this plugin] (or one like it)
2. Change the color scheme in Your Profile to ""80's Kid"" (or any other non-core one)
3. Deactivate the above plugin
4. Open inspector in your web browser
5. See that the incorrect color scheme class is added to the body element

Ironically, the way WordPress admin CSS is coded, this does not appear to cause any obvious styling breakage, though I do consider this an unintended behavior that can still be corrected."	johnjamesjacoby
	62168	MutliSite install Network Admin links incorrect -- not using 'home' & 'siteurl' settings		Administration	6.6.2	normal	normal	Awaiting Review	defect (bug)	new		2024-10-04T22:00:49Z	2024-10-04T22:00:49Z	"I have a bedrock-installed wordpress6 multisite.

```
composer show | grep -i roots | sort
	roots/bedrock-autoloader           1.0.4     An autoloader that enables standard...
	roots/bedrock-disallow-indexing    2.0.0     Disallow indexing of your site on n...
	roots/wordpress                    6.6.2     WordPress is open source software y...
	roots/wordpress-core-installer     1.100.0   A custom installer to handle deploy...
	roots/wordpress-no-content         6.6.2     WordPress is open source software y...
	roots/wp-config                    1.0.0     Collect configuration values and sa...
	roots/wp-password-bcrypt           1.2.0     WordPress plugin which replaces wp_...
```

everything so far works.  Except the links generated for the NetworkAdmin Dashboard etc.

This is correct
```
mysql
>
	SELECT option_name, option_value
	FROM wp_options
	WHERE option_name IN ('siteurl', 'home');

		+-------------+------------------------------+
		| option_name | option_value                 |
		+-------------+------------------------------+
		| home        | https://dev.example.com      |
		| siteurl     | https://dev.example.com/wp   |
		+-------------+------------------------------+

	SELECT meta_key, meta_value
	FROM wp_sitemeta
	WHERE meta_key = 'siteurl';

		+----------+-------------------------------+
		| meta_key | meta_value                    |
		+----------+-------------------------------+
		| siteurl  | https://dev.example.com/wp/   |
		+----------+-------------------------------+
```

I'm logged as superuser to my webUI admin Dashboard.

The menu links in the upper right hand corner
```
	MySites > example.com > Dashboard
```

are correct
```
	https://dev.example.com/wp/wp-admin/
```

But for the MultiSite Network links
```
	MySites > Network Admin > Dashboard
```

are INCORRECT
```
	https://dev.example.com/wp-admin/network/
```

missing 'wp/' from the path.

Nav to
```
	https://dev.example.com/wp-admin/network/
```

returns a 404.

Manual nav to
```
	https://dev.example.com/wp/wp-admin/network/
```

correctly renders the Network Admin dashboard.

checking also
```
add_action('admin_bar_menu', function($admin_bar) {
    error_log(network_admin_url());
}, 100);
```

returns,
```
	https://dev.example.com/wp-admin/network/
```

i can workaround it in `functions.php`
```
add_filter('network_admin_url', function ($url) {
	return str_replace('wp-admin/', 'wp/wp-admin/', $url);
});
```

"	gladsong
	61575	Node Modules in sub-directories not getting ignored while exporting the theme		Administration		normal	normal	Awaiting Review	defect (bug)	new	close	2024-07-04T20:34:05Z	2025-02-07T15:00:04Z	"There is an issue with node_modules not getting ignored while in the sub-directory and adding a new filter for permission capability for the Export button.

To replicate try to run these commands to add the node_modules under any sub-directory in the theme.:
1. cd ../path/to/wp-content/themes/twentytwentythree/assets
2. npm install some-package
3. Export the theme.

You will see that the node_modules folder is present when the theme is exported."	rajinsharwar
	31199	Potential reference to unset variable in get_bulk_actions (WP_Posts_List_Table)	chriscct7*	Administration		normal	normal	Future Release	defect (bug)	accepted	close	2015-02-01T16:44:14Z	2026-09-16T17:16:55Z	"get_post_type_object can return null in some cases, which causes a notice when current_user_can is called later in the function.

Attached a patch to check if delete_posts is set, and to only add actions if it is. Thanks!"	sgrant
	50184	Proper margin for inputs in 'Discussion Settings' page mobile/tablet view		Administration		normal	normal	Awaiting Review	defect (bug)	new		2020-05-16T08:02:57Z	2023-11-07T11:12:03Z	The inputs haven't proper margin, please check the screenshot.	man4toman
	35204	Refresh HiDPI support		Administration		normal	normal	Awaiting Review	defect (bug)	new		2015-12-22T19:38:43Z	2023-03-14T19:20:01Z	"As a continuation of #22238... In newer versions of Chrome, loading the admin bar CSS provides these console warnings:

> Consider using 'dppx' units, as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: print, not all, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) Consider using 'dppx' units, as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: print, not all, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi)


This was enabled first in ​[22629].

Matt Micklick (@iammattthomas) researched and suggests we update as follows.

This is what our HiDPI media query looks like:

{{{
@media print,
	(-o-min-device-pixel-ratio:5/4),
	(-webkit-min-device-pixel-ratio: 1.25),
	(min-resolution: 120dpi) {
		/* Styles go here */
	}
}}}

We specify min-resolution in dpi because of browser support. While Firefox, Chrome, and Opera support min-resolution and the dppx unit, Internet Explorer and Safari do not. Specifically, the most current version of IE supports min-resolution declared in dpi but not dppx. The most recent version of Safari only recognizes -webkit-min-device-pixel-ratio.

In order to avoid notices in the Chrome console, we can add an additional declaration of min-resolution in dppx. We'll add it last, so that browsers that support it will use it.

As a bonus, we can remove the Opera-specific selector. Since Opera has used Blink as its layout engine for over a year there's no need to continue including it. Opera's CSS support now mirrors Chrome's.

Finally we'll move the Webkit-specific selector last in the set, as we do with other browser-specific declarations in CSS. So the new syntax would look like this:

{{{
@media print,
	(min-resolution: 120dpi),
	(min-resolution: 1.25dppx),
	(-webkit-min-device-pixel-ratio: 1.25) {
		/* Styles go here */
	}
}}}
"	lancewillett
	53036	Require title or content before allowing save of Quick Draft		Administration	5.7.1	normal	normal	Awaiting Review	defect (bug)	new		2021-04-15T06:42:39Z	2021-04-16T15:29:58Z	"Hi,

I have updated WP version. i think we need to add validation on create add Quick Draft post in dashboard. what you think all guys?

See mentioned quick video link.
https://www.loom.com/share/49926bf12af5404f9d3ff3877dce400e"	sumitsingh
	41077	Revisions for code edits		Administration		normal	normal	Awaiting Review	defect (bug)	new		2017-06-15T14:47:58Z	2017-06-16T13:46:35Z	"We should let people restore previous versions of their code in case they make mistakes.

More details TBA."	karmatosed
	49933	Some classes have no specificity on the back end admin area		Administration	5.4	normal	normal	Awaiting Review	defect (bug)	new		2020-04-17T16:11:51Z	2020-04-22T22:08:36Z	"Now that we are using Gutenberg themes and blocks are adding more css to the back end to make our blocks have certain styles to match the front end.

Some classes like .card have issues because, while in our code we might have .special-block .card, the WordPress styles have .card with no added specificity and this makes adding styles difficult on the back end.

Can more specificity be added so that classes like this will be able to be used?"	saltnpixels
	47830	Something prevents code edition of the theme through HTML on the theme editor for test automation purposes		Administration	5.2.2	normal	major	Awaiting Review	defect (bug)	new		2019-08-04T10:04:15Z	2020-11-05T03:26:54Z	"This should be considered as a bug, because it's preventing code edition straight from the HTML source code of the page hence preventing test automation from working.

I'm using Selenium with the Chrome webdriver for test automation purposes.

This is a stock WordPress install with the default nineteen theme activated, with no plugins.

The URL on which the problem is occurring is
/wp-admin/theme-editor.php

The fields are properly changed, whether it is the textarea id=""newcontent"" or the code mirror wrapper, but upon clicking on the save button the changes are reverted back BEFORE the Ajax request is sent to make the modifications, hence preventing any sort of modifications when it's made through HTML.

To reproduce the error.

[Optional] Use Google Chrome if possible
1. Go to /wp-admin/theme-editor.php
2. Make sure the style.css is loaded
3. Inspect element and find the textarea id=""newcontent""
4. Remove a whole line
5. Save
6. Look at the textarea and see that the changes were reverted back

You can see that the changes are reverted back before the submit button callback is called by placing a JS breakpoint at b.submit inside the file theme-plugin-editor.min.js

Sadly I'm not experienced when it comes to Javascript at all so I just can't get further than that.

Hope someone can get through this bug as our tool depends on this!
"	xhat
	58478	Text mis-aligned count bubbles on mobile		Administration	6.2.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-06-08T06:56:34Z	2025-07-31T00:11:00Z	"Hi,

Small UI issue in the mobile device. it is not properly alignment on a mobile device. For more information, you can see mentioned screenshot."	sumitsingh
	64565	The 'manage_posts_extra_tablenav' action does not fire for bottom tablenav when no posts exist		Administration	6.9	normal	normal	Awaiting Review	defect (bug)	new		2026-01-28T14:42:56Z	2026-10-27T05:32:11Z	"Currently, the `manage_posts_extra_tablenav` action is never fired for the bottom tablenav when there are no posts yet. This makes it impossible for plugins to render custom content (for example, a call-to-action block) in the bottom tablenav area on empty post list screens.

This behavior appears to have been introduced in [ticket:63369] (see [changeset:60613]). It would be helpful if the `manage_posts_extra_tablenav` action fires for the bottom tablenav regardless of whether posts exists, so plugins can hook into that location, even on empty lists.

"	fluxbe
	63429	URL transliteration functionality to Latin		Administration		normal	normal	Awaiting Review	defect (bug)	new		2025-05-10T14:05:06Z	2025-05-10T14:05:06Z	"WordPress does not have the ability to enable transliteration (of links, file names) to Latin. Because of this, sites that use Cyrillic or other non-Latin languages ​​​​face a problem when the link contains non-Latin characters, which is bad practice for a website (for example, Cyrillic).

Because of this, sites are forced to use plugins (for example, Cyr-To-Lat) or other solutions.

Proposal:
Add to the general WordPress settings the option to enable transliteration if the site has non-Latin languages ​​​​(for example, Cyrillic - Ukrainian, Bulgarian, etc.)

There should be an easy to choose the ISO9 transliteration option, or set your own option for matching Latin letters (similar to what is done in plugins)."	tunyk
	62181	WP Admin b,strong has fixed weight of 600		Administration	3.8	normal	minor	Awaiting Review	defect (bug)	new		2024-10-07T03:57:17Z	2024-10-07T05:39:36Z	"I've noticed that the WordPress admin has a fixed weight of `600` for `b` and `strong` tags. If I have a heading that has a bold appearance and then bold some text in the heading it doesn't become visible because all the text is set to `600`.

A simple solution would be to change the `strong,b{font-weight:600;}` in `common.css` to `strong,b{font-weight:stronger;}` and let the browser choose the bolder weight.

I can create a patch for this, but I wanted to check if there is a reason why there is a fixed weight of `600`. Does anyone know why?"	launchinteractive
	47640	"WP_Posts_List_Table::get_views() doesn't allow the ""Mine"" counts to be filtered"		Administration		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2019-07-02T16:37:23Z	2026-09-02T13:16:22Z	"[https://developer.wordpress.org/reference/classes/wp_posts_list_table/get_views/ WP_Posts_List_Table::get_views()] calls [https://developer.wordpress.org/reference/functions/wp_count_posts/ wp_count_posts()] to get the counts for the various post statuses.

It then computes the count for posts owned by the current user for use in the ""Mine"" view.  That computation uses `$this->user_posts_count` which is computed in [https://developer.wordpress.org/reference/classes/wp_posts_list_table/__construct/ WP_Posts_List_Table::__construct()] with custom SQL.

The problem is that if you hook into the [https://developer.wordpress.org/reference/hooks/wp_count_posts/ wp_count_posts] filter and alter the counts for each post status you can end up with a situation where the ""Mine"" count is very different than the sum of the post status counts.

For example, I've got a CPT where some (but not all) of the posts of that type are just ""placeholders"" for posts of another CPT.  I hide those ""placeholder"" posts from the list table by hooking into [https://developer.wordpress.org/reference/hooks/request/ request] and altering the request that the list table uses.  I then hook into `wp_count_posts` to adjust the counts by post status accordingly (e.g., don't count the ""hidden"" posts).  This results in a situation that could be **very** confusing for users (see screenshot).

Thus, I suggest that a filter be added to filter the value of `$this->user_posts_count`.
"	pbiron
	61479	Warnings when use remove_menu_page() with a non exist page.		Administration	6.5.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-06-21T10:38:14Z	2024-06-21T11:12:40Z	"We use Sentry to track bugs in our project and when we use the doc function {{{remove_menu_page()}}} we receive numerous warnings for incorrect use of the {{{foreach}}} loop in the function.

[[Image(https://postimg.cc/RqFDvr7D)]]

It is necessary to check that each element of the global $menu contains a valid array."	Jose Lazo
	40581	When all columns are 'special' ...		Administration		normal	normal	Future Release	defect (bug)	new	has-patch	2017-04-26T17:10:37Z	2019-03-02T16:12:56Z	"In an admin page list, when all columns are 'special', no columns settings

"	Arena94
	60684	When expanding menu, on certain menu pages, menu items disappear.		Administration		normal	normal	Awaiting Review	defect (bug)	new		2024-03-04T18:53:39Z	2024-03-04T19:07:26Z	"Versions Tested: 6.5-beta3, 6.4.3. 
Browser: Chromium, FF

When accessing the WP dashboard, usually the menu items are always available on the left side of the screen. But on certain pages like(Setting), when trying to expand the menu, the menu items disappear(or the user have to scroll to the top to access it). The left side becomes empty.

[[Image(https://i.ibb.co/2WHHtBg/pdajzny-I4r.png)]]


**How To Reproduce

* Open the WP dashboard and collapse the Menu.
* Click on **Settings Menu** (wp-admin/options-general.php).
* Scroll to the bottom of the Settings page.
* Expand the menu.

* Again scroll to top or bottom and the menu items appear.


"	alanjacobmathew
	61177	WordPress admin menu cannot cater for hundreds of menu items		Administration	6.5.3	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2024-05-09T08:05:23Z	2024-08-16T20:13:25Z	"The UI dropdown for taxonomies gets confused at around 400 entries. It then blocks the canvas, making it impossible to work - which I add as Major (but it actually is critical for us).

See the screenshots
[https://www.care4tulbagh.org.za/annoying3.jpeg]
[https://www.care4tulbagh.org.za/annoying.png]
[https://www.care4tulbagh.org.za/annoying2.png]

Use Case:
There are some large taxonomies in the world. For example there are 249 different bird families with 2,057 genus and 11'000 species. In the medical field taxonomies are large.

Wordpress should be able to handle this. The DB of course can handle this, but not the UI.

**Troubleshooting done**
Standard basic troubleshoots were done (deactivating plugins etc.).
Developers of two plugins (Toolkit and Custom Post Type UI) gave support.
Both plugin developers concluded it is a WordPress UI problem, as their plugins use WP functionality in this regard.

Recommended fix:
Give users different options for the taxonomy UI.
1. If dropdown:
* Indicate alphabet list as primary level, and list array in alphabetical classes.
A --> Alpha
...... Amber
...... etc
B --> Beta
...... Bomb
...... etc
C --> etc

2. Use the same UI design as for Pages/Posts lists* - table-like format

P.S.
* On Pages/Posts lists:
it would be great to be also able to categorize those lists for easy navigation
"	tvejacques
	58161	WordPress post editor pagination uses inconsistent URL variable to rest of site		Administration	6.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-04-20T01:32:20Z	2026-07-09T06:29:34Z	"`/wp-admin/edit.php`

uses functions in `class-wp-list-table.php`

Which uses
`$current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );`

While all other pages use
`WP_SITE_URL`

Thus, when in the post editor, the ""Next page"" goes to (in my case) `https://127.0.0.1:8090/wp-admin/edit.php?paged=2`, instead of to `<my_url>/wp-admin/edit.php?paged=2` like the rest of `wp_admin`"	roballshouse
	45013	Wrong links when installing in subdirectory =		Administration	4.9.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-09-29T20:32:21Z	2018-10-10T16:23:16Z	"I just found that WordPress is giving me wrong links after I installed my WordPress installation into subdirectory ""="" (../=/wp-admin)

When I select Plugins option from left menu, it displays the Plugins, but the links from left menu lose the ""="" .

Also the structure of the link in address bar changes.

[[Image(https://i.imgur.com/k7toQ5N.jpg)]]

I don't know if it posses any risks, but it's still a bug.

I can give access for a developer to see the website.

Thank you"	BogdanStorm
	55011	appearance  Not showin Menu etc...		Administration	5.9	normal	major	Awaiting Review	defect (bug)	new		2022-01-31T15:52:32Z	2022-01-31T21:46:44Z	"appearance  Not showing Tab Menu etc...
in New Verizon "	jawed3333
	47465	current_action function - return types		Administration	5.3	normal	minor	Awaiting Review	defect (bug)	new	reporter-feedback	2019-06-03T12:32:37Z	2019-06-06T09:18:44Z	"I received a PHP notice ""Array to string conversion"" that led me to the current_action() function in class-wp-list-table.php.

This function can return an array as a valid value. For example this request will return an array:

http://localhost/site/?action[]=1&action[]=2

But in this case:

PHPDoc is incorrect. Should be: 

{{{
@return string|false|array
}}}

or/and

this may break some of the scripts that use this function. simply because they use the result value as a string. Possible solution: add an additional check: IF array THAN take only the first value of the result.

Thanks!"	madeinua
	54216	missing base href in wp-admin		Administration		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-10-04T12:24:27Z	2021-10-13T22:10:48Z	"I'm currently testing WordPress with a custom setup using the built-in PHP webserver (php -S localhost:8080 -t .) and I stumbled upon a problem.

When I access http://localhost:8080/wp-admin everything looks fine. But the links point to options-general.php, edit.php, plugins.php and so on which results in http://localhost:8080/options-general.php, http://localhost:8080/edit.php, http://localhost:8080/plugins.php and so on. 

Only on http://localhost:8080/wp-admin/index.php and http://localhost:8080/wp-admin/ the links result in http://localhost:8080/wp-admin/options-general.php and so on.

I am aware that the PHP built-in webserver should normally not be used but I have to use it since there are several issues with the WP CLI like https://github.com/wp-cli/server-command/issues/71 and I just need a small local demo setup using github.com/DanielRuf/run-local-wordpress.

I added the missing base metatag in the wp_admin_bar_header function using a simple echo ""<base href=\"""".admin_url('').""\"">"";

I suggest to add an option to enable the output of the needed base tag.

This trac issue is created as according to https://wordpress.org/support/topic/missing-base-href-in-wp-admin-needed-for-php-built-in-webserver/#post-14932543 this should be reported as ""bug"" or trac issue in the WordPress core."	anonymized_17880307
	46250	smaller fonts for page navigation in admin in 5.1		Administration		normal	normal	Awaiting Review	defect (bug)	reopened		2019-02-14T03:47:05Z	2019-03-22T13:25:45Z	"In WordPress 5.1 I noticed the font used for going to the next page and previous page on admin pages got smaller (and thus harder to use).
Here's what it looks like
[https://drive.google.com/open?id=1itgRoXGUB8tIW8iJtog2tHe_5uPJ6s4d]
The ""Posts"" page is okay since it uses the ""Tablenav-pages"" class. But for other plugins that don't use that class, it doesn't look very good. I found two with this problem: GigPress and AIOWPS.
I see it's related to this change: https://make.wordpress.org/core/2019/01/14/new-styling-for-admin-table-pagination-links-in-wordpress-5-1/"	joneiseman
	65218	update-core.php - plugin slug is not clean	audrasjb*	Administration		normal	normal	Future Release	defect (bug)	accepted	has-patch	2026-05-11T13:58:25Z	2026-08-03T11:30:32Z	"The plugin slug we use to generate the link is not clean on update core. It includes the parent folder. e.g. /plugin/plugin.php. The API is smart enough to redirect to the en_us page.
On the plugins screen, we use a clean one.


$plugin_data->update->slug

https://github.com/WordPress/wordpress-develop/blob/5e7fd3f6a7caf06e55b4b2781bd42a26165e5b3e/src/wp-admin/update-core.php#L570"	timse201
	46364	update.php coding standards:trigger_error() function		Administration		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2019-02-27T19:26:33Z	2019-04-01T18:56:43Z	"Update.php in trigger_error() used three time code, but i do make one function and pass this function name and his variables.

**See the patch :**"	utsav72640
	58909	width problem in the administration interface		Administration		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-07-26T07:58:35Z	2024-02-23T17:48:23Z	"Hi,

With quick edit mode (any post), and with french language, the French translation causes line breaks in the author and password columns :



"	pasglop
	65341	wp_ajax_widgets_order looks for is_array( $_POST['sidebars'] ) but dosn't check for isset( $_POST['sidebars'] )		Administration	2.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-05-25T21:26:44Z	2026-05-26T20:02:21Z	"when creating tests

got this error

There was 1 error:

1) Tests_wp_ajax_widgets_order::test_widgets_order_missing_sidebars
Undefined index: sidebars

/var/www/src/wp-admin/includes/ajax-actions.php:2324
/var/www/src/wp-includes/class-wp-hook.php:344
/var/www/src/wp-includes/class-wp-hook.php:368
/var/www/src/wp-includes/plugin.php:523
/var/www/tests/phpunit/includes/testcase-ajax.php:265
/var/www/tests/phpunit/tests/admin/includes/ajax-actions/widgetsOrder.php:125
phpvfscomposer:///var/www/vendor/phpunit/phpunit/phpunit:106

So add a test for $_POST['sidebars'] for use"	pbearne
	65439	"wp_dashboard_quota() throws an uncaught DivisionByZeroError (fatal ""critical error"") when a multisite subsite's upload quota is 0 MB"		Administration	3.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-06-08T23:25:56Z	2026-06-09T21:57:10Z	"== DivisionByZeroError in wp_dashboard_quota() when a multisite subsite has a 0 MB upload quota ==

Component: '''Administration''' (Dashboard)
Type: '''defect (bug)'''
Severity: normal

=== Summary ===

`wp_dashboard_quota()` throws an uncaught `DivisionByZeroError` (fatal ""critical error"") when a multisite subsite's upload quota is 0 MB and used space is 0.

=== Description ===

On a multisite subsite whose upload quota (`blog_upload_space` option) is `0` and whose used space is `0`, the Dashboard's ""Storage Space"" / ""At a Glance"" widget fatals with an uncaught `DivisionByZeroError` on PHP 8.0+. The admin sees only '''There has been a critical error on this website.''' with a white screen, and — because Recovery Mode is disabled on multisite — receives '''no recovery email and no on-screen details'''. With `WP_DEBUG_LOG` off, nothing is written to `wp-content/debug.log`; the fatal is only visible in the server's PHP/Apache error log.

==== Root cause ====

`wp_dashboard_quota()` in `wp-admin/includes/dashboard.php` computes the percentage used like this:

{{{#!php
$quota = get_space_allowed();   // returns the raw blog_upload_space option value
$used  = get_space_used();

if ( $used > $quota ) {
    $percentused = '100';
} else {
    $percentused = ( $used / $quota ) * 100;   // <-- 0 / 0 when quota == 0 and used == 0
}
}}}

When `$quota === 0` and `$used === 0`, the condition `0 > 0` is '''false''', so the `else` branch runs `0 / 0`. On PHP 8.0+ the `/` operator throws an uncaught '''`DivisionByZeroError`''' (on PHP 7.x this was a non-fatal warning that returned `false`/`INF`, so the bug only became fatal with PHP 8). WordPress trunk's minimum is PHP 7.4 and it actively supports/recommends PHP 8.x, so this is squarely in the supported range.

`get_space_allowed()` (in `wp-includes/ms-functions.php`) returns the option verbatim when it is numeric:

{{{#!php
$space_allowed = get_option( 'blog_upload_space' );
if ( ! is_numeric( $space_allowed ) ) { $space_allowed = get_site_option( 'blog_upload_space' ); }
if ( ! is_numeric( $space_allowed ) ) { $space_allowed = 100; }   // fallback only for NON-numeric values
return apply_filters( 'get_space_allowed', $space_allowed );
}}}

Because `is_numeric( 0 )` / `is_numeric( '0' )` is `true`, a stored value of `0` passes straight through as `0` — the `100` fallback only applies to empty/non-numeric values. So a subsite explicitly set to a 0 MB quota yields `$quota = 0`. (Related: #34037 made a 0 quota ""respected"" rather than silently bumped to a default, which makes a real 0 reachable.)

==== Parallel instance — display_space_usage() in wp-admin/includes/ms.php ====

The same unguarded division exists in `display_space_usage()`:

{{{#!php
$space_allowed = get_space_allowed();
$space_used    = get_space_used();

$percent_used = ( $space_used / $space_allowed ) * 100;   // <-- divides by zero whenever quota == 0
}}}

This one has '''no `$used > $quota` short-circuit at all''', so it throws for ''any'' zero quota regardless of usage. In current core (verified on WP 7.0 and trunk 7.1-alpha) `display_space_usage()` is not wired to a default admin screen, but it is a '''public, documented API function''' (`@since MU (3.0.0)`, listed in the developer reference) that themes/plugins may call. It should receive the same guard for consistency and to protect callers.

=== Environment ===

|| '''Item''' || '''Value''' ||
|| Reproduced on || WordPress 7.0, PHP 8.4.17, multisite (subdirectory), local DDEV ||
|| Code confirmed on || trunk 7.1-alpha-62161-src (identical code/line as 7.0) ||
|| Trigger config || Multisite; network ""Site upload space"" check ENABLED (`upload_space_check_disabled` is off/false); subsite `blog_upload_space` option = `0`; subsite has no uploads (`get_space_used()` returns `0`) ||
|| Affected versions || Confirmed: WP 7.0 on PHP 8.x. Probably affected (same code, not separately reproduced): 6.9.x and earlier on PHP 8.0+ ||

Note on the guard at the top of the function: `wp_dashboard_quota()` returns early unless the site is multisite '''and''' the current user `can( 'upload_files' )` '''and''' `upload_space_check_disabled` is '''not''' set. All three must hold to reach the division, which is why the bug is configuration-specific.

=== Steps to reproduce ===

1. Install WordPress as '''multisite''' on '''PHP 8.0+''' and create (or use) a subsite.
2. Ensure the network upload-space check is '''enabled''': Network Admin → Settings → ""Site upload space"" checked, i.e. the `upload_space_check_disabled` site option is '''off'''. (This is the default.)
3. Set the subsite's upload quota to '''0 MB''': Network Admin → Sites → (subsite) → Settings → set '''Site Upload Space Quota''' to `0`. Equivalent via WP-CLI:
{{{
wp --url=<subsite> option update blog_upload_space 0
}}}
4. Make sure the subsite has '''no uploads''' (`get_space_used()` returns `0`) — true for a fresh subsite.
5. Log in to that subsite's '''Dashboard''' (`/wp-admin/`) as a user with the `upload_files` capability (e.g. an administrator).

Result: the Dashboard renders the fatal ""There has been a critical error on this website."" The PHP error log shows:

{{{
PHP Fatal error:  Uncaught DivisionByZeroError: Division by zero in .../wp-admin/includes/dashboard.php:1667
Stack trace:
#0 .../wp-admin/includes/dashboard.php(...): wp_dashboard_quota()
#1 ... do_action('activity_box_end') -> wp_dashboard_right_now()
}}}

'''Reproduction verified (2026-06-08, WP 7.0 / PHP 8.4.17, multisite subsite, `blog_upload_space=0`, `get_space_used()=0`, `upload_space_check_disabled='0'`, acting as a super admin):'''

{{{
get_space_allowed()='0'   get_space_used()=0   upload_space_check_disabled='0'

wp_dashboard_quota()   → DivisionByZeroError: Division by zero  @ wp-admin/includes/dashboard.php:1667
display_space_usage()  → DivisionByZeroError: Division by zero  @ wp-admin/includes/ms.php:259
}}}

Both functions throw at the cited lines. In a real HTTP dashboard request the `wp_dashboard_quota()` throw propagates up through `wp_dashboard_right_now()` → `do_action( 'activity_box_end' )` and is caught by the fatal-error handler, producing the ""critical error"" page.

=== Expected vs actual ===

* '''Expected:''' the Storage Space widget renders, showing 100% used (or 0%) for a 0 MB quota — no fatal error.
* '''Actual:''' uncaught `DivisionByZeroError` → fatal ""critical error"" page; on multisite, no Recovery Mode email and no details for the admin.

=== Proposed fix ===

Guard the denominator, mirroring the existing `$used > $quota → 100` special case (a 0 MB allowance is effectively ""full""):

'''`wp-admin/includes/dashboard.php`, `wp_dashboard_quota()`:'''
{{{#!php
} else {
    $percentused = $quota > 0 ? ( $used / $quota ) * 100 : 100;
}
}}}

'''`wp-admin/includes/ms.php`, `display_space_usage()`:'''
{{{#!php
$percent_used = $space_allowed > 0 ? ( $space_used / $space_allowed ) * 100 : 100;
}}}

(If reviewers prefer showing `0` instead of `100` for a zero allowance, only the fallback constant changes; the divide-by-zero guard is the substantive fix.)

==== Patch (unified diff against trunk WordPress/wordpress-develop) ====

{{{
--- a/src/wp-admin/includes/dashboard.php
+++ b/src/wp-admin/includes/dashboard.php
@@ -1664,7 +1664,7 @@
 	if ( $used > $quota ) {
 		$percentused = '100';
 	} else {
-		$percentused = ( $used / $quota ) * 100;
+		$percentused = $quota > 0 ? ( $used / $quota ) * 100 : 100;
 	}

 	$used_class  = ( $percentused >= 70 ) ? ' warning' : '';
--- a/src/wp-admin/includes/ms.php
+++ b/src/wp-admin/includes/ms.php
@@ -256,7 +256,7 @@
 	$space_allowed = get_space_allowed();
 	$space_used    = get_space_used();

-	$percent_used = ( $space_used / $space_allowed ) * 100;
+	$percent_used = $space_allowed > 0 ? ( $space_used / $space_allowed ) * 100 : 100;

 	$space = size_format( $space_allowed * MB_IN_BYTES );
 	?>
}}}

Line numbers (1667 in `dashboard.php`, 259 in `ms.php`) are identical in WP 7.0 and trunk 7.1-alpha but shift between releases — the '''function names''' `wp_dashboard_quota()` and `display_space_usage()` are the stable references.

"	tyaty1
	52448	wp_scheduled_delete WP-Cron Job Cannot Be Unscheduled		Administration	4.9	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2021-02-04T16:06:36Z	2021-02-05T15:20:49Z	"My organization has disabled automatic trash deletion to preserve history on a large multisite network we host. We have done this via the following method:

{{{#!php
<?php
remove_action( 'wp_scheduled_delete', 'wp_scheduled_delete' );
}}}

What we've noticed, however, is that WordPress still schedules the WP-Cron job of the same name (`wp_scheduled_delete`), and there does not appear to be a mechanism for disabling it.

`wp_unschedule_event()` is not capable of unscheduling the event because WordPress core always tries to schedule it if it's not already scheduled in `wp-admin/admin.php`:

{{{#!php
<?php
// Schedule Trash collection.
if ( ! wp_next_scheduled( 'wp_scheduled_delete' ) && ! wp_installing() ) {
	wp_schedule_event( time(), 'daily', 'wp_scheduled_delete' );
}
}}}

The WP-Crontrol plugin shows a persistent warning about this, which is how we discovered it. See attached screenshot.

We are currently using WordPress 4.9.16, but it appears that the code noted above is the same in version 5.6.

What I would like to see is a better filter for this purpose that both removes the action and prevents the WP-Cron job from being (re)scheduled."	daleharrison
	61819	A possible design flaw in administrative rights		Administration	6.6.1	normal	major	Awaiting Review	enhancement	new		2024-08-05T07:42:45Z	2024-08-05T07:42:45Z	"Situation:

A WordPress site with multiple administrator accounts is able to changing each other's passwords and email addresses, without any verification. Admins can lock each other out this way, and abuse each other's accounts, without the victim being able to reclaim or delete their own admin account. 

Also, administrators can create random accounts with e-mail addresses, without confirmation of the e-mail address owner. To me, that feels a little ‘outdated’ because these days, every new account has to be verified with a confirmation link.

Steps to reproduce:

* Admin A logs in to the WordPress website.
* Admin A goes to User settings and edits Admin B's details.
* Admin A changes the password for Admin B.
* Admin A can change Admin B's email address, Admin B does not need to confirm this change. (now he is locked-out!)
* Admin B is now completely locked out of his account, and has no way to recover his password, because the password recovery email address has also been changed.
* Admin A can now abuse Admin B's name and account if he has malicious intent.

Recommendations:

* My recommendation is to build in a function that when Admin A creates or changes changes the email address of Admin B, Admin B must confirm this change.

* Admin B must be able to remove himself from an existing WordPress environment, now this is not possible and is dependent on another Admin to do this for him.

* If a new Admin account is created within WordPress, the new user must confirm his account via a link that is sent to the entered email address. This prevents admin accounts from being created under email addresses of people who have not given permission for this.

Final thoughts...

The above is probably made by design. However, I am concerned about this. Adjusting each other's data, and particularly the e-mail address for password recovery, is in my opinion too easy.

There are many WordPress environments that have been built by third parties, and where contact disappears for all kinds of reasons or conflicts arise. It would be nice if admins could decide to withdraw from a certain WordPress website and not be dependent on third parties for this.

Notice, I brought this issue to the attention of HackerOne but they deemed it a design choice and not a security issue."	erikvdh
	44435	Add Action / Filter in Post Details page for Screen Meta Links		Administration		normal	normal	Awaiting Review	enhancement	new		2018-06-22T09:58:58Z	2025-09-02T21:23:15Z	We can add action/filter in wordpress backend for Screen Meta Links so that using plugin we can add our own links with screen meta links.	mohdjafarcedcoss
	57931	Add Border Radius to WP Dashboard Post Boxes		Administration		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2023-03-15T16:53:13Z	2026-02-15T07:15:39Z	"Good Day!

WordPress' dashboard always looks nice and tidy. How about adding another enhancement to it? 

Here goes: Add a border radius to the dashboard's post boxes with the following CSS Rule (or equivalent):


{{{
.postbox {
    border-radius: 8px!important;
}
}}}

Result: [https://prnt.sc/Nm40unbF7R-c]

Special Note: If approved, the change will have to address the small line extension that appears when the post boxes are collapsed. Should be easy to fix.

Details: [https://prnt.sc/DJegHoxdPold]

The above will not only add a ""cool factor"" to the WordPress' dashboard, but also bring it in line with current website design trends.

Looking forward to your approval and integration.

Cheerio!"	generosus
	32940	Add IDs to Admin Hyperlinks		Administration	4.3	normal	normal	Future Release	enhancement	new	dev-feedback	2015-07-09T12:18:59Z	2026-04-23T20:25:34Z	"Suggestion: add Ids to the primary admin interface hyperlinks.   

Adding IDs to primary anchor tags in the admin UI makes it far easier to create and maintain UI test suites such as Selenium IDE.    UI testing catches problems that phpUnit is not designed to address.



Example:   Pages / Add New

xpath = /html/body/div/div[1]/div[2]/ul/li[5]/ul/li[3]/a

css = html.wp-toolbar body.wp-admin.wp-core-ui.js.edit-php.auto-fold.admin-bar.post-type-page.branch-4-3.version-4-3.admin-color-fresh.locale-en-us.customize-support.sticky-menu.svg div#wpwrap div#adminmenumain div#adminmenuwrap ul#adminmenu li#menu-pages.wp-has-submenu.wp-has-current-submenu.wp-menu-open.menu-top.menu-icon-page ul.wp-submenu.wp-submenu-wrap li a

Would be nice to reference key elements with things like a#menu-page-add-new instead.   Especially when updates to WP Core change the higher level HTML DOM classesor structures.

"	charlestonsw
	58842	"Add a ""change date/time notation"" / ""timezone"" checkbox when changing site languages"		Administration		normal	normal	Awaiting Review	enhancement	new		2023-07-18T17:08:17Z	2023-07-18T17:08:17Z	"When I install WP, I usually do it in English. Yet, for some cases I have to change the locale to Dutch.

Now, I notice that the timezone and datetime notation stays in the old locale. Which is understandable... We don't want to force it on the user. That's why I'm suggesting that we add a checkbox or two so the user has the choice to also change the datetime/timezone setting to the locale default if they change.

It would make things a bit more flexible."	NekoJonez
	42952	Add comments about JS removal of message query_arg		Administration	4.9.1	normal	normal	Awaiting Review	enhancement	new	has-patch	2017-12-21T01:20:25Z	2024-08-19T10:53:36Z	"This is a follow-up to #23367.

Can someone '''please''' add some inline doc about how Javascript actually removes `&message=x` from the URL - Specifically in `/wp-admin/edit-form-advanced.php:186` (in WP 4.9.1). 

As a plugin developer who looks up source code for solutions, I was wracking my brain around seeing `$_GET['message']` as the main argument for showing admin notices, but never seeing it in backend. Took unnecessarily long time to figure out it actually exists and is just hidden."	davidsword
	61064	Add filters for list table pagination and column header links		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-04-24T08:06:17Z	2024-04-24T08:26:17Z	The list table pagination and column header links sometimes use the wrong hostname (#36201). Adding filters for these will allow people to modify the values if needed.	jefferyto
	48270	Add space before first parentheses of if condition for JS consistency		Administration	5.3	normal	minor	Awaiting Review	enhancement	new	has-patch	2019-10-10T09:02:29Z	2019-10-12T01:47:15Z		mehidi258
	65170	Add unit tests for iis7_delete_rewrite_rule()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-05T21:02:01Z	2026-05-07T16:20:44Z	This ticket adds comprehensive unit tests for the IIS7 delete rewrite rule function in wp-admin/includes/misc.php to ensure correct XML manipulation in web.config files.	pbearne
	65173	Add unit tests for saveDomDocument()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-05T21:29:40Z	2026-05-07T16:20:44Z	This ticket adds unit tests for the saveDomDocument() function in wp-admin/includes/misc.php. These tests ensure that the function correctly saves a DOMDocument to a file and properly converts line endings to CRLF.	pbearne
	65174	Add unit tests for update_recently_edited()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-05T21:35:38Z	2026-05-14T23:35:23Z	This ticket adds unit tests for the update_recently_edited() function in wp-admin/includes/misc.php. These tests ensure that the function correctly manages the list of recently edited files in the recently_edited option, maintaining order and a maximum of 5 items.	pbearne
	58264	Adding spinner to submit_button with wrap		Administration	6.2	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2023-05-06T04:36:56Z	2023-10-30T15:44:51Z	"As a plugin developer, I need to use this function on almost all panels I make, but every time I need an ajax functionality, or somewhere where i need to prevent double click and disable the button, and perhaps show a spinner, the wrap=true functionality does not work for me. 

I suggest we extend this function to have a spinner, in case of wrap=true."	msolution
	64641	Admin Reskin: Add framed layout to wp-admin with scrollable content area		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-02-15T10:46:47Z	2026-02-16T10:01:17Z	"This ticket introduces a framed layout for `wp-admin` as part of the WordPress 7.0 (or 7.1) admin visual refresh (#64308).

== Why This Matters ==

The current admin layout uses a flat, full-bleed design where the content area fills the entire viewport. A framed layout with a visible background, rounded corners, and consistent spacing creates a more modern, focused interface that better separates navigation from content and matches the design already used in the Site Editor. It also matches what the new wp-boot powered screens such as the new Appearance -> Fonts screen look like.

== Proposed Scope ==

'''Layout structure:'''
 * `#wpwrap` uses a fixed viewport height with a dark background (`#1e1e1e`)
 * `#wpcontent` becomes a flex column with padding to create the frame gap on right and bottom edges
 * `#wpbody-content` gets a white background, `border-radius: 8px`, and `overflow-y: auto` for independent scrolling
 * `#wpbody-content` uses `display: flex; flex-direction: column` to keep the footer at the bottom via `margin-top: auto`

'''Block editor integration:'''
 * The editor's `.interface-interface-skeleton` keeps its native `position: fixed` to preserve z-index stacking
 * Non-fullscreen mode gets `right: 16px`, `bottom: 16px`, `border-radius: 8px`, and `overflow: hidden` to fit within the frame
 * Fullscreen mode removes the frame entirely (no border-radius, no padding, no margin)

'''Footer:'''
 * `#wpfooter` is moved inside `#wpbody-content` so it participates in the scroll area
 * Uses `margin-top: auto` within the flex column to always sit at the bottom

'''Screen meta (Help / Screen Options):'''
 * `#screen-meta-links` uses `align-self: flex-end` instead of `float: right` to work within the flex column layout
 * `#screen-meta` panel stays in normal flow so expanding it pushes content down

'''Responsive:'''
 * On small screens, the frame is removed: `border-radius: 0`, `overflow: visible`, `height: auto`
 * Screen meta margins adjust to `10px` on both sides

== Key Principles ==

 * '''CSS-Only Changes''': Layout achieved through CSS, with one small change in `admin-footer.php` to reorder the footer position in the DOM
 * '''Backward Compatibility''': All existing selectors preserved, block editor z-index behavior maintained by keeping `position: fixed`
 * '''Fullscreen Unaffected''': Fullscreen mode strips the frame for a clean, borderless experience
 * '''Accessibility''': Scrollable content area uses `overscroll-behavior: none` to prevent scroll chaining, focus styles remain visible

== What This Is NOT ==

 * No changes to the admin menu or admin bar
 * No changes to admin color scheme values
 * No JavaScript modifications
 * No changes to block editor internal layout

== Testing Approach ==

Test across multiple admin screens with varying content lengths:

 * Short-content pages (Tools, Import/Export) — footer should be at the bottom, not floating mid-page
 * Long-content pages (Posts list, Settings) — content should scroll within the frame with visible border-radius
 * Block editor (Post, Page) — editor should fit within the frame with rounded corners in non-fullscreen mode
 * Block editor fullscreen — frame should be completely removed
 * Help / Screen Options panels — expanding should push content down, toggle buttons should move with the panel
 * Dashboard — drag zone placeholders should have proper spacing

Verify at 100% and 200% zoom, in RTL layout, and on mobile viewport widths (frame should be disabled).

== Related Resources ==

 * Parent ticket: #64308
"	fabiankaegy
	60974	Admin notice layout improvement		Administration		normal	normal	Awaiting Review	enhancement	new		2024-04-10T05:44:17Z	2024-09-03T13:54:57Z	"I suggest we need to improve the layout of notices across all pages on our WordPress admin , as it's currently quite messy. We should try to use the same layout for every screen.

Here is different screen short 
1. https://prnt.sc/bLvWRY0N_jvG
2. https://prnt.sc/Wfj9RDJ6shx3

Thanks"	pateljaymin
	49616	Audit /wp-admin and sentence-case UI elements (buttons, drop-downs) for better readability		Administration		normal	normal	Future Release	enhancement	new	has-patch	2020-03-10T14:24:09Z	2021-01-19T16:16:04Z	"I know this has been done throughout Gutenberg and in core to some extent (see #49371 and #48412). Would it be worth doing a sweep of the remainder of /wp-admin to sentence-case UI elements once and for all? 

Examples:

* ""Add New Post"" becomes ""Add new post""
* ""All Categories"" becomes ""All categories""

The case for sentence case, h/t @danhauk:

* Sentence case improves readability by allowing users to see proper shapes of words without the breaking flow of Capital Letters (i.e. Title Case is harder to read quickly because of how we typically read using the shapes of words.)
* Sentence case respects the difference between proper nouns and the other words. For example, “Upgrade to premium plan” vs. “Upgrade to Premium Plan” could have very different meanings.
* i18n: some languages capitalize different things (e.g. all nouns are capitalized in German). Title case adds cognitive load when users have to figure out which words are nouns, for example.

I welcome your thoughts!"	sixhours
	55306	Before posts/pages listing if there multiple filter drop-downs, view of pagination buttons are not better looking.		Administration	5.9.1	normal	normal	Awaiting Review	enhancement	new	has-patch	2022-03-03T12:21:37Z	2025-09-13T10:13:34Z	"While working on multiple drop-downs for particular post type, I came to find this bug when there is pagination is involved, UI is slightly damaged.

Check the attachments for more details.


"	haritpanchal
	64571	Better Exposing Admin Color Scheme		Administration		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2026-01-30T01:46:50Z	2026-01-30T01:49:40Z	"== Why?
After some research, it appears that there are no admin color scheme mappings already implemented in GB [https://github.com/WordPress/gutenberg/blob/20d91613a29204003858ba50a4f1534ea28790e3/packages/theme/src/color-ramps/stories/index.story.tsx except for a story in Storybook].

And in some tests.

So basically my idea here could be exposing the whole set so it can be used in future iterations of the new admin pages (like the new Fonts page; see [https://github.com/WordPress/gutenberg/pull/75053 GB75053])

== How?
I've mapped every single variable to each corresponding property.
"	SirLouen
	60785	Bulk editing of posts (and pages) use a GET		Administration	6.4.3	normal	normal	Awaiting Review	enhancement	new		2024-03-15T19:55:59Z	2024-03-15T19:55:59Z	"WordPress issues a GET with the arguments for doing a bulk edit, which means a limit of around 60 edits in one go (due to a 1000+ symbol limit).

Any reason why bulk edits aren't done via POST? Is it due to 303 POST/GET conversion? Any other way to solve it so (only) POST could be used?

Example of URL causing the issue (I tried to edit merely 600 posts):

https://[somedomain]/wp-admin/edit.php?s=&post_status=all&post_type=post&_wpnonce=0ddbd96e67&_wp_http_referer=%2Fwp-admin%2Fedit.php&action=edit&m=0&cat=0&post_format=&paged=1&post_category%5B%5D=0&tax_input%5Bpost_tag%5D=&post_author=-1&comment_status=closed&ping_status=&_status=-1&sticky=-1&bulk_edit=Update&post_view=list&screen=edit-post&post%5B%5D=957898&post%5B%5D=957881&post%5B%5D=957815&post%5B%5D=957761&post%5B%5D=957634&post%5B%5D=957631&post%5B%5D=957601&post%5B%5D=957559&post%5B%5D=957338&post%5B%5D=957041&post%5B%5D=956907&post%5B%5D=956898&post%5B%5D=956855&post%5B%5D=956705&post%5B%5D=956676&post%5B%5D=956654&post%5B%5D=956594&post%5B%5D=956592&post%5B%5D=956490&post%5B%5D=956483&post%5B%5D=956465&post%5B%5D=956459&post%5B%5D=956348&post%5B%5D=956339&post%5B%5D=956327&post%5B%5D=956286&post%5B%5D=956273&post%5B%5D=956254&post%5B%5D=956205&post%5B%5D=956188&post%5B%5D=956165&post%5B%5D=955897&post%5B%5D=955879&post%5B%5D=955862&post%5B%5D=955856&post%5B%5D=955853&post%5B%5D=955849&post%5B%5D=890391&post%5B

Thanks in advance."	andersborg
	58781	Change wording of field description for tagline		Administration		normal	normal	Future Release	enhancement	new	dev-feedback	2023-07-11T06:26:54Z	2024-08-20T09:01:05Z	"This is a follow-up to #57675

I [https://core.trac.wordpress.org/ticket/57675#comment:28 raised my concerns there], but it was too late in the cycle. So here we go:

These are my concerns about the solution we use now:

1) The example is misleading, the tagline should be meaningful, and just not like in the example

Using a unique and descriptive tagline is important for search engine optimization (SEO) purposes, as it helps convey the website's purpose and relevance to both search engines and visitors.

2) The &#8220; and &#8221; could be misunderstood so people would enter quotation marks into the tagline.

This can impact the visual presentation and readability of the tagline to visitors.

To keep the iconic phrase ""Just another WordPress site"" while being informative at the same time we could formulate:

 In a few words, explain what this site is about. We're sure your site is so much more than ""Just another WordPress site"""	Presskopp
	47544	Code Editor not listing files/folders in the right order		Administration	5.2.1	normal	minor	Future Release	enhancement	new	has-patch	2019-06-15T08:13:32Z	2026-04-07T12:02:55Z	"On new installations on test sites, I have seen the correct order for listing of files/folders in the code editor. 

ie:

 - important files
 - folders
 - files in the root. 

However, in my installation, I don't get the same order.

Example screenshot attached. 

[[Image(https://i.imgur.com/MSaqTUc.png)]]

readme.txt and composer.json should be lower in the list. "	superpoincare
	50050	Community Events: Sort pinned events chronologically		Administration		normal	normal	Awaiting Review	enhancement	new		2020-05-01T19:03:26Z	2020-05-01T19:09:57Z	"Events in the widget are normally sorted chronologically, but we also pin special events like regional WordCamps -- Asia, Europe, US -- and WP15. We're also [https://make.wordpress.org/core/2020/04/02/showing-online-wordcamps-in-the-events-widget/ currently pinning the next online WordCamp]. Those pinned events aren't sorted chronologically, instead they appear at the top of the list, even if there are local events that happen sooner.

The sorting order isn't obvious to the user, and I think most people will assume that it's sorted chronologically, since that's what normally happens. That can lead to people assuming that their local events happen ''after'' the pinned events (which may be several months away)."	iandunn
	65369	Connectors API: add OAuth authentication method support		Administration		normal	normal	Awaiting Review	enhancement	new		2026-05-28T23:32:23Z	2026-05-28T23:32:23Z	"The Connectors API should support native OAuth flows. This would unlock a lot of capability especially in the AI era. 

**Current State:**

- Core currently only accepts authentication.method values api_key and none in src/wp-includes/class-wp-connector-registry.php.
- There is an explicit PHPUnit test that rejects oauth as invalid.
- The admin UI only renders a built-in card for api_key connectors.
- The WP AI Client bundled in core only has ApiKeyRequestAuthentication; its auth enum says “At the moment, this is the only supported method.”

**OAuth Flows in WordPress Would Unlock:**

1. Social media connectors
2. Chat app connectors (WhatsApp, Telegram, Slack)
3. Analytics app connectors (GA4, GSC, etc)
4. GitHub, Codex, etc connectors


I genuinely believe this should happen as soon as possible. Thank you! 
"	extrachill
	37228	Consider to rethink and improve the list tables pagination links		Administration	7.0	normal	normal	Future Release	enhancement	new	has-patch	2016-06-29T14:04:15Z	2026-05-20T08:52:58Z	"Splitting this out from #33962. See also #32558.

Quickly discussed at WCEU 2016 Vienna's Contributor Day with @karmatosed and @hugobaeta and noticed the pagination links offer room for design improvements. Looks like there are no apparent reasons (other than historical ones) why the top and bottom pagination links should differ and maybe the editable input field should be displayed only when there are more than 3 pages.

As @helen pointed out, also the interactions could benefit from some rethink.

This would probably be a very nice ticket for designers willing to contribute :)

Current state on 4.6 trunk:

[[Image(https://cldup.com/jPRxp_462C.png)]]

with longer translated strings:

[[Image(https://cldup.com/lkdtPkEn0P.png)]]"	afercia
	64602	Document WP_List_Table behavior change in WordPress 6.9 - bottom tablenav skipped when empty		Administration		normal	normal	Awaiting Review	enhancement	new	needs-docs	2026-02-05T13:27:18Z	2026-08-24T23:11:42Z	"= Summary =

WordPress 6.9 introduced a behavior change in `WP_List_Table::display_tablenav()` that affects plugins using the `manage_posts_extra_tablenav` hook.

= The Change =

In WP 6.9, the following code was added to `display_tablenav()`:

{{{
if ( 'bottom' === $which && ! $this->has_items() ) {
    return;
}
}}}

This optimization skips rendering the bottom tablenav entirely when there are no items in the list table.

= Impact on Plugins =

Plugins that hook into `manage_posts_extra_tablenav` with `$which === 'bottom'` to display custom empty states or notices will find their code no longer executes when the list is empty.

Example affected code:
{{{
add_action( 'manage_posts_extra_tablenav', 'my_empty_state' );

function my_empty_state( $which ) {
    global $post_type;
    
    if ( $post_type === 'my_cpt' && $which === 'bottom' ) {
        if ( empty_list_condition() ) {
            // This never fires in WP 6.9 when list is empty
            display_empty_state();
        }
    }
}
}}}

= Request =

This should be documented in:
1. **WordPress 6.9 Developer Notes / Field Guide**
2. **Hook documentation for `manage_posts_extra_tablenav`**
3. **WP_List_Table class documentation**

= Suggested Documentation =

For the `manage_posts_extra_tablenav` hook documentation:

""Note: As of WordPress 6.9, this action will not fire for `$which === 'bottom'` when the list has no items (`has_items()` returns false).

"	nithi22
	64432	Editing Workflow: List front page first in Pages list as default		Administration		normal	minor	Awaiting Review	enhancement	new	close	2025-12-19T02:50:11Z	2025-12-21T05:42:00Z	"
As a user of WordPress on sites with >20 pages I frequently have to comb through multiple pages of the page list to find the front page. If you search ""front page"" it does not find the front page. The fastest way to find it ends up being to log in and go to the home page and hit edit post, while using the pages page is not fast unless its a very small site.

Since that is the main and landing page of the website it should be listed first in the page list as a default, so it's always easy to find.

#39666 is still open and is asking for the front page to be made into a sticky/pinned item above the page list (I think) --- that seems overly complex and could add some confusion to the user experience (as noted in the comments if someone selects display 2 and then there are more than 2 displayed). It could simply just be listed first in the regular page list (no sticky) so it's easy to find. :) 


If WP wants to be more complicated about this there could be more options on the top of the page for how pages are listed i.e. front page first, top level menu pages first, pages with X criteria first etc etc. If WP is rolling with the pinned post ideas, users should probably be able to customize what posts are pinned in that case. 

But initially having the front page just be listed first would make editing the home page less tedious.

"	amykamala
	60622	Enhancement: add filter to function get_home_path() return value		Administration	6.4.3	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2024-02-23T11:14:41Z	2025-08-07T13:55:38Z	"Allowing to filter the return value of wp-admin/includes/file.php:get_home_path() would help to handle cases when WordPress is used as an headless Rest API backend and wp_options home points to a different domain than siteurl.

In such a case, get_home_path fails to get the absolute filesystem path of the root of the WordPress installation.

Being able to filter the output of get_home_path() would allow developers to avoid breaking its functionality on headless setup.

Why is important: in a headless setup, having wp_options home set to the frontend domain allow WordPress to generate user-facing urls with the correct domain.



"	alexrah
	52249	Events: Show user multiple location choices to disambiguate		Administration		normal	normal	Awaiting Review	enhancement	new		2021-01-07T20:25:55Z	2021-01-07T20:25:55Z	"When a user types their city into the Events Widget, the API geocodes it to the best match. There's a lot of complexity involved in that, and the top result isn't the correct one too often.

Over the years we've spent a lot of time refining the API, see #meta5562 for the latest in a long string of tickets. I think the inherent problem is that we're trying to pick a single perfect result, which is just not practical.

Instead, we could [https://developers.google.com/maps/documentation/geocoding/best-practices return the top ~5 results, and let the user pick the one they intended].

That'd offer a better UX, and much more reliable results.
"	iandunn
	65843	Expand the Tools screen with Import, Export, and Code Editing cards & adding a message when there are no tools to display		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-08-10T07:07:42Z	2026-10-23T06:00:49Z	"The Tools screen currently shows a single card, the Categories and Tags Converter,
even though Tools is the home of Import, Export and — for block themes — the Theme
and Plugin File Editors. Users have to already know those screens exist in the submenu.

This adds three cards in the existing `.card` style used by the converter, each
listing the options available on its screen and linking to it:

 * '''Import Tools''' — the importers returned by {{{wp_get_popular_importers()}}}, shown only to users who can {{{install_plugins}}} (matching import.php)
 * '''Export Tools''' — the choices offered by export.php, including any custom post type registered with {{{can_export}}}
 * '''Code Editing Tools''' — Theme File Editor and Plugin File Editor

Each card is gated independently on the capability its target screen enforces
({{{import}}}, {{{export}}}, {{{edit_themes}}}, {{{edit_plugins}}}), so the screen only
advertises what the user can actually reach. The Plugin File Editor entry follows
menu.php and is hidden on multisite, and the Code Editing card disappears entirely
under {{{DISALLOW_FILE_EDIT}}}.

When nothing at all renders — including nothing hooked to {{{tool_box}}} — the screen
shows ""No tools are available for your account."" instead of being blank.

== Relationship to #42486 ==

This resolves the blank Tools screen reported in #42486, but by filling the page
rather than by removing the menu item.

The patches on that ticket all hide the Tools menu when it would be empty. That
approach stalled because hiding Tools breaks plugins that add submenus for users
without {{{import}}} (comment 48), and because of the capability asymmetry dd32
listed in comment 4 (can import but not export, and vice versa). Per-card gating
handles both. Filling the page was suggested on that ticket by dd32 in comment 4
and by Clorith in comment 38.

Note this deliberately keeps the Tools menu item. If this lands, the menu.php change
proposed in #42486 may no longer be needed, but that is a separate decision and this
patch does not touch menu.php.

== Backward compatibility ==

{{{tool_box}}} fires unchanged — same name, no arguments, same position. Its output is
buffered only so that a plugin card suppresses the empty-state message; the output is
echoed unmodified.

The Categories and Tags Converter card, its markup and its help tab id are unchanged.

Three new filters let plugins adjust or remove each new card:

 * {{{tools_screen_import_options}}}
 * {{{tools_screen_export_options}}}
 * {{{tools_screen_code_editing_options}}}

Happy to drop these if new hooks are not wanted; the cards work without them.

== Strings ==

Four new strings: ""Import Tools"", ""Export Tools"", ""Code Editing Tools"" and ""No tools
are available for your account."" Everything else reuses existing translations — the
editor descriptions come from theme-editor.php and plugin-editor.php, the export list
from export.php, and the importer names and descriptions from
{{{wp_get_popular_importers()}}}.

== Testing ==

 * Administrator: all four cards
 * {{{export}}} but not {{{import}}} or file editing: only the Export card
 * Author/Contributor: the ""No tools are available for your account."" message
 * Author/Contributor with a plugin hooked to {{{tool_box}}}: the plugin card renders, no message
 * A custom post type with {{{can_export => true}}} appears in the Export list; {{{can_export => false}}} does not"	abdulawal39
	44992	Filter for screen option 'Number of items per page' value		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2018-09-25T15:04:14Z	2019-02-28T16:14:55Z	"Under 'Screen Options' we have 'Number of items per page' option to set post per page value.

I found that we don't have any filter to change the default max limit of 'Number of items per page'. I think it will be helpful if we have such filter.

Scenario which is cover by filter:

Suppose the admin of a WooCommerce site who gave access of site to other user to process orders. The user who has access to the site increases the default 'Number of items per page' value, lets say 500. Because of this number of orders fetched, will be more.

Suppose the database is huge, this process will take time and the site gives slow response to all users.

In this case suppose if the admin wants to change the default max limit to 100 then this filter will be useful.
"	abhijitrakas
	63418	Form fields in mobile view of taxonomy screens use inconsistent width		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2025-05-08T16:06:28Z	2025-05-26T14:29:53Z	"In the mobile view of taxonomy screens (e.g. Posts > Categories, Posts > Tags), the form fields in the “Add New” section are styled with width: 95%, which results in a narrower appearance compared to:
- The search input at the top
- The taxonomy table below
This creates a subtle but noticeable inconsistency in layout and visual rhythm.

=== Steps to reproduce:
1.	Open the WordPress admin on a mobile device or use responsive mode in browser dev tools.
2.	Navigate to Posts > Categories or Posts > Tags.
3.	Observe the “Add New” form fields.
4.	Notice that the fields are narrower (95%) compared to the full-width elements above and below.

=== Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.27.5
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 135.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins: Test Reports 1.2.0

=== Screenshots

[[Image(https://rioudcpuyg.ufs.sh/f/PL8E4NiPUWyOBNtJlvoZ01UHRG85yihbLqO4YmEXjegTsuz6)]]
"	sainathpoojary
	58293	Improve default positioning of dashboard widgets		Administration		normal	normal	Awaiting Review	enhancement	new		2023-05-11T07:15:28Z	2023-05-23T07:41:21Z	"By default, any dashboard widgets are assigned a position of ""normal"" (if a position is not specified). As a result, your Dashboard can look a mess if not arranged.

Here's an example of a clean install with just recommended plugins (according to wp.org) activated...

[[Image(https://artiss.blog/wp-content/uploads/2023/05/Dashboard.png)]]

As you can see, the length of that screenshot is down to all of the dashboard widgets being added to the very left-hand side.

My suggestion would be that, if no specific position is given, that widgets are freely allocated across the columns (if only the first 2 columns, for maximum readability, although this could be dynamically adjusted based on the height of the existing columns).

Of course, the individual user is then free to drag/drop the widgets however they wish, if they want it to be any different."	dartiss
	64264	In Post List Table Extended View - place post excerpt in 2nd row spanning all columns		Administration		normal	normal	Awaiting Review	enhancement	new		2025-11-17T23:17:04Z	2025-11-17T23:17:04Z	"When in the WP Admin interface ""Post List Table"" a user has selected ""Extended View"", it would be great if the additional text, i.e. the long post excerpt for each post would be placed in a second row that would span all columns.

This way the extended view would immediately become more useful and for long posts in tables with many narrow columns you would use the available space much more efficiently.

In many cases a similar change seems useful, or at least not detrimental, for various types of custom post formats. 

Touches:  WP_List_Table class"	tobifjellner
	48167	"Increase discoverability of, and describe, ""Anyone can register"" and other settings"		Administration		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2019-09-29T10:44:07Z	2019-10-02T13:13:32Z	"Right now, after installation, it is not possible to register until the user enables Anyone Can Register option from Settings -> General area. Which is confusing for the general user. If it can be enabled by default that would be really time-saving. Also, this option can be added to the installation setup-wizard of WordPress. 

Screenshot- https://prnt.sc/pcf1xf"	nazmulhassann20
	47890	Indentation within Post Publish (Classic Editor) and Comment Save Metaboxes:		Administration		normal	normal	Awaiting Review	enhancement	new		2019-08-17T12:53:54Z	2021-12-14T18:43:02Z	"This is a spinoff from ticket #43587, as suggested by @melchoyce

https://core.trac.wordpress.org/ticket/43587#comment:23

to add an indentation for subitems of the Post Publish Metabox for the Classic Editor and the Comment Save Metabox.


"	birgire
	64378	List Table - Possible UX improvement		Administration		normal	normal	Awaiting Review	enhancement	new		2025-12-08T12:40:03Z	2025-12-11T15:41:52Z	"When viewing the post list on some sites, the text can appear vertically. This is a known issue (#52151), but I wanted to suggest a potential UX improvement to help the table handle extra columns more gracefully.

When many plugin-added columns are present, the layout becomes cramped, and the title column wraps, for example: https://d.pr/i/5LLvmb

A possible approach:

1) Keep key columns, like the post title, fixed and always visible.
2) Move any additional or lower-priority columns (e.g., those added by plugins) into a simple “More” dropdown when there isn’t enough space.

This would keep the table readable while still exposing the same information, without relying on users to manually hide columns via Screen Options."	ianmjones83
	32626	List tables CSS: inconsistent alignments		Administration	4.2	normal	normal	Future Release	enhancement	new		2015-06-12T15:51:24Z	2026-10-09T12:26:15Z	"While working on #31654 noticed inconsistencies in the alignments of the checkboxes and also some other small details in the List Tables that would need a bit of love, see the screenshot below for some examples. This would also greatly simplify the List Tables CSS where many (crazy) selectors are just to override exceptions that override other exceptions etc. See also related #29990.

[[Image(https://cldup.com/T48AqNGdT0.png)]]

A possible plan would be:
- stick to a default padding for the cells with checkboxes (10px ?)
- the checkbox in the table headers would probably need no padding and `vertical-align: middle` to handle #29990
- handle the special case for comments, plugins and network themes in a consistent way
- there's a 1 pixel difference in the vertical alignment of links and normal text in the table headers
- images should be consistently aligned"	afercia
	56781	"Missing ""Deactivated"" filter at top of ""All Sites"" on multisite installation."		Administration		normal	normal	Awaiting Review	enhancement	new		2022-10-10T14:10:55Z	2022-10-14T23:42:46Z	"The administration screen /wp-admin/network/sites.php has several filter links at the top of the page.

They are ( All (#) | Public (#) | Archived (#) | Deleted (#) )

The filter ""Deleted"" inaccurately includes sites that are ""Deactivated.""

A filter to handle those sites that are ""Deactivated"" should be added.

WordPress version: 6.0.2 - Multisite

"	richardkrone
	45313	Multisite site deletion email contains misleading language about user account		Administration		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2018-11-08T15:35:10Z	2018-11-08T15:35:10Z	"In Multisite, you can initiate the deletion of a site via wp-admin/ms-delete-site.php. This triggers an email https://core.trac.wordpress.org/browser/tags/4.9.8/src/wp-admin/ms-delete-site.php?marks=58#L43 that contains the line:

> (But remember your current site and username are gone forever.)

But the delete link does not, in fact, delete users or usernames. See https://core.trac.wordpress.org/browser/tags/4.9.8/src/wp-admin/ms-delete-site.php?marks=20#L18

This language dates from the MU merge in 3.0. See [12603]. I imagine it was linked to the original conception of WPMU that each user account would correspond to a specific site on the network, a legacy concept that plagues us elsewhere. See #17904, especially https://core.trac.wordpress.org/ticket/17904#comment:14 and subsequent comments.

This entire block of text could probably reuse a rethink, since the intended use of Multisite has changed considerably since 2010. I'd suggest changing the email text to something like (using `wpmu_welcome_notification()` as a template):

{{{
	$content = __( ""Howdy ###USERNAME###,

You recently clicked the 'Delete Site' link on your site and filled in a
form on that page.

If you really want to delete your site, click the link below. Please note
that the URL ###SITE_URL### will be unavailable for further use, even after
the site is deleted.

You will not be asked to confirm again, so only click this link if you are absolutely certain that you'd like to delete your site:
###URL_DELETE###

-- The Team @ ###SITE_NAME###"" );
}}}"	boonebgorges
	35315	New action `manage_posts_before_extra_area`		Administration		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2016-01-05T07:47:13Z	2025-12-04T15:16:57Z	I think that should be action before table of posts in edit.php. Why ? Because I want add settings for post type in this section or custom form.	sebastian.pisula
	24795	OS X Treatment		Administration	3.6	normal	trivial	Future Release	enhancement	new	has-patch	2013-07-18T15:54:01Z	2017-02-05T14:09:10Z	"Just a minor annoyance. Certain things are inherently different about using a Mac over any other Operating system. Specific to my case is keymappings. While I suspect most Mac users are smart enough to read ""Ctrl + A"" and translate that to ""CMD + A"", we should be explicit when we can.

This patch inrtroduces pluggable function is_osx() that is really basic. Sadly, relies on User Agents and so is inherently flawed, but mainly useful anyway.

Using this function, the Permalinks Options screen uses Command A instead of CTRL A when .htaccess is not writable.

A little thing but annoying enough to warrant a patch."	technosailor
	52528	Possible unnecessary buffering of output data in wp-includes/functions.php		Administration	5.6.1	normal	normal	Awaiting Review	enhancement	new		2021-02-15T11:32:50Z	2021-04-06T18:10:36Z	"Hello!

I have to start by apologizing if I am in the wrong place, or if I am structuring this ticket badly. I don't have much experience here inside trac. I am unsure of the component this ticket should be attached to.

I stumbled upon a fatal error when trying to load the WooCommerce status page. The system runs out of memory on [https://core.trac.wordpress.org/browser/tags/5.6.1/src/wp-includes/functions.php#L4755 line 4755 in wp-includes/functions.php].

While the actual bug most certainly lies elsewhere, I got some hints from my host that the solution on line 4755 is not the best. I have no clue about this, but I thought I at least could submit a ticket and let the community decide!

To paraphrase a translation, they say:

wp-includes/functions.php line 4755 has an unnecessary buffering of output data that uses ob_start(). We can turn it off, but it's not very important. The underlying reason is the fact that there is a lot of output data that is getting returned to the browser. Probably an amount of data that is so big that there has to be a bug somewhere.

This is not a ticket to handle the bug that returns way too much data, but it's a ticket to flag the possible issue of unnecessary buffering of output data in wp-includes/functions.php.
"	Dekadinious
	61702	Post via email: Login Name field triggers Safari's login autocomplete		Administration		normal	normal	Awaiting Review	enhancement	new		2024-07-18T21:57:05Z	2024-07-18T22:17:31Z	"In Safari, when navigating to ''Settings > Writing'', the ""Post via email"" **Login Name** field is auto-selected and the browser's autofill popup appears for the field (Safari's web form autofill is enabled by default). This field is selected/focused automatically by the browser upon navigating to the page. To reproduce, the user must have credentials saved for the WordPress site using Safari's password management feature.

[[Image(https://cldup.com/_H3FDQ5obm.png)]]

After some testing, the autofill popup appears to be triggered by the term ""Login"" in the field label. When the label is changed to something more generic (like ""User""), it isn't automatically focused and the popup does not appear.

**Why is this a problem?**
IMHO, this issue stems from the prominence of this popup, which suggests the user should select a credential from the list. However, this isn't an actual login form (as password managers may assume), so autofilling these fields does not make sense.

Where things could go wrong is that these are text fields stored as clear text in `wp_options`. If a user were to unwittingly click an available login fill option and save the form, then their site credentials could be unintentionally stored in the `mailserver_login` and `mailserver_pass` fields.

Even if how Safari handles this field is the underlying issue, I think there could be an opportunity for WordPress to make this more user friendly, and to treat the field differently from a login form.

**Why not use `autocomplete=""off""`?**
While most browsers offer [https://caniuse.com/input-autocomplete-onoff partial support] for this option, for security and accessibility reasons it is largely [https://developer.mozilla.org/en-US/docs/Web/Security/Practical_implementation_guides/Turning_off_form_autocompletion#managing_autofill_for_login_fields ignored for fields that relate to logins/credentials].
"	ironprogrammer
	48470	Remove the Custom Header and Custom Background admin pages		Administration		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2019-10-30T17:30:46Z	2019-10-30T17:30:46Z	"I fell into a rabbit hole today looking into why the `custom-header.js` file is [https://core.trac.wordpress.org/browser/branches/5.3/Gruntfile.js#L689 specified to not get minified] in `Gruntfile.js`. I did not find an answer to that question (it has been like that since Core switched to the new build process in [25001] and I couldn't find prior discussion), but I realized that the custom header and background pages in the admin should probably be officially deprecated in favor of the Customizer.

This is a follow up of #25569, #25571, #28032, which proposed removing these pages, but instead settled on an intermediary set of changes to encourage users, and theme and plugin developers to use the Customizer for this feature instead. Those changes were:
- Change the admin menu links from links to `themes.php?page=custom-header`/`themes.php?page=custom-background` to deep links in the Customizer (`https://site.com/wp-admin/customize.php?autofocus[control]=header_image`)
- Added an admin notice informing users that the feature can now be managed with live-preview in the Customizer.
- Hid the Background and Header links in the admin bar and with CSS when Customizer support is present.

This was in version 4.1 (5 years ago). Proper due diligence needs to be performed first, but I'd like to propose removing support for these pages in the admin in favor of redirecting users to the appropriate areas of the Customizer. The pages have been neglected for some time, and the previews are pretty broken for most themes providing a bad experience whenever a plugin or theme has linked to these pages directly."	desrosj
	54400	"Show ""Add New"" title buttons on single-site Plugins/Themes pages for capable users in multisite"		Administration	3.0	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2021-11-08T18:31:15Z	2021-11-08T20:05:50Z	"On multisite installations, when viewing a single site's admin area – as a Network Admin (or otherwise capable user) – none of the ""Add New"" links for Plugins & Themes are displayed.

I would like to re-add these buttons back, but have them link to the correct Network Admin pages.

At first scan, not having these buttons on single sites makes sense because it is not possible to add a new plugin or theme at the site level.

After having this be the default behaviour since WordPress 3.0, I think it could be improved.

Conceptually, the problem isn't that installing plugins or themes is no longer possible in multisite, it is simply that the location and capabilities required to do so are elevated from single-site.

If the currently logged in user can access those locations ''and'' has the capability to perform the task, it would be convenient to re-show these buttons but link them to the network URLs.

To replicate:
* Log into a multisite installation as a Network Admin
* Visit `/wp-admin/plugins.php`
* Notice there is no ""Add New"" link or button anywhere
* The only UI path to add a plugin is: `Admin Bar > My Sites > Network Admin > Plugins > Add New`

(Themes has the same above issue & relative navigation...)"	johnjamesjacoby
	65996	Show all non-core submenu entries after a divider		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-08-30T15:27:49Z	2026-10-01T15:21:44Z	"The admin UI is not very customizable. We can't move menu entries around or hide specific ones in the UI itself (only via code).

The benefit of this is, that training/support/tutorials always know where to send the user.

But if there are many plugins installed the admin UI can still get a mess. As a first little step in the direction of make the UI more tidy I would like to suggest **showing the core items of a submenu first** and then after a divider **show the added submenu items in alphabetically order**.

This is exactly what this plugin does:
https://wordpress.org/plugins/sortacular/
https://github.com/DLXPlugins/sortacular

Unfortunately this will get closed soon (on 1st of October):
https://dlxplugins.com/announcements/dlxplugins-is-closing/

Adding this to core would make the UI more consistent. People do not need to look for the core items in a long list of e.g. plugin settings."	zodiac1978
	64443	Show last updated date for locally installed plugins and themes		Administration		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2025-12-22T13:16:46Z	2025-12-30T13:13:02Z	"Problem:
Currently, WordPress does not show when a locally installed plugin or theme was last modified.
This makes it difficult for site owners and developers to identify recent local changes such as
manual edits, deployments, or hotfixes that are not reflected in repository update data.
 
Proposed Solution:
Display a ""Last updated"" date for locally installed plugins and themes based on filesystem
modification time. This information is shown only in the admin UI and does not affect update
checks or permissions.
 
Implementation Details:
- Plugins: Uses the filesystem modification time of the plugin file/directory and displays
  the date in the Plugins list table meta row.
- Themes: Determines the most recent modification time using style.css as a primary reference,
  with a fallback scan of the theme directory, and exposes the value to the Themes screen UI.
- Dates are formatted using date_i18n() and include proper translator comments.
 
Benefits:
- Helps administrators quickly identify recently changed plugins or themes
- Useful for debugging, deployments, and staging/production sync checks
- UI-only enhancement with no impact on core update logic
 
Testing:
- Verified with single-file plugins and directory-based plugins
- Verified with classic and block themes
- Tested on fresh installs and modified local themes
 
Patch:
Attached patch implements the above changes."	iflairwebtechnologies
	46659	Suggestion: add action hook before admin menu nav in the sidebar		Administration		normal	normal	Awaiting Review	enhancement	new		2019-03-26T16:02:53Z	2019-03-26T16:02:53Z	"To increase customizability in the admin sidebar menu, I added an action hook in the file **wp-admin/menu-header.php**. I needed this to implement a menu with the company logo, user avatar , username, some_meta_data, logout link. I removed the top horizontal menu for some user roles. It looks nice and this was the only way I managed to do it without using javascript. Using CSS I change the company logo to a small version of it when the menu is minimized.

**wp-admin/menu-header.php**
{{{
...
<div id=""adminmenuwrap"">
	<?php do_action('do_custom_before_admin_menu');?>
<ul id=""adminmenu"">
...
}}}


First time creating a ticket here, sorry if something is wrong."	umagrama
	65744	Switching Help tabs shifts the page content below the panel		Administration	7.1	low	minor	Awaiting Review	enhancement	new	has-patch	2026-07-28T13:44:21Z	2026-07-28T13:44:21Z	"When the Help panel at the top of an admin screen is opened and its tabs are clicked through, a different amount of content is shown by each tab, so the Help panel is resized to match and because the panel is made shorter or taller depending on which tab is open, everything below it on the page is shifted up or down every time a tab is switched.

Instead of the visible tab's content being swapped in and out of the page, a CSS grid is used to stack all tab panels on top of each other in the same cell, with only the currently active one being made visible. Because all tabs are placed in that same grid cell, the panel's size is determined by the largest tab up front and is kept fixed from then on — so the panel's height is no longer changed when tabs are switched, and the page below it is not moved.

'''One trade-off:''' the panel's height is now fixed to whichever tab has the most content on that screen, rather than to the one currently being viewed. So some empty space may be seen under a short tab if another tab on the same screen is much longer — a reasonable price considered acceptable for the page no longer being shifted around.

Technically, this is implemented in `src/wp-admin/css/common.css`: `.contextual-help-tabs-wrap` is turned into a grid container (`display: grid`), and every `.help-tab-content` panel is placed in the same grid area (`grid-column: 1; grid-row: 1`), with `visibility`/`pointer-events` being toggled on the active panel instead of `display`. In `src/js/_enqueues/admin/common.js`, the tab click handler is simplified accordingly — it now only toggles the `.active` class, rather than calling jQuery `.hide()`/`.show()` on the panels.

A video showing this behavior is available here: https://e.pcloud.link/publink/show?code=XZ8RNoZIvqqFT8IjxyUtydou3MpT0VM2f2y

"	Latz
	65243	Test: Add unit tests for wp_ajax_rest_nonce()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-14T21:01:09Z	2026-05-14T21:06:57Z	The function wp_ajax_rest_nonce() in src/wp-admin/includes/ajax-actions.php currently lacks unit test coverage. This task involves adding tests to verify that it correctly returns a REST API nonce for logged-in users and is inaccessible to logged-out users.	pbearne
	66606	Tests: Add unit tests for attachment_submit_meta_box() and post_custom_meta_box()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T09:16:00Z	2026-11-07T09:21:10Z	"`attachment_submit_meta_box()` and `post_custom_meta_box()` in `src/wp-admin/includes/meta-boxes.php` have no tests.

This ticket adds tests that cover:

* `attachment_submit_meta_box()`: the Update button, the date the file was uploaded, the `attachment_submitbox_misc_actions` action, and the link to delete the file (shown only to a user who can delete it, with the text and the address that depend on the media trash);
* `post_custom_meta_box()`: the custom fields of the post in the list, the protected fields and the ones that the user cannot edit being left out, the form to add a custom field, and the link to the documentation."	hmbashar
	65201	Tests: Add unit tests for heartbeat_autosave()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-07T17:14:20Z	2026-05-07T17:20:57Z	This ticket adds comprehensive unit tests for the heartbeat_autosave() function in wp-admin/includes/misc.php. These tests will verify that the function correctly triggers wp_autosave() and returns the appropriate Heartbeat response for success, error, and empty states.	pbearne
	65172	Tests: Add unit tests for iis7_add_rewrite_rule()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-05T21:14:28Z	2026-10-31T16:49:50Z	This ticket adds comprehensive unit tests for the iis7_add_rewrite_rule() function in wp-admin/includes/misc.php to ensure correct addition of WordPress rewrite rules to IIS7 web.config files, including handling of missing configuration elements.	pbearne
	66605	Tests: Add unit tests for register_and_do_post_meta_boxes() and the featured image and metadata meta boxes		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T09:01:34Z	2026-11-07T09:15:12Z	"`register_and_do_post_meta_boxes()` in `src/wp-admin/includes/meta-boxes.php` registers the default meta boxes of the classic post editing screen and runs the meta box actions. It has no tests, nor have `post_thumbnail_meta_box()` and `attachment_id3_data_meta_box()`.

This ticket adds tests that cover:

* which meta boxes are registered for a post, a page and an attachment (audio and other files), depending on the support of the post type (excerpt, trackbacks, custom fields, comments, author, page attributes, post formats, featured image), the status and the capabilities of the user;
* the revisions meta box (only with more than one revision), the meta boxes of the taxonomies (and the ones without UI), the arguments of the meta boxes, and the `add_meta_boxes`, `add_meta_boxes_{post_type}` and `do_meta_boxes` actions;
* the output of `post_thumbnail_meta_box()` and `attachment_id3_data_meta_box()`.

(`post_submit_meta_box()` and `page_attributes_meta_box()` are left out as open pull requests change them.)"	hmbashar
	66604	Tests: Add unit tests for the small meta boxes of the post editing screen		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T08:50:56Z	2026-11-07T08:59:29Z	"Several of the meta boxes of the classic post editing screen, in `src/wp-admin/includes/meta-boxes.php`, have no tests. (`post_submit_meta_box()` and `page_attributes_meta_box()` are left out as open pull requests change them.)

This ticket adds tests for the output of:

* `post_format_meta_box()` (the formats of the theme, the current format, a format that the theme does not support);
* `post_tags_meta_box()` (the taxonomy, the tags of the post, and a user who cannot assign terms);
* `post_excerpt_meta_box()`, `post_trackback_meta_box()` (the URLs to ping and the pinged ones), `post_comment_status_meta_box()` (and its action), `post_slug_meta_box()` (and the `editable_slug` filter), and `post_author_meta_box()`."	hmbashar
	65194	Tests: Add unit tests for update_home_siteurl()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-07T15:54:28Z	2026-05-07T16:20:44Z	This ticket adds unit tests for the update_home_siteurl() function in wp-admin/includes/misc.php. The tests will verify that rewrite rules are correctly flushed (or the rewrite_rules option is deleted in multisite) when site URLs change, while respecting the installation state.	pbearne
	65237	Tests: Add unit tests for wp_ajax_fetch_list()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-13T18:39:10Z	2026-11-10T14:58:07Z	 This ticket aims to add unit test coverage for the wp_ajax_fetch_list() function in src/wp-admin/includes/ajax-actions.php, which handles fetching list tables via AJAX.	pbearne
	65236	Tests: Add unit tests for wp_ajax_nopriv_heartbeat()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-13T15:31:28Z	2026-10-31T16:50:05Z	This ticket aims to add comprehensive unit test coverage for the wp_ajax_nopriv_heartbeat() function in src/wp-admin/includes/ajax-actions.php, which handles Heartbeat API requests in a no-privilege (logged-out) context.	pbearne
	65195	Tests: Add unit tests for wp_check_locked_posts()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-07T16:12:49Z	2026-05-07T16:26:50Z	This ticket adds comprehensive unit tests for the wp_check_locked_posts() function in wp-admin/includes/misc.php. These tests ensure that the function correctly identifies locked posts, handles missing or invalid data in Heartbeat requests, and verifies that the correct user information (including avatars and collaboration status) is returned based on user permissions and site options.	pbearne
	65176	Tests: Add unit tests for wp_make_plugin_file_tree(		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-05T22:07:32Z	2026-10-31T16:49:55Z	This ticket adds unit tests for the wp_make_plugin_file_tree() function in wp-admin/includes/misc.php. This function is responsible for converting a flat list of plugin files into a tree structure for use in the plugin editor.	pbearne
	65179	Tests: Add unit tests for wp_print_plugin_file_tree()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-06T18:03:49Z	2026-05-07T16:20:44Z	This ticket adds unit tests for the wp_print_plugin_file_tree() function in wp-admin/includes/misc.php. This function is responsible for outputting the hierarchical file list for the plugin editor.	pbearne
	65178	Tests: Add unit tests for wp_print_theme_file_tree()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-06T16:57:12Z	2026-05-07T16:20:44Z	This ticket adds unit tests for the wp_print_theme_file_tree() function in wp-admin/includes/misc.php. This function is responsible for outputting the hierarchical file list for the theme editor.	pbearne
	65198	Tests: Add unit tests for wp_refresh_metabox_loader_nonces()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-07T16:55:16Z	2026-05-07T17:05:12Z	This ticket adds comprehensive unit tests for the wp_refresh_metabox_loader_nonces() function in wp-admin/includes/misc.php. These tests ensure that the function correctly returns refreshed nonces (meta-box-loader and update-post_{$post_id}) when valid data is provided and the user has edit permissions.	pbearne
	65197	Tests: Add unit tests for wp_refresh_post_nonces()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-07T16:34:37Z	2026-05-07T16:37:27Z	This ticket adds comprehensive unit tests for the wp_refresh_post_nonces() function in wp-admin/includes/misc.php. These tests ensure that the function correctly returns refreshed nonces for post locking and unlocking when appropriate Heartbeat data is provided and the user has the necessary permissions.	pbearne
	54663	There are many missing comments in some files		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-12-19T16:10:55Z	2021-12-19T16:30:42Z		yagniksangani
	57925	Unclear message when URL for non-existing admin page is called		Administration	4.6	normal	normal	Awaiting Review	enhancement	new		2023-03-15T01:07:55Z	2023-03-15T17:47:14Z	"If you try to visit the admin page of a plugin that is currently inactive, then currently (WordPress 6.2) the error message given is:

{{{Sorry, you are not allowed to access this page.}}}

Even though in this case there may not even be such a page defined.
I got this message when I followed a link to the settings page of a plugin that had automatically disabled itself.
A user misunderstood this message in https://wordpress.org/support/topic/after-plugin-disabled-sorry-you-are-not-allowed-to-access-this-page/
One may reach this message if following an outdated bookmark to a plugin's admin page.

If possible, this particular case ""There is currently no such admin page defined in this system."" would be a better, and more actionable message."	tobifjellner
	57393	Unify checkbox handling and match wording with function on the User Profile screen		Administration	4.9	normal	normal	Future Release	enhancement	new	has-patch	2022-12-28T16:53:48Z	2025-01-03T10:27:29Z	"[The focus of this ticket shifted from discussing a potential functional bug to an improvement of wording and a more consistent behavior of checkboxes.
Using texts like ""Disable"" for toggled-on checkboxes can be confusing to users. For a better user experience, the toggled-on state should mean ""enabled"".]

Original ticket description:

CodeMirror highlighting, line numbers, code-folding, brace-matching and other customizations are disabled when highlighting is disabled. This is a real issue for plugins like code-snippets which rely on these features.

Here is the condition in question:
{{{
function wp_enqueue_code_editor( $args ) {
	if ( is_user_logged_in() && 'false' === wp_get_current_user()->syntax_highlighting ) {
		return false;
	}
}}}

I believe that the user-form-variable syntax_highlighting is probably misnamed as it should be something like disable_syntax_highlighting to reflect the choice being made. 

As it is, when ticked (true), highlighting should be disabled. When un-ticked (false), highlighting should be enabled. 
{{{
	if ( ! is_user_logged_in() || 'true' === wp_get_current_user()->syntax_highlighting ) { 
		return false;
	}
}}}"	mjdewitt
	65136	Unit Tests: Add tests for extract_from_markers() and stop empty values being returned		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-04-27T18:12:13Z	2026-10-31T19:59:42Z	The function extract_from_markers() in src/wp-admin/includes/misc.php lacks unit tests. This PR adds tests to ensure it correctly extracts content between markers in a file, handling missing files, different markers, and comments.	pbearne
	65137	Unit Tests: Add tests for insert_with_markers()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-04-27T20:09:33Z	2026-05-07T16:20:44Z	The function insert_with_markers() in src/wp-admin/includes/misc.php lacks unit tests. This PR adds tests to ensure it correctly inserts or replaces content between markers in a file, handles file creation, permissions, and respects existing content outside markers.	pbearne
	46354	Update Count - Value Should Change as Updates are Applied		Administration	5.1	low	trivial	Future Release	enhancement	new	dev-feedback	2019-02-26T22:58:59Z	2026-04-09T06:52:54Z	"The Update Count, shown in the Admin Bar, and the Admin Menu (against 'Dashboard' > 'Updates', and optionally against 'Plugins') should change to reflect the outstanding number of Updates available as Updates are Applied, whether they are applied individually on the Plugin Screen, or in bulk through the Updates Screen.

This is not a high priority issue at all, but an extremely minor cosmetic change. I suspect that Javascript could be used to change the value as an Update completes successfully in any scenario.
"	Lucanos
	55541	Update the styling for invalid form fields		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2022-04-07T10:58:42Z	2026-10-09T14:16:26Z	"Splitting this out from #47018.

In a few places in the admin, a red border (actually a border and a box-shadow) are added to some form controls when submitting the form with some empty values.

The style of this red border still uses some transparency and doesn't match any longer with the new style used, for example, for the focus style which is a 'solid' border with no transparency.

For consistency, the red 'error' style should be updated. Here's a few places where the red error style can be checked:
- The Categories and Tags pages.
- The Edit Comment page, see the date and time small form under 'Submitted on'.
- Same for the Classic Editor Edit post page.
- The Menus page > create a new menu.

See attached screenshots."	afercia
	55521	Use dashicons-class in `wp_dashboard_quota` and `wp_dashboard_right_now`		Administration	3.8	normal	normal	Awaiting Review	enhancement	new	has-patch	2022-04-03T18:06:18Z	2023-12-01T08:06:21Z	"Proposal:
Replace hardcoded css-rules for each item in the `At a Glance`-widget, use dashicons-classes for each item. This makes adding new items to the widget easier, simply just add a `dashicons-before`-class the your new items.

Background:
So using `dashboard_glance_items` to add custom items to the post list is easy, but changing icons without adding new css with a file or inline to the admin views is hard, since the hardcoded rules overrides `dashicons-before` on my added items.

"	kebbet
	51817	WP-Admin - Optimize main wpquery with 'fields' => 'ids' causes notice		Administration	5.5.3	normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2020-11-18T15:21:57Z	2025-06-10T16:09:54Z	"Hi all

I have a post_type (Woocommerce product) with a lot of data in the post contents. So, in wp-admin, WP requires a lot of memory to list them (sometimes I got an OUT-OF-MEMORY)

So, I tried to make a lighter query adding via hooks the query params
'fields' => 'ids'
 
It works! The query is more fast and WP does not require so many memory
but I got some annoying notices

In method _display_rows in WP_Posts_List_Table you have

{{{
foreach ( $posts as $a_post ) {
 $post_ids[] = $a_post->ID;
}
}}}

The method supposes that $posts will be an array of WP_Post object .
In my case it is an array of integer

Can you handle this scenario?




"	eumene
	46082	Why returning $menu_array[x] instead of $title		Administration		low	normal	Awaiting Review	enhancement	new	close	2019-01-23T16:02:40Z	2026-07-28T14:07:41Z	"
{{{
File: wp-admin/includes/plugin.php
Function: get_admin_page_title()
}}}


In lines `1613, 1616, 1637, 1645 and 1660` the following pattern of assignments and return the value are used:


{{{
$title = $menu_array[x];
return $menu_array[x];

}}}

where `$tile` is `global`.

What is the difference between the following returning patterns


{{{
$title = $menu_array[x];
return $menu_array[x];
}}}


AND


{{{
$title = $menu_array[x];
return $title;
}}}


Since we are already updating the the global variable `$title` with that of `$menu_array[x]`, why can't we just return `$title` instead of `$menu_array[x]`? For every single request `global $title` will receive a new value.

In `line 1620` the return pattern is usual:


{{{
$title = $menu_array[0];
return $title;
}}}
"	subrataemfluence
	62549	checked is a boolean attribute		Administration		low	trivial	Awaiting Review	enhancement	new	has-patch	2024-11-23T12:37:31Z	2025-01-28T05:54:16Z	"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#checked

but checked='checked' is used in various places.

e.g. 

{{{
<input class=""hide-postbox-tog"" name=""dashboard_site_health-hide"" type=""checkbox"" id=""dashboard_site_health-hide"" value=""dashboard_site_health"" checked='checked'/>Site Health Status
}}}
"	kkmuffme
	65791	configurable debug log entry		Administration		normal	normal	Awaiting Review	enhancement	new	close	2026-08-02T20:29:41Z	2026-08-03T08:43:08Z	"Is it possible in WP_DEBUG_LOG:
- to use the server time, local time or any other time as UTC?
- to log the site url?

Maybe that could also be made configurable.

For example instead:
""[01-Aug-2026 20:26:03 UTC] Automatic updates complete.""
this one:
""[01-Aug-2026 22:26:03 MESZ] https://my-domain.tld Automatic updates complete.""

"	hupe13
	41558	create a (reusable) wp_default_admin_scripts		Administration	2.6	normal	normal	Awaiting Review	enhancement	new		2017-08-03T23:53:48Z	2022-06-29T02:24:54Z	"I had to create an admin-like form in the frontend, for guests submitting content.
I needed to provide {{{meta/post-box}}}, {{{autocompletion}}} and needed {{{media-views}}}, {{{wp-color-picker}}}, ...

I thought {{{wp_enqueue_script()}}} would do the trick... until I discovered the {{{ if(is_admin()) }}} inside {{{wp_default_scripts()}}}. I had no other choice than copy/pasting ~210 WP LoC in my own PHP files

Is there a really good reason for reserving all that cool client-side stuff to admin dashboard only?
plugin/themes developers may want to load and use it for good and having all that libs already registered by core is useful.


I suggest:
1. moving all the admin-oriented script into {{{wp_default_admin_scripts()}}} which should be reusable (even if non-admin), and run it if (is_admin).
2. moving all the {{{localize()}}} corresponding to these admin scripts into another {{{wp_default_admin_scripts_settings()}}}  function somehow wrapped by {{{if(! is_admin())}}}
3. Document how to correctly bootstrap the dashboard in the frontend and a couple of common gotchas of these scripts (like that ajax-dashboard-pingback feature forcefully pulled as JS-dependencies and which can't be stopped, ...)
"	drzraf
	58448	inconsistency in the $items parameter to the handle_bulk_actions-{$screen} action		Administration		normal	normal	Awaiting Review	enhancement	new		2023-06-03T00:54:37Z	2023-06-03T00:54:37Z	"The [https://developer.wordpress.org/reference/hooks/handle_bulk_actions-screen/ handle_bulk_actions-{$screen}] action is fired when custom bulk actions are applied on various screens that have list tables.

On `/wp-admin/plugins.php`, `$items` is an array of plugin paths relative to `WP_PLUGINS_DIR` (e.g., `classic-editor/classic-editor.php`).

On all the other screens, the `$items` parameter passed to the action's callback is an array of IDs (e.g., post IDs, term IDs, comment IDs, etc).  The inconsistency this ticket is about that on some screens the IDs in `$items` are  ints and on other screens they are strings.

Specifically, `/wp-admin/edit.php` (Posts list table), `/wp-admin/upload.php` (Media list table), and `/wp-admin/edit-comments.php` (Comments list table), the IDs are cast to ints via something like `array_map( 'intval', (array) $post_ids )` before `handle_bulk_actions-{$screen}` is fired.

However, on all the other screens (`/wp-admin/edit-tags.php`, `/wp-admin-link-manager.php` (Links list table), and `/wp-admin/users.php`) the IDs are strings.

I think it would be easier on developers (e.g., plugin authors) if when `$items` is an array of IDs, all IDs were ints.

I don't know if this case be changed at this stage due to BC considerations.  But if it can be, I'd be happy to add a patch to that effect."	pbiron
	59721	test for wp_site_admin_email_change_notification		Administration		normal	normal	Future Release	enhancement	new	has-patch	2023-10-24T20:00:35Z	2026-05-07T16:20:44Z		pbearne
	65225	tests: Add unit tests for wp_ajax_date_format()		Administration		normal	normal	Awaiting Review	enhancement	new		2026-05-12T22:04:22Z	2026-05-12T22:52:24Z	The function wp_ajax_date_format() in src/wp-admin/includes/ajax-actions.php currently lacks unit test coverage. This task involves adding tests to verify that it correctly handles date format validation and returns the expected response.	pbearne
	57423	we need to check an argument is closure in PclZip		Administration	6.2	normal	normal	Awaiting Review	enhancement	new	has-patch	2023-01-05T11:06:09Z	2023-01-05T11:08:09Z	"When we create a zip file with PclZip class, we can pass an PCLZIP_CB_PRE_ADD callback function in create function. And PclZip checks that the callback function is exist or not like below.

{{{#!php
<?php
// ----- Check that the value is a valid existing function
if (!function_exists($v_function_name)) {
  // ----- Error log
  PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, ""Function '"".$v_function_name.""()' is not an existing function for option '"".PclZipUtilOptionText($p_options_list[$i]).""'"");

  // ----- Return
  return PclZip::errorCode();
}
}}}

I want to pass a closure, but `function_exists($closure_function)` is false.  

So how about checking the callback function is closure also like below ?  

{{{#!php
<?php
// ----- Check that the value is a valid existing function
if (!function_exists($v_function_name) && !($v_function_name instanceof Closure)) {
  // ----- Error log
  PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, ""Function '"".$v_function_name.""()' is not an existing function for option '"".PclZipUtilOptionText($p_options_list[$i]).""'"");

  // ----- Return
  return PclZip::errorCode();
}
}}}

"	rpf5573
	52715	404 Page for WordPress Admin		Administration		normal	normal	Awaiting Review	feature request	new		2021-03-04T19:55:17Z	2021-03-04T19:55:17Z	Not sure if it sounds good or not? IMO there is a need for a 404 page for WordPress admin so a user can understand this page doesn't exist. It should tell No Page Found with a cool message.	abdullahramzan
	59994	Add Plugins - ability to search and filter based on criteria like last updated date, average rating		Administration		normal	normal	Awaiting Review	feature request	new		2023-12-01T06:17:48Z	2023-12-01T06:17:48Z	"When I look for a new plugin to add via my WordPress dashboard -> Add Plugins screen, it would be really really useful to be able to search and filter based on criteria like last updated date (say, within the last x months) , average rating, number of active installs and WordPress version that the plugin has been tested on.

Wading through the directory manually and weeding out obsolete or poorly maintained plugins is painful..."	ShilpaShah
	53387	"Carry ""dates"" and times over to Plugins/Themes so you can see when it was installed/updated/removed."		Administration		normal	normal	Awaiting Review	feature request	new		2021-06-11T20:15:50Z	2021-06-12T00:45:10Z	"It would be great to have some sort of administration ""activity log"" for Plugins/Themes so you can see if and when a plugin was updated last, when it was installed, and if one was deleted recently.

It would be even greater if there was some sort of ""activity log"". Where you could see logins, and then activity within WordPress such as ""updated XX article"", ""delete YY menu item"" and so on.

Giving a better picture of your WordPress site without needing to add access control or other plugins that would bog down the system."	starcrescendo
	63318	Dashboard Menu Item for Messages - The endless plugin messages in the dash is too much		Administration		normal	major	Awaiting Review	feature request	new		2025-04-21T01:01:59Z	2025-04-21T01:01:59Z	"I have been a wordpress user for many years and in at least the last 7 years the amount of messages that come up on every screen is out of control. Messages to review plugins are endless, I remove them and then the plugin updates and it all starts up again. 

The messages are painful when you are trying to edit pages or anything in worpress for that matter. The page in the dash loads slowly with all the messages and it is a time consuming pest.

It would be better if you had one menu under the Dashboard menu that says Dashboard Messages where all these annoying messages can sit. Then one message on the dashboard that says ""You have important system message to attend to"" with a link to the messages dashboard item.

Either that or you stop plugin developers putting review requests in their plugins. Honestly it is so annoying and it makes me not want to review their plugins and I have seen people leave 1 star reviews on plugins for this exact reason on the review requests all the time."	gallivantingnomad
	62703	Do not allow to leave a comment that contains prohibited keywords		Administration		normal	normal	Awaiting Review	feature request	new		2024-12-17T16:38:25Z	2025-04-29T15:36:06Z	"Thousands of websites face spam and hacking attempts through comments. To combat this, various moderation, validations, captchas, plugins, etc. are involved. Unfortunately, such solutions do not always cope and load the website using external scripts, etc.

Proposal to improve WordPress security:
Currently, on the page /wp-admin/options-discussion.php there is a block ""Prohibited comments keywords"" it acts as an automatic moderation for sending to the trash (i.e. comments are still accepted, so the trash can can contain a lot of spam).

I propose to modernize this function, namely to allow administrators to choose what to do with comments that contain prohibited comments keywords (radio button):
- send to trash
- do not accept (when clicking on submit button, perform system validation, if there is a word from the list, then display a notification to the user that the comment is prohibited)"	tunyk
	63210	"Feature Request: ""Admin Notifications"" for Enhanced Admin Notification Management"		Administration		normal	normal	Awaiting Review	feature request	new		2025-04-01T11:19:52Z	2025-05-26T14:29:53Z	"Hello WordPress Team,

I would like to propose the addition of a new feature called ""Admin Notifications"" to the WordPress core. This feature would allow site administrators to better manage and customize notifications within the WordPress dashboard.

Suggested Features:
Categorizing Notifications:
Add the ability to categorize notifications into groups like ""Errors"", ""WordPress Updates"", ""Plugin Notifications"", and ""Custom Notifications"".

Managing Notifications:
Allow administrators to disable or permanently hide specific notifications and provide an option to view a history of critical notifications for better tracking.

Email Alerts for Important Notifications:
Enable email notifications for critical alerts, such as security issues, failed updates, or WooCommerce sales declines.

Centralized Notification Dashboard:
Introduce a dedicated section in the dashboard for managing and viewing all notifications in an organized, filterable format.

Popup Notifications:
Display important notifications as pop-ups or as a small notification icon in the admin toolbar.

Benefits:
Improved productivity by reducing clutter and providing more control over important notifications.

Better tracking and response to critical issues with the email alerts and history view.

Enhanced security and control by ensuring site administrators don’t miss important alerts.

I believe this feature would greatly improve the user experience for site administrators and enhance the overall efficiency of the WordPress dashboard.

Thank you for considering this suggestion.

Best regards,
Seyyed Ahmadreza Mahjoob"	anonymized_22016969
	51663	Feature request: :Last Edit Date		Administration	5.5.1	normal	normal	Awaiting Review	feature request	new	has-patch	2020-10-29T13:23:21Z	2024-10-07T15:37:19Z	"In the Admin Posts listing, can we have a way to see ""Last Modified"" date instead of, or along with, ""Published"" date?

First way could be to make the Date column a toggle (""Published/Last Modified"")
another would be to make it a checkable column under Screen Options

Reasoning: for sites with  huge amounts of posts its a much needed way to find 
1) possibly forgotten and maybe deletable posts and 
2) posts with recent activity amongst a sea of similarly named posts."	webpropopuli
	54096	Get URL by post ID in WP-Admin		Administration	5.8	normal	normal	Awaiting Review	feature request	new		2021-09-08T21:39:03Z	2021-09-08T21:39:03Z	"Would it be feasible to add search by ID to the [https://github.com/WordPress/gutenberg/blob/trunk/packages/core-data/src/fetch/__experimental-fetch-link-suggestions.js#L70 fetchLinkSuggestions] function?

There are times when I'm working on large sites and I have pages with identical names in different sections of the site. If I could just plug the ID in, it'd save me a fair bit of time and hassle."	jhned
	50158	Hide columns in the list of posts for user levels		Administration	5.4.1	normal	normal	Awaiting Review	feature request	assigned	dev-feedback	2020-05-13T21:11:14Z	2020-05-14T15:47:40Z	"On the page all posts, columns of information are shown (Titles, Author, Categories, Tags, ...). And there may be some columns that we don't want to show to all user levels, for example on my website I have installed the “Search Exclude” plugin and they insert a column in the list of posts to inform whether each post is hidden or visible, https://prnt.sc/sab4vw
But, this column is not required to be shown to users who are not Administrators or even Editor levels. So, I would like to hide this column for Author, Contributor, Subscriber and ect levels. But the plugin does not offer this option, and with that I have no option to hide.

The WP has the “Screen options” feature where each user can hide certain columns. However, this feature applies individually to each user, that is, each user hides the column only for him. And what I wanted, as a site administrator, is to have the control to hide columns for all levels of users and to control which levels of users I want. In fact, I, as an administrator, could even have the control to hide columns for certain users (I select the column I want to hide and then select the users to whom that column should be hidden).

WP does not offer this feature. So I would like to leave this suggestion to the development staff.

Thank you!
Rodrigo Carlos"	vejapixel
	56931	Introduce action hook `manage_terms_extra_tablenav`		Administration		normal	normal	Future Release	feature request	new	has-patch	2022-10-29T10:19:09Z	2022-10-31T14:05:02Z	"Both `WP_Posts_List_Table` and `WP_Users_List_Table` provide an action hook allowing plugin authors add their own filter options, display logic, status messages or whatever.

However `WP_Terms_List_Table` does not."	podpirate
	58019	Required new Action for post edit screen after Post Submitbox		Administration	6.2	normal	normal	Awaiting Review	feature request	new		2023-03-30T06:34:31Z	2023-03-30T07:01:21Z	"I would like to add some description OR static image OR texts in post edit screen After post submitbox 
**i checked below actions and filters** but none helps to add content below submitbox there is relative action called ""post_submitbox_start"" just like this i wish to have after_post_submitbox OR post_submitbox_end that can allow me to add content below post submitbox it shouldn't be like Metabox it should be like simple description or some content below submitbox

- post_submitbox_misc_actions
- post_submitbox_start
- dbx_post_sidebar
- edit_form_advanced
- edit_form_after_editor
- edit_form_after_title
- edit_form_before_permalink
- edit_form_top
- edit_page_form
- post_edit_form_tag
- post_updated_messages
- submitpost_box 

Thanks"	mayur8991
	60203	Application Passwords no longer authenticating		Application Passwords	6.4.2	normal	normal	Awaiting Review	defect (bug)	new		2024-01-06T21:24:17Z	2024-02-15T14:18:51Z	"hello,
Application password does not work for me with WordPress 6.4.2.

Error: 500 {“code”:”incorrect_password”,”message”:”Error:<\/strong> The password you entered for the username username<\/strong> is incorrect. Lost your password?<\/a>”,”data”:null}

when i downgrade to  6.3.1 its work
the user/application password did not change
I use php 8.0"	ihabosman
	57707	"Issue with ""Add New Application Password"" in profile page leading to empty error message"		Application Passwords	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-02-13T18:42:06Z	2023-02-22T11:52:59Z	"The issue I would like to report is in the profile page. When I try to ""Add New Application Password"", the request goes to the link
""Site Address (URL)/wp-json/wp/v2/users/1/application-passwords?_locale=user""
instead of the link 
""WordPress Address (URL)/wp-json/wp/v2/users/1/application-passwords?_locale=user"".

As a result, an empty error message appears if the ""Site Address"" is different from the ""WordPress Address"".

[[Image(https://i.ibb.co/8N0B7xF/Screenshot-20230213-092733.png)]]"	king-a-s
	55796	SHORTINIT requires rest-api.php via rest_cookie_collect_status() via wp_get_current_user()		Application Passwords	2.0	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-05-23T21:36:15Z	2022-05-24T06:09:11Z	"Hello friends! 👋

I believe it may be unintended behavior that in order to use the `SHORTINIT` constant with standard cookie authentication, either `wp-includes/rest-api.php` must be included or its related default filters need to be removed.

----

**wp_get_current_user() – jjj1.php**

{{{
<?php

/**
 * Only initialize a ""short"" WordPress
 *
 */
define( 'SHORTINIT', true );

/**
 * Load WordPress
 */
require __DIR__ . '/wp-load.php';

/**
 * Create the main ""wp"" WordPress global
 */
$GLOBALS['wp'] = new WP();

/**
 * Set up the query vars
 */
wp( array(
	'jjj' => true
) );
}}}

Produces:
{{{
Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in wp-includes/class-wp.php:635
Stack trace:
#0 wp-includes/class-wp.php(768): WP->init()
#1 wp-includes/functions.php(1330): WP->main(Array)
#2 jjj1.php(31): wp(Array)
}}}

IMO, the inside of `WP->init()` has needed a `function_exists()` call around `wp_get_current_user()` since WordPress 2.0.0, and I'm only just now getting around to suggesting such 😅

----

**rest_cookie_collect_status() - jjj2.php**

{{{
<?php

/**
 * Only initialize a ""short"" WordPress
 */
define( 'SHORTINIT', true );

/**
 * Load WordPress
 */
require __DIR__ . '/wp-load.php';

// Require files used for cookie-based user authentication
require ABSPATH . WPINC . '/pluggable.php';
require ABSPATH . WPINC . '/kses.php';
require ABSPATH . WPINC . '/user.php';
require ABSPATH . WPINC . '/capabilities.php';
require ABSPATH . WPINC . '/class-wp-role.php';
require ABSPATH . WPINC . '/class-wp-roles.php';
require ABSPATH . WPINC . '/class-wp-user.php';
require ABSPATH . WPINC . '/class-wp-session-tokens.php';
require ABSPATH . WPINC . '/class-wp-user-meta-session-tokens.php';

/**
 * 'WP_PLUGIN_URL' and others are used by: wp_cookie_constants()
 */
wp_plugin_directory_constants();

/**
 * 'ADMIN_COOKIE_PATH' and others are used by: wp_set_auth_cookie()
 */
if ( is_multisite() ) {
	ms_cookie_constants();
}

/**
 * 'SECURE_AUTH_COOKIE' and others are used by: wp_parse_auth_cookie()
 */
wp_cookie_constants();

/**
 * Sets: 'FORCE_SSL_ADMIN' and 'FORCE_SSL_LOGIN'
 */
wp_ssl_constants();

/**
 * Create the main ""wp"" WordPress global
 */
$GLOBALS['wp'] = new WP();

/**
 * Set up the WordPress query
 */
wp( array(
	'jjj' => true
) );

}}}

Produces:
{{{
Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function ""rest_cookie_collect_status"" not found or invalid function name in wp-includes/class-wp-hook.php:309
Stack trace:
#0 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array
#1 wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#2 wp-includes/pluggable.php(705): do_action('auth_cookie_mal...', false, '')
#3 wp-includes/class-wp-hook.php(307): wp_validate_auth_cookie(false)
#4 wp-includes/plugin.php(191): WP_Hook->apply_filters(false, Array)
#5 wp-includes/user.php(3583): apply_filters('determine_curre...', false)
#6 wp-includes/pluggable.php(70): _wp_get_current_user()
#7 wp-includes/class-wp.php(635): wp_get_current_user()
#8 wp-includes/class-wp.php(768): WP->init()
#9 wp-includes/functions.php(1330): WP->main(Array)
#10 jjj2.php(65): wp(Array)
}}}

This happens because `wp-includes/default-filters.php` assumes that the REST API will always be loaded, and the default `pluggable.php` versions of the cookie based authentication functions apply filters that the REST API also uses by default, including the Application Password feature.

----

If the REST API were a SHORTINIT auth requirement, my ''guess'' is that it would have been required earlier in `wp-settings.php`.

This is all somewhat of a catch-22 situation, because `default-filters.php` ''is'' loaded for `SHORTINIT` which is far ahead of when both cookie auth and the REST API are both included.

It is possible to work around this by removing the hooks, but obviously that only counts for today's hooks, and not future hooks if something new is introduced. I think a core code change will be required to decide when & how the REST API filters are applied. 😬"	johnjamesjacoby
	59451	Saving draft and previewing page sometimes causes whole site to hang		Autosave	6.3.1	normal	major	Awaiting Review	defect (bug)	new		2023-09-26T12:11:09Z	2023-09-26T12:11:09Z	"Hello,

I've been running into an issue while editing pages, where I'll save a draft of a page and preview it, and occasionally the preview will start to load and never finish. At the same time, if I open any other page of the site in a new tab, it will also get stuck loading. The problem only resolves when I close all tabs viewing the site, meaning changes are lost.

This bug occurs on multiple WordPress sites, across different hosts, devices, locations and users. The only common factors I can see are Windows (10 & 11) Google Chrome (latest) and WordPress itself (latest, 6.3.1).

Many thanks,

Tristan"	tristanmsg
	57956	The Phrase Site Updated appears when you edit a reusable block		Autosave	6.1.1	normal	normal	Awaiting Review	defect (bug)	new		2023-03-20T14:56:14Z	2023-03-20T14:56:14Z	"Hello,

The phrase Site Updated appears in the bottom corner when you edit and save a reusable block. This appears to only happen under specific circumstances, outlined below. 

I checked the modified time ''of other pages'' that have the same reusable block and pages that don't and the time doesn't appear to change.

The issue happens with 6.1.1 and 6.0.3.

To reproduce


A. Create a reusable block. 
[https://ibb.co/2WVTtK8
]
B. Add content to the reusable block and also content to the page
[https://ibb.co/bLVY8b0
]
C. Hit Update and see the Post and Block save options appear
[https://ibb.co/f22t4rf
]
D. Uncheck the Reusable Block and Save
[https://ibb.co/56zd4v3
]
E. See Site updated appear in the bottom corner
[https://ibb.co/Y8FSb1R
]


Plugins Active
None

Theme 2023 v1.0 but other sites have reported it happening.
"	Pcosta88
	44910	function for discriminating during auto saving		Autosave		normal	trivial	Awaiting Review	feature request	new	has-patch	2018-09-07T05:33:12Z	2018-09-07T06:01:17Z	"I want a function to distinguish auto saving like **wp_doing_cron** or **wp_doing_ajax**. 


The following code can be simplified.

before
{{{
	if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
		//do something
	}
}}}

after
{{{
	if ( wp_doing_autosave() ) {
		//do something
	}
}}}
"	mt8.biz
	48328	IIS 7+ with standard FCGI an URL_REWRITE mangles REQUEST_URI		Bootstrap/Load	5.2.3	normal	major	Awaiting Review	defect (bug)	new		2019-10-16T15:45:55Z	2024-09-18T11:53:22Z	"Currently, line 65 in load.php will ONLY recover the original URL, IF IIS is still run in the outdated ISAPI mode, and using third-party Rewrites.

{{{#!php
<?php
	// Fix for IIS when running with PHP ISAPI
	if ( empty( $_SERVER['REQUEST_URI'] ) || ( PHP_SAPI != 'cgi-fcgi' && preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) ) {

		// IIS Mod-Rewrite
		if ( isset( $_SERVER['HTTP_X_ORIGINAL_URL'] ) ) {
}}}

However, if IIS is run with the now-standard FASTCGI, and IIS' own URL-REWRITE module, then the original URL is NOT recovered from IIS' URL-REWRITE module.

URLs like:
www.wordpress.site/somepath/ferrari-166-mm-0308m-%e2%8b%9f-0328m/?queryparameters=something 
are mangled to:
www.wordpress.site/somepath/ferrari-166-mm-0308m-?-0328m/?queryparameters=something 
resulting in multiple ""?"" occurrences in the URL.

The following patch at line 93 in wp-includes/load.php will add compatibility with the IIS versions of the past 10 years:

{{{#!php
<?php
	}
	// PATCH STARTS HERE *** Fix for IIS when running URL_REWRITE
	elseif ( ( PHP_SAPI == 'cgi-fcgi' ) and isset( $_SERVER['IIS_UrlRewriteModule'] ) and isset( $_SERVER['UNENCODED_URL'] ) ) {
		$_SERVER['REQUEST_URI'] = $_SERVER['UNENCODED_URL'];	// Note: 'HTTP_X_ORIGINAL_URL' actually holds an encoded (non-original) version.
	}

	// Fix for PHP as CGI hosts that set SCRIPT_FILENAME to something ending in php.cgi for all requests
}}}

"	Andy Schmidt
	44766	Microsoft-IIS/6.0 problem with wp_fix_server_vars		Bootstrap/Load	4.9.8	normal	major	Awaiting Review	defect (bug)	new	needs-unit-tests	2018-08-09T16:38:39Z	2024-08-15T17:52:56Z	"The current function assumes problems that are fixed in many IIS versions nowadays and causes more problems. Currently, the function fails to detect mod_rewrite correctly in some instances and duplicates the query_string because it falls in the third condition on load.php:75 (duplication of the query string happens at load.php:90.

Suggestion : just look in the already existing REQUEST_URI if the query string exists."	davidwebca
	65908	WP_DEBUG_LOG=true should fail closed instead of creating a publicly accessible debug log		Bootstrap/Load		normal	normal	Awaiting Review	defect (bug)	new	needs-unit-tests	2026-08-19T02:42:37Z	2026-11-04T09:40:01Z	"== Summary ==

When {{{WP_DEBUG_LOG}}} is set to {{{true}}}, WordPress defaults to writing errors to {{{wp-content/debug.log}}}. On installations where the web server or CDN permits static .log files, that predictable file can be retrieved without authentication.

This is an insecure default. {{{WP_DEBUG_DISPLAY=false}}} does not protect the log file because it only suppresses error output in rendered responses.

== Sanitized production incident ==

In August 2026, we confirmed this behavior on a production WordPress installation. The public debug log reached 74,273,044 bytes, approximately 74.3 MB decimal or 70.8 MiB, and was still growing. It contained personally identifiable information and diagnostic data that should never have been publicly retrievable.

An unauthenticated request to the standard {{{/wp-content/debug.log}}} URL returned HTTP 200 through the public website and CDN. No log contents or personal information are included in this ticket.

Emergency mitigation required moving the existing log intact to a private directory above the webroot, changing {{{WP_DEBUG_LOG}}} to that absolute path, adding origin-level denial rules, and deploying an edge rule returning HTTP 403.

== Steps to reproduce ==

1. Install WordPress behind a web server that serves static .log files.
2. Configure:
{{{
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_DEBUG_LOG', true );
}}}
3. Trigger a PHP warning or notice.
4. Request {{{/wp-content/debug.log}}} without authentication.

== Actual result ==

WordPress creates a predictable log inside the public content directory. Depending on server configuration, the file is returned over HTTP without authentication.

== Expected result ==

Enabling the boolean {{{WP_DEBUG_LOG=true}}} default must not create a debug log that is publicly retrievable. If Core cannot establish a protected destination, it should fail closed instead of silently writing sensitive diagnostics to a known public path, and provide a critical Site Health notice with remediation guidance.

== Proposed security invariant ==

The default debug-log destination must not be publicly retrievable without authentication.

Possible implementation approaches may include:

* Prefer a writable location outside the detected public webroot.
* Use a dedicated protected log directory and generate supported Apache/LiteSpeed and IIS denial rules.
* Require an explicitly configured absolute path when Core cannot confirm a safe default, including Nginx environments.
* Add a critical Site Health result when the effective path is inside a potentially public directory or protection cannot be confirmed.
* Preserve explicitly configured custom log paths.
* Treat filename randomization only as defense in depth, not as access control.

== Related but distinct tickets ==

#60611 proposes relocating and randomizing the debug-log filename. This ticket instead defines a fail-closed access-control requirement; an unpredictable URL alone does not prevent access.

#64071 concerns a Site Health false positive when an explicitly configured log is already outside the public content directory. This ticket concerns the unsafe boolean default and automatic prevention of public exposure."	codebridge
	45948	WSOD protection message formatted incorrectly on windows		Bootstrap/Load		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-01-11T22:41:08Z	2024-08-20T15:32:50Z	When the WSOD protection in 5.1 beta1 pauses a plugin on a windows host, the message that displays in `wp-admin/plugins.php` the file path where the error occurred doesn't display properly (the path separator has been stripped).  See the attached screenshot.	pbiron
	60611	Bootstrap/Load: Refactor debug.log handling for enhanced protection and usability		Bootstrap/Load	6.5	normal	normal	Awaiting Review	enhancement	new	has-patch	2024-02-22T19:41:31Z	2024-05-09T13:44:35Z	"This commit addresses concerns related to the /wp-content/debug.log file being publicly accessible, which may contain sensitive information in some circumstances. To mitigate this risk, a randomly generated string is now appended to the debug log filename.

Additionally, the debug logs have been relocated to a dedicated directory for improved organization and convenience. These changes enhance both the protection and usability of the debug.log subsystem."	itschristiandale
	61694	Ensure compat functions do not rely on external functions		Bootstrap/Load		normal	normal	Future Release	enhancement	new		2024-07-18T16:14:49Z	2024-09-24T23:52:03Z	"This is a follow up to #61680.

`compat.php` is loaded very early on and its functions need to be standalone without dependency on functions in the rest of the codebase. 

I think that there are two improvements to be made:

1. The top of compat.php should include some documentation to remind future devs of this
2. We could add some testing of the functions to ensure they have no reliance on external functions (or if there are external functions, they are included properly and those are standalone such as with the sodium functions)"	jorbin
	60208	Prevent redirect loops		Bootstrap/Load		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2024-01-07T20:16:15Z	2024-09-27T00:07:00Z	"There are all kinds of issues open that deal with redirect loops and their patches try to resolve the symptom.

I propose to instead fix the root cause by checking in wp_redirect/wp_safe_redirect if the $location is equal to the current host/request uri and if that's the case to not execute the redirect but wp_die - just like it's done in those function if response code is not in the 3xx range.

If a rogue plugin causes this, this will at least give you a hint of what was happening/where to start, when your WP page suddenly starts to reload indefinitely."	kkmuffme
	57553	Problem in load WordPress.		Bootstrap/Load	6.1.1	normal	normal	Awaiting Review	enhancement	new	has-patch	2023-01-25T15:53:44Z	2023-06-14T17:08:20Z	When i define('WP_DEBUG_DISPLAY', true); in config.wp. it will not effect in load.php in  wp-includes folder. When any ajax error in face it will return me 500 Internal Server Error but not show detain in my Network. After that when i change **488** line in l**oad.php**, ( '**display_errors', 0** ) to ( **'display_errors', 1** ) in 0 to 1 than i got my error point. I hope most of the Developer face problem in this line here we can add a filter hook that any one can change if any one, may be the hook looks like, ( **ini_set( 'display_errors', apply_filters( 'wp_display_ajax_errors', 0 )** );) 	mahbubmr500
	54961	"Revise ""Technical Difficulties"" email to remove feature history and improve clarity of action steps"		Bootstrap/Load	5.2	normal	normal	Future Release	enhancement	reopened	has-patch	2022-01-27T21:25:05Z	2024-09-17T21:26:18Z	"As someone who supports websites for numerous people and organizations, I've found that the ""Technical Difficulties"" email with recovery link is confusing to many people. I've had multiple people wonder if it's spam and many others be generally confused by it.

I would suggest the following changes based on the feedback I have heard:

- Change the first line to clearly indicate there is a potential problem with the website and drop the reference to WordPress 5.2. This is not important information anymore.
- Move all technical information to the end of the email so as not to intimidate and confuse non-technical recipients
- Be clear that there may or may not be an active problem. I will note that probably half of the emails I see sent are for temporary errors during updates that seem to have no lasting impact on the site.
- Suggest people contact their website host -OR- developer (currently, only the host is mentioned)

I have included a copy of the email for easy reference at the end of this issue. I'd be happy to work up the patch for this once a few other folks weigh in to either confirm or amend the suggestions I have.

> Howdy!
> 
> Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
> 
> In this case, WordPress caught an error with one of your plugins, Jetpack.
> 
> First, visit your website ({url}) and check for any visible issues. Next, visit the page where the error was caught ({error path}) and check for any visible issues.
> 
> Please contact your host for assistance with investigating this issue further.
> 
> If your site appears broken and you can't access your dashboard normally, WordPress now has a special ""recovery mode"". This lets you safely login to your dashboard and investigate further.
> 
> {recovery mode link}
> 
> To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
> 
> When seeking help with this issue, you may be asked for some of the following information:
> WordPress version 
> Current theme: 
> Current plugin: 
> PHP version 
> 
> 
> 
> Error Details
> ============="	mrwweb
	66223	Add tests for wp_admin_bar_shortlink_menu		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-01T06:18:49Z	2026-10-30T22:04:02Z	Checks when the shortlink exists and when it doesn't.	r1k0
	64579	Build: env:install fails intermittently with database connection refused		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-02-01T04:02:56Z	2026-10-31T18:39:08Z	"The env:install script (tools/local-env/scripts/install.js) can fail intermittently with ""Database connection error (2002) Connection refused"" when the database container reports healthy but isn't yet accepting connections.

**Steps to reproduce:**
  1. Run npm run env:start && npm run env:install
  2. Occasionally fails with connection refused error

**Root cause:**

The first wp_cli() call runs immediately without waiting for the database:

{{{
#!js
// Line 13 - runs immediately with no wait
wp_cli( config create --dbname=wordpress_develop --dbuser=root --dbpass=password --dbhost=mysql --force );
}}}

The Docker healthcheck uses mysqladmin ping / mariadb-admin ping, which can pass before the database is ready to accept authenticated connections from other containers.

This causes intermittent CI failures across random PHP/MariaDB combinations (different jobs fail each run).

**Related:**
  - [https://github.com/WordPress/wordpress-develop/actions/runs/21555815308/job/62111814639 Example CI failure]"	kraftbj
	64970	Create a GitHub Actions workflow for running visual regression testing		Build/Test Tools		normal	normal	Future Release	defect (bug)	new		2026-03-27T18:02:56Z	2026-03-27T18:02:56Z	"A foundation for visual regression testing was introduced in [51989], 

The `test:visual` script was added in [55459], and the tool used was later migrated Puppeteer to Playwright in [56926].

Initially there were not many tests, so the script was intended to be run locally only. But it would be good to run these more regularly in a GitHub Actions workflow as more visual regression tests are added (see #64671)."	desrosj
	54986	Css file duplication generated with repeter names		Build/Test Tools	6.0	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-01-29T13:58:44Z	2022-01-29T14:40:15Z	"You can seen repeter names files which is generated on trunk compile time
src/wp-admin/css

**issue with this files:**
edit-rtl.css
themes.rtl.css


"	ravipatel
	59458	Duplicate PHP version in PHPUnit job names on GitHub Actions		Build/Test Tools		low	trivial	Future Release	defect (bug)	new		2023-09-26T14:00:05Z	2023-10-16T09:20:06Z	"1. Go to [https://github.com/WordPress/wordpress-develop/commits/trunk Commits] page.
2. Click on any of the GitHub Actions result icons (a green check mark or a red cross mark).
3. Note the duplicate PHP version in the job names, e.g.:
{{{
PHPUnit Tests / PHP 7.0 / PHP 7.0 / MariaDB 10.11
PHPUnit Tests / PHP 7.0 / PHP 7.0 / MariaDB 10.11 multisite
PHPUnit Tests / PHP 7.0 / PHP 7.0 / MariaDB 10.4
PHPUnit Tests / PHP 7.0 / PHP 7.0 / MariaDB 10.4 multisite
PHPUnit Tests / PHP 7.0 / PHP 7.0 / MariaDB 10.6
PHPUnit Tests / PHP 7.0 / PHP 7.0 / MariaDB 10.6 multisite
...
}}}

The same is displayed in GitHub Actions checks on individual PRs.

Appears to be related to [56439]."	SergeyBiryukov
	66206	Extend the Axe-core accessibility automated testing to the Network admin pages		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new		2026-09-29T07:52:42Z	2026-09-29T07:53:38Z	"Once the Axe-core accessibility automated testing for the admin pages from #66015 are merged and running, the tests should be extended to the Network admin pages.

As a pre-requisite, the E2E tests setup should have a reliable way to run tests on the Network admin pages."	afercia
	62844	Fix performance monitoring workflow to not send duplicate results for a single commit		Build/Test Tools		low	normal	Future Release	defect (bug)	new		2025-01-22T19:09:14Z	2025-01-22T19:18:23Z	"See https://core.trac.wordpress.org/ticket/62221#comment:75: When the main portion of the performance monitoring workflow is successful, but the workflow is still rerun (e.g. because a subsequent portion of it failed), it will currently send the data for the same commit again (as it happened for [59679] / Git hash `8209135dfc327dc24a274efb0d3f01381e48c739`).

This is not ideal, so it would be better to either not send the commit data if there is already a record for it in the metric, or alternatively, send the commit data in a way that it overrides the previous data for the commit.

In practice, this scenario of rerunning the partially successful workflow should be an edge-case, hence I'm marking this as low priority."	flixos90
	63355	Image tests skipped in GitHub Actions	desrosj	Build/Test Tools		normal	normal	Future Release	defect (bug)	assigned	has-patch	2025-04-26T11:39:10Z	2026-07-25T03:15:26Z	"ClassicPress, a fork of WordPress, uses GitHub actions for automated CI testing in a similar way to WordPress.

The runner images for Ubuntu has recently been updated to `24.04` for `latest` and we have noticed that the slimmed down OS runner image has introduced issues in many of the image tests in core.

This PR may add some more context:
https://github.com/ClassicPress/ClassicPress/pull/1749

We have as yet not managed to find a solution beyond maintaining the OS runner at Ubuntu `22.04`.

We have noted however the a large number of the image tests in WordPress are being skipped in automated testing for what seems to be the same reason. It seems that around 37 tests related to Imagick are being skipped and some GD tests are being skipped for heic and avif image types.

The only solution that works currently seems to be fixing the runner to `Ubuntu 22.04`"	MattyRob
	66227	Make the Core E2E tests preserve the development environment state		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new		2026-10-01T10:55:07Z	2026-10-09T14:20:50Z	"Related: #63532.

The Core E2E setup makes the test run on the development database. This is inconsistent with the PHPUnit tests which run on the tests database, when properly configured.

Also, some methods provided by the `e2e-test-utils-playwright` package, like `deleteAllMedia()` are inherently dangerous because they literally delete ''all'' attachments, including the existing ones. This is inconsistent with the PHPUnit tests setup which makes its best to preserve the contents of the uploads directory.

This issue should be reported upstream in the Gutenberg repository to be considered for the packages provided there. However, it also affects the Core E2E setup, which is existing code in Core and should be tested in Core.

To reproduce:
- Make sure your development environment does have a few posts and comments.
- Make sure it also has some uploaded attachments.
- Set some user preferences, for example go to the Media Library and click the 'Grid view' link. Your choice will be saved in the persisted user preferences.
- From the terminal, run `npm run test:e2e`.
- Once the tests complete, observe that:
  - All your posts have been deleted.
  - All the comments have been deleted.
  - All your blocks (post type = wp_block), if any, have been deleted.
  - Your preferences have been reset. E.g. the Media Library will default to the 'List' view.

The E2E tests global setup, and also some specific tests, use the following methods that are responsible for the deletions:

- `requestUtils.deleteAllPosts()`: Deletes all posts of type `post`. As such, Core deletes all the related comments as well.
- `requestUtils.deleteAllBlocks()`: Deletes all blocks (post type = wp_block).
- `requestUtils.resetPreferences()`: Resets all user persisted preferences.

Additionally, there are a few more 'dangerous' methods provided by the E@E test utils. For example: `requestUtils.deleteAllMedia()` is not currently used in the tests but it's dangerous as it literally delets all attachments, even the pre-existing ones in your development environment.

Ideally:
- The tests should run on the tests database.
- Any file operation for the attachments should use its own uploads directory, not the default 'uploads' one, as proposed for the PHPUnit tests in #63532."	afercia
	59110	Make the database container in the local Docker environment more generic		Build/Test Tools		normal	normal	Future Release	defect (bug)	new	has-patch	2023-08-15T14:48:33Z	2023-10-16T13:48:25Z	"Currently, `mysql` is hard coded in several locations within the `docker-compose.yml` file. Although changing database types works interchangeably for the most part (Core also supports MariaDB), it is confusing to have a container named `mysql` that runs MariaDB.

For previous MariaDB versions, the `mysql` command is symlinked to the `mariadb` one. However, in MariaDB 11.0 that symlink is removed and causes failures. Making this container more generic will help spot commands still using `mysql`, and other potential issues."	desrosj
	63601	Memory exhaustion during performance tests when base version is set to 6.8		Build/Test Tools	6.8	normal	normal	Awaiting Review	defect (bug)	new		2025-06-19T21:35:14Z	2025-06-24T10:19:46Z	"In [60324] the base version of WordPress used in the performance tests was changed from 6.7 to 6.8. This commit did not trigger a performance test run.

After the subsequent commit, [60325], [https://github.com/WordPress/wordpress-develop/actions/runs/15743098432 the performance test run] ran into memory exhaustion errors when extracting 6.8. The change was reverted in [60326].

This problem needs to be investigated."	johnbillion
	66048	Multiple runs of the Test Old Branches workflow in a short period of time can cause a stampede of automatic reruns and Slack notifications		Build/Test Tools		normal	normal	7.3	defect (bug)	new	has-patch	2026-09-04T17:32:48Z	2026-11-06T21:37:40Z	"GitHub Actions workflows are configured to automatically rerun when the first run attempt is cancelled or fails. They are also configured so that when the triggering event for a run is not `pull_request` the `concurrency.group` value is `WORKFLOWNAME-SHA`. Because old branches do not receive updates often, the runs triggered by `workflow_dispatch` usually have the same concurrency value for m any consecutive runs.

When the Test Old Branches workflow runs more than once in short period of time, this causes a cascade of cancellations, re-runs, and Slack notifications. Consider the following example:

- Commit made to `trunk` that runs Test Old Branches workflow.
- Run 1 starts
- Second commit made to `trunk` that runs Test Old Branches workflow.
- Run 2 starts
- Incomplete runs triggered by the first commit are cancelled based on the concurrency group
- Run 1 is restarted
- Incomplete runs triggered by the second commit are cancelled based on the concurrency group
- Run 2 is restarted
- Incomplete runs triggered by the first commit are cancelled for the second time based on the concurrency group
- Run 1 cancellations send a Slack notification to raise awareness.

This is then made worse because a successful run following a cancelled or failed run is considered ""fixed"", which is also a scenario where a Slack notification is pushed.

With 25+ branches eligible to receive security updates as a courtesy, this means that roughly 150 workflow runs are triggered every time the Test Old Branches workflow runs (using 25 branches * 6 workflows each, which is a rough average) and potentially roughly the same number of notifications for cancellations, then the same number for ""fixes"". This can be even worse if the commit made in `trunk` caused legitimate failures or also experienced timeouts/cancellations, and when a number of other commits are made around the same time.

The cancelled run Slack notification is configured to only send a notice for only the second run attempt to avoid needlessly sharing a timeout that resolves itself during the automatic re-run (see r62740). However, the `cancelled` outcome in GitHub Actions represents a few different outcomes that are not easy to clarify. A cancellation could be a timeout, a user initiated cancellation, a concurrency-based cancellation, and sometimes a platform-level problem can cause cancellations.

Because of this there's no logic included to determine if the cancellation was caused by the configured concurrency groupings, which is an expected and desired outcome and does not warrant a rerun or Slack notification.

[https://wordpress.slack.com/archives/C02RQBWTW/p1788446249310839 See this Slack history] for an example of how this materializes in #core."	desrosj
	54724	PHPunit tests should not load remote patterns		Build/Test Tools	5.8	normal	normal	Awaiting Review	defect (bug)	new		2022-01-03T17:55:09Z	2022-01-04T15:51:30Z	"While running PHPunit tests for one of my plugins with PHP 8.1, I noticed deprecation notices in the Requests library when I am using `set_current_screen()`. These notices reveal that http requests are hooked to the `current_screen` action to load remote patterns.
{{{
add_action( 'current_screen', '_load_remote_block_patterns' );
add_action( 'current_screen', '_load_remote_featured_patterns' );
}}}
The first was added in 5.8 by #53246, the second was just added by #54623 for 5.9.
I propose to unhook these actions for PHPUnit tests.
"	Chouby
	64618	Playground Node.js engine requirement broke Core WP builds	youknowriad	Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	assigned	close	2026-02-09T22:13:51Z	2026-05-20T05:13:23Z	"WordPress Core builds broke recently due to a mismatch between the Node.js versions supported by WordPress Core and WordPress Playround.

This was reported by @barry [https://wordpress.slack.com/archives/C04EWKGDJ0K/p1770671811915499 in Slack], and there is a workaround in place to avoid the breakage.

Core declares [https://core.trac.wordpress.org/browser/trunk/package.json?rev=61605#L13 compatibility with Node.js 20.10.0 and above] while Playground declares [https://github.com/WordPress/wordpress-playground/blob/015974cd26f8d50e64df335ca64fc963d8145b0f/package.json#L228 compatibility with Node.js 22.12.0 and above].

After grepping the WordPress and Gutenberg sources for ""playground"", the only Playground dependency I could find in Core or Gutenberg is by `wp-env`. If that is indeed the only dependency, then this conflict appears to occur due to [https://github.com/WordPress/gutenberg/blob/2472df3b94769892778f9f396b5d8607caeac554/packages/env/package.json#L47 a wp-env dependency on Playground CLI]."	bpayton
	56250	ReferenceErrors encountered when running QUnit tests		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new		2022-07-19T16:35:59Z	2023-08-07T17:44:51Z	"When running QUnit tests, there are a handful of errors output:

{{{
Error: ReferenceError: QUnit is not defined
at <anonymous>:130:13
at HTMLDocument.<anonymous> (<anonymous>:132:2)
}}}

Even with these errors, no tests actually fail.

The number of errors also differences between `grunt qunit` (3) and `grunt qunit:compiled` (6)."	desrosj
	60231	Replace constant ABSPATH . WPINC with BLOCKS_PATH in the require-dynamic-blocks.php		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-01-11T13:53:13Z	2026-10-31T18:38:59Z	"Basically, we are already defining the **BLOCKS_PATH** constant in the **wp-includes/blocks/index.php** file which is loading the **require-dynamic-blocks.php**

So it is good practice to replace combination **ABSPATH . WPINC** constants with **BLOCKS_PATH** single constant in the **require-dynamic-blocks.php** file generated by **tools/release/sync-stable-blocks.js** file.

"	vishalkakadiya
	64103	Run WP-CLI test suite in core repo		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new		2025-10-16T09:00:46Z	2025-10-22T15:38:36Z	"Occasionally, a WordPress core change (small or big) can cause test failures over at WP-CLI, which is another official WordPress project.

The most recent example is #53323, but that's just one of many.

Whenever this happens, WP-CLI maintainers have to analyze test failures to see its origin and assess whether it's a regression in core that needs to be fixed, or whether WP-CLI tests simply need to be hardened.

To improve the feedback loop, we could add another CI workflow that runs Behat tests for all WP-CLI packages (as in https://github.com/wp-cli/automated-tests) for the current WordPress build.

It could work very similar to the `pull-request-comments.yml` workflow that runs only after the current commit (either in trunk or a PR) has a built ZIP file. Then, that ZIP file is used to run tests. Running them only for a single PHP version would already help a lot, so I don't think it would need to involve a complex matrix or triggering reusable workflows.

As mentioned, sometimes a test failure means WP-CLI tests simply need some hardening, so they shouldn't necessarily block merging. Perhaps we could find a good way to communicate that. Suggestions welcome.

There might also be some alternatives, like posting WP-CLI failures in the #core Slack channel or a combined testing dashboard that shows test status for core, Gutenberg, and WP-CLI."	swissspidy
	54420	Tests: Mock REST API remote requests	hellofromTonya	Build/Test Tools		normal	normal	Future Release	defect (bug)	reopened	dev-feedback	2021-11-11T15:43:01Z	2022-10-10T13:18:47Z	"Recent timeout failures ([https://github.com/WordPress/wordpress-develop/runs/4174016878?check_suite_focus=true see GitHub failed job]) of specific REST API tests show some tests are not mocking the remote requests. These requests can be mocked with a callback hooked into `'pre_http_request'` filter.

Each test should be reviewed to determine:
* If a remote request to a live API endpoint is being made
* If those specific requests should/can be mocked
* and then mocks created for each in its context of the condition under test

Ideally a mocking strategy could be created to abstract the heavy lifting and make it easier for these tests to mock the requests."	hellofromTonya
	61245	Two QUnit Widget tests are skipped and one is broken		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new		2024-05-18T18:03:31Z	2024-09-03T19:13:52Z	"During a recent update to Sinon over at ClassicPress it was noted during the investigation of new errors that some tests for Image and Video widgets were not completed. In fixing the tests it also became apparent that after update code to the Video Widget, the test is looking for the wrong code being generated in the preview anyway.

You can see more about the issue and the ClassicPress proposed fix here:
https://github.com/ClassicPress/ClassicPress/pull/1449

I have recreated the patch in WordPress and attached it to this bug report ticket."	MattyRob
	43663	Unit Test test_theme_file_uri_returns_valid_uri fails on directories with spaces		Build/Test Tools	4.9.5	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2018-03-29T22:15:47Z	2018-03-30T20:56:09Z	"Setting up PHPUnit and running the unit tests for the first time produced some failures because I was running from a directory with spaces in the name (WordPress Unit Tests).

4 assertions in total failed, but all 4 of them reference the same function, here is one of the examples:

{{{
1) Test_Theme_File::test_theme_file_uri_returns_valid_uri with data set #0 ('parent-only.php', 'theme-file-parent', array('theme-file-parent'))
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'/Users/mattkeys/Desktop/W/WordPress%20Unit%20Tests/tests/phpunit/includes/../data/themedir1/default/parent-only.php'
+'/Users/mattkeys/Desktop/W/WordPress Unit Tests/tests/phpunit/includes/../data/themedir1/default/parent-only.php'
}}}

Looking at this test, it makes use of esc_url_raw() which encodes the spaces as %20, then compares them against the original URI which has does not have the spaces encoded, so they are not the same.

If this is something that we want to fix, an easy way would be to str_replace spaces > %20 before running the assertion. Patch attached."	mattkeys
	42714	Unit tests: Move remaining classes out of includes/utils.php into their own file		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-11-27T15:15:00Z	2017-12-09T01:47:28Z	"The `includes/utils.php` file includes four classes:
- `MockAction`
- `testXMLParser`
- `MockClass`
- `wpdb_exposed_methods_for_testing`

The patch moves these classes into their own files, as this makes the code more transparent, and easier to add documentation.

The files are now loaded during bootstrap. Moving classes out of files can lead to issues, as seen in #37523.

Rather than continue loading these files always in `includes/utils.php`, one way to get around this is to check for these classes being loaded at the top `utils.php`. If not, they can be loaded, and an error message can be triggered, so that developers can update their code.

This backwards compatibility layer could then be removed after having it there for one major release.

"	anonymized_8769252
	64228	Update `sinon` npm dependency		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-11-11T01:35:49Z	2026-07-02T07:51:22Z	"The [https://www.npmjs.com/package/sinon Sinon dependency] is used to create spies and stubs for use within QUnit tests.

There are some breaking changes that are causing issues in the test suite that need to be addressed before upgrading.

Here is the output when running `npm run grunt qunit:compiled` using `sinon@21.0.0`:
{{{
Running ""qunit:files"" (qunit) task
Testing tests/qunit/compiled.html JQMIGRATE: Migrate is installed, version 3.4.1
Failed to load resource: net::ERR_FILE_NOT_FOUND
.............................................................................................Access to XMLHttpRequest at 'file:///wp-admin/admin-ajax.php' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome, https, chrome-untrusted.
Failed to load resource: net::ERR_FAILED
.....................................................................................FF.................................
>> dashboard > communityEvents.getTimeZone > modern browsers should return a time zone name
>> Message: undefined
>> Actual: UTC
>> Expected: America/Chicago
>>   at Object.<anonymous> (file:///home/runner/work/wordpress-develop/wordpress-develop/tests/qunit/wp-admin/js/dashboard.js:154:12)
>>     at callSandboxedFn (file:///home/runner/work/wordpress-develop/wordpress-develop/node_modules/sinon-test/dist/sinon-test.js:172:29)
>>     at Object.sinonAsyncSandboxedTest (file:///home/runner/work/wordpress-develop/wordpress-develop/node_modules/sinon-test/dist/sinon-test.js:192:30)
>> dashboard > communityEvents.getTimeZone > older browsers should fallback to a raw UTC offset
>> Message: negative offset
>> Actual: UTC
>> Expected: -300
>>   at Object.<anonymous> (file:///home/runner/work/wordpress-develop/wordpress-develop/tests/qunit/wp-admin/js/dashboard.js:166:12)
>>     at callSandboxedFn (file:///home/runner/work/wordpress-develop/wordpress-develop/node_modules/sinon-test/dist/sinon-test.js:172:29)
>>     at Object.sinonAsyncSandboxedTest (file:///home/runner/work/wordpress-develop/wordpress-develop/node_modules/sinon-test/dist/sinon-test.js:192:30)
>> Message: no offset
>> Actual: UTC
>> Expected: 0
>>   at Object.<anonymous> (file:///home/runner/work/wordpress-develop/wordpress-develop/tests/qunit/wp-admin/js/dashboard.js:170:12)
>>     at callSandboxedFn (file:///home/runner/work/wordpress-develop/wordpress-develop/node_modules/sinon-test/dist/sinon-test.js:172:29)
>>     at Object.sinonAsyncSandboxedTest (file:///home/runner/work/wordpress-develop/wordpress-develop/node_modules/sinon-test/dist/sinon-test.js:192:30)
>> Message: positive offset
>> Actual: UTC
>> Expected: 300
>>   at Object.<anonymous> (file:///home/runner/work/wordpress-develop/wordpress-develop/tests/qunit/wp-admin/js/dashboard.js:174:12)
>>     at callSandboxedFn (file:///home/runner/work/wordpress-develop/wordpress-develop/node_modules/sinon-test/dist/sinon-test.js:172:29)
>>     at Object.sinonAsyncSandboxedTest (file:///home/runner/work/wordpress-develop/wordpress-develop/node_modules/sinon-test/dist/sinon-test.js:192:30)
Testing tests/qunit/index.html JQMIGRATE: Migrate is installed with logging active, version 3.4.1
Failed to load resource: net::ERR_FILE_NOT_FOUND
.............................................................................................Access to XMLHttpRequest at 'file:///wp-admin/admin-ajax.php' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome, https, chrome-untrusted.
Failed to load resource: net::ERR_FAILED
.....................................................................................FF.................................
>> dashboard > communityEvents.getTimeZone > modern browsers should return a time zone name
>> Message: undefined
>> Actual: UTC
>> Expected: America/Chicago
>>   at Object.<anonymous> (file:///home/runner/work/wordpress-develop/wordpress-develop/tests/qunit/wp-admin/js/dashboard.js:154:12)
>>     at callSandboxedFn (file:///home/runner/work/wordpress-develop/wordpress-develop/node_modules/sinon-test/dist/sinon-test.js:172:29)
>>     at Object.sinonAsyncSandboxedTest (file:///home/runner/work/wordpress-develop/wordpress-develop/node_modules/sinon-test/dist/sinon-test.js:192:30)
>> dashboard > communityEvents.getTimeZone > older browsers should fallback to a raw UTC offset
>> Message: negative offset
>> Actual: UTC
>> Expected: -300
>>   at Object.<anonymous> (file:///home/runner/work/wordpress-develop/wordpress-develop/tests/qunit/wp-admin/js/dashboard.js:166:12)
>>     at callSandboxedFn (file:///home/runner/work/wordpress-develop/wordpress-develop/node_modules/sinon-test/dist/sinon-test.js:172:29)
>>     at Object.sinonAsyncSandboxedTest (file:///home/runner/work/wordpress-develop/wordpress-develop/node_modules/sinon-test/dist/sinon-test.js:192:30)
>> Message: no offset
>> Actual: UTC
>> Expected: 0
>>   at Object.<anonymous> (file:///home/runner/work/wordpress-develop/wordpress-develop/tests/qunit/wp-admin/js/dashboard.js:170:12)
>>     at callSandboxedFn (file:///home/runner/work/wordpress-develop/wordpress-develop/node_modules/sinon-test/dist/sinon-test.js:172:29)
>>     at Object.sinonAsyncSandboxedTest (file:///home/runner/work/wordpress-develop/wordpress-develop/node_modules/sinon-test/dist/sinon-test.js:192:30)
>> Message: positive offset
>> Actual: UTC
>> Expected: 300
>>   at Object.<anonymous> (file:///home/runner/work/wordpress-develop/wordpress-develop/tests/qunit/wp-admin/js/dashboard.js:174:12)
>>     at callSandboxedFn (file:///home/runner/work/wordpress-develop/wordpress-develop/node_modules/sinon-test/dist/sinon-test.js:172:29)
>>     at Object.sinonAsyncSandboxedTest (file:///home/runner/work/wordpress-develop/wordpress-develop/node_modules/sinon-test/dist/sinon-test.js:192:30)
Warning: 426 tests completed in 5685ms, with 4 failed, 0 skipped, and 0 todo. Use --force to continue.
}}}
"	desrosj
	56842	WordPress performance drop due to introduce Gutenberg		Build/Test Tools	6.0	normal	major	Awaiting Review	defect (bug)	new	has-patch	2022-10-18T09:49:54Z	2025-05-12T01:38:00Z	"Using Siege benchmark tool to stress WordPress with transaction per second as KPI

After upgrading WordPress from v5.9.3 to v6.0, we found that the performance dropped.

After experiment on ` git cherry -v 5.9-branch 6.0-branch |cat -n > ~/commits_on_6.0_branch.txt`  totally 707 commits, root cause addressed due to [https://github.com/WordPress/wordpress-develop/commit/bab610091d59f6dd21c7db84ba3e1ca0bab6a211 this commit].

||= NO =||= Commit ID =||= Commit Message =||= Transaction/sec =||
|| 1 || 5fc6f2a || Trunk is now 6.0-alpha. Built from [https://develop.svn.wordpress.org/trunk@52448 52448] || 217.25 ||
|| 354 || 7b96116 || Twenty Twenty: Fix aria-expanded handling in search toggle. || 209.71 ||
|| 443 || 476e731 || Users: Improve wording of the ""New Admin Email Address"" email. || 212.07 ||
|| 454 || bc0f186 || Administration: Clarify some sentences after [53131]. || 207.59 ||
|| 455 || ab8a964 || Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 || 186.43 ||
|| 456 || bb723f9 || Widgets: Avoid 27 duplicate translations in Media Widgets constructor. || 182.69 ||
|| 457 || 4dd4aec || Administration: Add unit test for term supplementary notice. || 185.76 ||
|| 459 || 1d29cb6 || Media: Enable edits to custom image sizes. || 184.88 ||
|| 465 || e1a2ae3 || Post WordPress 6.0 Beta 1 version bump. Built from [https://develop.svn.wordpress.org/trunk@53167 53167] || 184.04 ||
|| 487 || 407e802 || Docs: Use third-person singular verbs for function descriptions in `author-template.php`... || 188.67 ||
|| 531 || 943e956 || Feeds: Use latest comment date for the `Last-Modified` header of comments feed. || 182.66 ||
|| 707 || a9c0050 || Post WordPress 6.0.2 version bump. || 181.87 ||

 

"	dylan2intel
	39356	grunt precommit doesn't work on full checkouts of develop.svn		Build/Test Tools		normal	normal	Future Release	defect (bug)	new	has-patch	2016-12-21T05:46:13Z	2017-05-18T14:25:45Z	"To reproduce:

{{{
$ svn co https://develop.svn.wordpress.org/ develop.svn
$ cd develop.svn/branches/4.7
}}}

Edit a file in the 4.7 branch, then run `grunt precommit`. It fails with this message:

{{{
$ grunt precommit
Running ""precommit"" task
Fatal error: This WordPress install is not under version control.
}}}"	pento
	56086	readme.html should be changed to a markdown file		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new		2022-06-28T09:53:34Z	2026-09-17T18:11:46Z	"The readme under https://github.com/WordPress/WordPress should be changed to a markdown file for better readability. I think if we want to deter people from sending PR's to that repo, that can also be stated at the top of the file.

Someone had submitted a PR for it (https://github.com/WordPress/wordpress-develop/pull/1526), but it wasn't merged."	anonymized_20055759
	54754	test for is_blog_installed()		Build/Test Tools		normal	normal	Future Release	defect (bug)	assigned	has-patch	2022-01-05T21:50:26Z	2026-05-07T16:20:44Z		pbearne
	60202	unable to start wp-env		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-01-06T18:31:16Z	2024-10-21T14:31:27Z	"I try to start `wp-env` on my mac.

`node -v` -> v18.16.1
`npm -v` -> 9.5.1
docker is up and running

when I launch 
`wp-env start`

I get the error below

Can someone help me?

Thanks in advance
Vito

✖ Error while running docker compose command.
{{{
#0 building with ""desktop-linux"" instance using docker driver

#1 [wordpress internal] load .dockerignore
#1 transferring context:
#1 transferring context: 2B 10.0s done
#1 DONE 10.1s

#2 [tests-wordpress internal] load .dockerignore
#2 transferring context: 2B 10.0s done
#2 DONE 10.1s

#3 [wordpress internal] load build definition from WordPress.Dockerfile
#3 transferring dockerfile: 2.02kB 10.0s done
#3 DONE 10.1s

#4 [tests-wordpress internal] load build definition from Tests-WordPress.Dockerfile
#4 transferring dockerfile: 2.03kB 10.0s done
#4 DONE 10.1s

#5 [tests-wordpress internal] load metadata for docker.io/library/wordpress:latest
#5 DONE 0.0s

#6 [wordpress  1/19] FROM docker.io/library/wordpress
#6 DONE 0.0s

#7 [wordpress  5/19] RUN sed -i '/stretch-updates/d' /etc/apt/sources.list
#7 CACHED

#8 [wordpress  6/19] RUN groupadd -o -g 20 v.chiarello || true
#8 CACHED

#9 [wordpress  7/19] RUN useradd -mlo -u 502 -g 20 v.chiarello || true
#9 CACHED

#10 [wordpress  2/19] RUN touch /etc/apt/sources.list
#10 CACHED

#11 [wordpress  4/19] RUN sed -i 's|security.debian.org/debian-security stretch|archive.debian.org/debian-security stretch|g' /etc/apt/sources.list
#11 CACHED

#12 [wordpress  3/19] RUN sed -i 's|deb.debian.org/debian stretch|archive.debian.org/debian stretch|g' /etc/apt/sources.list
#12 CACHED

#13 [wordpress  8/19] RUN apt-get -qy update
#13 CACHED

#14 [wordpress  9/19] RUN apt-get -qy install $PHPIZE_DEPS && touch /usr/local/etc/php/php.ini
#14 0.635 Reading package lists...
#14 1.544 Building dependency tree...
#14 1.634 Reading state information...
#14 1.850 0 upgraded, 0 newly installed, 0 to remove and 89 not upgraded.
#14 1.854 touch: cannot touch '/usr/local/etc/php/php.ini': No such file or directory
#14 ERROR: process ""/bin/sh -c apt-get -qy install $PHPIZE_DEPS && touch /usr/local/etc/php/php.ini"" did not complete successfully: exit code: 1
------
 > [wordpress  9/19] RUN apt-get -qy install $PHPIZE_DEPS && touch /usr/local/etc/php/php.ini:

1.544 Building dependency tree...
1.634 Reading state information...
1.850 0 upgraded, 0 newly installed, 0 to remove and 89 not upgraded.
1.854 touch: cannot touch '/usr/local/etc/php/php.ini': No such file or directory
------
failed to solve: process ""/bin/sh -c apt-get -qy install $PHPIZE_DEPS && touch /usr/local/etc/php/php.ini"" did not complete successfully: exit code: 1
}}}"	vchiarello
	56602	Add a comment to auto-generated editor files pulled from Gutenberg repository		Build/Test Tools		normal	normal	Awaiting Review	enhancement	new		2022-09-19T13:14:16Z	2022-09-19T13:34:01Z	"Background: #30666, #48424.

With the increasing amount of files merged from Gutenberg, it's not always clear which files are safe to patch in core and which should first be patched upstream in the Gutenberg repository and then backported to core.

At a glance, these fall under the latter category:
{{{
wp-includes/blocks/*
wp-includes/class-wp-block-parser.php
}}}

Patching them directly in core would cause a test failure, see comment:10:ticket:56581 for a recent example.

To avoid further confusion, it would be great to add a comment like this at the top of the file:
{{{
/*! This file is auto-generated */
}}}
similar to the one added in [41271] and [46589] for RTL CSS and minified JS and CSS files.

Or this one from [source:trunk/tools/release/sync-stable-blocks.js?rev=53688&marks=22#L15 tools/release/sync-stable-blocks.js], added in [53688]:
{{{
// This file was autogenerated by tools/release/sync-stable-blocks.js, do not change manually!
}}}

If that would require changes in both core and Gutenberg build process, this ticket can be used for tracking. If it can be done entirely on the Gutenberg side, happy to move the issue there."	SergeyBiryukov
	66500	Add unit tests for remove_all_shortcodes(), get_shortcode_tags_in_content(), apply_shortcodes() and unescape_invalid_shortcodes()		Build/Test Tools		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T01:39:52Z	2026-11-06T01:43:15Z	"The shortcode API in `src/wp-includes/shortcodes.php` has tests in `tests/phpunit/tests/shortcode.php`, but several of its public functions are not referenced by any test:

 * `remove_all_shortcodes()`
 * `get_shortcode_tags_in_content()`
 * `apply_shortcodes()` (the alias of `do_shortcode()`)
 * `unescape_invalid_shortcodes()`

This ticket adds unit tests for them, in separate test classes under `tests/phpunit/tests/shortcodes/`:

 * `remove_all_shortcodes()` empties the registry, so that `shortcode_exists()` is false for every tag, and registering a shortcode afterwards works.
 * `get_shortcode_tags_in_content()` returns only the registered tags, in the order they appear, including the tags nested in the content of an enclosing shortcode, handles escaped shortcodes (`[[tag]]`) and content without brackets.
 * `apply_shortcodes()` returns the same result as `do_shortcode()`, and forwards the `$ignore_html` argument.
 * `unescape_invalid_shortcodes()` restores `&#91;` and `&#93;` to brackets and leaves any other content untouched.

The tests change the global `$shortcode_tags`, so they restore it after each test.

I checked that no existing ticket or open pull request adds tests for these functions."	hmbashar
	63421	Adding SSL Support for ENV		Build/Test Tools		normal	normal	Awaiting Review	enhancement	reopened	has-patch	2025-05-08T23:52:42Z	2025-12-22T00:43:14Z	"I think to have the full testing suite that its needed to add easy SSL support

One idea that comes to my mind is, leaving everything set up, and create a `npm` command to generate the SSL certs in our desired folder, or ship this with self-signed certificates. Either of the two options could work, obviously the second one is easier to implement.

I'm going to create a very simple patch just to showcase this idea, but it needs further work.  "	SirLouen
	63336	Adding Support to Apache2		Build/Test Tools		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2025-04-22T23:58:14Z	2025-04-22T23:58:38Z	"This is still a WIP. But the idea of adding Apache2 as an alternative to Nginx proxy could be interesting.

I found that I need to bypass some restrictions by Nginx, to debug an issue https://core.trac.wordpress.org/ticket/63316

Many users can provide as env-vars to Apache2, and having just Nginx is limiting. I feel that env should be a full testing tool adaptable to any kind of scenario (and not having to draw upon other tools to debug this kind of issues)

It took me a while to figure out the exact parameters to get to a working Apache2 build, and I want to share them here, just in case this could be considered for improvement in the future.
"	SirLouen
	66049	Build PHPStan extensions for query-string $args passed to wp_parse_args()-based template tags		Build/Test Tools		normal	normal	Awaiting Review	enhancement	new		2026-09-04T23:27:01Z	2026-09-08T05:02:18Z	"Follow-up to #65817, where r63440 and r63441 gave the dual-mode template tags conditional `@phpstan-return` annotations so that consuming the result of a call that only prints is reported as an error.

As mentioned in a [https://github.com/WordPress/wordpress-develop/pull/13371/changes#r3937932277 PR comment], those annotations cannot describe one case: an `$args` passed as a query string. This ticket proposes two PHPStan extensions to close that gap, and reports a survey of how often the query-string form is actually used in core, in themes and in plugins.

== The problem ==

Around two dozen template tags accept `$args` as either an array or a URL-encoded query string, which `wp_parse_args()` runs through `wp_parse_str()` (which also come to find out has a `wp_parse_str` filter). A conditional return type keys off the '''static type of the argument at the call site''', so an array shape can be matched but a string cannot:

{{{#!php
<?php
// Decidable: the shape is visible, the tag prints, the result is void.
wp_list_authors( array( 'echo' => true ) );

// Undecidable: 'echo=0' is a ConstantStringType, never a subtype of any array shape.
$html = wp_list_authors( 'echo=0' );
}}}

Every such tag therefore ends its conditional with a branch that leaves the type a union so nothing is reported either way. For most tags that branch reads `string|null`. For `wp_dropdown_languages()` it has to read `string|void`, because that function bails with a bare `return;` rather than `return null;` — putting `void` back inside a union, which is the thing [https://github.com/WordPress/wordpress-develop/pull/13359 previous] [https://github.com/WordPress/wordpress-develop/pull/13371 PRs] set out to eliminate.

PHPStan offers no hook to customize how `X is Y` is decided inside a conditional type, so this cannot be fixed in a docblock. It needs an extension.

== Survey: core ==

All 61 functions in `src/` documented `array|string` (or `string|array`) that call `wp_parse_args()` were identified, then narrowed to the 24 free functions where argument 1 is the args. Every call site in `src/` and `tests/phpunit/` was then classified.

||= First argument =||= Call sites =||
|| Array literal || 61 ||
|| Variable or expression || 420 ||
|| No argument || 196 ||
|| '''String literal''' || '''18''' ||

The 18 string call sites:

||= Area =||= Count =||= Detail =||
|| Bundled legacy themes || 14 || 13 of them `the_title_attribute( 'echo=0' )` in Twenty Ten through Twenty Sixteen, plus `wp_get_archives( 'type=monthly' )` in Twenty Ten ||
|| Tests || 3 || `get_pages()`, `get_posts()`, `wp_list_pages()` ||
|| `src/wp-includes/theme-compat/sidebar.php` || 1 || `wp_list_pages( 'title_li=<h2>' . __( 'Pages' ) . '</h2>' )` ||

'''`src/wp-includes` proper and `src/wp-admin` contain no query-string call sites at all.''' The single non-theme instance is in `theme-compat/`, itself legacy scaffolding.

The practical consequence is that the undecidable branch costs core's own analysis almost nothing. Its entire effect lands on themes and plugins, which consume these annotations through [https://github.com/php-stubs/wordpress-stubs php-stubs/wordpress-stubs].

== Survey: themes ==

Measured across the 14,941 themes in the WordPress.org directory.

||= Function =||= Array form =||= Query-string form =||= Themes with at least one =||
|| `the_title_attribute` || 1,876 || '''4,329''' || 1,280 ||
|| `wp_list_categories` || 2,114 || '''1,815''' || 1,444 ||
|| `wp_get_archives` || 2,919 || '''1,696''' || 1,000 ||
|| `wp_list_pages` || 986 || '''1,482''' || 1,032 ||
|| `wp_list_comments` || 6,779 || 726 || 583 ||
|| `wp_tag_cloud` || 243 || '''484''' || 445 ||
|| `wp_link_pages` || 21,327 || 439 || 184 ||
|| `wp_list_bookmarks` || 18 || '''292''' || 272 ||
|| `wp_dropdown_categories` || 453 || 223 || 215 ||
|| `wp_page_menu` || 375 || 60 || 53 ||
|| `paginate_comments_links` || 158 || 57 || 47 ||
|| `wp_list_authors` || 5 || 30 || 24 ||

The idiom is not confined to abandoned themes. It ships today in GeneratePress (500k installs), Lightning (100k), Hestia (80k), Twenty Ten (50k), Ashe (30k), Hueman (20k) and Rife Free (20k), as well as in core's own bundled themes.

== Survey: plugins ==

Measured across the 74,641 plugins in the WordPress.org directory. Roughly 650 query-string call sites across 350 to 400 distinct plugins.

||= Function =||= Array form =||= Query-string form =||
|| `the_title_attribute` || 276 || '''289''' ||
|| `wp_dropdown_categories` || 850 || 95 ||
|| `wp_list_pages` || 60 || '''90''' ||
|| `wp_get_archives` || 23 || '''50''' ||
|| `wp_list_categories` || 82 || 41 ||
|| `wp_dropdown_pages` || 647 || 28 ||
|| `wp_list_comments` || 146 || 14 ||
|| `wp_tag_cloud` || 32 || 11 ||
|| `wp_dropdown_users` || 280 || 10 ||
|| `wp_link_pages` || 183 || 8 ||
|| `wp_list_authors` || 16 || 8 ||
|| `wp_list_bookmarks` || 4 || 4 ||
|| `wp_page_menu` || 2 || 0 ||

That is around 0.5% of the whole directory, but roughly 10 to 20% of the plugins that call these functions at all. Actively maintained, high-install plugins still use it: GenerateBlocks (200k), YARPP (100k), VK All in One Expansion Unit (100k), WPtouch (60k), Easy Digital Downloads (40k).

== Method and caveats ==

 * Core figures come from a scan of `src/` and `tests/phpunit/`, excluding bundled third-party libraries. The scan is multi-line aware; a second line-based pass produced identical totals.
 * Theme and plugin figures were gathered by regex search over indexed copies of both directories, matching the function name followed by `(` and then either a quote (query-string form) or `array(`/`[` (array form).
 * '''Those searches are line-scoped''', so a call whose `array(` sits on the following line is counted in neither column. The leakage was measured for two functions: 247 additional multi-line array calls for `wp_dropdown_categories()` and 405 for `wp_dropdown_pages()`. The '''percentages''' above therefore overstate the query-string share; the '''absolute counts''' are sound.
 * Args passed through a variable are counted in neither column, so query-string figures are a floor rather than a ceiling.
 * Only the latest indexed version of each theme and plugin was searched.
 * Query-string matches were manually sampled to discard commented-out code, docblock examples, hook and callback names, and calls whose first parameter is not the args.

== Proposal: two extensions ==

These are two distinct PHPStan extension points, best implemented together because they share one table of metadata: for each supported function, which parameter carries the args and what its `$defaults` array contains.

=== 1. A dynamic return type extension ===

A `PHPStan\Type\DynamicFunctionReturnTypeExtension`, the same interface already used in this repo by `tests/phpstan/ApplyFiltersDynamicFunctionReturnTypeExtension.php`. For a supported call it inspects the argument type via `Scope::getType()` and:

 * `ConstantStringType` — runs `parse_str()` on the literal during analysis, merges the result over the function's defaults, evaluates the same branch logic the docblock encodes, and returns `VoidType`, `StringType` or whatever that branch resolves to.
 * `ConstantArrayType` — the same merge and the same decision, replacing what the conditional does today.
 * anything else — returns null so the docblock type stands.

This makes `the_title_attribute( 'echo=0' )` resolve to exactly `string` and `wp_dropdown_languages( 'id=0' )` resolve to exactly `void`, removing the undecidable branch for literal arguments.

=== 2. A rule forbidding non-array `$args` ===

A `PHPStan\Rules\Rule` that reports passing anything other than an array to these parameters. Unlike the inference extension it does not need the value to be knowable, so it also covers concatenated and interpolated strings.

👉 Functions which are passed a query string could trigger a `_doing_it_wrong()` to encourage passing args arrays as they can more readily be statically-analyzed.

=== Why both ===

Only a bare literal is a `ConstantStringType`. Anything built up loses its value:

||= Expression =||= Type PHPStan sees =||= Extension can resolve? =||
|| `'echo=0'` || `'echo=0'` || yes ||
|| `'title_li=' . $x` || `non-falsy-string` || no ||
|| `""type=$foo""` || `non-falsy-string` || no ||

The dominant list-tag idiom is concatenation (`'title_li=&echo=0&child_of=' . $id`), so inference alone leaves much of the ecosystem untyped. The rule covers those. Conversely the rule cannot improve a type, so it does nothing for the annotations. They are complementary.

Both of core's own non-theme string call sites are concatenations or interpolations, so the inference extension would do nothing for either; only the rule reaches them.

== Side finding: a live bug the rule would catch ==

28 themes still call `wp_link_pages()` with its pre-2.1 positional signature:

{{{#!php
<?php
wp_link_pages( '<p>Pages: ', '</p>', 'number' );
}}}

`wp_link_pages()` has no positional back-compat handling. The second and third arguments are discarded, and `parse_str( '<p>Pages: ' )` yields the single junk key `'<p>Pages:_' => ''`, so every default survives and the theme silently renders default markup instead of its own. Inference can never flag this, since the string is not a valid args string in the first place. A rule forbidding non-array args reports it immediately.

== Open questions ==

 1. '''Where should these live?''' In `tests/phpstan/` they only help core analyze itself, where the survey shows there is almost nothing to find. To reach the themes and plugins that actually use the idiom they would need to ship in [https://github.com/szepeviktor/phpstan-wordpress szepeviktor/phpstan-wordpress] or alongside php-stubs/wordpress-stubs. That argues for developing them outside core, with core consuming them.
 2. '''Soundness.''' `wp_parse_str()` applies a `wp_parse_str` filter to the parsed result, and a few tags filter `$args` before parsing — `wp_get_archives()` runs `apply_filters( 'wp_get_archives_args', $args )` ahead of `wp_parse_args()`, and `get_calendar()` filters afterwards. Only two plugins in the directory filter `wp_parse_str` at all, so that hook is not a practical concern, but `wp_get_archives()` and `get_calendar()` may warrant exclusion from the inference extension.
 3. '''Defaults drift.''' The metadata table duplicates each function's `$defaults`. A test asserting the table matches the source would prevent it going stale, unless the defaults can be extracted from the call to `wp_parse_args()` at runtime.
 4. '''Should the rule be adopted by core at all?''' It would flag one file in `theme-compat/`, three test call sites and the bundled legacy themes. That is cheap, but it mostly enforces a state core has already reached.

== Not proposed here ==

A `wp_parse_args()` return type extension, typing `$parsed_args` inside these functions as a precise shape rather than `array<string, mixed>`, would remove a good deal of `mixed`-related noise in their bodies. That is a separate concern and does not affect call-site resolution, since the conditional keys off the caller's argument.

----

🤖 ''This ticket was drafted with help of Claude Opus 5.''"	westonruter
	59728	Build/Test Tools: Expose error message upon Gutenberg plugin activation failure.	Bernhard Reiter	Build/Test Tools		normal	normal	Awaiting Review	enhancement	assigned	has-patch	2023-10-25T08:41:31Z	2023-10-25T14:26:15Z	"In [54913], an end-to-end test was added to ensure that installing and activating the Gutenberg plugin didn't cause any fatal errors. (For the rationale behind this, refer to #57197.) Through its integration with GitHub's CI, this allowed catching code that would lead to fatals (e.g. duplicated function names) before it was committed.

The downside of doing this via an e2e test is that the error message shown in CI is fairly generic and thus somewhat easy to miss and/or ignore, even though WordPress does report the specific error that would cause an error when attempting to activate Gutenberg.

Thus, it seems preferable to implement the test differently to expose WordPress' error message. One way to go about this would be to add a separate GH workflow (yml file) and to use WP CLI to install and activate GB."	Bernhard Reiter
	65226	Build/Test Tools: Move AJAX unit tests to mirror source structure		Build/Test Tools		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-12T22:49:46Z	2026-05-12T22:54:19Z	Currently, AJAX unit tests are located in tests/phpunit/tests/ajax/. To follow the project's testing guidelines and mirror the source structure (src/wp-admin/includes/ajax-actions.php), these tests should be moved to tests/phpunit/tests/admin/includes/ajax-actions/.	pbearne
	63628	Build/Test Tools: Remove unnecessary `docker` branding		Build/Test Tools	5.3	normal	normal	Awaiting Review	enhancement	new	has-patch	2025-06-27T07:33:57Z	2026-10-31T00:34:24Z	"This PR brings following improvements:
- Add container repository (`docker.io`) to `compose.yaml`
- Remove `docker-` prefix -> more generic & prefix not needed
- add ""missing"" container tags

Ref: https://github.com/WordPress/wordpress-develop/pull/9086"	Ninos Ego
	64444	CI Reruns		Build/Test Tools		normal	normal	Future Release	enhancement	new		2025-12-22T15:24:05Z	2025-12-22T16:03:08Z	"Following this conversation in Slack:
https://wordpress.slack.com/archives/C04EWKGDJ0K/p1766416737463589?thread_ts=1766176828.042709&cid=C04EWKGDJ0K

@zieladam suggested:

> you’d need to trigger the CI build somehow, e.g. push to that PR or start a new empty PR with that PR as a base
> some repos allow you to click “re-run CI jobs” in this part of GitHub: https://github.com/WordPress/wordpress-develop/actions/runs/14889344575?pr=8514
> but not wordpress-develop apparently, at least I can’t do it
> it would be convenient to have something in CI to observe labels and trigger CI when, say [CI rerun] label is applied or removed
> I’ve seen that done once in some repo and it was pretty cool

Basically the problem here is that when a PR is untouched for a while, the build expires. We need to trigger a CI rerun to rebuild it to run it and test it in Playground again. Ideally, this could be done via Labels. "	SirLouen
	56087	Configure Codecov status checks		Build/Test Tools		low	normal	Awaiting Review	enhancement	new		2022-06-28T15:19:50Z	2022-06-28T15:26:08Z	"There are two [https://docs.codecov.com/docs/commit-status status checks] associated with Codecov reporting being attached to commits: [https://docs.codecov.com/docs/commit-status#project-status project] and [https://docs.codecov.com/docs/commit-status#patch-status patch].

Patch status only measures the lines adjusted in the commit where project measures the overall project coverage and compares the before and after for the current commit.

Because a coverage report is not generated for every commit, the `project` check sometimes attaches misleading information to a commit when it does run. For example, see [https://github.com/WordPress/wordpress-develop/commit/567b8377541bf5f212437c73590bf044b22e1730 this commit]. No files in the `src` directory were changed, but the test coverage is reported as declining.

It seems that any decline in coverage is also considered a failure."	desrosj
	54154	Core medias e2e tests		Build/Test Tools		normal	normal	Future Release	enhancement	new		2021-09-21T12:17:40Z	2022-09-02T15:17:22Z	"This ticket is a sub ticket of #52895.

Here is an overview of e2e tests that are already implemented and those that need implementation in Core: https://docs.google.com/spreadsheets/d/1QTlGV3WYmRZKhtqzUasbv_XELFCwu1su7c4qe-SePMY/edit#gid=0.

And here are the tests scenarios I drafted: https://docs.google.com/document/d/1HvZCiCBvRRU978NX6wbP4JrMu5f1-OPjYVTgjkV5CCo/edit?usp=sharing

---------------------------------------------------------------------------------------

This ticket is for medias e2e tests."	justinahinon
	54157	Core menus e2e tests		Build/Test Tools		normal	normal	Future Release	enhancement	new		2021-09-21T13:03:13Z	2022-09-02T15:17:39Z	"This ticket is a sub ticket of #52895.

Here is an overview of e2e tests that are already implemented and those that need implementation in Core: https://docs.google.com/spreadsheets/d/1QTlGV3WYmRZKhtqzUasbv_XELFCwu1su7c4qe-SePMY/edit#gid=0.

And here are the tests scenarios I drafted: https://docs.google.com/document/d/1HvZCiCBvRRU978NX6wbP4JrMu5f1-OPjYVTgjkV5CCo/edit?usp=sharing

---------------------------------------------------------------------------------------

This ticket is for menus e2e tests."	justinahinon
	54152	Core posts e2e tests		Build/Test Tools		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-09-21T07:39:50Z	2026-10-12T09:42:33Z	"This ticket is a sub ticket of #52895.

Here is an overview of e2e tests that are already implemented and those that need implementation in Core: https://docs.google.com/spreadsheets/d/1QTlGV3WYmRZKhtqzUasbv_XELFCwu1su7c4qe-SePMY/edit#gid=0.

And here are the tests scenarios I drafted: https://docs.google.com/document/d/1HvZCiCBvRRU978NX6wbP4JrMu5f1-OPjYVTgjkV5CCo/edit?usp=sharing

---------------------------------------------------------------------------------------

This ticket is for Core posts e2e tests."	justinahinon
	54153	Core taxonomies e2e tests		Build/Test Tools		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-09-21T12:16:22Z	2021-09-27T12:18:42Z	"This ticket is a sub ticket of #52895.

Here is an overview of e2e tests that are already implemented and those that need implementation in Core: https://docs.google.com/spreadsheets/d/1QTlGV3WYmRZKhtqzUasbv_XELFCwu1su7c4qe-SePMY/edit#gid=0.

And here are the tests scenarios I drafted: https://docs.google.com/document/d/1HvZCiCBvRRU978NX6wbP4JrMu5f1-OPjYVTgjkV5CCo/edit?usp=sharing

---------------------------------------------------------------------------------------

This ticket is for taxonomies e2e tests."	justinahinon
	54155	Core users e2e tests		Build/Test Tools		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-09-21T12:20:41Z	2021-09-21T12:20:59Z	"This ticket is a sub ticket of #52895.

Here is an overview of e2e tests that are already implemented and those that need implementation in Core: https://docs.google.com/spreadsheets/d/1QTlGV3WYmRZKhtqzUasbv_XELFCwu1su7c4qe-SePMY/edit#gid=0.

And here are the tests scenarios I drafted: https://docs.google.com/document/d/1HvZCiCBvRRU978NX6wbP4JrMu5f1-OPjYVTgjkV5CCo/edit?usp=sharing

---------------------------------------------------------------------------------------

This ticket is for users e2e tests."	justinahinon
	54156	Core widgets e2e tests		Build/Test Tools		normal	normal	Future Release	enhancement	new		2021-09-21T12:49:40Z	2022-09-02T15:17:31Z	"This ticket is a sub ticket of #52895.

Here is an overview of e2e tests that are already implemented and those that need implementation in Core: https://docs.google.com/spreadsheets/d/1QTlGV3WYmRZKhtqzUasbv_XELFCwu1su7c4qe-SePMY/edit#gid=0.

And here are the tests scenarios I drafted: https://docs.google.com/document/d/1HvZCiCBvRRU978NX6wbP4JrMu5f1-OPjYVTgjkV5CCo/edit?usp=sharing

---------------------------------------------------------------------------------------

This ticket is for widgets e2e tests."	justinahinon
	54151	Dashboard widgets e2e tests	justinahinon	Build/Test Tools		normal	normal	Awaiting Review	enhancement	assigned	has-patch	2021-09-21T07:35:18Z	2026-10-12T09:42:37Z	"This ticket is a sub ticket of #52895.

Here is an overview of e2e tests that are already implemented and those that need implementation in Core: https://docs.google.com/spreadsheets/d/1QTlGV3WYmRZKhtqzUasbv_XELFCwu1su7c4qe-SePMY/edit#gid=0.

And here are the tests scenarios I drafted: https://docs.google.com/document/d/1HvZCiCBvRRU978NX6wbP4JrMu5f1-OPjYVTgjkV5CCo/edit?usp=sharing

---------------------------------------------------------------------------------------

This ticket is for dashboard widgets."	justinahinon
	42990	Deprecate WP_UnitTestCase::_make_attachment		Build/Test Tools		normal	normal	Future Release	enhancement	new	has-patch	2017-12-28T13:07:36Z	2019-10-03T21:05:47Z	"In r35309, several ways of creating an attachment for an uploaded media file were consolidated into a single method, `WP_UnitTestCase::_make_attachment`.

As part of r34855, a new method, `create_upload_object`, was added to `WP_UnitTest_Factory_For_Attachment`. It contains all of the code from `_make_attachment`, but additionally it also handles the upload of the media file.

We should deprecate the `_make_attachment` helper method, and use the factory method instead. This reduces duplicate code, and makes the interface of `WP_UnitTestCase` cleaner."	anonymized_8769252
	54892	E2E tests for Creating Menu, Removing existing menu and Remove items from Menu		Build/Test Tools		normal	normal	Awaiting Review	enhancement	new	has-patch	2022-01-24T13:15:48Z	2026-10-31T18:38:37Z	"Add three new test cases in WP-e2e:

1. Create a New Menu
2. Removing Existing Menu
3. Remove Items from the Menu

This ticket is to add E2E test for this feature. 

"	pooja1210
	54095	Echo local wp-env URL when running env:start		Build/Test Tools		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-09-08T20:41:21Z	2021-09-09T04:08:03Z	"In an effort to make the wp-env tools a wee bit friendly to new devs I’ve added a `console.log` to echo the local URL when running `env:start`

`http://127.0.0.1:` is hard-coded, the port number is added using the variable ` process.env.LOCAL_PORT`

On my machine the console output looks like this:

{{{
$ npm run env:start                                                      

> WordPress@5.9.0 env:start
> node ./tools/local-env/scripts/start.js

Starting wordpress-develop_mysql_1 ... done
Starting wordpress-develop_php_1   ... done
Starting wordpress-develop_wordpress-develop_1 ... done
-------------------------------------------
wp-env now running on http://127.0.0.1:8889
-------------------------------------------
}}}

"	danfarrow
	64296	Make the workflow file responsible that commits changes to built files more maintainable		Build/Test Tools		normal	normal	Future Release	enhancement	new		2025-11-24T18:08:24Z	2025-11-24T18:08:24Z	"The `commit-built-file-changes.yml` file currently contains all of the logic that commits and pushes any missed changes to built files. This does not work when it comes to non-default branches because updates to the logic would need to be backported, which is unsustainable.

[61286] introduced a new Grunt task that will remove this file when `grunt post-branching` is run in a newly created branch. This is not ideal as it reintroduces the possibility of committing something that's missing changes to built files.

If this file can be updated to take advantage of the reusable workflow pattern, it can remain in old branches and call a reusable file in `trunk`, eliminating the maintenance burden.

After this is solved in `trunk`, the workflow would need to be reintroduced into the 6.8 & 6.9 branches to accompany the `check-built-files.yml` workflow.

Additional context: https://github.com/WordPress/wordpress-develop/pull/10512#discussion_r2525836190

Props @peterwilsoncc, @johnbillion for participating in that discussion."	desrosj
	64298	Move the `failed-workflow` job logic into a reusable workflow		Build/Test Tools		normal	normal	Future Release	enhancement	reopened	has-patch	2025-11-24T18:22:43Z	2026-07-10T02:10:23Z	"The `failed-workflow` job is present in all workflows that run on `push` events in all branches receiving security updates.

While the logic within the job is minimal, it still relies on a 3rd-party action and backports are required periodically to ensure the job continues working as expected.

The logic within this job should be moved to a reusable workflow in `trunk` that all other branches can reference. This not only eliminates the maintenance burden, but also allows older branches to take advantage of any improvements made to the logic without needing to backport."	desrosj
	37190	Split out function declarations and code executions.		Build/Test Tools		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2016-06-26T14:59:16Z	2020-09-14T19:03:30Z	Quite a few php files in the root directory contain function definitions and code executions. This makes it impossible to unit-test those functions. Should we move those function definitions to `includes/<file-name>.php` and then include them at the top of the root file?	stephenharris
	62188	Update `imagemin` tasks to run on modern image formats	pbearne	Build/Test Tools		normal	normal	Awaiting Review	enhancement	assigned	has-patch	2024-10-08T00:32:09Z	2024-11-06T17:06:41Z	"The dependency currently used to ensure images are properly minified is `grunt-contrib-imagemin`. It seems that JPG, PNG, GIF, and SVG are the only currently supported formats.

[57322] expanded the task to also minify images in default themes. But as of 6.7, there will now be 2 default themes that ship with WebP images.

Alternative image minification packages with better support for modern formats should be looked at to ensure these images are also properly compressed."	desrosj
	60874	Better Block Management System required		Build/Test Tools		normal	normal	Awaiting Review	feature request	new		2024-04-01T16:03:27Z	2024-06-20T06:25:07Z	"What I miss most in WordPress is a proper block management feature.

Presently WordPress does not show the origin of a block, which means the plugin used for a particular plugin is not known. This is a problem if a site was developed by someone, and later to be modified by another developer, and problems arise due to plugin conflicts. It is also a problem within developer teams if documentation does not point to detailed purposes of plugins used.

In List View block indicators presently show the hierarchy and nesting, but only the block type titles. It would really speed up development if next to the type of block, a label is added to indicate that this particular block is from the XYZ plugin suite.

And even be better would be the ability to add a comment of the use case – like comments in code. One could then right there in Edit mode see both the origin and purpose of a particular block.

This will also be very, very useful for troubleshooting. Presently if there is a plugin conflict related to blocks, it is a loooong path deactivate/activating plugins one by one, going back to Edit, going back to Plugins and looping this process trying to find the culprit.

If the particular problem block shows its plugin origin, imagine the hundreds of hours developers will save annually trying to troubleshoot the culprit plugin."	tvejacques
	64878	Create a workflow that compares a PR with the build server		Build/Test Tools		normal	normal	Future Release	feature request	new	has-patch	2026-03-18T03:26:51Z	2026-07-15T13:11:49Z	"When a pull request modifies files that affect the build output, it is currently difficult to know whether the resulting build directory would differ from what the build server currently has committed.

It would be helpful to have a workflow that compares the contents of the `build` directory within a pull request with `WordPress/WordPress` to make sure that there are no unexpected changes."	desrosj
	64222	Improve the upgrade process for the Twemoji library		Build/Test Tools		normal	normal	Awaiting Review	feature request	new	dev-feedback	2025-11-10T15:48:12Z	2025-11-10T15:48:51Z	"The current process for upgrading the Twemoji library is as follows:

1. The new image assets from the Twemoji release must be uploaded to the wordpress.org CDN. **This must be done before any testing occurs**. Hitting the URL where a character is expected to be will prime the CDN's cache and should be viewed as having an indefinite lifespan.
  - When ''only new files/Emoji'' are added, the previous folder can be used. Since only the new files need to be fetched, it can help to save requests refetching the same asset at a new URL.
  - When old files/Emoji are modified and the modifications change the meaning or how the Emoji is interpreted, a new folder should be added to the CDN. For an example of this, see #51356 and the changes to the kneeling Emoji.
  - When old files/Emoji are modified and the modifications do not change the meaning or interpretation of the character, a new folder is not always necessary.
1. Update the `src/js/_enqueues/vendor/twemoji.js` file to include the latest changes. There are WP specific changes in this file that must be preserved.
1. The values of `baseUrl`, `svgUrl`, and `$cdn_url` variables in `src/wp-includes/formatting.php` and `$png_cdn`/`$svg_cdn` in `tests/phpunit/tests/formatting/emoji.php` should be updated to reflect the new paths for the `w.org` CDN locations.
1. The Twemoji version queried in the `replace:emoji-regex` Grunt task found in `Gruntfile.js` should be updated to ensure the correct list of characters is retrieved.
1. Run `npm run grunt precommit:emoji` to update the list of entities and partials in `src/wp-includes/formatting.php`.
1. The `emoji` case within browserSupportsEmoji()` should be updated to test for a character in the most recently supported version of Emoji to ensure all characters are properly displayed.
1. When a new flag is added or adjusted, the conditions used to the browser properly supports the latest version of Emoji in ``src/js/_enqueues/lib/emoji-loader.js` should be examined.
  - When a new letter locale flag is added, there is a check that should be updated to replace the previous, most recent one (currently Sark as of Emoji 16/[60227]).
  - There may be additional edge cases that warrant new checks. For example, England is a country within the United Kingdom and does not have a two letter locale. It's character sequence is represented by `(black flag emoji + [G] + [B] + [E] + [N] + [G])`.
  - The transgender flag is the `(white flag emoji + transgender symbol)` combined with either a ZWJ or zero-width space.
1. The assertions performed in `Tests_Formatting_Emoji::test_wp_emoji_list_returns_data` are updated to reflect the update being applied.

Other notes:
- The Twemoji library was previously listed as an npm dependency. This changed in [55186] because of the addition of some WordPress specific code to ensure that Emoji replacement does not happen within any element containing the `wp-exclude-emoji` class.
- Testing an update to Twemoji prior to the CDN can be done using the [https://wordpress.org/plugins/local-twemoji/ Local Twemoji plugin], or by changing the CDN paths to use the raw content URL from GitHub (ie. https://raw.githubusercontent.com/jdecked/twemoji/v17.0.2/assets/72x72/1f004.png provided the release has been tagged, or https://raw.githubusercontent.com/jdecked/twemoji/388f518b756404152f128a3539f5e7f9a6f1ebd6/assets/72x72/1f004.png using the full-length SHA value that points to the commit updating the library to the next version).

Some of the steps above can and should be automated using a build task to help prevent mistakes when upgrading the library. For example, logic can be added to the `precommit:emoji` task to insert the two WordPress specific changes from [55186] into the final version of the file that's shipped in WordPress. Then, the package can be re-added as to the list of `dependencies` in the `package.json` file, and a new `emoji-upgrade` Grunt task could:
- Update the library to the latest version (if there is one).
- Update the version reference in the `precommit:emoji` Grunt task.
- Perform the `precommit:emoji` Grunt task."	desrosj
	62197	Introduce testing workflow for the local Docker environment		Build/Test Tools		normal	normal	Future Release	feature request	new	has-patch	2024-10-09T18:19:34Z	2024-12-05T18:33:06Z	"Currently, the PHPUnit test workflows rely on the local Docker environment, so it's tested as a part of that process. However, it's likely that this could change in the future, and there are conditions that are not currently covered by that workflow (running on Windows), and some commands for the environment that are not tested (`env:logs`, `env:restart`, etc.).

A new workflow should be created for confirming the local Docker environment continues working when related changes are made."	desrosj
	66361	Add Ipsum to the Performance Tests		Build/Test Tools		normal	normal	7.3	task (blessed)	new	has-patch	2026-10-22T02:50:03Z	2026-11-03T15:29:54Z	"The performance test run against a baseline of an older version of WordPress.

As of the 7.2 release, none of these previous versions have the Ipsum default theme available in order to perform performance testing of the default theme.

Once WordPress 7.2 is release and trunk is WordPress 7.3, Ipsum can be added to the performance test suite.

Previously #62148"	peterwilsoncc
	54334	E2E tests for Uploading New Version of Themes & Plugins		Build/Test Tools		normal	normal	Future Release	task (blessed)	new	has-patch	2021-10-28T16:57:28Z	2026-11-03T00:43:45Z	"This is the feature of showing notice when uploading a new version of an already installed theme/plugin

This ticket is to add E2E test for this feature"	juhise
	42093	Improve handling of SUBDOMAIN_INSTALL test coverage	jeremyfelt	Build/Test Tools		normal	normal	Future Release	task (blessed)	assigned	needs-unit-tests	2017-10-04T18:55:45Z	2023-10-20T14:15:29Z	"We have a bunch of tests that run (or are skipped) based on `is_subdomain_install()`, but our Travis CI configuration never runs the tests in a subdomain configuration.

To run the tests now, you need to setup the environment manually. In its current state, 7 tests fail:

{{{
1) Tests_Multisite_Site::test_created_site_details
2) Tests_Multisite_Site::test_new_blog_url_schemes with data set #0 ('https', 'https', false)
3) Tests_Multisite_Site::test_new_blog_url_schemes with data set #1 ('http', 'https', false)
4) Tests_Multisite_Site::test_new_blog_url_schemes with data set #2 ('https', 'http', false)
5) Tests_WP_oEmbed::test_wp_filter_pre_oembed_result_multisite_sub_samesub
6) Tests_WP_oEmbed::test_wp_filter_pre_oembed_result_multisite_sub_othersub
7) Tests_WP_oEmbed::test_wp_filter_pre_oembed_result_multisite_preserves_switched_state
}}}

The first is a result of our site factory only creating new subdirectory sites. I believe the `test_new_blog_url_schemes` should be skipped for `is_subdomain_install()`, but I haven't verified. I'm not sure yet what the issue is with the oEmbed tests.

I'd like to:
* Clean up the existing tests so that they pass.
* Determine a good way of running these in our Travis CI configuration.

It'd be nice *not* to run the entire set of core/multisite tests again just to account for this. Hopefully there's a creative approach to run only the subdomain specific tests.

Previously: #36567, #36566.
"	jeremyfelt
	66212	Tests: Replace mock builder methods removed in PHPUnit 10 and 12		Build/Test Tools		normal	normal	Future Release	task (blessed)	new	has-patch	2026-09-29T21:38:35Z	2026-09-29T23:27:13Z	"Split from #62004.

PHPUnit 10 removed `setMethods()` and `withConsecutive()`. PHPUnit 12 removed `getMockForAbstractClass()`. Trunk still uses them:

 * `setMethods()`: 23 calls in 10 files, in `admin/`, `filesystem/wpFilesystemDirect/`, `includes/`, `pomo/` and `rest-api/`
 * `withConsecutive()`: 7 calls in `admin/wpUpgrader.php`
 * `getMockForAbstractClass()`: 2 calls, in `admin/wpPrivacyRequestsTable.php` and `widgets/wpWidgetMedia.php`

The replacements must keep working on PHPUnit 9. For `setMethods()`, himanshupathak95 wrote one approach in https://github.com/WordPress/wordpress-develop/pull/11844 (commit `7e451a013e`): call `onlyMethods()` when it exists and fall back to `setMethods()`."	lancewillett
	59851	test for send_frame_options_header		Build/Test Tools		normal	normal	Awaiting Review	task (blessed)	new	has-patch	2023-11-08T21:52:52Z	2026-10-31T21:19:26Z		pbearne
	62721	Bundled themes: replace strip_tags() with the more comprehensive wp_strip_all_tags()		Bundled Theme		normal	normal	Future Release	defect (bug)	new	has-patch	2024-12-20T09:44:31Z	2025-05-27T19:49:40Z	"There is a PHPCS error i.e.
strip_tags() is discouraged. Use the more comprehensive wp_strip_all_tags() instead."	pitamdey
	46802	Twenty Eleven: Dark Mode Featured Post gradient overlay is overlapping		Bundled Theme		normal	normal	Future Release	defect (bug)	assigned	has-patch	2019-04-04T18:48:57Z	2026-10-27T15:03:51Z	While reviewing #46770 @desrosj noticed that the gradient overlay on `.featured-post .feature-image.small:after` is 10px lower than it should be while in the `Dark Color Scheme`. It becomes very noticeable due to the fact that the background it overlaps is a dark grey, while the gradient overlay is black. See screenshot	ianbelanger
	66192	Twenty Fourteen: Featured tag is not hidden in post tag lists on the front end		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-09-26T11:32:16Z	2026-09-26T11:43:20Z	"When Twenty Fourteen's Featured Content option ""Don't display tag on front end"" is enabled, the featured tag is still displayed in a post's tag list on the front end (e.g. the tag links under a single post).

=== Steps to Reproduce
1. Activate Twenty Fourteen.
2. Appearance > Customize > Featured Content: set the tag name to `featured` and enable ""Don't display tag on front end"".
3. Create a post with the tags `featured` and another tag, then publish.
4. View the post on the front end.

=== Expected Results
The `featured` tag is hidden from the post's tag list.

=== Actual Results
The `featured` tag is shown in the post's tag list.

=== Cause
`Featured_Content::hide_the_featured_term()` (filter on `get_the_terms`) removes the matching term with:

{{{
unset( $terms[ $term->term_id ] );
}}}

The array returned by `get_the_terms()` is indexed from 0, not keyed by term ID, so the featured tag stays in the list. Worse, if the post has more tags than the featured tag's ID, a different, unrelated tag is removed instead (e.g. featured tag ID 3 on a post with 4+ tags hides the 4th tag).

The sibling method `hide_featured_term()` (filter on `get_terms`) already uses the loop index correctly:

{{{
unset( $terms[ $order ] );
}}}

=== Proposed Fix
Use the loop index in `hide_the_featured_term()` as well:

{{{
unset( $terms[ $order ] );
}}}

I tested this locally (WordPress 7.2-alpha-63166-src, PHP 8.3.33): with the fix, the featured tag is hidden on the front end when the option is enabled, and still shown when the option is disabled.

Found while testing #64882 (a different issue in the same file). I'll submit a PR.
"	devang100
	66334	Twenty Fourteen: Lato font lacks letters for Turkish and other Latin-script languages (requires update)		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-18T03:04:41Z	2026-10-18T03:11:26Z	"Twenty Fourteen has its own copy of the Lato font in `fonts/lato/`. The file `fonts/font-lato.css` loads these font files. The font files are Lato version 1.104 ""Western+Polish"". These files do not have many letters of Latin-script languages.

== Problem 1: Text shows letters from two fonts ==

When a letter is not in Lato, the browser uses a different font for that letter. The letter then looks heavier, or it has a different shape. Refer to demo.png.

This occurs on sites in these languages. Their translations keep the Lato font on, but Lato 1.104 does not have all their letters:

||= Locale =||= Letters that Lato 1.104 does not have =||
|| sk_SK || `č ď ĺ ľ ň ŕ ť` (and capitals) ||
|| hr || `č đ` (and capitals) ||
|| ro_RO || `ă ș ț` (and capitals) ||
|| hu_HU || `ő ű` (and capitals) ||
|| lv || `ā č ē ģ ī ķ ļ ņ ū` (and capitals) ||
|| lt_LT || `č ė į ų ū` (and capitals) ||
|| vi || `ă đ ơ ư` and the tone marks ||

This also occurs on sites in any language that show names or text in these languages.

== Problem 2: Some languages do not get the theme font ==

The theme has a translatable switch: `_x( 'on', 'Lato font: on or off', 'twentyfourteen' )`. Because of the missing letters, these translations set the switch to `off`:

||= Locale =||= Letters that Lato 1.104 does not have =||
|| tr_TR || `ğ ş İ` (and capitals) ||
|| az || `ə ğ ş İ` (and capitals) ||
|| cs_CZ || `č ď ě ň ř ť ů` (and capitals) ||
|| sl_SI || `č` (and capital) ||
|| bs_BA || `č đ` (and capitals) ||
|| eo || `ĉ ĝ ĥ ĵ ŝ ŭ` (and capitals) ||

Sites in these languages do not load a webfont. The CSS stays `font-family: Lato, sans-serif`, thus each visitor sees a different font:
 * Most visitors see the system font, not Lato. Thus, the design of the theme in these languages is different from the design in other languages.
 * Visitors that have a Lato font on their computer see that font. The result depends on the installed version. On my site (tr_TR), the post titles (weight 300) were very thin. Refer to site-no-webfont.png and site-lato2-webfont.png.

== Proposed fix ==

 1. Replace the font files with Lato version 2.x (latofonts.com, SIL OFL 1.1). Lato 2.015 has all the letters in the two tables above.
 2. Keep the same font family name, font weights (300, 400 and 700, normal and italic, and 900) and file names.
 3. After the update, the translation teams can change the switch back to `on`.

== Evidence ==

 * demo.png: Turkish text in Lato 1.104 (as the theme loads it) and in Lato 2.015.
 * site-no-webfont.png: a post title on a tr_TR site, without a webfont.
 * site-lato2-webfont.png: the same post title with Lato 2.015 as a webfont.
 * The switch values come from the current Twenty Fourteen language packs (api.wordpress.org/translations/themes/1.0/?slug=twentyfourteen).

Related tickets: #29690 (latin-ext subset for Polish), #55985 (self-hosted fonts), #63964 (example of an update to a bundled font)."	canburak
	60872	Twenty Nineteen : Read More Block Text Decoration is not working properly		Bundled Theme		normal	normal	Future Release	defect (bug)	new	changes-requested	2024-04-01T11:06:10Z	2024-09-10T05:13:15Z	In the Twenty Nineteen theme when we add the Read More Block then there is no text decoration on the editor side but on the front, it is showing text decoration underlined. So it is not the same in both the end.	pitamdey
	46215	Twenty Nineteen: Aligning table to center not working on front end		Bundled Theme	5.0.3	normal	normal	Future Release	defect (bug)	new	changes-requested	2019-02-08T12:36:18Z	2024-08-11T13:44:00Z	"When i add **Table block** in editor and assign Alignment ""Center"" from the toolbar it's working properly in backend but it's not working properly in frontend."	iamjaydip
	45750	Twenty Nineteen: Bug in the menu on mobile devices; only partially visible desktop version of the menu sometimes shown instead of fullscreen mobile menu		Bundled Theme	5.0	normal	normal	Future Release	defect (bug)	new	has-patch	2018-12-23T11:35:44Z	2026-10-25T16:01:45Z	When I click on the menu icon on websites (I've tried multiple websites, including uncustomized new installs) with the Twenty Nineteen theme, using a mobile device (iPhone 5s), it opens the mobile (fullscreen) version of the menu about half the time, but it otherwise opens the desktop version of the menu (non-fullscreen) which is only partially visible on a mobile device and not possible to use properly. I experienced this problem with the 5.01 and 5.02 versions of WordPress and the 1.0 and 1.1 versions of Twenty Nineteen.	jklv
	45796	Twenty Nineteen: Mobile menu needs improvement for navigating on touchscreen via keyboard		Bundled Theme	5.0	normal	normal	Future Release	defect (bug)	new		2018-12-30T19:32:14Z	2026-10-31T09:18:32Z	"Copied over from https://github.com/WordPress/twentynineteen/issues/723#issuecomment-450173083 (hattip @afercia):

When the ""more"" menu is expanded on a touchscreen device, there are several hidden tab stops that cause issues when navigating the site via keyboard. These are:

* hidden sub-menu items are still focusable
* all the links in the page are still focusable

When the menu is open it's still possible to tab away from the menu and navigate with the keyboard through all the focusable elements in the page.

If the intent is to show a full-screen menu, the menu should behave like a modal and tabbing should be constrained within the modal."	laurelfulford
	45901	Twenty Nineteen: On single posts with featured images, tall menus appear clipped	joedolson*	Bundled Theme		normal	normal	7.3	defect (bug)	accepted	has-patch	2019-01-10T14:56:59Z	2026-10-27T18:33:23Z	"When viewing posts with featured images on desktop screens, tall menus are contained only within the featured image/header area. Overflow is cut off: 

[[Image(https://cldup.com/qMVpzNV5XH.thumb.png)]]

A fix (removing `overflow: hidden;` from `.site-header.featured-image`) was pursued over on the Twenty Nineteen Github, but it led to problems in Internet Explorer:

https://github.com/WordPress/twentynineteen/pull/724

---

Originally reported on the Twenty Nineteen GitHub repository: 

https://github.com/WordPress/twentynineteen/issues/720
"	kjellr
	45991	Twenty Nineteen: Post headings are overflowing the content area		Bundled Theme	5.0.3	normal	normal	Future Release	defect (bug)	new	has-patch	2019-01-15T10:11:02Z	2025-10-27T20:23:45Z	"Post titles are overflowing the content area.
In Twenty Seventeen the following code in style.css prevents titles from overflowing the content area. This code should be added to Twenty Nineteen as well.   

{{{
#page {
    word-wrap: break-word;
}
}}}
"	Dejan85
	63623	Twenty Nineteen: Pullquote block does not show border-color presets on front end		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-06-26T13:35:51Z	2025-07-14T09:07:50Z	"Steps to reproduce the issue :-
1. Activate Twenty Nineteen theme.
2. Choose Pullquote block.
3. Add some text.
4. Choose border width, color and style.

Now check your applied color is appeared in editor side but in front side choosen color is not applied."	nidhidhandhukiya
	60621	Twenty Nineteen: Search block lacks styling in the editor		Bundled Theme	5.8	normal	normal	Future Release	defect (bug)	new	changes-requested	2024-02-23T10:10:38Z	2025-01-09T06:16:32Z	"Steps to reproduce the issue :-
1. Activate Twenty Nineteen theme.
2. Choose Search block.


Compare the page in both editor and front side.
You can able to see button default background color is different and input box default font-size and height is also different.

I have attached video for better understanding.
Video URL :- https://share.cleanshot.com/cM956rcv66tqc9MYYw8J"	nidhidhandhukiya
	46158	Twenty Nineteen: Slight flash of desktop menu when closing mobile menu		Bundled Theme	5.0.3	normal	minor	Future Release	defect (bug)	new		2019-01-31T19:45:21Z	2024-06-03T22:02:17Z	"Moved over from the discussion on #45905:

When using Twenty Nineteen on a mobile device, you sometimes get a brief flash of the desktop menu when closing the mobile menu.

Steps to reproduce:

1. Start with a test site with a longer menu, so you have the `...` more button.
2. Tap on the `...` button on a mobile device.
3. Click the 'Back' button.

"	laurelfulford
	59924	Twenty Nineteen: The navigation block submenu button is unreadable		Bundled Theme		normal	normal	Future Release	defect (bug)	new	changes-requested	2023-11-17T15:42:25Z	2025-06-19T16:43:50Z	"The navigation block has an option called ""Open on click"" that is available when there is a submenu.
When the option is enabled, the parent menu item is a {{{<button>}}} element.
On the front of the website, this button inherits the background styles from the themes button CSS:

{{{
button:hover, button:hover, input[type=""button""]:hover, input[type=""reset""]:hover, input[type=""submit""]:hover {
	background: #111;
	cursor: pointer;
}
}}}

So when the themes default colors are used and someone hovers over the button, the background and text has the same colors, and the text is not readable.



== Testing instructions:
Activate Twenty Nineteen
Make sure that your WordPress installation has some content that you can place in the  navigation block, because you will need to create a submenu.

Create a new post or page.
Add a navigation block. In the block, select the inserter and add a link: this will be your parent menu item. Click on the link and select the option ""Add submenu"". Add a link.

Save.
Go to the front of the website.
Locate the navigation and hover over the link item that has the submenu.
Confirm that both the text and the background are dark grey, close to black.



"	poena
	45900	Twenty Nineteen: WordPress embed width does not match between front and back end		Bundled Theme	5.0.2	normal	normal	Future Release	defect (bug)	new	dev-feedback	2019-01-10T14:28:39Z	2024-08-25T11:21:15Z	"As originally reported by @bph on the Twenty Nineteen GitHub repository: 

https://github.com/WordPress/twentynineteen/issues/736

It's possible this applies to more types of embeds as well. 

----

**Editor Screenshots**

Normal
[[Image(https://cldup.com/BHgla9VUPO-1200x1200.png)]]

Wide
[[Image(https://cldup.com/Ux-6Cf5s92-1200x1200.png)]]

Full
[[Image(https://cldup.com/aHoyAtD_gQ-3000x3000.png)]]

----

**Front End Screenshots:** 

Normal
[[Image(https://cldup.com/3qmWq9UaLu-3000x3000.png)]]

Wide
[[Image(https://cldup.com/3qmWq9UaLu-3000x3000.png)]]

Full
[[Image(https://cldup.com/OeugId-DEO-3000x3000.png)]]"	kjellr
	46262	Twenty Nineteen: odd content_width in theme		Bundled Theme	5.0	normal	normal	Future Release	defect (bug)	new		2019-02-16T17:54:33Z	2024-08-25T14:28:48Z	"The global value $content_width is set to 640px in Twenty Nineteen. I can't see anywhere that this value even makes sense. Any text within an article is in a box 932px wide, and the posts themselves are in a container that is 1524px.

Now, what does it matter? The theme displays things correctly via CSS, but this value is used by image optimization features in Jetpack and EWWW Image Optimizer (possibly others). The result is that we have 640px images (roughly) displaying in containers that are at least 932px. Best I can tell, Twenty Nineteen will display them at whatever size the user chooses: large=1024px, while full-width is 1905px, and wide-width is 1404px.

Perhaps there is information from Gutenberg itself that can be leveraged by these plugins, but setting content_width to a more sensible default would be a good start."	nosilver4u
	62787	Twenty Nineteen: sanitize output of twentynineteen_custom_colors_css()		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-01-08T13:03:18Z	2025-01-10T05:53:06Z	"In theme Twenty Nineteen , I can see one PHPCS Warning in `functions.php` file i.e. 
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'twentynineteen_custom_colors_css'

Here : 
{{{
<style type=""text/css"" id=""custom-theme-colors"" <?php echo is_customize_preview() ? 'data-hue=""' . absint( $primary_color ) . '""' : ''; ?>>
		<?php echo twentynineteen_custom_colors_css(); ?>
	</style>
}}}
"	pitamdey
	46055	Twenty Seventeen: Blockquotes aligned right are not rechecked when widgets are added in the Customizer		Bundled Theme		normal	normal	Future Release	defect (bug)	new	has-patch	2019-01-21T22:02:28Z	2026-08-31T07:52:21Z	"While working on testing #40103 using the Customizer I discovered that when a widget is added, removed, or updated in the sidebar Twenty Seventeen does not recheck that the sidebar is empty enough to push the blockquote to the right.

To reproduce:

- Create a post with a blockquote two or three paragraphs down the page.
- Give the blockquote the `alignright` class.
- Remove widgets from the sidebar so that there is only one (none works too).
- Open the Customizer.
- You should see the [https://cldup.com/ygEYYBp6Bv-3000x3000.png example image posted] on #40103.
- Add or change widgets in the sidebar to make the height of the sidebar pass the blockquote.

The content will overlap the blockquote and it will not be pushed back into the content area as it should."	desrosj
	53551	Twenty Seventeen: List based widgets need style adjustments in the widget editor		Bundled Theme	5.8	normal	normal	Future Release	defect (bug)	new		2021-06-29T13:15:32Z	2024-06-03T22:04:22Z	"In Twenty Seventeen, list based widgets need some styling adjustments in the widget editor to better match how they are displayed on the front end.

- The archives and categories widgets are displaying list bullets.
- The recent posts, recent comments, archives, and categories widgets are missing the top/bottom borders.
- The user display and post names in the recent comments widget should be bold."	desrosj
	56073	Twenty Seventeen: Pullquote Block: Color and Font size issue		Bundled Theme	6.0	normal	normal	Future Release	defect (bug)	new	changes-requested	2022-06-26T11:57:58Z	2024-07-01T21:03:05Z	"In the Twenty Seventeen theme, when we add a pullquote block and color to text, the color is not reflected in the editor, but will be properly shown on the frontend. Also, changing the font size doesn't work, not reflected in the editor and forntend.

Steps to replicate:
1.Activate Twenty Seventeen theme
2. Insert pullquote block
3. Add text
4. Add color and change font size"	nitman43
	52716	Twenty Seventeen: consider style updates for box-shadow on linked images		Bundled Theme	5.0	normal	minor	Future Release	defect (bug)	assigned	has-patch	2021-03-04T20:32:41Z	2024-07-08T11:30:23Z	"== Origin
User report: https://github.com/WordPress/gutenberg/issues/22187

That report was only about the Media & Text block specifically but looking into I recognized it as a general issue with the styles from Twenty Seventeen and applicable to other blocks. 

== Steps to replicate

1. Add any block that supports inner blocks and background colors (Group, Columns)
2. Add a background color to the block 
3. Inside the block, add any/all of the following blocks: Image, Gallery or Media & Text
4. Add a link to the inner block (Gallery block gets links via a setting the Inspector (block settings sidebar)

== Results

* In each block there is a box-shadow on the images
* In the Gallery block the box-shadows double-up between images
* In a Media & Text block with a background-color of its own, the box-shadow expands beyond the block background area

== Expected

Consistency between what is seen in the Block Editor and the frontend (i.e. Either without box-shadows on the frontend or with box-shadows in the Editor).

== Screenshots

=== Blocks with linked images
||= Block editor =||= Frontend =|| 
|| image pending || image pending ||

=== Inline images with links
Inline images are also styled differently between editor/frontend.

||= Block editor =||= Frontend =|| 
|| image pending || image pending ||



"	presstoke
	61723	Twenty Sixteen: Image Block Alignment Offset (Left/Right)		Bundled Theme		normal	normal	Future Release	defect (bug)	new	changes-requested	2024-07-22T14:57:44Z	2024-09-03T15:11:32Z	"After the 6.6 updated, floated images in Twenty Sixteen are offset:  `margin-left: -40%;`


**Steps to reproduce**

1. Add a new post through this path: My Site → Posts → Add New
2. Add texts with ""Paragraph"" block.
3. Add an image with ""Image"" block.
4. Resize the image, and change alignment to either right or left.
5. Save and preview to see the issue on the live page or preview.
6. What you expected to happen
7. I will see the image alignment correctly on the live/preview page.

**What happened**

The image is slightly shifted to the left, causing text to overlap with the image when right-aligned, and creating a larger gap between the text and the image when left-aligned.

This was originally reported in https://github.com/Automattic/wp-calypso/issues/92833"	mrfoxtalbot
	62657	Twenty Sixteen: Latest Posts block with a background color has padding in the editor but not on front		Bundled Theme	6.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-12-06T05:42:13Z	2025-05-12T01:38:45Z	"Hello Team,

I have checked ""**Latest Post Block**"" and I have found some spacing issue on front-end side when we change its background color.

I think that there should be some space when we change block background color, Same like editor.

Here, I have provided its screenshots for references.

Thanks,"	viralsampat
	63425	Twenty Sixteen: Quote block citation font size does not change with the block settings		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-05-09T11:25:28Z	2025-05-10T14:06:49Z	"Steps to reproduce the issue:-
1. Activate Twenty Sixteen theme.
2. Choose Quote block.
3. Add some text and ciation text.
4. Choose font size to s size or xl.

You can able to see that citation text font size is not changed and it looks not good when small size is choosen."	nidhidhandhukiya
	62965	Twenty Ten: Details block having font-size issue in editor side		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-02-14T11:27:22Z	2025-02-18T16:19:04Z	"Steps to reproduce the issue :-
1. Activate Twenty Ten theme.
2. Choose Details block.
3. Add some text.

You can able to see that hidden text font-size is different in editor side it is working fine in front side but editor side font-size is different."	nidhidhandhukiya
	62918	Twenty Twelve :- Calendar block having issue with font-size in editor and frontend.		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-02-07T11:16:46Z	2025-02-14T06:11:14Z	"Steps to reproduce the issue:-
1. Activate Twenty Twelve theme.
2. Choose Calendar block.
3. Apply changes in font-size,

Now check in editor and frontend your applied changes is not applicable in both editor and frontend.
"	nidhidhandhukiya
	57415	Twenty Twenty One: Text color not reflected backend and Front side in media & text block		Bundled Theme	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-01-03T13:34:51Z	2024-04-05T18:56:08Z	"In Twenty Twenty One Theme: when we add a media & Text Block on the 
Editor side and add the Text after apply the link on the Text and change color to the text but changes are not reflected backend and Front side.

Steps to replicate:
1: Activate the Twenty Twenty One Theme
2: media & text block
3: Add Image and Text
4: add Link on the Text after change color

For better understanding, I provide a video attachment link.
Video link: https://www.loom.com/share/ceea0db29302412b8bc2b3fb8dcea151

 
"	umesh84
	59957	Twenty Twenty and Twenty Twenty-One: Details block padding issue when setting its alignment to full-width		Bundled Theme	6.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-11-24T06:34:44Z	2026-10-22T15:03:07Z	"Hello Team,

I have worked on the **""Twenty Twenty""** theme and found that the **""Twenty Twenty""** theme contains an issue for the ""Details"" block. The padding is not displaying properly on the back-end side. The front-end side looks good. When we set **""Full Width""** from the components toolbar group

Here, I have provided screenshots:

**Front-end:**

[[Image(https://share.cleanshot.com/5lDkjpfwVVwwxFRlNvwl)]]

**Back-end:**
[[Image(https://share.cleanshot.com/zdf5SNvpv7kzrHRL9F8N)]]

Thanks,"	viralsampat
	63513	Twenty Twenty-Five: Copy for query loop results is confusing on the home page		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-06-02T11:19:09Z	2026-10-21T15:14:54Z	"On the home page of the theme the wording for when the query block has no posts is referring to search results and prompting you to choose different keywords. This doesn't make sense outside of the search results template and it's confusing for users. We should change to a more generic text or simply duplicate the pattern for both use cases


To test, go to the Site Editor and select the Blog home template, scroll all the way to the footer and you'll see the text:


{{{
Sorry, but nothing was found. Please try a search with different keywords.
}}}


"	onemaggie
	61478	"Twenty Twenty-One : Excerpt Block ""Read More"" text color is not showing on frontend"		Bundled Theme		normal	minor	Awaiting Review	defect (bug)	new	has-patch	2024-06-21T06:49:10Z	2025-05-12T01:38:22Z	"In Twenty Twenty-One, Excerpt Block ""Read More"" button text colour is not showing on the frontend while on the backend it's working fine
Also, I have checked other themes, they seem to be working fine in them."	pranitdugad
	53094	Twenty Twenty-One: Dark mode issue with cover block colors		Bundled Theme	5.7.1	normal	normal	Future Release	defect (bug)	new		2021-04-27T00:41:38Z	2024-07-22T12:13:43Z	Dear team, I had chosen cover block from block editor, selected background color as cover color, select border for the cover block, add heading. Now, when I see this page in dark mode, the cover block is not converting the dark background. kindly try et your en[alakh.co.in]d see	kpdaa
	60993	Twenty Twenty-One: Preformatted block font size is smaller in the editor than on the front end		Bundled Theme	5.6	normal	normal	Future Release	defect (bug)	new	has-patch	2024-04-11T12:59:21Z	2025-07-02T14:07:59Z	"Hello,

I have reviewed the **""Preformatted block""** and found that its font-size is not same in editor & front-end sides. I have checked this issue for **""Twenty Twenty""** and **""Twenty Twenty-One""** themes.  I think that it should be same on both editor & front-end sides.

**Here, I have attached its screenshots.**

**Environment info:**

----

WordPress version: WordPress 6.5.2 running,
Themes:
- Twenty Twenty-One Version: 2.2
- Twenty Twenty Version: 2.6
Browser: Google Chrome, Version 123.0.6312.107 (Official Build) (arm64)
Device: MacBook Air M1
OS: macOS 14.4.1 (23E224)
Gutenberg plugin: Version 18.1.0

Thanks,"	viralsampat
	55581	Twenty Twenty: Aligned images cannot be resized or are properly displayed		Bundled Theme	5.9.3	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-04-15T19:08:11Z	2026-03-21T06:21:48Z	"Steps to replicate:

1. Create a new page
2. Add content to it and make sure you have a paragraph block and an image block.
3. Align the block to the right and modify its size.

Two things will happen:

1. The size of the image is not respected.
2. The alignment is not the same(editor vs frontend)

This happens with the latest version of WordPress(5.9.3) and Twenty Twenty(1.9)"	robertghetau
	49929	Twenty Twenty: CSS issue for modal-menu.php		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-04-16T23:39:35Z	2024-04-15T20:12:11Z	"When the screen gets smaller, the following problems appear in the menu :
1. Toolbar moves away from the top of the page
2. the screen get scroll from bottom

this problem is in both LTR and RTL

http://s11.picofile.com/file/8394294584/InkedUntitled_2_LI.jpg"	Parvand
	62255	Twenty Twenty: Latest Posts blocks have no link hover effects in entry content		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-10-18T12:40:34Z	2026-01-16T10:58:51Z	"In Theme Twenty Twenty, 

The latest Posts Block has no hover effects like in another theme

I have added a patch for it"	pitamdey
	61377	Twenty Twenty: Login/out block font family is different in the editor when added to a post		Bundled Theme	6.5.3	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2024-06-05T10:11:35Z	2024-06-05T16:59:18Z	"Hello,

I have reviewed ""**Login/out**"" block and found that its font-family is different in both(**Editor & Front-end**) sides.

I think that it should be same on both sides.

Here, I have attached its screenshots:

Thanks,"	viralsampat
	58495	Twenty Twenty: Pullquote block issues with font weight and italics		Bundled Theme	6.2.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-06-08T13:33:24Z	2024-04-30T07:34:46Z	"Pull Quote block citation on Twenty Twenty theme has these issues:

1. Pull Quote citation is always shown in Italics in Block Editor but normal in Frontend.
2. Pull Quote is shown in Bold in Frontend even if not selected in Block Editor. Even selecting options from Appearance has no effect on the frontend. 
3. If you make the citation Italic, it becomes Italic & bolder. Then if you select Bold, it becomes bold. But if you select Bold first and then Italic, font becomes bolder and not bold. The HTML element depends on the first chosen option.  

How to Replicate:
1. Activate the Twenty Twenty theme
2. Insert Pull Quote block and enter quote and citation."	jyolsna
	62289	Twenty Twenty: Search block looks different in editor and front end.		Bundled Theme	6.6.2	normal	normal	Future Release	defect (bug)	new	has-patch	2024-10-23T18:25:34Z	2026-10-27T11:53:55Z	"Steps to reproduce the issue:-
1. Choose Search block.
2. In editor and front side both you can able to see search label font is different and also input styling is different."	nidhidhandhukiya
	63072	Classic bundled themes: Border support tracking issue		Bundled Theme		normal	normal	Future Release	enhancement	new		2025-03-07T11:13:01Z	2026-08-30T17:22:13Z	"This tracking issue replaces https://core.trac.wordpress.org/ticket/55974, with blessing from the testing team, because the original ticket was becoming too difficult to follow.

The classic bundled themes are missing support for border options for blocks.
The border options include border color, width, style, and radius.

The options should be enabled by adding {{{add_theme_support( 'border' );}}} to theme's setup function in functions.php.

There are other methods that could be used, but they enable more features than the border options.
By using this theme support, the scope of the task can be limited to the borders.

**Each classic bundled theme should be updated using a separate Trac ticket and pull request.** 
The previous ticket showed that the conversation easily got out of hand when many themes were discussed at the same time.


The respective Trac tickets will be listed here once they are opened.


== Status

Twenty Ten:
Twenty Eleven:
Twenty Twelve:
Twenty Thirteen:
Twenty Fourteen:
Twenty Fifteen:
Twenty Sixteen:
Twenty Seventeen:
Twenty Nineteen:
Twenty Twenty:
Twenty Twenty-One: https://core.trac.wordpress.org/ticket/63075"	poena
	64068	Replace Pullquote block in theme patterns	utsavladani	Bundled Theme		normal	normal	Future Release	enhancement	assigned	has-patch	2025-10-02T13:08:26Z	2026-02-18T07:31:06Z	"The **Pullquote** block will be deprecated soon. It would be good to replace its usage with the **Quote** block across all themes, templates, patterns, and so on.

Check this GitHub issue for more details: https://github.com/WordPress/gutenberg/issues/11610"	utsavladani
	62744	Twenty Seventeen: Quote block Appearance settings do not affect citation		Bundled Theme		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-12-27T11:23:16Z	2026-09-29T08:40:05Z	"Steps to reproduce the issue :-
1. Activate Twenty Seventeen theme.
2. Choose Quote block.
3. Add some text and citation.
4. Now change the font family from appearance.

Yu can able to see that your applied font family only works for the text and not for the citation text both the side editor and front."	nidhidhandhukiya
	54171	Twenty Twelve: Replace frontend jQuery usage with Interactivity API	flixos90	Bundled Theme		normal	normal	Future Release	enhancement	assigned	has-patch	2021-09-23T19:10:28Z	2026-07-06T19:48:04Z	"Using jQuery for a few simple JS interactions in WordPress themes is a common performance problem, which is in most cases relatively straightforward to address: Vanilla JavaScript has for the better part of a decade included enough APIs that work across all popular browsers so that the remaining benefits of jQuery are around a few utility functions, that could be re-implemented in a few lines of code. Using jQuery for such simple use-cases results in around 80% more JS code being loaded in the frontend.

This ticket focuses on removing jQuery as a **frontend** dependency for Twenty Twelve - specifically the frontend, as for example in the Customizer jQuery is loaded anyway (and performance is a bit less of a concern there)."	flixos90
	63530	Twenty Twenty-Four: Increase padding for List block (when it has a border or background)		Bundled Theme		normal	normal	Awaiting Review	enhancement	new	has-patch	2025-06-04T19:05:23Z	2026-10-18T10:33:15Z	"Hello Team,

I have reviewed the ""**List**"" block in the **Twenty Twenty-Four** theme and noticed an issue: when switching the list style to ""**Ordered**"" and applying a border, the content overlaps.

It seems this could be resolved with some padding to improve spacing and layout consistency.

For better understanding, Here I have attached its video:

Thanks,"	viralsampat
	58662	Transients cannot contain non-ascii characters		Cache API	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-06-28T19:34:17Z	2023-06-28T19:34:17Z	"set_transient reference says:
* Transient name is expected to not be SQL-escaped. Must be 172 characters or fewer in length.
* Transient value must be serializable if non-scalar. Expected to not be SQL-escaped.

Making note of above, and trying to set transient value with plain text, but containing non-ascii characters, the function fails to save the transient.

Using simple preg_replace('/[^A-Za-z0-9 ]/','', <text string> )); solves the problem, but the transient no longer contains the original text string.

As far as I see, serialization or json encoding the text string does not help, as it would still contain non-ascii characters.

So, either the set_transient function should accept more complex value parameters, or documentation should state the limitation on the value parameter.

I understand this may also be due to underlying memcached, but I do not see any mention in WP_Object_Cache documentation either that there are any limitations for the value/data to be stored."	iarovuo
	55856	WP Cache stats size wrong?		Cache API		normal	minor	Future Release	defect (bug)	new	has-patch	2022-05-27T10:38:10Z	2024-06-05T20:46:09Z	"What is the size that gets reported there? (class WP_Object_Cache function stats())

Doesn't make much sense, as it seems random.
It's not the runtime cache group memory size, since you serialize it, so it's not the same as the memory footprint. What is it supposed to mean, bc right now its just a number without a meaning.
"	malthert
	59661	WP_Query::generate_cache_key  should consider changes to request via `posts_request_ids` filter.	thekt12	Cache API		normal	minor	Future Release	defect (bug)	assigned	needs-unit-tests	2023-10-17T15:10:17Z	2023-11-28T16:15:20Z	"In `WP_Query::get_posts()`, [https://github.com/WordPress/wordpress-develop/blob/781953641607c4d5b0743a6924af0e820fd54871/src/wp-includes/class-wp-query.php#L3175 $cache_key   = $this->generate_cache_key( $q, $new_request );] doesn't consider the possibility for changes to the request via [https://github.com/WordPress/wordpress-develop/blob/6.3/src/wp-includes/class-wp-query.php#L3310 posts_request_ids] filter.

This can result in cache collision.

For example we have one page doing `get_posts` with this filter,
and we have a different page that doesn't use the filter but does the same `get_posts`  with exactly same args. This will result in two different request to have same result. 

To give overview, `posts_request_ids`filter is used to modify final `post_ids` in a split operation. 


Solution is to have check for `has_filter( 'posts_request_ids' )`, serialize outcome from global `$wp_filter[ 'posts_request_ids' ]` and set to to `args` before cache_key is generated. Seralization  we also allow for the cases where just one of he array of filters set in `posts_request_ids` is modified. 


"	thekt12
	58411	When Object Cache Pro plugin is enabled		Cache API	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-05-26T03:32:24Z	2023-05-31T23:02:16Z	"{{{
function update_term_cache( $terms, $taxonomy = '' ) {
    $data = array();
    foreach ( (array) $terms as $term ) {
        // Create a copy in case the array was passed by reference.
        $_term = clone $term;

        // Object ID should not be cached.
        unset( $_term->object_id );

        $data[ $term->term_id ] = $_term;
    }
    wp_cache_add_multiple( $data, 'terms' );
}

PHP Warning:  Undefined property: stdClass::$term_id in /.../wp-includes/taxonomy.php on line 3801
[24-May-2023 11:53:21 UTC] objectcache.error: Cache key must be integer or non-empty string, empty string given (require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, WC_PB_Install::define_updating_constant, WC_PB_Install::is_update_pending, WC_PB_Install::must_update, WC_PB_Install::is_new_install, get_term_by, get_terms, WP_Term_Query->query, WP_Term_Query->get_terms, _prime_term_caches, update_term_cache)
}}}"	danidorad0
	54771	possible disagreement in the return types/values wp_cache_flush() and WP_Object_Cache:flush().		Cache API		low	normal	Awaiting Review	defect (bug)	new		2022-01-09T18:26:11Z	2022-01-11T03:37:47Z	"[https://developer.wordpress.org/reference/classes/wp_object_cache/flush/ WP_Object_Cache::flush()] always returns true.

[https://developer.wordpress.org/reference/functions/wp_cache_flush/ wp_cache_flush()]  returns the value of calling `WP_Object_Cache::flush()`.  But, the DocBlock of `wp_cache_flush()` lists the return as:

> True on success, false on failure.

Is this discrepancy just a mistake, or is it because of the possibility of an object caching plugin returning something different?"	pbiron
	44412	'pre_cache_alloptions' filter in wp_load_alloptions() in option.php cannot be hooked		Cache API		normal	normal	Future Release	enhancement	new	needs-docs	2018-06-20T12:47:32Z	2021-06-15T18:40:04Z	"Whenever wordpress loads, it fetches all options with the wp_load_alloptions() function in the option.php file. There is a filter in the function before sending it to the cache: {{{#!php
<?php
$alloptions = apply_filters( 'pre_cache_alloptions', $alloptions );
}}}.

However, there is no way to hook into this filter in the theme or plugin because the theme or plugin are loaded afterwards.

So the full array is always send to the cache.

We were having trouble with a site that loaded all of the options with autoload 'yes' and it crashed with a memory limit exhausted error because there were too many options.

An action needs to be added to hook into this filter or move the calling of this function some steps further after a theme or plugin is loaded."	redsnowcompany
	57743	Add `$found` parameter to `wp_cache_get_multiple()`		Cache API		normal	normal	Future Release	enhancement	new	has-patch	2023-02-17T04:09:25Z	2023-03-24T17:30:21Z	"`wp_cache_get()` includes the forth parameter `$found`. It's a boolean passed by reference to allow developers to determine whether the returned value `false` indicates a populated cache with the value `false`.

{{{#!php
<?php
wp_cache_set( 'ticket-57741', false );

$found = false;
$result = wp_cache_get( 'ticket-57741', '', false, $found );
var_dump( $found, $result );
// true, false

$found = false;
$result = wp_cache_get( 'invalid-key', '', false, $found );
var_dump( $found, $result );
// false, false
}}}


`wp_cache_get_multiple()` does not include a similar parameter and could benefit from one. Instead of been a boolean, it would be an array passed by reference.

At the conclusion of the function running, the `$found` array would be of the form:

{{{
array(
  'set-key' => true,
  'unset-key' => false,
)
}}}

"	peterwilsoncc
	28759	Cache API unit tests should verify public function, not WP_Object_Cache methods		Cache API		normal	normal	Future Release	enhancement	new	has-patch	2014-07-05T20:03:51Z	2022-07-08T15:06:37Z	"The public API for the WP object cache uses the global `wp_cache_*` functions. Traditionally, these functions are mapped to a class, `WP_Object_Cache`, that provides the logic for the cache through different class methods. The public API is then a wrapper for these methods. I think we should transition our unit tests to test the public API, especially as this makes it easier to test 3rd party caches against these tests. 3rd party object caches ''shouldn't'' be required to implement the `WP_Object_Cache` methods; they should only be required to implement the public functions.

Additionally, having these tests test the public API will help should we ever decide to change the `WP_Object_Cache` internals."	tollmanz
	60017	PHPunit test for wp_suspend_cache_addition		Cache API		normal	normal	Future Release	enhancement	new	has-patch	2023-12-05T23:18:35Z	2025-02-12T15:55:40Z		pbearne
	60015	PHPunit test for wp_suspend_cache_invalidation		Cache API		normal	normal	Future Release	enhancement	new	has-patch	2023-12-05T22:32:42Z	2025-02-12T15:55:44Z		pbearne
	59752	test for wp_cache_get_last_changed		Cache API		normal	normal	Future Release	enhancement	new	has-patch	2023-10-26T20:11:23Z	2026-05-07T16:20:44Z		pbearne
	57263	test for wp_suspend_cache_addition		Cache API		normal	normal	Future Release	enhancement	new	has-patch	2022-12-02T22:46:04Z	2026-11-04T20:00:49Z		pbearne
	57264	test for wp_suspend_cache_invalidation		Cache API		normal	normal	Future Release	enhancement	new	has-patch	2022-12-02T23:33:17Z	2026-11-03T00:27:30Z		pbearne
	63252	$tax_url with no path not accounted for in /wp-includes/canonical.php		Canonical	6.7.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-04-08T11:28:51Z	2025-04-08T11:52:48Z	"In the `redirect_canonical()` function in `/wp-includes/canonical.php`, on line 346 the `$tax_url` is obtained by ...

{{{#!php
<?php
$tax_url = get_term_link( (int) $obj->term_id, $obj->taxonomy );
}}}

... which can then be filtered with the `term_link` hook.

The `$tax_url` is then parsed on line 375 with ...

{{{#!php
<?php
$tax_url = parse_url( $tax_url );
}}}

So, if the `$tax_url` is filtered with the `term_link` hook such as the new URL doesn't have a path (such as ""https://example.com"") then the following errors are observed ...

{{{
[07-Apr-2025 19:45:25 UTC] E_WARNING: Undefined array key ""path"" in /wp-includes/canonical.php on line 383
[07-Apr-2025 19:45:25 UTC] E_DEPRECATED: basename(): Passing null to parameter #1 ($path) of type string is deprecated in /wp-includes/canonical.php on line 537
[07-Apr-2025 19:45:25 UTC] E_DEPRECATED: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/canonical.php on line 619
}}}

To fix this, line 377 needs to be changed from ...

{{{#!php
<?php
							if ( ! empty( $tax_url['query'] ) ) {
								// Taxonomy accessible via ?taxonomy=...&term=... or any custom query var.
								parse_str( $tax_url['query'], $query_vars );
								$redirect['query'] = add_query_arg( $query_vars, $redirect['query'] );
							} else {
								// Taxonomy is accessible via a ""pretty URL"".
								$redirect['path'] = $tax_url['path'];
							}
}}}

... to ...

{{{#!php
<?php
							if ( ! empty( $tax_url['query'] ) ) {
								// Taxonomy accessible via ?taxonomy=...&term=... or any custom query var.
								parse_str( $tax_url['query'], $query_vars );
								$redirect['query'] = add_query_arg( $query_vars, $redirect['query'] );
							} elseif (isset($tax_url['path'])) {
								// Taxonomy is accessible via a ""pretty URL"".
								$redirect['path'] = $tax_url['path'];
							} else {
								$redirect['path'] = '';
							}
}}}

This is observed with PHP v8.1 onwards.
"	domainsupport
	44559	Alias redirected when page is set as a homepage		Canonical	4.9.7	normal	normal	Awaiting Review	defect (bug)	new		2018-07-10T16:56:46Z	2018-07-10T16:56:46Z	"I have two domains:
- `example1.com` (hosting with WP installation)
- `example2.com` (only domain, alias to `example1.com`)

When I access `example2.com`, content for `example1.com` should be displayed, but instead of it, `example2.com` is redirected to `example1.com`.

But when I access particular page (or post) `example2.com/contacts`, everything works and content from `example1.com/contacts` is displayed (but not redirected).

It seems to me that problem is related only to homepage which is set as a `page_on_front`, see https://core.trac.wordpress.org/browser/tags/4.9.7/src/wp-includes/canonical.php#L177"	pavelevap
	46061	Canonical prevents accessing paginated results of feed-named tags		Canonical	2.7.1	normal	normal	Awaiting Review	defect (bug)	new		2019-01-22T05:41:38Z	2022-11-01T03:22:24Z	"Given a tag of the name 'rss' (or any of `(feed|rss|rdf|atom|rss2)`) Canonical will cause a redirect for a paginated result to an incorrect url lacking the 'rss' 

For example:
{{{
$ curl -Is http://wordpress.dev/tag/rss/page/2/ | grep Location
Location: http://wordpress.dev/tag/page/2/
}}}

This appears to be caused by https://core.trac.wordpress.org/browser/trunk/src/wp-includes/canonical.php?rev=43571&marks=297-302#L290

This was originally reported as https://meta.trac.wordpress.org/ticket/2945"	dd32
	64029	Canonical redirect on `/page/1/` forces HTTP instead of HTTPS behind proxy/CDN		Canonical	6.8.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-09-23T13:31:00Z	2026-09-28T15:52:23Z	"When WordPress handles canonical redirects for paginated archives, it forces `/page/1/` to `/`. 
The problem: if the site is running behind a proxy/CDN (e.g. Cloudflare), WordPress sometimes issues the redirect to `http://` instead of preserving the original `https://` scheme. 

This causes unnecessary redirect chains and breaks SEO performance.

Steps to reproduce:
1. Open `https://example.com/category/page/1/`
2. WordPress redirects to `http://example.com/category/`
3. Proxy/CDN enforces HTTPS → results in 2 or 3 chained redirects.

Expected result:
WordPress should preserve the HTTPS scheme when performing canonical redirects (or allow disabling `/page/1/ → /` canonicalization via a filter/setting).

Notes:
This has been discussed by many site owners using HTTPS-only setups. 
A core fix or an option in Settings would prevent extra redirect hops."	igor2021
	43274	Changing $(comments|feed)_base of WP_Rewrite causes errors because of hardcoded strings in redirect_canonical()		Canonical		normal	normal	Future Release	defect (bug)	new	needs-unit-tests	2018-02-09T21:11:37Z	2019-01-14T22:41:57Z	"When you change `$comments_base`/`$feed_base` for `WP_Rewrite` instance, URLs with that base will not work because `comments` and `feed` strings are hardcoded in a few places in `redirect_canonical()`. Changing these to use `$wp_rewrite->comments_base` and `$wp_rewrite->feed_base` respectively will fix this issue.

NOTE: When testing feed URLs, changing `feed` with `feed_base` in `example.com/feed/` will not work. Feed URLs work in two places: `example.com/(feed|rss2?|rdf|atom)` and `example.com/feed_base/(feed|rss2?|rdf|atom)` ([https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-rewrite.php?rev=42343#L860 see rules]). When you open `example.com/feed/` you match first rule where `feed` is type of feed. You need second rule to test it.

There is quick workaround though:

{{{#!php
add_action( 'after_setup_theme', function() {
	$GLOBALS['wp_rewrite']->feed_base = 'mycustomfeedbase';
	$GLOBALS['wp_rewrite']->feeds[] = 'mycustomfeedbase';
} );

add_action( 'parse_query', function( $q ) {
	if ( $GLOBALS['wp_rewrite']->feed_base == $q->get( 'feed' ) ) {
		$q->set( 'feed', 'feed' );
	}
} );
}}}

Don't forget to flush rewrite rules."	dimadin
	23074	Changing post's URL and then setting it back causes redirect loop (wp_old_slug_redirect)		Canonical	3.5	normal	major	Future Release	defect (bug)	reopened	has-patch	2012-12-29T00:44:50Z	2026-10-27T21:25:00Z	This morning, I changed the URL of one of my posts, but then changed my mind and set it back. When you change the URL of your post, WP automatically creates a redirect from the old page to the new page, which is good, but in this case it led to an unintended consequence: after I changed the link from A to B and then back to A, it set up a redirect from A to B and a redirect from B to A, causing anyone trying to access A or B to end up in a redirect loop between the two (or possibly it created a redirect loop from A to A; I'm not sure). It should check for such loops when you update the URL to avoid this problem.	vbuterin
	54758	Front page not embeddable when using a static page_on_front		Canonical		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-01-07T06:01:48Z	2022-01-07T09:11:15Z	"When a site is configured with a page_on_front, Canonical kicks in and redirects the user to the homepage.

This is caused by Canonical not being embed-aware.

As an example, the WordPress.org homepage should be embeddable:
{{{
$ curl -Is https://en-au.wordpress.org/embed/ | grep -E '^(HTTP|location)'
HTTP/2 301
location: https://en-au.wordpress.org/
}}}

The non-pretty embeds do however work, unfortunately WordPress doesn't link to these when rewrites are enabled:
{{{
$ curl -Is https://en-au.wordpress.org/?embed=1 | grep -E '^(HTTP|location)'
HTTP/2 200
}}}

After the PR attached to this ticket:
{{{
$ curl -ILs https://en-au.wordpress.org/embed/ | grep -E '^(HTTP|location)'
HTTP/2 200
}}}

The fix attached is a combination bugfix/enhancement, as I've fixed the bug by making canonical embed aware, so it redirects to the canonical embed location.

The PR isn't complete, as it appears to still fail on one of the test-cases I added, and appears to have altered (Potentially fixed?) the behaviour of another canonical test.

A more targeted fix would be to disable canonical when `is_embed()` is truthful."	dd32
	51916	Incorrect URL encoding and redirect in redirect_canonical		Canonical	5.5.3	normal	normal	Awaiting Review	defect (bug)	new		2020-12-02T13:50:46Z	2020-12-02T13:50:46Z	"1. Setup a site with pretty permalinks.
2. Visit a URL in the following format, where p=10 must be a valid post ID:
https://mywordpress.site/?p=10&a%26b%3dc=1
3. WordPress core will redirect you to a cannonical URL. However it fails to escape the URL query correctly and you end up here:
https://mywordpress.site/post-id-10-slug?a=b&c=1"	pavoleichler
	45459	Infinite Loop By redirect_canonical (canonical.php) due to mishandling of Port Information in URL creation/rebuilt		Canonical	4.9.8	normal	major	Awaiting Review	defect (bug)	new		2018-12-02T05:14:24Z	2018-12-06T22:30:32Z	"**Background**

Fresh install version 4.9.8 for a simple website (no SSL, using standard theme twentyseventeen). Standard installation went well without any hiccup.
However immediately after installation ""Too many redirect errors"" occurred using any browser.

**Infinite loop Symptoms**
* Happen on URL that required index.php e.g: http://[domain.com] , http://[domain.com]/ (with or without trailing slash)
* Full permalink URL such as: 
  * http://[domain.com]/2018/12/01/hello-world/ 
  * http://[domain.com]/category/uncategorised/
  will render without any problem
This symptom actually is actually has happened before in this particular server and all my other website on this server requiring the removal of redirect_canonical function.

Applied in functions.php of the themes file as follow:
{{{
remove_filter('template_redirect', 'redirect_canonical');
}}}

With the removal of redirect_canonical above, the infinite loop is mitigated. But I decided this time to try to pin out the real problem because removing canonicalization is not a very good thing for SEO.

**Investigation**
* This fresh install infinite loop happen in my server that uses ""reverse proxy"" setting using Nginx, i.e the requested url is passed around between reverse proxy and upstream server using http://[domain.com]:80 and http://[domain.com]:8080 (or any other arbitrary port)

* Trace the problem to canonical.php and catch the bug as follows
* Original snippet of canonical.php (in wp-includes)
{{{
530         if ( $do_redirect ) {
531                 // protect against chained redirects
532                 if ( !redirect_canonical($redirect_url, false) ) {
533                         wp_redirect($redirect_url, 301);
534                         exit();
535                 } else {
536                         // Debug
537                         // die(""1: $redirect_url<br />2: "" . redirect_canonical( $redirect_url, false ) );
538                         return;
539                 }
540         } else {
541                 return $redirect_url;
542         }

}}}

* Minor modification to catch the bug (reverse the logic in line 532 so it goes to the debug section and add $requested_url to be printed as well):
{{{
530         if ( $do_redirect ) {
531                 // protect against chained redirects
532                 if ( redirect_canonical($redirect_url, false) ) {
533                         wp_redirect($redirect_url, 301);
534                         exit();
535                 } else {
536                         // Debug
537                         die(""1: $redirect_url<br />2: $requested_url<br />3: "" . redirect_canonical( $redirect_url, false ) );
538                         return;
539                 }
540         } else {
541                 return $redirect_url;
542         }

}}}

* From the print out of the debugging, it is confirmed that the differences between the $requested_url and $redirect_url is causing the infinite loop: (i.e: the port "":80"" is missing in the $redirect_url, causing it to recursively redirected to the same http://[domain.com]/)
  * $redirect_url: http://[domain.com]/
  * $requested_url: http://[domain.com]:80/

If the url were http://[domain.com]/2018/12/01/hello-world/ it will not produce the infinite loop as the result of the debugging is:
  * $redirect_url: http://[domain.com]/2018/12/01/hello-world/
  * $requested_url: http://[domain.com]/2018/12/01/hello-world/

(no port number produced by the function)

* Trace further how the function handle port, and found this ""lazy"" snippet (original):
{{{
386         // Handle ports
387         if ( !empty($user_home['port']) )
388                 $redirect['port'] = $user_home['port'];
389         else
390                 unset($redirect['port']);
391
}}}

Apparently from the code above, if the $WP_HOME doesn't have port component it just removes the component for redirection. Seems a bit lazy to me.

True enough, I add below line in wp-config.php and fix the problem
{{{
define('WP_HOME','http://[domain.com]:80');
}}}
But of course, it is never that simple. While the infinite loop for the home page is handled, the other link is affected. In this case, going back to the debuging mode, the result os requesting url http://[domain.com]/2018/12/01/hello-world/ produced:
  * $redirect_url: http://[domain.com]:80/2018/12/01/hello-world/
  * $requested_url: http://[domain.com]/2018/12/01/hello-world/

(i.e: the port "":80"" is now added on the $redirect_url)

* Trace further up as the source of the port, it seems that it come from $original[] variable within the function
{{{
 70         $original = @parse_url($requested_url);
}}}

which sometimes have port information parsed, but sometimes is not.

**TEMPORARY SOLUTION (so far okay)**
The idea is how the code could handle ""port"" better:
* if there is no port information in $original variable, why bother adding port info to the redirection
* but if there is one, the redirection needs to also include the port info to prevent mismatch (hence infinite loop) i.e http://[domain.com]:80/ redirect to http://[domain.com]/ which then redirect to http://[domain.com]:80/ and so on.

Here is the code that I come up that solve this issue so far
{{{
386         // Handle ports
387         if ( isset($original['port']) && !empty($original['port'])) {
388              if ( !empty($user_home['port']) )
389                   $redirect['port'] = $user_home['port'];
390              else {
391                   $redirect['port']='443';
392                   if (isset($original['scheme']) && !strcmp($original['scheme'],'http')) $redirect['port']='80';
393              }
394          }
}}}
i.e: if user is using exoctic/unusual port they need to put it on the $WP_HOME anyway - otherwise assuming 80 and 443 would be quite common.

What causing the port number to come up? I assume it is due to the reverse proxy configuration in 1 server where parameter passing is using the port number that is not common. (e.g between https:443 to http:8080), but nevertheless, the more proper handling of port info as described above should be logical and necessary to prevent the unnecessary infinite loop.

I categorize this bug initially as ""major"" because it happens without any variety of user data, it is from a fresh install and reverse-proxy caching is a common technique used even in a shared hosting environment.
The expert at WordPress can determine whether the solution is robust enough to be implemented in more permanently.

So, with modification of that, people that use reverse proxy setting can still use canonicalization feature from WordPress without infinite loop problem. Also they can remove:
{{{
remove_filter('template_redirect', 'redirect_canonical');
}}}
from their functions.php

Thanks, hope this helps."	dkristanda
	58803	Infinite loop in canonical.php		Canonical	6.2	normal	minor	Awaiting Review	defect (bug)	new		2023-07-13T17:49:02Z	2023-08-30T17:44:26Z	"A site 24x7 monitor that points to a URL on our website leads to an error with infinite loops reported.

This error started after the page being pointed by the monitor received a new Slug, leading to HTTP redirection due to autocomplete to the closest URL. Still, I believe it occurs only during periods of transient availability of our shared host.

Looking at the source code [REF2] I believe there is potential for an infinite loop on line 800. Possible fix in [REF3].

By assigning the result of redirect_canonical() to a variable ($chained_redirect) before the if statement, we ensure that the same value is used throughout the if block preventing unnecessary recursive calls.

References
----------

[REF1]

HTTP/1.1 508 Loop Detected
Server : nginx
...

[REF2]
https://github.com/WordPress/wordpress-develop/blob/6.2/src/wp-includes/canonical.php#L780-812

[REF3]

 // Protect against chained redirects.
    $chained_redirect = redirect_canonical($redirect_url, false);
    if (!$chained_redirect) "	emerlen
	51700	Infinite redirect loop error when blog site is rewritten and real domain on another server		Canonical	5.5.2	normal	normal	Awaiting Review	defect (bug)	new		2020-11-03T14:02:07Z	2020-11-03T15:45:55Z	"I have my main site at: http://mainsite.com hosted on server A.
I have my wordpress blog hosted on some other domain however it is rewritten to http://mainsite/blog (although under the hood is is on another domain http://myblogonmyserver.com) and it is hosted od server B.
Both machines are Windows Server machines and PHP is 7.4 altought version of php is not an issue here. This bug is there for at least year. I found solution and source of bug.

It is inside canonical.php file (around line 65)

In latest version of wordpress (5.5.3) it is in fact around line 71 . I just added this part of code:

{{{#!php
<?php
$sURL = site_url();
        $asParts = parse_url( $sURL );
$requested_url .= $asParts['host'] ;
}}}

after this if statement:

{{{#!php
<?php
if ( ! $requested_url && isset( $_SERVER['HTTP_HOST'] ) ) {
		// Build the URL in the address bar.
		$requested_url  = is_ssl() ? 'https://' : 'http://';
		$requested_url .= $_SERVER['HTTP_HOST'];
		$requested_url .= $_SERVER['REQUEST_URI'];
	}

and now works in my case. Issue is that I have update  this part of code every time I update wordpress
}}}
 

"	vladop
	53362	Invalid paginated requests not treated as such	SergeyBiryukov*	Canonical	5.7.2	normal	normal	Future Release	defect (bug)	accepted	needs-refresh	2021-06-08T20:38:20Z	2023-06-29T18:20:08Z	"This is a follow-up to #40773.

The security department that scans our WordPress websites identified the issue resolved in #40773 as cross-site scripting, as our themes add the webpage's precise URL to Open Graph data (`og:url`) in the `<head>`.

So, we were happy to see the resolutions applied in that ticket. Unfortunately, while testing, we found that adding `/0/` to any URL is still possible, e.g. https://example.com/about-us/0/ does not redirect back to the canonical https://example.com/about-us/.

Additionally, we have found that it is possible to append `/page/` followed by a number to the URL of a page that does not support pagination, e.g. https://example.com/about-us/page/0/, https://example.com/about-us/page/12345/, etc.

In the latter example, the `<title>` also changes from ""About Us"" to ""About Us – Page 12345"" as WordPress seems to think this is a valid paginated page. The `paged-12345` and `page-paged-12345` classes are also added to the `<body>`. These specific tests were done using the Twenty Twenty-One theme.

Furthermore, appending `/page/0/` to the page that displays blog posts does not trigger a 404 or a redirect, e.g. https://example.com/blog/ is ""identical"" to https://example.com/blog/page/0/."	daleharrison
	50065	Load balancers forwarding host header with port and redirect loop		Canonical		normal	normal	Awaiting Review	defect (bug)	new		2020-05-03T05:44:47Z	2020-05-03T10:05:07Z	"When running wordpress behind oracle cloud load balancer (ssl terminated there) redirection loop happens. After debugging its found oracle load balancer is appending port in host header.
eg for https://testwp.mydomain.com
request host header from load balancer is : https://testwp.mydomain.com:443
this causes redirect loop. Debugged issue to wp-includes/canonical.php
Fixed by adding `$_SERVER['HTTP_HOST']=  'testwp.mydomain.com'` in wp-config


Please find the attached screen shots

"	priyanr
	62299	Pages with random numbers similar to the main page of the site		Canonical		normal	normal	Awaiting Review	defect (bug)	new		2024-10-25T01:49:13Z	2024-11-11T11:18:21Z	"Hi,  
I have a major problem with WordPress, and I would appreciate your help in solving it.

I have two different sites `abc.net` and `xyz.com`

Unfortunately, the homepage of these sites is generating numerous duplicate pages. For example:

`abc.net/page/2345`
`xyz.com/page/2345`

No matter what number I add at the end of the URL, a new page appears on the site.

I have searched extensively to find a solution, but I haven’t had any success. I would be grateful if you could guide me in resolving this issue.  
Additionally, I hired a developer to fix this problem for the first website mentioned, but the issue persists. The themes are different, and it seems the problem might be coming from the WordPress core.

Thank you in advance for your guidance."	amirdev93
	43249	Redirection issue with Japanese characters in query string on static front page		Canonical	4.9.4	normal	normal	Awaiting Review	defect (bug)	new		2018-02-07T17:15:03Z	2018-02-09T10:54:03Z	"Hello,

I have found a bug that when a static page option is enabled from here:
http://jom.x10.mx/wp-admin/options-reading.php

Then, you accessed the home page with the Japanese characters on the query string, it causes redirection issues “ERR_TOO_MANY_REDIRECTS”.

Example links are:

http://jom.x10.mx/?%E3%83%89%E3%83%A0%E3%83%BB%E3%83%88%E3%83%AD%E3%83%94%E3%82%AB%E3%83%AB%E3%83%86%E3%82%B9%E3%83%88%E3%82%BF%E3%82%A4%E3%83%97

http://jom.x10.mx/index.php?%E3%82%B6%E3%82%AF%E2%85%A1F%E5%9E%8B%EF%BC%88%E7%A0%B2%E6%92%83%E8%A3%85%E5%82%99%EF%BC%89

You can test this on any self hosted WordPress installation with the “static page” option enabled. This causes our client’s SERP to have been ruined.

http://www.almondmarketing.co.uk/index.php?%E3%83%89%E3%83%A0%E3%83%BB%E3%83%88%E3%83%AD%E3%83%94%E3%82%AB%E3%83%AB%E3%83%86%E3%82%B9%E3%83%88%E3%82%BF%E3%82%A4%E3%83%97

http://www.almondmarketing.co.uk/index.php?%E3%82%B6%E3%82%AF%E2%85%A1F%E5%9E%8B%EF%BC%88%E7%A0%B2%E6%92%83%E8%A3%85%E5%82%99%EF%BC%89"	jomgapuz
	57260	Static home page redirect error using post name premalinks behind reverse proxy		Canonical	6.1.1	normal	normal	Awaiting Review	defect (bug)	new		2022-12-02T14:07:29Z	2022-12-02T16:42:02Z	"In a WP site behind a reverse proxy all was working ok.
I then set a static home page and all was still working.
After I set post name permalinks, all pages kept working except home page, which had redirect errors.
After some time spent researching the problem, I found that the problem was on line 69 of wp-includes/canonical.php:
{{{#!php
<?php
$requested_url .= $_SERVER['HTTP_HOST'];
}}}
Instead of the value in `$_SERVER['HTTP_HOST']`, the value in `$_SERVER['HTTP_X_FORWARDED_HOST']` should be used.
I wonder if that could be definitively fixed changing line 69 of wp-includes/canonical.php with 
{{{#!php
<?php
$requested_url .= isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : $_SERVER['HTTP_HOST'];
}}}
"	kappe72
	45687	URL params get lost because of canonical redirect on static front page		Canonical	5.0.1	normal	minor	Awaiting Review	defect (bug)	assigned		2018-12-18T12:13:31Z	2018-12-18T12:24:43Z	"Please see #25143.

A shortcode that changes its output via (prettified) URL params, i.e. `/test/1/`.

Use the shortcode on a **static front page**.

The params are added either with `add_rewrite_rule()` or `add_rewrite_endpoint()`, but **without adding query vars**.
This is basically what the patch in #25143 fixed (3rd param ''false''):


{{{
add_rewrite_endpoint( 'test', EP_PERMALINK | EP_ROOT | EP_PAGES, false );
}}}

However, the later change on line 175 in changeset [36237] causes a request such as `/test/1/` to redirect to `/` **and the shortcode can't work with the param**.

On a side note, adding the params as query vars causes the intended static front page to use the posts template because `is_home()` is ''true''.\\
I understand that if I don't want URL params to modify the query, I should not register them as query vars (see [ticket:25143#comment:21 boonebgorges]). However, the template change feels rather wrong to me, too (see [ticket:25143#comment:20 mordauk]).

Thanks for listening."	captain.crash
	44899	redirect_canonical redirects to another URL when it should not		Canonical	4.9.8	normal	critical	Awaiting Review	defect (bug)	new	has-patch	2018-09-05T14:34:56Z	2026-10-31T17:16:12Z	"Hi,

on a fresh install of WordPress 4.9.8 :

http://sub.yourdomain.com/?xtor=AD-4970-%5BSocial%5D-%5B%5D-%5BPPL%5D-%5BFacebook%5D-%5B228284160&105478095%5D-%5B0%5D

will be redirected to :

http://sub.yourdomain.com/?xtor=AD-4970-%5BSocial%5D-%5B%5D-%5BPPL%5D-%5BFacebook%5D-%5B228284160&105478095]-%5B0%5D

Problem is : it does an 301. And, combined with Facebook mobile on Iphone link to the WordPress, it retries forever. 21 000 hits / 5 minutes on our server. Glad it was strong enough to sustain until we find the bug and temporarily deactivated 
{{{
redirect_canonical
}}}

with :
{{{#!php
<?php
remove_action('template_redirect', 'redirect_canonical');
}}}
"	melicerte
	60721	redirect_canonical suddenly causes issues with paramter values and CDN		Canonical	6.4.3	normal	minor	Awaiting Review	defect (bug)	new		2024-03-07T07:31:07Z	2024-03-07T07:31:07Z	"Hi there,

I was just wondering if anything has changed regarding https://developer.wordpress.org/reference/functions/redirect_canonical/?

`https://some-domain.tld/?my_param=a+a`

triggers a 301 redirect to
`https://some-domain.tld/?my_param=a a`

Now our CDN is set to pass URLs with `my_param` straight on to WordPress. Since that response with a 301, that's what gets cached by the CDN and causes a redirect loop.

Is that something new? I hadn't had that issue before, but also not 100% sure if I sent a value like ""a+a"" before. Trying to figure out why this redirect loop happens now after years.

I'll leave that ticket to be a bug, but if nothing has changed in redirect_canonical() then I guess it can just be closed.

Thanks for your help."	retrovertigo
	57724	redirect_canonical() may not work if site_url contains port number		Canonical	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-02-15T07:34:58Z	2024-04-02T06:09:34Z	"If site_url contains port number (for example, local test with http://localhost:8001/),
`redirect_canonical()` may not work as expected because port number is ignored when
constructing `$redirect_url`.

For example, ""http://localhost:8001/category/name?paged=2"" will not be redirect to
""http://localhost:8001/category/name/page/2""."	obache
	50149	url issue on category slugs		Canonical	5.4.1	normal	normal	Awaiting Review	defect (bug)	new		2020-05-12T11:09:34Z	2020-05-12T17:53:32Z	"This url structure is used to split the posts of a category into pages.

{{{
.../category/{category_name}/page/2/
}}}

However, if you use /0 before the /page/2/ section, the system ignores /0 and it does not redirect to the 404 page and opens the /page/2 archive page. But in this page, the single_cat_title() function does not return a value.

{{{
.../category/{category_name}/0/page/2/
}}}

Even all parameters entered before /0 are ignored too

{{{
.../category/{category_name}/1/2/3/4/5/abc/0/page/2/
}}}




"	ersinkurtdal
	17653	Canonical Redirect when space(s) are used instead of hyphens when requesting a page	SergeyBiryukov*	Canonical	3.0	normal	normal	Future Release	enhancement	accepted		2011-06-02T01:25:08Z	2018-08-19T03:31:39Z	"Create a page with a slug that contains a hyphen (eg. /page-name/).

If you then visit /page name/ (ie. use a space instead of a hyphen), WordPress currently manages to locate and display the page-name page. This could cause duplicate content issues.

The same issue occurs if multiple spaces are used instead of a hyphen.

As an example, this is the original page: http://jamesc.id.au/test-page/

This page is accessible via:
* http://jamesc.id.au/test%20page/
* http://jamesc.id.au/test%20%20page/
* http://jamesc.id.au/test%20%20%20page/
* http://jamesc.id.au/test%20%20%20%20page/

and so on.

WordPress should either output a 404 error, or redirect to /page-name/.

Tested using the latest 3.2 trunk (r18110)."	jamescollins
	51508	Fix for canonical.php		Canonical	2.3	normal	trivial	Awaiting Review	enhancement	new		2020-10-13T12:20:40Z	2020-11-15T07:09:35Z	"In extremely rare cases it is impossible to determine the path

{{{#!php
<?php
74. $original = parse_url( $requested_url );
}}}

I propose a very simple solution - check if the path was parsed correctly and if the host parameter has:

{{{#!php
<?php
74. $original = parse_url( $requested_url );
75. if ( false === $original || !isset($original['host'])) {
76.     return;
77. }
}}}


You can simply check for the presence of this key, but if it is not there for some reason, then it is better to simply complete this function."	anatolykulikov
	63082	Strip query strings in wp_redirect_admin_locations		Canonical		normal	trivial	Awaiting Review	enhancement	new	has-patch	2025-03-10T18:25:07Z	2025-05-26T14:29:53Z	"Downstream we're running into an issue where a plugin (Woo) that adds a query string to URLs for cache-busting purposes breaks the `admin` and `login` redirects in `wp_redirect_admin_locations`. See ticket here: https://wordpress.org/support/topic/geolocation-hashing-breaks-wp_redirect_admin_locations/#post-18353343.

While a workaround is certainly possible, and maybe Woo should be doing it differently, would it make sense to strip query strings from the request URI in this redirect's matching logic?"	eclev91
	35248	"WordPress should remove domain trailing dot (as/like it removes ""www."")"		Canonical	4.4	normal	normal	Awaiting Review	enhancement	reopened		2015-12-29T00:35:21Z	2020-01-31T16:22:59Z	"I think, WordPress should redirect from address with trailing dot of domain to version without the dot, like it redirects from address with ""www."".

I have read about which version is correct and seems version without dot is allowed according to RFCs, and it is very widely used, and even almost nobody know that trailing dot can be used.

(
https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol ""The first definition of HTTP/1.1, the version of HTTP in common use, occurred in RFC 2068 in 1997, although this was obsoleted by RFC 2616 in 1999""
->
https://tools.ietf.org/html/rfc2616#section-14.23 ""The Host field value MUST represent the naming authority of the origin server or gateway given by the original URL.""
->
https://tools.ietf.org/html/rfc2616#section-3.2.1 ""For definitive information on URL syntax and semantics, see ""Uniform Resource Identifiers (URI): Generic Syntax and Semantics,"" RFC 2396 ...""
->
http://tools.ietf.org/html/rfc2396#section-3.2.2 ""The rightmost domain label of a fully qualified domain name will never start with a digit, thus syntactically distinguishing domain names from IPv4 addresses, and may be followed by a single ""."" if it is necessary to distinguish between the complete domain name and any local domain.""
)"	qdinar
	66093	Combining characters aren't normalized to Unicode Form C on output		Charset	7.1	low	minor	Awaiting Review	defect (bug)	new	has-patch	2026-09-11T08:36:54Z	2026-10-14T11:35:45Z	"The HTML produced by WordPress functions like `get_the_excerpt()` and `the_content()` doesn't perform any Unicode Normalization.

This lack of normalisation is problematic because the W3C recommends Normalization Form C - https://www.w3.org/TR/charmod-norm/

It is possible to wrap these functions - for example `normalizer_normalize( get_the_excerpt(), Normalizer::FORM_C );` - but this quickly becomes cumbersome in complex themes.

Would it make sense for WordPress to ensure that the content coming out of the post object is normalized before being returned?

**Test**

My blog post contains the text `Anaïs`. The `ï` is U+0069 LATIN SMALL LETTER I and U+0308 COMBINING DIAERESIS.

When I run the output of `the_content()` through the W3C Validator, it complains

> Warning: Text run is not in Unicode Normalization Form C. 


**Background**

There's this previous ticket which talks about normalizing in the editor and on save - #30130.

However, for anyone saving plain text / markdown this doesn't seem to work. Text is saved un-normalised."	edent
	66259	Introduce WHATWG-compliant encoding name canonicalization.		Charset		normal	normal	7.3	feature request	new	dev-feedback	2026-10-06T19:16:10Z	2026-10-20T09:14:41Z	"WordPress largely treats character encoding names in an agnostic fashion, passing them off to browsers, `iconv()`, and `mb_convert_encoding()` transparently. This can lead to confusing data flow for text data, particularly because it’s unclear how arbitrary text coming into WordPress will be handled.

The [https://encoding.spec.whatwg.org/ ENCODING spec] defines which character encodings should be supported by web-integrating systems and which variations of each encoding’s name should be treated as equivalent aliases.

For example, while `l1` and `us-ascii` are both treated by browsers as `windows-1252`, they are never recognized as such within WordPress. In fact, since `mb_convert_encoding()` and `iconv()` don’t follow this interoperability standard, they fail for a number of supported encodings.

As WordPress moves towards deprecating non-UTF-8 support (#62172), it should provide robust mechanisms for converting text at the boundaries of input and output to aid this transition.

Prior work normalized UTF-8 detection in #61182, but focused on the detection of `UTF-8` specifically, and without taking into account the additional encodings in the WHATWG standard.

Further work should provide standards-compliant canonicalization while being explicit which set of supported charsets is being detected. For instance, the set of `mysql` charset names is disjoint from the set of web standard charset names.

=== Activities requiring ENCODING support.

 - Decoding full HTML documents.
 - Reading and writing emails.
 - Printing `<meta charset>` tags.
 - Inferring MIME content type.

== Related work

 - #64427 inferring MIME content type."	dmsnell
	57513	All the comments not showing properly in edit posts		Comments		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-01-20T10:27:56Z	2023-01-20T10:27:56Z	"We have found that not all comments load when show more comments click on edit post.

e.g. Consider there are 23 post comments in one post then if we click on show more posts then after showing 20 posts button will hide 3 left comments not be shown.

Please check the below screenshot.
 
Edit Post: https://share.cleanshot.com/VjDCLQ9XLvcvXg65qPHd
Comment list: https://share.cleanshot.com/rVrLqjFdLK6YzBznPzmG"	aniketpatel
	53674	Approved comment isn't displaying when its parent comment is spam		Comments		normal	normal	Awaiting Review	defect (bug)	new		2021-07-15T23:50:09Z	2021-07-15T23:50:09Z	"The steps to reproduce:

1. Publish a blog post
2. Comment on that blog post
3. Reply to the comment you posted in step 2
4. Reply to the reply you posted in step 3

Make sure all comments are approved. You should get this displayed:

{{{
Post
 - Comment 1
 -- Comment 2
 --- Comment 3
}}}

If you now visit wp-admin and change the status of the second comment to ""spam"", you will get this displayed:

{{{
Post
 - Comment 1
}}}

The first comment is displayed. The second comment is spam and shouldn't be displayed. However, the third comment is still approved. Why isn't the third comment displayed?"	henry.wright
	46931	Argument type mismatch		Comments		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2019-04-15T11:26:11Z	2020-10-16T00:36:26Z	"In `wp-includes/comment-template.php`, we have argument types mismatched in DOC block of `comment_form_title` function.

Please check if the proposed patch works."	subrataemfluence
	43759	CS: Fix violations for wp-includes/class-wp-comment-query.php		Comments		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-04-13T11:46:50Z	2020-10-16T00:46:01Z	Working on a patch for this during WordCamp London, currently.	jipmoors
	52930	Can't close Insert/Edit Link Pop Up when Editting a Comment		Comments	5.7	normal	normal	Awaiting Review	defect (bug)	new		2021-03-28T07:25:12Z	2021-03-28T07:44:01Z	"Hi! Today I tried to insert a link using the link button while editing a comment of mine on my own website, using the back end.

I can add as many links as I want, but I can't close the pop up with mouse or keyboard, by clicking on the X or Cancel. "	thesimarchitect
	60281	Cannot unset comment_notes_before		Comments	3.0	normal	normal	Future Release	defect (bug)	new	has-patch	2024-01-18T12:11:15Z	2026-11-07T14:45:49Z	"I want to reorder comment fields by unsetting and setting them back in my chosen order. Here's my code:

{{{
function my_reorder_comments_fields( $fields ) {
	$comment_notes_before_field = $fields['comment_notes_before'];
	$comment_field = $fields['comment'];
	$author_field = $fields['author'];
	$email_field = $fields['email'];
	$url_field = $fields['url'];
	$cookies_field = $fields['cookies'];

	unset( $fields['comment_notes_before'] );
	unset( $fields['comment'] );
	unset( $fields['author'] );
	unset( $fields['email'] );
	unset( $fields['url'] );
	unset( $fields['cookies'] );

	$fields['author'] = $author_field;
	$fields['email'] = $email_field;
	$fields['comment_notes_before'] = $comment_notes_before_field;
	$fields['cookies'] = $cookies_field;
	$fields['comment'] = $comment_field;

	return $fields;
}
add_filter( 'comment_form_fields', 'my_reorder_comments_fields' );
}}}

Result - https://imgur.com/a/ebY1HBW
You can see that `$fields['comment_notes_before']` remains on top.
To prove the point, I changed my code to just unset all fields:

{{{
function my_unset_comments_fields( $fields ) {
	unset( $fields['comment_notes_before'] );
	unset( $fields['comment'] );
	unset( $fields['author'] );
	unset( $fields['email'] );
	unset( $fields['url'] );
	unset( $fields['cookies'] );

	return $fields;
}
add_filter( 'comment_form_fields', 'my_unset_comments_fields' );
}}}

Result: https://imgur.com/a/B5wNngj
So `$fields['comment_notes_before']` isn't getting unset while all other fields do."	bugnumber9
	48519	Comment reply form in admin incompatible with most custom fields plugins		Comments	5.2.4	normal	normal	Awaiting Review	defect (bug)	new		2019-11-06T22:17:16Z	2019-11-06T22:17:16Z	"If you are using any plugin that adds custom (meta) fields to comments the admin interface for replying isn't compatible.

The front-end comment template includes various hooks for plugins to use.
The admin however does not (at all).

See:
Front-end: `wp-invludes/comment-template` function: `wp_comment_reply()` from around line 2393
Admin: `wp-admin/includes/template.php` function `comment_form()` from around line 437

In my case it's a compatibility bug with required fields created by Pods.
Within WP Admin it won't show the custom fields and this doesn't save any comments because required fields are not filled.

Some missing hooks:

Filters:
- `comment_form_default_fields`
- `comment_form_fields`
- `comment_form_logged_in` (Not needed as it's in WP admin)
- `comment_form_field_comment`
- `comment_form_field_{$name}`
- `comment_form_submit_button` (Not sure if this is desirable in WP admin)
- `comment_form_submit_field` (Not sure if this is desirable in WP admin)

Actions:
- `comment_form_before`
- `comment_form_must_log_in_after` (Not needed as it's in WP admin)
- `comment_form_top`
- `comment_form_logged_in_after`
- `comment_form_before_fields`
- `comment_form_after_fields`
- `comment_form`
"	keraweb
	39958	Comment reply/cancel links work badly when comment form is above the comment list		Comments		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2017-02-23T22:36:25Z	2018-01-15T14:41:01Z	"If the comment form is below the list of comments, as in default WP themes, reply and cancel links work as follows:

When you click reply, the form moves directly under the comment (page doesn't scroll).
When you click cancel, the form jumps back to original position (page doesn't scroll).

Consider any theme where the comment form is output before the list of comments. (This is a standard request, to make it easier for people to comment without having to scroll through lots of existing comments first).

When you click reply, the form moves from its original position to under the comment, causing the whole page to scroll up a significant amount. The textarea gets focus, meaning if it has scrolled off the top of the screen as is quite likely, the page jumps to ensure it is visible, but you don't see important things like the reply heading, cancel link, or comment label.

When you click cancel, the form reverts back to its original position, jumping the whole page content down significantly, often leaving you in a completely random part of the page.

This is very disorientating from a user perspective. I'm not sure what a workaround is - perhaps some way of saving your vertical position prior to a click and restoring it after a click to make it look like there is no jump."	smerriman
	40293	Comment template - warning		Comments	4.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-03-29T07:15:59Z	2017-10-11T11:29:50Z	"Hi,

in the `comments_template` function, you are entering a divide-by-zero condition at line '''1379''' of the `wp-includes/comment-template.php` file.


The line described above is like this.

{{{#!php
<?php
$comment_args['offset'] = ( ceil( $top_level_count / $per_page ) - 1 ) * $per_page;
?>
}}}


I believe this will solve.

{{{#!php
<?php
$offset = 0;

if ( $top_level_count && $per_page ) {
    $offset = ( ceil( $top_level_count / $per_page ) - 1 ) * $per_page;
}

$comment_args['offset'] = $offset;
?>
}}}

I'm using a default install with theme Twenty Seventeen.


Thank you!"	victorfreitas
	65366	Comments Bug		Comments		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2026-05-28T17:23:56Z	2026-05-29T17:36:13Z	My Argent theme site has developed a bug in reader comments. When a comment is submitted as a reply to another comment, it is no longer co-located with the parent comment, but appears somewhere else in the comment area. In some cases, it doesn't appear at all. This problem surfaced with the recent migration to WordPress 7.0, so presumably something went wrong with it.	comterrell
	64604	Comments column and controls visible for pages		Comments		normal	normal	Awaiting Review	defect (bug)	new		2026-02-05T15:41:54Z	2026-02-05T15:41:54Z	"After `comments` support was declared for pages in [60987](60987), comments column and controls became visible as well.

Support is declared so that editor notes work and it makes sense.

Comments column on page list does not show / include count of notes. And commenting controls do not affect the ability to leave notes on the page.

Since WordPress historically has not declared comment support for pages by default, I believe the column and controls should be hidden unless plugin or theme explicitly and intentionally declares the support.

Props to @mirasus for originally spotting the comment controls."	sippis
	59191	Disqus Commenting Plugin Blocked by Twenty Twentythree Theme		Comments		normal	normal	Awaiting Review	defect (bug)	new	close	2023-08-24T18:19:29Z	2023-08-24T20:03:20Z	"Hi there, 

This is Ryan at Disqus. We've noticed that WordPress theme Twenty Twenty-three blocks the Disqus Commenting Plugin from loading, which is confusing for WordPress site owners trying to use and test this plugin, or install Disqus generally to their site while using this theme. 

Please note that the Disqus plugin is designed to load over and replace the native WP comments form. I've attached two images of the same page with different themes, and you can see Disqus appearing correctly in the theme with green background, but only the WP native comments form appears in the Twenty Twenty-three theme

We're happy to collaborate or provide additional details as needed, I can be reached directly at `email address removed`.

Edit by @audrasjb: email address removed."	disqussupport
	49669	Duplicate comments from the same user could be inserted to the database		Comments	5.4	normal	minor	Awaiting Review	defect (bug)	new		2020-03-20T02:30:49Z	2020-03-20T02:37:07Z	In file wp_includes/comment.php function wp_new_comment, it first checks if the comment content submitted by the user already exists in the database (in wp_allow_comment) and then inserts the comment. When race condition happens, it could happen that the server handles two requests of submitting a comment with the same content from the same user and both pass the wp_allow_comment check, resulting in duplicate comments from the same user is inserted to the database.	caseqiu
	62644	Editing comments as an admin, in the Admin UI, filters the HTML elements of the comment as though the edit was done by the original author.		Comments	6.7.1	normal	normal	Awaiting Review	defect (bug)	reopened		2024-12-04T21:04:38Z	2024-12-06T03:00:28Z	"**Problem Description:**

I know that comments don’t allow img elements by default (for unregistered users). For privacy/spam reasons, of course. On my site, I manually moderate all comments, so this is less of an issue for me, and there are times when it is important for people (not signed-in users) to be able to link to images.


**Repro Steps:**


1. Add the following code to {{{functions.php}}}, which will allow non-registered users to include the {{{<img>}}} element in comment contents.

{{{

function add_post_comment_html_tags( $commentdata ) {

  global $allowedtags;
  $new_tags = [
    'img'=> [
		'src'=> true,
		'class'=> true,
		'style'=> true,
		'alt'=> true
    ]
  ];
  $allowedtags = array_merge( $allowedtags, $new_tags );
}
add_action('pre_comment_on_post', 'add_post_comment_html_tags' );

}}}

2. As a non-registered user, leave a comment on a post, utilizing the {{{<img>}}} HTML element to include an image.

''===> Note that the image is successfully allowed into the comment.''

3. Log in to the site as an administrator and navigate to the Comments page in Admin UI.

4. Edit (or Quick Edit) the comment, and change the contents slightly, but leave the {{{<img>}}} element alone.

5. Save your changes.

**Result:**

Once the comment is saved by the admin, the {{{<img>}}} element is removed entirely, even though the administrator can create comments - either in the admin UI or frontend - that contain {{{<img>}}} elements.

This happens because the comment edit is committed as / impersonates the original comment author on save, and is not executed as the current editor (administrator) in the Admin UI. Further, because the comment already exists, the {{{pre_comment_on_post}}} action is not called, so {{{<img>}}} is not added to the {{{global $allowedtags}}}.


**Expect:**

I would expect one of two things:

1. That edits to comments in the admin UI are performed *as the current user editing the comment* instead of as the original comment author.

2. That there be a way to modify the {{{global $allowedtags}}} for comment edits, in the same way that there is for comment creation.


**Notes:**
1. I originally brought this up here, for a bit more context: https://wordpress.org/support/topic/how-to-prevent-editing-of-comments-as-admin-from-stripping-images/
2. There may already be a filter/hook that serves this purpose, but I couldn't find one in the docs. I tried {{{comment_save_pre}}}, which did not work successfully.
3. If the administrator edits a comment that was originally created by an administrator (or any user with the {{{unfiltered_html}}} capability), then the {{{<img>}}} is not removed. (as expected)

"	turbodb
	64387	Emails not being sent following update to 6.9		Comments	6.9	normal	normal	Awaiting Review	defect (bug)	new	close	2025-12-09T16:19:14Z	2025-12-10T12:47:04Z	Since the 6.9 update, I’ve not received any emails whenever someone has left a comment. This was working perfectly before the update. 'Email me whenever Anyone posts a comment' is still checked in Settings, discussion. 	dianewordsworth
	66635	Harden reaction and note permissions		Comments	trunk	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-11-09T18:48:23Z	2026-11-10T13:21:56Z	"Notes and reactions (the `note` and `reaction` comment types) have their rules enforced in the REST API comments controller: a reaction belongs to its author, carries one of the curated emoji keys, and sits under a note on the same post. The older comment writers predate those types and do not apply the same rules: `wp_ajax_replyto_comment()`, `edit_comment()` (used by admin-ajax and the Edit Comment screen), `wp.editComment` over XML-RPC and `wp_update_comment()` itself. Rows that the REST API would refuse can still be created or changed through them, and the reaction summary added in 7.2 reads those rows back without re-checking any of it.

This ticket hardens the shared code paths so every writer applies the same rules:

 * `wp_ajax_replyto_comment()` refuses the `note` and `reaction` types and limits the type to ASCII key characters, since the `comment_type` column collation is case- and accent-insensitive.
 * `wp_new_comment()` drops a parent that is on a different post, the way it already drops a parent in an invalid status.
 * `wp_update_comment()` treats reactions as immutable (remove and re-add instead), refuses type changes into or out of `note` and `reaction`, and moves a note's reactions with it when the note changes post.
 * `edit_comment()` requires `edit_post` on the destination post, refuses a zero post, and validates the new or kept parent against the destination post rather than the one the comment is leaving.
 * The REST controller requires a note reply's parent to be a note on the same post, compares the comment type case-insensitively when guarding updates to match the database, and the reaction summary query only counts approved reactions stored on the note's post with a curated key.

Trunk only, the reaction type field is new in 7.2. Tests cover each writer. Patch incoming."	adamsilverstein
	52875	If a post is in trash related comments cannot be removed or trashed		Comments		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-03-21T08:27:43Z	2023-03-29T18:53:32Z	Comments to trashed or removed posts need to be visible with a clear note in the 'In response to' column that they are related to the trashed/removed post. 	oglekler
	51589	Missing whitespace between comment reply title and cancel comment reply link		Comments		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-10-21T17:55:10Z	2025-11-12T11:23:09Z	"Hi,

There's a missing whitespace between the comment reply title and the cancel comment reply link. 
This results in: ""Reply to A WordPress CommenterCancel reply"".

The {{{cancel-comment-reply-link}}} is wrapped in {{{<small>}}} tags. 
In file comment-template there's a whitespace before the opening tag: {{{'cancel_reply_before'  => ' <small>',}}}
But somehow it's being ignored in comment form. Stripped perhaps? Was not able to find what causes this.

More info here:
https://wordpress.org/support/topic/cancel-comment-reply-link-in-comments-form/."	Guido07111975
	58544	Need to verify safe website URL in comment form		Comments		normal	normal	Awaiting Review	defect (bug)	reopened	has-patch	2023-06-15T12:18:00Z	2023-06-21T20:50:17Z	"Hello,

We need to verify the website URL in the comment form and It should be safe before inserting into the database."	hiren1094
	41788	PHP Fatal error: Call to a member function has_cap() on a non-object in wp-includes/comment.php		Comments	4.8.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2017-09-03T22:16:34Z	2020-12-14T19:20:14Z	"{{{#!php
if ( ! empty( $commentdata['user_id'] ) ) {
	$user = get_userdata( $commentdata['user_id'] );
	$post_author = $wpdb->get_var( $wpdb->prepare(
		""SELECT post_author FROM $wpdb->posts WHERE ID = %d LIMIT 1"",
		$commentdata['comment_post_ID']
	) );
}

if ( isset( $user ) && ( $commentdata['user_id'] == $post_author || $user->has_cap( 'moderate_comments' ) ) ) {

}}}

If get_userdata() returns false, this code can lead to a fatal error."	kirbyde
	36058	"PHP notices and invalid ""View Post"" link on edit-comments.php when post type does not exist"		Comments		normal	normal	Future Release	defect (bug)	reviewing	has-patch	2016-03-03T05:48:30Z	2026-10-25T18:09:09Z	"Steps to reproduce:

1. Register a custom post type
2. Create a post
3. Create a comment on that post
4. Stop registering the post type
5. Visit wp-admin/edit-comments.php

The markup built in `WP_Comments_List_Table::column_response()` for the ""In Response To"" column requires a valid post permalink, as well as the post type label corresponding to ""View Post"". Since permalinks to non-existent CPT objects cannot be valid, and since non-existent CPTs don't have any post type labels, it seems to me that we can probably bail out of this method early if the post type doesn't exist.

Similarly, `column_date()` probably shouldn't attempt to link to the post if the post type doesn't exist."	boonebgorges
	55891	"Please add an action for additions within the ""comment-metadata"" div"		Comments	6.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-06-01T09:06:43Z	2024-10-17T09:56:34Z	"I would like to add additional data to the "".comment-metadata"" div, and there is no way to do that. 

If I want to display the extra info for admins only, I can use the 'comment_text' filter, but that's a nasty hack, and obviously only shows up for users who are able to edit comments, so it doesn't help the general case. 

I suggest adding an action just before or just after the call to edit_comment_link in class-walker-comment.php around line 460 (and also 360?)"	jwz
	6342	"Rapidly spamming/deleting comments can break ""infinite river"" feature on comment moderation pages"		Comments	2.5	low	minor	Future Release	defect (bug)	assigned		2008-03-21T22:05:16Z	2019-03-15T00:41:30Z	"Comment moderation pages have an ""infinite river"" feature whereby when you remove one comment (spam/delete), it'll load a new one at the bottom.  Unfortunately, it doesn't seem to catch up if you click more rapidly than about once every 2 or 3 seconds, and you'll ""lose"" comments.  At the end, you may just have one comment that, when dealt with, will be replaced by only one comment.  This may have to do with doubleclicking the ""spam"" link, or maybe clicking the ""spam"" link of the next comment before the river action has finished."	markjaquith
	58723	Remove deprecated parameter tests in comments_link()		Comments		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-07-06T06:50:47Z	2023-08-27T10:29:05Z	"In `comments_link()`, two unused parameters are checked if they're not empty. If they are, only a deprecation warning is shown for a WordPress version of the distant past.

I suggest removing the parameters altogether.

If we _must_ keep these deprecation warnings, at least use `if ( $deprecated )` instead of `if ( ! empty( $deprecated ) )` for the former is about 2.7x faster while achieving the same."	Cybr
	46943	Settings ->Discussion bad view dropdown in mobile version		Comments		normal	normal	Awaiting Review	defect (bug)	new		2019-04-15T23:00:28Z	2019-10-21T16:44:39Z	"Settings ->Discussion all dropdown are bigger on the responsive view. so need to make it size small same as desktop view and content align proper same as desktop view.
"	ketanumretiya030
	52682	Total comment count is wrong with two meta queries on the same key		Comments	5.6.2	normal	normal	Awaiting Review	defect (bug)	new		2021-03-01T11:09:49Z	2021-03-01T11:09:49Z	"The code below filters the comments shown in admin with a meta query. It works fine in that the comments in the list are filtered correctly, but it sends the results count way off (i.e. the one shown above the comment list table, to the right). For example, when there are 3 matching comments, above the table it says “45 items”.

[[Image(https://i.imgur.com/yyXUSJE.png)]]

I have traced this to the way the SQL is built in WP, with multiple outer joins to the meta table. When the query for comments is run, a GROUP BY is added so only unique IDs are returned. But when the count query is built, there is no GROUP BY so the count includes the meta rows and gets the wrong result.

{{{#!php
<?php
function poc_comments_list_table_query_args ($args) {

	$meta_query = array (
						'relation' => 'OR',
						array (
						  'key' => 'my_meta_key',
						  'compare' => 'NOT EXISTS',
						),
						array (
						  'key' => 'my_meta_key',
						  'value' => '',
						  'compare' => '=',
						)
					);
	
	$args['meta_query'] = $meta_query;
	return $args;
}
add_filter ('comments_list_table_query_args', 'poc_comments_list_table_query_args' );
?>
}}}

The intent is to return comments where either the meta value does not exist at all, or the meta value exists with a value of empty string.

The result is the same if filtering pre_get_comments instead of comments_list_table_query_args (with the code adjusted of course as pre_get_comments passes a full WP_Comment_Query object instead of just the arguments).

I found the following old tickets which seem somewhat related:

https://core.trac.wordpress.org/ticket/29685
https://core.trac.wordpress.org/ticket/23369

Thanks."	salubritas
	66077	Unapproved comment preview renders oEmbed URL differently from the approved comment		Comments		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-09-09T10:27:28Z	2026-09-16T08:21:31Z	"In a block theme whose comments are inside a pattern block (eg. Twenty Twenty-Five), a pending comment containing an embeddable URL renders as an oEmbed in the comment moderation preview, but as a plain link once approved. The preview does not represent what will be published.

Steps to reproduce

1. Twenty Twenty-Five theme, with comments set to require moderation.
2. Logged out, comment on a post with a YouTube video URL on its own line.
3. Observe that the comment preview shows an oEmbed of the video.
4. Approve the comment and view the post. Observe a plain link renders.

The correct behaviour is that a plain link is shown.

An AI agent tells me that the fix is to run `autoembed()` on the source before `do_blocks()` in `render_block_core_pattern()` and `_wp_apply_block_content_filters()`, matching `get_the_block_template_html()` and the `the_content` filter order. Needs confirming, needs tests."	johnbillion
	50202	Use <strong> tag instead of <b> tag in `Walker_Comment::html5_comment`		Comments		normal	normal	Future Release	defect (bug)	new		2020-05-18T14:32:56Z	2020-08-26T13:48:40Z	It is well documented that when some text is bolded using the <b> tag, it will come to no benefit for users using screen readers. This patch aims to fix that in an instance of `html5_comment` method in `Walker_Comment`.	itowhid06
	66397	WP_Comment_Query always breaks ties with comment_ID DESC when not ordering by date		Comments	4.2	low	normal	Future Release	defect (bug)	new	has-patch	2026-10-28T15:34:30Z	2026-10-30T07:09:39Z	"To make results deterministic, `WP_Comment_Query::get_comment_ids()` appends a `comment_ID` clause to the `ORDER BY` whenever `comment_ID` is not already being ordered on. This was introduced in r31467 for #30478. The order of that tiebreaker is meant to be:

 1. inherited from a `comment_date` or `comment_date_gmt` clause, if there is one;
 2. otherwise, taken from the first clause.

The second step never works. The check passes its arguments to `str_contains()` in reverse, looking for the clause inside the string `'ASC'`:

{{{#!php
<?php
// If no date-related order is available, use the date from the first available clause.
if ( ! $comment_id_order ) {
	foreach ( $orderby_array as $orderby_clause ) {
		if ( str_contains( 'ASC', $orderby_clause ) ) {
			$comment_id_order = 'ASC';
		} else {
			$comment_id_order = 'DESC';
		}

		break;
	}
}
}}}

A clause such as `wp_comments.comment_agent ASC` is never a substring of `'ASC'`, so the tiebreaker is always `DESC`. The code was originally written as `strpos( 'ASC', $orderby_clause )`, with the same reversal, and it carried over unchanged when `strpos()` was replaced with `str_contains()`.

== Steps to reproduce ==

{{{#!php
<?php
$q = new WP_Comment_Query();
$q->query(
	array(
		'fields'  => 'ids',
		'orderby' => 'comment_agent',
		'order'   => 'ASC',
	)
);
echo $q->request;
}}}

Expected: `ORDER BY wp_comments.comment_agent ASC, wp_comments.comment_ID ASC`

Actual: `ORDER BY wp_comments.comment_agent ASC, wp_comments.comment_ID DESC`

So comments that tie on `comment_agent` (or `comment_author`, `comment_type`, `comment_post_ID`, `user_id`, a meta value, and so on) come back newest-first, even though ascending order was requested. Ordering by date is unaffected, since step 1 handles it.

== Intended behavior ==

The design of the original patch is described in comment:6:ticket:30478 as follows.

> The ASC|DESC value for the 'comment_ID' clause is determined as follows: if ordering by 'comment_date' or 'comment_date_gmt', inherit that ASC|DESC, otherwise grab the first ASC or DESC available in the collected orderby clauses and use it.

However, r31467 also added `test_orderby_array_should_sort_by_comment_ID_DESC_as_fallback_when_not_sorted_by_date()`, which asserts the buggy output, `comment_agent ASC, comment_ID DESC`. That test appears to have been written against what the code produced rather than what was intended; otherwise the loop over `$orderby_array` would have no purpose. Earlier, in comment:1:ticket:30478, the non-date case was called ""a coin-flip (probably DESC for consistency)"", so this is worth confirming.

== Proposed fix ==

Read the order from the suffix of the first clause:

{{{#!php
<?php
// If no date-related order is available, use the order from the first clause.
if ( ! $comment_id_order ) {
	$comment_id_order = str_ends_with( $orderby_array[0], ' ASC' ) ? 'ASC' : 'DESC';
}
}}}

`$orderby_array` is never empty at this point, since a `comment_date_gmt` clause is added when no valid clause was found. Every clause in it ends with ` ASC` or ` DESC`: the only clause without an order is `comment__in`, and its presence skips the tiebreaker entirely. Checking the suffix, rather than merely swapping the arguments to `str_contains( $orderby_clause, 'ASC' )`, avoids matching `ASC` inside a field name or meta key.

The existing test is corrected to expect `comment_ID ASC`, and new tests cover:

 * a later clause's order being ignored (`comment_agent DESC, comment_author ASC` yields `comment_ID DESC`);
 * the actual result order of comments tied on `comment_agent` with `order => ASC`, which is reversed without the fix.

== Back-compat ==

This changes the order of tied results for any query ordering ascending by a non-date field without also ordering on `comment_ID`. Only rows that tie on every requested column are affected, and the new order is the one the request asked for, but code that happened to rely on newest-first ties will see a difference. A dev note may not be warranted, though a mention in the field guide could be.

== Background ==

This was found while reviewing https://github.com/WordPress/wordpress-develop/pull/14933 (committed in r64871 for #65817), which removed a dead `DESC` fallback immediately below this code. A search of core for other string searches with a literal haystack (`str_contains()`, `str_starts_with()`, the `strpos()` family, and so on) found three more, all intentional: two check a single character against a set, and one checks whether a requested attribute-name prefix is a prefix of `class`.

🤖 ''Description drafted by Claude Opus 5.5''"	westonruter
	41826	WP_Comment_Query can generate negative offset in LIMIT clause		Comments	4.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-09-07T11:40:49Z	2026-10-16T17:15:40Z	"The {{{paged}}} argument in {{{WP_Comment_Query}}} was introduced in #38268

There's a problem with the {{{paged}}} as 0 case.

'''Example:'''

When the {{{paged}}} is 0 and {{{number}}} is 2, {{{WP_Comment_Query}}} generates the LIMIT clause:

{{{ LIMIT -2, 2 }}}

instead of 

{{{ LIMIT 0, 2 }}}

According to the MySQL documentation, the offset in the LIMIT clause shouldn't be negative:

https://dev.mysql.com/doc/refman/5.7/en/select.html

I think we should handle it in the same way as in {{{WP_Query}}}, where the 0 case is treated as the default, that is 1.
"	birgire
	58450	WP_Comment_Query status argument documentation misses any		Comments		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-06-03T15:50:16Z	2026-11-10T23:26:49Z	"In the code, there is a comment that reads 'any' overrides other statuses. 

'all', if I read correctly, would not cover 'spam' or 'trash'. 

So, the documentation should be amended."	dshanske
	62066	Weird ability to modify comments to be empty	Lela Bones	Comments		normal	minor	Awaiting Review	defect (bug)	assigned		2024-09-18T00:09:11Z	2024-10-04T21:05:41Z	"When I was viewing ticket #61244, I originally misinterpreted the issue. I thought that the user wanted to avoid exporting comments that have no content, but I realized that isn't actually allowed through the WordPress editor. 

However, I was trying to recreate the empty comment issue, and realized that users are able to edit comments to be empty. 

I did some initial digging and [https://github.com/WordPress/wordpress-develop/blob/5d0753bb6e7c29adc8e6171ee21338cb5ade297b/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php#L568 WP_REST_Comments_Controller] has a `create_item` that contains this check:

{{{
		// Do not allow comments to be created with a non-default type.
		if ( ! empty( $request['type'] ) && 'comment' !== $request['type'] ) {
			return new WP_Error(
				'rest_invalid_comment_type',
				__( 'Cannot create a comment with that type.' ),
				array( 'status' => 400 )
			);
		}
}}}

and an `update_item()` function. I think that adding this or something similar to the `update_item` function would resolve this issue."	lbones
	45498	Wrong order of arguments in call_user_func() for Walker_Comment::start_el()	SergeyBiryukov	Comments		normal	normal	Future Release	defect (bug)	reviewing	has-patch	2018-12-06T16:52:14Z	2026-06-05T07:46:02Z	"Arguments order for rendering all types of comments is `$comment, $depth, $args` except for the custom callback:

`call_user_func( $args['callback'], $comment, $args, $depth );`

This causes every custom callback to throw an error when you use `$args` and `$depth` as you'd expect. 

For example, `comment_reply_link()` inside callback can not be used like it's suppose to be used, like so:


{{{#!php
<?php
comment_reply_link( array_merge( $args, array(
	'add_below' => 'div-comment',
	'depth'     => $depth,
	'max_depth' => $args['max_depth'],
	'before'    => '<div class=""reply"">',
	'after'     => '</div>'
) ) );
}}}

You need to replace `$depth` and `$args`, like so:

{{{#!php
<?php
comment_reply_link( array_merge( $depth, array(
	'add_below' => 'div-comment',
	'depth'     => $args,
	'max_depth' => $depth['max_depth'],
	'before'    => '<div class=""reply"">',
	'after'     => '</div>'
) ) );
}}}

"	milana_cap
	45585	comments ordering by date, orders them only for the current page.		Comments	4.9.8	normal	normal	Awaiting Review	defect (bug)	new		2018-12-11T15:35:05Z	2018-12-12T08:15:33Z	"'''Tested''': on 5.0 and 4.9.8 (found it on 4.9.8)

'''Steps to reproduce''':
1. add comments (skip if existing)
2. change the comment dates
3. activate pagination in comments in wp-settings -> discussion and set comments display ""newest"".

'''Mentions'''
I did testing on both Twenty Seventeen and Twenty Nineteen, the result is the same, it will order comments by date for the current page, not all comments and then split in pages.

'''Expected behaviour'''
Order comments then split them in pages, now it does vice-versa, where it orders the comments by date after they are being split in pages."	rwky
	40901	get_comments_number_text() third argument not used in certain situations		Comments		normal	normal	Future Release	defect (bug)	new	needs-docs	2017-06-01T13:43:43Z	2026-08-25T15:17:18Z	"`comments_number()` is a wrapper for echoing `get_comments_number_text()`.

Reference: https://codex.wordpress.org/Function_Reference/comments_number

The 3rd parameter's description: Text to display when there is more than one comment. % is replaced by the number of comments, so '% so far' is displayed as ""5 so far"" when there are five comments.

This doesn't seem to work as expected. In particular, the parser doesn't look just for '%' but also for strings with spaces in front or behind this sign, after which it processes it in a illogical way.

For example, this code

{{{
<? _e('Read on', 'anytextdomain');
comments_number(' and add the first comment', ' and see the first comment', ' % so far'); ?>
...
}}}

results in: `Read on 2 komentarze...` (""komentarze is a Polish translation of ""comments"", which is ok). Where's the ""so far"" string?

Now another example with text before the % sign:

{{{
<? _e('Read on', 'anytextdomain');
comments_number(' and add the first comment', ' and see the first comment', ' and view % comments'); ?>
...
}}}

The result is bizarre: `Read on2 komentarze...` 

With some testing it seems that some strings passed as the 3rd argument are being kept, but it's totally illogical and requires review. If this is somehow intended, it should be explained in the Codex. So far, even the Codex example doesn't work as intended. I also checked that I'm not using any `comments_num*` filters.

Workaround: use `get_comments_number()` with conditional code."	eclare
	65657	get_lastcommentmodified() includes notes, so an internal note changes the comments-feed Last-Modified/ETag		Comments	6.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-07-17T04:31:30Z	2026-07-17T04:34:16Z	"`get_lastcommentmodified()` returns the date of the most recent approved comment, and `WP::send_headers()` uses it (max'd with `get_lastpostmodified()`) to build the `Last-Modified` and `ETag` headers for the comments feed (`/comments/feed`, `?feed=comments-rss2`).

Its three queries do not exclude the internal `note` comment type:

{{{#!sql
SELECT comment_date_gmt FROM wp_comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 1
}}}

Notes are stored as approved comments (`comment_type = 'note'`), so adding or resolving a note makes it the most recent comment. The public comments feed's `Last-Modified` and `ETag` then change, even though the feed body already excludes notes (see #64145 / #65613) and did not change.

Consequences:
 - Conditional GET (304 Not Modified) caching of the comments feed is defeated whenever notes are used — clients and CDNs re-fetch an identical feed.
 - The public `Last-Modified` header exposes the timing of internal editorial notes.

This is the same class of issue as #64145 (""notes need to be consistently excluded wherever comments or comment counts are shown""). `wp_update_comment_count_now()` already excludes notes via `comment_type != 'note'`.

== Steps to reproduce ==
1. On a site using Notes, capture the comments feed headers: `curl -I 'http://example.test/?feed=comments-rss2'`.
2. Add an internal note to any post (or resolve/reopen one).
3. Re-request the feed — `Last-Modified` and `ETag` have changed, though the feed body is unchanged.

See the attached before/after screenshots.

== Proposed fix ==
Add `AND comment_type != 'note'` to the three `get_lastcommentmodified()` queries, matching the exclusion already used by `wp_update_comment_count_now()` and the comment feed queries."	dhrupo
	65642	get_page_of_comment() counts internal notes, breaking comment permalink pagination		Comments	6.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-07-16T04:31:20Z	2026-07-16T05:40:43Z	"Related: #64474

Since the block-notes feature (6.9), internal `note`-type comments share the comments table but are excluded from public comment displays. `WP_Comment_Query` excludes them by default, `wp_update_comment_count_now()` excludes them from the per-post count, and comment feeds exclude them (#65613).

`get_page_of_comment()` still counts them. It builds its count query with `type => 'all'` (its default), and `WP_Comment_Query` deliberately does '''not''' exclude the `note` type when the type is `all` — confirmed as intended behaviour in #64474:

> When using the WP_Comment_Query class, it is correct behaviour that `note` comment types will be included when `type=all` is requested. However, on the comment table, the note comment type should always be excluded.

The public comment list (`comments_template()`) queries with `type => ''`, which '''does''' exclude notes. So the two disagree: the displayed list omits notes, but the pagination math counts them. On a post that has a note and ""Break comments into pages"" enabled, a note dated before a given comment shifts that comment onto a later `cpage` than the one it actually renders on, so `get_comment_link()` links visitors to the wrong comments page.

== Steps to reproduce ==
1. Settings → Discussion → enable ""Break comments into pages"", 1 comment per page.
2. On a post: add a regular comment, add an internal note dated after it, then add a second regular comment.
3. `get_page_of_comment()` for the second comment returns 3 instead of 2 — the note occupies a phantom page.

== Proposed fix ==
Exclude notes from the count query in `get_page_of_comment()` by passing `type__not_in => array( 'note' )`, aligning the pagination calculation with the public comment display. This mirrors the fix applied to the comments list table in [61525] / #64474, rather than changing `WP_Comment_Query`'s intended `type=all` semantics.

PR: https://github.com/WordPress/wordpress-develop/pull/12552"	dhrupo
	63157	wp_list_comments behaves differently when passed string or array		Comments	6.7.2	normal	normal	Awaiting Review	defect (bug)	new		2025-03-24T18:10:38Z	2025-04-24T13:52:03Z	"1. Set up Discussion so that comment does not require manual approval.
2. Put function in functions.php   which prints 'your commment is waiting approval' if
{{{
 $comment->comment_approved == '0'.
}}}
and which prints the comment.
 
3. call that function in the theme's comment template comments.php

Result:  in 6.7.1 if the function is passed as a string, e.g. 
{{{
wp_list_comments(""callback=my_function"")
}}}
 or if it is passed as an array 

{{{

wp_list_comments([""callback""=>""my_function""])
}}}
Behaviour is the same.

Comments are not published unless {{{
 $comment->comment_approved == '1'.
}}}

This changed in 6.7.2. Now, if the callback is passed as a string, comments are published even if {{{
 $comment->comment_approved == '0'.
}}}

However, now if the callback ias passed an array, comments are not published if {{{
 $comment->comment_approved == '0'.
}}}

I cannot see what has caused this change.
"	John_W_B
	58700	wp_set_comment_status() modifies post_content		Comments	6.2.2	normal	major	Awaiting Review	defect (bug)	new		2023-07-03T04:42:14Z	2023-07-14T21:06:45Z	"I've created a standalone PHP script that runs on cron and uses wp_set_comment_status() to automatically approve select comments (based on user name, ip address, etc).

When a comment is approved, if the post_content contains a video tag, the video tag is rewritten.

From :

{{{
<video controls loop width=""400"" preload=""none"" poster=""https://example.com/images/poster.jpg""><source src=""https://example.com/videos/video.mp4"" type=""video/mp4""></video>
}}}

To :


{{{
<video controls loop width=""400"" preload=""none"" poster=""https://example.com/images/poster.jpg""></video>
}}}

My code :


{{{#!php
<?php
require_once('/example.com/wp-load.php');
...
...
if ( $curTime > $comTime )
{
     wp_set_comment_status($comment_id, 'approve', false);
}
}}}


Any idea why this is happening? I've had to go back and edit a lot of posts due to this issue."	tweakfreaks
	53639	"Ability to add checkboxes to ""Email me whenever"" section"		Comments		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-07-10T14:50:22Z	2022-06-02T11:26:29Z	"In wp-admin > Settings > Discussion, there is a section ""Email me whenever"". The 2 options in this section are:

 - Anyone posts a comment
 - A comment is held for moderation

There's currently no way for a plugin to add more checkboxes to this list."	henry.wright
	39505	Add an option to add custom classes to comment_reply_link()		Comments	4.7	normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2017-01-06T14:08:03Z	2025-06-18T11:48:44Z	In many cases, I want to add custom classes to comment reply link. I can use js or handle comment link string. But it's better if have an option to add custom classes to link via PHP.	truongwp
	55470	Allow for finer-grained callbacks for wp_list_comment		Comments	2.7	normal	normal	Awaiting Review	enhancement	new		2022-03-27T17:48:00Z	2022-03-27T18:16:41Z	"I've implemented a variety of different custom comment types, so logically, I'd like to allow for default customized comment output for these different types and still allow a theoretical theme to provide its own callback.

Unfortunately, the only two options are a custom callback or a custom Comment Walker. Using the 'wp_list_comments_args' filter to make a custom comment walker the default, and reimplementing the start_el option is the only way to do this...but this means again, the possibility of unanticipated interaction.

So, in thinking about this, proposing two enhancement options...looking for thoughts before I write up some code for consideration.

1. Enhance the callback argument in wp_list_comments. Allow it to be an associative array or a string. If an associative array, the key would be comment_type. It would allow the 'all' parameter key, which would mean that the 'all' callback would be used if nothing more specific was provided. If this is a string, it would just set that to the all parameter and use the same logic. This would allow differing callbacks to be called per comment...if you choose to display them mixed.
1. Add a filter inside start_el to allow for greater logic at this point before triggering the built-in or custom callback on a per-comment basis.

Now, ideally, the solutions would be found in #35214 with some form of comment registration, but as that would have to be backward compatible, and that it has been 6 years since that conversation started suggests this simpler solution may make sense in the interim and even afterward."	dshanske
	57106	Allowing comment form error pages		Comments		normal	normal	Awaiting Review	enhancement	new	has-patch	2022-11-14T14:27:08Z	2022-11-14T15:21:43Z	"Current status quo:

As of now, it is not possible to have customized a customized validation for forms (covered in #57105 )

And every single error will either end in a wp_die() or an exit.

Proposal:

Instead of always ending in `wp_die()` we could forward to the referer page, including the error_message and the $_POST data, to prefill the form (especially with the comment, since these would be really painful if lost).

`comment_form()` would require an enhancement to show errors.

This idea is still in progress, I'll provide a working proof of concept later, but I wanted to open this for discussion.

Note: Will also need some kind of representation for the Rest API."	apermo
	66459	Alternative Unicode characters can be used to bypass disallowed comment keys		Comments		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-03T18:58:08Z	2026-11-04T12:08:46Z	"This method can be used to bypass disallowed comment keys: https://shkspr.mobi/blog/2018/11/domain-hacks-with-unusual-unicode-characters/

It is common to ban spammy domains in comment keys (for example: https://github.com/splorp/wordpress-comment-blocklist/blob/master/reference/shorteners.txt).
This can be bypassed by using link with a URL with alternative Unicode characters.

For example if example.com is not allowed, someone can post a comment containing this HTML:

{{{
<a href=""http://𝐞𝐱𝐚𝐦𝐩𝐥𝐞.𝐜𝐨𝐦/"">Click me</a>
}}}

When the comment is displayed, the link will work correctly because the browser will map the Unicode characters to ASCII.

It might be useful to convert the comments with idn_to_ascii() before checking for disallowed comment keys in order to catch this kind of bypass."	Rudloff
	47514	Change priority of make_clickable callback to boost performance		Comments	5.2.1	normal	minor	Awaiting Review	enhancement	new		2019-06-09T21:16:48Z	2024-09-22T05:58:57Z	"Hi!

Preemptive: please excuse me if this ticket is inappropriate. Since WordPress' HackerOne states explicit disinterest in DoS related issues, I hesitated at first to create this ticket here. However, the effectiveness of the DoS attack and the signifcant performance boost I gained after I understood the logic behind the attack and changed a line of code made me think this might be worth sharing here.

Last week one of our clients who runs a very high profile site with WordPress fell victim to a sophisticated DoS attack where attackers spammed the site with comments containing thousands of strings such as {{{ftp.z}}}. The processing of requests that displayed these comments took a huge portion of the server's available RAM. 

Long story short, we identified the following callbacks as the troublemakers:

1. {{{make_clickable}}}
2. {{{wp_kses_post}}}
3. {{{wptexturize}}}
4. {{{convert_chars}}}
5. {{{convert_smilies}}}
6. {{{force_balance_tags}}}
7. {{{wpautop}}}

They all have in common that they operate on the entire comment string and attempt to parse out all HTML tags contained within them via REGEX functions, which takes up a lot of RAM. As a solution for our client, we established some more spam filtering for created comments.
However, out of personal interest in how this attack worked I tried to understand the logic behind the attack. 

The reason the attackers had created comments containing thousands of strings such as ftp.x is that the {{{make_clickable}}} callback converts these strings into full {{{<a>}}} tags via PHP's built-in {{{preg_replace_callback}}}. 

Per default, comments can only contain 65500 characters. The string {{{ftp.x }}} (including the whitespace) contains only 6 characters. Thus it is possible to have the string {{{ftp.x }}} contained 10916 times within a single comment. {{{make_clickable}}} then turns those 10916 strings into 10916 tags, leading to a comment containing over 500.000 characters. Since {{{make_clickable}}} runs first, all of the other 6 callbacks that operate on the comment string use REGEX to parse 10916 * 2 (one opening and one closing) tags, leading to a huge memory overhead. 

I figured that changing the priority of the {{{make_clickable}}} filter so that it runs after {{{force_balance_tags}}} significantly increased the efficiency of the RAM usage of our server when confronted with comments containing links. Since the {{{<a>}}} tags are properly generated by WP itself, there is no reason to have it run through functions such as {{{force_balance_tags}}}. 

To reproduce the problem, just open a test setup of WordPress and navigate to a post that has comments enabled. Create a new one and open the developer console of the browser and type

{{{comment.value = ""ftp.x "".repeat(10916)}}}

Submit the comment and notice how long it takes to load the site. Imagine hundreds of such comments being loaded by hundreds of bots at the same time, then you get what happened to our client's site.

The following shows the patch I applied (also attached as a diff file):

{{{
--- a.php	2019-06-09 22:47:58.744746903 +0200
+++ b.php	2019-06-09 22:49:00.080742874 +0200
@@ -190,7 +190,7 @@
 
 add_filter( 'comment_text', 'wptexturize' );
 add_filter( 'comment_text', 'convert_chars' );
-add_filter( 'comment_text', 'make_clickable', 9 );
+add_filter( 'comment_text', 'make_clickable', 26 );
 add_filter( 'comment_text', 'force_balance_tags', 25 );
 add_filter( 'comment_text', 'convert_smilies', 20 );
 add_filter( 'comment_text', 'wpautop', 30 );
}}}

Best regards,
Olliver



"	olliverh87
	45998	Comments trashed after reply		Comments	5.0.3	normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2019-01-16T02:58:34Z	2025-06-30T10:26:58Z	"I found A Bug into your software. Which is
Whenever I click on **Approve and Reply** option in comments, then it's automatically trashed.. Please Fix it."	pkkarn
	57105	Enhance wp_handle_comment_submission() with a custom validation		Comments	6.2	normal	normal	Awaiting Review	enhancement	new		2022-11-14T14:06:08Z	2022-11-14T20:23:46Z	"As of now, there is no way to do a custom validation on comments, but it is pretty much mandatory in most European countries to ask for consent when storing the data.

In 4.4.0 the filter `comment_form_fields` was introduced, which allows to add a custom checkbox for that very consent.
My example below shows exactly this case, it comes with an html5 form validation via the `required` attribute, by due to the missing server side component, that is a weak validation(at best).

I propose to add a counterpart filter inside of `wp_handle_comment_submission()` that will allow exactly this missing server side validation.

{{{#!php
<?php

/**
 * Allows a custom validation.
 *
 * @since TBD
 *
 * @param null|WP_Error $custom_validation Your possible custom error.
 * @param array         $commentdata       Array of comment data to be sent to wp_insert_comment().
 * @param array         $comment_data      The raw comment data from the function call.
 */
$custom_validation = apply_filters( 'comment_form_fields_validation', null, $commentdata, $comment_data );
if ( is_wp_error( $custom_validation ) ) {
  return $custom_validation;
}
}}}

`$comment_data` will pretty much contain the content of `$_POST`.

(Patch with exact position see attachment)

Example use case(simplied):

{{{#!php
<?php
namespace CustomNamespace
// This is already working since 4.4.0
function comment_privacy_field( array $fields ): array {
  $fields['privacy'] = '<input id=""privacy consent"" name=""privacy-consent"" type=""checkbox"" value=""yes"" required><label for=""comment-form-privacy-consent"">Yes I consent...</label></p>';

  return $fields;
}
add_filter( 'comment_form_fields', __NAMESPACE__ . '\comment_privacy_field' );


// This is new in my proposal
function  comment_validation( $custom_validation, $commentdata, $comment_data ): ?\WP_Error {
  if ( ! isset( $comment_data['privacy-consent'] ) || empty( $comment_data['privacy-consent'] ) ) {
    return new \WP_Error( 'require_consent', 'You have to consent', 200 );
  }

  return $custom_validation;
}
add_filter( 'comment_form_fields_validation', __NAMESPACE__ . '\comment_validation', 10, 3 );

}}}

This would allow us to add any custom validation.

Note: Any comment form error will result in a `wp_die()` page, which would likely need an overhaul in this case too. But I will create a separate ticket for that topic."	apermo
	50361	Highlight if link targets in comments don't refer to the link text		Comments		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2020-06-10T20:36:48Z	2020-06-10T20:42:02Z	I'm thinking of some kind of solution to warn if links in comments are not what they seem to be to give a little security extra. They can be misused to inject bad stuff if clicked as an admin. I changed class-wp-comments-list-table.php to show a hint like on the screenshot to show you what I mean. What do you think? How could this be done in a non disturbing way? Or don't we want it at all? You decide.	Presskopp
	52480	Refine the display of the comment approval notification opt-in confirmation message		Comments		normal	normal	Future Release	enhancement	new	dev-feedback	2021-02-09T17:09:29Z	2024-07-02T15:43:21Z	"Follow-up to #52406.

The confirmation message shown to a user ''after they opt-in'' to receiving a notification of their pending comment's approval is currently displayed inline with a preview of their comment.

This means the display of this confirmation message is only shown if the user opts in within 10 minutes of posting their comment. If they take longer than 10 minutes then their opt-in is respected but they see no confirmation message.

As mentioned in the comments in [comment:7:ticket:52406] 10 minutes is likely long enough but no research was done.

Let's identify if this functionality needs to be improved. Options:

* Extend the time limit further. This needs to take into consideration #49956.
* Disconnect the display of the confirmation message from the comment preview, and always show a confirmation message. Would need to take into consideration the cache headers on the page.
* Fix the comment spam problem some other way and remove the time limit.
* Do something else.
* Do nothing and leave it as-is.
"	johnbillion
	66494	Tests: Add unit coverage for the comment functions in comment.php		Comments		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-05T19:34:17Z	2026-11-05T19:50:18Z	"`src/wp-includes/comment.php` has several functions that protect the comment form and keep the comment counts and statuses in sync, but they have no direct PHPUnit coverage. A search of `tests/phpunit/tests` finds no references to:

 * `wp_check_comment_flood()`, `wp_throttle_comment_flood()` and `check_comment_flood_db()`, which block comments that are posted too quickly.
 * `wp_check_comment_data_max_lengths()`, which rejects comment data that is too long for the database columns.
 * `wp_defer_comment_counting()` and `wp_update_comment_count()`, which defer and flush the updates of the comment counts of posts.
 * `wp_transition_comment_status()`, which fires the actions of a comment status change.
 * `get_comment_statuses()` and `sanitize_comment_cookies()`.

Some of these are only exercised indirectly through `wp_allow_comment()` and `wp_new_comment()`, so a change in their behavior is hard to spot and to attribute. Direct tests describe the current behavior of each function.

'''Proposed scope'''

This ticket is meant to be handled with several small patches, one for each group of related functions, so each one is easy to review. The tests go in `tests/phpunit/tests/comment/`, one class per function, with data providers where it helps.

 1. '''Flood protection.''' `wp_throttle_comment_flood()`: an earlier block is kept, and the 15 second limit. `wp_check_comment_flood()`: a flood that another callback already declared is kept, administrators and moderators are not throttled, logged-in users are matched by user and visitors by IP address or email, the one hour window, the `comment_flood_filter` and `comment_flood_trigger` hooks, and `$avoid_die`. `check_comment_flood_db()`: it adds the `wp_is_comment_flood` filter.
 1. '''Limits and counts.''' `wp_check_comment_data_max_lengths()`: each of the four fields at and over its limit, with multibyte characters, and the error codes and data. `wp_defer_comment_counting()` and `wp_update_comment_count()`: counts are not updated while deferred, the deferred posts are flushed once, and the return values.
 1. '''Statuses and cookies.''' `wp_transition_comment_status()`: the actions that fire, with the status aliases (`hold`, `approve`, `0`, `1`) and without a change. `get_comment_statuses()`. `sanitize_comment_cookies()`: the filters, unslashing and escaping of the author, email and URL cookies.

'''Out of scope'''

This ticket only adds tests and does not change behavior. `wp_set_comment_cookies()` is left out, because it calls `setcookie()`, which cannot be asserted from the test suite. Changes to how the counts are updated are discussed in #58156, and the tests describe the current behavior only.

Related: #65819, #58156."	hmbashar
	66602	Tests: Add unit tests for WP_Comments_List_Table::prepare_items() and the small methods of the Comments list table		Comments		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T08:30:18Z	2026-11-07T08:40:31Z	"`WP_Comments_List_Table` in `src/wp-admin/includes/class-wp-comments-list-table.php` is only partly tested: `tests/phpunit/tests/admin/wpCommentsListTable.php` covers the tablenav, the bulk actions, the sortable columns, the default views and the internal comment types. `prepare_items()` and several small methods have no tests.

This ticket adds tests that cover:

* `prepare_items()`: the mode (and the user setting), the comment status (and an unknown one), the comment type, the search, the post type, the user, the order, the number of comments and the start (also in an AJAX request), the items and the extra items, the pending count, the total, and the `comments_list_table_query_args` filter;
* `get_per_page()` and its `comments_per_page` filter;
* `__construct()` (the post from the request and the avatar filter), `floated_admin_avatar()`, `ajax_user_can()` and `no_items()`."	hmbashar
	66538	Tests: Add unit tests for the Comments Pagination blocks		Comments		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T09:02:08Z	2026-11-06T09:09:35Z	"The render callbacks of the Comments Pagination blocks are not referenced by any test: `render_block_core_comments_pagination()` (`comments-pagination.php`), `render_block_core_comments_pagination_next()`, `render_block_core_comments_pagination_previous()` and `render_block_core_comments_pagination_numbers()` in `src/wp-includes/blocks/`.

This ticket adds tests for the wrapper, and for the links to the next and the previous page and the page numbers (their labels, arrows and the first and last pages), and for the registration of the blocks."	hmbashar
	66541	Tests: Add unit tests for the Post Comments blocks		Comments		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T09:13:01Z	2026-11-06T09:23:56Z	"The render callbacks of the Post Comments blocks are not referenced by any test: `render_block_core_post_comments_count()`, `render_block_core_post_comments_link()` and `render_block_core_post_comments_form()` in `src/wp-includes/blocks/`.

This ticket adds tests for the number of comments, the link to the comments with its text for no, one and several comments, the comment form (the password, closed comments, the wrapper, the script and the filter), the classes of the attributes and the registration of the blocks."	hmbashar
	66535	Tests: Add unit tests for the server-side rendering of the Comment Date block		Comments		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T08:54:57Z	2026-11-06T08:59:18Z	"The `render_block_core_comment_date()` and `register_block_core_comment_date()` functions in `src/wp-includes/blocks/comment-date.php` are not referenced by any test.

This ticket adds tests for the missing comment, the date and its format (also the time difference), the link to the comment, the `datetime` attribute and the link color class."	hmbashar
	66536	Tests: Add unit tests for the server-side rendering of the Comment Edit Link block		Comments		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T08:55:07Z	2026-11-06T08:59:26Z	"The `render_block_core_comment_edit_link()` and `register_block_core_comment_edit_link()` functions in `src/wp-includes/blocks/comment-edit-link.php` are not referenced by any test.

This ticket adds tests for the capability to edit the comment, the link and its target, the escaping of the URL, and the classes of the attributes."	hmbashar
	66537	Tests: Add unit tests for the server-side rendering of the Comment Reply Link block		Comments		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T08:55:17Z	2026-11-06T08:59:36Z	"The `render_block_core_comment_reply_link()` and `register_block_core_comment_reply_link()` functions in `src/wp-includes/blocks/comment-reply-link.php` are not referenced by any test.

This ticket adds tests for the missing comment, the threaded comments option, the depth of the comment compared to the maximum, closed comments, and the classes of the attributes."	hmbashar
	66539	Tests: Add unit tests for the server-side rendering of the Comments Title block		Comments		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T09:02:18Z	2026-11-06T09:09:47Z	"The `render_block_core_comments_title()` and `register_block_core_comments_title()` functions in `src/wp-includes/blocks/comments-title.php` are not referenced by any test.

This ticket adds tests for the title with and without the number of comments and the post title, the tag of the level, the text alignment, posts without comments and posts that need a password."	hmbashar
	60533	The comment tree is old – maybe it’s worth changing it?		Comments		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2024-02-13T19:54:34Z	2024-02-20T02:26:48Z	"Maybe it’s worth considering a new approach to comments on WordPress? It’s about the tree – the rooting of comments. Currently it may be level 10. And later there is no reply button – because they usually get narrower.

Or maybe it’s worth ending this rooting and switching to something – where every statement will be treated as a response. Completely without roots and their depth – which has been causing problems in long conversations for years.

Maybe it would be worth creating it like on the forums – i.e. on a completely different system, without this limitation. Isn’t it worth thinking about?

Sometimes conversations are long and it’s a real pain to keep talking to anyone on WordPress. Because – either they are becoming narrower – or the comment ends after the 10th comment – because it cannot be moved as a child.

It is probably worth changing it to some other approach, more known from forums – where the number of comments and conversations as – answer to answer does not matter how many of them there are."	Danishsard
	57314	Update all references to wp/v2 to namespace field in class-wp-rest-comments-controller.php		Comments		normal	normal	Awaiting Review	enhancement	reopened	has-patch	2022-12-11T18:11:02Z	2022-12-12T11:17:55Z	This is a very minor change to make it easier for other classes to extend this class and define their own namespace.	ihenetudan
	54234	comment_type of reply should be same as parent		Comments		normal	normal	Awaiting Review	enhancement	new		2021-10-08T11:58:54Z	2021-10-18T19:11:33Z	"When you creating a reply for custom comment_type. Lets say our comment_type is for 'product_review'. When we create a reply from admin panel. The comment_type of the reply created as 'comment', which doesnt make sense. So our reply will not be shown in comment_list for 'product_review'.

Or we can make user decide if this comment should be created as the same comment_type as the parent via checkbox in the comment reply form in admin panel."	erikdemarco
	43792	get_comment_excerpt filter should tell if the comment was shorted or not		Comments		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2018-04-17T22:14:58Z	2026-10-23T15:06:16Z	"The design I am currently working on has long comments shortened to 100 words, and a 'show more' / 'show less' link is added.

I only want to add the 'show more' text if the comment has been shortened. There is a filter before get_comment_excerpt() returns that I can use to add my link. However it does not pass along information about whether or not the comment was shortened.

As a workaround I can check if the comment ends in ""&hellip;"", but it would make sense to add a boolean value to the filter arguments to make this easier/cleaner."	mattkeys
	43183	wp-comments-post.php endpoint support for OPTIONS		Comments		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2018-01-30T17:13:04Z	2019-07-01T12:24:37Z	"Under some circumstance we may need cross-posting from one domain to another (without the wp-json API).
At least lets preflight requests flow normally
https://github.com/WordPress/WordPress/pull/338
"	drzraf
	53038	Comment Moderation by Specific Post or Page		Comments	5.7.1	normal	normal	Awaiting Review	feature request	new		2021-04-15T07:35:08Z	2021-04-15T07:35:08Z	"At present the basic comment moderation system within WordPress seems to be largely an either on or off affair at the universal level. So, if I make a new post then all I can really do is apply those filters universally or turn comments on or off.

The issue here is that, sometimes, specific posts can attract more problematic anonymous comments than others (we often know this in advance, but sometimes we only learn it later). What we really need is thus an extra option to enable manual comment moderation on specific posts and pages.

In short, if this is enabled on a specific post, then any comment posted would require manual approval by an admin (or the post author) before being displayed. The 'Edit Comments' summary page may also require some additional categorisation in order to help display and order related comments, separate from others (maybe a 'Moderated Comments' option at the top next to 'Bin ()' etc.).

Every other system I use for reviews, forums etc. has the ability to do things like this. But I have not found any dedicated or properly supported plugins to do it and believe that it should exist as a core feature."	ispreview
	64839	Comments: add ability for site visitors to edit / delete their own comments		Comments		normal	normal	Awaiting Review	feature request	new		2026-03-11T11:12:42Z	2026-03-11T11:12:42Z	"Nowadays, most social networks allow their users some control over the comments and posts they publish on the platform: you can often either delete your comments entirely, or edit them. This sometimes comes with some safeguards:

- When a comment / post has been edited, it is shown in the UI (sometimes with an edit date, sometimes with access to a revisions view)
- Edits are sometimes only allowed for a short period of time after a comment has been published.
- Platforms allowing you to delete your posts / comments will sometimes display a placeholder instead of a deleted comment, to avoid causing too much confusion for future readers by breaking the flow of the conversation.

I think that WordPress itself could potentially offer such a feature. We already do allow commenters to see their own comments while they're in the moderation queue. I think we could leverage that further to allow commenters to see an ""Edit"" and / or ""Delete"" link when they're visiting a post where they've commented in the past, as long as they're in the same browser.

We could offer additional options or controls:

- Site owners who want to retain full control over the conversations on their site should be able to turn off that functionality.
- The ""Edit"" / ""Delete"" links could be remove in theme templates.
- Site owners may want to limit this ""edit"" functionality to registered users on their site => this may actually be an easier implementation to begin with, where we would rely on the user being logged in to the site to show the ""Edit"" / ""Delete"" link.

For reference, here is a plugin that implements some of this functionality:
https://wordpress.org/plugins/simple-comment-editing/"	jeherve
	53040	Prune IP and Email Addresses from Comments After X Days		Comments	5.7.1	normal	normal	Awaiting Review	feature request	new		2021-04-15T07:49:35Z	2021-04-17T21:19:05Z	"In order to aid compliance with new data privacy laws (e.g. GDPR in the EU / UK etc.) we would like a new feature, which when enabled would automatically prune the IP and email address details attached (privately) to anonymous comments after X days. 

A simple settings field to set the number of days would be all that is required to enable it, while leaving the field blank would be akin to disabling the feature.

I am conscious, from my own website, that retaining such details can be helpful when tackling spammers/bots. But I also tend to find that, after a few months, there is no longer any real benefit to retaining that data and in our legal privacy policy we'd like to reflect a time period for its retention.

The site we have currently has a decade worth of email and IP details associated to past comments and much of that could really do with being removed. Sadly, there is no easy approach for this, without wiping the comment and display names out too. In an ideal world we'd probably set a 365-day (1 year) timer and comments older than that would lose their IP and email details.

Alternatively, a way to partially obfuscate old IP and email address details would be another option. But retaining such data indefinitely is legally something that has become difficult to support."	ispreview
	53927	Add test for _get_cron_array()		Cron API		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-08-13T21:14:16Z	2026-05-07T16:21:50Z		pbearne
	63830	Event system breaks when an event is scheduled during processing of a queue of more than one events		Cron API	6.8.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-08-15T17:06:24Z	2025-09-25T17:40:34Z	"We've had instances of events ""disappearing"" and traced it down to them not being registered in the event system when a queue of more than one event is being processed in parallel.

== To Reproduce

=== Step 1

Add the following code (in a must-use plugin, for example):

{{{#!php
<?php
add_action('my_regular_task', function($param) {
    // do something meaningful
});

add_action('my_long_task', function() {
    echo 'Started my_long_task. Maybe request an HTTP page now?', ""\n"";
    for($i=0;$i<5; $i++) {
        sleep(2);
        echo ""\t"", 'Zzz..', ""\n"";
    }
    echo 'Woa. Woke up!', ""\n"";
});

add_action('init', function() {
    if (!defined('WP_CLI')) {
        // This runs when requested via HTTP
        $evt = wp_schedule_single_event(time()+1 , 'my_regular_task', [uniqid()], true);
        if (is_wp_error($evt)) {
            die('Could not schedule event!');   // this makes sure the event was indeed registered as scheduled..
        }
    }
});
}}}

=== Step 2

In a WPCLI session:

{{{#!bash
wp cron event schedule my_long_task --0=foo
wp cron event schedule my_long_task --0=bar
wp cron event run --due-now
}}}

While the two events are being processed perform one HTTP request to any front end page in your browser (to schedule the regular task).

=== Step 3

{{{#!bash
wp cron event list
}}}

== Expected result

On step 3 we see the list of events containing one instance of `my_regular_task`.

== Actual result

The event list does NOT contain `my_regular_task`.
"	madhazelnut
	47127	Parameter Error in class-wp-hook files		Cron API	5.1.1	normal	major	Awaiting Review	defect (bug)	new		2019-05-05T12:57:33Z	2019-05-09T02:26:49Z	"After update, I am getting these in the logs, tens of thousands of lines of the same thing over and over again.  I have to delete logs daily as the size grows into the 10+ megs.  It is odd.

This repeats over and over again without ceasing.  I removed all plugins and switched to the default theme and the error still persists.  It has to do with the core. 

[05-May-2019 12:50:43 UTC] PHP Warning:  call_user_func_array() expects parameter 2 to be array, null given in /home/public_html/wp-includes/class-wp-hook.php on line 286
[05-May-2019 12:50:43 UTC] PHP Notice:  Undefined index: args in /home/public_html/wp-cron.php on line 118
[05-May-2019 12:50:43 UTC] PHP Notice:  Undefined index: args in /home/public_html/wp-cron.php on line 122
[05-May-2019 12:50:43 UTC] PHP Notice:  Undefined index: args in /home/public_html/wp-cron.php on line 133
[05-May-2019 12:50:43 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/public_html/wp-includes/class-wp-hook.php on line 272
"	walkinverse
	57589	transition_post_status hook does not fire when cron publishes scheduled post.		Cron API	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	close	2023-01-30T22:32:39Z	2025-10-07T11:19:13Z	"Ever since the most recent 6.1 update, a critical hook of ours is not firing any more.

We have a custom cache clearing plugin that clears the nginx, redis and Cloudflare cache for a bunch of our landing pages. It runs on our site when a post's status changes from from 'future' to 'publish', from 'publish' to 'trash' or when a post is originally published of updated. We use the transition_post_status hook to trigger these cache clears.

Everything was working great until the 6.1/6.1.1 updates.  After the wp 6.1 update, the manual publish/update operations done directly using the wp-admin work fine, but when our cron runs to publish a scheduled post the transition_post_status hook does not fire at all.

But here is the most curious thing... the ""publish_future_post"" cron job is not created when we schedule a post for the future.  The function check_and_publish_future_post() uses this cron job to decide what posts need to be published, but the cron job never appears in my action scheduler or in my events tab of the wp-control plugin. So that mean that the wp_publish_post() function does not run, and the filter hooks don't fire. But the post DOES publishes as expected on the wp-cron.  It is beyond weird, and i cant figure it out.

Here is what I have done and tested thus far:

I have tested all of the following hooks: none of them work either:
- transition_post_status
- future_to_publish
- future_post

I am using a manual cron fired from my ubuntu server, and I have confirmed my cron is firing using an output.log, and I can also confirm that other wp-cron jobs are running as as normal.

I have tried both a conventional wget 'doing_wp_cron' and a wp-cli cron jobs, and both fail (see examples below):
- * * * * * wget -q -O - --no-check-certificate https://domain.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
- * * * * * cd /path/to/www; /usr/local/bin/wp cron event run --due-now >/dev/null 2>&1

In order to get back to where we were, I have had to spin up my own cron that publishes future posts myself, so I have solved this issue on my end, but I cannot be the only one experiencing this, so I thought that I would submit this information for your review, thanks!"	tele2rn
	56490	wp-cron.php using count() on null		Cron API	6.0.2	normal	normal	Awaiting Review	defect (bug)	new		2022-09-01T16:47:36Z	2022-09-04T12:35:06Z	"WE're using PHP 8.0 and the latest version of WordPress (6.0.2), we tried with all plugins disabled and the default theme enabled and we're having this fatal error happening every minute:

{{{
PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in wp-includes/class-wp-hook.php:292
}}}

Here's the stack trace:

{{{
#2 wp-cron.php(138): do_action_ref_array('wp_privacy_dele...', NULL)"",""Thu Sep 01 2022 18:37:06 GMT+0200 (Eastern European Standard Time)""
#1 plugin.php(524): WP_Hook->do_action(NULL)"",""Thu Sep 01 2022 18:37:06 GMT+0200 (Eastern European Standard Time)""
#0 /nas/content/live/bbgsstaging/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', NULL)"",""Thu Sep 01 2022 18:37:06 GMT+0200 (Eastern European Standard Time)""
}}}


It looks like the default WordPress core hook ""wp_privacy_delete_old_export_files"" is causing this error. We excluded this hook but then ""wp_version_check"" caused the same fatal error.

This issue also happens when on PHP 7.4, but on 7.4 it's just a warning, but it's also occurring. We're happy to provide additional information or access to our staging site if needed."	Bishoy.A
	60657	wp_schedule_event problem		Cron API	6.4.3	normal	normal	Awaiting Review	defect (bug)	new		2024-02-29T08:44:32Z	2024-02-29T08:59:37Z	"In some cases there are some problems with wp_schedule_event. It schedule the event, if we use wp_next_scheduled, it gives a timestamp, but using WP Crontrol, it doesn't appear there.
Below some code to reproduce it.
If you click on the button, it will schedule 500 events. Wait a bit, that 100 or so are processed (look at the logs or use WP Control to check). Then click again. The logs show that they should have been schedules, there is a timestamp and the transient is created. But it's not really scheduled, it doesn't appear with WP Control, and the transient is not deleted (for the 2nd round)

{{{
if (!class_exists(""NSM_Test_Cron"")) {

    class NSM_Test_Cron {

        function __construct() {
            add_action('admin_menu', array($this, 'my_custom_button_menu'));
            add_filter('cron_schedules', array($this, 'cron_schedules'));
            add_action('nsm_test_cron', array($this, 'nsm_test_cron'));
        }

        public function cron_schedules($schedules) {
            if (!isset($schedules['nsm_60_seconds'])) {
                $schedules['nsm_60_seconds'] = array('interval' => 60, 'display' => '60 Seconds');
            }
            return $schedules;
        }

        function my_custom_button_menu() {            
            add_menu_page('My Custom Button', 'Custom Button', 'manage_options', 'my-custom-admin-button', array($this, 'my_custom_button_page'));
        }

        function my_custom_button_page() {
            error_log('my_custom_button_page');
            if (isset($_POST['action']) && $_POST['action'] == 'myaction') {
                error_log('my_custom_button_page action');
                for ($index = 0; $index < 500; $index++) {
                    $args = array(array('email' => 'toto@foo.org', 'user_id' => '1234', 'tags' => $index));
                    if (!wp_next_scheduled('nsm_test_cron', $args)) {
                        $error = wp_schedule_event(time(), 'nsm_60_seconds', 'nsm_test_cron', $args, true);
                        set_transient( 'doing_cron_' . $index, $index );
                        error_log('error -> ' . print_r($error, true));
                        error_log(""wp_next_scheduled ($index)-> "" . print_r(wp_next_scheduled('nsm_test_cron', $args), true));
                    }
                }
            }
            ?>
            <div class=""wrap"">
                <h2>My Custom Button</h2>
                <form action="""" method=""post"">
                    <input type=""hidden"" name=""action"" value=""submit_my_custom_form"">
                    <?php wp_nonce_field('my_custom_form_nonce'); ?>
                    <input type=""text"" name=""my_custom_data"" placeholder=""Enter some data"">
                    <input type=""hidden"" name=""action"" value=""myaction"">
                    <input type=""submit"" class=""button button-primary"" value=""Submit"">
                </form>
            </div>
            <?php
        }
        
        public function nsm_test_cron($args) {
            $error = wp_clear_scheduled_hook('nsm_test_cron', array($args));
            error_log('nsm_test_cron -> ' . $args['tags']);
            sleep(1);
            delete_transient( 'doing_cron_' . $args['tags']);
        }
    }

}
new NSM_Test_Cron();
}}}"	odoremieux
	63938	A feature to bulk schedule events		Cron API		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2025-09-05T18:35:50Z	2025-12-09T16:30:51Z	"I was playing around today with wp_schedule_single_event, and when scheduling a bunch of events (1000) the traditional way if scheduling becomes rather slow. So instead I made a solution for a wp_schedule_bulk_events function.

I'd like to submit this to WP core if you'd like, but not sure how :)

I hope the rest speaks for itself. Let me know if you have any suggestions or adjustments.

{{{#!php
<?php
/**
 * Schedule a bulk of events.
 *
 * @param int    $timestamp  Unix timestamp (UTC) for when to next run the event.
 * @param string $hook       Action hook to execute when the event is run.
 * @param array  $args       An array of arrays containing arguments to pass to the
 *                           hook's callback function. The array keys are ignored.
 * @param bool   $wp_error   Optional. Whether to return a WP_Error on failure. Default false.
 * @return bool|WP_Error True if event successfully scheduled. False or WP_Error on failure.
 */
function wp_schedule_bulk_events(int $timestamp, string $hook, array $args, bool $wp_error = false)
{
    // check if all arguments are arrays
    $is_array_args = array_reduce( $args, fn($carry, $item) => $carry && is_array($item), true );

    // if not, schedule a single event
    if ( ! $is_array_args) {
        return wp_schedule_single_event( $timestamp, $hook, $args, $wp_error );
    }

    // get current cron events
    $bulk_value = $orig_value = get_option( 'cron', [] );

    // when updating the cron option, keep a copy of the original value (to skip update for now)
    $tmp_update_option = function ($new_value, $old_value) use (&$bulk_value) {
        $bulk_value = $new_value;
        return $old_value;
    };

    // when getting the cron option, return the modified value
    $tmp_get_option = function () use (&$bulk_value) {
        return $bulk_value;
    };

    // add filters from above
    add_filter( 'pre_update_option_cron', $tmp_update_option, 10, 2 );
    add_filter( 'pre_option_cron', $tmp_get_option, 10 );

    // add cron events
    foreach ( $args as $arg ) {
        wp_schedule_single_event( $timestamp, $hook, $arg, $wp_error );
    }

    // remove filters
    remove_filter( 'pre_update_option_cron', $tmp_update_option, 10, 2 );
    remove_filter( 'pre_option_cron', $tmp_get_option, 10 );

    // if the cron option was changed in the meantime, abort
    if ($orig_value !== get_option( 'cron', [] )) {
        return $wp_error ? new \WP_Error('wp_schedule_bulk_events_failed', __('Failed to verify bulk schedule cron events, value has changed', 'wordpress')) : false;
    }

    // update cron option
    if ( ! update_option( 'cron', $bulk_value )) {
        return $wp_error ? new \WP_Error('wp_schedule_bulk_events_failed', __('Failed to update bulk schedule cron events', 'wordpress')) : false;
    }

    return true;
}

/**
 * The test
 */

// args for test events
$test_args = array_map( fn($i) => [$i], range(1, 1000) );
$timestamp = time() + 3600;

// test 1 - traditional scheduling
$start_time = microtime(true);
foreach ( $test_args as $test_arg ) {
    wp_schedule_single_event( $timestamp, 'test1', $test_arg );
}

echo ""Traditional scheduling time: "" . round( microtime(true) - $start_time, 5 ) . "" seconds"" . PHP_EOL;

// test 2 - bulk scheduling
$start_time = microtime(true);
wp_schedule_bulk_events( $timestamp, 'test2', $test_args );

echo ""Bulk scheduling time: "" . round( microtime(true) - $start_time, 5 ) . "" seconds"" . PHP_EOL;

}}}


**Result:**
Traditional scheduling time: 7.82431 seconds
Bulk scheduling time: 0.02945 seconds
"	urlund
	58470	Add configurable batching to `wp_scheduled_delete` for controlling cleanup operations		Cron API	6.3	normal	normal	Awaiting Review	enhancement	new		2023-06-06T22:08:46Z	2023-06-07T14:17:17Z	"When posts are trashed, they are automatically cleaned up by the `wp_scheduled_delete` wp-cron task. However, both the frequency that this cron task runs and the number of posts that can be cleaned up at once time lack configurability. 

Imagine a shop which has more than 100,000 orders: trashing thousands or tens of thousands of them at once could cause the website to become unresponsive when it comes time to clean up the trash.

I suggest adding two constants:

||= Constant Name =||= Default Value =||= Description =||
|| `EMPTY_TRASH_SCHEDULE` || `daily` || The cron schedule on which the trash scheduler runs. This is useful for increasing the number of times the cleanup process runs when using batching to delete many posts. ||
|| `EMPTY_TRASH_BATCH_SIZE` || `50` || The maximum number of posts to delete at once. ||

It may also be useful for these and `EMPTY_TRASH_DAYS` to have filters to improve cleanup operations overall."	johnrom
	62314	Infinite callback loop when 'priority' is not numeric in php 8.x		Cron API	6.6.2	normal	minor	Awaiting Review	enhancement	assigned	changes-requested	2024-10-28T19:35:11Z	2024-10-28T23:01:31Z	"
The behavior of min(array) has changed in php 8.x.  Prior to php 8, 
{{{ min(array('a', 1,2,3)) }}} returns 'a'.  In php 8.x, it returns 1.

This has some unexpected effects on wordpress filters. The following code

{{{
function test_action() { add_action( 'admin_enqueue_scripts', function(){}, 'a');}
add_action( 'admin_enqueue_scripts', 'test_action' , 10);
}}}

which works on php 7, will result in an infinite loop on php 8.x.  Strictly speaking, this is not a bug, as using 'a' instead of a numeric value for priority is incorrect.  However, wordpress does not complain its use.  

Here is a simple fix.  Add a check in wp-includes/class-wp-hook.php, on line 83.  Either change the priority to a numeric value or barf and bail out.    I think something like

{{{
 if( ! is_numeric($priority) )  $priority = 10;
}}}

will be safe.

"	mzou23
	46540	Admin bar CSS shouldn't be added in the customizer		Customize	4.5	normal	normal	Future Release	defect (bug)	new	dev-feedback	2019-03-16T19:42:48Z	2021-05-30T19:49:09Z	"I was playing with the Customizer selective refresh and noticed that the admin bar class WP_Admin_Bar doesn't check if the user is in the Customizer, thus it may add the 46px top margin and whatnots even if there is no admin bar.

So to reproduce the bug, create a partial where the `render_callback` has wp_head() in it.

 "	nabil_kadimi
	54252	Appearance - Customize : Only widgets is displayed in the customizer options using Safari 15.x		Customize	5.8.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-10-13T02:33:50Z	2025-07-11T02:12:35Z	"This is the main issue that is obvious. When selecting Appearance - Customize, only the Widgets option is displayed when using Safari 15.x on iOS or macOS devices.

The issue appears in other places, am continuing testing to verify. 

This occurs using a clean 5.8.1 installation with 2021 theme installed. 

No other plugins installed or active.
No browser extensions are installed or running.
This also occurs on ipadOS 15.x

"	archteryx
	57899	Bad javascript in customize-controls.js for padding-top causes bugs		Customize		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-03-09T23:06:44Z	2025-05-12T01:38:06Z	"The code for sections ""Release header element if it is sticky."" and ""Reset position of the sticky header."" is very bad old code and should be coded in a more modern way now. This code causes bugs in many situations and should either be eliminated all together and replaced with modern css only/instead or improved javascript to not include a forced css for padding-top."	akissz
	61669	CSS error using grid in Customizer		Customize		normal	normal	Awaiting Review	defect (bug)	new		2024-07-17T06:07:04Z	2025-05-12T01:38:23Z	"This is a follow-up to #42528.

I tried to use this CSS property on Customizer: 

{{{
grid-template-columns: repeat(4, 1fr);
}}}

This resulted in the error and I'm unable to save: 

{{{
Expected BRACE at line 4, col 36.
}}}

[[Image(https://i.ibb.co/ftMM92R/image.png)]]

I'm using WordPress 6.6"	slalani
	53925	CTRL + S does not “publish” customizer changes		Customize		normal	normal	Awaiting Review	defect (bug)	new		2021-08-13T18:18:54Z	2021-08-13T20:38:01Z	"If I edit post or page and press CTRL + S on my keyboard, it will publish (or save) the content BUT if I’m using the WP Admin > Appearance > Customizer and press the same hotkey nothing works.

p.s. - can visit thread here: https://wordpress.org/support/topic/ctrl-s-does-not-publish-customizer-changes/"	vondelphia
	49421	Cannot use conversion specifications in `theme mod` default values		Customize	5.3	normal	normal	Future Release	defect (bug)	new		2020-02-12T17:50:26Z	2021-09-26T03:07:44Z	"This is a follow-up to #34290.

With the fix [46395] it is no longer possible to have a `theme_mod` which is itself a format string and has a default value which includes a conversion specification, e.g.

{{{#!php
\printf(
  \get_theme_mod('site_copyright', 'Copyright %%1$s; all rights reserved.'),
  \get_bloginfo('name', 'display')
);
}}}

With a double `%%`, the default string is now unchanged, but with a single `%` it is replaced with the ‘template directory’ URL.  It is now no longer possible to achieve the desired `%1$s` in the default string.

Also, where the default is something like `100%`, the code supplying the default value to `get_theme_mod` now needs to test the WordPress version to know whether it should pass `100%` or `100%%`.

A fix might be for the `sprintf` code path also to be followed if the string contains a double `%%`.  Or revert the change (so that the behaviour of `get_theme_mod` is more clearly defined as it was before - i.e. the default value is a format string and literal `%` signs need escaping as `%%`) and find another solution to the initial problem.
"	jqz
	51093	Custom CSS output runs through the wrong filter for custom user role		Customize	5.4.1	normal	normal	Future Release	defect (bug)	new	has-patch	2020-08-21T12:15:08Z	2026-10-05T08:33:52Z	"I added a custom user role, which is able to see the Custom CSS in the Customizer. As soon as a user with such a role publishes the Customizer settings, the Custom CSS gets filtered through the wrong filter. This wasn’t the case in WordPress < 5.5 and is a new issue.

My created user role:
{{{#!php
<?php
function add_custom_role() {
	add_role(
		'custom',
		esc_html__( 'Custom' ),
		array(
			'update_core' => false,
			'update_plugins' => false,
			'update_themes' => false,
			'activate_plugins' => false,
			'edit_plugins' => false,
			'edit_themes' => false,
			'delete_plugins' => false,
			'delete_themes' => false,
			'switch_themes' => false,
			'create_users' => false,
			'edit_users' => false,
			'delete_users' => true,
			'edit_files' => true,
			'edit_theme_options' => true,
			'export' => false,
			'import' => true,
			'list_users' => true,
			'manage_options' => true,
			'remove_users' => true,
			'edit_dashboard' => true,
			'customize' => true,
			'unfiltered_html' => true,
			'delete_others_pages' => true,
			'delete_others_posts' => true,
			'delete_pages' => true,
			'delete_posts' => true,
			'delete_private_pages' => true,
			'delete_private_posts' => true,
			'delete_published_pages' => true,
			'delete_published_posts' => true,
			'edit_others_pages' => true,
			'edit_others_posts' => true,
			'edit_pages' => true,
			'edit_posts' => true,
			'edit_private_pages' => true,
			'edit_private_posts' => true,
			'edit_published_pages' => true,
			'edit_published_posts' => true,
			'manage_categories' => true,
			'moderate_comments' => true,
			'publish_pages' => true,
			'publish_posts' => true,
			'read' => true,
			'read_private_pages' => true,
			'read_private_posts' => true,
			'upload_files' => true,
			'copy_posts' => true,
		)
	);
}

add_action( 'init', 'add_custom_role' );
}}}

Tested CSS:

{{{
body > a {
color: #fff;
}
}}}

Actually CSS output:

{{{
body &lt;
a {
color: #fff;
}
}}}

The data is stored correctly in the database, so it doesn’t seem to be a problem during the save function but rather during the output.

Tested with WordPress 5.5 and Twenty Seventeen theme."	kittmedia
	64621	Custom fields disapearing		Customize	6.9.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2026-02-10T14:27:47Z	2026-02-17T09:41:25Z	"Hi,

WP 6.9.1 with Gutenberg and Twenty 25. I try to use only free (= without Premium) plugins.

I use Pods for creating custom fields. It is OK and I can add them in templates. When the fields are set up, they appear perfectly.

I used them in products for WoCommerce in the custom field.

I have to create a new field (they do not appear in the list). The run is full erratic and so it is difficult to describe. One time, you can add the field name, but without the value name, one time no. When you update the value name, and you update the product, the value disappears... even in the db, so the field does not appear in the site.

I know that my report is quite a bit strange, but if you can't reproduce this behaviour, please tell me advice and I will try to clear.

Test on Firefox 147 on Linux.
"	pkwp73
	43074	Custom site identity Crop Image function does not work for images smaller than 512px		Customize	4.9.1	normal	normal	Future Release	defect (bug)	new		2018-01-11T22:52:34Z	2021-05-30T17:20:37Z	"Site Identity image.
After the image source is selected, crop image popup window arises.
Then the image is shown in a crop frame, but crop function does not work as crop frame does not react to mouse.

Wordpress 4.9.1
Firefox 57.0.4 64
Internet Explorer  11.192.16299.0"	obermeister8080
	55587	Customize preview removes URL query parameters of the same name and keeps only the last one		Customize		normal	major	Awaiting Review	defect (bug)	new		2022-04-18T17:41:22Z	2022-04-18T17:41:22Z	"It seems that when the customizer is rebuilding some of the URLs on the page if there are multiple query parameters of the same name/key (an array) in the URL, it only keeps the last one and removes the others.

For example, while in Customizer, if you add a menu item with a custom link of `/my-page/?myvar[]=A&myvar[]=B` the URL of the menu for the preview is rewritten to `/my-page/?myvar[]=B&customize_changeset_uuid=...`, losing `myvar[]=A`.

This is also happening to the URL of the page itself (the preview's IFRAME src) when for example there is a form with a multi-select field submitted. Assume we have the form below on /my-page/:

{{{
    <form method=""get"" action=""/my-page/"">
          <select name=""myfield[]"" multiple=""multiple"">
            <option value=""A"">A</option>
            <option value=""B"">B</option>
            <option value=""C"">C</option>
            <option value=""D"">D</option>
          </select>
          <input type=""submit"" value=""Apply Filters"">
    </form>
}}}

If you select A and B and C and submit the form, it is expected that that page refreshes with the new URL of `/my-page/?myfield[]=A&myfield[]=B&myfield[]=C&customize_changeset_uuid=...`, however, I am seeing the following URL instead with the A and B values lost in the preview's IFRAME src: `/my-page/?myfield[]=C&customize_changeset_uuid=...`"	xParham
	42873	Customize: Allow themes to be installed when SFTP credentials required		Customize	4.9	normal	normal	Future Release	defect (bug)	new	has-patch	2017-12-11T19:07:31Z	2018-01-15T18:46:31Z	"Split out from #42184.

Next steps:
- Revert [41997]
- Use [https://core.trac.wordpress.org/attachment/ticket/42184/42184.2.diff 42184.2.diff] 
- Fix the two known bugs: incorrect labels after cancelling the modal, and fix broken buttons after cancelling the modal

Note that with [https://core.trac.wordpress.org/attachment/ticket/42184/42184.2.diff 42184.2.diff], SFTP appears to work as expected. The only issues are with canceling the modal, which happens much more in testing than in practice. [41997] seems like an overreaction to the minor bugs that we need to track down with that, which may seem worse than they are because they are more apparent in a testing workflow than in real usage. Either way, the fixes for that should not be particularly difficult. I'm not planning on working on this issue further, so someone else can take it on."	celloexpressions
	42872	Customize: Improve display of theme tag filters on mobile		Customize	4.9	normal	normal	Future Release	defect (bug)	new		2017-12-11T19:04:32Z	2017-12-11T19:04:32Z	"Split out from #42212.

The filter bar disappears on screens shorter than a magic number (or narrower than a different, also magic number), unless you scroll all the way up to the top (quite difficult with one-column infinite scroll of themes). I don't happen to use this feature on any devices that would be affected by this problem, but the experience is quite subpar for those users currently. I'm guessing there might be some issues with CSS caching in the above screenshots, or, those that worked on the previous changes in this ticket may have a better idea of why certain browsers don't like something here. Probably worth exploring before 4.9 release if anyone is able to do that, though."	celloexpressions
	66421	"Customizer ""Close"" button returns to the upload-theme confirmation screen after a theme ZIP update, causing a ""Please select a file to upload"" error"		Customize		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-30T10:57:58Z	2026-10-31T20:54:37Z	"**Steps to reproduce**
1. Go to Appearance > Themes > Add New > Upload Theme.
2. Upload a ZIP file for a theme that is already installed (same slug), and confirm the ""Replace current with uploaded"" / overwrite prompt.
3. On the resulting confirmation screen (URL pattern: `wp-admin/update.php?action=upload-theme&package=<id>&overwrite=update-theme&_wpnonce=...`), click ""Customize"" (or ""Live Preview"") to open the Customizer directly from that screen.
4. Inside the Customizer, click the Close (X) button / back arrow to return to the admin.

**Expected behavior**
The Customizer should return to a valid, reusable admin screen – e.g. the Themes overview (`themes.php`), similar to the existing fallback added in #46686 for a return URL that belongs to an inactive theme.

**Actual behavior**
The Customizer navigates back to the exact upload-confirmation URL it was opened from (`update.php?action=upload-theme&overwrite=update-theme&package=...`). Because this URL is normally only valid as the result of a POST request that included the uploaded file, reloading it via a plain GET request (as the Customizer's close action does) re-triggers the upload-theme handler without any file attached, which then shows the core error message ""Please select a file to upload."" (German: ""Wähle bitte eine Datei."") instead of returning the admin to a usable screen.

**Notes**
- This looks closely related to #46686 (""Customize Close Button Not Updating URL"", fixed in 5.4 via changeset [46754]), which added a fallback to the Themes screen when the Customizer's stored return URL points to a page that is no longer valid for the active theme. That fix does not appear to cover this case, since the upload-theme confirmation URL is technically still ""allowed"" (the current user has access to it) – it simply isn't meant to be reloaded as a bare GET request.
- A possible fix: when the Customizer is opened directly from the upload-theme confirmation screen, store the Themes overview (`themes.php`) as the return URL instead of the confirmation screen's own URL – consistent with the existing fallback logic from #46686.

**Environment**
WordPress version: 7.1.4
Browser: Microsoft Edge 156.0.4314.50
Theme used to reproduce: any theme that supports the Customizer (reproduced with a custom theme; should be theme-independent since the bug is in `wp-admin` core, not in any theme code)
Multisite: no"	jlamade1986
	33267	Customizer Theme details: too many events		Customize	4.2	normal	normal	Future Release	defect (bug)	new	has-patch	2015-08-04T23:28:42Z	2021-05-23T17:49:12Z	"This happen just in the Customizer Theme details modal, not in the Themes screen. To reproduce, go in the Customizer and press the ""Change"" button next to the Active Theme title. Choose one of the themes in the left sidebar and press the ""Theme Details"" button.
When the Theme Details modal opens the first time, there's just one `keydown` event attached to the theme overlay:

[[Image(https://cldup.com/66ZTntnIuP.png)]]

Now, navigate forth and back clicking on the next and previous arrows in the top left to see more themes details. After 10 times, there will be 10 `keydown` events attached:

[[Image(https://cldup.com/kNtc6D9dsy.png)]]

And so on and on, after 15 times, 15 `keydown` events attached, etc.:

[[Image(https://cldup.com/5tgfv95ieb.png)]]

What's happening? Every time next and previous are clicked, `api.ThemesSection.showDetails()` will replace the html in the modal to show the new details and it will also call each time `api.ThemesSection.containFocus()`.

Then, `containFocus()` will attach a new `keydown` event each time it runs :( and it will also run each time jQuery UI `:tabbable`. At the end, after you navigate a few times in the Themes Details and then you tab inside the modal, it's very easy to run `:tabbable` literally hundreds of times for each ""Tab"" key press.

Notice all this doesn't happen in the Themes screen because the div where events are attached to gets completely replaced by jQuery `html()` which removes also any data and events. This is not the case in the Customizer where events are attached to the theme overlay div which doesn't get replaced.

To my understanding this should be refactored a bit:
* attach the `keydown` event just once, in the attachEvents() function
* split containFocus() in two separate functions:
 * a simplified containFocus() to just check the event keys and move focus
 * a new getTabbables() to get the tabbable elements just once for each theme details.
* store the tabbables in a variable to be updated with getTabbables()"	afercia
	63042	Customizer accordion sections do not respond to click		Customize	6.7	normal	normal	Awaiting Review	defect (bug)	new		2025-03-02T01:31:54Z	2025-03-11T15:19:41Z	"I last updated my theme in Oct. 2022, so it now has the 2 year warning on it. In order to test with the latest WP, I fired it up at https://wpsandbox.net/create/ and specifying the theme directly from the repository: https://wordpress.org/themes/twenty8teen/ .
The front end works great, but this ticket is about some change that happened in the **wp-admin/js/accordion.js** which makes the theme's Customizer accordion not work.
There is only one place to see it: install my theme and go to Customizer > Theme Advanced. **Clicking** on any of the presets in the list should open that section, but it does nothing.

I have WP 6.4.5 locally, and it works there. I downloaded WP 6.6 to try, and it also fails. (Update: I tested it, but now notice it updated to 6.7.2, which I didn't realize until after.)
The following code is minimized, but I see that there is a difference between the working one and the failing one. It is the function from wp-admin/js/accordion.js that is attached to the click event on the div which is my control.
From WP 6.4.5 (working) (and there is also a keydown event there)
{{{
function(e) {
  var n, o, a, i, t;
  ""keydown"" === e.type && 13 !== e.which || (e.preventDefault(), e = (e = s(this)).closest("".accordion-section""), 
n = e.find(""[aria-expanded]"").first(), o = e.closest("".accordion-container""), 
a = o.find("".open""), i = a.find(""[aria-expanded]"").first(), 
t = e.find("".accordion-section-content""), e.hasClass(""cannot-expand"")) || (o.addClass(""opening""), e.hasClass(""open"") ? (e.toggleClass(""open""), t.toggle(!0).slideToggle(150)) : (i.attr(""aria-expanded"", ""false""), a.removeClass(""open""), a.find("".accordion-section-content"").show().slideUp(150), t.toggle(!1).slideToggle(150), e.toggleClass(""open"")), setTimeout(function() {
    o.removeClass(""opening"")
  }, 150), n && n.attr(""aria-expanded"", String(""false"" === n.attr(""aria-expanded""))))
}
}}}


From WP 6.6 (failing) (and no keydown event)
{{{
function() {
  var n, o, e, a, t, i;
  n = s(this), o = n.closest("".accordion-section""), e = o.closest("".accordion-container""), 
a = e.find("".open""), t = a.find(""[aria-expanded]"").first(), 
i = o.find("".accordion-section-content""), o.hasClass(""cannot-expand"") || (e.addClass(""opening""), o.hasClass(""open"") ? (o.toggleClass(""open""), i.toggle(!0).slideToggle(150)) : (t.attr(""aria-expanded"", ""false""), a.removeClass(""open""), a.find("".accordion-section-content"").show().slideUp(150), i.toggle(!1).slideToggle(150), o.toggleClass(""open"")), setTimeout(function() {
    e.removeClass(""opening"")
  }, 150), n && n.attr(""aria-expanded"", String(""false"" === n.attr(""aria-expanded""))))
}
}}}
"	joyously
	33139	Customizer on mobile: 'Save & Publish' button may overflow when translated.		Customize		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2015-07-27T12:50:16Z	2021-05-23T17:46:38Z		iseulde
	57128	Customizer shows link to site editor when previewing themes		Customize	5.9.3	normal	minor	Future Release	defect (bug)	new		2022-11-16T12:22:30Z	2023-02-14T05:30:08Z	"#54878 removes the link to the customer from the theme installer in some cases, and #57127 will cover another, but if a user navigates directly to the customizer with a theme get var then they still get a confusing experience.

Repro steps:
 1. Activate a block theme e.g. twenty twenty-three
 2. Install an additional block theme but don't activate it
 2. Go to /wp-admin/customize.php?theme=loudness (where loudness is the slug of the installed but inactive block theme)
 3. Notice you are previewing the second, inactive theme.
 4. Get a notice saying 'Hurray! Your theme supports site editing with blocks. Tell me more. [ Use Site Editor]'
 5. Click Use Site Editor (goes to /wp-admin/site-editor.php?postType=wp_template&postId=twentytwentythree%2F%2Fhome)
 6. You will be editing the active theme and not the theme you were previewing

I expected to be editing the theme I was previewing."	dsas
	54063	"Customizer: First autosave after publish moves you out of the ""Block Settings"" area"		Customize		normal	normal	Awaiting Review	defect (bug)	new		2021-09-02T19:11:59Z	2022-01-03T21:48:03Z	"Inside the customizer, I can open the widget section and edit blocks using gutenberg. For any block, I'm able to use the 3 dots menu and choose ""Show more settings"" to access Gutenberg's ""Block Settings"" area. Here, I may want to make several changes, like changing the text color, the background color, and the font size. However, in some circumstances, after making a single change, I'm taken out of the ""Block Settings"" area for seemingly no reason.

I've found that certain plugins and themes can make this happen on more occasions (for example, on every autosave instead of only the first), but I have steps to recreate on a completely new, out of the box install using `wp-env`. As of now, this is 5.9-alpha-51726. My gutenberg repo is on da052f066b0f from 2021-09-02.

Steps to reproduce
- Cloned https://github.com/WordPress/gutenberg
- Cd into it and `wp-env destroy && wp-env start` to create a clean WP
- Visit http://localhost:8888/wp-admin/ and login with admin:password
- Appearance -> Customize in sidebar menu
- Widgets in sidebar menu
- Plus sign button to create a new block, select paragraph block, type ""hello"" into it
- Click on the block you just added to see the floating gutenberg bar
- Click the three dots menu then select ""Show More Settings""
- Change the text color
- Click 'publish'
- Click on the block you just added to see the floating gutenberg bar
- Click the three dots menu then select ""Show More Settings""
- Change the text color
- Expect to see: Remain in the ""Block Settings"" area
- Actually see: You are taken out of the block settings area

Video: https://user-images.githubusercontent.com/937354/131900785-c9f3e678-349d-43fa-9862-ba712740ed03.mp4

This has something to do with Autosave in conjunction with [https://github.com/WordPress/wordpress-develop/blob/40edc2addb5284804e698beda487206f8dd70992/src/js/_enqueues/wp/customize/controls.js#L7207-L7216: this code] from the customizer. I remove the line `api.state( 'saved' ).bind( updateSectionActive );`, the bug no longer happens.

I am confused why it happens sometimes and other times it does not. However, my steps to reproduce should always work. The reason this is an issue is when using blocks with complicated interfaces in this section, it becomes very difficult to use in the customizer, since potentially every change can bring you back and force you to choose ""... -> Show More Settings"" before doing more work."	mreishus
	54443	"Database Error Breaks ""custom_css_post_id"" Theme Mod"		Customize	4.7	normal	normal	Future Release	defect (bug)	new	has-patch	2021-11-15T11:41:06Z	2026-10-13T07:49:39Z	"We have now seen this issue on a couple of WordPress installations and it is rare but it happens.

When MySQL falls over during a page load (for RAM issues or whatever) the request on line 1863 of **/wp-includes/theme.php** ...

{{{#!php
<?php
		$post_id = get_theme_mod( 'custom_css_post_id' );
}}}

... fails or it might be line 1866 ...

{{{#!php
<?php
			$post = get_post( $post_id );
}}}

... that fails.

Either way, when line 1877 is executed and the database has by then recovered ...

{{{#!php
<?php
			set_theme_mod( 'custom_css_post_id', $post ? $post->ID : -1 );
}}}

... this results in the **custom_css_post_id** theme mod being set to -1 and all the Additional CSS is seemed to be wiped out from the Customizer.

At this point the content of the post with post_type set as custom_css in the database has to be copied back into ""Customizer - Additional CSS"".

Here is an example of a PHP error around the time that this happened ... please note that we have seen it happen on completely different themes and most recently on the latest version of WordPress (yesterday) ...

{{{
[24-Feb-2021 20:46:45 UTC] WordPress database error Server shutdown in progress for query SELECT * FROM wp_posts WHERE ID = 2213700 LIMIT 1 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/plugins/wp-property-feed/templates/archive-wppf_property.php'), get_header, locate_template, load_template, require_once('/themes/twentyseventeen/header.php'), wp_head, do_action('wp_head'), WP_Hook->do_action, WP_Hook->apply_filters, wp_custom_css_cb, wp_get_custom_css, wp_get_custom_css_post, get_post, WP_Post::get_instance
}}}

To fix this issue from re-occuring I think that **set_theme_mod** on line 1877 is replaced with ...

{{{#!php
<?php
			if ($post) {

				set_theme_mod( 'custom_css_post_id', $post->ID );

			}
}}}

... so that the theme mod cannot be broken and CSS cannot be lost when the database has a blip.

What do you think?

Oliver"	domainsupport
	44968	Header Text color option doing two jobs, so both suffer		Customize		normal	normal	Awaiting Review	defect (bug)	reopened	close	2018-09-19T20:39:00Z	2025-06-24T14:35:49Z	"There are two issues, both of which have been addressed before. #23761, #22498

The Header Text color option and the Display Site Title and Tagline option use the same storage space (theme_mod), so there is no way to hide the title and use the color for other header text, and when the title is unhidden the color is (sort of) the default.

Steps to reproduce:
1. In Customizer, note the header text color for comparison later.
2. Hide the site title.
3. Save and exit the Customizer.
4. Open Customizer and unhide the site title.
5. Look at the header text color and compare to value from step 1.

What I expect:
1. The header text color could be used for other header text besides the site title. Hiding the title should not hide the color selection.
2. The color set before the title was hidden should be restored when the title is unhidden.

What actually happens:
1. The color option is used to indicate the visibility of the site title, so the color is set to 'blank'.
2. Other text in the header cannot be styled with the header text color if the site title is hidden.
3. When the site title is unhidden, the header text color option shows a color for the swatch that is the default color, but the text input box is empty and the color indicator shows black (as if it were 0).

Or just set the color of the header text, hide it, unhide it, and the color you chose is gone.

I think it should be two separate options for color and hiding. I don't know how that would affect backward compatibility, but it is the best solution."	joyously
	50060	Header Video: Use playVideo after mute instead of autoplay to prevent video blocking because of autoplay with sound enabled		Customize		normal	normal	Awaiting Review	defect (bug)	new		2020-05-02T22:11:50Z	2021-06-01T02:53:06Z	"Hi,

wp-includes\js\wp-custom-header.js uses autoplay to play video.

When it's a video managed by the NativeHandler, the mute attribute is set on the creation of the video element, so there is no problem.

But when it's a YouTube video managed by the YouTubeHandler, the YouTube player is created with the autoplay option active, and the video is muted on the onReady event of the YouTube player. So it can happend that the video tries to autoplay before beeing muted, especially with Firefox, then the video is stopped by the web browser because there is autoplay with sound enabled. 

I propose to use e.target.playVideo() after e.target.mute() instead of autoplay to prevent the web browser from blocking the Youtube video if the autoplay starts before e.target.mute() is executed.

Please see https://github.com/WordPress/WordPress/pull/471 with the pull request to correct the bug with this solution (or attached files).

Best regards,
Olivier Blanc, web developper"	olivierblancdev
	46422	"Improve the Customizer header ""placeholder"""		Customize		normal	normal	Awaiting Review	defect (bug)	new		2019-03-05T18:42:24Z	2020-03-23T18:52:51Z	"Splitting this out grom #43151.

In #43151, all the Customizer ""placeholders"" used for the site logo, site icon, background image, and media widgets have been replaced with real `<button>` elements. For more details, please refer to that ticket.

There's one special case left though: the header image ""placeholder"". This ""box with dashed border"" looks like a clickable thing but it's not clickable. The header image control works in a very peculiar way and its ""placeholder"" is only informative. Also, it has a few different states, depending on the current setting (see screenshot below).

Its purpose is to communicate different states:
- no image
- randomizing uploader headers
- randomizing suggested headers
- finally, when a single image is set as header, it's replaced by the image

To remove the potential confusion, I'd like to propose the simplest option: just make it look ''not'' clickable. Making it look like an ""info"" notice (the one with the blue border on the left), would make it clear it just communicates the current state and it's not clickable.


"	afercia
	31970	Live Preview header image crop is not correct size		Customize		normal	normal	Awaiting Review	defect (bug)	assigned		2015-04-14T15:51:37Z	2017-03-21T18:34:08Z	"Steps to reproduce
- Activate Twenty Fifteen
- Live Preview Twenty Eleven
- Add new header image and crop it
- See that the image is large and distorted

When you first select a new header image and are choosing where to crop it, everything looks good. Once you click crop and it shows the live preview, you can see that the image is the incorrect size."	MikeHansenMe
	44598	Main logo won't update when deleted and reuploaded with the same file name		Customize		normal	normal	Awaiting Review	defect (bug)	new	close	2018-07-17T16:37:15Z	2026-03-21T02:25:24Z	"Hello,

I'm experiencing the following bug:
Adding a main gif logo in customizer by the media library and permanently deleting it, obviously does NOT permanently delete it but leaves some traces. When I change the color and/or the image format and reupload the slightly different file WITH THE SAME FILE NAME, WordPress displays the correct resolution in the attachment details along with the old thumbnail. Thus, although the image has been changed and rendered correctly, as I can see in the wp-content folder, the old image gets displayed on the page instead of the new main logo. Same for the cropping option before inserting. Refreshing the page doesn't help.

Regards"	mimoho
	63234	Misalignment of post items in WordPress menu customization panel		Customize		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-04-04T06:19:57Z	2025-04-04T07:55:58Z	"== Issue:

In the WordPress menu customization panel, when adding an item to the menu, the item appears over the section title “Posts” instead of being correctly aligned within the list.

== Steps to reproduce:
1.	Navigate to Appearance > Customize > Menus.
2.	Create a new menu or edit an existing one.
3.	Click “Add Items” and expand the Posts section.
4.	Click on `Posts` in the add items.

== Screenshots:
[[Image(https://i.postimg.cc/PqWWSZ8c/Screenshot-2025-04-04-at-11-23-27-AM.png)]]"	ankitkumarshah
	64760	Site Icon and Site Logo remove button styling inconsistent in Customizer		Customize		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-02-28T09:30:11Z	2026-04-12T04:38:34Z	"In Customize → Site Identity, the “Remove”, “Change image”, and “Change logo” buttons use the same styling and color.

However, in Settings → General (Site Icon), the “Remove Site Icon” button has updated styling introduced in changeset [https://core.trac.wordpress.org/changeset/61770/ r61770], with clearer boundaries and distinct visual treatment.

For consistency, the Site Icon and Site Logo buttons in the Customizer should follow the same styling as the updated “Remove Site Icon” button in Settings → General.

Steps to reproduce:

 1. Go to Settings → General → Site Icon.
 2. Go to Appearance → Customize → Site Identity.
 3. Compare the button styling.

Expected behavior:

Buttons in the Customizer should match the updated styling from Settings → General."	huzaifaalmesbah
	54211	Small css bug when using customize-controls in customizer.php		Customize	3.4	normal	minor	Awaiting Review	defect (bug)	new	dev-feedback	2021-10-02T11:21:51Z	2022-09-09T10:34:04Z	The form code is wrong in the css for some elements. To reproduce problem, add in customizer.php custom two customize-control-radio and two customize-control-select. You see the 'radio' has extra 10px padding on bottom. The 'select' is missing the 10px padding. So it looks very bad when you organize the elements. So either remove the 10px or add the 10px to the 'select' css.	akissz
	45669	Theme Default Suggested Header Image Not display		Customize	5.0.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2018-12-17T08:03:45Z	2019-11-09T09:15:31Z	"
After Theme Setup, changes on default we select default image will not save after the publish of suggested image in customize section in every them i tested please resolve this bug."	deepaksk45
	37882	Typo in the tests/qunit/wp-admin/js/customize-header.js		Customize	3.9	normal	normal	Future Release	defect (bug)	new	dev-feedback	2016-08-30T13:56:49Z	2019-04-18T19:02:19Z	Fix test header in the 'Custom Header: HeaderImage shouldBeCropped()' module	tymvie
	46596	WP_Customize_Date_Time_Control class - date format ignores day of the month suffix (S)		Customize	4.7	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-03-21T22:57:07Z	2026-01-25T10:57:37Z	"When adding a date time control to the customizer using the WP_Customize_Date_Time_Control class with the add_control() method, the character for the day of the month suffix (S) is not replaced/stripped when formatting the date and gets displayed in the customizer.

See attached image.

Like other date formatting characters, the suffix should either be replaced with the get_option( 'date_format' ) value or be removed completely."	F.Ilona
	49666	customizer doesn't works when backslash is use in site title		Customize	5.3	normal	normal	Future Release	defect (bug)	new	has-patch	2020-03-19T10:24:01Z	2022-06-16T03:50:57Z	"If there is ""\"" in the page name, ""Appearance> customize"" stops working as in the attached screenshot.
[[Image()]]"	rumyan
	64905	Add link to WP Repo in Theme Preview screen		Customize		normal	normal	Future Release	enhancement	new	has-patch	2026-03-19T17:08:57Z	2026-07-10T02:21:07Z	"While searching for a theme at page wp-admin/theme-install.php you can click Details & Preview and a live preview opens.

Sometimes you want to learn more about the theme. The attached PR adds a link to the theme page in the WP Repo."	Guido07111975
	54119	Customize: Always Show Homepage Settings		Customize	4.7	normal	normal	Future Release	enhancement	new	dev-feedback	2021-09-14T06:58:32Z	2021-09-18T03:01:09Z	"== Summary

The options at Appearance → Customize →  Homepage Settings are contextual. They appear only if the user has at least one published page. I am proposing tp always show Homepage Settings, regardless of the presence of published pages.

== Why

When you start a new website, the first page you think about is your homepage. So, when you go to look for Homepage Settings, you may not have published a page yet. Or, maybe you start working on your homepage, but it's still a draft.

In this scenario, Homepage Settings is not there at all. A user who visited Customize would have checked there and not seen anything related to setting the homepage, so they would not think to check again for it after publishing their first page.

If Homepage Settings were to always show, a user would immediately learn where to set a homepage, even if no pages appear in the dropdown yet to select their homepage.

It's also worth noting that at Customize → Homepage Settings, you can use the 'Add New Page' option to create a new page using this interface, therefore a user with no pages yet can create their homepage here.

By always showing Homepage Settings, this will avoid the confusion a new user faces with Homepage Settings not being present in Customize."	donalirl
	41126	Customizer does not work if both wp_footer() and wp_head() functions are not present in the theme.		Customize	4.7	normal	normal	Future Release	enhancement	new		2017-06-22T14:56:18Z	2017-07-05T21:06:03Z	I know there is another ticket (#14752) that refers to when wp_head() and wp_footer() are not present in the theme and it was discarded. But in this case, I refer specifically to the Customizer. Since it will not work when those functions are missing, maybe we can disable it completely (maybe with a dismissible notice in the head) or find a way to include the necessary files and data and make it work even when those functions are missing.	mdifelice
	39609	"Customizer should display ""Fade"" effect for entire iFrame for settings using partialRefresh when selector is not visible"		Customize	4.5	normal	normal	Future Release	enhancement	new		2017-01-17T01:30:41Z	2017-11-06T17:26:53Z	"When modifying the value of a setting in the customizer that uses partialRefresh for the transport, typically, the element that is being modified on the live site fades out as the customizer replaces the element with the correct output. This gives the user a nice visual letting them know to be patient as the output is modified.

In some cases, the element being modified may not be visible in which case there is no cue to the user to let them know things are being updated.

A good example would be an advanced setting for changing the color scheme of the site which adds inline CSS to the head tag. Here is a little video example: https://cl.ly/illS (I don't use postMessage for this setting because there are filters in place so developers can hook in custom elements to be modified and for 3rd party plugin support).

I'm sure there are other circumstances where a setting may be altering a ""hidden"" element. This is just one example and while there is very little delay in my specific example, I believe for consistency and UI purposes it would make sense to add the extra check to see if the element is visible and if not fade-out the whole iFrame during the refresh process.

Thank you for considering!"	AJClarke
	43469	Native Site Icon feature in Customizer is outdated		Customize	4.3	normal	normal	Future Release	enhancement	new		2018-03-04T14:17:06Z	2021-05-31T15:07:39Z	"Hi,

The native Site Icon feature in Customizer is outdated and should be updated.

Windows:
1) There's only 1 Windows Tile (270x270px). To cover newer devices there should be a delcaration for the small, medium, wide and large Tile. 
Source [https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/samples/dn455106(v=vs.85) here].
2) There should be a colorpicker for the Windows Tile.
3) Because the wide Windows Tile is rectangular (310x150px), there should be an additional file input for this Tile.
4) To overwrite the prefered XML browser configuration file, this should be added: 
{{{<meta name=""msapplication-config"" content=""none"" />}}}
 
Regarding 2 and 3 check attachment.

iOS:
5) Instead of using {{{rel=""apple-touch-icon-precomposed""}}} it's more common to use {{{rel=""apple-touch-icon""}}} nowadays. Example:
{{{<link rel=""apple-touch-icon"" sizes=""180x180"" href=""/apple-touch-icon.png"">}}}

Guido
"	Guido07111975
	38947	Proposition to add an optimized api.Events manager to the api.Value constructor		Customize	4.7	normal	normal	Future Release	enhancement	new	has-patch	2016-11-26T11:21:36Z	2019-12-05T05:19:54Z	"It would be convenient to be able to bind, unbind and trigger `api.Value` instances by event id, instead of using only functions param like it's the case now.

The `api.Values` constructor is already extended with the `api.Events` manager object, which is very useful. I propose to do something similar with the `api.Value` constructor.

In order to not overload the `api.Value.topics` object with anonymous functions, a possible optimization would be to fallback on the previous binding method of `api.Value`, with a function type param directly added to the `api.Value.callbacks` ( `$.Callbacks` ) object, if no id is provided for the callback, and to populate the `api.Value.topics` property only when an id has been provided on binding.
"	nikeo
	55766	Site icon checkbox to use the site logo		Customize		normal	normal	Awaiting Review	enhancement	new		2022-05-18T09:16:08Z	2022-05-18T16:59:50Z	​Logo and site icon are mostly the same. ​I suggest a checkbox near the site icon selection panel to indicate that the logo can be used. Most users use the logo as site icon. 	martiniwebb
	29948	Use contextual controls (active_callback) API for conditionally-displayed core contextual controls		Customize	4.0	lowest	normal	Future Release	enhancement	new		2014-10-13T18:18:28Z	2017-02-20T18:33:50Z	See `wp-admin/js/customize-controls.js`, near the bottom. Rather than doing some unstructured JS to show/hide controls based on the values of other settings, this should use custom callbacks for the active_callback argument when adding the control (in php).	celloexpressions
	46629	Allow replacing placeholders in starter content posts/pages content		Customize	4.7	normal	normal	Future Release	feature request	new		2019-03-24T21:43:51Z	2019-06-12T18:32:59Z	The ability to create posts/pages doesn't really offer a whole lot of use out the gate unless a theme uses hardcoded urls for images in the content.  It would be a great improvement if the same handling for placeholders in menus/theme_mods/options could be applied in context of posts/pages content.	timph
	53688	add super admin feature to help developer		Customize		normal	major	Awaiting Review	feature request	new		2021-07-19T06:32:02Z	2021-07-19T08:09:13Z	"hello wordpress team . 
i am a developer from nepal . i use to manage different company websites . Many of my clients ask admin when i provide them admin they damage website because they are not tech savvy . sometime they make error white they try to change some data using theme editor . so i request to make one use like super admin or developer which we have feature to edit / download . delete theme and plugins but super admin have to give access to administrator user access to edit anything functionally . admin user can add user and remove user at their level but cant access to theme and plugin  so it will help developers to save their time of solving bugs create by clients . 
we can disable theme edit and plugin edit from wp-config file but if we want to add new plugin we should upload it using ftp and we have to save that file in our pc so it will be more time consuming . 

i hope you have understand my issue and make this feature as soon as possible . thank you . "	janakkafle
	46923	$wpdb->get_var() — empty sting becomes a NULL		Database	5.1.1	normal	normal	Awaiting Review	defect (bug)	new		2019-04-14T15:47:24Z	2019-04-15T17:07:42Z	"Because of the following condition, we get `NULL`, even if a real field value is an empty string!

{{{#!php
<?php
return ( isset( $values[ $x ] ) && $values[ $x ] !== '' ) ? $values[ $x ] : null;
}}}

[source:tags/5.1.1/src/wp-includes/wp-db.php?marks=2460-2478#L2455 See `wp-db.php` Line 2477]

I think it is better to delete `$values[ $x ] !== ''` check and return field value as it is if it exists - what is usually meant by NULL in PHP (empty string is not null!).
"	Tkama
	39811	Bug maybe_unserialize() broke mysql data.		Database	4.7.2	normal	normal	Awaiting Review	defect (bug)	new		2017-02-08T13:53:06Z	2017-02-20T06:34:57Z	"I have an issue what is realated to maybe_unserialize() function.

Example:

When someone made MySQL export or backup and you want that data to import in database again, widgets, some plugin setup, some template setup, particular WPBakery Visual Composer or similar visual editors lost it's setup.

To get all work well I change function into this:


{{{
function maybe_unserialize( $original ) {
    if ( is_serialized( $original ) ) {
        $fixed = preg_replace_callback(
            '!(?<=^|;)s:(\d+)(?=:""(.*?)"";(?:}|a:|s:|b:|i:|o:|N;))!s',
            'serialize_fix_callback',
            $original );
        return @unserialize( $fixed );
    }
    return $original;
}
function serialize_fix_callback($match) { return 's:' . strlen($match[2]); }
}}}

-wit this code I get all data to work well but I'm unable to install new plugins or made any kind of update.

What to do with it, how to fix this problem and can you made some update to this code or add some solution to not happen this problems?

Here is also my StackOwerflow question: http://wordpress.stackexchange.com/q/255591/82023

Thanks!"	ivijanstefan
	60505	Column names in wpdb->insert aren't sanitized.		Database	6.4.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-02-12T13:14:50Z	2026-11-07T06:13:22Z	"Column names in wpdb->insert aren't sanitized, although the documentation says: ""Data to insert (in column => value pairs). Both $data columns and $data values should be “raw” (neither should be SQL escaped).""

Steps To Reproduce:

{{{#!php
<?php
global $wpdb;
$wpdb->insert(""wp_posts"", array(""id`) VALUES (sleep(1)); -- "" => 0));
}}}

This will sleep one second.

The WordPress security team has reviewed this and asked to open a public ticket.
"	kazet
	63825	"Creating a post containing UTF-8, then changing WP_CHARSET to ""latin1"", makes posts un-editable."		Database	6.6.2	normal	normal	Awaiting Review	defect (bug)	new	close	2025-08-13T01:38:50Z	2025-09-22T22:29:13Z	"Context: I have a very old (circa 2007) WordPress install which I have been dutifully updating for 18 years. I post infrequently (my last two posts were in 2024 and 2016 respectively). Apparently when I first set this blog up, my posts were being made with the latin1 charset. Somewhere around 2020, WordPress silently switched to a different charset (I assume UTF-8). As a result, my old posts (the 2016 one and before) had all special characters become ""garbage"", for example ""…"" became ""â€¦"" (see attachment ""mojibake1"") whereas the unicode characters in my 2024 posts were displayed correctly. (This is not the problem.) In a bid to fix this, I today tried adding ""define('DB_CHARSET', 'latin1');"" to my wp-config.php and restarted apache. I then found the 2016-and-before posts had correct special characters, whereas the 2024 post, I guess unsurprisingly, now showed garbage for all unicode characters (see attachment ""mojibake2""). (This is still not the problem.)

The problem: Once I had added ""define('DB_CHARSET', 'latin1');"" to wp-config.php, my 2024 (""UTF-8 containing"") post became non-editable. Clicking ""edit"" on it brings up a blank white page in the block editor (see attachment ""editor1""). With the DB_CHARSET unset, opening the 2024 blog post shows me the block editor as expected (see ""attachment editor2"") and commenting the DB_CHARSET line out in wp-config restores block editor functionality. Oddly, if I install the ""Classic Editor"" plugin and try to edit the text of the 2024 post, even in text mode the classic editor shows only a blank window (see attachment ""editor3""). In none of these scenarios is an error message shown.

The problem is not the date at which the 2024 post was created; the problem is the actual presence of the UTF-8 character bytes. I know this because I did the following: I commented-out my DB_CHARSET line (ie reset DB_CHARSET to defaults). I edited my 2024 post in the block editor, and I edited out all Unicode symbols (¹²³…) replacing them with plain ASCII equivalents. I then turned ""'DB_CHARSET', 'latin1'"" back on. Going back into the backend, I now find that the 2024 post is entirely editable, even in latin1 mode, and both the 2024 and 2016 post appear correctly. Conclusion: The editor is seeing UTF-8 bytes while constructing the editor page and bailing out silently.

Expected behavior: The post should be editable regardless of what the DB_CHARSET is set to. But if there is a technical reason why a post containing UTF-8 cannot be edited when DB_CHARSET is set to latin1, then I would expect a clear error message. I believe showing an error message is more important than the editor being functional, as a blank white page is *very* hostile and raises fears of data loss.

This is not a support request. I have a workaround (which, as described above, I have already applied) and my blog is currently working. But I believe you should fix this bug.


"	mcc111
	58559	Database error bug in wordpress current version		Database		normal	normal	Awaiting Review	defect (bug)	new		2023-06-16T13:10:15Z	2026-04-21T13:58:24Z	"{{{
2023-06-16  8:52:53 47 [Warning] Aborted connection 47 to db: 'wordpressdb' user: 'wpuser' host: 'localhost' (Got an error reading communication packets)
2023-06-16  8:52:53 46 [Warning] Aborted connection 46 to db: 'wordpressdb' user: 'wpuser' host: 'localhost' (Got an error writing communication packets)
}}}

I am constantly seeing read and write errors in database due to wordpress in the current version. I have been running wordpress for years.

Upon checking the logs the read errors last query is
{{{
SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID
                                        FROM wp_posts
                                        WHERE 1=1  AND (wp_posts.post_author = 2) AND ((wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish')))

                                        ORDER BY wp_posts.post_date DESC
                                        LIMIT 0, 32
}}}

The write error last query is

{{{
SELECT DISTINCT post_author FROM wp_posts WHERE post_type = 'post' AND post_status = 'publish' LIMIT 2
}}}

Both queries execute fine manually. The problem is not related to timeouts or max allowed packets as both execute manually.

I noticed they are both increasing the aborted clients value in mysql. There is also no quit sent at the end of the mysql connections.

It seems to be a bug within wordpress. I have literally gone through everything else possible to solve this bug."	zoddshop63
	57385	Disable foreign key checks when dropping tables inside wp_uninitialize_site() function	johnjamesjacoby*	Database		normal	normal	Awaiting Review	defect (bug)	accepted	dev-feedback	2022-12-24T15:01:09Z	2024-01-12T18:07:05Z	"By default when removing the tables from a subsite, if the table has foreign key constraint it wont drop the table resulting in tables not being removed.

so this line should be changed from this to

{{{
	foreach ( (array) $drop_tables as $table ) {
		$wpdb->query( ""DROP TABLE IF EXISTS `$table`"" ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
	}
}}}

{{{#!php
<?php

    $wpdb->query('SET FOREIGN_KEY_CHECKS=0;');
	foreach ( (array) $drop_tables as $table ) {
		$wpdb->query( ""DROP TABLE IF EXISTS `$table`"" ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
	}
    $wpdb->query('SET FOREIGN_KEY_CHECKS=1;');
}}}

or any other better alternative."	naveen17797
	55907	Failed to insert log entry: value too long		Database	5.9.3	normal	normal	Awaiting Review	defect (bug)	new		2022-06-03T06:30:35Z	2022-06-03T06:30:35Z	"Error log shows the following message:

`Failed to insert log entry: WordPress database error: Processing the value for the following field failed: [COLUMN]. The supplied value may be too long or contains invalid data.`

There's a chance this happens when the message contains an ampersand character (see [https://core.trac.wordpress.org/ticket/32315#comment:97 here]).

Regardless, if a value cannot be inserted into the database, it should at least be written to the error log, as this provides context for an otherwise generic message. This should be the case with ANY log insert failure, not just long ones.

Another helpful thing would be to output the call stack.

In this particular case, the ""Failed to insert log entry"" doesn't seem to be written by WordPress core, and the absence of context makes it very difficult to isolate the cause. Seeing the field value and call stack would be of great help."	galbaras
	52210	File URL gets saved even when upload fails		Database	5.6	normal	major	Awaiting Review	defect (bug)	new		2021-01-03T17:12:42Z	2021-02-09T17:49:59Z	"**Description**
''A File URL reference gets saved into the **wp_posts** table even when upload fails.
''
I recognized the issue when I uploaded a attachment into my WordPress Site.

Steps I performed:

**1. Uploaded a file that was not allowed (e.g a file with .svg ext)**
''The upload failed because I didn't had the ALLOW_UNFILTERED_UPLOADS Constant set to true.''

**2. Changed the ALLOW_UNFILTERED_UPLOADS constant to true and re-uplaoded the file.**
''The file upload worked this time.''

**3. Tried to open the attachment**
''I realized that the URL was altert by a filename**-1**.ext.''

**Things I checked:**

I checked the Changesets and found this Change Log: https://core.trac.wordpress.org/changeset/46822

**Conclusion**
I assume there is a Bug which saves the upload attempt into regardless if its completed successfully or not.

"	kkroeger93
	58286	"Growing database due to unnecessary transients containing ""g_url_details_response_"""		Database	6.2	normal	critical	Awaiting Review	defect (bug)	new		2023-05-10T13:44:03Z	2023-05-11T21:04:39Z	"I created 2 external links in the block editor. This created 2 different transients in the database in wp_options, that have a different dynamic part at the end:
{{{
_site_transient_g_url_details_response_ab62baf1c770821f259d255001f7a9b9
_site_transient_g_url_details_response_f6ce245428f26d29c355a44ceb3b9bf3
}}}

This transient contains ""g_url_details_response_"" and is produced by file class-wp-rest-url-details-controller.php

The value of such created transient is entire html from URL to which I link.

I only want to add some external link in gutenberg editor. Why on earth is necessary to parse the entire html from URL to which I link?

What if I will have for example 20 external affiliate links on one page and I will have 1000 such pages.

This will unnecessarily bloat the database with useless and unnecessary data!

How can I prevent the creation of transients whose name part contains ""g_url_details_response_""?

I tryed it using this filter:
{{{
apply_filters( ""pre_set_site_transient_{$transient}"", mixed $value, string $transient ) 
}}}

But it needs full transient name, which is created dynamically using this function
{{{
private function build_cache_key_for_url( $url ) {
	return 'g_url_details_response_' . md5( $url );
}
}}}
from file class-wp-rest-url-details-controller.php

So please remove these pointless transients from wordpress or give users a way to prevent them from being created!



Thank you for any reply,

david
"	davidki
	56260	In case of missing primary key on wp_posts, Media uploader gives false feedback indicating folder permissions are missing, where in fact database structure is malformed.		Database		normal	minor	Awaiting Review	defect (bug)	new		2022-07-20T15:59:51Z	2022-10-26T15:43:29Z	"Hi community,

Files won't upload to the media library and a misleading feedback is presented to the user (indicating there is an uploads/months/day permissions issue), where in fact the file is written successfully to disk – but WP can't write to the wp_posts database.

I stumbled upon this as part of #56259 whereby wp_posts missing primary key + A.I. attributes are not picked up by WordPress (even in its repair.php functionality).

The same happens with failed media uploads. The UI reports the failure to write to a folder. Whereas the AJAX response is an unhandled full-HTML page. The UI error is a mismatch from the server response.

Steps to reproduce:—

• Break AutoIncrement and Primary Key for wp_posts (can happen through user misfortune or third-party plugin or failed migration).

• Upload media

• Failure notice reports disk permissions failure, whereas the issue is in fact the database structure issue.

Forgive haste on this write-up."	harryfear
	44973	Issues with $wpdb->get_col_info		Database	4.9.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-09-20T21:37:49Z	2018-09-23T14:50:24Z	"When attempting to get certain column information using $wpdb->get_col_info I get the following error notice:

Notice: Undefined property: stdClass::$primary_key in ..../wp-includes/wp-db.php on line 3211

Similar for 'not_null' and several of the other options. Name, type, etc. work just fine. It looks like not all the properties are set for all the options listed in the docs - https://codex.wordpress.org/Class_Reference/wpdb#Getting_Column_Information"	drocks13
	59974	MAX_JOIN_SIZE wp-blog-header.php		Database	6.3.2	normal	minor	Awaiting Review	defect (bug)	new		2023-11-27T21:24:05Z	2023-11-27T21:24:05Z	"seeing this error in the error logs for a site with over 100k posts. seems to be non-critical.

{{{
[27-Nov-2023 15:42:16 America/New_York] WordPress database error The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay for query 
					SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID
					FROM wp_posts  LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id)
					WHERE 1=1  AND ( 
  wp_term_relationships.term_taxonomy_id IN (2,197,213,214,215,216,217,218,219,220,225,226,227,228,229) 
  AND 
  wp_posts.ID NOT IN (
				SELECT object_id
				FROM wp_term_relationships
				WHERE term_taxonomy_id IN (31926,31927,31928,31929,31930,31931,31932)
			)
) AND ((wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish')))
					GROUP BY wp_posts.ID
					ORDER BY wp_posts.post_date DESC
					LIMIT 0, 24
				 made by require('/wordpress-versions/6.3.2/wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[27-Nov-2023 15:43:10 America/New_York] WordPress database error The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay for query 
					SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID
					FROM wp_posts  LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id)
					WHERE 1=1  AND ( 
  wp_term_relationships.term_taxonomy_id IN (3,221,222,231,232,233,234,235,236,237,239,241,243,244,245,246,247,248,249,250,273,276,277,281,282,287,397,398) 
  AND 
  wp_posts.ID NOT IN (
				SELECT object_id
				FROM wp_term_relationships
				WHERE term_taxonomy_id IN (31926,31927,31928,31929,31930,31931,31932)
			)
) AND ((wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish')))
					GROUP BY wp_posts.ID
					ORDER BY wp_posts.post_date DESC
					LIMIT 0, 24
				 made by require('/wordpress-versions/6.3.2/wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
}}}

"	wkeithgardner
	62104	Multisite triggers UPDATE queries on _sitemeta of almost 150k character		Database	6.5.5	normal	normal	Awaiting Review	defect (bug)	new		2024-09-24T07:36:36Z	2026-02-06T22:06:29Z	"I was checking mysql to see why the binlog was so huge. I temporarily wrote mysql queries to general.log and after that took an evening to run some checks.

I first checked what qeuries were the longest and then focused on the _sitemeta and checked again:

root@webshops04:/var/log/mysql# grep -oP ""UPDATE.*wp_ec9ff84fca_sitemeta.WHERE."" /var/log/mysql/general.log | awk '{print length, substr($0, 1, 150) ""..."", substr($0, length($0)-100)}' | sort -nr | head -n 20
145439 UPDATE wp_ec9ff84fca_sitemeta SET meta_value = 'O:8:""stdClass"":5:{s:12:""last_checked"";i:1726602500;s:8:""response"";a:23:{s:21:""cardgate/card... updater.php"";s:5:""0.2.1"";}}' WHERE site_id = 1 AND meta_key = '_site_transient_update_plugins'
144408 UPDATE wp_ec9ff84fca_sitemeta SET meta_value = 'O:8:""stdClass"":5:{s:12:""last_checked"";i:1726602574;s:8:""response"";a:23:{s:21:""cardgate/card... updater.php"";s:5:""0.2.1"";}}' WHERE site_id = 1 AND meta_key = '_site_transient_update_plugins'
143388 UPDATE wp_ec9ff84fca_sitemeta SET meta_value = 'O:8:""stdClass"":5:{s:12:""last_checked"";i:1726602547;s:8:""response"";a:23:{s:21:""cardgate/card... updater.php"";s:5:""0.2.1"";}}' WHERE site_id = 1 AND meta_key = '_site_transient_update_plugins'
141499 UPDATE wp_ec9ff84fca_sitemeta SET meta_value = 'O:8:""stdClass"":5:{s:12:""last_checked"";i:1726602524;s:8:""response"";a:22:{s:21:""cardgate/card... updater.php"";s:5:""0.2.1"";}}' WHERE site_id = 1 AND meta_key = '_site_transient_update_plugins'
139144 UPDATE wp_ec9ff84fca_sitemeta SET meta_value = 'O:8:""stdClass"":5:{s:12:""last_checked"";i:1726602522;s:8:""response"";a:23:{s:21:""cardgate/card... -add-on.php"";s:5:""1.1.8"";}}' WHERE site_id = 1 AND meta_key = '_site_transient_update_plugins'
137255 UPDATE wp_ec9ff84fca_sitemeta SET meta_value = 'O:8:""stdClass"":5:{s:12:""last_checked"";i:1726602502;s:8:""response"";a:22:{s:21:""cardgate/card... -add-on.php"";s:5:""1.1.8"";}}' WHERE site_id = 1 AND meta_key = '_site_transient_update_plugins'

In wp_config i switched the CRON off and manually added a cron for each subsite (i run a site per domain, 3 in total)

So now i'm wondering, why would WP Multisite update this cron meta value time over time with a query of almost 150k characters? Why can't the system check only once a night for updates?

I've searched on this meta_key online but no results so I wonder if this isn't an issue or am i the only one facing this issue?"	yuluma
	58965	No luck running WP when running PHP 8.2.8 + mysql  Ver 15.1		Database	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-08-02T22:29:45Z	2023-08-02T23:00:52Z	"Welp, cannot figure out how to get the latest version of WP installed...when I load it I get this error message:

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
Please check that the mysqli PHP extension is installed and enabled.

I am using php-fpm and can see I have enabled: mysqlnd, pdo, pdo_mysql 

Obv can't run mysqli anymore...so I am not even sure why I am seeing this mysqli error?

Anyone know how to work around it? Hopefully, it's just something dumb on my part but I am a bit restricted on the server this is running. "	boyz2men
	49482	Non-english slug can sometimes cause an error in WordPress query		Database	5.3.2	normal	normal	Awaiting Review	defect (bug)	new		2020-02-20T08:49:16Z	2020-02-20T11:00:26Z	"The error is

{{{
Warning: vsprintf(): Too few arguments in wp-includes/wp-db.php on line 1397
}}}

I found the root cause that if the encoded slug contains the {{{%f}}} or {{{%[0-9]f}}}. it will be converted to capital F (wp-db.php:1359) and will not be properly escaped (wp-db.php:1361)

I found a ticket here #49140 but it has been closed."	panjmp
	53033	Remove comments, ping, to_ping columns from posts table		Database		normal	normal	Awaiting Review	defect (bug)	new		2021-04-14T22:10:47Z	2021-04-15T11:36:50Z	The wp posts table still holds old columns that do not fit the future. The post table should be cleaned, the pings and comments features moved to meta and child custom post types.	cacaflow
	41278	SQL_CALC_FOUND_ROWS slow query		Database	4.8	normal	normal	Awaiting Review	defect (bug)	new		2017-07-09T17:12:10Z	2017-07-19T18:41:46Z	"In the logs of slow queries when searching for steel, the following types of logs appear:



{{{
SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID 
FROM wp_posts  
WHERE 1=1  
AND (((wp_posts.post_title 
LIKE '%donald%') OR (wp_posts.post_excerpt 
LIKE '%donald%') OR (wp_posts.post_content 
LIKE ‘%donald%’)) AND ((wp_posts.post_title 
LIKE '%trump%') OR (wp_posts.post_excerpt 
LIKE ‘%trump%’) OR (wp_posts.post_content 
LIKE '%trump%')))  
AND wp_posts.post_type 
IN ('post', 'page', 'attachment') 
AND (wp_posts.post_status = 'publish' 
OR wp_posts.post_status = 'acf-disabled' 
OR wp_posts.post_author = 186 
AND wp_posts.post_status = 'private')  
ORDER BY (CASE WHEN wp_posts.post_title 
LIKE ‘%donald trump%' THEN 1 WHEN wp_posts.post_title 
LIKE ‘%donald%’ AND wp_posts.post_title 
LIKE '%trump%' THEN 2 WHEN wp_posts.post_title 
LIKE '%donald%' OR wp_posts.post_title 
LIKE '%trump%' THEN 3 WHEN wp_posts.post_excerpt 
LIKE '%donald trump%' THEN 4 WHEN wp_posts.post_content
LIKE '%donald trump%' THEN 5 ELSE 6 END), 
wp_posts.post_date DESC LIMIT 0, 30;
}}}

How can I eliminate it?"	lubimow
	30795	Upgrade bug affecting indexing		Database	2.1	normal	normal	Awaiting Review	defect (bug)	reopened		2014-12-20T16:29:49Z	2019-03-22T13:46:01Z	"Every time WordPress is updated I was getting an entry in my error_log as follows:

WordPress database error Duplicate key name 'type_status_date' for query ALTER TABLE wp_posts ADD KEY type_status_date (post_type,post_status,post_date,ID) made by wp_upgrade, make_db_current_silent, dbDelta

After some heavy back tracking through the code, this is coming from a mismatch between the reported indexing of my database and what WordPress is expecting. in particular to the 'post_status' part. It seems WordPress expects the 'SubPart to be NULL, only in my main site is was '1'.

So, my index was reporting as:
KEY type_status_date (post_type,post_status(1),post_date,ID)
Rather than:
KEY type_status_date (post_type,post_status,post_date,ID)

This means the upgrade code is called on every update and fails on every update also.

I've managed to force through a fixed on my own site by dropping the index and recreating it using SQL in PHPMyAdmin.

Googling for the above error message it would seem I'm not the only one affected."	MattyRob
	59836	Using the pre_get_table_charset filter ensures wpdb->col_meta never gets populated		Database	6.3.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-11-08T14:04:37Z	2025-12-18T15:19:38Z	"I have a non-core table with a binary column that I use for selects and deletes (it's an efficient way to store UUIDs). I've noticed that whenever I attempt to do select from it, WP does a relatively expensive SHOW FULL COLUMNS FROM query, which seems to be uncachable. I've been attempting to use the pre_get_table_charset filter to get around this, but this then caused problems when get_col_charset() runs in the same call. It seems that inside get_table_charset() there is the line $this->col_meta[ $tablekey ] = $columns; which appears to be the only place that col_meta is ever populated. But it wont be populated for that table if you use the hook, so if something like this then runs:

{{{#!php
		// If still no column information, return the table charset.
		if ( empty( $this->col_meta[ $tablekey ] ) ) {
			return $this->table_charset[ $tablekey ];
		}
}}}

as it does in get_col_charset() then things just break. col_meta for that table is not populated and neither is table_charset. I'm too stupid to work out the best way to fix this I'm afraid.
"	c0ntax
	53320	Why delete_metadata and update_metadata slow performance?		Database		normal	normal	Awaiting Review	defect (bug)	new		2021-06-02T11:11:06Z	2024-03-26T18:30:14Z	"I’ve been doing some investigating on the overall performance of a local WordPress with WooCommerce build and something doesn’t seem to be making sense, I’m not sure if I’m missing something or if it’s an oversight in the development.

WooCommerce has ways of checking if meta keys and values need to be updated, for example update_post_meta in class-wc-order-data-store-cpt.php

The plugin also has a method update_or_delete_post_meta for handling the meta of posts integration with the WordPress Core.

Here’s where the confusion comes in,
1. [delete_metadata](https://github.com/WordPress/WordPress/blob/21cf92796123e98bcc9cc7981d80472977673fab/wp-includes/meta.php#L335)
Why does delete_metadata by default query to see if it exists before running the DELETE operation? I understand the DELETE operation is expensive but in this instance, we know the keys that are going to be removed. I understand we could hook into the delete_{$meta_type}_metadata
filter, return false and run the query ourselves but this doesn’t future proof things. I propose an additional filter and/or argument that allows you to bypass the initial lookup.

2. [update_metadata](https://github.com/WordPress/WordPress/blob/21cf92796123e98bcc9cc7981d80472977673fab/wp-includes/meta.php#L159)
There is a similar problem here too. [Every update queries the database](https://github.com/WordPress/WordPress/blob/21cf92796123e98bcc9cc7981d80472977673fab/wp-includes/meta.php#L220) to see if a row already exists and if so, then use the add_metadata. If we know the meta key 100% exists, why go to the expense of then querying the database again? Once again, I appreciate this is added as a fail-safe to ensure the data gets stored but this leaves the developer with no “official” way of updating the meta without having to do a lookup first. Again, we can hook into update_{$meta_type}_metadata but this has the same problem as before.. breaking future changes. I propose the same as above for this method too.

Has anybody else experienced this or found any solutions to excessive SQL lookups (other than relying on cache)?"	cjj25
	40695	`install_blog` suppresses database errors		Database		normal	normal	Future Release	defect (bug)	new	has-patch	2017-05-08T20:18:03Z	2017-06-01T19:19:28Z	"`install_blog` uses error suppression and `DESCRIBE $table` to detect the absence of tables. Error suppression can be removed in favor of `SHOW TABLES LIKE $table`, as in the patch on #40694.

Another source of errors in `install_blog` is the call to `get_blogaddress_by_id`. This attempts to read the site's `home` attribute which hits the magic `WP_Site->__get`, which ultimately leads to a `SELECT` against the non-existent options table."	andy
	46452	dbDelta given the same PRIMARY KEY and normal KEY produces no error, reports table created successfully, but the table is not created		Database	5.1	normal	trivial	Awaiting Review	defect (bug)	new		2019-03-09T00:07:34Z	2019-03-09T00:07:34Z	"I spent about 45 minutes trying to find out why one of several dbDelta functions was not creating a table. It wasn't giving a warning, and in fact was saying ""Created table wp_dtl_exam_resultmeta"". But the table was not created.

I eventually found the problem which was that I had a key called ""meta_id"" and ""answer_id"" and simply had put the wrong primary key, which should have been meta_id. But I had:

PRIMARY KEY (answer_id),
KEY answer_id (answer_id)

This gives a success message without creating a table - which doesn't seem right. Of course this isn't a problem with WordPress, it is a problem with my code. But it seems a check is missing from dbDelta, which is what I want to report.


Here is the full code to reproduce the problem, just put it in a plugin or functions.php:

{{{#!php
<?php

if ( !defined( 'ABSPATH' ) ) exit;

/**
 * Creates/updates custom database tables for the plugin:
 *  -> wp_dtl_exam_results
 *  -> wp_dtl_exam_resultmeta
 */

function example_database_creation_for_wordpress_trac() {
    global $wpdb;
    require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
	
    $charset_collate = $wpdb->get_charset_collate();

    $table_name = $wpdb->prefix . 'dtl_exam_resultmeta';
	
    // MY ERROR IS: PRIMARY KEY (answer_id),
    // IT SHOULD BE: PRIMARY KEY (meta_id),
    // But the dbDelta function doesn't notice that, and says it created a table when it didn't.

    $sql = <<<MYSQL
CREATE TABLE $table_name (
  meta_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  answer_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
  meta_key VARCHAR(255) NULL DEFAULT NULL,
  meta_value LONGTEXT NULL,
  PRIMARY KEY (answer_id),
  KEY answer_id (answer_id),
  KEY meta_key (meta_key)
) $charset_collate;
MYSQL;
	
    $result = dbDelta( $sql );

    // Debug this:
    echo '<pre>';
    echo 'The table creation SQL:' . ""\n\n"";
    echo $sql;

    echo ""\n -- \n"";

    // This should give some warning or at least say table creation failed. It doesn't. It says the table was created.
    echo 'dbDelta results: ' . ""\n\n"";
    if ( $result ) foreach( $result as $m ) echo $m . ""\n"";
    else echo '(no results from dbDelta)';

    echo ""\n -- \n"";

    // This should show the table name by checking information_schema, but it's an empty array
    echo 'Table query from INFORMATION_SCHEMA, this should show the table name: ' . ""\n\n"";
    $table_exists = $wpdb->get_results( ""SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '"". DB_NAME .""' AND TABLE_NAME = '"". $table_name .""';"" );
    var_dump( $table_exists );
    echo '</pre>';

    exit;
}

example_database_creation_for_wordpress_trac();
}}}
"	radgh
	56533	dbDelta() ignores changes to column nullability (NULL/NOT NULL)		Database	6.0.2	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2022-09-08T12:04:42Z	2022-09-08T12:32:28Z	"`dbDelta()` ignores changes to the nullability of columns.

Test case:

{{{#!php
<?php
$create = ""CREATE TABLE dbdelta_bug_test  (
  id int(11) NOT NULL,
  value int(11) NOT NULL,
  PRIMARY KEY  (id)
);"";
$update = ""CREATE TABLE dbdelta_bug_test  (
  id int(11) NOT NULL,
  value int(11) NULL,
  PRIMARY KEY  (id)
);"";

global $wpdb;
$wpdb->query(""DROP TABLE dbdelta_bug_test"");
$wpdb->query($create);

require_once ABSPATH . 'wp-admin/includes/upgrade.php';
dbDelta($update);

}}}

**Expected result:**
Column `value` is nullable.

**Actual result:**
`dbDelta()` doesn't detect any changes to the table.
"	matt_fw
	36924	dbDelta(): Support more than one whitespace between field name and its type definition		Database	4.5.2	normal	normal	Awaiting Review	defect (bug)	new		2016-05-23T22:42:46Z	2018-08-10T00:39:26Z	"dbDelta() fails to remove multiple spaces between field name and field type definition in ALTER / CREATE statements. In result some table definitions may lead to constant ALTER statements to be executed which may easily crash MySQL server.

Compare:
== Correct
{{{#!php
$sql = ""CREATE TABLE some_table (
    id bigint(20) NOT NULL KEY AUTO_INCREMENT,  
    test varchar(100) NOT NULL,
    );"";
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
dbDelta($sql);
}}}

vs

== Wrong, due to multiple spaces between 'test' and 'varchar' ALTER query is executed
{{{#!php
$sql = ""CREATE TABLE some_table (
    id bigint(20) NOT NULL KEY AUTO_INCREMENT,  
    test  varchar(100) NOT NULL,
    );"";
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
dbDelta($sql);
}}}

== Possible fix:
- in dbDelta() call trim() on $tablefield->Type,
- or remove extra spaces during preg_match:
replace:
{{{#!php
preg_match(""|"".$tablefield->Field."" ([^ ]*( unsigned)?)|i"", $cfields[strtolower($tablefield->Field)], $matches);
}}}
with:
{{{#!php
preg_match(""|"".$tablefield->Field.""\s+([^ ]*( unsigned)?)|i"", $cfields[strtolower($tablefield->Field)], $matches);
}}}"	matt_fw
	40779	function_exists() audit in wp-db.php		Database		low	minor	Awaiting Review	defect (bug)	new	dev-feedback	2017-05-16T14:47:06Z	2021-06-01T12:50:59Z	"A few `function_exists()` checks can be removed from `wp-db.php`, thanks to recent load order changes, probably nobody having looked in a while, and generally being afraid to break DB drop-ins:

All of these functions are in files now loaded ahead of `require_wp_db()`:

* `is_multisite` (load.php)
* `_deprecated_function` (functions.php)
* `mb_strlen` (compat.php)

Bonus: 

* `mb_check_encoding()` could *maybe* be a new function in compat.php (it's used 3 times in core, using `@` or `function_exists`)

----

The only caveats are the installation process, and 10+ year-old HyperDB versions that do the old-school deep-integration thing, of directly including files – they'll need extra scrutiny."	johnjamesjacoby
	46739	post attributes order not working correctly		Database	5.1	normal	normal	Awaiting Review	defect (bug)	new		2019-03-30T18:28:38Z	2019-03-30T18:28:38Z	"I set up the post attributes order with the code attached to be modified within the editor.

add_post_type_support('post', array('page-attributes'));

The post attributes section with the order field shows up but unfortunately does not save any values and does not show up the value set in the database.

Please find more information here:
https://stackoverflow.com/questions/55433707/wordpress-post-custom-order-not-working-showing-up-but-not-saving"	nikischin
	51097	post cannot be saved due to certain variant of Japanese Kanji		Database	5.5	normal	normal	Awaiting Review	defect (bug)	new	close	2020-08-21T21:33:08Z	2020-08-31T08:09:56Z	"When I would like to save draft, wordpress failed with error message ""更新に失敗しました。 データベース内の投稿を更新できませんでした。"" (i.e. could not update a post in database).

I figured out a variant of Kanji　caused the problem.  By mistake I used unordinary variant ""𠮟責"" instead of ordinary one ""叱責"".  the unordinary one caused the trouble.
 "	mogami74
	46625	username and password automatically change to  dexter		Database	4.9.1	normal	normal	Awaiting Review	defect (bug)	new		2019-03-24T07:32:46Z	2019-03-24T10:18:13Z	"Dear sir,

username and password automatically change to dexter

"	ram181
	59172	wp_query meta_query NOT EXISTS not creating correct sql query		Database	6.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-08-23T12:53:28Z	2025-05-12T01:38:13Z	"With the following wp_query:

{{{#!php
<?php
        $args = array(
          ""fields"" => ""ids"",
          ""post_type"" => ""shop_order"",
          ""post_status"" => array('wc-processing'),
          ""posts_per_page"" => ""-1"",
          ""offset"" => ""0"",
          'meta_query' => array(
              'relation' => 'AND',
              array(
                'key' => 'scg_is_glass',
                'value' => ""1"",
              ),
              [
                'relation' => 'OR',
                [
                  'key' => 'scg_processed',
                  'value' => ""0"",
                  'compare' => '=',
                ],
                [
                  'key' => 'scg_processed',
                  'value' => ""0"",
                  'compare' => 'NOT EXISTS',
                ],
              ]
          ),
          'date_query' => array(
              array(
                'after' => date('Y-m-d', strtotime('-1 month')),
              ),
          ),
        );
}}}

The outputeed sql query is the following:

SELECT wp_posts.ID
FROM wp_posts
LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id )
LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id )
LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id AND mt2.meta_key = 'scg_processed' )
WHERE 1=1
AND (wp_posts.post_date > '2023-07-23 23:59:59')
AND (
( wp_postmeta.meta_key = 'scg_is_glass' AND wp_postmeta.meta_value = '1' )
AND (
( mt1.meta_key = 'scg_processed' AND mt1.meta_value = '0' )
OR **mt2.post_id IS NULL**
)
)
AND wp_posts.post_type = 'shop_order'
AND ((wp_posts.post_status = 'wc-processing'))
GROUP BY wp_posts.ID
ORDER BY wp_posts.post_date DESC

If you looked at the bolded (mt2.post_id IS NULL) above you would expect it to be:

**( mt2.meta_key = 'scg_processed' AND mt2.meta_value IS NULL )**"	anteatersa
	57000	wp_usermeta table is emptied because of a wrong query being executed		Database	6.0.3	normal	normal	Awaiting Review	defect (bug)	new		2022-11-04T12:49:28Z	2022-11-04T12:49:28Z	"On one website we encounter a very strange error. This SQL query is executed by the `delete_meta` function:


{{{
DELETE FROM wp_usermeta WHERE umeta_id IN( umeta_id,user_id,meta_key,meta_value )
}}}

This query empties the wp_usermeta table completely. We have tried to reproduce the error in a local development environment, but it is very hard to do so. 

In the `delete_meta` function the `\wpdb::check_safe_collation` and `\wpdb::get_table_charset` methods are called, in which the query `SHOW FULL COLUMNS FROM wp_usermeta` is executed. 

Apparently, in some occasions the next query fails, but the `\wpdb::$last_result` is not flushed, which then still contains the result of the `SHOW FULL COLUMNS FROM wp_usermeta` query (the column names). 

The result is returned to the `$meta_ids` variable in the `delete_metadata` and is then used in the delete query. 

The back trace of the function call is: shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, ITSEC_Lib_User_Activity->update_last_seen, delete_user_meta, delete_meta

I am reporting the issue here because I believe it is not related to the iThemes Security plugin but to WordPress itself.

The only possible reason this happens I can think of, it that `\wpdb::$ready` is false, because in that case `\wpdb::query` returns false without flushing the last result:

{{{
public function query( $query ) {
	if ( ! $this->ready ) {
		$this->check_current_query = true;
		return false;
	}
	
	// ...
}
}}}"	jannesmannes
	49363	wpdb::query() does not detect LOAD DATA as an insert statement type		Database	5.3.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-02-05T02:41:19Z	2020-02-05T02:41:19Z	"The regular expression used to choose what return type a query should have does not include `LOAD DATA`.  A query beginning with these tokens thus incorrectly returns `0` for the number of affected rows. The following patch would correct the issue:

{{{#!patch
--- a/wp-includes/wp-db.php
+++ b/wp-includes/wp-db.php
@@ -1973,7 +1973,7 @@

                if ( preg_match( '/^\s*(create|alter|truncate|drop)\s/i', $query ) ) {
                        $return_val = $this->result;
-               } elseif ( preg_match( '/^\s*(insert|delete|update|replace)\s/i', $query ) ) {
+               } elseif ( preg_match( '/^\s*(insert|delete|update|replace|load\s+data)\s/i', $query ) ) {
                        if ( $this->use_mysqli ) {
                                $this->rows_affected = mysqli_affected_rows( $this->dbh );
                        } else {
}}}
"	lev0
	47818	$wpdb should update ->insert_id also when `LAST_INSERT_ID(...)` is found		Database		normal	normal	Awaiting Review	enhancement	new		2019-08-02T06:44:28Z	2019-08-02T06:44:28Z	"It is possible to set the insert id pointer manually by in including `LAST_INSERT_ID(column)` anywhere in the statement. `$wpdb` however does not update it's internal `insert_id`, it does this only when the statement is 'insert' or 'replace'. This makes it harder to get the ID of an updated row.
https://stackoverflow.com/a/46335863"	cpiber
	60254	Add filter to class-wpdb.php#query that allows to return data from filter return value		Database	6.5	normal	normal	Awaiting Review	enhancement	new		2024-01-15T07:35:21Z	2024-01-15T07:35:21Z	"Similar to #2721, but allows not only changing the SQL query, but also the return value. In our case, we want to cache some SQL queries from third-party plugins that refuse to implement an object cache.

Here is an example of a plugin which runs a SQL query multiple times without using a cache mechanism:

[[Image(https://i.imgur.com/qAF0eI5.png)]]

I have prepared a suggestion for this, but I do not know if this covers all cases from `$wpdb` usage or needs some adjustments: https://gist.github.com/matzeeable/4473915b225aa1550d5da5b9b0b19b16/revisions"	mguenter
	46210	Add helpers for default/empty datetime value		Database		normal	normal	Awaiting Review	enhancement	new	has-patch	2019-02-07T22:37:30Z	2023-02-24T20:17:08Z	"Typing `0000-00-00 00:00:00` is error prone, and tedious.

There are a few dozen usages of it sprinkled through-out WordPress. Hundreds of plugins also.

I offer up the idea of 2 helper functions:
* `__return_empty_datetime()` that simply returns `0000-00-00 00:00:00`
* `is_empty_datetime( $datetime = '' )` to check if a variable is `empty()` or `0000-00-00 00:00:00`"	johnjamesjacoby
	55115	Change deprecated wpdb::escape() method		Database		normal	normal	Awaiting Review	enhancement	new	close	2022-02-08T15:47:19Z	2022-02-12T15:46:30Z	"the function wpdb::escape( string|array $data ) is depreciate as per documentation [https://developer.wordpress.org/reference/classes/wpdb/escape/], but it's still using depreciated function such as wpdb::_weak_escape and itself.

I think we shouldn't use depreciated functions since charity begins at home."	azouamauriac
	41956	Errno in $wpdb		Database		normal	normal	Awaiting Review	enhancement	new	has-patch	2017-09-22T13:30:45Z	2018-08-17T12:09:42Z	"Since I use referential integrity in my plugin, there will be situation that the referential integrity will be violated. But, unfortunately there is not a proper way to identify the reason of the violation in $wpdb->last_error. It is only text, and could differ in diffenrent languages I assume.

Since Mysqli contains also the errno, would it be possible to also present the errno as part of the result. In that case I could check the errorno to be 1451 for referential integrity violation.

In my opinion a usefull enhancement of the WPDB class. If any help needed, just contact me"	LeonN1960
	52253	New filter on wp-db.php		Database		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2021-01-08T05:03:34Z	2021-01-08T18:54:25Z	"I need to filter the database returned rows for a plugin I am developping. I cannot accomplish the functionality with current filters. I think that other devs may benefit from these couples of filters I propose. These lines of code placed in substitution of lines 2001 to 2006 of wp-db.php do the job.

{{{
		$this->last_result[ $num_rows ] = $row;
		/**
		 * Filters the database returned row in a mysqli context.
		 *
		 * @since 5.6.1
		 * @param object $row Database fetched row.
		 * @param string $query Database query.
		 */
		$row = apply_filters( 'returned_row_mysqli', $row, $query );
		$num_rows++;
	}
} elseif ( is_resource( $this->result ) ) {
	while ( $row = mysql_fetch_object( $this->result ) ) {
		$this->last_result[ $num_rows ] = $row;
		/**
		 * Filters the database returned row in a mysql context.
		 *
		 * @since 5.6.1
		 * @param object $row Database fetched row.
		 * @param string $query Database query.
		 */
		$row = apply_filters( 'returned_row_mysql', $row, $query );
		$num_rows++;

}}}


Thanks in advance."	guelben
	44386	Problem with utf8mb4_unicode_ci collation for arabic content		Database	4.9.6	normal	major	Awaiting Review	enhancement	new	dev-feedback	2018-06-17T06:52:44Z	2026-02-01T13:08:41Z	"I see that since version 4.6, WordPress uses utf8mb4_unicode_ci as the default collation. I see this in the determine_charset function in the /wp-includes/wp-db.php file (CMIIW).

In my experience, it looks like utf8mb4_unicode_ci has problems with content that uses arabic letters.

Example:

I created a tag with the name:

{{{
#!span style=""font-size: 28pt""
ٱللَّهِ
}}}

And I created another tag with the name:

{{{
#!span style=""font-size: 28pt""
ٱللَّهُ
}}}

Then when I do a tag search (via wp-admin), with keyword: 
{{{
#!span style=""font-size: 28pt""
ٱللَّهُ 
}}}

the search results that appear are:
{{{
#!span style=""font-size: 28pt""
ٱللَّهِ
}}}

and
{{{
#!span style=""font-size: 28pt""
ٱللَّهُ
}}}
tags. Whereas it should appear only tag:

{{{
#!span style=""font-size: 28pt""
ٱللَّهُ
}}}
according to the search keyword.

This becomes a problem when a post wants to use the tag
{{{
#!span style=""font-size: 28pt""
ٱللَّهُ
}}}
, but can not be due to existing tag
{{{
#!span style=""font-size: 28pt""
ٱللَّهِ
}}}

My guess is not a bug from WordPress, but a bug from MySQL.

For information, perhaps this link is a related issue:

[https://bugs.mysql.com/bug.php?id=76218]

(CMIIW)."	array064
	54560	Return null from wpdb::get_results when query fails		Database		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-12-02T17:14:55Z	2021-12-02T17:14:55Z	"It's not currently possible to know if a query failed internal to `wpdb::get_results()` since the result of `$wpdb->query()` isn't checked.

This diff introduces a `null` return from `wpdb::get_results()` when a boolean `false` is returned from `wpdb::query()`."	jeffstieler
	58180	Specify the REGEXP format for meta_query		Database	6.2	normal	trivial	Awaiting Review	enhancement	new	needs-docs	2023-04-24T05:47:20Z	2026-06-03T17:35:06Z	"Because of the fact that `meta_query` parameter with `['compare' => 'REGEXP', 'key' => 'foo', 'value' => '^bar']` working as substitution to raw SQL-request like `... foo.meta_key REGEXP ^bar ...`
please, specify this explicitly in the [https://developer.wordpress.org/reference/classes/wp_meta_query/ documentation] - especially the fact that this REGEXP should not be wrapped in `/`"	letraceursnork
	47994	The additions of a new wp_posts table columns called post_level and post_patriarch		Database		normal	normal	Awaiting Review	enhancement	new		2019-09-06T23:29:48Z	2019-09-06T23:29:48Z	"Many user are looking for an easy solution to sort table by page children.
I understand their are functions like get_children, pre_get_posts, get_posts, wp_query.

But if I wanted to extract the children directly from the db table wp_posts, their is no easy way.

So I am suggest the Core team to add in an additional column: post_level.
This is already noticed with the post list table's html row/td as a class (level-0) so it should be in the table.


{{{
//Get all 1st generations of post based on 2 parents who are cousins
SELECT p.*
FROM $wpdb->posts p 
WHERE p.post_level = 1 
AND p.post_parent = 123 OR p.post_parent = 345)

//Get all 2nd generation pages of parent post id 1
SELECT p.*
FROM $wpdb->posts p 
WHERE p.post_level = 2 
AND p.post_patriarch = 1
}}}


post_level depends on what level of Parent (0), Child (1) or Grandchild(2) or GreatGrandChild (3) a page is within the Hierarchy.  

post_patriarch (or lack of a better word) is always the level 0 parent ID

This should also be consider for other tables as well(e.g menu_level)

I hope this make sense.
"	samjco
	55938	WP prefix on installation - instructions to be indicated		Database		normal	minor	Awaiting Review	enhancement	new		2022-06-07T12:48:50Z	2022-06-07T14:37:01Z	"Following a bad experience, changing the database prefix from ""wp_"" to ""SAI"" for security.

I found out that this is giving Woocommerce a problem with creating tables in the database.

This problem is solved, but I create this ticket to give the idea during the next Update, to indicate how to change the prefix.

I had put SAI instead of wp_ forgetting the _ and capitalizing, hence the problem I had encountered."	valentindu62
	42703	WP_Query: Swap parsing date into own method		Database		normal	normal	Awaiting Review	enhancement	new		2017-11-26T17:32:44Z	2019-01-16T06:50:09Z	"The WP_Query::get_posts also parses the date query.
This is modular enough to swap it to its own method at last.
A proof of concept has been made and all tests are still green.

Some details and todos:

- see https://github.com/ScreamingDev/wordpress-develop-1/commit/6bb681e8caf4df8ba4811690ee19f12ad1755371
- Check if the whole logic can be shifted to WP_Date_Query::get_sql

Hint: The long run is about enabling WordPress to support multiple tables (per ""post-type""). To achieve this some enhancements to the current wpdb and WP_Query class are needed. This issues covers a small bit of it by refurbishing the source."	screamingdev
	54180	tests for _wp_mysql_week()		Database		normal	normal	Future Release	enhancement	new	close	2021-09-24T19:59:07Z	2026-09-24T15:25:37Z		pbearne
	63734	wpdb::prepare() should reject invalid schema object names		Database	6.9	normal	normal	Awaiting Review	enhancement	new	has-patch	2025-07-21T23:53:46Z	2025-07-22T21:41:55Z	"MySQL imposes certain constraints on schema object names (table names, column names, etc… what Core calls “identifiers” in some places). Queries with invalid values for these names will always fail, but sending them to the database incurs network traffic and latency.

If Core knows that a parameter cannot be valid then it could reject early and skip sending the query to the database. It could even avoid performing costly escaping of string values which also involve separate database calls, if it knows that the query can never succeed.

One example is that schema object names cannot end in a space character. Currently `wpdb->prepare( ""SELECT * FROM %i"", ""test "" )` will produce the following table name:

{{{
`test `
}}}

…and this will always fail when run as a query.
"	dmsnell
	59639	Dedicated tables for media libary		Database		normal	major	Awaiting Review	feature request	new	dev-feedback	2023-10-16T20:29:09Z	2023-10-16T20:29:09Z	"I suggest to use a dedicated media library table in the database like (wp_media, wp_media_meta) to improve performaces for sites that have many media with many posts.
This would lead to an overall improvement in the site's performance."	sh1zen
	62575	Prints SQL/DB error limit last_query too long		Database		normal	normal	Awaiting Review	feature request	new		2024-11-26T12:45:18Z	2024-11-26T12:45:18Z	"When the is too large for the database to handle it does not mean that the harddisk is ready for the large query.
Some modules obuse the `db_options` table to store too much data resulting in the query being dumped in the php logs.
It would be nice to either have the query truncated or be optional for example linked to WP_DEBUG.

`src/wp-includes/class-wpdb.php` R:1810
"	stormbyte
	54235	Script for handling metadata in wp_postmeta		Database		normal	normal	Awaiting Review	feature request	new	needs-docs	2021-10-08T12:49:11Z	2021-10-08T13:47:16Z	"Hello,

Since wp_postmeta table gets so big, and most users just upload and delete and change themes/media sizes and reload and change again, etc. sooo often …could someone at WordPress just give a customizable function to handle data in that table? Specifically for images …

I´m using a filter to prevent storing exif and iptc metadata in the same meta key for sizes (_wp_attachment_metadata):


add_filter( ‘wp_read_image_metadata’, ‘__return_false’ );


but I had to delete manually all data that was previously added by default …and the same for unused images´ sizes.

I guess wp-includes/media.php points something about this but I have no idea about unserializing, query for specific data, filtering results, deleting it, serializing again and restoring to db …I´m affraid this tasks have to be done manually by users with no code knowledge …

Hope someone could write a custom php script for this.

Thanks,

Julia

"	julia77
	51625	Date/Time test failures during DST transition		Date/Time		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-10-25T01:25:22Z	2024-12-13T17:07:49Z	"There are some tests in Europe/London and Europe/Kiev timezones that fail exactly during the hour of DST transition, October 25th 2020, 00:00 to 01:00 (UTC):
{{{
There were 4 failures:

1) Tests_Date_Current_Time::test_should_return_correct_local_time
The dates should be equal
Failed asserting that 1603588676 matches expected 1603585076.

/var/www/tests/phpunit/includes/phpunit7/testcase.php:38
/var/www/tests/phpunit/tests/date/currentTime.php:116

2) Tests_Date_I18n::test_should_return_wp_timestamp
The dates should be equal
Failed asserting that 1603585076 matches expected 1603588676.

/var/www/tests/phpunit/includes/phpunit7/testcase.php:38
/var/www/tests/phpunit/tests/date/dateI18n.php:152

3) Tests_Date_Get_Feed_Build_Date::test_should_fall_back_to_last_post_modified
Fall back to time of last post modified with no posts
Failed asserting that false matches expected 1603588676.

/var/www/tests/phpunit/includes/phpunit7/testcase.php:38
/var/www/tests/phpunit/tests/date/getFeedBuildDate.php:67

4) Tests_Formatting_Date::test_get_gmt_from_date_string_date
The dates should be equal
Failed asserting that 1603588686 matches expected 1603585086.

/var/www/tests/phpunit/includes/phpunit7/testcase.php:38
/var/www/tests/phpunit/tests/formatting/date.php:88
}}}
https://travis-ci.com/github/WordPress/wordpress-develop/builds/192590290

To reproduce locally, just set the system date to the date and time above.

These should ideally be made less fragile. Since we already have some tests for DST specifically, perhaps these tests should use a timezone that does not observe DST."	SergeyBiryukov
	61732	get_calendar() will use invalid dates in SQL queries	pbearne	Date/Time		normal	normal	Future Release	defect (bug)	assigned	changes-requested	2024-07-23T17:26:01Z	2026-10-31T19:58:39Z	"`get_calendar()` will use a client provided value for an SQL date request without checking validity.

Checking the logs recently, I can see errors along the lines of

{{{
PHP message: WordPress database error Incorrect DATETIME value: '2171-94-01' for query SELECT MONTH(post_date) AS month, YEAR(post_date) AS year ...
}}}

Where the value was not a valid since the month was not between 01 and 12 inclusive.

Investigating, what I was seeing was:

* A bunch of junk requests that had random variables applied
{{{
GET /some_nonexistant_random_page?m=la2m,1o7tfe1poe9h_4ksa8,w876
}}}
* The theme uses something that uses `widget`, that then uses `get_calendar()` 
* `WP_Query::parse_query()` was helpfully stripping out non numbers into the global `$m` - but there are no validity checks on the result.
* `get_calendar()` was using a substring of the junk `$m` as the base for month.
* SQL complains about an invalid date

"	leedxw
	45047	user_registered returned as UTC Time instead of Local Time		Date/Time		normal	normal	Future Release	defect (bug)	new	has-patch	2018-10-04T13:01:31Z	2020-04-22T15:52:04Z	"I apologize if this has been discussed/covered before or I am missing something obvious, but I did a few searches, both through the code base and also bug-tracker/google, and couldn't find anything on this subject. 

While trying to debug a timezone issue for a client, I noticed that user_registered appears to be set to GMT/UTC time by default, rather than the local time set via settings.

I searched the code and found where I think this is set: 

//wp-includes/user.php

{{{#!php
<?php
        $user_registered = empty( $userdata['user_registered'] ) ? gmdate( 'Y-m-d H:i:s' ) : $userdata['user_registered'];

}}}

I also tested adding a user on a relatively clean site via the default add user option and verified it gets set to UTC, regardless of the local time setting in wordpress. 

So, when you grab the user via get_userdata(), the $user_data->user_registered field looks like it will always be UTC time, unless presumably the user is created manually(wp_create_user or equivalent) and you set the time during creation. 

I think setting it in ALL cases to UTC probably makes sense, as you never know when a person is going to change their timezone settings in wordpress, the settings on their server, etc. And, timezones can be a pain to work with in general, so having it be UTC by default makes sense.

However, when returning it back to the end-user, it would be useful to have it take into account their local timezone setting in WordPress, at least by maybe adding a $user_data->user_registered_local field to the user object.
"	kcrnc
	58774	Sorting Posts after Published Date OR Last Update should be a standard function	pbearne	Date/Time	6.2.2	normal	normal	Awaiting Review	feature request	assigned	reporter-feedback	2023-07-10T20:19:01Z	2024-11-04T21:31:18Z	"I am quite surprised that it is not a standard WP function to let the users of my website choose whether to sort Posts after Published Date OR Last Update Date!
I have not even been able to find a plugin that adds this function. "	hero2
	59340	"""Open in new tab"" checkbox in hyperlink entry doesn't save"		Editor	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-09-13T16:37:54Z	2023-09-29T15:48:45Z	"When interfacing, the ""Open in new tab"" selection sometimes doesn't work. Rapidly entering the information on a slow internet connection should reproduce the bug.

It's probably tied to network information, where the ""Save"" button SHOULD send a delayed network transmission of the update. Instead, it drops the information.

This compounds as a worse problem with the new UI information, since it requires several clicks to confirm each hyperlink's present status.

The workaround is to wait 2-3 seconds after selecting the checkbox but before selecting ""Save"".

This most heavily affects power users and users with slow internet connections."	phileossopher
	55714	& stored as &amp; for Post Title and Excerpt in Editor		Editor		normal	normal	Awaiting Review	defect (bug)	reopened		2022-05-12T11:50:36Z	2025-07-24T18:00:26Z	"Hi,

When an Author/other user(who have Create post permission) creates a post and add a post title as `Hello & Welcome to WordPress` after save the post the post title is stored as `Hello &amp; Welcome to WordPress` in DB. As this is stored like this it is showing same in the editor. This is happening with Excerpt also.

**NB: This is not happening with Admin user or if you are using Gutenberg Editor.**

Reproduce Steps:

1. Disable your gutenberg editor and enable classic editor.
2. Logged in as an Author.
3. Switch to a non block based theme. (skip if your theme is not block based)
4. Go to Post > Add New
5. Add Post Title, Excerpt as `Hello & Welcome to WordPress`
6. Save Post
7. You will see `Hello &amp; Welcome to WordPress` as title

"	kapilpaul
	53723	503 Errors in Posts with Complex Gutenberg Content		Editor		normal	normal	Awaiting Review	defect (bug)	new		2021-07-21T17:45:50Z	2021-07-26T15:11:49Z	"Trying to track down the source of an error I'm seeing across the sites/servers I host that appeared after the 5.8 upgrade.

Symptoms so far are either:

- A 503 Service Unavailable error
- A Blank page. Server cutting off output at random point on each site, often in the middle of tag names or attributes (where there's no PHP, static content). 

This is happening on specific pages/posts. It is happening when viewing the page/post on the front end AND if you try to edit the post/page in the editor via the WP Admin.

In both error cases, there are no PHP errors displayed, outside of the servers that were displaying the 503 error. 

In narrowing down the error, I tried removing filters from `the_content` on a hunch and found that if I removed the filter below, the pages started working without error:

{{{
remove_filter( 'the_content', 'do_blocks', 9 );
}}}

Once there, I tried setting `wp_posts.post_content` manually and narrowed the issue down to specific sets of blocks: Nested blocks with an HTML block that contains SVGs that have large-ish paths. Here's a gist with 3 different `post_content` HTML. 

https://gist.github.com/aut0poietic/9df32c4383bd8934db59671b77a673ee

The example `post_content-broken.html` triggers the error consistently on all of my sites across multiple servers. The other examples are the same block content, with minor changes that DO NOT trigger the error.

Our Ops folks could find almost nothing in the logs, spare this FastCGI error:

{{{
[Tue Jul 20 15:36:00.465094 2021] [proxy_fcgi:error] [pid 3207915:tid 140096612689664] [client 172.31.1.17:58998] AH01067: Failed to read FastCGI header
}}}

Digging around, it seems like `WP_Block_Parser` may be having issues with the content.

For giggles, I tried adding this code to a fresh site on a completely unrelated server (Flywheel Local) and couldn't trigger the issue. So there's obviously something on these servers that are contributing to the issue, I just can't narrow down what that could be. 

The server info from Site Health is pretty standard:
{{{
server_architecture: Linux 4.18.0-240.22.1.el8_3.x86_64 x86_64
httpd_software: Apache
php_version: 7.2.24 64bit
php_sapi: fpm-fcgi
max_input_variables: 4000
time_limit: 600
memory_limit: 256M
max_input_time: 300
}}}

I can post the full site health if needed. It goes without saying that I used the standard troubleshooting practices to test, including:

- Disable all plugins
- Set the theme to twentytwenty
- Reset Permalinks


Not sure where to go with this next. Help?

Examples demonstrating the content from the Gist in action:

https://help.okfosters.org/testing-broken/
https://help.okfosters.org/testing-working-remove-group/
https://help.okfosters.org/testing-working-remove-line-15/

If you need any more information, please let me know. 
"	aut0poietic
	64268	A backlink placed inside a standard post is not rendering correctly on the front end. The HTML appears in the editor but is either stripped or displayed as plain text when viewed on the site		Editor		normal	normal	Awaiting Review	defect (bug)	new	close	2025-11-18T11:27:25Z	2026-01-09T18:41:59Z	"WordPress Version: 6.6.1 (latest stable at time of testing)

PHP Version: 8.1

Theme: Twenty Twenty-Five (default)

Plugins: All plugins deactivated

Browser: Chrome 142.0.0.0 (Windows 10)

Server: Apache (shared hosting)

"	sidatmsm
	43267	"Admin editor ""Insert link"" modal on mobile seems to have incorrect styling"		Editor	4.8.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-02-09T06:32:50Z	2018-02-14T03:58:54Z	"The modal box that pops up when you hit the link button of the editor in text mode is positioned strangely, in a way that on some devices you can't even hit the Add Link button, making it impossible to add a link.

I looked at the css and noticed that the modal is in a fixed position in the center of the screen when the screen is big enough (the modal is 500px by 500px), and when the screen is smaller the modal is responsive.  

The issue seems to be that while the class #wp-link-wrap has a margin-top of -250px to center the modal in the middle, there is a media query ( max-width: 782px ) that specifies a margin-top of -140px. There is a separate media query (max-width: 520px) that's apparently trying to make the modal responsive but because the margin-top: -140px is applied, the modal box is way lower than it should be on mobile. I noticed there is a media query for the height also but that's targeting max-width 520px as well, so any mobile device that has a screen height larger than 520px would have the modal positioned awkwardly. 

I added a custom css in my admin screen that forces a margin-top of -250px as a quick fix, but I was wondering if this is a styling bug that's going to get fixed.

I tested on several version of WordPress that I had access to, and I reproduced this in the latest, as well as versions 4.9.2, and 4.8.3. 

I checked an older site with version 3.9.2 and on this version the modal has a height of 280px that expands to 500px when I click on ""Or link to existing content"". I'm guessing the -140px margin was a declaration that was written for that version of the modal box that didn't get deleted when the modal box became 500px on default.


Sorry if this is duplicate, I tried searching for a ticket that was similar but could not find anything."	dannymasao
	61466	Block Bindings: Add support for image caption		Editor	6.6	normal	normal	Future Release	defect (bug)	new	has-patch	2024-06-19T11:43:21Z	2024-11-07T21:56:14Z	"Allow the block bindings API to process the image caption attribute and replace its inner content with the value obtained from the source.

There is an issue with pattern overrides caused by this: [https://github.com/WordPress/gutenberg/issues/62287 GB62287].

Additionally, it is a good enhancement."	santosguillamot
	54430	Block Editor does not save text where the ellipsis are in quotation marks .		Editor		normal	normal	Awaiting Review	defect (bug)	new		2021-11-12T16:43:52Z	2021-11-12T16:45:48Z	"Block Editor does not save text where the ellipsis are in quotation marks. 

Example: 
""Liefde Is..."" will show the following error - ""The response is not a valid JSON response.""

Note:
""Liefde Is... "" with a space between the ellipsis and the quotes works well.
"	7strel
	60756	Block Hooks: Toggle (re-)inserts hooked block in wrong position (if added by filter)		Editor		normal	normal	Future Release	defect (bug)	new		2024-03-12T13:59:51Z	2025-02-13T20:39:34Z	"As of [https://github.com/WordPress/gutenberg/pull/59396 this change], Block Hook toggles are displayed for hooked blocks that were added by a filter (rather than during block registration), ''if the containing template or template part has had user modifications''. (Displaying the toggle also for ''un''modified templates/parts is the subject of #59574, see especially https://core.trac.wordpress.org/ticket/59574#comment:13.)

There is still one more problem with these toggles: If the user disables the toggle to remove the hooked block, and then re-enables it to re-insert the latter, it's not possible for the client to infer ''where'' to insert it. Instead, it simply defaults to (re-)inserting it ''after'' the anchor block.

The reason is that once the hooked block is removed, no information about its position relative to its anchor block is available. The only available information is the `ignoredHookedBlocks` metadata attribute on the anchor block, which is an array of hooked block type names (e.g. `[""core/loginout"",""mycommerce/shopping-cart""]`). They do however not include the relative position of these hooked blocks. (This was considered in the original ticket #59646 for enabling Block Hooks in modified templates/parts, but ultimately dismissed.)"	Bernhard Reiter
	66464	Block Supports: Escape Global Styles and default pseudo-state text clips in state styles		Editor	trunk	normal	normal	7.3	defect (bug)	new	has-patch	2026-11-04T02:49:44Z	2026-11-04T02:58:57Z	"Backport of Gutenberg PR https://github.com/WordPress/gutenberg/pull/86245.
Related: https://github.com/WordPress/wordpress-develop/pull/13491

A text gradient makes the text fill transparent, so a later text color or box background has to undo it. This fixes two cases where :hover and breakpoint styles left a text gradient in place.

First, a single block's state styles ignored Global Styles. Under a Paragraph text gradient from Global Styles, a Mobile box clip shows the gradient across the whole box.

The check now also reads the block type's Global Styles and its block style variation. It only does this when the block has state styles and supports background clip.

Second, a breakpoint :hover in theme.json skipped the default :hover. A button with a :hover text gradient and a Mobile :hover text color keeps the text hidden at mobile width. The default :hover now counts, in output order.
"	aaronrobertshaw
	53391	Block editor Code and Preformatted failing to accept text		Editor	5.7.2	normal	normal	Awaiting Review	defect (bug)	new		2021-06-13T12:52:01Z	2021-06-13T12:52:01Z	"This file
https://www.logikalsolutions.com/wordpress/wp-content/uploads/2021/06/u18-sources-list.txt

real name sources.list not that it matters. When I pull this into any text editor, be it on Windows or Ubuntu and select-all, copy, then paste it into either a Code bock or a Preformatted block it does this:

[[Image(https://www.logikalsolutions.com/wordpress/wp-content/uploads/2021/06/broken-preformatted-block.png)]]

The end of the file actually looks like this in every text editor


{{{
# backports:
#
#   Software from a newer release of the distribution, or even from the
#   development branch of the distribution, but built against this release.
#   It may provide newer features, but should be considered untested.
#
#   Note: Software in this repository WILL NOT receive any review or
#         updates from the Ubuntu security team.
#
#deb     http://old-releases.ubuntu.com/ubuntu hardy-backports main restricted
#deb-src http://old-releases.ubuntu.com/ubuntu hardy-backports main restricted
#deb     http://old-releases.ubuntu.com/ubuntu hardy-backports universe
#deb-src http://old-releases.ubuntu.com/ubuntu hardy-backports universe
#deb     http://old-releases.ubuntu.com/ubuntu hardy-backports multiverse
#deb-src http://old-releases.ubuntu.com/ubuntu hardy-backports multiverse

}}}

There is also an annoying thing happening when I scrape Linux shell scripts into Code blocks now. The first line is against the left margin and every other line is indented one space. Does not seem to matter what editor I scrape from. At first I thought it was a Scintilla based editor issue, then it happened with Notepad on Windows and Leafpad on older Ubuntu distros. Leafpad is as basic as basic editors get. It supports no formatting.

I do not know if this cropped up earlier. I did not notice it until 5.7.2 but I might not have been paying attention.

I have a geek blog and post a lot of code so this is critical.

I have even switched themes in case this happened only in one theme.
"	seasoned_geek
	56082	Block editor does not unset changed/dirty flag for nested types		Editor		normal	normal	Awaiting Review	defect (bug)	new		2022-06-27T21:20:07Z	2022-06-27T21:20:07Z	"Edit a template and change a template parts or Reusable blocks. Go to save and there is an expected prompt to save the component. Don't save. Ctrl-Z to undo the change. The main template being edited still shows the Save button enabled, and on Save the component is still showing as changed.

Uncheck to Not save the component. Edit another template. The Save button remains enabled because the component is still ""floating around"" with the unsaved flag set.

The only way to clear this seems to be to simply re-save any template that includes the component, for a net effect of no change ...  but this will still be recorded as a change, where the site is logging activity, even if just with a new timestamp.

The problem: The user doesn't know if they have actually changed a component, and potentially affected a large number of existing published posts. The ""are you sure"" prompt is asking the user if they are sure they want to make such a change when there actually is no change being made.

Expected behavior: The UnDo feature, and exiting without saving, should unset the dirty flag on any block or nested block or template where the current version equals the original."	Starbuck
	62655	Block editor styling component toolbars overlap, obscuring features.		Editor	6.7.1	normal	minor	Awaiting Review	defect (bug)	new	reporter-feedback	2024-12-06T00:18:18Z	2025-01-02T11:07:55Z	"There are times when the Gutenberg styling toolbar overlaps, making it difficult to access the underlying features. This is especially the case when editing the header in FSE. There are workarounds, but it isn't easy. 

To replicate, add a button to the header, add a link, and try to add an inline image. 

New install, new theme (Frost and Twenty twenty five)"	tracysurf
	66438	Block style variation text color hidden by a block type text gradient		Editor	trunk	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-11-02T11:43:16Z	2026-11-04T12:58:21Z	"This is a backport of Gutenberg PR https://github.com/WordPress/gutenberg/pull/86164.
Related: https://github.com/WordPress/gutenberg/issues/84599

When a block type sets a text gradient (a background gradient with background-clip: text), a block style variation's text color doesn't show. The gradient still paints the letters, because the variation never resets -webkit-text-fill-color.

Variation instance styles are built from the variation alone, so WP_Theme_JSON can't see the block type's text clip. This passes the merged block type styles in as a private stylesheet option. They are only read to add the escape, never output.

The variation's main, breakpoint and pseudo-state rules now escape the text clip. Without a block type text clip, the output is unchanged.
"	aaronrobertshaw
	53912	Bug when using Block-styles loading enhancements in WP 5.8		Editor		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-08-11T05:16:43Z	2024-01-30T05:15:22Z	"I'm not sure if this is a a bug, but when enabling this feature on Windows some of the blocks assets are not loaded on the frontend.

When checking the {{{register_block_style_handle}}} function, some blocks are ignored as the {{{$is_core_block}}} variable is false due to slash inconsistencies in the {{{$metadata['file']}}} variable.

Style of blocks that are registered from {{{register_core_block_types_from_metadata}}} are loaded, but the blocks that are registered from their respective directory; such as {{{register_block_core_latest_comments}}} are not loaded.

Thank you!"	wilbertalvis
	54475	CSS Selector in block-library css will broke SVG scaled text rendering  in Chrome 96 (Win 10, Win 11, Mac OS)		Editor	5.8.2	normal	major	Awaiting Review	defect (bug)	new		2021-11-19T16:31:48Z	2021-11-22T12:52:34Z	"**Issue:**
We detected wrong rendered SVG Text elements in Google Chrome 96. Our svg map solution is embedded in a wordpress based website of our client.
We detected moving ""shop numbers"" in our map solution, if the map is embedded in the wordpress website.
As soon as the user changes the zoom of the map the shop numbers will be rendered out of sync with the other svg parts.

We tracked the issue down to the following css file:
wp-includes/css/dist/block-library/style.min.css

The selectors used in the blocks
{{{
.wp-block-table table[style*=border-style]>*,
.wp-block-table table[style*=border-style] td,
.wp-block-table table[style*=border-style] th,
.wp-block-table table[style*=border-style] tr {
  border-style: auto
}

.wp-block-table table[style*=border-width]>*,
.wp-block-table table[style*=border-width] td,
.wp-block-table table[style*=border-width] th,
.wp-block-table table[style*=border-width] tr {
  border-width: auto
}
}}}
will cause the issue.

Reduced to the exact selectors:
{{{
.wp-block-table table[style*=border-style]>*,
}}}
and
{{{
.wp-block-table table[style*=border-width]>*,
}}}

or simplified:
{{{
*[style*=x]>* {}
}}}


We were also able to reproduce the issue in our test system:

Map without the critical selector:
https://db-ek-preview.d-ssl.de/preview/station_bonn.html

Map with the critical selector (style selector used in header):
https://db-ek-preview.d-ssl.de/preview/station_bonn_broken_chrome.html


**Steps to reproduce:**
1. Open website:
https://www.einkaufsbahnhof.de/dresden-neustadt/lageplan
or
https://db-ek-preview.d-ssl.de/preview/station_bonn_broken_chrome.html
2. Scroll to map view
3. Zoom in or out by mouse wheel / drag gesture / controls

**Current behavior:**
numbers within the circles in to of the shopping areas will be drawn outside of the circle

**Expected behavior:**
shop numbers drawn in sync with white circles

**Note**
Window resize by 1px or more will trigger svg area render updates, which will fix the issue until next zoom action.


**Test result:**
Affected systems

* Win 11 - Google Chrome 96
* Win 10 - Google Chrome 96
* Mac OS 12 - Google Chrome 96


Not affected systems

* Mac OS 12 - Safari 15.1 
* Mac OS 12 - Mozilla Firefox 
* Win 10 - Google Chrome 95
* Mac OS 11 - Google Chrome 95
* Win 10 - Edge 95 Beta 
* Win 10 - Edge 94
* Android 11 (Pixel 5) - Google Chrome
* Android 11 (Huawei P30 Pro) - Google Chrome
* iOS 15.1 (iPad Pro 10,5) - Safari


I know the bug is a Google Chrome Browser issue in v96 and I will report the issue to Google Chrome team too.
But I report this issue to WordPress core team too, to trigger a workaround for WordPress, because I think the Google Chrome team will not prioritize this issue."	dashart
	62492	CSS is not loading		Editor	6.7	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-11-20T21:27:41Z	2024-11-20T23:52:07Z	Hello, after updating to 6.7 then I get error about blocks even if everything is same, they are different on page.	nevzatbicer
	61147	CSS: Parse Error. html :where([style * =border-top-color])		Editor	6.5	normal	minor	Awaiting Review	defect (bug)	new	close	2024-05-04T15:49:16Z	2025-06-20T08:38:34Z	"Inline css, such as,

{{{
<style id='wp-block-library-inline-css'>
    html :where([style * =border-top-color]) {
        border-top-style:solid
    }
</style>
}}}

ends up with a space between * and = that wasn't there in the file wp-includes/css/dist/block-library/style.css but is an error on the w3c validator."	jasonmader
	62429	Can't create a new page ore update a page		Editor	6.7	normal	minor	Awaiting Review	defect (bug)	new	reporter-feedback	2024-11-14T18:01:35Z	2025-05-12T01:38:42Z	"just updated to 6.7

Best regards HENK MUTSAERS"	uitdaging
	55827	Can't drag and drop block into empty column in list view		Editor	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-05-25T13:35:05Z	2025-05-12T01:37:57Z	When editing a page and using the List View to see the blocks, you can't drag and drop a block into an empty column. Only if there is already a block in a column can you drag and drop any other block into it in List View. You can, however, drag and drop a block into an empty column on the page itself. 	bhammondCVL
	66379	Classic Editor: Switching from Text to Visual mode restructures HTML lists based on cursor position	joedolson*	Editor		normal	normal	7.3	defect (bug)	accepted	has-patch	2026-10-25T16:57:48Z	2026-11-09T17:31:21Z	"Since updating to WordPress 7.1.3, I've encountered a reproducible issue with bulleted lists in the Classic Editor.

Simply placing the cursor at the end of a list item in Text mode, without making any changes to the HTML, causes WordPress to restructure the list when switching back to Visual mode.

All list items preceding the cursor position become nested inside an additional <ul>, wrapped in a new <li style=""list-style-type: none;""> element.

This results in unwanted indentation and changes to otherwise valid HTML.

**Steps to reproduce**

1 Create a new post using Classic Editor.

2 In Visual mode, create a bulleted list containing five items: A, B, C, D and E.

3 Switch to Text mode.

4 Place the cursor at the end of the <li>D</li> line without typing or modifying anything.

5 Switch back to Visual mode.

**Actual result:**

Items A, B and C become indented as a nested list. The editor inserts an additional parent list item with style=""list-style-type: none;"" and separates the remaining items into another list.

**Expected result:**

The HTML and visual formatting should remain unchanged because no edits were made.

**Additional observations**

The point where the list splits follows the cursor position.

Switching between Text and Visual modes without repositioning the cursor does not cause the problem.

The issue is reproducible in both Chrome and Microsoft Edge.

The original HTML is valid.

The issue appeared following recent PHP and WordPress updates.

**Environment**

WordPress: 7.1.3

Classic Editor plugin: 1.7.0

PHP: 8.3.36

Hosting: DreamHost

Theme: Genesis child theme

Browsers tested: Chrome and Microsoft Edge

**Related ticket**

This behaviour appears similar to WordPress Core Trac ticket #29643, which documents unwanted nested lists and insertion of <li style=""list-style-type: none;""> when switching between editing modes.

https://core.trac.wordpress.org/ticket/29643

**Attachments**

Three screenshots demonstrating the original list, the resulting indentation in Visual mode, and the modified HTML in Text mode."	dedri
	59978	Classic editor cursor control		Editor	6.4	normal	normal	Awaiting Review	defect (bug)	new		2023-11-28T16:10:55Z	2025-04-03T14:19:38Z	Since WordPress 6.4.1 or one version earlier, when pressing the cursor right or cursor left button in the block editor, the page simultaniously swaps several lines down or up. Most of the times the edited line is swapping out of sight and you are losing orientation on your work.	jjb100
	62676	Classic editor: Firefox - Full height editor button not loading in the editor	joedolson*	Editor	6.7.1	normal	normal	Awaiting Review	defect (bug)	accepted		2024-12-10T17:35:51Z	2025-04-15T15:27:40Z	"Coming from here: https://github.com/Automattic/wp-calypso/issues/97205

1. Edit a post in the classic editor using Firefox.
2. Enable the Enable full-height editor and distraction-free functionality option in the Screen Options.
3. The icon to enter distraction-free writing mode will not appear.


PS: This will only occur if you load the ""Add a new posts"" page and if you have ""Visual"" selected in the editor. Refreshing the post while having ""Text"" toggled will display the icon on the ""Visual"" tab too."	robertghetau
	56956	Classic link editor in WordPress 6.1		Editor		normal	normal	Awaiting Review	defect (bug)	new		2022-11-02T12:06:00Z	2022-11-13T01:18:10Z	"После обновления версии WordPress, меню с загрузкой ""Страница"", ""Блок"", ""PDF файл"" и т.п. сползло вниз и не возможно выбрать варианты. 

''Translation:'' After updating the version of WordPress, the menu loading ""Page"", ""Block"", ""PDF file"", etc. slid down and it is not possible to choose options."	krmt
	66356	Column image size		Editor		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2026-10-21T02:37:28Z	2026-10-22T08:23:07Z	When I click on two columns for an image, a single image column is presented.  	whitewaterbanner
	59085	Command Palette - switching posts wrong url redirect for non FSE sites		Editor	6.3	normal	normal	Awaiting Review	defect (bug)	new	close	2023-08-12T12:24:23Z	2025-09-06T17:25:12Z	"With the new update to WordPress 6.3, they introduced the command palette. This is great for quickly and easily switching between posts and other things.

It is enabled for all sites (including sites not using a FSE theme)

However, when trying to switch to a different post, it redirects me to:


{{{/wp-admin/site-editor.php?postType=post&postId=12621}}}

Which I then get the error: 

{{{The theme you are currently using is not compatible with the Site Editor.}}}

The command should change the slug it tries to visit depending on if your site supports FSE or not.

Either:

{{{/wp-admin/post.php?post=12621&action=edit}}}

or 

{{{/wp-admin/site-editor.php?postType=post&postId=12621}}}
"	tdrayson
	60952	"Completely broken out of the box: can't edit ""hello world"" post, lots of errors in browser console in wp-admin"		Editor	6.5	normal	critical	Awaiting Review	defect (bug)	new		2024-04-07T14:37:37Z	2024-04-08T13:56:02Z	"- download wordpress from the official website
- install it
- go to wp-admin
- go to Posts -> ""Hello World"" -> edit

Already there are a bunch of errors in the console: (oh come on, I can't paste a screenshot!?!?)

- edit the text and click on the ""Update"" button

Expected: should work
Observed: this error shows up at the top of the page:
""Updating failed. The response is not a valid JSON response.""

and this can be seen in the console:
{{{
api-fetch.min.js?ver=4c185334c5ec26e149cc:2 
POST https://*******.com/wp/index.php/wp-json/wp/v2/posts/1?_locale=user 404 (Not Found)
}}}

I didn't touch any settings, this is a fresh installation installed 10 minutes ago.
"	teo8976
	62240	Cover block image is not displayed when the block inside group with background color		Editor		normal	normal	Awaiting Review	defect (bug)	new		2024-10-17T08:30:37Z	2024-11-11T12:54:07Z	"
In WordPress 6.7 Beta 3, if you add a cover block inside a group with backround color, the cover block image is not displayed anymore.

Here is a content example that reproduces the issue:

{{{
<!-- wp:group {""align"":""full"",""backgroundColor"":""accent-1"",""layout"":{""type"":""constrained""}} -->
<div class=""wp-block-group alignfull has-accent-1-background-color has-background""><!-- wp:cover {""url"":""https://wps.iconvert.pro/wp2/iulian/site-2024-10-17-11-15-06/wp-content/themes/twentytwentyfour/assets/images/museum.webp"",""dimRatio"":50,""customOverlayColor"":""#b0887f"",""isUserOverlayColor"":false,""isDark"":false,""layout"":{""type"":""constrained""}} -->
<div class=""wp-block-cover is-light""><span aria-hidden=""true"" class=""wp-block-cover__background has-background-dim"" style=""background-color:#b0887f""></span><img class=""wp-block-cover__image-background"" alt="""" src=""https://wps.iconvert.pro/wp2/iulian/site-2024-10-17-11-15-06/wp-content/themes/twentytwentyfour/assets/images/museum.webp"" data-object-fit=""cover""/><div class=""wp-block-cover__inner-container""><!-- wp:paragraph {""align"":""center"",""placeholder"":""Write title…"",""fontSize"":""large""} -->
<p class=""has-text-align-center has-large-font-size""></p>
<!-- /wp:paragraph --></div></div>
<!-- /wp:cover --></div>
<!-- /wp:group -->
}}}

And here is the result:

[[Image(https://i.ibb.co/1RHghHc/Screenshot-2024-10-17-112726.png)]]

The same result is on the frontend too.


"	extendthemes
	57495	Cover block: fixed background doesn't work		Editor	6.1.1	normal	normal	Awaiting Review	defect (bug)	new		2023-01-18T12:00:31Z	2023-02-15T01:12:55Z	"Although I switch ON the ""fixed background"" option, when I visit the website through my computer, the image flow together with the all the rest of the page contents.

It works properly when I surf the website through my smartphone
"	ictgo
	53256	Cover images within a column break the editor		Editor	5.7.2	normal	normal	Awaiting Review	defect (bug)	new		2021-05-22T04:09:38Z	2021-06-11T15:58:30Z	If text is added over an image (or cover images are used) within a column, the images stretch and the block editor becomes unusable. Tested on multiple themes with all plugins disabled. To recreate, add a column to a page (with 1 or 2 columns). Add 2 cover images within one column (or two images and add text over it).	sprockettechweb
	60157	Cursor moves to a different paragraph when use directional keys to navigate in a text		Editor	6.4.2	normal	normal	Awaiting Review	defect (bug)	new		2023-12-27T08:44:47Z	2025-05-12T01:38:17Z	"There is a bug when using the directional keys (left and right), to navigate in a text, the cursor moves to a different paragraph, usually gets hidden behind the toolbar (`class=""block-library-classic__toolbar""`). This might be because of the legacy classic editor block in Gutenberg editor, on small screens.
"	calinghiran
	65480	Custom HTML Block hangs when switching tabs and scrolling (Gutenberg/WordPress 7.0)		Editor	7.0	normal	major	Awaiting Review	defect (bug)	new	close	2026-06-18T07:24:05Z	2026-06-30T16:18:18Z	"
In WordPress 7.0, when using the Custom HTML block, switching between the tabs (HTML, CSS, JavaScript) works fine. However, the issue occurs when trying to scroll inside the code editor box/element of those tabs. Attempting to scroll through the custom code causes the entire block editor to freeze or hang.

Interestingly, if I enable Fullscreen Mode, the scrolling inside the code boxes works perfectly fine. If I disable Fullscreen Mode again, the scrolling returns to normal or temporarily unfreezes the block.
Here is the video link for the issue:[https://drive.google.com/file/d/11BirJei_d3irXEqzzQ7gPSfttz1G8SCH/view?usp=sharing]

Steps to Reproduce:

Open a post/page editor in WordPress 7.0 (with Fullscreen mode disabled by default).

Add a Custom HTML block and go to any tab (e.g., HTML, CSS, or JavaScript).

Paste some long code or content inside that tab so that it requires scrolling.

Try to scroll within that specific code element/box.

Observation: The editor immediately hangs/freezes.

Now, enable Fullscreen Mode from the top-right editor settings and try to scroll inside the same box.

Observation: It works fine without any lag or freeze. Disabling Fullscreen Mode again also temporarily fixes the scrolling freeze.

Expected behavior:
The editor should allow smooth scrolling inside the code boxes of the Custom HTML block (HTML, CSS, JS tabs) under all editor modes (whether Fullscreen Mode is enabled or disabled) without freezing."	sheulyshila
	50108	Custom Post Type with public => false still generates/reserves title as permalink		Editor	5.4.1	normal	minor	Awaiting Review	defect (bug)	new		2020-05-06T22:30:47Z	2020-05-07T20:07:09Z	"A message with a permalink is still shown/generated after publishing a post of a custom post type with public=>false.


**prerequisite**

- Generate a basic custom post type like this

{{{#!php
<?php
function teaser_post_type() {

	$labels = array(
		'name'                  => 'My Teasers'
	);
	$args = array(
		'label'                 => 'Teaser',
		'description'           => 'it is a custom post type',
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'custom-fields' ),
		'hierarchical'          => false,
		'public'                => false,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-groups',
		'show_in_admin_bar'     => true,
		'show_in_nav_menus'     => false,
		'can_export'            => true,
		'has_archive'           => false,
		'exclude_from_search'   => true,
		'publicly_queryable'    => true,
		'capability_type'       => 'page',
		'show_in_rest'       => true,
	);
	register_post_type( 'teaser', $args );

}
add_action( 'init', 'teaser_post_type', 0 );
}}}


**issue**


- create a post of the custom post type
- type in a title and click on publish
- it will ask if you're ready to publish, so click publish again
- a new message appears: ""%post_title% is now live"" - below that is a generated permalink (domain.com/%post_type%/%post_name%/) (also ""view post"" and ""copy link"" buttons)

The permalink leads to a 404 page which is correct, but the generated permalink and buttons should not happen (at least not be shown in the message), because the custom post type is public=>false.
"	TBschen
	57601	Custom browser user agent breaks visual editor		Editor	6.1.1	normal	normal	Awaiting Review	defect (bug)	new		2023-02-01T20:18:58Z	2023-02-01T20:18:58Z	"If browser user agent is not in a certain parseable(?) format, editor is broken and allows only simple text editing.

Set browser user agent e.g. to this text: `Some custom user agent`

See also attached screenshots.

Reproducible with Firefox and Chrome latest release.

Won't register at GitHub due to reasons, so this bug report is here."	Ov3rfly
	46100	Custom field validation is not working in Gutenberg Editor		Editor		normal	major	Awaiting Review	defect (bug)	new		2019-01-25T06:56:11Z	2019-01-25T14:28:29Z	"In Latest Version 5.0, Gutenberg doesn't allow validation with WCK plugin. Lets create a custom post type and add the custom field with required.

And when we add custom post type with the custom field, required field doesn't shows validation.

This validation is working with old editor."	kalpanasharma19
	64486	Deactivating plugin removes native wp metabox from page editor		Editor		normal	normal	Awaiting Review	defect (bug)	new	close	2026-01-09T10:16:53Z	2026-01-09T16:25:17Z	"Hi, can you please confirm the issue?
Path to recreate:
1. On a brand new latest version WordPress installation, install and activate the Classic Editor plugin:
   
{{{
wp plugin install classic-editor --activate
}}}


2. Create and activate a new test plugin:
 
{{{
  wp scaffold plugin first-test-plugin --activate

}}}

3. Open the main test plugin file and insert code that creates a metabox with a metabox area (it is real code that I took from the Advanced Custom Fields plugin).


{{{
<?php
/**
 * Plugin Name:     First Test Plugin
 * Plugin URI:      PLUGIN SITE HERE
 * Description:     PLUGIN DESCRIPTION HERE
 * Author:          YOUR NAME HERE
 * Author URI:      YOUR SITE HERE
 * Text Domain:     first-test-plugin
 * Domain Path:     /languages
 * Version:         0.1.0
 *
 * @package         First_Test_Plugin
 */

add_action( 'add_meta_boxes', 'test_register_metabox', 10, 2 );
function test_register_metabox( $post_type, $post ) {
    // Register a box into our custom context.
    add_meta_box(
        'test_box_id',
        'First plugin metabox',
        'test_box_callback',
        $post_type,
        'test_do_meta_boxes',
    );
}
function test_box_callback( $post ) {
    echo '<h1>First Plugin Metabox</h1>';
}

add_action( 'edit_form_after_title', 'set_meta_box_in_special_area' );
function set_meta_box_in_special_area() {
	global $post;
	do_meta_boxes( get_current_screen(), 'test_do_meta_boxes', $post );
}

}}}

4. Now create a new page.

5. On the new page screen, move the “Featured Image” meta box above our “First plugin metabox”. https://i.imgur.com/osFygs0.png

6. Now deactivate our first-test-plugin:
   
{{{
wp plugin deactivate first-test-plugin
}}}


7. Reload the page.

8. Observe the issue: the “Featured Image” metabox disappears and is not accessible anymore.

Expected behaviour: The visibility of native WP metaboxes should not be affected by 3-party disabled plugins."	mrDollar4444
	53537	Default content overwrittern when using a default post format		Editor	5.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-06-28T09:07:54Z	2021-06-28T11:12:59Z	"1. Programmatically define a default content. For example:
{{{#!php
<?php
add_filter(
	'default_content',
	function() {
		return 'My default content';
	}
);
}}}
2. Go to Settings > Writing and select a default post format, for example, 'image'.
3. Create a new post.

I expect the editor content to display ""My default content'. It displays a block image instead.

The test must be done ith a theme supporting post formats such as Twenty Twenty One."	Chouby
	57647	Deprecate wp_enqueue_block_support_styles function		Editor	6.2	normal	normal	Future Release	defect (bug)	reviewing	changes-requested	2023-02-06T23:30:35Z	2025-02-06T20:37:43Z	"Prior to the style engine classes being added to core, the code for block supports used the `wp_enqueue_block_support_styles` function to output a `<style>` tag containing the CSS styles for the block support. Using this function resulted in duplicate `<style>` tags being output on the site frontend, and redundant CSS rules.

As of 6.2, it looks like all of the block supports and block's individual PHP rendering will have been refactored to use the style engine's approach of enqueuing styles, where styles are registered using a common call to the style engine, and then only output once in a single style tag. For example, the Layout block support uses `wp_style_engine_get_stylesheet_from_css_rules` instead of `wp_enqueue_block_support_styles`.

Therefore, it should now be possible to deprecate usage of the `wp_enqueue_block_support_styles` function, and nudge any usage of that function over to use comparable style engine functions instead.

Note: this deprecation should only occur once all usage of `wp_enqueue_block_support_styles` has been removed in core blocks, which should happen once the JS packages update for 6.2 has occurred, as that update should replace the call with a call to the style engine instead."	andrewserong
	53583	Distraction Free Writing Mode not available on visual tab		Editor	5.7.2	normal	normal	Awaiting Review	defect (bug)	new		2021-07-04T03:12:40Z	2021-07-04T03:12:40Z	"When using the classic editor under keyboard shortcuts it states that Ctrl Alt W is the shortcut for distraction free writing mode. On the visual tab this shortcut doesn't work, and the icon is missing in 5.7.2. 

The reason I'm raising this issue is that in the past I had used this mode from an icon on the toolbar, and I was unable to locate it. The icon is showing on the text tab, and the shortcut works on this tab. The icon and shortcut are not able to be activated on the visual tab. Moving the cursor outside the text area exits dfw mode, although the icon shows that it's still activated. I'm not sure if this is intended.  

After checking a previous wordpress version of 5.5.5 I discovered that the icon was on the visual tab in this version, and the keyboard shortcut works as expected on both tabs. I tested this with a number of post types, such as posts, pages and products. To reproduce, load the edit post screen as described, then downgrade wordpress version to 5.5.5. The icon should now show on the visual tab."	arthurdaly
	49894	Drag & Drop image upload error on multisite install when no upload space available		Editor		normal	normal	Awaiting Review	defect (bug)	new		2020-04-13T13:19:19Z	2020-12-15T05:38:22Z	"On a multisite installation, a maximum upload space can be limited.

When using the classic editor and it's drag-and-drop upload feature while not having enough available space for a site, the image file ends up being loaded in the browser (at least in chrome) with following JS error in console:

{{{
Uncaught TypeError: Cannot read property 'uploader' of undefined in wp-includes/js/media-views.js:5268
}}}

See: https://core.trac.wordpress.org/browser/trunk/src/js/media/views/uploader/editor.js?rev=46800#L161

I would expect the classic editor to display an error similar to the one which is being displayed in media modal when attempting to upload a file while not having any available space:

{{{
Upload Limit Exceeded
Sorry, you have used your space allocation of 1 MB. Please delete some files to upload more files.
}}}

"	david.binda
	53846	Drag and drop multiple blocks into container breaks editor		Editor	5.8	normal	normal	Awaiting Review	defect (bug)	new		2021-07-31T04:16:22Z	2021-09-01T06:29:35Z	"http://somup.com/crivq7Yzif

I recently found a bug in 5.8 where dragging and dropping a group of blocks into a container (e.g. a column) breaks the editor and results in this error:
**The editor has encountered an unexpected error.**

Notes:
- I'm using v.5.8
- Steps to reproduce the problem: Create a new post. Add more than 1 paragraph block with text. Add columns block. Add text to columns block. Select paragraph blocks. Drag and drop them into columns block. The editor will break.
- The problem occurs on a fresh install of WordPress 5.8 with no plugins.
- The expected result is to be able to have paragraph blocks successfully dragged into the columns block. Instead, the editor broke.

Here is the error that shows up in the console:

{{{
TypeError: e is null
    pp http://wptest1.local/wp-includes/js/dist/block-editor.min.js?ver=390a9f83b606a55e8b523c4d16bdb08c:12
    gp http://wptest1.local/wp-includes/js/dist/block-editor.min.js?ver=390a9f83b606a55e8b523c4d16bdb08c:12
    Bh http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:126
    Dj http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:162
    unstable_runWithPriority http://wptest1.local/wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:25
    Da http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60
    xb http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:162
    Te http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:146
    Pg http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61
    unstable_runWithPriority http://wptest1.local/wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:25
    Da http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60
    Pg http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61
    ha http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60
    Ja http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:224
    ch http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:93
    e http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    t http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    v http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    b http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    i Redux
    A http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    L http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    dispatch http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    Redux 17
    A http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    L http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    f http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    ss http://wptest1.local/wp-includes/js/dist/block-editor.min.js?ver=390a9f83b606a55e8b523c4d16bdb08c:12
    us http://wptest1.local/wp-includes/js/dist/block-editor.min.js?ver=390a9f83b606a55e8b523c4d16bdb08c:12
    h http://wptest1.local/wp-includes/js/dist/compose.min.js?ver=6284a4846a73f9c3e3ff2d7bd0b47be7:2
    ce http://wptest1.local/wp-includes/js/dist/compose.min.js?ver=6284a4846a73f9c3e3ff2d7bd0b47be7:2
    T http://wptest1.local/wp-includes/js/dist/compose.min.js?ver=6284a4846a73f9c3e3ff2d7bd0b47be7:2
    P http://wptest1.local/wp-includes/js/dist/compose.min.js?ver=6284a4846a73f9c3e3ff2d7bd0b47be7:2
    A http://wptest1.local/wp-includes/js/dist/compose.min.js?ver=6284a4846a73f9c3e3ff2d7bd0b47be7:2
    Aj http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:161
    unstable_runWithPriority http://wptest1.local/wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:25
    Da http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60
    ab http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:154
    Te http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:146
    Pg http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61
    unstable_runWithPriority http://wptest1.local/wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:25
    Da http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60
    Pg http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61
    ha http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60
    <anonymous> http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:236
    Ei http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:41
    Cb http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:41
    w http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:40
    Md http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:35
    oa http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:44
    hj http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:117
    Sh http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152
    Th http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152
    tj http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152
    Te http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:146
    Pg http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61
    unstable_runWithPriority http://wptest1.local/wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:25
    Da http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60
    Pg http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61
    ha http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60
    Ja http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:224
    ch http://wptest1.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:93
    e http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    t http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    v http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    b http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    i Redux
    A http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    L http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    dispatch http://wptest1.local/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
    Redux 3
react-dom.min.js:125:24
}}}


Thanks Israel Barragan for your help with this ticket!"	lesleysim
	59124	Dropdown navigation not displaying past the header		Editor	6.3	normal	major	Awaiting Review	defect (bug)	new		2023-08-16T18:04:53Z	2023-08-16T18:58:36Z	"This is happening on multiple sites. This is an example: https://www.mightyepiphyte.com/
Since the recent WordPress update the drop-down menu is no longer showing below the header."	ManellyC
	66285	Duotone presets with slugs that are not kebab-case are not applied on the front end		Editor	6.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-11T06:58:56Z	2026-10-12T07:18:03Z	"A duotone preset whose slug is not already kebab-case (for example {{{blueOrange}}} or {{{duotone1}}}) works in the block editor but is not applied on the front end.

{{{WP_Duotone}}} registers presets under a kebab-cased filter ID ({{{get_all_global_styles_presets()}}} uses {{{_wp_to_kebab_case( $preset['slug'] )}}}), but two other places use the raw slug:

* {{{get_slug_from_attribute()}}} returns the slug exactly as written in the block attribute, so the lookup in {{{is_preset()}}} fails.
* {{{get_global_styles_presets()}}} names the CSS custom property after the raw slug.

The block editor saves the reference with the raw slug ({{{var:preset|duotone|blueOrange}}}) and resolves the colors itself, which is why the filter shows correctly in the editor.

== Steps to reproduce

1. In a block theme's {{{theme.json}}}, add a duotone preset with a camelCase slug:
{{{
""settings"": { ""color"": { ""duotone"": [
	{ ""slug"": ""blueOrange"", ""name"": ""Blue Orange"", ""colors"": [ ""#0000ff"", ""#ffa500"" ] }
] } }
}}}
2. Add an Image block to a post and apply the ""Blue Orange"" duotone filter. It shows in the editor.
3. Save and view the post on the front end.

== Actual result

The image has no filter. The preset is not recognised, so the attribute is treated as a raw CSS value:

{{{
<figure class=""wp-block-image wp-duotone-varpresetduotoneblueorange-1"">

.wp-duotone-varpresetduotoneblueorange-1.wp-block-image img { filter: var:preset|duotone|blueOrange; }
}}}

The declaration is invalid CSS and no SVG filter is printed.

The same preset applied through global styles ({{{styles.blocks.core/image.filter.duotone}}}) fails differently. Since [63641] (#66121) the reference is kebab-cased, so the block CSS and the SVG filter use {{{blue-orange}}}, but the custom property is still defined with the raw slug, so the reference never resolves:

{{{
:root { --wp--preset--duotone--blueOrange: url(#wp-duotone-blue-orange); }
.wp-duotone-blue-orange.wp-block-image img { filter: var(--wp--preset--duotone--blue-orange); }
}}}

== Expected result

The filter is applied on the front end, with the class name, SVG filter ID, custom property and block CSS all using the kebab-cased slug ({{{blue-orange}}}).

== Proposed fix

Convert the slug to kebab-case in {{{WP_Duotone::get_slug_from_attribute()}}} and in {{{WP_Duotone::get_global_styles_presets()}}}, so every part uses the same form the presets are registered under. Slugs that are already kebab-case are unchanged.

The block attribute path has behaved this way since the class was introduced in 6.3. I have a patch with unit tests and will open a PR shortly."	maheshbohara
	58813	Editing Slug to an Existing Slug causes wrong content to display		Editor		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-07-14T19:14:37Z	2023-07-19T18:52:15Z	"**NOTE** This only works if you have the Classic Editor plugin active.

I made a ticket there - https://github.com/WordPress/classic-editor/issues/201 - but they said it's a core bug.

I am aware this is a weird one.

The setup is as follows:

1. Make a clean website
2. Make a couple posts (content does not matter)
3. Install and Activate Classic Editor
4. Make a new post and save as draft
5. Copy the permalink from an existing post and paste it into the new post as the permalink, save as DRAFT (do not publish)
6. You will see the NEW post has a -2 added to the permalink (this is as expected)
7. Open the ORIGINAL existing post with the non -2
8. The post will display the content (title and all!) from the NEW post that is still in draft (this is NOT expected)

This **does not** happen with the Block Editor, it can only be reproduced in Classic Editor, however the CE side feels this is a bug in core.

I dug up that this is fixed in Gutenberg per #52422 however it still exists in classic editor.

I can confirm that this happens from WP 4.9.x through 6.0.x '''without''' Classic Editor. 

As of 6.1.3, this is fixed in Block Editor, and only appears if you have the Classic Editor active."	Ipstenu
	65872	Editor: enable notes on the global styles post type		Editor		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-13T15:40:55Z	2026-08-13T15:42:32Z	"''Claude did most of the write up here, forwarded along with some edits:''

Notes as they shipped in 6.9 anchor twice: to a post, through `comment_post_ID`, and within that post to a block, through that block's own `metadata.noteId` attribute. A surface with neither is out of reach today.

The Style Book is exactly that surface. It has no post of its own, and its examples are generated fresh on every render, so there is no persisted block to record a note id on. Feedback on a theme's styles - ""these headings feel tight"", ""this button needs more contrast"" - currently has nowhere to live, and reviewing a theme's styles is one of the places a review conversation is most useful.

See https://github.com/WordPress/gutenberg/issues/73278 for the feature request and the discussion behind it.

== Proposed change ==

Two small additions, neither of which changes existing behavior:

1. `wp_global_styles` declares notes support, by way of `'editor' => array( 'notes' => true )` in `create_initial_post_types()`. The theme's user global styles post is the record the Styles UI already edits, which makes it the natural home for feedback about that theme's styles.

2. A new `_wp_note_anchor` comment meta, registered in `wp_create_initial_comment_meta()`. A single string that the anchoring surface defines and resolves, sanitized with `sanitize_text_field` and capped at 100 characters. Core never interprets it.

For the Style Book the anchor holds the example name - `core/button`, `typography`, `theme-colors`. Those names are deterministic and stable across sessions, users and reloads, which block client ids are not.

Nothing in core reads the anchor. This is the storage half; the UI lives in Gutenberg.

== Consequences worth stating ==

* Notes on global styles inherit that post type's capabilities, so writing one requires `edit_theme_options`. On most sites that means administrators only.
* Core keeps one global styles post per theme, so the notes are theme-specific. Switching themes shows a different set; switching back brings the original notes with it. That seems right given the styles being reviewed are themselves theme specific, but it is a semantic worth confirming.

== Patches ==

* Core: https://github.com/WordPress/wordpress-develop/pull/13030
* Gutenberg (the UI, plus the same two registrations as a `wordpress-7.2` compat file): https://github.com/WordPress/gutenberg/pull/81554


== Questions ==

1. Should `_wp_note_anchor` be a flat string, or namespaced from day one - eg. `stylebook:core/button` - to leave room for other anchor domains such as template areas or theme.json paths? The meta is a string either way, so a namespaced scheme could be layered on later without a migration.
2. Is `edit_theme_options` the intended audience, or is there appetite for letting lower roles view but not write these notes? That would need a capability mapping change and is not part of this patch.
3. Is theme-specific the right semantic to ship, with the switching behavior documented?"	adamsilverstein
	31798	Editor: switch undo and redo in RTL		Editor		low	normal	Future Release	defect (bug)	new	has-patch	2015-03-29T11:35:54Z	2025-06-30T17:12:41Z	"The undo and redo icons in RTL should we switched. 

LTR:
https://cloudup.com/cHOxlUfHbAp

Current RTL:
https://cloudup.com/cizBcGBMkCa

Proper RTL:
https://cloudup.com/cSCyiF_HxMA
"	yoavf
	66375	Enqueue the classic theme styles synced from Gutenberg instead of `classic-themes.css`		Editor		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-24T11:11:07Z	2026-10-25T21:54:24Z	"`wp-includes/css/classic-themes.css` is needed to provide the default styles of some core blocks, such as the Button block, in classic themes without a `theme.json`.

Gutenberg has the same styles in [https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/classic.scss classic.scss], and its build output is already synced to core as `wp-includes/css/dist/block-library/classic.css`, but this file is never loaded. Instead, core enqueues its own copy, which is outdated compared to Gutenberg and is missing the styles for the Tabs and Accordion blocks ([https://github.com/WordPress/gutenberg/pull/73608 GB 73608]), [https://github.com/WordPress/gutenberg/pull/77607 GB 77607]).

== Proposed changes

Remove the file bundled in core, and enqueue the stylesheet synced from Gutenberg as `classic-theme-styles` instead. This way, future changes to the styles will reach core through the regular package sync.
"	wildworks
	66428	Entity Fields: Do not register the Parent field for non-hierarchical post types		Editor	trunk	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-31T08:16:43Z	2026-10-31T11:54:43Z	"== Summary ==

The server registers the Parent DataForm field for any REST-enabled post type supporting page-attributes, even when the post type is not hierarchical. A flat post type can use page-attributes for ordering without supporting parent-child relationships.

This tracks the PHP backport of https://github.com/WordPress/gutenberg/pull/85679 for the reproduced issue https://github.com/WordPress/gutenberg/issues/85595. The entity-fields feature landed for WordPress 7.2 under #66229; that feature ticket is closed. This report concerns the separate parent-field registration regression, not reopening the feature.

== Reproduction ==

On a development installation containing the server-registered core fields, register a REST-enabled custom post type:

{{{#!php
add_action( 'init', static function () {
    register_post_type( 'flat_book', array(
        'public'       => true,
        'show_in_rest' => true,
        'hierarchical' => false,
        'supports'     => array( 'title', 'editor', 'page-attributes' ),
    ) );
} );
}}}

Open an item of this type in the block editor and inspect its post settings. The Parent control is exposed even though the post type is flat. The same defect is observable in the registered fields returned by the entity-fields API: the parent field is present for flat_book.

Expected: parent is registered only when the type is hierarchical and supports page-attributes. Ordering and page-attributes support remain unchanged. A hierarchical type with that support keeps the Parent field; a type without that support does not get it.

== Cause and proposed fix ==

wp_register_core_post_type_supports_fields() in src/wp-includes/build/scripts/core-fields/index.php currently checks only post_type_supports(). Require is_post_type_hierarchical() as well. Replace the support-only parent dataset in tests/phpunit/tests/entity-fields/wpRegisterCoreFieldCollections.php with all four hierarchy/support combinations.

The prepared PHP runtime file is byte-for-byte identical to the Gutenberg fix. No unrelated entity-fields cleanup, post ordering, supports, persistence or legacy React change is included in this Core port. A corresponding Core PR will be linked after this ticket exists; no Core PR has been submitted yet.

== Validation ==

Local Core base 45552748e4e2252320af7995814df29e91a43897, PHP 8.4.12, PHPUnit 9.6.38, MariaDB 10.11.18:

* Unchanged owning class: 36 tests, 143 assertions passed.
* Failing-first regression: 39 tests, 145 assertions, exactly one failure for the non-hierarchical type with page-attributes before the guard.
* Fixed owning class: 39 tests, 145 assertions passed.
* The complete entity-fields group, including REST, passed 125 tests and 458 assertions in single-site and 125 tests and 458 assertions in multisite.
* Applicable coding standards, PHP syntax and diff checks passed. Existing upstream PHPUnit XML deprecation warning remains. No tests or checks were disabled.

These are actual local results from October 27, 2026, not upstream CI results. The full Core suite and a Core browser smoke test were not run. The original Gutenberg contribution has separate dated browser regression coverage.

Suggested release target: 7.2, subject to maintainer triage. The form remains Awaiting Review; no release assignment is claimed.

== Use of AI Tools ==
Νο
"	linewebdigital
	56464	Event custom metabox with Gutenberg not showing correctly		Editor		normal	normal	Awaiting Review	defect (bug)	new		2022-08-30T12:06:03Z	2022-08-30T12:18:20Z	"Hi there. I’m using The Events Calendar free version 5.16.4 and WP version 6.0.1.
If in the settings I flag the use of Gutenberg with events, in the event backend page I can’t scroll down to the events metabox, therefore it’s impossible to insert event date and time or other fields.

If the option is disabled everything works fine, but I can’t use Gutenberg, even by pressing the grey Gutenberg button on the top.

I tried to check if it's a problem of height (solvable with CSS), but it seems the box is not filled at all, and it seems empty. See the screenshot.

Everything is up-to-date, I tried to change versions and it seems the same, php is 7.4. I deactivated all plugins and changed theme, nothing changed."	pasamedia
	45126	Expired session post editing continuation bug		Editor	4.9.8	normal	normal	Awaiting Review	defect (bug)	new		2018-10-18T21:59:36Z	2020-11-12T05:59:06Z	"While editing or creating a new post, it's not possible to continue your workflow in the same post when your WordPress session expires and you're asked to log in again. Attempting to save or publish from the existing screen after re-logging in from the pop-up dialogue will produce a ""link expired"" error. You then have to navigate back to the Dashboard and re-open the post you were working on. "	ChrisDca
	60151	FSE theme Styles select Issue		Editor		normal	normal	Awaiting Review	defect (bug)	assigned		2023-12-26T11:46:13Z	2024-02-15T16:25:33Z	"Hi,
I am a WordPress plugin developer. While developping a feature I found a bug in styling gutenberg block.

The issue is: Suppose I have four preset color. Ex. primary: `#000000`, secondary: `#7345F7`, tertiary: `#f0f0f0`, custom: `#7345F7`.

When select the color property of a block if I select ""custom"" both ""custom"" and ""secondary"" got selected and in the backend the ""secondary"" is saved but I did not choose the ""secondary"" option.

I think it selects based on color code rather than color slug.

Issue image link : https://drive.google.com/file/d/1j-b1MH4u_gdV7vbVxaDhffbgmNEUFfnA/view?usp=sharing

Thank You.

Regards
Tazeen Ehsan Teebro"	tazeenehsan
	54417	Featured Image Exceeds Container		Editor	5.8.1	normal	normal	Awaiting Review	defect (bug)	new		2021-11-10T23:44:33Z	2021-11-10T23:44:33Z	When a portrait-oriented featured image is selected on a WordPress post, it appears to be exceeding the boundaries of its container and obscuring other items on the right hand toolbar. The left edge of the Featured Image tab is still clickable, and the problem can be circumvented by closing the Featured Image tab. But, while it is open, any items behind the Featured Image are not visible or clickable.	johnkakuk
	57499	Featured Image block size options not displaying in FSE		Editor		normal	normal	Awaiting Review	defect (bug)	new		2023-01-18T13:17:43Z	2023-01-18T13:17:43Z	"Featured Image block size options not displaying in FSE editor while they are visible in Gutenberg editor.
Can you correct this please?

Thanks

Stephan Renault"	StephanR
	65071	Focus border styling breaks slug input layout in Classic Editor	joedolson*	Editor		normal	normal	Awaiting Review	defect (bug)	accepted	has-patch	2026-04-14T10:39:19Z	2026-05-19T20:55:00Z	"While testing the changes introduced in PR: [https://github.com/WordPress/wordpress-develop/pull/11551], I came across a UI issue in the Classic Editor related to the post slug (permalink) editing field.

When the slug input receives focus, the focus border appears larger than expected and causes the layout to break.

**Steps to Reproduce:**

- Go to Posts → Add New (or edit an existing post)
- Click on the permalink “Edit” button
- Focus on the slug input field
- Observe the input field styling

**Expected Behavior:**
The focus state should not alter the layout or dimensions of the input field. The slug field should remain properly aligned within its container.

**Actual Behavior:**
On focus:

- The border/outline appears thicker or offset
- The input visually overflows or misaligns
- The slug field appears “broken” within the layout"	dhruvang21
	60790	Font Library: Editor has encountered an unexpected error		Editor	6.5	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-03-16T10:02:59Z	2026-02-07T00:06:39Z	"During the customization of the Blog template, an unexpected error was encountered by the editor when changing the line height after uploading a custom font.



"	shilpamanoj
	55916	Font size in post editing is not validated		Editor	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-06-04T09:12:21Z	2022-06-11T16:28:19Z	"In the post editing page, the font size is constrained by front end HTML 'type=number'. 
[[Image(https://ibb.co/NLhJvKY)]]

However, this font size can be changed by intercepting the requests. And the resulted HTML will contain the font size making no sense:

<p style=""font-size:aaapx"">User’s blogs</p>

This may result in data corruption or web injection."	floridsleeves
	62208	Font size issue occur in responsive for author filter list		Editor	6.6.2	normal	normal	Awaiting Review	defect (bug)	new		2024-10-11T13:53:04Z	2024-10-14T05:44:06Z	"While selecting pages setting from Editor.
And switching screen in responsive mode and noticed the font size of author filter select list is bigger as compared in desktop mode."	multidots1896
	61492	For planned articles, pages 2 (to x) do not work in the preview		Editor	6.5.5	normal	normal	Awaiting Review	defect (bug)	reopened	close	2024-06-25T07:16:57Z	2026-02-02T11:09:24Z	"If you plan a multi-page article, the first page is always loaded when you click on page 2 (to x) in the preview.

Steps to reproduce the error:
1. create a multi-page article
2. plan it for the future
3. open the article in the preview
4. click on page 2"	1benk1
	57091	Global Styles: Element styles not working for third-party blocks		Editor	6.1	normal	normal	Awaiting Review	defect (bug)	assigned		2022-11-12T18:45:31Z	2022-11-12T18:45:31Z	"This is a follow-up to #56915.

== The Problem:

Element-specific global styles for third-party blocks still don't work. The styles are not added to the inline CSS in the frontend.

----

=== **General global styles for third-party blocks work well:**
{{{
{
    ""$schema"": ""https://schemas.wp.org/trunk/theme.json"",
    ""version"": 2,
    ""styles"": {
        ""blocks"": {
            ""my/third-party-block"": {
                ""color"": {
                    ""background"": ""hotpink""
                }
            }
        }
    }
}
}}}
✔ work well in the block editor
✔ work well in the frontend


----

=== **Element-specific global styles for third-party blocks don't work:**
{{{
{
    ""$schema"": ""https://schemas.wp.org/trunk/theme.json"",
    ""version"": 2,
    ""styles"": {
        ""blocks"": {
            ""my/third-party-block"": {
                ""elements"": {
                    ""link"": {
                        ""color"": {
                            ""background"": ""hotpink""
                        }
                    }
                }
            }
        }
    }
}
}}}
✔ work well in the block editor
❌ don't work in the frontend


----

== Investigation:

Since it works fine in the block editor, I thought it must be unintentional that it doesn't work in the frontend. So I researched deeper and came across the {{{wp_add_global_styles_for_blocks}}} function.

At the end of the function there is this part:

{{{
function wp_add_global_styles_for_blocks() {

	...

		// The likes of block element styles from theme.json do not have  $metadata['name'] set.
		if ( ! isset( $metadata['name'] ) && ! empty( $metadata['path'] ) ) {
			$result = array_values(
				array_filter(
					$metadata['path'],
					function ( $item ) {
						if ( strpos( $item, 'core/' ) !== false ) {
							return true;
						}
						return false;
					}
				)
			);
			if ( isset( $result[0] ) ) {
				if ( str_starts_with( $result[0], 'core/' ) ) {
					$block_name        = str_replace( 'core/', '', $result[0] );
					$stylesheet_handle = 'wp-block-' . $block_name;
				}
				wp_add_inline_style( $stylesheet_handle, $block_css );
			}
		}
	}
}
}}}
In that part this happens:

1. With the statement {{{if ( str_starts_with( $result[0], 'core/' ) )}}} we check whether it is a core block or not. However, because of the {{{array_filter}}} before, the values of {{{$result}}} can only start with {{{core/}}} anyway. So this if statement is redundant.
2. So if {{{isset( $result[0] )}}} is {{{TRUE}}}, it always is a core block. Therefor the function {{{wp_add_inline_style}}} will be called only for core blocks but never for third-party blocks.

----

== Solution:
* Remove the redundant {{{if ( str_starts_with( $result[0], 'core/' ) )}}} statement
* Move the {{{wp_add_inline_style}}} function call outside the {{{if ( isset( $result[0] ) )}}} statement
{{{
function wp_add_global_styles_for_blocks() {

	...

		// The likes of block element styles from theme.json do not have  $metadata['name'] set.
		if ( ! isset( $metadata['name'] ) && ! empty( $metadata['path'] ) ) {
			$result = array_values(
				array_filter(
					$metadata['path'],
					function ( $item ) {
						if ( strpos( $item, 'core/' ) !== false ) {
							return true;
						}
						return false;
					}
				)
			);
			if ( isset( $result[0] ) ) {
				$block_name        = str_replace( 'core/', '', $result[0] );
				$stylesheet_handle = 'wp-block-' . $block_name;
			}
			wp_add_inline_style( $stylesheet_handle, $block_css );
		}
	}
}
}}}
"	ehtmlu
	66465	Global Styles: Put text clip resets on a block's feature selectors		Editor	trunk	normal	normal	7.3	defect (bug)	new	has-patch	2026-11-04T02:52:41Z	2026-11-04T02:59:15Z	"Backport of Gutenberg PR https://github.com/WordPress/gutenberg/pull/86246.
Related: https://github.com/WordPress/wordpress-develop/pull/13491#discussion_r4311383088

Text colours over a text gradient now show on blocks that style an inner element, like the Search button. This covers colours set at a breakpoint, on :hover and in a block style.

A text gradient makes the text fill transparent. When a later style sets a solid text colour, WP_Theme_JSON adds -webkit-text-fill-color: currentColor so the colour shows.

For blocks with feature selectors, the color and background styles were removed before that check ran, so it found nothing. When it did add a reset, it went on the block's main selector, not the inner element.

The check now reads the theme.json data. The text fill reset goes on the block's color feature selector and the clip escape on its background one. Output for other blocks is unchanged.
"	aaronrobertshaw
	66629	Global Styles: fontVariant is removed from theme.json font face settings		Editor	6.5	normal	normal	7.3	defect (bug)	new	has-patch	2026-11-09T02:26:14Z	2026-11-09T02:31:16Z	"Gutenberg PR: https://github.com/WordPress/gutenberg/pull/86478

The theme.json JSON schema, `WP_Font_Face`, `WP_Font_Collection`, and the font faces REST endpoint all accept `fontVariant` for a font face.

* `WP_Font_Face`: https://github.com/WordPress/wordpress-develop/blob/c05f7a66b0b9f89b5b140dac234602dcf325a17d/src/wp-includes/fonts/class-wp-font-face.php#L46
* `WP_Font_Collection`: https://github.com/WordPress/wordpress-develop/blob/c05f7a66b0b9f89b5b140dac234602dcf325a17d/src/wp-includes/fonts/class-wp-font-collection.php#L275
* Font faces REST endpoint: https://github.com/WordPress/wordpress-develop/blob/c05f7a66b0b9f89b5b140dac234602dcf325a17d/src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php#L624

However, `WP_Theme_JSON::FONT_FAMILY_SCHEMA` does not include it, so the property is removed when theme.json data is sanitized.

=== Steps to reproduce

1. Activate a block theme and replace its `theme.json` with the following:

{{{
{
	""$schema"": ""https://schemas.wp.org/trunk/theme.json"",
	""version"": 3,
	""settings"": {
		""typography"": {
			""fontFamilies"": [
				{
					""name"": ""Roboto"",
					""slug"": ""roboto"",
					""fontFamily"": ""Roboto, sans-serif"",
					""fontFace"": [
						{
							""fontFamily"": ""Roboto"",
							""fontStyle"": ""normal"",
							""fontWeight"": ""400"",
							""fontVariant"": ""small-caps"",
							""src"": [
								""https://fonts.gstatic.com/s/roboto/v51/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWubEbWmWggvWl0Qn.woff2""
							]
						}
					]
				}
			]
		}
	}
}
}}}

2. View the source of the front end and find the `@font-face` rule in the `wp-fonts-local` style tag.

=== Expected

`font-variant` is printed in the `@font-face` rule (formatted for readability):

{{{
@font-face {
	font-family: Roboto;
	font-style: normal;
	font-weight: 400;
	font-display: fallback;
	src: url('https://fonts.gstatic.com/s/roboto/v51/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWubEbWmWggvWl0Qn.woff2') format('woff2');
	font-variant: small-caps;
}
}}}

=== Actual

`font-variant` is missing from the `@font-face` rule (formatted for readability):

{{{
@font-face {
	font-family: Roboto;
	font-style: normal;
	font-weight: 400;
	font-display: fallback;
	src: url('https://fonts.gstatic.com/s/roboto/v51/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWubEbWmWggvWl0Qn.woff2') format('woff2');
}
}}}"	wildworks
	58045	Global style change cannot be reverted		Editor	6.2	normal	normal	Awaiting Review	defect (bug)	new		2023-04-01T16:53:48Z	2023-04-01T16:53:48Z	"After applying a background color to a Column block via Layout and clicking Apply Globally under Settings -> Advanced, all blocks changed to the same color, as expected.

However, when reverting the background color of any Column block is set to  transparent (when all checkmarks in the background color popup are deactivated), the recently-applied Global color remains, even if Apply Globally is clicked again.

It is possible to change the selected block to another color (or gradient), as well as a new background via Apply Glohally to all blocks, but a transparent background cannot be restored in the theme."	sidewaysdesign
	49891	Gutenberg Block Cover - Fixed Background		Editor	5.4	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-04-13T11:38:23Z	2025-04-29T22:25:00Z	Hello! In the latest versions of Google Chrome (80-81) and similar browsers, the fixed background in the Cover block has stopped working. It does not depend on the theme, nor on the installed plugins, nor on the custom code. Checked on working sites, on a local server. Php 7.4 and below. WordPress 5.4. Windows 10 Home Operating System.	zabavljaev
	63817	Gutenberg List View – Drag & Drop Blocks Misbehaving with Nested Columns		Editor	6.8.2	normal	normal	Awaiting Review	defect (bug)	new	close	2025-08-12T05:50:24Z	2025-08-12T16:18:38Z	"When using the block editor’s List View, dragging a block from one nested column to another often results in the block being dropped outside the intended container. This disrupts the block hierarchy and can break the layout, forcing the user to manually move the block back into place.

Steps to Reproduce:

1.Create a new page in the Gutenberg editor.
2.Add a Columns block with three columns.
3.Inside the third column, add another Columns block (nested).
4.Add any block (e.g., Paragraph) inside the nested columns.
5.Open List View.
6.Try dragging a block from one nested column to another.

Expected Result:
The block should always be placed inside the target column.

Actual Result:
The block is often placed outside the intended nested column, sometimes even outside the main Columns block entirely.

Environment:
WordPress version:  6.8.2
Gutenberg version: bundled in core
Theme: Twenty Twenty-Five
Browser: Chrome 126 (Windows/macOS)"	rahultank
	50443	Heading h2 rest api level		Editor	5.4.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-06-22T00:26:00Z	2020-11-23T03:43:01Z	"Во всех заголовках кроме h2, возвращаются нормальные атрибуты уровня. Не знаю с чем это связано.


{{{
{
    ""blockName"": ""core/heading"",
    ""attrs"": [],
    ""innerBlocks"": [],
    ""innerHTML"": ""\n<h2>222222222222222</h2>\n"",
    ""innerContent"": [
        ""\n<h2>222222222222222</h2>\n""
    ],
    ""content"": {
        ""text"": ""222222222222222""
    }
},
}}}

"	zavod008
	53901	"I found error in wordpress ""Publishing failed. The response is not a valid JSON response."""		Editor	5.8	normal	critical	Awaiting Review	defect (bug)	new		2021-08-09T12:50:50Z	2021-08-09T12:50:50Z	"I found an error while publishing the post ""Publishing failed. The response is not a valid JSON response."" I tried a couple of plugins and tricks I cant sussessed. KIndly help me to solve this issue. regards"	uzair23
	59498	I18N issue in site editor		Editor	6.3.1	normal	normal	Awaiting Review	defect (bug)	new		2023-09-29T10:02:37Z	2023-09-29T10:32:31Z	"Hi,

In the site editor, when a template or a template part, or even a style...is modified, the following message is displayed: ""Last modified  a few seconds ago"".

This string corresponds to: [https://translate.wordpress.org/projects/wp/dev/fr/default/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=135&filters%5Btranslation_id%5D=131480]
and as it's a variable we can't translate it.

In french, for example, the message is ""Dernière modification il y a a few seconds"".
In spanish, the message is ""Última modificación hace a few seconds""

We have a break in I18N here, due to this variable.

Thanks for the modification.

"	jdy68
	58759	Iframed block editor breaks printing some pre-registered scripts enqueued late		Editor	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-07-08T02:56:29Z	2023-07-08T02:56:29Z	"https://core.trac.wordpress.org/changeset/56047/ changed the way scripts are loaded in the block editor which can have unexpected consequences for scripts that otherwise load successfully in other areas of wp-admin. This changeset broke enqueuing pre-registered scripts by handle, if the scripts were also registered beforehand.

The following code can be used to demonstrate:

{{{#!php
<?php

function register_my_script() {
    wp_register_script( 'test-script', '/foo.js' );
}
add_action( 'admin_enqueue_scripts', 'register_my_script' );
add_action( 'wp_enqueue_scripts', 'register_my_script' );

add_action( 'wp_print_scripts', function () {
    wp_enqueue_script( 'test-script' );
} );
}}}

The script is printed successfully globally across the site (wp-admin + front), including the editor in 6.2 and before.

**Posts screen (404 shows script was printed)**
[[Image(posts.jpg)]]

**Block editor (no 404 and error in query monitor – script not printed)**
[[Image(block-editor.jpg)]]

Tested using revision 56164 as can be seen in the screenshot.

Note, that the same script if registered on `init` instead is printed successfully in the block editor and Query Monitor shows the same ""missing dependency"" error. This shows that the change does not affect all pre-registered scripts but there is a matter of timing involved. Nonetheless, the above used to work so it is a breaking change.
"	aaemnnosttv
	53154	Image in 'Media & Text' block not affected by 'Additional CSS class(es)'		Editor	5.7.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-05-04T14:43:26Z	2021-05-19T13:55:30Z	After the update, styles added to the image's 'Additional CSS class(es)' on the 'Media & Text' block no longer work.	danieldau
	56768	Images encoded with Base64 with a given string length appears weird in editor but kills the post render on the site		Editor	6.0.2	normal	normal	Awaiting Review	defect (bug)	new		2022-10-09T08:26:27Z	2022-10-09T08:26:27Z	"Dear Developers,

I tried to put an image into one of my posts encoded with base64. The image is encoded from PNG to Base64 using macOS 
{{{
base64 -i input.png -o output.png.txt
}}}
 command.

The image converted and successfully edited in the related post image block by entering HTML editor and replaced the img src="""" with the following:

{{{
<figure class=""wp-block-image aligncenter""><img src=""data:image/png;base64,<base64 long string>"" alt=""Alternate text"" /></figure>
}}}

When I switched back to preview mode, the image successfully displayed in the editor, however the post when published is broken.

I have some screenshots from my blog site as well as the image as base64 file."	burgatshow
	61600	Import of scheduled posts		Editor		normal	minor	Awaiting Review	defect (bug)	new		2024-07-09T09:44:41Z	2025-02-19T20:48:01Z	"I have created an import routine for scheduled posts. 
Import works as it should but when I look att the imported posts are some showen as scheduled and other published. 
But if I click on edit for any of the post that shows as published then I can see that they are in fact scheduled.
Non of the imported post show up as published at the homepage before the time they should be published.
The import works just anoying that some posts show up as published on the edit page before they are published."	lejon
	45691	In Code View Bolded Text Has Strong tag wrapped around each character		Editor	5.0.1	normal	normal	Awaiting Review	defect (bug)	new	close	2018-12-18T17:50:14Z	2026-01-31T21:13:47Z	"When copying a word document over to create a new page, the formatting carries over...mostly. But when you look at the content in code view there are extra tags that is added which make the code look sloppy.

Here is a sample of the extraneous code added when viewing the code;

<p><strong>S</strong><strong>H</strong><strong>A</strong><strong>RING INFORMATION WITH ADVERTISERS </strong><strong>OR </strong><strong>OTHER THIRD </strong><strong>P</strong><strong>A</strong><strong>R</strong><strong>T</strong><strong>I</strong><strong>E</strong><strong>S</strong></p>

Why is it adding a strong tag around each character?

I am adding a screengrab of the Dev Tools and of WordPress 5.0 UI."	codingsince007
	56744	Inaccuracy in user_can_richedit() function on /wp-includes/general-template.php		Editor	6.0.2	normal	normal	Awaiting Review	defect (bug)	new	needs-refresh	2022-10-06T03:45:14Z	2022-10-06T03:45:14Z	"The user_can_richedit function assumes that the Editor can only be displayed for supported browsers, but it only considers known browsers (user-agent). Any others not known will be considered ""unsupported"" by the Editor. Below is the code snippet that handles this logic:

{{{#!php
<?php
$wp_rich_edit = false;

if ( 'true' === get_user_option( 'rich_editing' ) || ! is_user_logged_in() ) { // Default to 'true' for logged out users.
		if ( $is_safari ) {
				$wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && (int) $match[1] >= 534 );
		} elseif ( $is_IE ) {
				$wp_rich_edit = ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Trident/7.0;' ) !== false );
		} elseif ( $is_gecko || $is_chrome || $is_edge || ( $is_opera && ! wp_is_mobile() ) ) {
				$wp_rich_edit = true;
		}
}
}}}

The effect of this logic is that if the user-agent is not known, the Editor will be displayed ""broken"" in the graphical interface, as shown in the example below:

[[Image(""https://resource.voelivre.com.br/wordpress_editor.jpg"")]]


This is because in /wp-includes/class-wp-editor.php the print_default_editor_scripts function checks user_can_richedit to define the $settings variable that is used to load the editor settings according to the code snippet below:

{{{
window.wp.editor.getDefaultSettings = function() {
	return {
			tinymce: <?php echo $settings; ?>,
			quicktags: {
					buttons: 'strong,em,link,ul,ol,li,code'
			}
	};
};
}}}

This premise, of only considering the Editor compatible with known user-agents, can affect environments such as CloudFront from AWS because by default CloudFront uses the User-Agent ""Amazon CloudFront"" which is obviously not recognized by the user_can_richedit function and causes the breaking of the Editor without any notice to the user.

I suggest that some message be included in the graphical interface informing that the Editor is not compatible with the specific user-agent, informing its name. Or that some specific message is created for CloudFront, informing about a bad configuration in the AWS environment.
"	tassiocoelho
	55494	Include only Sticky Posts bug		Editor	5.9.2	normal	critical	Awaiting Review	defect (bug)	new		2022-03-31T09:22:20Z	2022-03-31T13:21:19Z	Hi there, in wordpress 5.9 last version, using editor to compose pages template, you may verify that if in 'Query loop' block you choose to select and view only sticky posts, it does not work. It shows instead all posts. Even Include and Exclude options are not working.	ricoverato
	56310	Inconsistency when adding fonts to fontFamilies in wp_global_styles post		Editor	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-07-30T07:49:46Z	2025-05-12T01:37:59Z	"When fonts are added to the theme settings saved in a `wp_global_styles` post, they are processed differently by the FSE Global Styles editor than they are by `script-loader.php`

The FSE Global Styles looks to see if the `fontFamilies` node exists and if it does then the fonts there are used to populate the ""Font Family"" dropdown in Global Styles overriding and ignoring any fonts outlined in `fontFamilies` in the theme's `theme.json`

However, when the fonts are processed by `/wp-includes/script-loader.php`, the opposite happens ... the fonts in the `wp_global_styles` post are completely ignored and only the fonts in `theme.json` are added to `wp-webfonts` inline styles.

I would have expected this to be consistent and for the fonts in the `wp_global_styles` post to be processed and for the ones in `theme.json` to be ignored as per the behaviour in the FSE Global Styles editor?

Oliver"	domainsupport
	60956	Incorrect copy-paste behavior in the header		Editor	6.5	normal	critical	Awaiting Review	defect (bug)	new		2024-04-08T05:26:00Z	2024-04-08T05:26:00Z	"If you copy a word in the title and try to paste it there, it will be pasted 3 times! And then 4 times and more. In addition, in 100% of cases, it is not the word that is copied, but the ENTIRE title. It is impossible to edit the title using basic functions (copy, cut, paste); you always have to write it manually or edit it character by character.

1. Create a new post
2. Write any title
3. Select 1 word or several letters, press Ctrl+C
4. Go to the end of the title (or any other place) with the cursor and press Ctrl+V."	Kuuuzya
	64912	"Issue with the ""layout"" node on blocks in theme.json"		Editor	6.9.4	normal	normal	Awaiting Review	defect (bug)	new	close	2026-03-20T12:25:52Z	2026-03-24T05:12:22Z	"**Actual behaviour in WP 6.9.4, clean install**

If you set the ""layout"" property on a **block** in theme.json without including the ""wideSize"" or ""contentSize"" child properties, the ""align"" control disappears from all its **child blocks**, i.e.

{{{
""settings"": {
	""blocks"": {
		""core/group"": {
			""layout"": {
				""allowCustomContentAndWideSize"": false
			}
		}
	},
	...
}
}}}

This is also the case when ""wideSize"" and ""contentSize"" have been set correctly in the global ""layout"" settings:

{{{
""settings"": {
	""layout"": {
		""contentSize"": ""50rem"",
		""wideSize"": ""75rem""
	},
	...
}
}}}

**Expected behaviour**

When ""wideSize"" or ""contentSize"" are not included in the block layout node, I would expect the **global** ""wideSize"" or ""contentSize"" layout settings to apply.

In order to remove ""wideSize"" or ""contentSize"" layout support for a block, I would expect this to be done explicitly, i.e. ""wideSize"": false

Today I spent hours figuring out why the ""align"" control disappeared from all the child blocks in my custom block, where I had disabled ""allowCustomContentAndWideSize""  (only).
"	peroks
	59194	Lazy Loading not applying at all in the front page template		Editor	6.3	normal	critical	Awaiting Review	defect (bug)	new		2023-08-24T19:42:58Z	2023-08-24T19:51:22Z	We have many sites built in the full site editor, but none of the images will lazy load within the front page template. No images have the lazy load attribute and google page speed insights detect that none of them are lazy loaded	devoantor
	59344	Link UI Goes Off The Screen, Can't Acces Advanced		Editor	6.3.1	normal	major	Awaiting Review	defect (bug)	new		2023-09-14T01:26:38Z	2023-09-14T01:26:38Z	"As it says above, can't edit links or access ""advanced"" for links on left side of the screen ... UI pops up mostly out of the window."	hmnvtn
	52601	Link validation issue on TinyMCE using Classic Editor		Editor	5.6	normal	minor	Awaiting Review	defect (bug)	new	dev-feedback	2021-02-22T15:25:49Z	2025-09-22T18:46:29Z	"Just spotted a small issue on Classic Editor, during the 5.6.2 release party.
New links seem to have a `data-wplink-url-error=""true""` attribute after they are inserted. It’s ok after the post is saved."	audrasjb
	59228	Links in 6.3 missing new window.nofollow.etc		Editor	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-08-28T18:01:09Z	2024-01-25T21:05:12Z	"Hi

Updated to 6.3 and when adding a link can add the link but there is no option for new window, nofollow, etc like before. I assume it is just missing not intentionally so passing it on. I can add it with code using the code editor but not as easy.

Thanks in advance"	tradiecorp
	61032	List item blocks displays unexpected or invalid content error		Editor	6.5	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-04-18T09:14:02Z	2025-05-12T01:38:20Z	"Our prod environment, www.hetvliegendwiel.be, has recently been upgraded by our provider to 6.5.2. Every list item block on our website now has the above error. Attempt block recovery removes the text and defaults to an empty list item block. The resolve block option shows identical info in the current and after conversion pop-up and the convert to button doesn't do anything. (see printscreen)

When I use attempt block recovery, re-type the text it should contain, update and reload the page, the error is back.
When I add a new list item block, add text, update, reload the page, the error is there as well.
Extendable theme is on latest update, only use Extendify as a plugin. This was active by default when the wordpress space was initially provided to us.

Our dev environment has identical setup, but is still running 6.3.2 and no issues there. 
"	tomdb
	52475	Metaboxes unable to be moved to side panel anymore?		Editor	5.6.1	normal	normal	Awaiting Review	defect (bug)	new		2021-02-09T02:59:23Z	2021-02-19T07:09:23Z	"Hi community,
I am not entirely sure if this falls under WP or Gutenberg but at some point during recent updates moving metaboxes between main Gutenberg main screen and side panel stopped working.

Before, you were able to click on this button to move metaboxes between main content and side panels. Now in some cases it still works, however, it seems like when you move all metaboxes to the content, that's where it's stuck (like on the image) and you can't move them around anymore. Both first and last metabox have their arrows going out disabled. 
[[Image(https://snipboard.io/JZBTPh.jpg)]]"	rklis
	45558	Move _draft_or_post_title() from wp-admin/includes to wp-includes		Editor	5.0	normal	normal	Future Release	defect (bug)	new	dev-feedback	2018-12-09T21:47:23Z	2019-04-08T06:38:33Z	"In the WordPress 5.0 release package, the `wp_latest_comments_draft_or_post_title()` and `render_block_core_latest_comments()` functions don't exist because they were overwritten during `npm install` in the build process. That's because the changes from https://github.com/WordPress/gutenberg/pull/12326 were manually added to core, before that PR was merged (which happened today).

Instead, we have `gutenberg_draft_or_post_title()` and `gutenberg_render_block_core_latest_comments()` in core now.

That's certainly less than ideal. Not only because the prefix is wrong, but also because `gutenberg_draft_or_post_title()` / `wp_latest_comments_draft_or_post_title()` duplicated the existing `_draft_or_post_title()` function. We should fix this as soon as possible, before people try to use `gutenberg_` prefixed functions in their projects.

That function was duplicated in Gutenberg because they didn't want to include admin functions in front-end facing code, which makes sense.

Suggested solution:

1. Move `_draft_or_post_title()` to `wp-includes/template.php`
2. In the `block-library` package in Gutenberg, rename `wp_latest_comments_draft_or_post_title()` / `gutenberg_draft_or_post_title()` from `latest-comments.php` to `_draft_or_post_title()` and add a `function_exists()` check. This way, nothing should break.
3. Use that function in `render_block_core_latest_comments()`

Alternatively to step 2, Gutenberg should just bump the minimum WP version to 5.0.1, which makes sure the `_draft_or_post_title()` function is available at all times. 

Benefits:

1. No duplicated code.
2. No `gutenberg_` prefixes in core"	swissspidy
	51323	Multiple Reference Id backend issue in Inner block component		Editor		normal	normal	Awaiting Review	defect (bug)	new		2020-09-16T11:44:19Z	2020-09-18T14:45:52Z	"We want to show multiple inner blocks on backend in same block. For example, If we have one widget and in to that, If we want to use two reusable blocks. We need to add two values. But, Currently, It shows just one value in backend. In frontend, It works fine because we have PHP based rendering. In backend, It show same reusable multiple times, even if we have selected different reusable blocks.

You can check in screenshot about reference id.     https://ibb.co/R0Pw6wK"	posimyththemes
	53867	Multiple reusable blocks issues since 5.8		Editor	5.8	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2021-08-03T07:37:45Z	2022-01-31T09:45:31Z	"I am having multiple reusable blocks issues since 5.8:-

1. They are not displaying as designed. For example, I have a reusable block that spans the entire width of a post, but when you view the live post, it only occupies the right third of the post width. In another example, I have coloured the background, but the background is only showing as white.

2. When inserting a reusable block into a post, 2 instances of the reusable block get inserted."	gizmo2501
	59511	Navigation Block issue		Editor	6.3.1	normal	normal	Awaiting Review	defect (bug)	new		2023-10-01T16:20:25Z	2026-09-30T10:00:24Z	While trying to add and edit description or any metadata on nav items. As soon as I press any key, it gets refresh. 	amitpomu
	57817	Navigation block frame responsive issue		Editor	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-02-28T07:21:31Z	2025-02-25T09:22:21Z	I was editing header template part. As I added a navigation block and reduced the width size of the frame screen, the mobile view was showed. Then I clicked on the hamburger icon and opened the menu. Now, when I increased the size of the frame screen, the layout didn't change, and I couldn't close the menu even when I reduce the frame screen.	amitpomu
	56054	Need to add some gap between input and range slider in Avatar block		Editor	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-06-23T12:28:02Z	2022-06-24T07:44:53Z	"While selecting avatar block if we change the border-radius from range slider at the 0th point the range slider pointer is touches to input box.So we need to add some gap between them.
"	multidots1896
	61517	New swap template feature make website not repond		Editor	6.5.5	normal	critical	Awaiting Review	defect (bug)	new	reporter-feedback	2024-06-27T08:37:19Z	2025-05-26T12:09:44Z	I have updated WordPress to version 6.5.5 and after I tried to change template in post editor. after it  start to load preview template then it not respond so I had to change template on quick edit. 	kornchu
	62591	No changes being saved on blog issue		Editor		normal	normal	Awaiting Review	defect (bug)	new		2024-11-27T19:47:25Z	2025-11-13T02:54:16Z	"Hi! I am having trouble with building blogs recently. I have cleared my cookies and cache, updated all themes, updated to newest version, deactivated plugins and still cannot get any changes to my blogs to save. When I try to add a spacer block it is also extremely glitchy, and will not allow me to save the size of the spacer. It simply increases and decreases in size with the movements of my mouse until I finally reload the entire page.

The blogs I am attempting to make changes on are:
""Explore Vancouver Island’s Top Wedding Venues: Styles & Costs""
""Celebrating Motherhood in Autumn: Victoria Maternity Photographer""

Please help! The issue has persisted for 3 days"	alysibley
	55864	No tag in the editor to reuse blocks		Editor	6.0	normal	critical	Awaiting Review	defect (bug)	new		2022-05-28T13:37:37Z	2022-06-02T11:04:42Z	"Since the 6.0 update, the tag to have access at the reusables blocks have disappeared.
Impossible to ractivate it. You can create new reusables bolcks, see them in the block manager but you are not abble to access them in the wisiwig editor, the tag has gone. "	tirnanog
	42028	On-screen elements missing or dead in Mac OS 10.13 and Google Chrome		Editor	4.7.4	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2017-09-29T03:17:26Z	2020-09-23T05:41:57Z	"There are some bizarre bugs that appear when using Chrome (current version, Version 61.0.3163.100 (Official Build) (64-bit) as well as Chrome Canary (Version 63.0.3225.0 (Official Build) canary (64-bit)
) and WordPress 4.7.4, which include

a) If I create a link then try to edit it so I can set the ""load in new tab"" check box, the page will ""freeze"" (become totally unresponsive, refusing to acknowledge clicks or scrolling, until I reloaded the Wordpress page)

b) My ""edit snippet"" section is missing, requiring me to load this page in Safari to set the snippet. Relatedly, I am pretty sure setting a focus keyword in Chrome will not cause it to be saved, since I set it but then it was blank when the article was loaded in Safari.

c) Perhaps most frustratingly, the Visual and Text tabs are nonfunctional in Chrome. I cannot access the page source, which I need for various scripts, as I should be able to. 

Please fix ASAP!

Enclosing screenshots of the nonfunctional elements.

[[Image(https://s3-us-west-2.amazonaws.com/megumi.img/ScreenShot2017-09-29at12.08.15PM.jpg)]]

[[Image(https://s3-us-west-2.amazonaws.com/megumi.img/ScreenShot2017-09-29at12.10.42PM.jpg)]]

[[Image(https://s3-us-west-2.amazonaws.com/megumi.img/ScreenShot2017-09-29at12.12.22PM.jpg)]]"	ppayne
	59170	Overlapping text when posting using iPhone		Editor	6.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-08-23T09:27:02Z	2025-05-12T01:38:13Z	"I have a website and I always get article submissions from authors, they write using Microsoft Office (maybe they use a bit older version, because the new 365 desktop version has no problem), on my iPhone I open the article using Office 365, and a strange thing happens :
1. If I use a block editor, the text will overlap
2. If I use the classic editor, many spaces are lost so that many words are attached without spaces.

here I provide you an example of overlapping text:
[https://drive.google.com/file/d/1c167tWdPd6k_n7_tWeRwi-9qOmgZ34nr/view?usp=sharing]
the website is freshly installed using twenty twenty three theme."	readonecc
	54113	Override core/gallery block		Editor	5.8.1	normal	normal	Awaiting Review	defect (bug)	new		2021-09-12T17:34:11Z	2025-05-12T01:37:52Z	"Hello, 

I did override the core block for the gallery using in my ''functions.php'' file :

{{{#!php
<?php
function my_register_gallery() {
	unregister_block_type('core/gallery');
	register_block_type( 'core/gallery', array(
		'render_callback' => 'my_gallery_render',
	) );
}
add_action( 'init', 'my_register_gallery', 10 , 1  );
}}}

It was perfectly working, but since a few days (I did the last update of wordpress 5.8.1), and maybe a little bit before, but I am not totally sure, I have an issue :

If I use the ''unregister_block_type'' function I cannot override it with ''register_block_type'' and the block disappear in the editor. And a strange thing occurs, I have this message on the former existing gallery blocks :

{{{
Your site doesn’t include support for the THRON block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely.
}}}

If I don't use ''unregister_block_type('core/gallery');'' before, I have this message :

{{{
Notice: WP_Block_Type_Registry::register was called incorrectly. Block type ""core/gallery"" is already registered. Please see Debugging in WordPress for more information. (This message was added in version 5.0.0.) in /Users/the_user/wordpress_folder/wp-includes/functions.php on line 5663
}}}

All of that was working before with no alert.
I tried with all my plugins deactivated, and with removing all my function.php files actions.

"	lohic
	54951	Page editor blank / throwing error		Editor	5.9	normal	major	Awaiting Review	defect (bug)	new		2022-01-27T12:58:31Z	2022-02-01T11:27:47Z	"Hi,

After update to 5.9 my page editor went crazy and stopped working.
I’ve checked dependency between error and plugins and that’s no it. After 5 mins it started working again and next day again same story. I’ve cleared cache and it seems to work locally but several of my clients site have same issue.
"	rezu94
	57443	Page template label sticks to default		Editor		normal	normal	Awaiting Review	defect (bug)	new	close	2023-01-11T13:32:01Z	2025-10-06T17:46:32Z	"After changing the template in the wordpress editor, ""Default Template"" stays as the template label (despite the template has been changed and everything else works fine).

https://ibb.co/Vjsx719"	permanyer
	59535	Page/Post scrolls up while converting quotes to paragraph		Editor	6.3.1	normal	minor	Awaiting Review	defect (bug)	new		2023-10-04T11:37:35Z	2023-10-05T04:40:02Z	"I found this while testing the capture toolbar for the quote block for WordPress 6.4 beta2, but was able to reproduce it in 6.3.1.

== Issue
In the block editor, Page/Post scrolls up while converting a quote to a paragraph.

== Steps to Reproduce
1. Open a post or page.
2. Insert Title and long text so that scroll bar appears.
3. At the end insert quote block
4. Write a quote and citation
5. Click on the block so that quote block toolbar appears
6. Click on quote icon (first icon in the quote toolbar)
7. Click on transform to ""Paragraph""

== Actual Result:
Page/Post scrolls up while converting a quote to a paragraph.

== Expected Result:
Page/Post should not scroll up while converting a quote to a paragraph.
"	hardikgohil
	53517	Pasting Text		Editor		normal	normal	Awaiting Review	defect (bug)	new		2021-06-25T16:46:08Z	2021-06-25T16:54:54Z	"Each week, I update two text blocks on two separate website pages.  On the first page, I manually update the text box.  After updating the page, I click in the text box, ctrl A, ctrl C and move to the next web page to be updated.

I click into the text box on the second page, ctrl A, ctrl V

For months, the results have been that the first line has a single space before the first word.  The last couple of weeks though, the results have been different.  

Today when I did the same, the paste was missing whole lines of text.  

I do not have this happening anywhere else on my work station computer.  

This problem began in 2020.  
"	pastor.healer
	62810	Pattern with Query Loop and Cover block renders wrongly in preview		Editor	6.7.1	normal	minor	Awaiting Review	defect (bug)	new	has-patch	2025-01-16T12:38:23Z	2025-02-04T13:03:46Z	"Hi! I wanted to report his bug where my pattern is rendering correctly when inserted, but wrongly in its preview (from the block inserter and pattern manager). The Title block added to the cover block is given full width (alignment), but isn't rendered with it in the preview, only when placed. Here is the block markup and screenshots of the rendering. 

I tried installing the Gutenberg plugin to see if the problem has been fixed in a future Gutenberg version, and it hasn't. 

This is my first bug report, so please comment on what I can improve for future bug reports.

Block markup:
{{{
<!-- wp:query {""query"":{""perPage"":3,""pages"":0,""offset"":0,""postType"":""article"",""order"":""desc"",""orderBy"":""date"",""author"":"""",""search"":"""",""exclude"":[],""sticky"":"""",""inherit"":false,""taxQuery"":null,""parents"":[],""format"":[]}} -->
<div class=""wp-block-query"">
<!-- wp:post-template {""layout"":{""type"":""grid"",""columnCount"":3}} -->
<!-- wp:cover {""useFeaturedImage"":true,""dimRatio"":0,""isUserOverlayColor"":true,""contentPosition"":""bottom center"",""className"":""is-style-cover-clickable"",""style"":{""dimensions"":{""aspectRatio"":""2/3""},""border"":{""radius"":""1rem""},""spacing"":{""padding"":{""top"":""0"",""bottom"":""0"",""left"":""0"",""right"":""0""}}},""layout"":{""type"":""constrained""}} -->
<div class=""wp-block-cover has-custom-content-position is-position-bottom-center is-style-cover-clickable"" style=""border-radius:1rem;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0""><span aria-hidden=""true"" class=""wp-block-cover__background has-background-dim-0 has-background-dim""></span><div class=""wp-block-cover__inner-container"">
<!-- wp:post-title {""isLink"":true,""align"":""full"",""style"":{""spacing"":{""padding"":{""top"":""var:preset|spacing|10"",""bottom"":""var:preset|spacing|10"",""left"":""var:preset|spacing|10"",""right"":""var:preset|spacing|10""}}},""backgroundColor"":""base-2"",""fontSize"":""medium""} /-->
</div>
</div>
<!-- /wp:cover -->
<!-- /wp:post-template -->

<!-- wp:query-no-results -->
<!-- wp:paragraph {""placeholder"":""Add text or blocks that will display when a query returns no results.""} -->
<p>Something went wrong</p>
<!-- /wp:paragraph -->
<!-- /wp:query-no-results --></div>
<!-- /wp:query -->
}}}

Inserted into a post:
[[Image(https://tobiasrade.no/wp-content/uploads/2025/01/Skjermbilde-2025-01-16-132708.png)]]

In the block inserter:
[[Image(https://tobiasrade.no/wp-content/uploads/2025/01/Skjermbilde-2025-01-16-133056.png)]]

In the pattern manager:
[[Image(https://tobiasrade.no/wp-content/uploads/2025/01/Skjermbilde-2025-01-16-133140.png)]]"	radeeven
	53037	Post Attributes UI issue in page list		Editor	5.7.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-04-15T06:51:35Z	2022-05-25T10:25:02Z	"Hi

Add new page in UI issue.So how we can fixed this? Also i think we need to update ""Post Attributes"" to ""page Attributes"" . like post type name with Attributes. 

you can think about last suggestion.


Thank you."	sumitsingh
	46389	Post Form Code Editor Issue		Editor	5.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-03-01T11:29:05Z	2026-01-29T11:18:59Z	"I saw this on my mobile. When I switched to code editor then the title box and content box got cut and there was a scroll bar to scroll left-right, but this is fine with the visual editor.

Please see: https://uploadfiles.io/jgnls"	prashantvatsh
	58095	Post featured image block use full size image => huge impact on performance		Editor	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-04-06T06:55:21Z	2025-05-12T01:38:07Z	"I use a standard 23 theme and in that and for example for the latest posts overview I use a standard post template with a Post featured image block.

The problem is that this block, unlike for example the gallery, does not have a definition of how big the image should be used and then uses the full size on the frontend, even if it is a view where maybe a medium or even a thumbnail would suffice. 

This has a pretty significant impact on the loading speed of the images and therefore the whole site.

It is possible to see the result, for example, at www.exteriery.cz in the latest posts section

I know this ticket should probably belong under gutenberg but because of the impact on performance in the default installation I'm putting it here, it will probably affect a lot of sites"	thomask
	47554	Post history		Editor	5.1.1	normal	major	Future Release	defect (bug)	new	dev-feedback	2019-06-18T10:11:49Z	2020-11-24T04:07:38Z	"Hello everybody.

This ""bug"" might be a timeout issue or might have something to do with the server times, but it could be fixed from software side, as far as I see it. It also might be a Gutenberg issue, but its look like it is from the core.

Classic:
 - User A opens the post and write some content.
 - User B also opens the same post an clicks on take over.
 - User A gets pop up with info about the take over and can go to ""all posts""

Problem (Version 5.1.1): 
 1. Popup for user comes to late -> content not saved
 2. Popup doesn't appear -> user saves post which will be override from user B's content.

Solution:
 1. auto save e.g. every 10 seconds 
 2. History besides the post, e.g. on the very right column.
    History contains lets say the last 5 or 10 (configurable) versions of the post.
    Users can see a diff or can restore the whole last version of the entry.
    - History doesn't contains versions of auto save (only last auto save)

--- User-Agent	Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Iridium/2018.11 Safari/537.36 Chrome/71.0.0.0 
 "	d3n15
	60210	Preserving Link When Replacing the Image of an Image Block within Unsynced Patterns		Editor		normal	minor	Awaiting Review	defect (bug)	new	close	2024-01-08T14:53:50Z	2025-09-06T16:59:52Z	"This may not in fact be a bug, but it seems to be an unusual design if it is of deliberate design...

When an unsynced pattern is created containing an image block with a link associated to where clicking said image should take the user, whenever that pattern is again used in future instances, replacing the image erases the link that was originally connected to that image. 

I feel there should be a way to replace the image within the unsynced pattern, without losing the hyperlink quality associated with the placeholder image in the image block. "	prayforsurf0
	58191	"Preview mode button breaks in custom post types in wordpress 6.2 - manually removing ""preview_nonce="" from url fixes it"		Editor		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-04-25T15:30:58Z	2023-04-30T09:18:03Z	"Hi,

After updating to wordpress 6.2 from wordpress 6.1.1 the Preview mode for my custom post type stopped working.

I have a custom post type which publishes a different type of post. Whenever I click on preview to see the custom post type preview, it adds ""preview_nonce="" to the url. This causes the page to be completely blank other than the header and sidebar. When I remove the ""preview_nonce="" from the url the preview works perfectly.

I noticed that if I click preview from the list of custom posts rather than from the preview button in the custom post type, it loads perfectly fine without the preview_nonce in the url. Is this a wordpress bug? 

"	gabez123
	64995	Publish Button returns Code View and NOT Visual View?		Editor	6.9.4	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2026-03-30T21:06:40Z	2026-04-04T07:42:23Z	Ever since moving to 6.9.4, when I push the Publish Button, the entry is saved BUT it returns the code view of the blog and NOT the visual view of the blog?  Now, I myst hit another button (the VISUAL VIEW) first before continuing my editing.  How can I fex this? 	pdliles
	53698	Published posts auto scrolls on reload		Editor		normal	normal	Awaiting Review	defect (bug)	new		2021-07-20T13:05:03Z	2021-07-20T13:05:03Z	"Theme: Twenty Twenty and Twenty Twenty-One. No Plugins Installed
Versions Tested:  5.7.2 and 5.8 RC4

This might be an isolated issue. but I was able to reproduce in stable 5.7.2 and 5.8 RC4. I was only able to reproduce the issue at some places where I end keeping up the scroller.

Steps to reproduce:
Publish any post with GB editor.
Open the published link in new tab.
Place the scroller one the line where the header and body divides(use 2021 theme to see max jump).
Reload page using keyboard


Expected Result:  Page reloads normally and without any content scrolled.

Also, when the scroller is above the fold initially, it will scroll down only till the first content block. If the scroller is below the fold then it will scroll up to the first content.  

Attaching gifs to explain it better.
"	alanjacobmathew
	66016	Race condition in WordPress 7.1 Block Editor: Adding custom field to auto-draft causes duplicated postmeta and forces comment_status to closed		Editor	7.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-09-01T10:33:34Z	2026-09-01T11:43:41Z	"In WordPress 7.1, a race condition occurs when adding a custom field (via the legacy Custom Fields meta box) to a newly created post (auto-draft status) before its initial save or publish. This results in two critical issues:

* The custom field is inserted twice in the `wp_postmeta` table.
* The `comment_status` is incorrectly forced to `closed`, regardless of the site's default settings.

== Steps to Reproduce ==

1. Go to '''Posts > Add New Post''' to open the Block Editor (creating an auto-draft).
2. Ensure the legacy ""Custom Fields"" panel is enabled.
3. Before saving as a draft or publishing, immediately add a new custom field and value.
4. Click '''Publish''' or '''Save Draft'''.
5. Check the post metadata and discussion settings.

== Expected Behavior ==

* The custom field should be saved only once.
* The post's `comment_status` should inherit the site's default setting (usually `open`).

== Actual Behavior ==

* The custom field is duplicated (two identical key-value pairs in `wp_postmeta`).
* The `comment_status` changes to `closed`."	stanleychan
	53172	React-dom mistake		Editor		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-05-08T21:05:40Z	2021-05-13T14:36:24Z	"http://prntscr.com/12isc2j
react-dom.js?ver=16.13.1:1680 Warning: Failed prop type: You provided a value prop to a form field without an onChange handler. This will render a read-only field. If the field should be mutable use defaultValue. Otherwise, set either onChange or readOnly.

Its not whole time, its happening sometimes.
I don’t understand why does this mistake appear"	andrewpolnikov
	65377	Remove redundant noreferrer from target=_blank links in Gutenberg (backport request)	adamsilverstein	Editor	6.9	normal	normal	Awaiting Review	defect (bug)	assigned		2026-05-31T16:34:30Z	2026-06-02T11:13:37Z	"I'm working on quantifying and fixing an ecosystem-wide problem where a big chunk of the open web has unintentionally erased itself from referral data due to outdated or misplaced use of `rel=noreferrer` or `Referrer-Policy: no-referrer`, typically through the default behavior of a CMS, plugin, or by the advise of a security scanner. You can read a draft of my essay on the topic at https://phabricator.wikimedia.org/T427561.

In 2017, WordPress started automatically adding `rel=noreferrer` when saving new content to links using `target=_blank` (ticket #43187, ticket #37941, r42770). In 2020, this was removed again (ticket #49558, r49215). But, lots of WordPress sites still set rel=noreferrer on most links even in newly published articles. This turned out due to the Gutenberg editor separately having the same feature. An issue for that was filed six years ago at https://github.com/WordPress/gutenberg/issues/26914, and the fix landed a few weeks ago in Gutenberg 33.0.0.

I'd like to ask for this to be included and backported to WordPress stable versions so that we can start to see things improve as soon as possible.

**Question: Isn't this rare?**

At glance, this issue appears specific to links created via the Gutenberg interface, where the editor chose to tick the ""Open link in new tab"" checkbox. If that was true, I think the magnitude of this issue would be much smaller, and a backport would not be warranted. However, it is common for articles to have every link in them open in a new tab, through no intentional act by the editor.

How? The clipboard! It is of course useful to preserve `target=_blank` in pasted contents. E.g. if you copy from another Gutenberg tab, or from a published article on your own or a different website. For example, I've imported numerous articles I published elsewhere first, into my own blog, by copy-pasting in this way, and preserving choices such as this one, is useful.

However, there are lots of contexts where this happens in a way that does not preserve any kind of editorial choice. 

Virtually all web apps these days slap target=_blank on all links in user-generated content so that the app stays open:

* Obsidian
* Fastmail
* Gmail
* Matrix/Element
* Discord
* Slack
* Mastodon
* Facebook
* Self-hosted feed readers like FreshRSS and tiny-tiny-rss
* etc

For example, if you draft a post using markdown in the Obsidian app, all links have `target=_blank`. (This is how I originally encountered this. I found most posts on my personal blog opened in a new tab and had `rel=noreferrer` despite me never ticking ""Open in new tab"" in Gutenberg.)

The same is true for Fastmail and Gmail. Regardless of how the email itself was written, when it is rendered by the webmail client, all links cary `target=_blank`. So if someone drafts a blogpost by email for you, or even if you just take one linked word from an email you received and paste it, it's got `target=_blank`. The same for anything you copy from a conversation in Slack or Discord."	TimoTijhof
	58975	Replace image deletes the link!		Editor	6.1.1	normal	normal	Awaiting Review	defect (bug)	new		2023-08-03T20:18:55Z	2023-08-03T20:18:55Z	"For the image block Gutenberg block, in a widget sidebar panel, I noticed that whenever I go to ""replace"" the image for a Gutenberg widget - with one that is higher resolution for example, the link of the image goes away!
Noted this on several, both with ""upload"" and going to media library and uploading there."	programmin
	61405	Residual of block found in `get_blocks_metadata` even when block is unregistered using `unregister_block_type()`.		Editor		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-06-10T10:58:08Z	2024-07-03T15:25:39Z	The get_blocks_metadata() function retrieves all registered blocks using WP_Block_Type_Registry::get_all_registered(). It updates its internal static variable with new blocks but does not account for blocks that have been unregistered. Consequently, residual blocks remain in the static variable and are processed in functions consuming get_blocks_metadata(), such as `wp_add_global_styles_for_blocks`. This oversight can lead to unnecessary processing overhead.	thekt12
	59551	Respect non-null values from the `pre_render_block` filter		Editor	6.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-10-05T18:09:05Z	2026-10-22T19:54:12Z	"Currently WP core hooks into `pre_render_block` in 2 places.

In both cases they hook in at `priority` `10`, and in both cases they explicitly return null.

This means anybody following the example usage of that filter could end up with their return not respected unless they change priority to higher than 10, which is not documented.

Either those filters should be moved to an earlier priority, such as `0`, or they should expect & respect non-nullish values by not returning `null` and instead returning `$pre_render`.

Further if these are conditional loads based on block type, they should probably check if `! is_null( $pre_render )` and if so, act accordingly and not enqueue assets or bail early etc.

- https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/block-supports/settings.php#L77-L149

- https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/block-supports/elements.php#L135-L222

"	danieliser
	53434	Reusable Blocks - raised a ticket in March (now closed) but still have a problem		Editor	5.7.2	normal	critical	Awaiting Review	defect (bug)	new		2021-06-16T18:06:40Z	2021-06-16T19:34:40Z	"Hi!
#52873: Reusable Blocks
I raised an issue about this in March but I still cannot make it work ... 
I've been avoiding this issue and just trying not to have to remove reusable blocks from individual pages in the hope that the issue would be corrected in updates but it hasn't been. Now I'm in a situation where I need to delete a reusable block on one page without losing it on all the other pages that it appears on.
I really am an amateur and much of the advice and comment on the ticket and the links that you provided just don't make sense to me - I can't see how the breadcrumb at the bottom of the page helps and I can't alter/remove a reusable block and update the page without the new save function applying the change everywhere.
I attach a screenshot; I am trying to remove the 'empty page' graphic from the top of the page because I am now adding material to the page and it isn't empty anymore.
I am crying tears of frustration as only an amateur out of her depth can do!!
I would be very grateful if you could explain how to do this, please.
Best wishes,
Jane.
(I have a couple of screenshots but I can't see how to attach them ...)"	hicklingadmin
	46376	Right hand column (update page) gets stuck		Editor	5.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-02-28T16:43:03Z	2020-11-30T04:50:15Z	"Not sure how to explain this:
1) Edit a page
2) If page has a warning notice at top, e.g ""there is a more recent version of this page, restore?""
3) Right hand menu will scroll down as you go down the page, but not back up. So if you edit something at the bottom of the page, you can't get back to the save button.
4) Dismiss the warning notice before you scroll and the menu works normally."	TPDave
	59540	Selecting Open in New Tab closes the link editing window		Editor		normal	normal	Awaiting Review	defect (bug)	new		2023-10-04T12:34:27Z	2023-10-05T04:40:02Z	"== Testing Instructions
I found this while testing the ‘Open in New Tab’ feature for 6.4.

=== Steps to Reproduce
1. Create a post
2. Add a Paragraph block with content
3. Create a Link inside the Paragraph block
4. Click on the link to open the link editing window
5. Click Open in New Tab

=== Expected Results
- ✅ What should happen
The link editing window remains open after selecting Open in New Tab.

- ❌ What actually happens
The link editing window closes after selecting Open in New Tab."	sannevndrmeulen
	60464	Shortcode in Patterns -> Template Parts -> General -> An item in it.		Editor	6.4.3	normal	normal	Awaiting Review	defect (bug)	new		2024-02-07T15:25:09Z	2024-02-07T15:25:09Z	"I'm using a reusable block in a general item in template parts and patterns.
In that block, I'm using a shortcode in paragraph. It's not working. I tried it everywhere. It's working except there. I think It is a problem of reusable block in FSE and template parts."	webchacha
	47816	Shortcodes being run in editor when gutenberg is active		Editor	6.1	normal	normal	Awaiting Review	defect (bug)	new		2019-08-01T21:35:38Z	2022-11-12T09:25:04Z	"Hello,

We have a shortcode that makes an API call to a remote site.  We noticed that it was making calls when we were editing pages on our website, even if the shortcode was not loaded on that page.  This does not happen when gutenberg is disabled.

I made up a test shortcode that appends to a file in the uploads directory.
I added it to a test page.  It ran when I opened the editor view of the page.  It ran when I saved the page.  It ran when I viewed the page, which is the only time it should run.  I can see when it runs because it writes to my file.

Even more surprising is that the shortcode ran when I edited a different page, a page without the shortcode.  We have good reason to believe that the pages API is running the shortcode when it runs to create the parent page drop down selector.  

Why do we believe that is the issue?  Because in the first incident, the one where we were sending out unexpected API calls to a remote system, the shortcode was just echoing text without doing a proper return.  The echoed text interrupted the Parent page drop down selector build and so that drop down did not appear.  We saw the shortcode's misplaced response text in our browser console as part of the page API response.  Once we properly wrapped the echo statement, that issue went away, but the API calls were still occurring, and so I did the simple test for you.

In summary, the shortcode is run when I edit any page.  We believe that the page API call that is used to create the parent page dropdown is running the shortcode.

Is this on purpose behaviour?  

Regards,
Karla
"	karlazz
	58021	Since update 6.2 does not open products or pages in Google Chrome.		Editor	6.2	normal	blocker	Awaiting Review	defect (bug)	assigned		2023-03-30T10:43:44Z	2023-04-05T17:47:55Z	"Good morning.
Since update 6.2 it does not open products or pages, no products or pages can be created in Google Chrome.
In Mozilla Firefox it does.
With Chrome it remains in an eternal loading loop and finally the browser asks whether to quit or wait. It doesn't change anything if you wait.
I would like to know if you have received any complaints about this, because I have to change browser as it is impossible with Chrome.
Regards.
"	daringlight
	59264	Some block parts (navigation) break when top level folder gets renamed		Editor	6.3.1	normal	normal	Awaiting Review	defect (bug)	new		2023-09-01T14:03:12Z	2023-09-01T14:25:10Z	"Steps to reproduce: 
- clean install of 6.3.1
- set up any block theme as current theme
- rename the top folder where the wordpress installation is lying (i needed to do it because of switching URL)

-> block navigation is broken

This is also the case when put wordpress into troubleshooting mode or using any other block theme with a menu.

I tracked it down and it seems that some css is not coming any more to the page.

{{{
<link rel='stylesheet' id='wp-block-navigation-css
}}}
    <---- is for example missing

Issue can currently only be fixed when renaming the folder back to the old name.
"	schuettla
	54445	Space bar doesn't work when typing a post.		Editor	5.8.2	normal	normal	Awaiting Review	defect (bug)	new		2021-11-15T13:48:29Z	2021-11-15T13:48:29Z	"When typing a post and the cursor is in the last position of the text all space bar presses are suppressed until you type space again and then it inserts two spaces.
When you type between another word and there are letters behind the cursor spaces are entered correctly."	markovanderpuil
	51080	Spacing in embed when para begins with emoji		Editor	5.5	normal	normal	Awaiting Review	defect (bug)	new		2020-08-20T13:32:01Z	2020-08-25T13:04:01Z	"If a post has multiple paras, the embed removes the newline and adds a spacing. 

Which seems fine but if a para in the original post begins with an emoji, then the spacing seems to not be there in the embed. "	superpoincare
	56961	Stack on mobile (media and text block) doesnt work any longer		Editor	6.1	normal	normal	Awaiting Review	defect (bug)	new		2022-11-02T13:17:27Z	2022-11-02T13:55:56Z	"Just testet width WP 6.0 and it still works, but not after update do 6.1.

When i edit a media & text block in 6.1. and save the page this setting will be ignored. It happend only when you edit a block and save it.  "	markus.zeeh
	55566	Start value in List block doesn't work		Editor	5.9.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-04-12T20:27:36Z	2022-04-13T10:48:31Z	"Hi.

I just noticed that ""Start value"" option in List block doesn't work - no matter what start value you type, it always starts from 1. The start value changes in Gutenberg editor, but is not visible in front end, not even in post preview. 

To reproduce this issue just add a List block in Gutenberg editor and try to change ""Start value"" from 1 to any other number. Then preview or publish the post and you'll see that it doesn't work and ""1"" always shows up."	kacper3355
	46206	Strange behaviour with links inside a table		Editor	5.0.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-02-07T20:53:49Z	2020-11-23T16:54:45Z	"I'n currently using WP 5.0.3. There is some strange behaviour with links that are inside a table. Check box ""open link in a new window"" did nothing until I switched to HTML and added a space before link text (<td> <a href... instead of <td><a href...). Is this a bug or a ""feature""? :D

Sincerely,
Jari Honkonen"	multiankunta
	66488	Style engine: Add has-background only for a background that fills the block		Editor	trunk	normal	normal	7.3	defect (bug)	new	has-patch	2026-11-05T09:44:48Z	2026-11-05T09:48:18Z	"Backport of Gutenberg PR https://github.com/WordPress/gutenberg/pull/86244.

It makes wp_style_engine_get_styles() add has-background for a background image, and leave it out for a gradient clipped to the text. This matches the background block support. It has added the class for images since 6.5 (#60175), and skips it for text gradients.

This is a small alignment, not a breaking change. It only affects code that calls wp_style_engine_get_styles() directly and prints its classnames.

Core blocks already output has-background for images. In the Icon and Post Navigation Link blocks the class can move within the class list. No styles change.
"	aaronrobertshaw
	61347	Swapping templates hangs site		Editor	6.5.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-06-02T20:43:23Z	2026-10-11T19:55:41Z	"After selecting a different template, the entire site hangs for over a minute with disabled update button before ""Updating..."" begins.

There are no errors other than some assets being served over http rather than https from plugins. On the occasion that a template had a block error, the behavior was exactly the same as when there are no errors in the template. Same whether there is a template part in the template or not.

Template example:


{{{
<!-- wp:template-part {""slug"":""header"",""tagName"":""header"", ""className"": ""site-header2020""} /-->
<!-- wp:group {""tagName"":""main"",""layout"":{""type"":""constrained""}} --><main class=""wp-block-group"">

    <!-- wp:post-content {""className"":""legacy-post-padding""} /-->

</main><!-- /wp:group -->
}}}


Theme.json snippet:


{{{
""customTemplates"": [
		{
			""name"": ""page-no-title"",
			""postTypes"": [""page""],
			""title"": ""Page No Title""
		},
		{
			""name"": ""page-with-sidebar"",
			""postTypes"": [""page""],
			""title"": ""Page with Sidebar""
		},
		{
			""name"": ""page-wide"",
			""postTypes"": [""page""],
			""title"": ""Page with Wide Image""
		},
		{
			""name"": ""single-with-sidebar"",
			""postTypes"": [""post""],
			""title"": ""Single with Sidebar""
		},
		{
			""name"": ""single-academic-pages-legacy"",
			""postTypes"": [""academic-pages""],
			""title"": ""Academics Pages Legacy Padding""
		},
		{
			""name"": ""single-academic-pages-legacy-header"",
			""postTypes"": [""academic-pages""],
			""title"": ""Academics Pages Legacy Header""
		},
		{
			""name"": ""single-academic-pages-w-title"",
			""postTypes"": [""academic-pages""],
			""title"": ""Academics Pages with Title - M.S.""
		}

	]
}}}
"	mattpettefer
	53810	Template Editor: Code editor view doesn't show the template		Editor	5.8	normal	normal	Awaiting Review	defect (bug)	new		2021-07-28T11:01:06Z	2021-07-28T11:01:06Z	"When editing a template with the Template Editor, you get a visual preview if the end result.

However when switching to the Code editor view, the blocks in the post content are shown. The blocks of the template should be displayed.

This behavior breaks both with how the Content Editor added in 5.0 and the Site Editor in Gutenberg work."	anonymized_8769252
	65312	Templates Editor - Can't create a template for a specific category		Editor	7.0	normal	normal	Awaiting Review	defect (bug)	new	needs-docs	2026-05-22T02:24:52Z	2026-09-30T12:16:16Z	"Hi, I've been trying to create product templates in woocommerce for specific product categories. I am using a blocks theme (child of twenty twenty-five) so this is via the editor. The old system had a dialogue box where you could select that you wanted the template for the specific category, but this version that dialogue box seems to be missing and I can't find any other way to do it.

Actually while I am on to this, the whole system is a bit clunky. When I accidentally created a standard product category template, there was pretty much no way to see which one that was in the interface. No creation date for example. There's also no duplicate, you can change the category these apply to after. There's no folders to organise templates etc etc.

Really though, what I'm interested in is creating custom product category templates and at the moment there seems to be no way to do it."	funkygorilla
	51982	Textarea to which button 'Add block' attach to don't get the focus and Blocks from Blocks / Patterns area are placing into the previous place of focus		Editor		normal	normal	Awaiting Review	defect (bug)	new		2020-12-09T10:17:03Z	2020-12-09T10:17:03Z	"In the main Editor area when an 'Add block' button is pushed the text area to which this button attached to don't get the focus and after inserting Block from Blocks / Patterns area it goes to the place where the focus was previously. 
This behaviour is the same in WordPress 5.5.3 and 5.6, with 2020 and 2021 themes as well. "	oglekler
	48196	The Code Editor generates tag soup with empty paragraphs in td elements		Editor	5.2.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-10-02T10:57:51Z	2023-12-12T15:02:56Z	"When using the Code Editor with WordPress 5.2.3, the opening `<p>` and closing `</p>` tags do not appear in the editor and are automatically handled by the editor. If I try to add them to fix things, they are automatically removed. So, now the problem with this automatic handling: The Code Editor generates tag soup with empty paragraphs in td elements. For instance, the generated HTML code looks like this:

{{{
<td>text<br />
text</p>
<p>text<br />
text</p>
<p>text</td>
}}}

There are two issues (maybe related). First, this is tag soup. For various reasons (parsing with XML tools, better HTML code understanding and maintenance...), the Code Editor should not omit opening and closing tags. Here, the first `</p>` does not have a matching opening tag and the last `<p>` does not have a matching closing tag. Moreover, in HTML5 parsing, the first `</p>` is parsed as if it were `<p></p>`, i.e. an empty paragraph; and the text before it should really be in a paragraph for consistency. If the Code Editor thought that the `<td>` implied an opening `<p>` just after it, it is wrong! In short, the generated code should be:

{{{
<td><p>text<br />
text</p>
<p>text<br />
text</p>
<p>text</p></td>
}}}
"	vinc17
	62726	The ID of the Footnotes is updated when editing posts		Editor	6.7.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-12-20T14:59:07Z	2025-02-12T06:12:36Z	"The Footnotes ID keeps updating for no real reason.
Everytime a post is updated.


But it only updates the ID in one space. so they are the no longer linked anymore."	fixw
	46405	The editor has encountered an unexpected error		Editor	5.1	normal	normal	Awaiting Review	defect (bug)	new		2019-03-03T11:46:32Z	2019-03-03T16:21:06Z	"Hello

My website is perkune.com

I am using Mac OS 10:14:3 and everything updated OK

I have been using the editor since it came out latest version 5.1

I have been tring to edit an existing blog and insert a new image but a message says
The Editor has encountered an unexpected error
also This block has encounted an unexpected error

This is when I want to add an image -
I can add text OK -

Please canb you help

Best regards

paul

"	paulgoodwin
	54606	The selectControl component has margin bottom 0 in label of selectControl.		Editor	5.8.2	normal	normal	Awaiting Review	defect (bug)	new		2021-12-10T05:02:25Z	2021-12-10T05:02:25Z	"I am using latest wp version 5.8.2 I created 1 custom gutenberg block and added the typography setting in inspector control for title and description of my custom gutenberg block.

Steps to reproduce:
1. Create a simple custom gutenberg block having 1 richtext.

2. Now create setting for font weight by SelectControl. So you can see that label of selectControl has margin 0.

3. So solution is to add margin-bottom 8 px."	smit08
	45852	Tick Box Open link in new tab...		Editor	5.0.2	normal	normal	Awaiting Review	defect (bug)	new		2019-01-07T14:30:58Z	2020-01-22T06:26:44Z	"I've found that when I insert a link into a new page and I edit the link, although I can tick in the edit box, open link in new tab, it does not work. The link opens in the same page and when I go back and tick the box again, it still does not work. 

The check-box isn't sending the command to open the link in a new tab. 

Many thanks. I can wait. "	Motorised
	57287	Type error calling Styles > Customize > Blocks from FSE		Editor	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-12-07T03:48:59Z	2022-12-13T16:29:10Z	"From FSE, When I open Styles pane, Then click ""Blocks"" I receive an error:
{{{
TypeError: Cannot use 'in' operator to search for 'color' in 
    at http://localhost:10043/wp-includes/js/dist/edit-site.min.js?ver=3ab3e2570a5c4c270c72:12:72801
    at Array.forEach (<anonymous>)
    at ll (http://localhost:10043/wp-includes/js/dist/edit-site.min.js?ver=3ab3e2570a5c4c270c72:12:72639)
    at Tl (http://localhost:10043/wp-includes/js/dist/edit-site.min.js?ver=3ab3e2570a5c4c270c72:12:82514)
    at Cl (http://localhost:10043/wp-includes/js/dist/edit-site.min.js?ver=3ab3e2570a5c4c270c72:12:82422)
    at Xl (http://localhost:10043/wp-includes/js/dist/edit-site.min.js?ver=3ab3e2570a5c4c270c72:12:103806)
    at ct (http://localhost:10043/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9:43430)
    at os (http://localhost:10043/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9:111136)
    at Ur (http://localhost:10043/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9:77643)
    at Ir (http://localhost:10043/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9:77571)
}}}"	ritterml
	55945	UI Isssue on header list view		Editor	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-06-08T05:15:28Z	2022-06-10T09:43:43Z	"Hi,

I am not able to see or scroll for see remove row on editor. more information you can see SS."	sumitsingh
	65381	Uncaught TypeError: Cannot read properties of undefined (reading 'borderColor') in block-editor.min.js on WordPress 7.0		Editor		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2026-06-01T07:07:17Z	2026-06-11T22:45:49Z	"After updating to WordPress 7.0, the block editor shows a blank white page with this error:

`Uncaught TypeError: Cannot read properties of undefined (reading 'borderColor') at AIe (block-editor.min.js:178:89975)`

Theme: Blockify
WordPress Version: 7.0
PHP Version: (check yours in Site Health)

The error occurs when WordPress 7.0 tries to read `borderColor` from a color palette item that doesn't have it defined. This breaks the block editor completely showing a blank white page.

**Steps to reproduce:**
1. Install Blockify theme
2. Update to WordPress 7.0
3. Go to Posts → Add New
4. Editor shows blank white page with borderColor error"	dhayalkumarp
	56627	Underscores are not allowed in block names; error message is misleading.		Editor		normal	normal	Awaiting Review	defect (bug)	new		2022-09-22T17:11:45Z	2022-10-12T19:32:42Z	"
The error when activating a plugin containing a register block whose name contains an underscore is vague and misleading. 

If you do not have WP_DEBUG set to true in your site's wp-config.php file; there are no errors in the browser's javascript console while in the editor.   

When you have WP_DEBUG set to true; and activate the plugin that contains the block, the error message displayed is misleading; the message, included verbatim below, states that a namespace prefix must be used and in my test case block, a name space was used; create-block

{{{
""Notice: Function WP_Block_Type_Registry::register was called <strong>incorrectly</strong>. Block type names must contain a namespace prefix. Example: my-plugin/my-custom-block-type Please see <a href=""https://wordpress.org/support/article/debugging-in-wordpress/"">Debugging in WordPress</a> for more information. (This message was added in version 5.0.0.) in /srv/www/case/public_html/wp-includes/functions.php on line 5831""
}}}
 

A testcase for a block named 'my_test_case' is available at https://gitlab.com/skorasaurus/my_test_case 
The block does has a namespace, create-block. 


The full stacktrace for the error is at 
https://gist.github.com/skorasaurus/6506770a49bedff53876b962c1d29b16


This has happened to me in the past, has been reported in the [gutenberg issue tracker]https://github.com/WordPress/gutenberg/issues/13074 (issue was closed and directed to report here)"	skorasaurus
	56893	Unnecessary line breaks added by the code editor that breaks JavaScript		Editor	6.0.3	normal	critical	Awaiting Review	defect (bug)	new		2022-10-23T10:22:36Z	2022-10-24T06:23:10Z	"adding a simple JavaScript to the code editor and hitting the publish button just adds unnecessary 
{{{
<br />
}}}

inside the Javascript which is a sufficient reason to break any JavaScript 

How to reproduce: simply add a new post, paste/write any JavaScript and click the publish button to see the black magic 

[[Image(https://i.imgur.com/fyrAwtI.png)]]

Regards,
Atef"	sweetheatmn
	50226	Updating block attribute meta (type array) fails if it is the only meta attribute		Editor	5.4.1	normal	normal	Awaiting Review	defect (bug)	new		2020-05-22T13:26:08Z	2021-02-09T05:53:04Z	"My support thread is [https://wordpress.org/support/topic/updating-block-attribute-meta-type-array/#post-12875806 here].

If I register a meta like this:


{{{#!php
<?php
register_post_meta(
	$this->object_post_type->options['type'],
	'wpm_gallery_attach_ids',
	[
		'type' => 'array',
		'description' => 'Associated Images',
		'single' => true,
		'show_in_rest' => [
			'schema' => [
				'type' => 'array',
				'items' => [
					'type' => 'number',
				],
			],
		],
		'auth_callback'    => function() {
			return current_user_can( 'edit_posts' );
		},
	]
);
}}}

And a block like this:

{{{#!php
<?php
register_block_type(
	'wp-museum/object-image-attachments-block',
	[
		'attributes' => [
			'imgAttach' => [
				'type'   => 'array',
				'source' => 'meta',
				'meta'   => 'wpm_gallery_attach_ids',
				'items'  => [
						type' => 'number',
				],
			],
		],
	]
);
}}}

Then the array shows up correctly in my block's attributes as an array. If I update it like so:
{{{
const moveItem = ( imgId, move ) => {
	const imgIndex = imgAttach.findIndex( id => id === imgId );
	const newIndex = imgIndex + move;
	if ( newIndex < 0 || newIndex >= imgAttach.length ) {
		return;
	}
	imgAttach[ imgIndex ] = imgAttach[ newIndex ];
	imgAttach[ newIndex ] = imgId;
		
	const updatedImgAttach = [ ...imgAttach ];
	setAttributes( { 
		imgAttach: updatedImgAttach,
	} );
}
}}}

When I save the post, the attribute reverts to its original state and is not updated in the database.

However, if I add a second string meta to the block, everything works!

{{{#!php
<?php
register_post_meta(
	$this->object_post_type->options['type'],
	'wpm_gallery_attach_ids_string',
	[
		'type' => 'string',
		'description' => 'Associated Images String',
		'single' => true,
		'show_in_rest' => true,
		'auth_callback'    => function() {
			return current_user_can( 'edit_posts' );
		},
	]
);
}}}

{{{#!php
<?php
register_block_type(
	'wp-museum/object-image-attachments-block',
	[
		'attributes' => [
			'imgAttach' => [
				'type'   => 'array',
				'source' => 'meta',
				'meta'   => 'wpm_gallery_attach_ids',
				'items'  => [
					'type' => 'number',
				],
			],
			'imgAttachStr' => [
				'type'   => 'string',
				'source' => 'meta',
				'meta'   => 'wpm_gallery_attach_ids_string',
			],
		],
	]
);
}}}


{{{
setAttributes( { 
	imgAttach: updatedImgAttach,
	imgAttachStr: JSON.stringify( updatedImgAttach )
} );
}}}

(To be clear, imgAttach is never set from imgAttachStr.)

This seems like the inverse of [https://github.com/WordPress/gutenberg/issues/17384 SetAttributes does not work as expected with two or more post meta fields #17384] . It *does* work with two or more meta fields, but not one? If it is an array?

I am using WordPress 5.4.1, without the Gutenberg plugin.


"	mikethicke1
	47978	Upload files with Media Library takes much load time to upload image		Editor	5.2.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-09-05T13:34:08Z	2020-11-05T04:48:54Z	"Theme: Twenty Nineteen
Version: 5.2.3

Steps to Reproduce:
1) Go to Gallery
2) Select Media Library
3) Go to Upload image with less than 2 mb size
4) The image will take much more time to upload and it will continue to stay in progress.

Note: Please check the screenshot link below for the same.
https://www.screencast.com/t/8nP8shWWW2UY"	anjalirai
	56506	Used default separator style in editor but It's showing Wide Line Separator style in My Patterns		Editor	6.0.2	normal	normal	Awaiting Review	defect (bug)	new		2022-09-04T06:36:36Z	2023-10-30T16:35:53Z	"I have an issue on pattern design submission. While submitting my pattern, I have used default style separator but I'm getting Wide line style Separator in frontend in current WordPress Version. I did not understand what have I missed.

Used Separator
https://tinyurl.com/2lpyuja4

Frontend Separator
https://tinyurl.com/2nd2k8by"	rohit900
	53934	Vimeo embed working in admin and not on post when using private link		Editor	5.8	normal	normal	Awaiting Review	defect (bug)	new		2021-08-16T16:48:19Z	2021-11-03T13:39:07Z	"Hi,

Issue : 
Vimeo Embed link does not appear in the post (not even in the source code of the blog post) when using private link.


Current Behavior : 
When copy/pasting a ""private video link"" from Vimeo into the WordPress Post editor (default one) the embed is done automatically, but does not display / work on the post once published.


Expected behavior : 
Copy/paste the Vimeo link to wordpress, emebed is done autoamtically, when publishing video is visible ont he blog page.

How to reproduce :
- Get a Vimeo ""private link"" to a video
- Paste the Private link to a new blog post
- (WP will Auto embed the vimeo videpo player)
- publish post
- Post does not contain the video.
- If you edit the same blog post, the video is in there.


How to solve (workaround)
> Embed the vimeo player as an ""embed"" link using the ""player.vimeo.com/video/VIDEOID"".


What is causing the problem ?
From my experience & debugging : This behavior is mostly with Vimeo ""private link"".
Wordpress will automatically embed even is you copy the private link and it will work in the admin (and if you are connected on your vimeo account). But this will not show up on the page/blog post once published.


Embed expect the following : player.vimeo.com/video/VIDEOID
The private link is : vimeo.com/VIDEOID/RANDOMUNIQUEIDHERE


The vimeo page via private link is providing the info for oembed (json & xml) in its source.

(first time submitting a bug report here. Edit if required.)"	Trouffman
	54981	WP 5.9 Gallery Block Issues		Editor	5.9	normal	normal	Awaiting Review	defect (bug)	new		2022-01-28T20:22:13Z	2022-01-31T09:38:46Z	"I have an image gallery in all of my posts with images set to not cropped, thumbnail size, 3 or 4 columns.

If I look at an old post (anything before the WP 5.9 upgrade this week), the gallery images look fine. If I go into that old post and update it (without changing anything in the gallery), the gallery images change to stretched in safari and full-size, singe column (instead of thumbnail, 3 or 4 columns) in chrome and firefox.

Also, newly created posts are having the same issue since WP 5.9 upgrade.

Issue is present while using either GeneratePress or Twenty Twenty-Two themes.

I have tried deleting gallery and re-adding, same issue."	hmnvtn
	59773	WP-Admin post editor JS createPreloadingMiddleware has PHP WP_Query deliver Drafts while in editor they are not		Editor	6.3.2	normal	normal	Awaiting Review	defect (bug)	new		2023-10-31T11:17:33Z	2023-10-31T11:17:33Z	"The WP-Admin post editor in its (Gutenberg) content has a (custom Genesis) block whose PHP template uses WP_Query to query other posts.

In this content, **WP_Query does not** deliver draft posts.

In the head section of the HTML document what the post editor is however, is a WP JS 
{{{
wp.apiFetch.use( wp.apiFetch.createPreloadingMiddleware( { ... } ) )
}}}
and the argument has a property
{{{
""\/wp\/v2\/pages\/12?context=edit""
}}}
(post types post id is 12) which has a sub-property ""rendered"" whose value gets filled by PHP from the same template as the post editor content does and in the context of this head JS PHP, the **WP_Query does** deliver drafts.

This inconsistency lead to us discover an error where a WP PHP function return value was not checked for an error which did occur with a draft but not a ""real"" post.

However I bring this to your attention. You perhaps might want to 1. use one and only one and the same PHP call and 2. in that call set the context according to your documentation whether drafts are considered or not."	vialars
	59051	When copying multiple paragraphs, only one is copied		Editor	6.3	normal	critical	Awaiting Review	defect (bug)	new		2023-08-10T14:35:50Z	2023-08-10T14:36:18Z	When I try to copy several paragraphs to see and paste them in another site, only the first one is copied. Multiple paragraphs cannot be copied at once	jose36ca
	59364	When editing Styles > Layout or Block > * > Dimensions, every possible (and unnecessary) combination of global settings is copied to custom styles		Editor	6.3.1	normal	blocker	Awaiting Review	defect (bug)	new		2023-09-15T10:04:37Z	2023-09-15T10:04:37Z	"In the site editor, when making changes in Styles > Layout, it looks like every possible core block style and setting is copied and saved in the custom styles (wp_global_styles).

This results in a ton of unnecessary global styles and settings, such as default colors and default font sizes, even in a theme that has defined settings.color.defaultPalette as false for example.

As far as I can tell the only styles option that triggers this are the options in Styles > Layout.
I've tried other options such as Typography, Colors, and individual block settings, and they all seem to work as expected in that the only thing saved in the custom styles is the option being edited.

No issue with WP 6.2.2
It seems this bug was introduced in WP 6.3

The Gutenberg issue for reference: https://github.com/WordPress/gutenberg/issues/53868"	uxl
	49293	When trying to add an existing post category to a post - simply check the box of this category		Editor	4.8	low	minor	Future Release	defect (bug)	new		2020-01-26T12:24:41Z	2020-01-28T16:50:55Z	"What happens now:

When writing a new post and trying to add a new category for this post, if this category already exists - nothing really happens.

What should happen:

If this category already exists - simply check the box of this category. "	shayatik
	45742	"When using HTTPS, ""preview post"" fails."		Editor	5.0.2	normal	normal	Awaiting Review	defect (bug)	new		2018-12-22T17:21:41Z	2018-12-28T15:31:54Z	"I am using WordPress 5.0.2 hosted at HostGator, but have been seeing this issue since 5.0 was released. I am using the Classic Editor plugin.

If I log into my WordPress site using https://(site), write a post, and then click ""preview"", WordPress will wait and then say the post cannot be displayed. 

If I log into my WordPress site using http://(site), write a post, and then click ""preview,"" WordPress with show a preview of the draft as expected.

I have tried disabling all plug-ins and it did not fix the problem. HostGator forces WordPress users to use ""Endurance Page Cache"" plug-in, so I cannot disable that one.

I have multiple WordPress sites hosted on HostGator (RobOHara.com, Review-o-Matic.com, OHaraPress.com) and all of them have been having this issue since upgrading to 5.0.

Hopefully I found a legitimate bug and didn't waste anyone's time. Keep on 'Pressin!"	robohara
	61893	While creating new pattern in wordPress.org, there is issue in browse all pattern.		Editor		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-08-17T14:34:05Z	2025-01-03T06:38:29Z	"I am creating new pattern while creating new pattern when i am clicking on browse all, it is not working.

https://tinyurl.com/29mp5eyo


"	akshaykungiri
	51158	"With ACF Blocks in 5.5, ""enqueue_assets"" causes fatal error"		Editor	5.5	normal	blocker	Awaiting Review	defect (bug)	new	dev-feedback	2020-08-27T15:20:27Z	2020-09-03T00:49:09Z	"This is related to ACF Pro, but didn't happen until the upgrade to WP 5.5. I downgraded to 5.4.2 to make sure and I can verify it's a WordPress issue, likely related to REACT or the Rest API. I don't know enough about the Gutenberg editor to know if it's specific to that, so I'm posting here with ""second-opinion"" Workflow Keyword.

I have several custom blocks created using ACF Pro. One of them requires multiple javascript files and uses the ""enqueue_assets"" attribute to enqueue them. 

When I try to edit any post, I get a popup error that covers the entire screen saying ""The editor has encountered an unexpected error."" and has 3 buttons: ""Attempt Recovery"", ""Copy Post Text"", ""Copy Error"". None of the buttons work.

In the console, I get these errors:

{{{
react-dom.min.js?ver=16.9.0:103 
TypeError: First argument must be a String, HTMLElement, HTMLCollection, or NodeList
    at t.exports (compose.min.js?ver=c4775e2aa9288586791e26a980eff851:9)
    at e.value (compose.min.js?ver=c4775e2aa9288586791e26a980eff851:9)
    at new e (compose.min.js?ver=c4775e2aa9288586791e26a980eff851:9)
    at compose.min.js?ver=c4775e2aa9288586791e26a980eff851:9
    at Vb (react-dom.min.js?ver=16.9.0:104)
    at Xi (react-dom.min.js?ver=16.9.0:151)
    at unstable_runWithPriority (react.min.js?ver=16.9.0:26)
    at Ma (react-dom.min.js?ver=16.9.0:52)
    at Yb (react-dom.min.js?ver=16.9.0:150)
    at O (react-dom.min.js?ver=16.9.0:120)

components-1480.js:24 
Uncaught TypeError: Cannot read property 'clientHeight' of null
    at G.hasOverflowedContent (components-1480.js:24)
    at G.fitTitle (components-1480.js:24)
    at components-1480.js:24
}}}

After the second error, the first error repeats and keeps getting hit every few milliseconds, telling me it has thousands of times within a minute.

I'll post this with ACF Pro, too, but wanted to mention here in case it's a WordPress bug. I don't know how many people use ACF blocks in the Block Editor, but it completely prevents people from editing posts if they have some.

Thanks!"	bronsonoquinn
	50132	Word Counter on Classic Editor is bugged		Editor	5.4.1	normal	normal	Awaiting Review	defect (bug)	new		2020-05-08T19:28:22Z	2020-11-24T16:14:30Z	"On the Classic Editor, sometimes words after a new line or new paragraph are not counted properly. If you create 10 lines, each consisting of 10 words each, only 91 words will be accounted for.
This seems to be mostly a JavaScript bug, but can potentially affect any other word-counting function on WP too, if their implementation is similar."	matpratta
	52054	WordPress 5.6 broke my ability to create posts.		Editor		normal	normal	Awaiting Review	defect (bug)	new		2020-12-12T21:59:44Z	2020-12-13T00:01:35Z	"Immediately after upgrading to version 5.6, when I create/edit a post either the settings tab doesn't work or the settings column is off screen to the right and inaccessible unless I take my browser zoom down to 80% (and then I still can't get to lower items in settings). 
Also, after an update or a save draft, an attempt to return to the dashboard is met with the leave page warning that usually only happens when a change is made w/o saving or updating. 
I downgraded back to 5.3.3 as this was reliable for me."	vormwmik54
	52540	WordPress 5.6.1 blocking new posts		Editor	5.6.1	normal	blocker	Awaiting Review	defect (bug)	new		2021-02-16T14:14:59Z	2021-02-16T15:35:28Z	"When I click ""new post"" I get a blank post with ""Auto-draft"" pre-filled as the title, but when I change it and populate the post with content and click save draft or publish, the content disappears, and I am returned to a blank ""Auto-draft"" post. This happens with all plugins active or disabled. The posts are saved as blank drafts with the title Auto-draft.

When I removed the Tiny MCE editor plugin, and tried to use the Gutenberg editor, the site stalls on saving the draft and does not complete the save."	PodcastSteve
	52570	"WordPress 5.6.1 bug/error ""Publishing failed. The response is not a valid JSON response."""		Editor	5.6.1	normal	normal	Awaiting Review	defect (bug)	new		2021-02-19T02:59:40Z	2021-02-24T21:33:07Z	"In the Latest Version of WordPress Gutenberg Editor, is having the issue of 

""Publishing failed. The response is not a valid JSON response."" error. 

Please make update to the Wordpress, or some patch, from where the error could be originating. 

I am using PHP8, Apache and MySQL. Not Xampp, own installation[[Image(https://imgur.com/a/Su24bGJ)]]"	djacob56
	60996	WordPress 6.5.2 displays multiple h1 - wp_link_dialog is displayed		Editor	6.5	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2024-04-11T18:02:24Z	2024-04-11T19:59:06Z	"file:  wp-includes/class-wp-editor.php
line: 1867
This function: wp_link_dialog is being displayed on the frontend causing multiple h1 tags on the same page"	vousys
	63470	WordPress 6.8.1 - Adding a new block or line in Editor causes the page to jump down		Editor		normal	critical	Awaiting Review	defect (bug)	new		2025-05-21T18:29:55Z	2025-05-22T08:02:46Z	"Our team has had a wonky problem with WordPress since updating to the latest version. Adding a new block or line will sometimes cause the page to jump down several blocks and they'll have to scroll back up to their space. One of the developers from the agency we work with said it was a known bug but I could not find a ticket here specific to it. I have a screen recording but I'm not seeing a place to upload it. 

"	sherrie.gonzalez
	59565	WordPress Block Editor Tag Limit Bug		Editor	6.3.2	normal	normal	Awaiting Review	defect (bug)	new		2023-10-09T05:43:31Z	2023-10-25T03:43:50Z	"Hi, WordPress mentioned there is no tag limit on its platform. But, Block editor wont take any tags above 200. On adding more tags above 200, it will add the tag but then remove the last tag in alphabetical order.

On installing classic editor plugin, the issue is resolved. Looks like there is no limit in classic editor.

Can this bug be resolved on block editor of wordpress? Thanks

 "	prowp7
	59092	WordPress Editor not working after updating to 6.3 - Showing Blank Screen		Editor	6.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-08-13T11:44:49Z	2023-11-09T18:49:51Z	I’m getting a blank page when I add a new post or edit a post. I cleared all caches and cookies but not worked. Tried deactivating all plugins, changing the theme to Twenty Twenty-Three. But the issue is not fixed yet.	jaagofoundation
	48539	WordPress Editor sometimes chops off titles in Chrome		Editor	5.2.4	normal	minor	Awaiting Review	defect (bug)	new		2019-11-08T15:16:20Z	2019-11-08T22:38:19Z	"Somtimes the WordPress Editor chops titles at the top of a page when editing.  Unlike the ""missing images"" problem I reported, this one does NOT show up in Firefox.

Example Attached"	cube1us
	50703	WordPress classic editor accessibility issues for insert/edit links list	joedolson*	Editor	5.4.2	normal	normal	Future Release	defect (bug)	accepted		2020-07-20T13:02:44Z	2021-06-24T19:16:09Z	"We are facing some keyboard accessibility issues with Insert/edit link list from the editor.

We are not able to access the items from the list using up arrow, down arrow, enter and space keys.

Please find the below image for reference.

[[Image(http://meedev.westus.cloudapp.azure.com/dev-old/Wp_editor_issue.png)]]"	fornandakishore
	53208	WordPress editor documentation: a few suggested changes		Editor		normal	normal	Awaiting Review	defect (bug)	new	needs-docs	2021-05-14T15:05:09Z	2021-05-14T15:06:52Z	"These videos are not working (tested on Firefox and Safari):
https://wordpress.org/support/article/wordpress-editor/#how-does-the-block-editor-work
https://wordpress.org/support/article/wordpress-editor/#adding-a-block

Here it says ""three sections"" and then only mentions ""1)"":
https://wordpress.org/support/article/wordpress-editor/#the-anatomy-of-a-block"	tomdevisser
	52556	WordPress is adding &nbsp; always		Editor	5.6.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-02-17T14:44:45Z	2021-02-23T10:01:41Z	"Hello,
This bug is happening only if gutenberg editor is disabled.
Ill try to explain in best way how wordpress is adding this &nbsp.

1. Create a new page
1.1 Type a title or without both give same result.
1.2 In content there should be nothing 
1.3 Publish

2. After publish try to leave the page editing lest say clicking on dashboard from the menu.
Wordpress will promp asking to save changes.
If you are in visual editor and swap to text editor you will notice that &nbsp; was added.

3. If you click update everytime wordpress will add a new &nbsp;

In inspector i have notice this script 


{{{
<script type=""text/javascript"">
            addLoadEvent = function(func) {
                if (typeof jQuery !== 'undefined')
                    jQuery(document).ready(func);
                else if (typeof wpOnload !== 'function') {
                    wpOnload = func;
                } else {
                    var oldonload = wpOnload;
                    wpOnload = function() {
                        oldonload();
                        func();
                    }
                }
            }
            ;
            var ajaxurl = '/luxdigital/wp-admin/admin-ajax.php'
              , pagenow = 'page'
              , typenow = 'page'
              , adminpage = 'post-php'
              , thousandsSeparator = '&nbsp;'
              , decimalPoint = ','
              , isRtl = 0;
        </script>
}}}

If i put a breakpoint and reload the page will return thousandsSeparator undefined
I dont know much about this function and the idea behind it but any ideas how to prevent this would be great.
"	snuffybg
	47520	[WP5.2.1] Crop images in IE11 not working		Editor	5.2.1	normal	normal	Awaiting Review	defect (bug)	new		2019-06-10T17:20:19Z	2023-03-12T21:54:32Z	"Hello,

I'm using IE11 with WordPress 5.2.1 and if I create a gallery with the Gutenberg editor and turn off the function ""crop images"" on the right bar the last picture is not resized (I created a four column gallery and the last picture is one in the last line). The last picture is 100% width on the complete site.

In Firefox and Edge it works, the picture has the right size.

"	vincenz17
	51644	allowed_block_types breaks if array keys become non-sequential		Editor	5.5.1	normal	minor	Awaiting Review	defect (bug)	new		2020-10-27T12:40:21Z	2021-02-23T20:38:16Z	"When the blocks array is filtered using `allowed_block_types`, I want to remove some blocks.

Using a loop and a combination of `array_search()` and `unset()`, I remove the blocks I need to remove.

However, it seems that this results in all blocks being available (the same as returning true for `allowed_block_types`).

This can be easily averted in your own hooked function by using `$blocks = array_values( $blocks )` to reset the array keys so they're sequential again.

However, this seems like a minor bug worth fixing at root for anyone else removing blocks this way (apply `array_values()` to the array if an array is returned by the `allowed_block_types` filter).

Not sure if this might be affected by decisions made for https://core.trac.wordpress.org/ticket/50706"	gyrus
	65701	allowed_block_types_all hook prevents patterns from being inserted		Editor	7.0.2	normal	normal	Awaiting Review	defect (bug)	new		2026-07-24T08:05:09Z	2026-07-24T12:29:52Z	"When using the `allowed_block_types_all` hook, it is expected that block patterns containing only allowed blocks can still be inserted into a post, page, or other post type.

Instead, attempting to insert such a pattern displays the success notice:

> Block pattern ""%s"" inserted.

However, the pattern is not actually added to the editor.

**Steps to Reproduce**

1. Install WordPress with the default Twenty Twenty-Five theme.
2. Add the following filter to `functions.php`:


{{{
#!php
add_filter('allowed_block_types_all', function ( $allowed_block_types,$block_editor_context ) {
    return array( 'core/paragraph' );
},10,2);
}}}

3. Create a new pattern via **Appearance → Editor → Patterns → Add Pattern**.
4. Add a single Paragraph block to the pattern and save it.
5. Create or edit a page or post.
6. Insert the pattern.

**Expected Results**

The pattern is inserted into the editor, since it contains only blocks allowed by the `allowed_block_types_all` filter.

**Actual Results**

A success notice is displayed stating:

> Block pattern ""%s"" inserted.

However, the pattern is not inserted into the editor.
"	comaxxdevelopment
	55844	color picker has scroll in styles menu		Editor	6.0	normal	minor	Awaiting Review	defect (bug)	new		2022-05-26T12:29:42Z	2022-05-28T00:32:18Z	in the color picker inside the styles menu moving your color picker circle to the right makes the color picker have a scrollbar in the bottom.	tomkolron
	52215	conflict with useBlockProps()		Editor		normal	normal	Awaiting Review	defect (bug)	new		2021-01-04T11:37:55Z	2021-01-04T16:48:57Z	"Hi

I have a conflict when I use apiVersion: 2.
I create a map with leaflet and a geosearch.
When I use useBlockProps and activate apiVersion: 2, the component it's rerender when the mouse mouve. And this action close automatically the search box. It's because the component rerender.
Somebody have a solution for prevent this rerender ?"	picfab
	65494	deleting the content of a wordpress post crashes wordpress		Editor		normal	normal	Awaiting Review	defect (bug)	new	close	2026-06-19T14:05:55Z	2026-06-23T14:18:39Z	"{{{
TypeError: Cannot read properties of null (reading 'isSynced')
    at rPe (https://example.com/wp-includes/js/dist/block-editor.min.js?ver=93c3566b7f24c15b7e17:178:108187)
    at mf (https://example.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1.1:105:412)
    at Qk (https://example.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1.1:250:214)
    at Ri (https://example.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1.1:195:185)
    at Ok (https://example.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1.1:195:116)
    at Nd (https://example.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1.1:194:492)
    at Qf (https://example.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1.1:187:439)
    at Li (https://example.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1.1:189:234)
    at db (https://example.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1.1:79:182)
    at xa (https://example.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1.1:184:11)
}}}"	primexaos
	61084	getDate JS error when opening post		Editor	6.5	normal	major	Awaiting Review	defect (bug)	new	close	2024-04-26T10:00:54Z	2025-09-06T15:51:53Z	"See error below which I was able to copy from the modal showing when opening the post - i've replaced my URL. 

Seems to be a core thing? When I copy the text to a new page the issue is gone but it's happening every once in a while.


{{{
TypeError: Cannot read properties of undefined (reading 'getDate')
    at ge (####/wp-includes/js/dist/editor.min.js?ver=6497dd814badef65e728:12:25478)
    at Object.r [as isEditedPostBeingScheduled] (####/wp-includes/js/dist/data.min.js?ver=e6595ba1a7cd34429f66:2:16637)
    at ####/wp-includes/js/dist/edit-post.min.js?ver=82b743695f8ef1673753:7:53893
    at ####/wp-includes/js/dist/data.min.js?ver=e6595ba1a7cd34429f66:9:3293
    at ####/wp-includes/js/dist/data.min.js?ver=e6595ba1a7cd34429f66:9:2061
    at __unstableMarkListeningStores (####/wp-includes/js/dist/data.min.js?ver=e6595ba1a7cd34429f66:2:21866)
    at Object.__unstableMarkListeningStores (####/wp-includes/js/dist/data.min.js?ver=e6595ba1a7cd34429f66:2:22124)
    at p (####/wp-includes/js/dist/data.min.js?ver=e6595ba1a7cd34429f66:9:2026)
    at ####/wp-includes/js/dist/data.min.js?ver=e6595ba1a7cd34429f66:9:2628
    at Qe (####/wp-includes/js/dist/data.min.js?ver=e6595ba1a7cd34429f66:9:2840)
}}}
"	nicknoordijk
	53027	gutenberg editor: click on document-outline elements has no effect.		Editor	5.7	normal	major	Awaiting Review	defect (bug)	new		2021-04-13T15:04:29Z	2021-04-13T15:04:29Z	"If you are in edit mode of a page or post, a click on the document-outline elements will not show an effect. A click on an element schould process a jump to the block (h2 - h6). I think this is a bug. Could you please confirm an fix this?

Until version 5.3 it worked well. After update to 5.7 not. I even tried a new WordPress Instance, but this feature still not works.

Greetings from Heidelberg
Stefan Schäfers"	steschdkfz
	33158	inline toolbar: incorrect position if link spans over two lines		Editor	4.3	normal	normal	Future Release	defect (bug)	new		2015-07-28T20:47:41Z	2019-07-04T12:30:16Z		iseulde
	53999	it didn't save TAGS in post.		Editor	5.8	normal	critical	Awaiting Review	defect (bug)	new		2021-08-24T23:37:49Z	2021-08-24T23:37:49Z	"My name  Idelfonso Roberto Santos
my whatsapp and weChat    55 47 98872 0320


my site  https://www.2e4rodas.com.br
Versão atual: 5.8
Última verificação em 24 de agosto de 2021 às 20:10.

https://i.imgur.com/1stSbgD.png
[[Image(https://i.imgur.com/1stSbgD.png]]



https://i.imgur.com/88QU03P.png
[[Image(https://i.imgur.com/88QU03P.png)]]


 it didn't save TAGS in post.
https://i.imgur.com/Jgbdei8.png
[[Image(https://i.imgur.com/Jgbdei8.png)]]

Have tests already been done?
1 - disable all plugins.
2 - change the theme.
3 - put the Tags in the first time you record the post. 




"	sir1idelfonso
	63222	register_block_type is not working with symbolic links still	audrasjb	Editor		normal	normal	Future Release	defect (bug)	reviewing	has-patch	2025-04-02T19:01:21Z	2025-11-03T18:08:19Z	"https://core.trac.wordpress.org/changeset/57675 introduced some changes to fix it for some symlinks, but broke it for other symlinks, and it was still broken if wp-includes is symlinked.
This is bc it's comparing symlink resolved realpaths with normalized (but not symlink resolved) paths - which it seems was an issue we were aware though already: https://core.trac.wordpress.org/ticket/59175#comment:9


"	kkmuffme
	60976	register_block_type not working with Oxygen		Editor		normal	normal	Awaiting Review	defect (bug)	new		2024-04-10T11:26:00Z	2024-04-10T11:26:00Z	"This is related to #59175 and [57675].

Oxygen forces returns `get_template_directory()` to return a non valid path, `""fake""`.  Since the introduction of the call to `realpath` in [57675], `$template_paths_norm[ $template ]` is set with the empty string that results from `wp_normalize_path( realpath( get_template_directory() ) )`.  That causes [[source:/trunk/src/wp-includes/blocks.php@57675#L112|the next if condition]] to always match, no matter what path the asset is in, therefore calling `get_theme_file_uri` on all of them.

Like in #59175, every block registered via `register_block_type` succeeds, but `editorScript` and `editorStyle` are not properly loaded in the editor because of the wrong—non existent—path."	jfitatandem
	63923	style-engine: Add string check to prevent fatal errors from malformed block attributes		Editor		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-09-03T19:24:06Z	2026-08-31T15:21:02Z	"=== Problem ===
This fixes an fatal error I saw from a client site with a malformed site-logo block:

{{{
<!-- wp:site-logo {""width"":61,""style"":{""spacing"":{""padding"":{""top"":""var:preset|spacing|40"",""position"":{""type"":""fixed"",""top"":""0px""},""z-index"":""500px"",""bottom"":""var:preset|spacing|40"",""left"":""var:preset|spacing|50"",""right"":""var:preset|spacing|50""}}}} /-->
}}}

The fatal error when malformed block attributes are passed:

{{{
Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given
}}}

Here's a stack trace (when running GB):
{{{
Fatal error:  Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given in /home/wpcom/public_html/wp-content/plugins/gutenberg-core/v20.6.0/build/style-engine/class-wp-style-engine-css-declarations-gutenberg.php:54
Stack trace:
#0 wp-content/plugins/gutenberg-core/v20.6.0/build/style-engine/class-wp-style-engine-css-declarations-gutenberg.php(54): trim(Array)
#1 wp-content/plugins/gutenberg-core/v20.6.0/build/style-engine/class-wp-style-engine-css-declarations-gutenberg.php(86): WP_Style_Engine_CSS_Declarations_Gutenberg->add_declaration('padding-positio...', Array)
#2 wp-content/plugins/gutenberg-core/v20.6.0/build/style-engine/class-wp-style-engine-css-declarations-gutenberg.php(34): WP_Style_Engine_CSS_Declarations_Gutenberg->add_declarations(Array)
#3 wp-content/plugins/gutenberg-core/v20.6.0/build/style-engine/class-wp-style-engine-gutenberg.php(655): WP_Style_Engine_CSS_Declarations_Gutenberg->__construct(Array)
#4 wp-content/plugins/gutenberg-core/v20.6.0/build/style-engine/style-engine-gutenberg.php(57): WP_Style_Engine_Gutenberg::compile_css(Array, NULL)
#5 wp-content/plugins/gutenberg-core/v20.6.0/lib/block-supports/spacing.php(67): gutenberg_style_engine_get_styles(Array)
#6 wp-includes/class-wp-block-supports.php(119): gutenberg_apply_spacing_support(Object(WP_Block_Type), Array)
#7 wp-includes/class-wp-block-supports.php(176): WP_Block_Supports->apply_block_supports()
#8 wp-content/plugins/gutenberg-core/v20.6.0/build/block-library/blocks/site-logo.php(60): get_block_wrapper_attributes(Array)
#9 wp-includes/class-wp-block.php(587): gutenberg_render_block_core_site_logo(Array, '', Object(WP_Block))
#10 wp-includes/class-wp-block.php(566): WP_Block->render()
#11 wp-includes/class-wp-block.php(566): WP_Block->render()
}}}


=== Solution ===
Add type checking before trim():

{{{#!php
// Bails early if the value is not a string.
if ( ! is_string( $value ) ) {
    return $this;
}
}}}"	mreishus
	63109	test_get_block_editor_settings_theme_json_settings failing		Editor		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-03-16T02:05:07Z	2025-12-01T02:58:51Z	"In 6.4.5 it passed this test 
`test_get_block_editor_settings_theme_json_settings`
Thereafter, it has been failing until now.

If I comment line 317 in `src/wp-includes/block-editor.php`

{{{
$wp_scripts->registered = $current_wp_scripts->registered;
}}}

Tests go through. 

This issue came to me because this test was failing in this PR:
https://github.com/WordPress/wordpress-develop/pull/8509

But I can't see correlation

Then I went into trunk in my dev environment, and I still failing.

But I see other PRs and they are not failing on this specific test. 

I need someone else to test this and report back."	SirLouen
	41229	the tag read more is not working		Editor	4.8	normal	normal	Awaiting Review	defect (bug)	new		2017-07-03T12:17:48Z	2017-07-03T22:11:01Z	"Hello,
I have wordpress on a Hebrew language and when I try to add read more tag on post it's not show up in the frontend"	yohanankap
	58236	theme.json customTemplates with child themes work wrong		Editor	6.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-05-02T18:35:21Z	2024-07-09T07:15:50Z	"If you use child themes, then customTemplates in theme.json does not work and behaves badly

1. It is not possible to delete or overwrite parent custom template - neither false nor empty array helps
2. It is not possible to create a new custom template - it simply does not appear
3. and what is strange - if you try to create your own custom template, it will throw away the naming and parent template at that position, so then when you select the template for the page, it doesn't show the title but the name. Example - if you make a child theme from twenty-three, and you type


{{{
	""customTemplates"": [
		{
			""name"": ""no-title"",
			""postTypes"": [
				""page""
			],
			""title"": ""No title""
		}],
}}}


so when the page is selected, it will display 'blank' instead of 'Blank' (blank is the name of the first template in the parent twenty-three theme). If you try 

{{{
	""customTemplates"": [{},
		{
			""name"": ""no-title"",
			""postTypes"": [
				""page""
			],
			""title"": ""No title""
		}],
}}}

so when you select a page, it will display ""blog-alternative"" instead of Blog (Alternative) (blog-alternative is the second template in the parent theme).
Child template can't be added like this even in the fourth position

Unfortunately, this makes the whole thing completely unusable."	thomask
	65865	theme.json settings.viewport: em/rem breakpoints ordered with a fixed 16px assumption but emitted with their original unit, producing an empty media query at larger browser default font sizes		Editor		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-13T00:26:37Z	2026-08-18T16:39:33Z	"WordPress 7.1 adds `settings.viewport` (`mobile`, `tablet`) to theme.json. These values generate the `@mobile` / `@tablet` / `@desktop` media queries used by responsive block styles and by block viewport visibility (hide-on-mobile/tablet/desktop).

When a breakpoint is given in `em` or `rem`, `WP_Theme_JSON::get_viewport_breakpoint_value_in_pixels()` converts it to pixels using a fixed 16px base — but only for the internal ordering/validation check. The generated media query keeps the original `em`/`rem` unit. This is stated in the source:

{{{
wp-includes/class-wp-theme-json.php:805  // Use the most common browser default font size as the base
                                         // for em/rem breakpoint order; generated media queries keep
                                         // the original units.
wp-includes/class-wp-theme-json.php:809  return 'px' === $unit ? $number : $number * 16;
}}}

In a browser, an `em` length in a media query resolves against the reader's default font size, not a fixed 16px. So when the two breakpoints in a viewport pair use different units (e.g. `mobile` in `em`, `tablet` in `px`), the ordering check can pass at a 16px base while the generated range becomes inverted — and therefore empty — at a larger default font size. When the range is empty, the responsive style (or the viewport visibility rule) bound to that breakpoint does not apply, with no admin notice or debug warning.

== Steps to reproduce ==

1. In a block theme's theme.json, set a mixed-unit pair:
{{{
""settings"": { ""viewport"": { ""mobile"": ""30em"", ""tablet"": ""580px"" } }
}}}
2. WordPress generates `@tablet => @media (30em < width <= 580px)`. Verify:
{{{
wp eval 'var_export( WP_Theme_JSON::get_viewport_media_queries([""mobile""=>""30em"",""tablet""=>""580px""],[""include_desktop""=>true]) );'
}}}
3. Load the front end in a browser whose default font size is set to 20px (e.g. Chrome → Appearance → Font size → Large).
4. At a 20px base, 30em = 600px, so the emitted range is (600px < width <= 580px) — an empty range that matches no viewport width.

== Expected ==

Either the breakpoint pair applies over some range of widths regardless of the reader's default font size, or the author is warned when a mixed-unit pair is accepted whose ordering depends on the 16px assumption — consistent with `settings.spacing.spacingScale`, which already emits `wp_trigger_error()` on invalid values.

== Actual ==

At a larger default font size the mixed-unit `@tablet` range can be empty; any block style or viewport visibility rule bound to that breakpoint silently does not apply. No admin notice, no debug warning.

== Impact ==

Readers who raise their browser's default font size — which includes many low-vision users — can get responsive behavior different from what the theme configured for that reader's font size. In particular, a block set to be hidden on a given viewport can render visible for those readers. The failure is silent for both author and reader. Themes that keep both breakpoints in the same unit are not affected; page-level `html { font-size }` CSS cannot correct it, because the media-query `em` is resolved against the browser default, not the document.

== Environment ==

Reproduced on WordPress 7.1-RC3. `settings.viewport` is new in 7.1 (it does not exist in 7.0.x), so this is not a regression. Confirmed via the generated CSS and via a browser test toggling the default font size (16px → 20px → 24px) with a fixed-pixel control that did not flip. The official 7.1 unit tests (tests/phpunit/tests/theme/wpThemeJson.php) cover same-unit and pixel pairs but include no mixed em+px case.

Follow-up to #65596, which introduced `settings.viewport`.

== Suggested fix (any one) ==

* Convert em/rem to px consistently for both the ordering check and the emitted query; or
* Require both breakpoints in a viewport pair to share a unit; or
* Emit `wp_trigger_error()` / `_doing_it_wrong()` when a mixed-unit pair is accepted whose ordering depends on the 16px assumption, and document the unit constraint in the theme.json reference."	courane01
	65833	theme.json settings.viewport: mixed em/px breakpoints are ordered using a hardcoded 16px, emitting a media query that can never match		Editor	7.1	normal	normal	Future Release	defect (bug)	new	has-patch	2026-08-07T18:00:14Z	2026-08-11T02:02:05Z	"Follow-up to #65596, which added `settings.viewport` to theme.json in 7.1.

When a theme declares `mobile` and `tablet` in '''different units''' (for example `em` and `px`), core validates the ordering in normalized pixels but emits the media query in the authored units. Browsers resolve `em`/`rem` in a media query against the user's own default font size, not against 16px — so a config that passes every validation core offers can emit a range that never matches, and does so only for some readers.

== The mechanism ==

`WP_Theme_JSON::get_viewport_breakpoint_value_in_pixels()` converts `em`/`rem` with a fixed multiplier, `wp-includes/class-wp-theme-json.php:790-810`:

{{{#!php
return 'px' === $unit ? $number : $number * 16;
}}}

The docblock at `:806-807` acknowledges the split: the pixel value is used ""only ... to compare breakpoint order; generated media queries keep the original units.""

The ordering guard at `:854` compares those normalized values:

{{{#!php
if ( isset( $breakpoints['tablet'] ) && $breakpoints['mobile']['px'] < $breakpoints['tablet']['px'] ) {
}}}

…but `get_viewport_media_queries()` emits the authored units (`:726`, `:732-734`). The guard's proof therefore does not transfer to the browser.

== Steps to reproduce ==

A theme `theme.json` containing:

{{{
{
  ""version"": 3,
  ""settings"": {
    ""viewport"": { ""mobile"": ""30em"", ""tablet"": ""500px"" }
  }
}
}}}

Both values are valid (`px|em|rem`), and the guard passes because 30 × 16 = 480 < 500. Core emits:

{{{
@mobile    @media (width <= 30em)
@tablet    @media (30em < width <= 500px)
@desktop   @media (width > 500px)
}}}

Resolved against the reader's default font size:

||= root font size =||= @tablet resolves to =||= result =||
|| 9px || 270px < width <= 500px || matches a 230px band ||
|| 12px || 360px < width <= 500px || matches a 140px band ||
|| 16px || 480px < width <= 500px || matches a 20px sliver ||
|| '''18px''' || 540px < width <= 500px || '''never matches''' ||
|| '''20px''' || 600px < width <= 500px || '''never matches''' ||
|| '''24px''' || 720px < width <= 500px || '''never matches''' ||

== Consequence for block visibility ==

This is not only a styling curiosity. `wp_render_block_visibility_support()` consumes these queries at render (`wp-includes/block-supports/block-visibility.php:47-53`). A paragraph storing:

{{{
<!-- wp:paragraph {""metadata"":{""blockVisibility"":{""viewport"":{""tablet"":false}}}} -->
}}}

renders with class `wp-block-hidden-tablet` and emits:

{{{
@media (30em < width <= 500px){.wp-block-hidden-tablet{display:none !important;}}
}}}

So an author's stored ""hide on tablet"" silently stops applying — for some readers and not others, from the same HTML.

== Verified in a browser ==

At a 490px viewport with the browser default of 16px, `(30em < width <= 500px)` matches. Forcing `html{font-size:24px !important}` changes the root font size to 24px but '''does not''' change the match, and the media-query `em` base measures 16.00px. This confirms the emitted query is governed by the reader's browser preference and '''cannot be corrected by theme or site CSS'''.

== Expected ==

Either prevent the silent inversion — reject mixing units within one `viewport` object, or require both breakpoints share a unit — or emit a `wp_trigger_error()` when accepting a mixed-unit pair whose ordering depends on the 16px assumption. That would be consistent with `settings.spacing.spacingScale`, which already warns on invalid values (`class-wp-theme-json.php:5359`).

== Actual ==

The pair is accepted silently. No warning, no `_doing_it_wrong` — verified with a control `_doing_it_wrong()` call that did fire, so the silence is real rather than an unhooked probe.

== Why this matters ==

The readers affected are exactly those who enlarge their default font size. And `em`-based breakpoints are the accessibility-recommended practice — what a careful theme author reaches for so layout responds to user font size. This implementation makes that the failing case, while `px` breakpoints are always safe.

The editor cannot surface it either: `wp-includes/js/dist/block-editor.js:11793-11862` mirrors the same constants, the same 16px normalization and the same raw-unit emission, so the author previews the identical broken result at their own font size.

== Not covered by existing tests ==

The tests added in [https://github.com/WordPress/wordpress-develop/pull/12395 wordpress-develop#12395] cover same-unit pairs (`64rem`/`40rem`) and invalid units (`100%`), including named cases for the drop and the max-width reinterpretation. No test mixes `em`/`rem` with `px` in one viewport object.

== Environment ==

WordPress 7.1-RC2, PHP 8.3, single site, Twenty Twenty-Five with a child theme declaring `settings.viewport`. Behavior identical in RC1. Neither core's `theme.json` nor Twenty Twenty-Five declares `settings.viewport`, so only themes that opt in are affected."	courane01
	45062	tinyMCE editor breaks captions with HTML		Editor	4.9.8	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2018-10-06T23:13:04Z	2019-12-19T14:27:07Z	"This looks similar to ticket #18311

If I enter HTML into an image caption (eg. <ul> <span> <div> <table>, and then in tinyMCE I switch from Text to Visual, my caption breaks; sometimes it is reformmatted, sometimes the caption shortcode is removed.

Test caption:[[br]]
<table>[[br]]
<tr><td>Label</td><td>Description</td></tr>[[br]]
<tr><td><span>Text</span></td><td>More text</td></tr>[[br]]
</table>"	iantresman
	46555	update fails when I have a print statement in my code.		Editor		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2019-03-18T11:38:41Z	2025-10-09T15:10:28Z	"I get the the pink bar message ""update failed"", when I attempt to update a page that has an executed  print statement in the code.
The file saves/updates, even though there is an error message.

Can the message be changed to ""update returned unexpected characters"" or some such.

running wordpress 5.1.1


"	rweil55
	51721	wp-admin/js/post.(min.)js does not successfully validate post dates within years 0000—0100		Editor	2.9	normal	normal	Awaiting Review	defect (bug)	new		2020-11-06T15:29:43Z	2020-11-10T17:42:02Z	"When adding or editing a post, `wp-admin/js/post.(min.)js` does not correctly set the year on a JavaScript `Date` object when validating the post date.

== To reproduce:

1. Add or edit a post
2. In the ''Publish'' meta box, click ''Edit'' next to the publish date.
3. Enter a validate date, with the year in the range 0—100.
4. See that the date input is highlighted red and marked invalid.

== In depth

This happens because in JavaScript, when passing a two-digit year to the `Date` constructor, it thinks that it is for the 1900 century. Even passing a string such as `0050` seems to be type-casted to a number. [http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#Two_digit_years_map_to_1900_%E2%80%93_1999 See more on MDN]."	wongjn
	66373	wp.editor.autop() doubles <br /> tags inside [caption]		Editor	6.9.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-23T12:53:17Z	2026-10-26T02:37:18Z	"=== Description ===

`wp.editor.autop()` in `wp-admin/js/editor.js` has special handling for `[caption]` shortcodes: existing `<br>` tags are protected as `<wp-temp-br>`, and then '''every''' remaining line break inside the caption is converted to another `<wp-temp-br />`:

{{{
// Keep <br> tags inside captions.
if ( text.indexOf( '[caption' ) !== -1 ) {
    preserve_br = true;
    text = text.replace( /\[caption[\s\S]+?\[\/caption\]/g, function( a ) {
        a = a.replace( /<br([^>]*)>/g, '<wp-temp-br$1>' );
        a = a.replace( /<[^<>]+>/g, function( b ) {
            return b.replace( /[\n\t ]+/, ' ' );
        });
        return a.replace( /\s*\n\s*/g, '<wp-temp-br />' );
    });
}
}}}

A caption that contains `<br />` immediately followed by a newline (`<br />\n`) therefore becomes `<br /><br />`. The PHP counterpart `wpautop()` guards against exactly this case (`wp-includes/formatting.php`):

{{{
$text = preg_replace( '|(?<!<br />)\s*\n|', ""<br />\n"", $text );
}}}

So the two implementations disagree, and the JS version is not idempotent: `autop( autop( x ) ) !== autop( x )` for such captions.

`<br />\n` inside a caption is a natural form of the Text-tab markup. Users write it by hand, and some editor plugins produce it on save (e.g. Advanced Editor Tools with ""Keep paragraph tags"" enabled adds a newline after every `<br>`; combined with this bug the number of `<br />` tags in a caption doubles on every Text → Visual switch, growing to hundreds).

=== Environment info ===

 * WordPress 6.9.10, Classic Editor 1.7.0 (no other plugins needed), default theme
 * TinyMCE 4.9.11 bundled with core
 * Reproduced in Chrome (macOS)

=== Steps to reproduce ===

 1. Create a post with the Classic Editor and switch to the '''Text''' tab.
 2. Paste the following (use the attachment ID/URL of any image in the media library):
{{{
[caption id=""attachment_1"" align=""alignnone"" width=""300""]<img src=""https://example.test/wp-content/uploads/image.jpg"" alt="""" width=""300"" height=""200"" class=""wp-image-1 size-medium"" /> Line one<br />
Line two<br />
Line three[/caption]
}}}
 3. Switch to the '''Visual''' tab.
 4. Switch back to the '''Text''' tab.

=== Expected result ===

The caption still contains two `<br />` tags (one per line break).

=== Actual result ===

The caption contains four `<br />` tags: `Line one<br /><br />Line two<br /><br />Line three`. Each existing `<br />` followed by a newline has been doubled.

The same can be observed directly in the browser console:

{{{
wp.editor.autop( '[caption id=""attachment_1"" width=""300""]<img src=""x.jpg"" width=""300"" height=""200"" /> A<br />\nB[/caption]' )
// => ... A<br /><br />B ...
}}}

=== Suggested fix ===

Drop the newline that directly follows a protected `<br>` before converting the remaining newlines, mirroring the PHP lookbehind:

{{{
a = a.replace( /<br([^>]*)>/g, '<wp-temp-br$1>' );
a = a.replace( /(<wp-temp-br[^>]*>)\s*\n\s*/g, '$1' );
a = a.replace( /<[^<>]+>/g, function( b ) {
    return b.replace( /[\n\t ]+/, ' ' );
});
return a.replace( /\s*\n\s*/g, '<wp-temp-br />' );
}}}

This makes `wp.editor.autop()` idempotent for captions and consistent with `wpautop()`.
"	yumiko.m
	64841	wp_editor() with quicktags enabled does not force-print buttons.css on the frontend, unlike editor.css		Editor		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-03-11T15:12:05Z	2026-10-13T10:53:21Z	"== Summary ==

When `wp_editor()` is used on the frontend with `quicktags` explicitly enabled, `editor.css` is correctly force-printed inline (even after `wp_head()` has fired), but `buttons.css` — which styles the QuickTags toolbar buttons — is only enqueued and therefore never reaches the page. The result is that QuickTags buttons render completely unstyled on the frontend.

== Steps to Reproduce ==

Call `wp_editor()` inside a frontend page template with `quicktags` explicitly set:

{{{
wp_editor(
    '',
    'my-editor',
    array(
        'tinymce'   => true,
        'quicktags' => array(
            'buttons' => 'strong,em,link,ul,ol,li,close',
        ),
    )
);
}}}

Open the page in a browser and switch to the '''""Text""''' or '''""Code""''' tab of the editor.

== Expected Behaviour ==

QuickTags buttons are styled, consistent with how they appear in `wp-admin`. Since `quicktags` was explicitly passed to `wp_editor()`, all styles required to render those buttons should be loaded.

== Actual Behaviour ==

QuickTags buttons render without styling. Inspecting the page source shows `editor.css` is present (force-printed inline), but `buttons.css` is absent.

== Root Cause ==

In `wp-includes/class-wp-editor.php`, the `editor()` method force-prints `editor-buttons` regardless of when it is called relative to `wp_head()`:

{{{
// ~line 212
wp_print_styles( 'editor-buttons' );
}}}

However, `buttons` is only enqueued inside `enqueue_scripts()`:

{{{
// ~line 867
if ( $default_scripts || self::$has_quicktags ) {
    wp_enqueue_script( 'quicktags' );
    wp_enqueue_style( 'buttons' ); // has no effect after wp_head() has fired
}
}}}

On the frontend, `wp_editor()` is typically called inside the page template body, after `wp_head()` has already run. `wp_enqueue_style()` at that point is a no-op for stylesheet output. The `editor-buttons` style avoids this problem because it is force-printed via `wp_print_styles()`. `buttons` has no equivalent accommodation.

'''Note:''' if `quicktags` is not passed to `wp_editor()` it would be reasonable that `buttons.css` is not loaded. The inconsistency is specifically that even when `quicktags` is explicitly configured by the developer, the required styles are not force-printed the same way `editor.css` is.

== Proposed Fix ==

In the `editor()` method, alongside the existing `wp_print_styles( 'editor-buttons' )` call, also force-print `buttons` when QuickTags is enabled:

{{{
wp_print_styles( 'editor-buttons' );

if ( ! empty( $set['quicktags'] ) ) {
    wp_print_styles( 'buttons' );
}
}}}

== Additional Context ==

This became a visible regression in '''WordPress 6.7''', when QuickTags buttons were migrated from the custom `.ed_button` class (whose styles live in `editor.css`) to the standard `.button` class (whose styles live in `buttons.css`). Prior to 6.7, `editor.css` alone was sufficient to style the buttons, which masked this inconsistency entirely. Any site using `wp_editor()` with QuickTags on the frontend and running WordPress 6.7 or later is affected.

This ticket was created with the help of a Claude code LLM agent after I discovered the broken quicktag buttons and the missing buttons.css styles on the front-end. Above mentioned line numbers, root cause and proposed fix are unchecked/untested by said developer, but seems to make sense. Tested in latest 6.9.3 version.
"	vnoben
	55968	xss string to be treated as simple string		Editor		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-06-12T06:11:57Z	2022-10-31T14:58:38Z	"xss string to be treated as simple string while creating a post from the Dashboard or should not be allowed to be saved as draft.

Current Behaviour:
wordpress allowed to save post as a draft with xss string however, editing of a post is not allowed.

Expected Behaviour:
Behaviour should consistent from end user perspective.

Steps To Reproduce :
Step-1: Login in WordPress 6.1
Step-2: Navigate to the Dashboard.
Step-3: Enter simple xss text for title in quick draft section
{{{
e.g: <svg onload=alert(XSS)>
}}}
Step-4: Click on Save draft to save post as draft
Step-5: Click on newly created xss titled post to edit the same.

"	vibhanshujain
	46171	"Add ""backing up this post in your browser"" label to post-type"		Editor		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2019-02-01T20:58:56Z	2025-09-03T14:30:00Z	"When the internet connection is lost, on a non-block-based post-type, some helpful text appears in an admin notice to alert users their content will not be lost:

""We&#8217;re backing up this post in your browser, just in case""

Keyword: **post**.

It would be nice if that string were post-type specific, perhaps part of the `labels` array of the post-type registration process."	johnjamesjacoby
	60063	Add a dynamic hook to filter the pre-rendered content of a single block.		Editor		normal	normal	Awaiting Review	enhancement	new		2023-12-13T18:02:02Z	2023-12-13T18:02:02Z	"Introducing a dynamic hook, `pre_render_block_{$block_name}`, as a complement to the already valuable `pre_render_block` hook could increase the developer experience. This new hook aims to filter the pre-rendered content for a specific block, eliminating the need for conditional statements within the `pre_render_block` filter callback. I searched on GitHub, and many folks use the `pre_render_block` and add a check to ensure the logic runs only for a specific block.

Some examples:

- https://github.com/WordPress/wordcamp.org/blob/7823c7aa3c076f37e99a9ba8f66050ed569b94e4/public_html/wp-content/mu-plugins/blocks/source/variations/sessions-list/controller.php#L19
- https://github.com/buddypress/buddypress/blob/1f5ff3be1880a59a8644b00f03aeb1cd1cdd5b74/src/bp-core/bp-core-filters.php#L108
- https://github.com/woocommerce/woocommerce/blob/22cab4ffc974cfedf1ed3629de04fba20dfd02ba/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php/#L171-L191

For the same reason, the `render_block_{$block_name}` hook has been implemented: https://core.trac.wordpress.org/ticket/46187.

I'm happy to work on it!"	gigitux
	60773	Add a new Post from the editor		Editor		normal	normal	Awaiting Review	enhancement	new		2024-03-14T10:23:55Z	2024-03-14T11:34:51Z	" When you are in the editor of an existing Post, there is no way to add a
 new Post from there. You need to go back to ""View Posts"" -> ""Add New
 Post"".

 I would love to have this new usability feature added in the core."	klevismiho
	56522	Add filter for wp_get_layout_style		Editor	5.9	normal	normal	Awaiting Review	enhancement	assigned		2022-09-06T15:56:00Z	2023-02-09T21:27:59Z	"Currently, there is no filter for the output of this function, which contains the layout styles associated with a given block. Having this be filterable seems conducive to clean overrides versus having a specificity battle with inlined styles (which in many cases would require `!important` to override), while allowing this to be a very intentional, opt-in feature.

I will be working on a patch for this which I'll add to the ticket once created. "	10upiansvo
	66448	Add text-wrap to theme.json typography styles		Editor		normal	normal	7.3	enhancement	new	has-patch	2026-11-03T05:34:35Z	2026-11-03T05:51:59Z	"Backport of https://github.com/WordPress/gutenberg/pull/84063.

Adds a `typography.textWrap` style to theme.json that outputs the `text-wrap` CSS property, and adds `text-wrap` to the `safe_style_css` list so it survives in user global styles."	sanket.parmar
	66504	Add unit tests for WP_Block_Pattern_Categories_Registry		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T02:08:12Z	2026-11-06T02:11:07Z	"The `WP_Block_Pattern_Categories_Registry` class (`src/wp-includes/class-wp-block-pattern-categories-registry.php`) has a single test, for `is_registered()` with a `null` name, in `tests/phpunit/tests/block-pattern/wpBlockPatternCategoriesRegistry.php`. Its other methods are only covered indirectly, through the REST API controller tests.

This ticket adds unit tests for the methods of the class, in the same test class:

 * `register()` adds a category with its name and properties, replaces a category that has the same name, and returns false with a `_doing_it_wrong()` notice when the name is not a string.
 * `unregister()` removes a category, and returns false with a `_doing_it_wrong()` notice when it is not registered.
 * `get_registered()` returns the category, or null when it is not registered.
 * `get_all_registered()` returns the categories in the order they were registered, as a list, and the ones that were registered outside of the `init` action when `$outside_init_only` is true.
 * `is_registered()` for registered and not registered categories.
 * `get_instance()` always returns the same instance.

The tests use their own instance of the registry, so the categories of core are not changed.

I checked that no existing ticket or open pull request adds tests for this class."	hmbashar
	66509	Add unit tests for the block supports helper functions that have no tests		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T02:30:43Z	2026-11-06T02:34:51Z	"Several helper functions in `src/wp-includes/block-supports/` are not referenced by any test:

 * `wp_should_skip_block_supports_serialization()` (`utils.php`)
 * `wp_has_border_feature_support()` (`border.php`)
 * `wp_typography_get_preset_inline_style_value()` (`typography.php`)
 * `wp_get_block_default_classname()` (`generated-classname.php`)

This ticket adds unit tests for them, each in its own test class in `tests/phpunit/tests/block-supports/`:

 * `wp_should_skip_block_supports_serialization()` returns false without a block type object or a feature set, the value of `__experimentalSkipSerialization` when it is a boolean, and whether the feature is in the list when it is an array.
 * `wp_has_border_feature_support()` is true when the block type opts in to all the border features with `__experimentalBorder: true`, or to the feature individually, and uses the default value otherwise.
 * `wp_typography_get_preset_inline_style_value()` converts a `var:preset|{property}|{slug}` value to the CSS variable, with the slug in kebab case, and returns any other value as it is.
 * `wp_get_block_default_classname()` returns `wp-block-{name}` with the `core/` and `core-` prefixes removed and the slashes replaced, and applies the `block_default_classname` filter.

I checked that no existing ticket or open pull request adds tests for these functions."	hmbashar
	66510	Add unit tests for wp_is_explicit_aspect_ratio_value() and wp_should_add_elements_class_name()		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T02:35:47Z	2026-11-06T02:38:54Z	"Two helper functions of the block supports are not referenced by any test:

 * `wp_is_explicit_aspect_ratio_value()` (`src/wp-includes/block-supports/dimensions.php`)
 * `wp_should_add_elements_class_name()` (`src/wp-includes/block-supports/elements.php`)

This ticket adds unit tests for them, each in its own test class in `tests/phpunit/tests/block-supports/`:

 * `wp_is_explicit_aspect_ratio_value()` is true for a value that sets an aspect ratio (a ratio string or a number, also with whitespace around it) and false for an empty value, `auto` in any case, and values that are not strings or numbers.
 * `wp_should_add_elements_class_name()` is false when the block has no `elements` styles, and true when a color is set for a button, a link (also its hover state) or a heading (`heading`, `h1` to `h6`; text, background and gradient). Elements that are skipped with the options are ignored, and other styles of the elements do not add the class name.

I checked that no existing ticket or open pull request adds tests for these functions."	hmbashar
	54975	Allow filtering global styles		Editor	5.9	normal	normal	Awaiting Review	enhancement	new		2022-01-28T14:45:57Z	2023-03-02T08:45:32Z	"Due to using `!important` and possibly high selector specificity in CSS declarations in global styles code produced by WordPress 5.9, many themes supporting Gutenberg editor (but not block/FSE themes) [https://github.com/WordPress/gutenberg/issues/38252#issuecomment-1023345698 experience issues] with WordPress overriding their custom font sizes and color palettes ([https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/ registered via `add_theme_support()`]).

It would be great if WordPress allowed at least filtering global styles code (produced by [https://github.com/WordPress/WordPress/blob/5.9/wp-includes/global-styles-and-settings.php#L88 `wp_get_global_stylesheet()`]) with a hook, such as: changing [https://github.com/WordPress/WordPress/blob/5.9/wp-includes/global-styles-and-settings.php#L133 `return $stylesheet;`] in `wp_get_global_stylesheet()` to:

{{{#!php
/**
 * Filters the global CSS styles code.
 *
 * @since 5.9.1
 *
 * @param string $stylesheet CSS styles code.
 * @param array  $types      Types of styles to load.
 * @param array  $origins    A list of origins to include.
 */
return apply_filters( 'global_styles', $stylesheet, $types, $origins );
}}}

That way WordPress can keep its global styles intact (even with `!important` if that's really the best way to provide the styles...) for block/FSE themes and Gutenberg editor themes can adapt the global styles by using this filter if needed.

(Block/FSE themes and themes that do not add support for Gutenberg editor do not seem to be affected.)

----

More info can be found in https://github.com/WordPress/gutenberg/issues/38252#issuecomment-1023345698 and related comments."	webmandesign
	53425	Allow meta_input to be updated through user input		Editor	5.8	normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2021-06-16T09:38:54Z	2025-09-12T00:12:37Z	"Hi everyone!
This is my first ticket on WordPress trac!

Since 2 years and this changeset [44295], it's not possible anymore to insert/update metadata through user input using **meta_input** entry.

Indeed ''_wp_get_allowed_postdata()'' remove the ''meta_input'' entry from ''$_POST''. Therefore the ''wp_update_post()'' function, then the ''wp_insert_post()'' one receive data without ''meta_input''.


I check the code a lot, and there is no hooks to re-inject properly the ''meta_input'' entry. (all the hooks come too late, after post inserting/updating).

I will finally get to my goal, but in an ugly and heavy way.

I propose to introduce a new hook to filter the not allowed post data fields, changing ''[https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/post.php#L214 _wp_get_allowed_postdata()]'' function like that (line 224):

{{{#!php
/**
 * Filters the not allowed fields before to remove them from post data.
 *
 * By default, meta_input, file and guid are not allowed in post data.
 *
 * @param array $not_allowed  Default not allowed post data fields.
 * @param array $post_data    Array of post data.
 *
 * @return array Not allowed post data fields.
 */
$not_allowed = (array) apply_filters( 'not_allowed_postdata', array( 'meta_input', 'file', 'guid' ), $post_data );

return array_diff_key( $post_data, array_flip( $not_allowed ) );
}}}

Thanks.
Have a nice day :-)"	freepius
	54653	Alphabetically sorted Headers in a Single Blog Post		Editor		normal	normal	Awaiting Review	enhancement	new		2021-12-18T00:18:14Z	2023-10-29T04:38:18Z	"I would like to request a new feature enhancement where it would be possible to automatically sort Headers (H2, H3, etc) within a single blog post. 

This I believe would help blog posts that have long content and need the content to be alphabetically sorted. 

I originally asked this in a WordPress thread which may be found here: 

https://wordpress.org/support/topic/alphabetically-sorted-headers/#post-15173407"	droyed
	61254	Backport: Introduce new dedicated media search handler and add new label field search handler		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-05-20T13:20:44Z	2024-05-20T16:27:19Z	"This trac ticket is for backporting PHP changes for https://github.com/WordPress/gutenberg/pull/58638.
This change add a new REST search media handler and add a new `label` field to allow translating postType.

See: https://github.com/WordPress/gutenberg/issues/21377"	petitphp
	66485	Block Supports: Add a PHP helper that returns every support's classes and styles		Editor	trunk	normal	normal	7.3	enhancement	new	has-patch	2026-11-05T01:00:21Z	2026-11-05T01:04:36Z	"Backport of Gutenberg PR https://github.com/WordPress/gutenberg/pull/86337.
Related: https://core.trac.wordpress.org/ticket/66269

Adds wp_get_block_supports_classes_and_styles(), which returns the combined classes and styles of the background, color, border, shadow and spacing helpers from #66269. A server-rendered block that skips serialization for several supports can then make one call instead of one per support. An optional list limits it to the supports a block applies to one element, such as an inner image.

Only the helper and its tests come in this backport. The Avatar and Post Navigation Link changes that use it arrive with the Gutenberg package update. Their output is unchanged.
"	aaronrobertshaw
	66468	Block Supports: Add a Transform block support with a rotate feature		Editor	trunk	normal	normal	7.3	enhancement	new	has-patch	2026-11-04T13:35:31Z	2026-11-04T13:46:18Z	"Backport of Gutenberg PR https://github.com/WordPress/gutenberg/pull/86240.

Adds a transform block support with a single rotate feature. Blocks that opt in can be rotated by one angle. Themes can also set it in theme.json for blocks and block style variations.

It outputs the rotate CSS property, not the transform shorthand, so existing block transforms still apply. Values must be a single angle in deg, grad, rad or turn. The style engine, WP_Theme_JSON and safecss_filter_attr all drop calc(), var() and axis forms.

The PHP lands now. The block opt-ins and the editor UI arrive with the Gutenberg package update.
"	aaronrobertshaw
	66467	Block Supports: Add translate property on X and Y axis to Transform supports		Editor	trunk	normal	normal	7.3	enhancement	new	has-patch	2026-11-04T13:14:20Z	2026-11-04T13:29:37Z	"Backport of Gutenberg PR https://github.com/WordPress/gutenberg/pull/86282.
Related: https://github.com/WordPress/wordpress-develop/pull/15408

Adds X and Y offsets to the transform block support. Blocks that opt in can be moved along either axis. Themes can also set it in theme.json for blocks and block style variations.

It outputs the translate CSS property, not the transform shorthand. So an offset combines with a rotation and with existing block transforms.

Each axis must be a single length or percentage. The style engine, WP_Theme_JSON and safecss_filter_attr all drop calc(), var() and a third axis.

This builds on the rotate backport, so it should land after it. The block opt-ins and the editor UI arrive with the Gutenberg package update.
"	aaronrobertshaw
	66313	Block Supports: Output per-block styles for custom style states		Editor		normal	normal	7.3	enhancement	new	has-patch	2026-10-14T23:23:00Z	2026-10-27T14:34:20Z	"Block style states can style a Navigation Link's current menu item (`-current`) in theme.json, and Gutenberg now lets you set that state per block too. This adds the matching per-block CSS output to the states block support, scoped to the selector the block declares in `selectors.states`.

Gutenberg PR: https://github.com/WordPress/gutenberg/pull/78769"	onemaggie
	60696	Block hooks: Allow insertion of a hooked block with attributes		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-03-05T21:07:33Z	2024-03-05T21:16:21Z	"Previously, the `hooked_block_types` and `hooked_block_{$hooked_block_type}` filters were introduced to allow templates to be extended with blocks by third parties.

While those two filters work well with unique blocks, they prove challenging when working with generic blocks that can be customized via attributes.  Attempting to hook a block into an area that has already inserted the same block type, but with different attributes won't work with the existing filters.

[This PR](https://github.com/woocommerce/woocommerce/pull/44860) demonstrates how attempting to set attributes via the `hooked_block_{$hooked_block_type}` filter will overwrite all of the same block types that have been hooked in.


It may be possible that block hooks aren't the appropriate venue for this API, but a way to insert blocks with attributes into templates is quite useful, even in the context of the core editor.

**Requirements:
**

* [ ] Allow insertion of blocks with block attributes in a single filter
* [ ] Allow checking anchor block properties before inserting hooked blocks
* [ ] (optional, but preferred) Allow nesting hooked blocks onto previous hooked blocks"	joshuaflow
	66264	Blocks: Add asset file (.asset.php) support for styles in register_block_style_handle()		Editor	trunk	normal	normal	Awaiting Review	enhancement	new		2026-10-07T07:21:06Z	2026-10-07T07:22:43Z	"In `block.json`, block metadata fields like `style`, `editorStyle`, and `viewStyle` accept file paths via the `file:` prefix (e.g. `""style"": ""file:./style.css""`). Build tools such as `@wordpress/scripts` and Webpack generate adjacent `.asset.php` files containing automated cache-busting hashes/versions and dependencies.

While `register_block_script_handle()` and `register_block_script_module_id()` detect and load adjacent `.asset.php` files to extract custom handle names, dependencies, and versions, `register_block_style_handle()` previously did not look for an `.asset.php` file, hardcoding dependencies to `array()` and ignoring asset versions or custom handles.

Follows up on Gutenberg issue [https://github.com/WordPress/gutenberg/issues/56838 #56838] (matching the work done for scripts in #60485).

A PR has been prepared with full unit test coverage:
https://github.com/WordPress/wordpress-develop/pull/14065
"	therssoftware
	64521	Blocks: Move block parser PHP classes from Gutenberg to Core	dmsnell	Editor		normal	normal	Awaiting Review	enhancement	reopened		2026-01-16T10:39:00Z	2026-01-20T23:04:54Z	"The block parser classes (WP_Block_Parser, WP_Block_Parser_Block, WP_Block_Parser_Frame) are currently maintained in the Gutenberg repository and copied to Core during the build process. This creates an inconsistency with other block-related infrastructure that is maintained directly in Core. These classes should be moved to Core and maintained there.

**Background**

See #64393

Currently, the block parser files live in Gutenberg at packages/block-serialization-default-parser/ and are copied to wp-includes/ during the build. These files are gitignored in Core:

/src/wp-includes/class-wp-block-parser.php
/src/wp-includes/class-wp-block-parser-block.php
/src/wp-includes/class-wp-block-parser-frame.php

**Arguments for Moving to Core**

- Inconsistency with related Core infrastructure: WordPress Core already maintains several related block processing classes natively: WP_Block_Processor, Block type management (WP_Block, WP_Block_Type, WP_Block_Type_Registry)
Block bindings, patterns, templates, and supports infrastructure.
- Stable code: The block parser has been stable since WordPress 5.0. Looking at the git history, the PHP files have had virtually no changes in years. 
- Simplifies the build process: Removing the parser from the Gutenberg copy step would simplify the build integration and reduce dependencies on Gutenberg for core functionality.

This ticket requires changes on both WordPress Core and Gutenberg.

**Potential arguments for keeping them in Gutenberg**

If in the future we'd want to update the parser to introduce new features, it would become a bit harder (possible) if these files are in Core. I'd say that this is not a very strong as the issue exists for all the other block related code and there are ways around it.

So the pros outweigh the cons."	youknowriad
	66564	Blocks: Support file: paths for block icons in block.json		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T17:04:17Z	2026-11-06T17:22:42Z	"Block authors can only use a custom SVG icon by setting it in JavaScript with `registerBlockType()`, because the `icon` field in `block.json` is treated as a Dashicon slug. This forces them to split a block's metadata between `block.json` and JavaScript.

This ticket proposes supporting the `file:` prefix for `icon`, as `style`, `editorScript`, `render` and `variations` already do:

{{{
{
	""icon"": ""file:./assets/icon.svg""
}
}}}

The object form is supported too:

{{{
{
	""icon"": {
		""src"": ""file:./assets/icon.svg"",
		""background"": ""#ff0000"",
		""foreground"": ""#ffffff""
	}
}
}}}

Only the block's own `icon` is resolved. The `file:` prefix is not supported for variation icons.

=== Proposed change ===

 * Add `wp_resolve_block_icon_path()`, hooked to the `block_type_metadata` filter. It resolves a `file:` icon relative to `block.json`, reads the SVG, and replaces the path with the sanitized markup.
 * Add `wp_sanitize_svg_icon()`, which removes the XML prolog, comments, doctypes, and `script` and `style` elements with their contents, then runs the SVG through `wp_kses()` using the allowlist from `wp_get_allowed_svg_icon_tags()`. Because `wp_kses()` lowercases names and SVG names are case-sensitive, it then restores the case of names such as `viewBox` and `linearGradient`.
 * If the file is missing or is not an SVG, call `_doing_it_wrong()` and leave the icon value unchanged. A non-string `src` is also left unchanged.

Dashicon slugs are not affected.

=== Pull requests ===

 * Core: https://github.com/WordPress/wordpress-develop/pull/15747
 * Gutenberg: https://github.com/WordPress/gutenberg/pull/79658

The Gutenberg pull request also converts SVG markup strings to elements during block registration, inlines `file:` icons at build time in `@wordpress/scripts`, and updates the `block.json` schema. This ticket covers the PHP changes.

=== Questions for reviewers ===

 1. The REST API returns `icon: null` for the object form, because the `icon` schema in `WP_REST_Block_Types_Controller` only allows `string` or `null`. The editor is not affected, since `get_block_editor_server_block_settings()` keeps the full value. Should the schema be widened to allow an object?
 2. The resolved path is not required to stay inside the block's directory, so `file:../../icon.svg` is accepted. `block.json` is written by the plugin or theme author, but should this be restricted?
 3. The allowlist does not include `style` or `class`, so an icon coloured only through CSS loses those colours when resolved on the server. Should it include them?
 4. Is `wp_kses()` with this allowlist the right way to sanitize these SVGs, and is the allowlist itself appropriate?

=== Testing ===

Run `npm run test:php -- --filter Tests_Blocks_WpResolveBlockIconPath`.

AI assistance: Yes. Tools: Deepseek via opencode, and Claude via Claude Code. Used for the implementation, tests and this ticket text, which were reviewed by the contributor."	mgiannopoulos24
	54665	Blog posts page might be confusing for users as the content and layout in the editor does not reflect on the frontend		Editor		normal	normal	Awaiting Review	enhancement	new		2021-12-19T19:53:07Z	2022-01-18T23:56:03Z	"-- Steps to recreate --

1. Go to the blog page (which can be found on the existing pages from clean installation)
2. Edit the page and add some blocks or change the layout of the query loop block and save it
3. Go to the frontend and look for the changes, the blog page doesn't show the layout change or new blocks as expected.

-- Details --
By default in 5.9 beta 3, there is a blog page that shows the latest posts.

When you edit the page and add some blocks or change the layout of the query loop block it doesn't get updated on the frontend.

Either we have to notify the users that, blog page doesn't work this way or disable users from editing it.

"	lakshmananphp
	40629	Change default template		Editor	4.7.4	normal	normal	Future Release	enhancement	new		2017-05-02T06:17:50Z	2020-11-23T05:58:04Z	"I recently required to change the default template of theme to another template. The site is already working since 3 months and now client wants to change the default template to the sidebar template while publishing new pages.

There is no such action or filter available for it.

I am trying to add filter for it but if anyone have other suggestions, please let me know."	pratikgandhi
	57922	Changing class-wp-editor.php Insert/Edit Link header from H1 to H3 or other		Editor	6.1.1	normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2023-03-14T18:43:46Z	2024-05-31T07:51:58Z	"Hey there!

I am using the wordpress core feature of having a blog page host all our posts. There is a modal in the class-wp-editor.php file located in the wp-includes directory.

On line 1868 (or around there) a modal is shown with the title ""Insert/edit link"". This line is wrapped in an H1 which from an SEO standpoint is really unfortunate as google sees that as a title for the page. Even if you put an additional H1 on the page above the modal, google will still see it as the title of the page. And in our case that's every paginated blog page. I think it would be really beneficial for everyone to change that header to an h3 or lower. H2 is fine as well but I don't think it requires that level.

Thank you!

All the best,
D"	donniewalden707
	61073	Cover Block Improvement		Editor	6.5	normal	minor	Awaiting Review	enhancement	new		2024-04-24T15:12:05Z	2026-01-17T13:11:44Z	"**Summary**: Enhancement of Cover Block to Improve Video Embedding and Source Handling

**Description**: The current implementation of the Cover Block in WordPress 6.5 allows for embedding videos by using a video element with a src attribute. This method, however, is limited and does not support the use of the `<source>` tag inside the video element, which is crucial for providing multiple source formats and enhancing browser compatibility.

**Enhancement Request**:

1.  **Support for Inner `<source>` Tags**: Modify the Cover Block to allow the use of inner `<source>` tags within the video element. This change would enable users to specify multiple video sources and types, which is essential for optimal video delivery across different browser types and network conditions.
    
2.  **Native Embedding of CDN Content**: The current system does not natively support embedding videos from popular CDNs like YouTube or Vimeo. Users benefit from integrating these platforms as they often offer optimized content delivery and additional features like adaptive streaming.
    
    *   **Feature Integration**: Include support for native attributes associated with these platforms, such as `muted`, `autoplay`, `loop`, etc., within the Cover Block settings. This integration will make it easier for users to control video behavior directly from the block editor without relying on additional plugins or custom code.

**Benefits**:

*   Enhanced media compatibility and performance across different devices and browsers.
*   Simplified user experience by reducing the need for external plugins to handle basic video functionalities.
*   Increased functionality and flexibility for website designers and content creators using WordPress.

**Use Cases**:

1.  A user uploads multiple video files in different formats (e.g., .mp4, .webm) to ensure compatibility across all browsers.
2.  A content creator needs to embed a muted autoplay video from YouTube as a background cover video on their homepage.

[[Image()]]

**Proposed Solution**:

*   Extend the current video block implementation to include an interface for adding multiple video sources via the WordPress editor.
*   Develop a new integration layer within the block editor that supports embedding videos from YouTube, Vimeo, and potentially other CDNs with their specific player attributes.

I believe these enhancements will significantly improve the functionality and usability of the Cover Block in WordPress, aligning it more closely with modern web standards and user expectations."	dennysdionigi
	58153	Ctrl + SHIFT + D conflicts with browser shortcuts		Editor	6.2	normal	normal	Awaiting Review	enhancement	new		2023-04-18T16:29:13Z	2023-04-18T18:02:12Z	"Ctrl + SHIFT + D, the shortcut for duplicating blocks doesn't work as expected.

Let's take Chrome, for example.

Case where it works
1. Create a block
2. Execute the shortcut inside the editor
3. Shortcut works

Case where it doesn't work
1. Create a block
2. Select the block in the List View, then click it one more time
3. A blue border appear around the block in the block editor
4. Execute the shortcut
5. The ""Bookmark all tabs"" Chrome modal appears

At this point, if you click another block, shortcut works. There seem to be an issue when a block is clicked twice from the List View. That's where browser takes over and the shortcut doesn't work.

Same thing with Firefox but for this browser, the ""Add bookmark"" modal opens up.

That's generally quite annoying and it has been there forever."	quantum_leap
	66172	Editor: Add space-around and space-evenly flex justification options		Editor	trunk	normal	normal	Awaiting Review	enhancement	new	has-patch	2026-09-24T12:15:21Z	2026-09-24T12:16:24Z	"The block editor currently supports left, center, right, and space-between flex justification. This ticket adds support for the CSS space-around and space-evenly values.

Gutenberg implementation: https://github.com/WordPress/gutenberg/pull/71129

The corresponding PHP layout support needs to be synchronized to WordPress Core so blocks using these values render correctly without the Gutenberg plugin."	sukhendu2002
	65866	Editor: Allow notes on templates and template parts		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-08-13T02:50:44Z	2026-08-13T02:52:33Z	"Notes (block comments) shipped in 6.9 and work in the post and page editors, but not when editing templates or template parts in the site editor.

Notes are gated on the `editor.notes` post type feature, checked in `WP_REST_Comments_Controller::check_post_type_supports_notes()` and again in the block editor's post type support check. `wp_template` and `wp_template_part` declare a plain `editor` feature in `create_initial_post_types()`, so notes are refused for both.

Declaring the feature as an array opts both post types in, matching `post` and `page`:

{{{#!php
'supports' => array(
	'title',
	'slug',
	'excerpt',
	'editor' => array( 'notes' => true ),
	'revisions',
	'author',
),
}}}

This leaves `post_type_supports( 'wp_template', 'editor' )` returning true, so nothing else changes.

Notes are comments, so they attach to templates that exist as posts: user-created templates, and theme templates once they have been customized and saved. Theme-provided template files have no post for a comment to attach to and are unaffected.

Permissions need no new code. Both post types register `capability_type => array( 'template', 'templates' )` with `map_meta_cap => true` and map every primitive capability to `edit_theme_options`, so the `edit_post` meta cap the comments controller already checks resolves to the template editing capability. Users who cannot edit templates can neither read nor create notes on them.

Template notes do not leak: `WP_Comment_Query` excludes the `note` type by default since 6.9, and template post types are not publicly queryable.

The editor-side half of this (resolving a template record's numeric post ID from its `wp_id`, since the templates controller identifies records by a `theme//slug` string) lives in the Gutenberg plugin.

Gutenberg issue: https://github.com/WordPress/gutenberg/issues/72918
Gutenberg PR: https://github.com/WordPress/gutenberg/pull/81548

PR: https://github.com/WordPress/wordpress-develop/pull/13027"	adamsilverstein
	66055	Editor: Migrate the Column block to the width block support		Editor		normal	normal	7.3	enhancement	new	has-patch	2026-09-06T09:24:05Z	2026-10-27T14:32:49Z	"Backport of Gutenberg PR https://github.com/WordPress/gutenberg/pull/76684.

Migrates the Column block from its ad-hoc width attribute to the standard
dimensions.width block support, so column widths can be set from global styles
and theme.json while existing columns keep working.

Columns sit in a flex container and size themselves with flex-basis rather than
width, so WP_Theme_JSON converts the computed width declaration and sets
flex-grow to 0. This covers the block level, block style variations, and
variation styles set within a responsive breakpoint.

The block.json and theme.json changes arrive with the next Gutenberg package
update, as they did for the Button block in #65388."	aaronrobertshaw
	66420	Editor: Stop loading block content styles outside the post editor canvas		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-10-30T09:32:06Z	2026-11-02T09:07:51Z	"Since WordPress 7.1, the post editor is always iframed. However, the `wp-edit-blocks` dependency of the `wp-edit-post` stylesheet still loads styles that only target content inside the canvas (`wp-reset-editor-styles`, `wp-block-editor-content`, `wp-editor-classic-layout-styles`) in the main document as well. These styles are already loaded in the iframe through `_wp_get_iframed_editor_assets()`.

This ticket replaces `wp-edit-blocks` with a new `wp-block-library-editor` handle, which loads only the block library `editor.css`, since block editor styles also target UI outside the canvas. Gutenberg already uses this handle for the site editor.

Gutenberg PR: https://github.com/WordPress/gutenberg/pull/86011"	wildworks
	66306	Editor: Support spacing presets for text indent		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-10-14T07:42:39Z	2026-10-14T07:43:12Z	"Backports the PHP changes from https://github.com/WordPress/gutenberg/pull/84669, which makes the Line indent control use the spacing presets, like padding and margin.

- The style engine maps spacing presets for typography.textIndent to CSS custom properties, so var:preset|spacing|40 is output as var(--wp--preset--spacing--40).
- wp_apply_typography_support() generates its styles with convert_vars_to_classnames, which drops preset values that have no classname. Spacing presets have no classnames, so text indent is generated in a separate style engine call. Without this, text indent presets are lost on the front end for server-rendered blocks.

Gutenberg issue: https://github.com/WordPress/gutenberg/issues/73604
PR: https://github.com/WordPress/wordpress-develop/pull/14266
"	dhananjaykuber
	65835	Excerpts: Extract content from Playlist block tracks		Editor	7.1	normal	normal	Future Release	enhancement	new	has-patch	2026-08-08T03:35:22Z	2026-10-26T08:29:30Z	"The '''Playlist block''' contains meaningful content for each track, including '''Title, Artist, and Album'''. However, when WordPress automatically generates an excerpt, this content does not appear to be considered.

For example, a Playlist track can contain:

{{{
Artist: Unknown artist
Album: Unknown album
Title: sample-3s
}}}

The '''Title, Artist, and Album''' fields provide meaningful textual content that could be used when generating an automatic excerpt.

== Steps to reproduce ==

1. Create a new post.
2. Add a '''Playlist''' block.
3. Add an audio track.
4. Set the track '''Title, Artist, and Album'''.
5. Publish the post without adding a manual excerpt.
6. Retrieve the post through the REST API:

{{{
/wp-json/wp/v2/posts/<post-id>
}}}

7. Check the `excerpt.rendered` value.

== Actual result ==

The Playlist track content is not included in the automatically generated excerpt.

For example:

{{{
""excerpt"": {
    ""rendered"": """",
    ""protected"": false
}
}}}

== Expected result ==

The automatically generated excerpt should include meaningful textual content from the Playlist tracks.

For example:

{{{
sample-3s
}}}

Or, when the metadata is available:

{{{
sample-3s — Artist Name — Album Name
}}}

== Proposed solution ==

Consider extracting the available '''Title, Artist, and Album''' metadata from Playlist tracks when generating automatic excerpts.

The '''Title''' could be prioritized, while Artist and Album could be included when available. Default values such as `Unknown artist` and `Unknown album` could be ignored.

This would be similar to how WordPress considers meaningful nested content from other blocks when generating automatic excerpts."	huzaifaalmesbah
	62470	Filter for get_the_block_template_html		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-11-19T00:05:47Z	2025-05-26T14:29:53Z	"Although a ticket already exists to add a filter for this function: https://core.trac.wordpress.org/ticket/61446

That particular ticket is a bit more ambitious than this one, and perhaps, will take a bit more time and consideration to be merged into core.

This ticket aims to be an interim solution for this.

The proposal is to add a hook for that function. There is currently no clean way to get the markup of the page before it is rendered on the front-end.

There are situations where we want to dynamically update links, and use the HTML processor on the markup dynamically, and there is no way to do this in a clean way for websites that use the Full Site Editor."	junaidbhura
	60717	Font Library: Add an ability to replace font		Editor	6.5	normal	normal	Future Release	enhancement	new		2024-03-07T03:31:40Z	2024-06-02T20:37:52Z	Instead of the error or notice that the font already exists, the font library should allow replacing the font. Sometimes a font can be corrupted for some reason, and you need to update it. So, the better flow should be to ask the users if they want to replace the font(s).	oglekler
	60593	Font Library: add terms and conditions		Editor	6.5	normal	normal	Future Release	enhancement	new	has-patch	2024-02-21T18:24:38Z	2024-03-20T20:50:56Z	"
What problem does this address?

- Give users a way to accept or reject loading the data from a registered font collection.
- Give font collection creators the ability to add a license text to inform users about the terms and conditions of the font collection.

What is your proposed solution?
- Add terms and conditions field in the font collection.
- Render the terms and conditions from a font collection in the frontend.
- Make the Google fonts permission dialog font collection agnostic.
"	mmaattiiaass
	60152	"Footnotes save to public, unprefixed ""footnotes"" field"		Editor	6.4.2	normal	normal	Awaiting Review	enhancement	new		2023-12-26T12:05:41Z	2023-12-27T01:37:52Z	"We use a custom solution for adding footnotes to posts. All of our posts with footnotes became uneditable after WP's own implementation for footnotes was introduced. When trying to edit a post with ""our"" footnotes, the editor throws a JS error ""i.map is not a function"" for this line in core-data.min.js 
{{{
i = t.footnotes ? JSON.parse(t.footnotes) : [];
if (i.map((e => e.id)).join('') === r.join('')) return n;
}}}
Posts containing footnotes do not save or update anymore. We believe this is because WP footnotes are saved to a public, unprefixed meta field ""footnotes"" (see wp-includes\blocks\footnotes.php, 70), which conflicts with our own custom footnotes implementation, which already uses the exact same field name. "	Milber
	55780	Global Styles: Introduce filter for toggling stylesheet cache		Editor	5.9	normal	normal	Awaiting Review	enhancement	new	has-patch	2022-05-19T15:03:44Z	2024-08-08T23:37:56Z	"Currently, for `wp_get_global_stylesheet()` and  `wp_get_global_styles_svg_filters()` we'll cache the merged stylesheet data per theme in a transient for a minute if:

* `WP_DEBUG` is not enabled;
* `SCRIPT_DEBUG` is not enabled;
* This is not a REST API request
* We're not in the admin

However, for huge multisite instances that leverage object caching, this can result in thousands of `wp_cache_set()` operations per minute, which can be quite intensive. 

At the same time, retrieving the global stylesheet data and merging it, on a well-optimized server will usually take very little time (up to a few milliseconds). 

As a consequence, we end up wanting to disable that caching, because it creates more problems than it solves. However, there is no good trigger for disabling just that cache.

I'd like to propose a filter that allows us to disable the global stylesheet cache. While it will still be enabled by default, disabling it will be easy when needed."	tyxla
	66387	KSES: Allow CSS color functions in inline styles		Editor		normal	normal	7.3	enhancement	new	has-patch	2026-10-27T06:04:32Z	2026-10-27T06:14:31Z	"Backport of Gutenberg PR https://github.com/WordPress/gutenberg/pull/84213.

safecss_filter_attr() drops any declaration whose value uses a CSS color function, such as rgb(), hsl(), oklch() or color-mix(). So box-shadow: 1px 1px 1px rgba(0,0,0,0.5) never reaches the page. The same goes for a shadow or text color from the style engine.

It removes a color function from the test string, innermost first, only when its contents are plain color syntax. Anything left over, such as a parenthesis, backslash, comment or unknown function, is still rejected. The check runs before the safecss_filter_attr_allow_css filter, so a plugin can still reject the declaration.
"	aaronrobertshaw
	63638	Lack of pinch-to-zoom support in Gutenberg core lightbox on mobile devices		Editor		normal	normal	Awaiting Review	enhancement	new	close	2025-06-30T10:09:42Z	2025-07-09T17:12:27Z	"Hello,

One common issue many WordPress users have pointed out is the absence of pinch-to-zoom functionality within the Gutenberg core lightbox on mobile devices. This limitation negatively impacts the mobile user experience, making it less intuitive and convenient.

As someone interested in helping WordPress users by answering their questions, I’ve noticed this is a frequent concern among the community.

If possible, adding this feature could significantly improve the mobile usability of the Gutenberg editor.

Thank you for your attention and efforts to improve WordPress."	tohidlo
	44651	Make the excerpt explanation filterable		Editor		normal	normal	Awaiting Review	enhancement	new	needs-docs	2018-07-26T15:38:35Z	2025-10-02T16:11:11Z	Excerpts are used in different ways by different post types. The explanatory text below the textarea should be filterable to allow plugin authors to provide details relevant to their implementation.	sillybean
	52819	Naming of Reusable block: make it required & unique		Editor		normal	normal	Awaiting Review	enhancement	new		2021-03-15T13:11:01Z	2021-03-15T15:39:31Z	"The naming of the reusable block is not required, which results in some client sites as 4 to 5 reusable blocks with the same name. As the standard label name.


This makes it really confusing to use reusable blocks, by choosing or even by deleting. It creates a mess in the reusable block overview.


It would be great to require a unique reusable block name."	davelo
	58799	Need to add filter to register a template in [NEW] WordPress site editor through a plugin		Editor	6.2.2	normal	blocker	Awaiting Review	enhancement	new	has-patch	2023-07-13T11:55:00Z	2024-03-01T10:09:22Z	"I am trying to add a new template in the WordPress site editor like this like this

but unable to do it with my custom plugin.

I have found a filter to register a custom template


{{{
add_filter( 'default_template_types', 'register_template_type' );

function register_template_type( $templates ) {
            $templates['help-us'] = array(
                'title'       => _x( 'Page: Help Us', 'Template Name' ),
                'description' => __( 'Displays Help Us template' ),
            );

            return $templates;
}
}}}

after adding this code I have figured out that by adding a file in the theme's template directory help-us.html I was able to register and display my custom template.


**What if I want to add a custom template via plugin?**

I was not able to find a way to add a custom template via the plugin. Previously I was using customizer in my plugin to customize the layout of a page with some custom functionality, now I am looking for a way to customize this page with the help of NEW site editor.

**REF**: https://wordpress.stackexchange.com/questions/417325/how-to-register-a-template-in-new-wordpress-site-editor-through-a-plugin


After going through, I figured out that we just need to make the template html file visible from the plugin to the template loop in order to display it. So I went over and added filter hooks in two places which just worked for me.

We need to add filters in following two lines;

1- wp-includes\block-template-utils.php:263 

{{{
$themes         = array(
        get_stylesheet() => get_stylesheet_directory(),
        get_template()   => get_template_directory(),
    );
    // NEW Filter hook
    $themes = apply_filters( 'block_editor_templates_files', $themes, $template_type );
    $template_files = array();
}}}


2- wp-includes\block-template-utils.php:306


{{{
 $themes = array(
        get_stylesheet() => get_stylesheet_directory(),
        get_template()   => get_template_directory(),
    );
    // NEW Filter hook
    $themes = apply_filters( 'block_editor_templates_files', $themes );
}}}

Looking forward to your feedback and consideration.

Thanks


"	saadiqbal
	61551	Page template list lacks sorting		Editor	6.5.5	normal	normal	Awaiting Review	enhancement	new		2024-07-02T19:49:16Z	2024-07-02T19:49:16Z	"This issue wont be apparent in the Page Block Editor (or classic editor) if your theme has no page templates or templates with similar names. I've created dummy template files that contained a number in their names. WP currently doesnt do any sorting which makes the template list look very disorganized. See attached images. 

Solution:
Add the following snippet to the method 'get_post_templates' of class WP_Theme, right above ""$this->cache_add( 'post_templates', $post_templates );""

Snippet:
{{{#!php
<?php
// Sort template names using ""natural ordering""
foreach ($post_templates as &$value ){
  natsort($value);
}
}}}

 "	ignatiusjeroe
	66200	Position block support: derive container class from styles so identical rules are deduplicated	mukesh27	Editor		normal	normal	7.3	enhancement	assigned	has-patch	2026-09-28T04:42:10Z	2026-10-25T07:51:41Z	"`wp_render_position_support()` builds its container class from a per-request counter:

{{{#!php
<?php
$class_name = wp_unique_id( 'wp-container-' );
}}}

Every block instance with position support therefore gets its own class and its own rule in the `block-supports` style engine store, even when the resulting CSS is byte-for-byte identical.

The other block supports that emit a scoped rule derive the class from the style inputs, so identical styles collapse into one rule:

||= Support =||= Class strategy =||
|| `layout.php` || `wp_unique_id_from_values( $hash_input, 'wp-container-' )` ||
|| `custom-css.php` || `wp_unique_id_from_values( $parsed_block, ... )` ||
|| `states.php` || `md5()` of the rules ||
|| `settings.php` || `md5( serialize( $block ) )` ||
|| **`position.php`** || **`wp_unique_id()` (counter)** ||

`wp_render_layout_support_flag()` documents why it hashes: to keep class names the same for blocks with the same definition, and stable across paginations such as the Query block's enhanced pagination. Position uses the same `wp-container-` prefix but doesn't get that behaviour.

=== Impact ===

With 200 Group blocks that all use `position: sticky; top: 0px`:

||= =||= Rules in store =||= Generated CSS =||
|| trunk || 200 || 22,092 bytes ||
|| patched || 1 || 116 bytes ||

This CSS is inlined into every front-end response, so the duplication adds page weight on every request, on top of the render cost."	mukesh27
	58801	Prefetch Block Editor from Posts page	adamsilverstein	Editor		normal	normal	Future Release	enhancement	assigned	needs-unit-tests	2023-07-13T15:44:37Z	2024-08-27T21:11:53Z	"One of the most common user journeys in wp-admin for creating or editing a Post is navigating to the Posts page (`wp-admin/edit.php`) then to the Block Editor (either by clicking a post to edit or clicking the ""New Post"" button or sidebar menu).

We can greatly increase up the speed with which the editor loads by prefetching the edit screen once the user reaches the Posts page. Prefetch will ""prime the html cache"" for all of the resources needed by the editor, resulting in the editor loading much faster for users.

Note: since users can also reach the editor from the wp-admin bar, we might want to consider adding prefetch when the user interacts or opens the ""New"" menu. However, to keep this initial proposal small and easier to test I decided to limit the scope to the Posts page."	adamsilverstein
	53630	Prior State Recall for Panes in Editor (Collapse/Expanded)		Editor	5.7.2	normal	trivial	Awaiting Review	enhancement	new		2021-07-08T18:54:18Z	2021-07-08T18:54:18Z	"Background: I recently interacted with a site creator who posted this topic in the WordPress.org support forums:

https://wordpress.org/support/topic/add-new-post-screen-layout/

Upon further exploration, I noted that it is possible to toggle various panes (especially pertaining to plugin features) to display or not display.

However, if you toggle them to display (the default setting), the editor screen/viewport can become quite small, as much real estate is reserved for these panes.

If a user toggles the panes to NOT display, it is not ideal, as they may need access to these panes sporadically. 

A possible solution would be to enable state memory. Essentially, each pane can be expanded or collapsed using a small arrow in the top right of the pane already. 

Screenshot: https://cloudup.com/cgzDJjk4UWu

MY FEATURE REQUEST:
Remember the state of each pane so that when the user returns to the editor, the various panes are in their last state (expanded or collapsed)."	dansoschin
	59620	Remove a query to /wp-json/wp/v2/users from the editor where there isn't a real need		Editor		normal	normal	Awaiting Review	enhancement	new		2023-10-13T17:02:23Z	2023-10-13T19:24:15Z	"I've unset `/wp/v2/users` and `/wp/v2/users/(?P<id>[\d]+)` endpoints to remove access to the users list and make it harder for bots that are trying the login form (This one is custom as well, so they are actually not doing it, but this is not the point), and I've got an 404 error in the Editor in admin, but everything is working, and apart from the annoying red circle with number 1 inside in the Dev Tools, I didn't get any side effects. So, if this is not necessary, why do we have this request to the back in the first place? I am proposing to remove it by default and do it only when necessary.

I want to emphasize that everything is working, and apart from this annoying error, everything is fine and several months went by without any complaints from editors."	oglekler
	61958	Rename `wp_should_load_separate_core_block_assets()` to clarify its purpose		Editor		normal	normal	Future Release	enhancement	assigned	dev-feedback	2024-08-29T16:42:08Z	2025-01-30T23:11:10Z	"The `wp_should_load_separate_core_block_assets()` function and the `should_load_separate_core_block_assets` filter were introduced in WordPress 5.8 (see [50836] and [https://make.wordpress.org/core/2021/07/01/block-styles-loading-enhancements-in-wordpress-5-8/ dev note]).

While initially the function's and filter's purpose was to determine whether to load individual block stylesheets for core blocks (vs the one large `wp-block-library` stylesheet), this purpose has notably expanded over time: Today, this function also determines whether or not to load block assets on demand (vs unconditionally throughout the entire site). More importantly though, it also covers third-party blocks, so its name containing `core_blocks` is confusing and should rather use simply `blocks`.

The function name, filter name, and their documentation is confusing. Not only does it not explain what it actually does today, it is also inconsistent in itself in that it sometimes refers to ""core block types"", while other times it refers to ""block types"" (in general). [https://wordpress.slack.com/archives/C02QB2JS7/p1724755636404209 This Slack thread] is an example of how the current naming and documentation leads to confusion.

This ticket proposes renaming the function and filter and updating the documentation to clarify the purpose. Of course, technically we can't just rename things, so this will mean deprecating the current function and filter in favor of a new function and filter.

Potentially a good name would be `wp_should_load_separate_block_assets()`. This could work for both the function and the filter. The documentation should then focus on this primary purpose, while additionally explaining that this will furthermore lead to individual core blocks stylesheets being used instead of `wp-block-library` (which still makes sense in this context, because loading `wp-block-library` is anything but on demand 🙃).

If we decide that renaming the function is too disruptive, at a minimum we should improve its documentation to clarify those behaviors."	flixos90
	63089	Request: Previous / Next Buttons for WP Admin		Editor		normal	normal	Awaiting Review	enhancement	new		2025-03-12T20:22:40Z	2025-04-07T08:36:03Z	"

I emphatically request that WP add Previous and Next buttons in the WP Admin for all posts and custom post types. Over the years, a few plugins have done this, but all are now out-of-date or have security issues. Plugins like WooCommerce have this feature for product pages. It can’t be that hard to incorporate into the Core.

Most of the time I deal with it, but for the past few weeks I am in a place with terrible WiFi so page loading is slow. When I want to go from one CPT post to the next to tweak something, going back out to the main list of posts to click and open the next post is frustrating and a waste of time. When editing a post, if there were a “Next” or “Previous” button, I could just move on to the next post without taking the needless extra step of loading the main list. aaahhhh!!!

I find it hard to believe this isn’t already a standard WP feature. Please, Powers-That-Be, please prioritize adding this to WP Core.
"	trishahdee
	65907	Restore the revisions easter egg	adamsilverstein	Editor		normal	normal	Awaiting Review	enhancement	assigned	has-patch	2026-08-18T23:06:55Z	2026-10-21T22:02:43Z	"This PR restores the admin easter egg WordPress used to trigger by comparing a revision to itself. It shipped for about a decade until it came out in [24820] (see #24852) when the revisions UI was rewritten and the ""compare a revision to itself"" state stopped existing and it became impossible to trigger.

This PR restores the easter egg behind the command palette, so it can be triggered by typing a phrase into the palette. The phrase is a well known WordPress phrase which I won't divuldge here in order to not ruin the surprise for anyone who wants to find it themselves. 

The phrase is compared through the a Dvorak/QWERTY substitution cipher so it is possible to deduce it from the source code with a little bit of work.

== Notes on the code ==

The JavaScript here is a rewrite of the original which no longer depends on jQuery.

A few other things needed updating after twelve years:

 * `<blink>` and `text-decoration: blink` are replaced with a CSS `@keyframes` blink, plus a `prefers-reduced-motion` guard.
 * The original took over the document, rewriting `html`/`body` CSS and stripping nodes out of the page's first `<p>`. The scene now renders into its own overlay and touches nothing on the admin page.
 * The overlay is marked `aria-hidden`. Without it, text typed one character at a time lands in the accessibility tree one node at a time.

Note: only a small loader is added to admin pages. The scene itself is fetched at the moment it is invoked, so a normal admin load carries nothing else.

"	adamsilverstein
	31479	Save custom color palette through refreshes		Editor		normal	normal	Future Release	enhancement	new		2015-02-27T19:47:27Z	2019-07-05T08:48:12Z	"When you choose a custom color for your text using the color picker, the custom colors disappear from the palette when the page refreshes, or if the editor is closed and reopened later. This also happens after saving as a draft.

Color picker right after changing text color:

[[Image(http://cdn2.dropmark.com/74615/a48b9d7e5d6cd1ad5798a7ddfbf2ff20ebbc2086/colorshown.png)]]

Color picker after saving draft:

[[Image(http://cdn2.dropmark.com/74615/a2c1a5966634e30eb76f2c3c04771f5fbdfa0d2e/colornotshown.png)]]

Steps to reproduce:
1. Change text color to a custom color choice.
2. Save post as a draft.
3. Reopen the color palette.

Reported in WordPress.com forums: http://en.forums.wordpress.com/topic/custom-color-boxes-in-post-editor"	shawnajroberts
	65897	Surface community-contributed patterns from the Pattern Directory in the editor (opt-in)	ugyensupport	Editor		normal	normal	Awaiting Review	enhancement	assigned	has-patch	2026-08-17T14:53:39Z	2026-09-17T07:34:13Z	"The block editor's Patterns inserter loads remote patterns from the WordPress.org Pattern Directory, but only two curated slices:

 * `_load_remote_block_patterns()` — the `core` keyword (id 11)
 * `_load_remote_featured_patterns()` — the `Featured` category (id 26)

The much larger pool of community-contributed patterns — the `?curation=community` view on wordpress.org/patterns (~90k patterns) — is never exposed in the editor. To use one today, a user has to leave the editor, browse the directory on wordpress.org, and copy/paste the pattern back: a broken flow for what is otherwise a first-class inserter feature.

The omission is deliberate — the community collection is large and unmoderated, so core curates what it surfaces. This enhancement preserves that default while giving themes, plugins, and site owners a supported, first-class way to opt in.

== Approach ==

Add a third remote loader, `_load_remote_community_patterns()`, alongside the two existing ones, registering results under a new `community` block-pattern category.

Because loading the uncurated collection by default would regress both performance and the out-of-the-box quality bar, it is '''opt-in and disabled by default''', behind a new filter:

{{{#!php
<?php
// Surface community patterns in the inserter.
add_filter( 'load_remote_community_block_patterns', '__return_true' );
}}}

With the filter off (the default), behaviour is byte-for-byte unchanged and '''no extra directory request is made'''. The change is inert until explicitly enabled — the key point for review.

== Why here ==

The three remote loaders are invoked lazily, once, from `WP_REST_Block_Patterns_Controller::get_items()` — the REST call the editor makes to populate the inserter. Adding the community loader in the same block gives it the exact same lifecycle, caching, and `should_load_remote_block_patterns` gate as the existing loaders. No new hook, no front-end cost, no change to the non-editor request path.

== Changes ==

`wp-includes/block-patterns.php`
 * Register a new `community` pattern category (label ""Community""), next to `featured`.
 * Add `_load_remote_community_patterns()`, mirroring `_load_remote_featured_patterns()`: honours `should_load_remote_block_patterns`, adds the opt-in `load_remote_community_block_patterns` filter (default `false`), requests the general directory collection (no `keyword`/`category`), and registers each result under the `community` category with a `pattern-directory/community` source and a `community/` name prefix.

`wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php`
 * Call `_load_remote_community_patterns()` in the existing lazy-load block in `get_items()`.

`tests/phpunit/tests/blocks/loadRemoteCommunityPatterns.php` (new)
 * Covers: no directory request when the filter is off; registration under the `community` category with the `pattern-directory/community` source when opted in; and the `should_load_remote_block_patterns` gate still winning when opted in. Uses a registry-swap fixture and a `pre_http_request` mock (mirroring `rest-pattern-directory-controller.php` tests), so it never hits the network. Passes locally — `OK (3 tests, 6 assertions)`.

== Testing ==

'''Default (filter off) — no behaviour change'''
 1. Add no filter.
 1. Open the editor and the Patterns inserter.
 1. Confirm there is no ""Community"" category and the inserter behaves exactly as on trunk (optionally, that no directory request is made for the community collection).

'''Opt-in (filter on) — community patterns appear'''
 1. Add the `load_remote_community_block_patterns` → `__return_true` filter shown above.
 1. Reload the editor and open the Patterns inserter.
 1. A ""Community"" category appears, populated from the directory.
 1. Insert one; confirm it inserts as editable blocks (not rendered HTML) matching the directory pattern.

'''Remote-load gate still respected'''
 1. Keep the opt-in filter on and also add:
{{{#!php
<?php
add_filter( 'should_load_remote_block_patterns', '__return_false' );
}}}
 2. Reload the inserter. The ""Community"" category should be absent — the master remote-load gate wins, consistent with `core` and `featured`.

== Open questions / notes ==

 * '''Opt-in vs. UI toggle.''' This lands the plumbing as an opt-in filter. Whether the end goal is opt-in only, or a surfaced UI toggle, is a product call for the Editor component — the inserter UI itself lives in the Gutenberg repo, so a companion issue there may be warranted.
 * '''Grouping.''' Results are grouped into the `community` category for a predictable inserter section; preserving each pattern's own directory categories instead is a reasonable refinement to discuss.
 * '''Batch size.''' `per_page` is capped at 24 to keep the first uncached inserter load responsive; pagination / lazy fetch is a natural follow-up.
 * `@since` is currently `7.2.0` and should be adjusted to whatever version this lands in."	ugyensupport
	66582	Tests: Add unit tests for the Avatar block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T19:47:01Z	2026-11-07T03:08:33Z	"`render_block_core_avatar()`, `get_block_core_avatar_border_attributes()` and `register_block_core_avatar()` in `src/wp-includes/blocks/avatar.php` have no unit tests.

This ticket adds tests in two parts: the classes and styles for the border of the block (radius, style, width, preset and custom colors, and the sides), and the rendering of the block (the author of the post, of the attributes and of a comment, the link, the size, the alt text and the registration of the block)."	hmbashar
	66581	Tests: Add unit tests for the Home Link block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T19:43:51Z	2026-11-06T19:44:22Z	"`block_core_home_link_build_css_colors()`, `block_core_home_link_build_li_wrapper_attributes()`, `render_block_core_home_link()` and `register_block_core_home_link()` in `src/wp-includes/blocks/home-link.php` have no unit tests.

This ticket adds tests in two parts: the helper functions (the named and the custom text and background colors, and the classes of the wrapper with the current item on the front page and on the posts page), and the rendering of the block (the link, the label, the target, the description, the current page and the registration of the block)."	hmbashar
	66530	Tests: Add unit tests for the Query block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T07:46:09Z	2026-11-06T07:46:50Z	"The functions in `src/wp-includes/blocks/query.php` are not referenced by any test: `render_block_core_query()`, `register_block_core_query()` and `block_core_query_disable_enhanced_pagination()`.

This ticket adds tests in two parts: the render callback (the Interactivity API directives, the script module and the style handles) and the function that disables the client navigation of the enhanced pagination when a block that does not support it is inside the Query block."	hmbashar
	66534	Tests: Add unit tests for the Search block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T08:02:44Z	2026-11-06T08:28:05Z	"The functions in `src/wp-includes/blocks/search.php` are not referenced by any test: `render_block_core_search()`, `register_block_core_search()`, `classnames_for_block_core_search()`, `apply_block_core_search_border_style()`, `apply_block_core_search_border_styles()`, `styles_for_block_core_search()`, `get_typography_classes_for_block_core_search()`, `get_typography_styles_for_block_core_search()`, `get_border_color_classes_for_block_core_search()` and `get_color_classes_for_block_core_search()`.

This ticket adds tests in three parts: the functions that build the classes and the typography styles, the functions that build the inline styles (the borders, the radius, the colors and the shadow), and the render callback."	hmbashar
	66532	Tests: Add unit tests for the Site Logo block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T07:51:58Z	2026-11-06T07:56:46Z	"The functions in `src/wp-includes/blocks/site-logo.php` are not referenced by any test: `render_block_core_site_logo()`, `register_block_core_site_logo()`, `register_block_core_site_logo_setting()`, `register_block_core_site_icon_setting()`, `_override_custom_logo_theme_mod()`, `_sync_custom_logo_to_site_logo()`, `_delete_site_logo_on_remove_custom_logo()`, `_delete_site_logo_on_remove_theme_mods()`, `_delete_site_logo_on_remove_custom_logo_on_setup_theme()` and `_delete_custom_logo_on_remove_site_logo()`.

This ticket adds tests in two parts: the render callback with the registration of the block and of its settings, and the functions that keep the `site_logo` option and the `custom_logo` theme modification in sync."	hmbashar
	66529	Tests: Add unit tests for the Social Link block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T07:27:24Z	2026-11-06T07:33:15Z	"The functions in `src/wp-includes/blocks/social-link.php` are not referenced by any test: `render_block_core_social_link()`, `register_block_core_social_link()`, `block_core_social_link_services()`, `block_core_social_link_get_icon()`, `block_core_social_link_get_name()`, `block_core_social_link_get_color_styles()` and `block_core_social_link_get_color_classes()`.

This ticket adds tests in two parts: the helper functions (the list of the services and its filter, the icon and the name of a service, and the styles and the classes of the colors), and the render callback (the URL, the label, the classes and the link attributes)."	hmbashar
	66596	Tests: Add unit tests for the class that the Heading, List and Paragraph blocks add on the server		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T06:54:34Z	2026-11-07T06:59:30Z	"The Heading, List and Paragraph blocks add their class (`wp-block-heading`, `wp-block-list` and `wp-block-paragraph`) to the saved markup on the server, with `block_core_heading_render()` in `src/wp-includes/blocks/heading.php`, `block_core_list_render()` in `src/wp-includes/blocks/list.php` and `block_core_paragraph_add_class()` in `src/wp-includes/blocks/paragraph.php`. These functions have no tests.

This ticket adds tests that cover, for each function:

* empty content being returned as it is;
* the class being added to the first heading, list or paragraph only, and kept next to the existing classes and attributes;
* content without such an element being left as it is;
* the paragraph class being added through the `render_block_core/paragraph` filter when the block is rendered."	hmbashar
	66526	Tests: Add unit tests for the server-side functions of the Tabs block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T07:15:18Z	2026-11-06T07:15:39Z	"The `block_core_tabs_generate_tabs_list()`, `block_core_tabs_provide_context()`, `block_core_tabs_render_block_callback()` and `register_block_core_tabs()` functions in `src/wp-includes/blocks/tabs.php` are not referenced by any test.

This ticket adds tests for the IDs of the tabs, the context that is provided to the inner blocks, the directives and the state of the Interactivity API that are added by the render callback, and the registration of the block."	hmbashar
	66576	Tests: Add unit tests for the server-side rendering of the Accordion Item block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T19:22:49Z	2026-11-06T19:24:11Z	"`block_core_accordion_item_render()` and `register_block_core_accordion_item()` in `src/wp-includes/blocks/accordion-item.php` have no unit tests.

This ticket adds tests for the directives and the attributes of the item, the toggle and the panel, the unique ID, the open by default value in the context and in the state of the Interactivity API, the low fetch priority of the images in a collapsed item, the empty content, an incomplete structure, and the registration of the block."	hmbashar
	66575	Tests: Add unit tests for the server-side rendering of the Accordion block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T19:22:33Z	2026-11-06T19:24:01Z	"`render_block_core_accordion()` and `register_block_core_accordion()` in `src/wp-includes/blocks/accordion.php` have no unit tests.

This ticket adds tests for the directives of the Interactivity API and the context with the autoclose setting, the empty content, the content without the class of the block, and the registration of the block."	hmbashar
	66593	Tests: Add unit tests for the server-side rendering of the Archives block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T06:30:24Z	2026-11-07T06:38:44Z	"The Archives block (`core/archives`) is rendered on the server by `render_block_core_archives()` and `block_core_archives_build_dropdown_script()` in `src/wp-includes/blocks/archives.php`. Only the block fixtures cover the basic output of the list.

This ticket adds tests that cover:

* the list of archives for each type, with and without the post counts, and the message when there are no archives;
* the dropdown: the label for each type (and its visibility), the options, and the unique ID;
* the `widget_archives_args` and `widget_archives_dropdown_args` filters;
* the script of the dropdown: the ID and the home URL it gets, the escaping, and the source URL."	hmbashar
	66590	Tests: Add unit tests for the server-side rendering of the Breadcrumbs block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T05:23:12Z	2026-11-07T06:21:47Z	"The Breadcrumbs block (`core/breadcrumbs`) is rendered on the server by the functions in `src/wp-includes/blocks/breadcrumbs.php`. They have no tests.

This ticket adds tests for the functions of the file, in several small pull requests:

* the helpers: `block_core_breadcrumbs_is_paged()`, `block_core_breadcrumbs_create_page_number_item()`, `block_core_breadcrumbs_create_item()`, `block_core_breadcrumbs_get_post_title()`, `block_core_breadcrumbs_get_hierarchical_post_type_breadcrumbs()` and `block_core_breadcrumbs_get_term_ancestors_items()`;
* the breadcrumbs of the archives: `block_core_breadcrumbs_get_archive_breadcrumbs()`;
* the breadcrumbs of the terms of a post: `block_core_breadcrumbs_get_terms_breadcrumbs()`;
* the block: `render_block_core_breadcrumbs()`."	hmbashar
	66599	Tests: Add unit tests for the server-side rendering of the Button block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T07:50:52Z	2026-11-07T08:00:05Z	"The Button block (`core/button`) is rendered on the server by `render_block_core_button()` in `src/wp-includes/blocks/button.php`. The function has no tests.

This ticket adds tests that cover:

* an empty button (or content without a link or button) being handled: nothing is rendered for an empty button, and the content is returned as it is without a link or button;
* the background: the image, size, position, repeat, attachment and gradient being added to the link, merged with its style, with the defaults for the size and the position;
* the width: a percentage (with the legacy classes), a fixed value and a preset, as the classes and the style of the wrapper."	hmbashar
	66598	Tests: Add unit tests for the server-side rendering of the Calendar block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T07:04:15Z	2026-11-07T07:13:22Z	"The Calendar block (`core/calendar`) is rendered on the server by the functions in `src/wp-includes/blocks/calendar.php`. They have no tests.

This ticket adds tests for the functions of the file, in separate pull requests:

* `render_block_core_calendar()`: nothing for a site without published posts (and the notice for a logged in user), the colors, the link color, the month and the year of the attributes with the permalink structure, and the restoring of the globals;
* `block_core_calendar_has_published_posts()` and the functions that keep its flag up to date on single sites: `block_core_calendar_update_has_published_posts()`, `block_core_calendar_update_has_published_post_on_delete()` and `block_core_calendar_update_has_published_post_on_transition_post_status()`."	hmbashar
	66594	Tests: Add unit tests for the server-side rendering of the Categories List block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T06:39:26Z	2026-11-07T06:45:54Z	"The Categories List block (`core/categories`) is rendered on the server by `render_block_core_categories()` and `build_dropdown_script_block_core_categories()` in `src/wp-includes/blocks/categories.php`. Only the block fixtures cover its basic markup.

This ticket adds tests that cover:

* nothing being rendered for a taxonomy that does not exist;
* the list: the taxonomy class, the post counts, the hierarchy, empty terms, only the top level terms, the message without terms, and the client-side navigation of the links with the enhanced pagination;
* the dropdown: the label (its text, its visibility and its escaping), the option to select, the selected term from the query variable, the unique ID, and the script that is added;
* the script of the dropdown: the ID and the home URL it gets, and the escaping."	hmbashar
	66601	Tests: Add unit tests for the server-side rendering of the Comments block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T08:20:04Z	2026-11-07T08:28:27Z	"The Comments block (`core/comments`) is rendered on the server by the functions in `src/wp-includes/blocks/comments.php`. They have no tests.

This ticket adds tests that cover:

* `render_block_core_comments()`: nothing without the post ID in the context, or for a post with closed comments and no comments; the static version of the block; and the legacy version with the comments template, its wrapper classes (also for the `core/post-comments` block), the restoring of the global post, and the script of the reply link;
* `comments_block_form_defaults()`: the button and the field of the comment form, for block themes and for other themes;
* `register_legacy_post_comments_block()`: the `core/post-comments` block type that is registered again with the render callback."	hmbashar
	66574	Tests: Add unit tests for the server-side rendering of the Details block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T19:22:18Z	2026-11-06T19:23:51Z	"`block_core_details_set_img_fetchpriority_low()` and `register_block_core_details()` in `src/wp-includes/blocks/details.php` have no unit tests.

This ticket adds tests for the low fetch priority of the images in a closed block (including replacing an existing priority and several images), the content of an open block or of a block without images that is not changed, the content that is not a string, the filter of the rendered block and the registration of the block."	hmbashar
	66597	Tests: Add unit tests for the server-side rendering of the File block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T07:00:05Z	2026-11-07T07:03:35Z	"The File block (`core/file`) is rendered on the server by `render_block_core_file()` in `src/wp-includes/blocks/file.php`, which sets up the PDF preview. The function has no tests.

This ticket adds tests that cover:

* the content being returned as it is when the preview is not displayed;
* the preview: the script module being enqueued, the Interactivity API directive on the first element, and the hidden object bound to the state of the PDF preview;
* the label of the object: the file name, the default label, and a label that is the default one or empty;
* the content that has no object (modified by something else) being returned without the object changes."	hmbashar
	66586	Tests: Add unit tests for the server-side rendering of the Icon block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T03:11:55Z	2026-11-07T03:17:26Z	"The Icon block (`core/icon`) is rendered on the server by `render_block_core_icon()` in `src/wp-includes/blocks/icon.php`. The function has no tests.

This ticket adds tests that cover:

* no output without an icon, with an icon that is not a string, with an icon that is not registered, and with an icon of a collection that is not public;
* the icon in the wrapper, the accessible label, and the text, background and border colors (preset and custom, and the preset winning);
* the border (also of one side), the shadow, the padding and the dimensions;
* the background image (the default size and the position of a contained image) and a gradient;
* keeping the style of the icon and adding the styles of the block after it;
* the flips, the rotation, and the wrapper attributes of the block supports.

The tests register their own icon collections and icons and remove them afterwards."	hmbashar
	66595	Tests: Add unit tests for the server-side rendering of the Latest Comments block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T06:46:47Z	2026-11-07T06:53:48Z	"The Latest Comments block (`core/latest-comments`) is rendered on the server by `render_block_core_latest_comments()` and `wp_latest_comments_draft_or_post_title()` in `src/wp-includes/blocks/latest-comments.php`. Only the case of a password protected post is tested (in `tests/phpunit/tests/blocks/render.php`).

This ticket adds tests that cover:

* the list of the comments: the number of comments, the order, only approved comments of published posts, and the `widget_comments_args` filter;
* the avatar, the author (linked to the website or to the author archive), the link to the comment and the title of the post, and the date;
* the content: none, the excerpt and the full comment, and the old `displayExcerpt` attribute;
* the classes of the wrapper, and the message when there are no comments;
* the title of a post, with the fallback for a post without a title."	hmbashar
	66600	Tests: Add unit tests for the server-side rendering of the Latest Posts block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T08:00:47Z	2026-11-07T08:19:00Z	"The Latest Posts block (`core/latest-posts`) is rendered on the server by the functions in `src/wp-includes/blocks/latest-posts.php`. They have no tests.

This ticket adds tests for the functions of the file, in separate pull requests:

* the small functions: `block_core_latest_posts_get_excerpt_length()` and `block_core_latest_posts_migrate_categories()` (the `render_block_data` filter);
* `render_block_core_latest_posts()`: the query, the title, the featured image, the author, the date, the excerpt and the full content, the layout classes, and the restoring of the global post."	hmbashar
	66577	Tests: Add unit tests for the server-side rendering of the Login/out block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T19:23:05Z	2026-11-06T19:24:20Z	"`render_block_core_loginout()` and `register_block_core_loginout()` in `src/wp-includes/blocks/loginout.php` have no unit tests.

This ticket adds tests for the login and logout links, the redirect to the current page (with and without HTTPS), the login form for a visitor, the form that is not shown for a user, the classes of the button of the form for a block theme and for a classic theme, and the registration of the block."	hmbashar
	66592	Tests: Add unit tests for the server-side rendering of the Media & Text block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T06:22:48Z	2026-11-07T06:29:34Z	"The Media & Text block (`core/media-text`) can use the featured image of the post. This is done on the server by `render_block_core_media_text()` in `src/wp-includes/blocks/media-text.php`. The function has no tests.

This ticket adds tests that cover:

* the content being returned as it is when the featured image is not used, or the post has no featured image;
* the featured image being added to the figure, with the class, the size slug and the alt text, for the media on the left and on the right (the last figure is used);
* the image fill: the classes of the block, and the focal point as the position of the object, with its default and the checks of the values."	hmbashar
	66578	Tests: Add unit tests for the server-side rendering of the Navigation Overlay Close block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T19:23:20Z	2026-11-06T19:24:29Z	"`render_block_core_navigation_overlay_close()` and `register_block_core_navigation_overlay_close()` in `src/wp-includes/blocks/navigation-overlay-close.php` have no unit tests.

This ticket adds tests for the button of each display mode (icon, text and both), the default text, the text of the attributes that is filtered for posts, the label of a button without text, the icon that is hidden from assistive technologies, and the registration of the block."	hmbashar
	66589	Tests: Add unit tests for the server-side rendering of the Navigation Submenu block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T05:10:09Z	2026-11-07T05:22:26Z	"The Navigation Submenu block (`core/navigation-submenu`) is rendered on the server by the functions in `src/wp-includes/blocks/navigation-submenu.php`. They have no tests.

This ticket adds tests for the functions of the file, in separate pull requests:

* `block_core_navigation_submenu_get_submenu_visibility()` and the deprecated `block_core_navigation_submenu_render_submenu_icon()`;
* `render_block_core_navigation_submenu()`."	hmbashar
	66588	Tests: Add unit tests for the server-side rendering of the Page List block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T03:27:24Z	2026-11-07T05:09:36Z	"The Page List block (`core/page-list`) is rendered on the server by the functions in `src/wp-includes/blocks/page-list.php`. They have no tests.

This ticket adds tests for the functions of the file, in several small pull requests:

* the helpers: `block_core_page_list_get_submenu_visibility()`, `block_core_page_list_build_css_colors()` and `block_core_page_list_nest_pages()`;
* the markup of the list: `block_core_page_list_render_nested_page_list()`;
* the block: `render_block_core_page_list()`."	hmbashar
	66579	Tests: Add unit tests for the server-side rendering of the Pattern block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T19:37:18Z	2026-11-06T19:38:03Z	"`render_block_core_pattern()` and `register_block_core_pattern()` in `src/wp-includes/blocks/pattern.php` have no unit tests.

This ticket adds tests for the blocks of a registered pattern (also through the rendering of the block and for a pattern inside a pattern), the slugs that are not valid or not registered, a pattern that includes itself, rendering the same pattern again, and the registration of the block."	hmbashar
	66580	Tests: Add unit tests for the server-side rendering of the Playlist Track block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T19:37:37Z	2026-11-06T19:38:14Z	"`render_block_core_playlist_track()` and `register_block_core_playlist_track()` in `src/wp-includes/blocks/playlist-track.php` have no unit tests.

This ticket adds tests for a track without a source, the markup of a track and its Interactivity API directives, the parts that are left out without data, the default title, the escaping of the text and of the attributes, the images with the setting of the context, an image that is not a string, and the registration of the block."	hmbashar
	66587	Tests: Add unit tests for the server-side rendering of the Playlist block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T03:20:28Z	2026-11-07T03:26:33Z	"The Playlist block (`core/playlist`) is rendered on the server by `render_block_core_playlist()` in `src/wp-includes/blocks/playlist.php`. The function has no tests. The Playlist Track block has its own ticket.

This ticket adds tests that cover:

* no output without playable tracks (no tracks, tracks without a source, blocks that are not tracks);
* the interactivity context of the figure (the playlist ID, the current track, the track IDs, the waveform style, the artwork of the play button and the labels);
* the waveform player after the opening tag of the figure, its labels, and the colors and gradients of the waveform, escaped in the markup;
* the IDs of the tracks in the buttons, and a track without a source not taking an ID;
* the tracks in the Interactivity API state: the defaults, the label of a track, tags stripped and URLs cleaned, and each playlist keeping its own tracks;
* the script module being enqueued, and content without a figure being returned as it is.

The tests restore the state of the Interactivity API and the queue of script modules."	hmbashar
	66569	Tests: Add unit tests for the server-side rendering of the Query No Results block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T18:19:29Z	2026-11-06T18:21:09Z	"`render_block_core_query_no_results()` in `src/wp-includes/blocks/query-no-results.php` has no unit tests, and none of its lines are covered on Codecov.

This ticket adds tests for it: the content is rendered only when the query has no posts, nothing is rendered without content, the class for the color of the links, the page of a query that has an ID, the query of the page when the block inherits it, and the registration of the block."	hmbashar
	66571	Tests: Add unit tests for the server-side rendering of the Query Pagination Next block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T18:42:07Z	2026-11-06T18:43:24Z	"`render_block_core_query_pagination_next()` in `src/wp-includes/blocks/query-pagination-next.php` has no unit tests.

This ticket adds tests for the link to the next page (the page key with and without a query ID, the limit of the pages of the query, the label and its escaping, the label hidden for screen readers, the arrows, the attributes of the enhanced pagination, a query that inherits the query of the page) and for the registration of the block."	hmbashar
	66573	Tests: Add unit tests for the server-side rendering of the Query Pagination Numbers block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T18:42:36Z	2026-11-06T18:43:45Z	"`render_block_core_query_pagination_numbers()` in `src/wp-includes/blocks/query-pagination-numbers.php` has no unit tests.

This ticket adds tests for the page numbers (the first page and the other pages, the page key with and without a query ID, the page of the request that is kept in the links, no output for one page or none, the limit of the pages of the query, the number of links around the current page, the attributes of the enhanced pagination, a query that inherits the query of the page, the main query that is restored) and for the registration of the block."	hmbashar
	66572	Tests: Add unit tests for the server-side rendering of the Query Pagination Previous block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T18:42:23Z	2026-11-06T18:43:33Z	"`render_block_core_query_pagination_previous()` in `src/wp-includes/blocks/query-pagination-previous.php` has no unit tests.

This ticket adds tests for the link to the previous page (no link on the first page or past the last one, the page key with and without a query ID, the limit of the pages of the query, the label and its escaping, the label hidden for screen readers, the arrows before the label, the attributes of the enhanced pagination, a query that inherits the query of the page) and for the registration of the block."	hmbashar
	66570	Tests: Add unit tests for the server-side rendering of the Query Pagination block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T18:19:44Z	2026-11-06T18:21:25Z	"`render_block_core_query_pagination()` in `src/wp-includes/blocks/query-pagination.php` has no unit tests, and none of its lines are covered on Codecov.

This ticket adds tests for it: the content is wrapped in a navigation with a label, nothing is rendered without content, the class for the color of the links, and the registration of the block."	hmbashar
	66567	Tests: Add unit tests for the server-side rendering of the Query Title block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T18:18:56Z	2026-11-06T18:20:36Z	"`render_block_core_query_title()` in `src/wp-includes/blocks/query-title.php` has no unit tests, and none of its lines are covered on Codecov.

This ticket adds tests for it: nothing is rendered without a type or when the page is not of the type, the title of an archive (with and without the prefix), of a search (with and without the search term) and of a post type, the level of the heading, the alignment of the text, and the registration of the block."	hmbashar
	66568	Tests: Add unit tests for the server-side rendering of the Query Total block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T18:19:13Z	2026-11-06T18:20:54Z	"`render_block_core_query_total()` in `src/wp-includes/blocks/query-total.php` has no unit tests, and none of its lines are covered on Codecov.

This ticket adds tests for it: the total of the results (none, one and several), the range of the results on each page, the page of a query that has an ID, the query of the page when the block inherits it, a display type that is not known, and the registration of the block."	hmbashar
	66519	Tests: Add unit tests for the server-side rendering of the Read More block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T06:45:05Z	2026-11-06T06:45:34Z	"The `render_block_core_read_more()` function in `src/wp-includes/blocks/read-more.php` is not referenced by any test.

This ticket adds tests for the missing post, the text of the link and its filtering, the text for the screen readers (also for a post without a title), the link target, the justification class and the escaping of the URL."	hmbashar
	66518	Tests: Add unit tests for the server-side rendering of the Site Tagline block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T06:42:11Z	2026-11-06T06:42:33Z	"The `render_block_core_site_tagline()` function in `src/wp-includes/blocks/site-tagline.php` is not referenced by any test.

This ticket adds tests for the empty tagline, the tag of the level, and the class of the text alignment."	hmbashar
	66517	Tests: Add unit tests for the server-side rendering of the Site Title block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T06:40:04Z	2026-11-06T06:40:32Z	"The `render_block_core_site_title()` function in `src/wp-includes/blocks/site-title.php` is not referenced by any test.

This ticket adds tests for the empty title, the heading level, the classes of the attributes, the escaping, the link to the home page with its target, and the current page marker."	hmbashar
	66528	Tests: Add unit tests for the server-side rendering of the Tab List block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T07:23:08Z	2026-11-06T07:23:34Z	"The `block_core_tab_list_render_callback()` and `register_block_core_tab_list()` functions in `src/wp-includes/blocks/tab-list.php` are not referenced by any test.

This ticket adds tests for the label of the list, the attributes and the Interactivity API directives that are added to each button, the buttons that have no tab, and the registration of the block."	hmbashar
	66527	Tests: Add unit tests for the server-side rendering of the Tab Panel block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T07:18:13Z	2026-11-06T07:18:34Z	"The `block_core_tab_panel_render()` and `register_block_core_tab_panel()` functions in `src/wp-includes/blocks/tab-panel.php` are not referenced by any test.

This ticket adds tests for the ID of each panel, the label that points to its tab, the Interactivity API directives, and the registration of the block."	hmbashar
	66515	Tests: Add unit tests for the server-side rendering of the Video block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T05:28:39Z	2026-11-06T05:29:07Z	"The `render_block_core_video()` function in `src/wp-includes/blocks/video.php` is not referenced by any test.

This ticket adds tests for the dimensions and the aspect ratio that are added from the attachment metadata (and the cases where they are not added), and for the interactivity directives and the script module that are added to a video that autoplays."	hmbashar
	66533	Tests: Add unit tests for the variations of the Template Part block		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T08:01:52Z	2026-11-06T08:02:18Z	"The `build_template_part_block_area_variations()`, `build_template_part_block_instance_variations()`, `build_template_part_block_variations()` and `register_block_core_template_part()` functions in `src/wp-includes/blocks/template-part.php` are not referenced by any test.

This ticket adds tests for the variations of the areas and of the template parts (their name, title, scope and icon), the cases where there are no instances (while installing or when the theme does not support the templates), the order of the variations, and the registration of the block."	hmbashar
	66469	Theme JSON: Allow a theme to name the template its templates are rendered inside		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-04T14:27:00Z	2026-11-04T14:29:29Z	"WP_Theme_JSON::VALID_TOP_LEVEL_KEYS does not include a templates key, so a templates section in a theme’s theme.json is discarded by sanitize().

We need to add the key and a get_templates() function, so a theme can name the template each of its templates is rendered inside — letting a header and footer live in one template rather than being repeated in every one.

The feature that consumes it is in the Gutenberg plugin behind an experiment (WordPress/gutenberg#85402); this ticket covers only the theme.json spec addition that has to exist in core for the declaration to survive.

Gutenberg PR: https://github.com/WordPress/gutenberg/pull/86307

"	scruffian
	54305	Transition of block editor width when previewing desktop/tablet/mobile causes multiple resize events (and unnecessary lag)		Editor		normal	normal	Awaiting Review	enhancement	new		2021-10-21T22:08:34Z	2021-11-01T13:54:06Z	"When editing a page, if we click ""preview"", and then click one of the viewport icons at the top (desktop, tablet, mobile), it resizes the editor. This is great.

What is not so great is that it animates (seemingly via javascript) the change in width, which causes all the blocks to re-render several times, making the process slow and clunky (I am using ACF Blocks). Honestly, it makes me avoid using the viewport switcher except when I really need it. I believe if the transition was removed, it would only have to fire a single resize event. I don’t see any reason why, technically speaking, the animation should be necessary.

"	askpivot
	66198	Typography: Add font-stretch and font-variation-settings support to Theme JSON styles		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-09-27T16:04:28Z	2026-10-21T09:27:19Z	"Related: Gutenberg [https://github.com/WordPress/gutenberg/issues/83148 83148] is the design discussion, and [https://github.com/WordPress/gutenberg/pull/83159 83159] is the editor prototype. This ticket is not a proposal to move that discussion here: it covers only the Core-side contract two typography style properties need, so that the editor work has somewhere to land. Which controls appear, and what a font's faces say they can do, stay in Gutenberg.

== What this adds ==

Two style properties, each stored under `styles.typography` and written by the style engine:

|| Stored as || Written as ||
|| `fontStretch` || `font-stretch` ||
|| `fontVariationSettings` || `font-variation-settings` ||

With them:

* `settings.typography.fontStretch`, alongside the existing `fontStyle` and `fontWeight`, and on by default in `wp-includes/theme.json`.
* `settings.typography.fontVariations`, a boolean saying whether a site offers editing of a font's custom axes at all.
* `axes` on a font face, so a face can say which OpenType axes it has and over what range.
* `font-variation-settings` in the list `safecss_filter_attr()` allows. `font-stretch` is already there.
* `fontStretch` and `fontVariationSettings` as typography block supports.
* Tests for the block support, the style engine and `WP_Theme_JSON`.

== Why a width needs a property of its own ==

`font-stretch` is the only axis of the four that map to a CSS property which a browser will not stand in for: there is no `font-synthesis-width` to go with `font-synthesis-weight` and `font-synthesis-style`. A variable font that declares a width range has nothing in Core today that can carry a chosen width, so the value has to be written by hand.

The name is the older one deliberately. CSS Fonts 4 renames the property `font-width` and keeps `font-stretch` as its legacy alias; no browser implements `font-width` yet, and the alias drives the `wdth` axis identically.

== Why the variation settings value is an object ==

`font-variation-settings` replaces the whole list rather than merging, so a string value cannot be inherited through the theme.json origins the way other styles are: setting one axis on a block would mean repeating every axis the root set. Keyed by tag, origins merge per axis, and the style engine assembles the string once at the boundary.

The four axes that have a property of their own — `wght`, `wdth`, `slnt`, `ital` — are refused there. The property is applied after the properties that map to the same axis, so a coordinate written here takes the axis away from the control that owns it: `font-weight: 700` with `""wght"" 400` renders at 400, and a `<strong>` inside an element carrying `""wght"" 300` does not get bolder. `opsz` is allowed, because `font-optical-sizing` can only switch the browser's own tracking on or off and has no way to carry a chosen size.

A tag must be four letters or digits, which is what OpenType allows and also keeps quotation marks out of the serialized value, and a value must be a number rather than a numeric string. Those rules live in one place, `WP_Style_Engine`, and `WP_Theme_JSON` reads them through it when it sanitizes rather than repeating them.

== What is not here ==

* The editor controls, and the reading of a family's faces that decides what they offer. That is Gutenberg's, and #83148 has the model.
* Which blocks opt in. The supports exist; no block in this patch turns them on.
* Reading `axes` from a font file's `fvar` table on upload. The contract is here so that a theme can declare it; the Font Library reading it is separate work."	kimjiwoon
	57016	When searching for a block, there is an unexpected blank space at the bottom of the Editor		Editor	6.1	normal	normal	Awaiting Review	enhancement	new		2022-11-07T10:21:46Z	2022-11-07T22:07:52Z	"With WordPress version 6.1, I observed an unexpected blank space on the editor when searching for any block.

Steps to reproduce:
- Open Gutenberg editor
- Search for a block but do not add/select it.
- Now, scroll down on the page, and see a huge white blank space at the bottom.

Screencast- https://d.pr/v/1Vl7I8"	thebengalboy
	58278	[Query Loop][Post Template][Custom dynamic block] Impossible to pass query loop context to a custom dynamic block as the post template context is hard coded.		Editor	6.2	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2023-05-09T13:14:16Z	2023-05-09T13:14:16Z	"Hello.

**Context** : 

I'm writing a query loop variation, with post templates, then a custom dynamic block.

**Problem** : 

I was trying to get the query loop id inside the custom dynamic block and could not, even when specifying usesContext and providesContext block.json configuration for my dynamic bloc of the core/post-template one.

**Observations** : 

After some investigation, I found that the post template uses the `render_block_core_post_template` function as render callback inside the `post-template.php` file

Line 93 of this file, we can see that the function hard codes the context that is then passed to the block : 

{{{#!php
		$block_content = (
			new WP_Block(
				$block_instance,
				array(
					'postType' => get_post_type(),
					'postId'   => get_the_ID(),
				)
			)
		)->render( array( 'dynamic' => false ) );
}}}



There's no filter or mechanism allowing us to provide more context here which is quite blocking.

**Suggestion** : 

We could do something like this instead : 





{{{#!php
		// Render the inner blocks of the Post Template block with `dynamic` set to `false` to prevent calling
		// `render_callback` and ensure that no wrapper markup is included.
        $context = array(
            'postType' => get_post_type(),
            'postId'   => get_the_ID(),
        );
        
        //Check if additional context is provided by ancestor blocks
        if (!empty($block->block_type->provides_context)) {
            foreach ($block->block_type->provides_context as $context_name) {
                if (array_key_exists($context_name, $block->context)) {
                    $context[$context_name] = $block->context[$context_name];
                }
            }
        }

		$block_content = (
			new WP_Block(
				$block_instance,
				$context
			)
		)->render( array( 'dynamic' => false ) );
}}}




With this code, I was able to specify and get the queryId to my custom block.

**Steps to reproduce** : 

- Create a query loop variation
- In the variation, set the innerblocks setting to use a custom dynamic block.
- In your custom block block.json file, we're trying to use the queryId as the context.
- As it's not working, I've also specified that I wanted the core/post-template block to provide the queryId via providesContext.
- Realize the core/post-template block does not provide any context besides the hard coded one mentioned above.

**Expected output** : 

If we specify that the core/post-template block should specify a context, it should be taken into account alongside the default values that are `postType` and `postId`

Thank you for your work."	jdmweb
	44377	"add filter to post_submit_meta_box() to conditionally refrain from outputting the ""Visibility"" fields"		Editor		normal	normal	Awaiting Review	enhancement	new	close	2018-06-15T19:07:57Z	2025-09-04T14:31:38Z	"I have a CPT that, by it's very nature, always has visibility `public` (not private nor password protected).

Since I don't want users selecting anything other than `public`, currently, I enqueue some CSS that hides the ""Visibility"" related fields in the ""Publish"" metabox on `/wp-admin/post.php` and `/wp-admin/post-new.php`, but that just seems kludgy.

**Note:** in case a ""sneaky"" user finds my CSS, unhides the fields and sets the post to be private or password protected, 
I also hook into [[https://developer.wordpress.org/reference/hooks/wp_insert_post_data/|wp_insert_post_data]] to ""correct"" `post_status` and `post_password`.

It would be helpful if there were a filter in [[https://developer.wordpress.org/reference/functions/post_submit_meta_box/|post_submit_meta_box()]] to control whether the ""Visibility"" related fields are output.

Such a filter would be similar in spirit to the [[https://developer.wordpress.org/reference/hooks/view_mode_post_types/|view_mode_post_types]] filter in [[https://developer.wordpress.org/reference/classes/wp_screen/render_view_mode/|WP_Screen::render_view_mode()]] that controls whether the ""View Mode"" related fields are output in ""Screen Options"".  Prior to `view_mode_post_types` being introduced in 4.4, I used to hide those fields via CSS when appropriate.
"	pbiron
	44103	change the type attribute of #menu_order from 'text' to 'number'		Editor	4.9.5	normal	normal	Future Release	enhancement	reopened	has-patch	2018-05-16T01:36:09Z	2025-02-12T21:59:26Z	"Currently, when focus shifts to the input box of menu_order in the situation that the IME is turned on, an extra operation such as inputting a numerical value after turning off the IME is necessary.
I would like to improve on this.

Now:
{{{
<input name=""menu_order"" type=""text"" size=""4"" id=""menu_order"" value=""<?php echo esc_attr( $post->menu_order ); ?>"" />
}}}

Change:
{{{
<input name=""menu_order"" type=""number"" id=""menu_order"" value=""<?php echo esc_attr( $post->menu_order ); ?>"" />
}}}

Also, please add a style to specify the width."	tmatsuur
	40608	show view link and permalink when editing a post even if post type does not supports 'title'		Editor		normal	normal	Awaiting Review	enhancement	new	changes-requested	2017-04-29T23:29:30Z	2025-09-18T13:45:53Z	"Hi !
When a post type does not supports the 'title' feature,
The 'view post' and permalink are not displayed; which is not a logical behaviour : we still want to view those links even if the post does not have a title.

With this patch, if this post type does not supports the 'title' feature; 
Only the input and label are hidden; not the entire block."	grosbouff
	65841	theme.json settings.viewport: warn when a breakpoint is dropped		Editor	7.1	normal	normal	Awaiting Review	enhancement	new	has-patch	2026-08-09T18:34:15Z	2026-08-11T21:49:57Z	"Follow-up to #65833, requested by [https://profiles.wordpress.org/wildworks/ @wildworks] in [https://core.trac.wordpress.org/ticket/65833#comment:3 comment:3].

`WP_Theme_JSON::sanitize_viewport_settings()` drops `tablet` in two cases and says nothing either time:

* `tablet` is not larger than `mobile`. Existing behaviour, unchanged by #65833.
* `mobile` and `tablet` are measured against different bases, one `px` and the other `em` or `rem`, so their order cannot be determined. Added in #65833.

In both cases the theme gets a two state layout instead of the three states it configured, and nothing reports why.

A notice would match how the same class already reports invalid settings. `settings.spacing.spacingScale` does this in `compute_spacing_sizes()`:

{{{
wp_trigger_error(
	__METHOD__,
	sprintf(
		/* translators: 1: theme.json, 2: settings.spacing.spacingScale */
		__( 'Some of the %1$s %2$s values are invalid' ),
		'theme.json',
		'settings.spacing.spacingScale'
	),
	E_USER_NOTICE
);
}}}

The two cases are not equivalent and may deserve different wording, or possibly only the first deserves a notice at all. A `tablet` smaller than `mobile` is a plain configuration mistake that is visible in the theme.json itself. Mixed bases are not something an author can reason about from the file or from the generated CSS, because the font size the media query resolves against belongs to the browser rather than to the page.

Not suitable for 7.1, since a notice needs a translatable string and 7.1 is past hard string freeze. That is why the fix in #65833 is silent."	bejignesh
	66333	A request for a Story Editor or Plain Text Editor to make editing invisible text quicker than going to Code Viewer		Editor		normal	normal	Awaiting Review	feature request	new		2026-10-18T02:09:49Z	2026-10-18T02:55:23Z	"I added some custom skip links to bypass some repeated blocks on the website I made, in the process of adding the skip-link classes to a URL, it makes them invisible within the WordPress editor (as they should, since they should only be visible on focus). 
{{{
skip-link screen-reader-text
}}}
The only way to check the text content of that link currently is to use the Link options in the pop-up Editor or go to the Code Editor, which will not necessarily jump to where you are, but you can Ctrl+F those classes to get to where it is. However, not everyone wants to use the Code Editor (I imagine some non-developers might find it intimidating or unnecessarily cluttered). It made me think there could be another way to do this, particularly for invisible text that isn't a link.
What I'm wondering is if there could be a way to integrate into the WordPress Editor a ""Plain text preview"" mode, where the editor gives the option of previewing as plain text (CSS styles removed), which would also allow any invisible text to become visible again and let you modify the text content as plain text, which would then update in the Editor. 
In InDesign and Scribus there is something like this called a ""Story Editor"". Those are in a publishing context rather than a website editing context, but I think the idea could have some utility here.
I'm not sure if this would need to be integrated as an entirely new preview mode like ""Visual Mode"", ""Code Viewer"", ""Story Mode"" or ""Plain Text Mode"", or if it is better to be on a per-block basis, as a ""Plain text preview"" option on the mini block pop-up editor that appears when you select a block in the WordPress editor (sorry I don't know what this menu is called), or as a Text Content field in the Block Sidebar. If it's a large paragraph that would need editing, a pop up menu might have issues with staying open and editable, so maybe the sidebar or a totally new preview mode would be better.
Just wanted to raise this idea in case other people have thought the same thing. It might be more convenient for quick small edits of skip links or other kinds of styles. At a minimum, you should be able to preview the text in a separate plain text window (to avoid accessibility issues with style conflicts), and modify the text.
**Some resources:** 
[https://helpx.adobe.com/indesign/desktop/add-and-manage-text/add-and-manage-text-frames/open-and-use-story-editor.html Open and use Story Editor (Adobe InDesign)]
[https://wiki.scribus.net/canvas/Working_with_Story_Editor Working with Story Editor]
Note: I realize the first version of this post neglected to mention the Link editor which does have a Plain text type field, but what I'm referring to overall is the ability to view in the editor the text through a separate mode, which could also apply to other blocks like paragraph blocks."	travisjeans
	62256	A suggestion for binding blocks.		Editor		normal	normal	Awaiting Review	feature request	new		2024-10-18T17:03:48Z	2026-01-15T20:57:36Z	I want to suggest a improve for binding a block to a custom field. I’m testing bindings in WP 6.7 beta. Works well, but I’d like to have Prefix and Suffix options, like Categories block. For example, I would show a price custom field with a prefix called Price and € for suffix. At the moment I need to add 3 Paragraph blocks inside of a Row block, and that is not a good HTML semantic.	mancerareyes27
	61325	Ability to control editor preview breakpoints		Editor	6.5.3	normal	normal	Awaiting Review	feature request	new		2024-05-30T11:58:19Z	2025-10-08T08:27:11Z	"There should be a way how to control preview breakpoints in editor.

[[Image(https://img.kubiq.sk/wp-preview-breakpoints.png)]]

Ideally some UI in admin ofc, but also some hook would be enough.

We should be able to add / remove / change"	kubiq
	57849	About supporting markdown officially		Editor	6.2	normal	normal	Awaiting Review	feature request	new		2023-03-02T12:53:08Z	2023-03-02T12:53:08Z	Hello, as we know, markdown is now widely use in blogs, notes app(for example: evernote), or github issue and so on. Has wordpress ever consider supporting both markdown editing and block editing, is true that there are some markdown plugins, but its not good, I hope wordpress can support markdown editing officially. Thank you!	xiebruce
	59396	Allow the user to add a poster to YouTube videos		Editor	6.4	normal	normal	Awaiting Review	feature request	new		2023-09-19T16:07:10Z	2023-09-19T16:07:10Z	"YouTube embedded videos get YouTube's branding before they get fired, which is not really clean.
Instead, I'd like being able to set a poster."	schwipps
	54288	Argument for allowed blocks when registering a post type		Editor		normal	normal	Future Release	feature request	new	dev-feedback	2021-10-19T08:54:12Z	2021-10-19T23:15:41Z	"Add argument for allowed blocks when registering a post type:


{{{
function wporg_custom_post_type() {
    register_post_type('wporg_product',
        array(
            'labels'      => array(
                'name'          => __('Products', 'textdomain'),
                'singular_name' => __('Product', 'textdomain'),
            ),
            'public'      => true,
            'has_archive' => true,
            'allowed_blocks' => array(
                'core/image',
                'core/paragraph',
                'core/heading',
                'core/list',
                'core/embed',
                'core/missing',
                'core/button',
                'core/buttons',
            ),
        )
    );
}
add_action('init', 'wporg_custom_post_type');
}}}
"	smeedijzeronline
	62705	Block Bindings: Expose UI options for the source from the server		Editor	6.5	normal	normal	Future Release	feature request	new	has-patch	2024-12-17T21:20:42Z	2025-02-26T06:02:58Z	"''This ticket was mentioned in [https://github.com/WordPress/wordpress-develop/pull/7987 PR #7987] on [https://github.com/WordPress/wordpress-develop/ WordPress/wordpress-develop] by [https://profiles.wordpress.org/cbravobernal/ @cbravobernal].''
Trac ticket: https://core.trac.wordpress.org/ticket/62705

## What?
I'm experimenting if it is possible to add sources to the UI just by defining them on the server side. It will need a PR in Gutenberg to be landed.

This registration:

{{{
#!php
register_block_bindings_source(
			'bbe/now-date',
			array(
				'label'              => __( 'Current date', 'custom-bindings' ),
				'get_value_callback' => function ( array $source_args, $block_instance ) {
					return gmdate( $source_args['key'] );
				},
				'fields'             =>
					array(
						'Y-m-d H:i:s' => array(
							'type'  => 'string',
							'value' => 'Y-m-d H:i:s',
						),
						'D'           => array(
							'type'  => 'string',
							'value' => 'D',
						),
					),
			)
		);
}}}


will return:

[[Image(https://github.com/user-attachments/assets/0e08f37c-829a-46c9-880c-511453bc20d4)]]

We are using keys as the source arguments to decide the format. It's an approach I'm not 100% comfortable with. We may need to update the JS API.
[[Image(https://github.com/user-attachments/assets/71246745-a02f-432c-b6b0-69157bdccec4)]]


[[Image(https://github.com/user-attachments/assets/60f7934a-e772-457f-8be7-f9ca32fd1a1e)]]"	cbravobernal
	61599	Can synchronize with pages and templates ?		Editor	6.5.5	normal	normal	Awaiting Review	feature request	new		2024-07-09T08:43:33Z	2024-08-04T18:54:45Z	"Changes made to the ""Blog Home"" template in the Full Site Editing (FSE) interface are not synchronizing and reflecting on the front page admin side. Additionally, editing the front page via WP Admin shows a blank content.

https://drive.google.com/file/d/1hDlKOW2WaZ7B8IfRnpIWnhNOxvJD5xfk/view?usp=sharing
https://drive.google.com/file/d/13I7grQneKSpRRkkeGlSrJ89trvM5PEDw/view?usp=sharing
https://drive.google.com/file/d/1P0XjDQ6_StDg7zK-WOo7Ie0voWxz5ET2/view?"	nikitasolanki1812
	65356	Columns block conversion workflow from 2 to 3 or 4 columns is not intuitive		Editor	7.0	normal	normal	Awaiting Review	feature request	new		2026-05-27T09:27:31Z	2026-05-27T09:27:31Z	"Problem

When using the Columns block in Gutenberg, changing an existing 2-column layout into a 3-column layout is not very intuitive.

Currently, users may need to recreate the block or manually adjust the structure, especially when content already exists inside the columns.

Steps to Reproduce

1. Add a Columns block with 2 columns
2. Insert content into both columns
3. Attempt to convert the layout into 3 columns

Expected Behavior

Users should have a simpler and more discoverable way to increase or decrease the number of columns while preserving existing content.

Current Behavior

The workflow feels difficult to discover and may encourage users to recreate the block manually.

Environment

* WordPress 7.0 Beta/RC
* Gutenberg Editor
* Tested on localhost
"	swarna24
	56069	Footer Template Parts and Reusable Blocks Have Added Spacing By Default		Editor	6.0	normal	normal	Awaiting Review	feature request	new		2022-06-24T18:46:03Z	2022-08-10T21:14:34Z	"I noticed when working with WordPress 6.0 that both Footer Template Parts (I have not tested on Header Template Parts) and Reusable Blocks have spacing around the block by default. This creates unwanted aesthetics such as a thick white line between a block with a color background and the footer (when the footer also has a color background). 

In most cases when designing a website people will not want this spacing between the blocks. 

This problem is made worse by a misrepresentation of how the Template Part will look in the Site Editor - it appears there is NO space when viewing the same region in the Site Editor. However, when publishing and viewing the live changes on the site, the white line appears.

The workaround to alleviate the problem is to add custom CSS to set the ""margin-block-start"" to 0 for the block elements in question (.wp-site-blocks in the case of the footer template part). However, editing the custom CSS in WordPress 6.0 is a whole different problem in itself as one must get back to the deprecated Customizer through a series of hidden steps to access the ""Additional CSS"" field and customize the CSS. 

In short, the default setting should be that the ""margin-block-start"" is set to 0 for block elements to remove annoying/unwanted spacing between blocks from footer template parts or reusable blocks."	daviesmediadesign
	66115	PLEASE reword and revamp how “Inner blocks use content width” is used!		Editor	7.1	highest omg bbq	normal	Awaiting Review	feature request	new		2026-09-16T11:52:05Z	2026-09-16T11:52:05Z	"The last **EXTREMELY confusing** element that no one seems to understand is this option on Groups, etc:

**“Inner blocks use content width”**

**IT IS SINGULARLY THE MOST CONFUSING DESIGN ELEMENT IN WORDPRESS**. This needs to be changed and somehow reworked so that it makes sense to a 10 year old!"	nampara17
	55951	Page List and Latest Posts Text Colors Do Not Automatically Adjust to Background Color in 6.0		Editor	6.0	normal	major	Awaiting Review	feature request	new		2022-06-08T15:51:00Z	2022-06-24T18:48:45Z	"I am using the Twenty Twenty-Two theme in WordPress 6.0. I created a cover block with a black background, added a column block, then added the ""Page List"" block and ""Latest Posts"" block to the columns. The bullet points automatically changed to white, whereas all the links remained black - and thus could not be read/seen since they were the same color as the background. I am assuming this is because the ""links"" color in my ""Styles"" are black, but there is no option to adjust the link styling in the case where the background color is darker (i.e. a link color alternative). If I change the link color, it will affect all the links across my site - not just the links on a dark background. 

A much-needed feature is either the ability to edit link colors from the Block Settings Sidebar, or to have a link color alternative for darker backgrounds available to set in the ""Styles"" section. 

I'll add that I'm aware that such customizations can be made using CSS, but I think these features should be built-in to WordPress and should not require custom coding.

Thanks,

Mike - a humble WordPress user/teacher. "	daviesmediadesign
	65335	Show a warning message about a commented-out Gutenberg block in the Classic Editor.		Editor		normal	normal	Awaiting Review	feature request	new	has-patch	2026-05-25T06:23:33Z	2026-07-05T19:23:43Z	"**What problem does this address?**

When a post or page contains Gutenberg block markup inside HTML comments, the [https://wordpress.com/support/editors/classic-editor-guide/ Classic Editor] can create a misleading editing experience.
[[Image(""https://i.ibb.co/LDGJFFsq/597177196-80e9b120-2aca-45a8-9eb4-5594c2a575ea.png"")]]
In the Code/Text tab, the content technically exists because the Gutenberg block markup is present in the post content, for example:

{{{
<!-- wp:group {""backgroundColor"":""black"",""layout"":{""type"":""constrained""}} -->
<div class=""wp-block-group has-black-background-color has-background""><!-- wp:gigroute-events/events {""titleStyles"":{""textAlign"":""center"",""color"":"""",""fontSize"":""24px"",""fontFamily"":""Roboto, sans-serif"",""fontWeight"":""700"",""lineHeight"":"""",""spacing"":{""margin"":{""top"":""20px"",""right"":"""",""bottom"":""20px"",""left"":""""},""padding"":{""top"":""24px"",""right"":""24px"",""bottom"":""24px"",""left"":""24px""}}},""archiveUrl"":""/tourdates/"",""dateDisplayFormat"":""long_date"",""fullEventClick"":true,""className"":""bg_cover60 animation-show "",""style"":{""background"":{""backgroundImage"":{""url"":""http://brothersofmetal.loc/wp-content/uploads/2026/03/bom_fire-large.jpg"",""id"":300,""source"":""file"",""title"":""bom_fire-large""},""backgroundSize"":""contain"",""backgroundRepeat"":""no-repeat"",""backgroundPosition"":""50% 0%""},""spacing"":{""padding"":{""bottom"":""54px""}}}} /--></div>
<!-- /wp:group -->
}}}


However, because this block-related markup is stored inside HTML comments, it may not be visible in the Visual tab of the Classic Editor. As a result, the Visual editor can make the page appear empty or incomplete, even though the post content still contains Gutenberg block data.

This can confuse editors and create two main risks:

Editors may accidentally overwrite or delete existing block content because they assume the page is empty.
Editors may unknowingly keep unused or outdated block markup in the page content, even when it is no longer used visually. This can unnecessarily clutter the page content and may negatively affect content quality, maintenance, or SEO analysis.

The issue is specifically related to WordPress/Gutenberg block comments and serialized block markup, not ordinary HTML comments. A warning should only appear when WordPress block syntax is detected.

**What is your proposed solution?**

Add a warning or informational notice in the Classic Editor when the post content contains Gutenberg block markup that is present in the Code/Text tab but is not visibly rendered in the Visual tab.

For example, the Classic Editor could display a non-intrusive notice such as:

[[Image(""https://i.ibb.co/yB0fDvgT/597177157-6cd9ddea-a6c2-488e-8d7d-7f3f3b9dcad7.png"")]]

This content includes Gutenberg block markup that may be visible in the Code/Text tab but not in the Visual editor. The page may not be empty. Please review the content carefully before overwriting or deleting it.

The detection should focus specifically on WordPress block syntax, such as comments starting with:


{{{
<!-- wp:
}}}

and should not trigger for regular HTML comments.

This warning would help editors understand that the page may contain hidden block-related content even if the Visual tab appears empty. It would reduce the risk of accidentally removing valid content, while also helping editors identify and clean up unused block markup that is no longer needed.

A possible implementation could be a dismissible admin notice or an inline warning near the Classic Editor content area when block markup is detected in the post content."	blackstar1991
	58786	Support for adding custom, post-level meta descriptions in WP core.		Editor		normal	normal	Awaiting Review	feature request	new		2023-07-11T21:22:29Z	2023-10-30T13:25:23Z	"Hi, the WordPress page/post editor needs a field for a custom written meta description.

Meta descriptions are ubiquitous, been around forever, supported by all other (major) CMSs out there, an accessibility feature.

Users should not need to install third party software for something this basic.

Thanks."	xroox
	59201	Taxonomy Query Loop		Editor		normal	normal	Awaiting Review	feature request	new		2023-08-25T08:22:58Z	2023-08-25T14:29:42Z	"Hello,

In the page editor and FSE, we really need a way to query terms like the ""Query Loop"" block does.
Am I the only one who needs this?

A ""**Taxonomy Query Loop**"" block would list them by tree structure, displaying the title and description.
Either inherited from the query, or on a specific taxonomy and a specific parent term.

Thank you so much

Stephan"	StephanR
	61422	registerBlockVariation not holding the blockName param		Editor		normal	normal	Awaiting Review	feature request	new		2024-06-13T05:32:24Z	2024-08-01T12:13:15Z	After adding a variation of a core block like core/button or any other, It can't access the blockName of the newly created variation. I hope this is important to have.	heymehedi
	50544	Move Navigation screen's PHP code from Gutenberg to Core		Editor		normal	normal	Future Release	task (blessed)	new		2020-07-03T01:21:18Z	2020-07-03T01:23:27Z	"The Gutenberg plugin currently contains an experimental new Navigation screen. If and when this is merged to Core, there are a few bits of PHP code that must be moved from the Gutenberg repository into Core.

This ticket tracks those changes.

https://github.com/WordPress/gutenberg/issues/22931"	noisysocks
	57699	Autoembeds not rendered in front-end post content		Embeds		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-02-12T13:53:32Z	2023-02-12T14:07:49Z	"The regex which identifies whether post content contains a possible oEmbed URL fails silently in front-end post content in some circumstances. As far as I can tell, this happens when PHP is not compiled with PCRE JIT - e.g. on Apple Silicon using MAMP and/or MAMP Pro - and regardless of the `pcre.jit` value in `php.ini`.

When post content is rendered via `the_content()` in a template, what happens is that in [https://github.com/WordPress/wordpress-develop/blob/0cb8475c0d07d23893b1d73d755eda5f12024585/src/wp-includes/class-wp-embed.php#L444 the `preg_match` test for possible oEmbed URLs], the `\s` escape sequence does not match `\r\n` in the post content and thus embeds are not rendered via the autoembed callback.

The following string based on [https://github.com/WordPress/wordpress-develop/blob/0cb8475c0d07d23893b1d73d755eda5f12024585/tests/phpunit/tests/media.php#L303 the autoembed test strings] ''should'' produce a match:

{{{#!php
$foo = ""test\r\nhttps://w.org\r\ntest"";
echo preg_match( '#(^|\s|>)https?://#i', $content, $matches ) ? print_r( $matches, true ) : 'No matches.';
}}}

In my tests, this what happens:

=== Linux Intel

{{{
PCRE (Perl Compatible Regular Expressions) Support  enabled
PCRE Library Version  10.35 2020-05-09
PCRE Unicode Version  13.0.0
PCRE JIT Support  enabled
PCRE JIT Target  x86 64bit (little endian + unaligned)
pcre.jit  1  1
}}}

Success:

{{{
Array
(
    [matches] => Array
        (
            [0] => 
https://
            [1] => 

        )

)
}}}

=== Mac Intel

{{{
PCRE (Perl Compatible Regular Expressions) Support  enabled
PCRE Library Version  10.35 2020-05-09
PCRE Unicode Version  13.0.0
PCRE JIT Support  enabled
PCRE JIT Target  x86 64bit (little endian + unaligned)
pcre.jit  0  0
}}}

Success:

{{{
Array
(
    [matches] => Array
        (
            [0] => 
https://
            [1] => 

        )

)
}}}

=== Mac Apple Silicon running MAMP

{{{
--with-external-pcre=/Applications/MAMP/Library
PCRE (Perl Compatible Regular Expressions) Support  enabled
PCRE Library Version  10.36 2020-12-04
PCRE Unicode Version  13.0.0
PCRE JIT Support  not compiled in
}}}

Fail:

{{{
No matches.
}}}

Although it could be argued that this is an upstream problem with PHP, it seems that [https://github.com/php/php-src/commit/f8b217a3452e76113b833eec8a49bc2b6e8d1fdd the PHP fix] will only apply to versions of PHP greater than 8.1.11. This means many devs working on Apple Silicon machines are likely to encounter this issue. A simple fix in WordPress is to add the ""vertical whitespace"" `\R` escape sequence (which matches `\n`, `\r` and `\r\n`) to the regex:

{{{#!php
if ( preg_match( '#(^|\s|\R|>)https?://#i', $content ) ) {
  // Find URLs on their own line.
  $content = preg_replace_callback( '|^(\s*)(https?://[^\s<>""]+)(\s*)$|im', array( $this, 'autoembed_callback' ), $content );
  // Find URLs in their own paragraph.
  $content = preg_replace_callback( '|(<p(?: [^>]*)?>\s*)(https?://[^\s<>""]+)(\s*<\/p>)|i', array( $this, 'autoembed_callback' ), $content );
}
}}}

This does not appear to affect systems where PHP is compiled with PCRE JIT, whether or not `pcre.jit = 0` or `pcre.jit = 1`, though I appreciate that wider testing is needed.
"	needle
	46559	Could not embed some content		Embeds		normal	normal	Awaiting Review	defect (bug)	reopened		2019-03-18T18:41:06Z	2019-07-02T11:14:16Z	"When trying to embed `https://www.instagram.com/p/Br3FKiDAqCs/` to freshly installed WordPress it says: `Sorry, we could not embed that content`.

Embedding other Instagram posts usually work.

In wp_postmeta table, appropriate meta_key `_oembed_...` has meta_value `{{unknown}}`

Using utf8mb4_unicode_ci collation for both meta_key and meta_value fields.

Maybe this has something to do with emojis, like #36456.
"	Krstarica
	44705	Edit embed contents without saving post breaks previews		Embeds	4.9.7	normal	normal	Awaiting Review	defect (bug)	new		2018-08-02T14:50:19Z	2018-08-02T14:50:19Z	"It seems that when we insert embed content and edit it just after without saving the post, the embed preview isn't displayed.

**To Reproduce**

Steps to reproduce the behaviour:
1. Create a new post.
2. Click on ""Add Media"" button.
3. Choose ""Insert from URL"" interface.
4. Paste a valid YouTube URL: https://www.youtube.com/watch?v=KA_CLal14u4
5. See the YouTube `<iframe>` with a `600px` width.
6. Click on ""Insert into post"" button.
7. Edit the YouTube video.
8. See nothing.

**Expected behaviour**

The embed content should be displayed.

**Reason found**

None. The problem is present in all browsers.

The Google Chrome console logs `Cross-Origin Read Blocking (CORB) blocked cross-origin response https://www.youtube.com/watch?v=KA_CLal14u4 with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.`."	7studio
	45653	Embed a youtube video block in gutenberg editor shows black screen area does not display video		Embeds	5.0.1	normal	normal	Awaiting Review	defect (bug)	new		2018-12-15T01:19:05Z	2018-12-16T13:34:32Z	"Wordpress version 5.0.1. Dreamhost Linux/apache host. When i add a post to wordpress using the embed youtube block, it requests for a link and I have tried using both the share youtube link as well as the browser link and the video appears to play in the editor. however, once you preview draft or publish and view the post, the video is just black and you cannot click on it.

I tried to used the youtube embed iframe and was successful if I put it in a custom html block. The video displays fine. It must the way the code embeds and not the system because the embed iframe really uses the same link src but the parameters are different than when you use the embed block."	merylh
	56440	Embed blocks in widget areas caching in many posts		Embeds	6.0.1	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-08-25T16:01:32Z	2022-09-06T17:04:13Z	"When I am using blocks for my widget areas I can include an oEmbed easily enough. For example, I might include a video in a sidebar or footer widget area using the embed Gutenberg block. This is great!

Then I notice that ''every single post'' that a user visits which displays that widget area as part of its templates will get duplicated post_meta entries caching the embed. This quickly pollutes the post_meta table with hundreds of duplicate entries for the same embed on different posts.

These ""_oembed_xxx"" and ""_oembed_time_xxx"" entries all have the same identifier for the ""xxx"" since they all come from the same embed in the widget area. Shouldn't these entries be associated with the widget area instead of the post?

In fact, why are these oembed cache values stored in post_meta at all? Isn't this the kind of thing that deserves more universal storage in case the same embed is used on more than one page in any circumstance?

"	eceleste
	66643	Embeds: Vimeo videos ignore the start time (#t=) in the URL		Embeds		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-11-10T13:37:11Z	2026-11-10T13:44:05Z	"== Problem ==

Vimeo links can start playback at a given time with a URL fragment, for example `https://vimeo.com/81400335#t=1m2s` (Vimeo's help article on timecode links is cited in the original report below).

When such a link is embedded (Embed/Vimeo block, classic editor, or a bare URL in post content), the video always starts at 0:00.

Steps to reproduce:

1. Add an Embed block (or a bare URL on its own line) with `https://vimeo.com/81400335#t=1m2s`.
2. View the post and play the video.
3. Playback starts at 0:00 instead of 1:02.

Originally reported in Gutenberg: https://github.com/WordPress/gutenberg/issues/25319 (open since 2020, still reproducible).

== Cause ==

The block only stores the URL; the embed HTML comes from `WP_oEmbed::fetch()`, which sends the full URL (fragment included) as the `url` argument to `https://vimeo.com/api/oembed.json`.

Vimeo's oEmbed endpoint ignores any timecode in the `url` argument. It only honours a separate, documented `start_time` argument (in seconds):https://developer.vimeo.com/api/oembed/videos

For comparison, YouTube timecodes already work: YouTube's oEmbed reads `t` from `watch?v=…&t=62` and returns `?start=62`.


== Proposed fix ==

Add a default `oembed_fetch_url` callback, `wp_oembed_add_vimeo_start_time()`, that:

 * only runs for the core Vimeo provider (`https://vimeo.com/api/oembed.{format}`);
 * reads `t` from the embedded URL's fragment (`62`, `62s`, `1m2s`, `1h2m3s`);
 * converts it to seconds (needed, since Vimeo misparses `1m2s`) and adds `start_time`;
"	karthikeya01
	50172	Flickr embed not embedding content		Embeds	5.4.1	normal	normal	Awaiting Review	defect (bug)	new		2020-05-14T15:56:03Z	2020-05-15T12:44:58Z	"Flickr albums or collections from a ""sharing url"" do not embed.

**Steps to reproduce**
1. Visit a Flickr album
2. Use the sharing features on Flickr to provide their ''tiny-url'' such as https://flic.kr/s/aHsmLCQa2e
3. try embedding this url into a Flickr block.

**Possible fix**
Update block to recognize alternate flickr domain. 
https://flic.kr/s/aHsmLCQa2e

Watch this brief video for a workflow example in Twenty Twenty.
[https://www.linuxbookpro.com/flickr-wordpress-block-not-working/]

**Special Notes**
Full URLs work but users may not be aware to test both
https://www.flickr.com/photos/nasa2explore/albums/72157713265937611

Problem exists using Gutenberg Beta plugin a well."	joseph.dickson
	54694	Gist embed doesn't work for file with space in name		Embeds		normal	normal	Awaiting Review	defect (bug)	new		2021-12-26T02:26:10Z	2021-12-26T09:07:43Z	"1. Create a public Gist in Github with multiple files in it.
2. Make sure that the name you specify for one of the files has a space in it (the specific file name I had problems with was ""tasker datadescr.txt""0.
3. Save the gist, then click on the file name with the space in it and copy the reuslting URL form your URL bar.
4. Compose a new post in WordPress and past that URL into it.

At this point WordPress says it can't embed the URL.

When I ran into this, I was able to embed the URL after replacing the space in the file name with a hyphen and saving the modified Gist."	jikamens
	63813	How to Handle Embed Block Errors for YouTube URLs in WordPress?		Embeds		normal	normal	Awaiting Review	defect (bug)	assigned	reporter-feedback	2025-08-11T16:35:22Z	2025-08-21T11:39:37Z	"Hello WordPress community,

I manage a site called yt1z.net that works as a YouTube Video Downloader. Recently, when I try to use the YouTube embed block in WordPress, some video URLs are not displaying properly — instead, they show as plain links or fail to load altogether.

Is there a known fix for this issue in the latest WordPress versions? Could it be related to changes in YouTube’s embedding rules, or is there a recommended plugin or method to make YouTube embeds work reliably?

Thanks for your guidance."	arnabbe
	54924	Issues embedding Vimeo URLs with signatures		Embeds	5.9	normal	normal	Future Release	defect (bug)	new	has-patch	2022-01-26T13:59:31Z	2026-05-12T10:04:51Z	"Hi,
The [video] shortcode is not working with the new vimeo url format (containing signature as paramter).
Example : [video data-width=""500"" data-height=""281""  controls="""" src=""https://player.vimeo.com/progressive_redirect/playback/667848247/rendition/1080p/1080p.mp4?loc=external&amp;signature=f059d7229d1c838389dc3cc145b2072e2b8c18439b26aeaba0c55658a2837d7e"" eq-attached=""true""]L’option pour l’IS des entrepreneurs individuels[/video]

WP remove all the parameters, so the video code integration is not the good one."	elpix
	54058	Kickstarter videos do not play in Google Chrome		Embeds		normal	normal	Awaiting Review	defect (bug)	new		2021-09-02T07:14:23Z	2021-09-07T15:58:35Z	"Tested my page in Firefox without any issues. Video plays:
https://gutt.it/pikvm-jetzt-bei-kickstarter/

But with the recent Google Chrome it doesn't (tested Inkognito Tab as well). This is also valid for the official announcement page of this feature:
https://wordpress.com/support/videos/kickstarter/

Clicking on the playing button does nothing.

Javascript error logs:

{{{
jquery-migrate.min.js?ver=3.3.2:2 JQMIGRATE: Migrate is installed, version 3.3.2
vendor.6d98fce841e9b7784b1d951f4a130ad08f8a6fd5d65516db8123b7eaf6668f09.js:196 [Honeybadger] Ignoring cross-domain script error: enable CORS to track these types of errors Arguments(5) [""Script error."", """", 0, 0, null, callee: (...), Symbol(Symbol.iterator): ƒ]0: ""Script error.""1: """"2: 03: 04: nullcallee: (...)length: 5Symbol(Symbol.iterator): ƒ values()get callee: ƒ ()set callee: ƒ ()[[Prototype]]: Object
core.1c5a74cb6e9c29bd8586e3f8e7e39dd331ae42843950f9939c831206b31b7a20.js:26 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
    at https://a.kickstarter.com/assets/modules/core.1c5a74cb6e9c29bd8586e3f8e7e39dd331ae42843950f9939c831206b31b7a20.js:26:26036
    at Object.ZCIj (https://a.kickstarter.com/assets/modules/core.1c5a74cb6e9c29bd8586e3f8e7e39dd331ae42843950f9939c831206b31b7a20.js:26:26262)
    at c (https://a.kickstarter.com/assets/modules/runtime.17b741e2ab6166c9b55724db4a9e1d08d96f8d257e94554eefe8b7dd91521597.js:1:561)
    at Object.2UXI (https://a.kickstarter.com/assets/modules/core.1c5a74cb6e9c29bd8586e3f8e7e39dd331ae42843950f9939c831206b31b7a20.js:20:24154)
    at c (https://a.kickstarter.com/assets/modules/runtime.17b741e2ab6166c9b55724db4a9e1d08d96f8d257e94554eefe8b7dd91521597.js:1:561)
    at Module.8y1c (https://a.kickstarter.com/assets/modules/core.1c5a74cb6e9c29bd8586e3f8e7e39dd331ae42843950f9939c831206b31b7a20.js:20:40255)
    at c (https://a.kickstarter.com/assets/modules/runtime.17b741e2ab6166c9b55724db4a9e1d08d96f8d257e94554eefe8b7dd91521597.js:1:561)
    at Object.0 (https://a.kickstarter.com/assets/modules/core.1c5a74cb6e9c29bd8586e3f8e7e39dd331ae42843950f9939c831206b31b7a20.js:20:17293)
    at c (https://a.kickstarter.com/assets/modules/runtime.17b741e2ab6166c9b55724db4a9e1d08d96f8d257e94554eefe8b7dd91521597.js:1:561)
    at t (https://a.kickstarter.com/assets/modules/runtime.17b741e2ab6166c9b55724db4a9e1d08d96f8d257e94554eefe8b7dd91521597.js:1:430)
(anonymous) @ core.1c5a74cb6e9c29bd8586e3f8e7e39dd331ae42843950f9939c831206b31b7a20.js:26
ZCIj @ core.1c5a74cb6e9c29bd8586e3f8e7e39dd331ae42843950f9939c831206b31b7a20.js:26
c @ runtime.17b741e2ab6166c9b55724db4a9e1d08d96f8d257e94554eefe8b7dd91521597.js:1
2UXI @ core.1c5a74cb6e9c29bd8586e3f8e7e39dd331ae42843950f9939c831206b31b7a20.js:20
c @ runtime.17b741e2ab6166c9b55724db4a9e1d08d96f8d257e94554eefe8b7dd91521597.js:1
8y1c @ core.1c5a74cb6e9c29bd8586e3f8e7e39dd331ae42843950f9939c831206b31b7a20.js:20
c @ runtime.17b741e2ab6166c9b55724db4a9e1d08d96f8d257e94554eefe8b7dd91521597.js:1
0 @ core.1c5a74cb6e9c29bd8586e3f8e7e39dd331ae42843950f9939c831206b31b7a20.js:20
c @ runtime.17b741e2ab6166c9b55724db4a9e1d08d96f8d257e94554eefe8b7dd91521597.js:1
t @ runtime.17b741e2ab6166c9b55724db4a9e1d08d96f8d257e94554eefe8b7dd91521597.js:1
r @ runtime.17b741e2ab6166c9b55724db4a9e1d08d96f8d257e94554eefe8b7dd91521597.js:1
(anonymous) @ core.1c5a74cb6e9c29bd8586e3f8e7e39dd331ae42843950f9939c831206b31b7a20.js:1
vendor.6d98fce841e9b7784b1d951f4a130ad08f8a6fd5d65516db8123b7eaf6668f09.js:196 [Honeybadger] Ignoring cross-domain script error: enable CORS to track these types of errors Arguments(5) [""Script error."", """", 0, 0, null, callee: (...), Symbol(Symbol.iterator): ƒ]
videoplayer.225cc837c23cbef217eb174198c34d722120c9d62d72377bad6c35cacb8c8cc5.js:7 Uncaught TypeError: Cannot read property 'getItem' of undefined
    at HTMLDocument.<anonymous> (videoplayer.225cc837c23cbef217eb174198c34d722120c9d62d72377bad6c35cacb8c8cc5.js:7)
    at u (vendor.6d98fce841e9b7784b1d951f4a130ad08f8a6fd5d65516db8123b7eaf6668f09.js:120)
    at Object.fireWith [as resolveWith] (vendor.6d98fce841e9b7784b1d951f4a130ad08f8a6fd5d65516db8123b7eaf6668f09.js:120)
    at Function.ready (vendor.6d98fce841e9b7784b1d951f4a130ad08f8a6fd5d65516db8123b7eaf6668f09.js:120)
    at HTMLDocument.M (vendor.6d98fce841e9b7784b1d951f4a130ad08f8a6fd5d65516db8123b7eaf6668f09.js:120)
(anonymous) @ videoplayer.225cc837c23cbef217eb174198c34d722120c9d62d72377bad6c35cacb8c8cc5.js:7
u @ vendor.6d98fce841e9b7784b1d951f4a130ad08f8a6fd5d65516db8123b7eaf6668f09.js:120
fireWith @ vendor.6d98fce841e9b7784b1d951f4a130ad08f8a6fd5d65516db8123b7eaf6668f09.js:120
ready @ vendor.6d98fce841e9b7784b1d951f4a130ad08f8a6fd5d65516db8123b7eaf6668f09.js:120
M @ vendor.6d98fce841e9b7784b1d951f4a130ad08f8a6fd5d65516db8123b7eaf6668f09.js:120
}}}
"	mgutt
	49683	Multisite oEmbeds of URLs ignore query parameters		Embeds		normal	normal	Awaiting Review	defect (bug)	new		2020-03-23T02:47:04Z	2020-03-23T03:14:24Z	"When running as a Multisite, [https://core.trac.wordpress.org/browser/tags/5.3/src/wp-includes/embed.php?marks=576,579-613#L567 WordPress oEmbed will embed links to other network sites without making a HTTP request], it does this by switching to the blog looking up by domain/path.

Unfortunately, it seems that it only operates on the `path` component and ignores the `query` component, and as a result, will embed `https://other.network.site/?s=test` as `https://other.network.site/` changing the meaning of the embed.

A real example is that https://developer.wordpress.org/?s=get_cat will not embed anywhere, except on the WordPress.org network (For example, in a support request) where it ends up as an embed for `https://developer.wordpress.org/`.

This was originally reported as #meta3916"	dd32
	53573	Non-WP Blog Embeds are being cropped.		Embeds	5.7.2	normal	normal	Awaiting Review	defect (bug)	new	close	2021-07-01T12:21:38Z	2026-01-30T19:12:26Z	"When adding an embed for a non-WP blog post, for example, a NY Times story, the enclosing iFrame is not getting a default height set to it, which is causing the embed to crop off most of the information.

Issue seems to be the iframe generated is not expanding to include all of the content from the embed. If I manually set height: 400px; on the iframe, for example, it shows the content. However, the bottom is still cut off (seems the height of the embed in this case is 457px). The ma.tt embed in the screenshot has a height as an attribute of the iframe, the NYTimes does not.

@mamaduka tested this issue in both the Block Editor and Classic Editor with similar results.  See comment here: [https://github.com/WordPress/gutenberg/issues/28490]"	mdwolinski
	60147	Possible bug when YouTube embeds having both loading=lazy attribute and the enablejsapi parameter		Embeds		normal	normal	Awaiting Review	defect (bug)	new		2023-12-24T00:01:04Z	2024-02-15T16:26:55Z	"When YouTube embeds have loading=lazy attribute and the enablejsapi parameter, a console error is showing:

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('https://hobbies4.life').

I tried setting the origin and widget_referrer and it didn't help.

It means embeds can't be both lazy loaded and tracked for analytics.

I've opened a bug 3 times on the YouTube Issue Tracker and every time it was closed as ""not reproducible"", although it can be reproduced.

Maybe it relates to the way WordPress implements the API?

All details can be found here:
https://issuetracker.google.com/issues/306734400#comment1

Please let me know if more information is required."	asafm7
	63701	Reviewing Smugmug oEmbed		Embeds		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-07-15T19:54:23Z	2025-07-15T19:54:23Z	"I was checking this report [GB 66075] today. It happens that the Smugmug is completely screwed. I'm not really specialized into analysing the current status of oEmbeds for a Gallery (It's not super easy to find samples for this premium provider because it does not let sharing photos on the trial plan), and maybe it could run the same fate as #61941 

Here two examples I've found:
https://footsorefotography.smugmug.com/My-Gallery/i-TG2NNxj
https://waynewetherbeephotography.smugmug.com/My-Gallery/i-VBmLTkp

Here is an Embed code for one of those

{{{{
<iframe src=""https://waynewetherbeephotography.smugmug.com/frame/slideshow?key=7kh6Gf&speed=3&transition=fade&autoStart=1&captions=0&navigation=0&playButton=0&randomize=0&transitionSpeed=2"" width=""800"" height=""600"" frameborder=""no"" scrolling=""no""></iframe>
}}}

One single photo
https://waynewetherbeephotography.smugmug.com/My-Gallery/i-fXzGXvg/A

Are these samples compliant with the current standards for oEmbeds?

@peterwilsoncc could you give it a quick check as you are one of the most experienced on oEmbed atm, and find if the special scenarios for this oEmbed block for this provider could be repaired (slideshow embed, gallery embed, ...)? The fact that by default Embedded content can't be previewed looks bad to me from the oEmbed metadata perspective, but I need a second eye, in case I'm wrong."	SirLouen
	66218	Same-site post embeds get a doubled #?secret= fragment, breaking the resize/reveal handshake		Embeds		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-09-30T12:35:32Z	2026-10-01T05:03:26Z	"Steps to reproduce:
1. On any post, add a core Embed block pointing at a URL on the same site (another post, page, or product).
2. View the post on the front end.
3. Inspect the resulting <iframe class=""wp-embedded-content"">.

Expected: src=""https://example.com/target/embed/#?secret=XXXXXXXXXX""

Actual: src=""https://example.com/target/embed/#?secret=XXXXXXXXXX#?secret=YYYYYYYYYY"" — two #?secret= fragments concatenated.

Why it matters: wp-embed.min.js reveals and resizes the iframe only after the embedded page reports back the secret via postMessage, matched against data-secret. With a malformed double-hash, the embedded page reads back the wrong (first) secret, the check fails, and the iframe is left permanently visibility: hidden. The post looks broken — an empty gap where the embed should be — with no error anywhere.

Root cause: get_post_embed_html() (wp-includes/embed.php) builds the local embed's HTML and appends #?secret=$secret to the iframe src. That HTML then passes through wp_filter_oembed_result() (hooked on oembed_dataparse), which regexes out the existing src value and appends another #?secret=$secret on top, without first stripping the one already there.

Reproduction environment: confirmed on a clean install, default theme, zero plugins active — not theme- or plugin-specific.

Suggested fix: in wp_filter_oembed_result(), strip any existing #?secret=... from $results[2] before appending the new one, e.g. preg_replace('/#\?secret=[^#]*/', '', $results[2]).

Checked for duplicates: searched all open tickets in the Embeds component and several targeted queries (secret, wp_filter_oembed_result, data-secret) — no existing report found."	BusinessBloomer
	41403	"Support ""class"" and ""id"" attributes on wp_oembed_get()"		Embeds		normal	normal	Future Release	defect (bug)	new	close	2017-07-21T19:58:48Z	2020-09-22T13:52:43Z	"The oembed function `wp_oembed_get( $url, $args )` allows us to set additional arguments for retrieving embed HTML.

The problem is that currently the function supports two arguments, only `width` and `height`. In some cases developers need more flexibility, to set other HTML attributes like `id`, `class` and maybe even `title` (for better accessibility).

----

I was trying to thinking of an example and I think that the simplest example would be [https://v4-alpha.getbootstrap.com/utilities/responsive-helpers/ bootstrap responsive embeds].

{{{
<div class=""embed-responsive embed-responsive-21by9"">
  <iframe class=""embed-responsive-item"" src=""https://...""></iframe>
</div>
}}}

Currently you can't set custom classes in iframe with the attributes:

{{{
wp_oembed_get( 'https://...', array( 'class' => 'embed-responsive-item' ) );
}}}
"	ramiy
	42258	Twitter embed link in posts generates an empty paragraph		Embeds	4.9	normal	normal	Awaiting Review	defect (bug)	new		2017-10-18T14:32:39Z	2017-10-18T14:32:39Z	"When I look into the post, below the embed tweet I see an empty paragraph, when I look inside it, in the source I see a twitter script link: <script async src=""//platform.twitter.com/widgets.js"" charset=""utf-8"">

So why it is like that? I think it should not add an empty paragraph after a tweet.

How to replicate: 
1. add a tweet link in the post: eg: https://twitter.com/BitsAndChipsEng/status/919845271831531520
2. preview the post.

You will get an empty line, but if you will look into the source, you will see something like this:

{{{#!php
<p><script async="""" src=""//platform.twitter.com/widgets.js"" charset=""utf-8""></script></p>
}}}
"	alexvorn2
	50329	Video not playing		Embeds	5.4.1	normal	normal	Awaiting Review	defect (bug)	new		2020-06-06T03:14:39Z	2020-06-26T18:38:05Z	"Hi, 
i used wp for more years. i use to paste direct video link on my post visual editor. like http://mysite.com/file.mp4 then its make the link into video player. since last core update i updated, its not working anymore. i check updates log but found nothing related to embed or video direct link into player. so this might be a bug. i googled for few hours with this topic"	bdspice
	45052	WP Oembed in multisite fail when the permalink structure is not default	SergeyBiryukov	Embeds		normal	normal	Future Release	defect (bug)	reviewing	dev-feedback	2018-10-05T05:36:34Z	2026-05-21T15:27:07Z	"This is a follow up of #40673

In case blogs are using pretty urls (which should be the most common case), when you try to embed a post from the main site into a sub site, the embedded URL is not interpreted and we keep that simple URL.

Thats because the main site is using a reserved blog prefix {{{/blog}}} we need to remove before using {{{get_sites()}}}. I've added a unit test to illustrate the bug."	imath
	63590	Youtube oEmbed Test is not loading scripts		Embeds	5.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-06-18T11:22:55Z	2026-10-31T18:39:05Z	"After breaking my head for half an hour because the tests were not passing, I started debugging to find that a random test in the `restapi` group is failing.

Personally I thought that the full `restapi` tests were passing in the GH CI, but its seems not.

The particular test is: `Test_oEmbed_Controller::test_proxy_with_classic_embed_provider`

Easily run with: `npm run test:php -- --group 45447`

{{{
There was 1 error:

1) Test_oEmbed_Controller::test_proxy_with_classic_embed_provider
Attempt to read property ""queue"" on null

/var/www/src/wp-includes/class-wp-oembed-controller.php:211
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:1292
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:1125
/var/www/tests/phpunit/includes/spy-rest-server.php:71
/var/www/tests/phpunit/tests/oembed/controller.php:613

ERRORS!
Tests: 1, Assertions: 2, Errors: 1.
}}}

The problem is that `wp_scripts()` are not being called at any point in the tests, [https://github.com/SirLouen/wordpress-develop/blob/trunk/src/wp-includes/class-wp-oembed-controller.php#L212 so it fails here] with an empty array. 

Patch first introduced in [48135], I can't really see when and how the test was broken.

After spending a ton of time rolling back into WP 5.5 `wordpress-develop` `8368cc2b4410fe2834dd7e9012fe6d4f4919a721` testing suite (but with current `trunk` code) to check tests with my eyes this is what I found:

{{{
There was 1 error:

1) Test_oEmbed_Controller::test_proxy_with_classic_embed_provider
Trying to get property 'queue' of non-object

/var/www/src/wp-includes/class-wp-oembed-controller.php:211
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:1292
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:1125
/var/www/tests/phpunit/includes/spy-rest-server.php:71
/var/www/tests/phpunit/tests/oembed/controller.php:624
phpvfscomposer:///var/www/vendor/phpunit/phpunit/phpunit:60

ERRORS!
Tests: 1, Assertions: 2, Errors: 1.
}}}

Exactly the same results but different lines, because as I say I was running 5.5 test suite on trunk, this is why core files have the same lines.

Since this test has never run on the GH CI and it was failing since day one, we could say that it safe to be patched (for sanity purposes, when running `restapi` group). I have not run the test straight on WP 5.5 but its safe to say that the test suite has never been complete to cover this case.

Conclusion, we simply need to add `wp_scripts()` somewhere in the code (maybe in `setUp()`) so the global wp_scripts is initialized in order to run successfully though"	SirLouen
	56346	Youtube oembed with double quotes in title breaks html		Embeds		normal	normal	Awaiting Review	defect (bug)	new		2022-08-07T17:51:48Z	2022-08-08T07:13:26Z	"Steps to reproduce:

1. Navigate to `Post > Add New`.
2. Paste the following link: `https://www.youtube.com/watch?v=DLQg3Tw4bDc`
3. Click Preview.
4. 🐞 Notice that the iframe produced by the oembed breaks on double quotes in the title, because the title is not escaped. See screenshots.

The bug was already present in previous versions, at least down to 5.8.x.

Normally it's not a 'showstopper' because the browser handles the broken html well, but it's not clean and correct.
I noticed because I'm using the REST API to build a static js site, and the build breaks on the error ""invalid html detected"". Searched the break and found it was caused by this youtube video embed."	matiyin
	44704	`wp.media.view.EmbedLink` and `oembed/1.0/proxy` don't work as expected		Embeds	4.9.7	normal	normal	Awaiting Review	defect (bug)	new		2018-08-02T14:43:51Z	2018-08-07T08:43:17Z	"It seems that `wp.media.view.EmbedLink` and the REST route `oembed/1.0/proxy` don't respect the `maxwidth` oEmbed parameter in all cases.

 
**To Reproduce**

Steps to reproduce the behaviour:

1. Create a new post.
2. Click on ""Add Media"" button.
3. Choose ""Insert from URL"" interface.
4. Paste a valid YouTube URL: https://www.youtube.com/watch?v=KA_CLal14u4
5. See the YouTube `<iframe>` with a `600px` width.
6. Click on ""Insert into post"" button.
7. Publish post.
8. Edit the YouTube video.
9. See the YouTube `<iframe>` with a tiny `200px` width.

**Expected behaviour**

The embed contents from Facebook or other services should have the same width when you add or edit them.

**Reason found**

After some researches, it seems that the problem comes from `media-view.js` and this part of code:
{{{#!js
this.dfd = wp.apiRequest({
	url: wp.media.view.settings.oEmbedProxyUrl,
	data: {
		url: url,
		maxwidth: this.model.get( 'width' ),
		maxheight: this.model.get( 'height' )
	},
	type: 'GET',
	dataType: 'json',
	context: this
})
}}}

I don't know why the embed content `this.model.get( 'width' )` is egal to `0` when we edit it :/ As a result, the default value for the `maxwidth` argument of the REST route `oembed/1.0/proxy` can't be used like the first time.

Here is the requested URL:
1. when we try to embed YouTube video: `http://v10.helloprojets.test/wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DscAxBpppwcQ%26list%3DPLoSIOFPSXQoOXzR8tpGC484wjgKFwIbWL%26index%3D78`.
2. when we edit the YouTube video: `http://v10.helloprojets.test/wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DscAxBpppwcQ%26list%3DPLoSIOFPSXQoOXzR8tpGC484wjgKFwIbWL%26index%3D78&maxwidth=&maxheight=`.

This problem is a bit weird and complex. I hope I was clear in my explanations ;)"	7studio
	58644	embed height fix		Embeds	4.4	normal	normal	Awaiting Review	defect (bug)	new		2023-06-27T15:59:11Z	2023-06-27T16:48:10Z	"It seems that this fixes the issue of embeds cutting off at the bottom. It would be great if it could be implemented into the core. 

I have tested it and it works and fixes the issue:
[https://medium.com/@wlarch/overwrite-and-bypass-wordpress-iframe-height-dimension-limit-using-javascript-9d5035c89e37 Overwrite and bypass WordPress iframe height dimension limit using JavaScript]"	iamhugo76
	44074	oEmbed with many <pre> tags do not work		Embeds		normal	minor	Awaiting Review	defect (bug)	new		2018-05-14T14:31:21Z	2019-01-17T00:56:14Z	"If an oEmbed has more than ten {{{<pre>}}} tags {{{WP_oEmbed::_strip_newlines}}} (called by {{{oembed_dataparse}}}} filter) returns a wrong result for it.

All {{{<pre>}}} tags get temporarily replaced by a token, the newline stripping gets done and then the tokens {{{<pre>}}} get replaced back to their HTML. The tokens unfortunately are just {{{__PRE__}}} plus a counter (e.g. {{{__PRE__0}}}, {{{__PRE__1}}}) Thus if there are more than ten {{{<pre>}}} tags there will be tokens like {{{__PRE__10}}}. These obviously clash with previous tokens.

Granted, this is ''quite'' uncommon but nonetheless it should be fixed in my opinion."	jagszent
	61558	oEmbed: Support non-dot-com Pinterest URLs		Embeds	5.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-07-03T14:57:58Z	2024-07-07T11:15:58Z	"Update Pinterest embed provider RegEx to support official domains other than `.com(.au|.mx)`.

Reported initially in Gutenberg repo: https://github.com/WordPress/gutenberg/issues/59400.

Example ""pins"":
https://www.pinterest.es/pin/320670435980314659/
https://www.pinterest.it/pin/308004062030905959/"	Mamaduka
	57234	oembed_cache created in post affects the post_author on export		Embeds		normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2022-11-30T12:14:04Z	2026-10-14T15:03:35Z	To fix ticket #34115 we've introduced a custom type `oembed_cache` in the post table. However, once an `oembed_cache` is created the `post_author` will be the user who triggers it instead of the site owner. Because of the reason above, when you try to export the blog, it'll show up as a <wp:author> in the file which is pretty confusing. It probably makes more sense to set the `post_author` as 0 or set it to the site owner.	wecanwang
	51471	pre_oembed_result filter missing from oembed proxy controller		Embeds		normal	normal	Future Release	defect (bug)	assigned	needs-unit-tests	2020-10-07T18:14:51Z	2021-02-17T02:57:22Z	"[https://github.com/WordPress/WordPress/blob/5cee7eced0b691089a875d7e918d4380bac408af/wp-includes/class-wp-oembed.php#L363-L415 WP_oEmbed::get_html()] [https://github.com/WordPress/WordPress/blob/5cee7eced0b691089a875d7e918d4380bac408af/wp-includes/class-wp-oembed.php#L393 applies] the `pre_oembed_result` filter, allowing it to short-circuit the actual request to the oEmbed provider's REST API.

That same filter is however missing from [https://github.com/WordPress/WordPress/blob/5cee7eced0b691089a875d7e918d4380bac408af/wp-includes/class-wp-oembed-controller.php#L154-L220 WP_oEmbed_Controller::get_proxy_item()]. (Note that both `WP_oEmbed::get_html()` and `WP_oEmbed_Controller::get_proxy_item()` are otherwise quite similar, sharing the `get_data()` and `data2html()` calls, and `oembed_result` filter.)

It's arguable that the oembed REST API endpoint should allow for the same kind of filtering as the `oEmbed` class.

This issue seems somewhat similar to #45142, which was about the `oembed_result` filter.

cc @swisspidy @danielbachhuber"	Bernhard Reiter
	60321	Add Viostream.com to oEmbed allowlist		Embeds		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2024-01-22T23:55:28Z	2025-02-28T05:27:45Z	"Viostream.com has implemented oEmbed support. Adding Viostream.com to the WordPress whitelist will enable Viostream users to seamlessly embed their videos in WordPress. 

Questionnaire responses below:

== Is the service is popular enough for core developers to have heard of it before? Is it “mainstream?”

Viostream is widely used by Government and enterprise businesses in Australia - many of their developers have requested easier WordPress integration.

== If similar services are already supported, how does this service compare in terms of size, features, and backing?

Viostream does have a smaller market share than competitors such as Vidyard, however the feature set is particularly geared towards enterprise and Government, particularly around security aspects of the platform.

== Does this service have an established social media presence?

Yes - see https://www.facebook.com/viostreamhq/ and https://www.linkedin.com/company/viostream

== Is its oEmbed endpoint clearly established and properly documented? (Sometimes, they are just a developer’s pet project that may not be supported.)

Yes - see https://help.viostream.com/sharing-your-media/embedding-with-oembed-tags/

== Does the oEmbed endpoint work with WordPress’ oEmbed auto-discovery? If not, could it be made to work with additional HTML tags or attributes being added to the allow-list?

Yes, discovery has been implemented.

== Does the service make an effort to build relationships with developers, such as through robust APIs?

Yes, Viostream provides a RESTful API for video management as well as a player API for presentation integrations.

== How old is the service?

Viostream as a business has been operating for over 20 years. The current Viostream service has been operating for over 10 years.

== Does it have a well-established Wikipedia article? (Seriously.)

No.

== Has anyone written a WordPress plugin that leverages the service in some way, whether adding it as an oEmbed provider, creating a shortcode, or leveraging other APIs of the service? Do these plugins have any noticeable adoption or traction that would indicate usage and demand?

No
  
== Is the provider frequently proposed?

Yes - both existing and prospective customers have requested this functionality."	sjauldviostream
	54434	Add Zoomable as an oEmbed provider		Embeds		normal	normal	Awaiting Review	enhancement	new		2021-11-13T03:11:21Z	2021-11-18T14:21:39Z	"We would like to apply to become an embed provider on WordPress.com.

As requested, here are the answers based on the questions from the WordPress Documentation site.
https://developer.wordpress.com/docs/embedding-on-wordpress-com/

**1. How many active monthly users does your service have?**
It fluctuates between 3.1K to 17K, depending on the contents and how the creators promote their work.

Case in point: Twitch Atlas Vol. 2. Work like this typically draws a lot of traffic with the help of social media.
https://www.reddit.com/r/LivestreamFail/comments/m3r9o6/twitch_atlas_vol_2/

**2. Do you have a WordPress.org plugin?**
We do have a plugin for WordPress but not on WordPress.org.
https://zoomable.ca/zoomable_for_wordpress.html

**3. How many self-hosted WordPress sites currently embed your service?**
Regrettably, we don't have this information at hand. However, we do have a non-exhaustive list of public sites that embed to our service available on our website.
https://zoomable.ca/sites_using_zoomable.html

**4. Does your service already support oEmbed?**
Yes as we are one of the providers on embed.ly https://embed.ly/provider/zoomable

Our service can be embedded on the following sites:
- Medium (oEmbed)
- Matterport (oEmbed)
- Squarespace (oEmbed)
- Wix (oEmbed)
- Shopify (iframe)
- Weebly (iframe)

**5. What are the URL scheme and oEmbed API endpoint for your service?**

URL 1 (Free Account): !https://srv2.zoomable.ca/*
oembed_url: !https://srv2.zoomable.ca/oembed
oembed_scheme: !https://srv2.zoomable.ca/viewer.php*
example_url_1: https://srv2.zoomable.ca/viewer.php?i=imgecf402ea70b2e191_Spain_and_Portugal_rail_WM_6000px
example_url_2: https://srv2.zoomable.ca/viewer.php?i=img3f3680be627ab64b_Dulle_griet_resto
example_url_3: https://srv2.zoomable.ca/viewer.php?i=imgca0e93b71726ba80_BaffinBay

URL 2 (Paid Account): !https://community.zoomable.ca/*
oembed_url: !https://community.zoomable.ca/oembed
oembed_scheme: !https://community.zoomable.ca/image/*
example_url_1: https://community.zoomable.ca/image/iiCh
example_url_2: https://community.zoomable.ca/image/iBx0
example_url_3: https://community.zoomable.ca/image/iV26

**6. What is an example valid URL that we can use to test embedding your service?**
See 5.

**[What We Do]**

Zoomable is an image conversion service that turns high-resolution image (3000 x 3000 px and beyond) into a zoomable image. The zoomable experience invites users to examine the image in greater details.

Our service is mentioned in a few wiki entries such as Deep Zoom (the technology that our service is based on), Seadragon Sofware, and Image Composite Editor. Although we don't have a designated page on Wiki, we have an entry on Crunchbase.
https://www.crunchbase.com/organization/zoomable

**[Our User Base]**

Our service caters to a variety of sectors, with strong user base in the creative and cultural sector. We have showcased some of our users on our website. https://zoomable.ca/sites_using_zoomable.html 

Here are some highlights:

**1. 200 Panel Orion Mosaic by Matt Harbison**
http://spaceforeverybody.com/Orion/

The above work was featured on Petapixel
https://petapixel.com/2020/10/23/this-insane-2-5-gigapixel-image-of-the-orion-constellation-took-five-years-to-complete/

**2. An article on Stuff.co.nz, New Zealand’s leading news website (the zoomable image is at the end of the article).**
https://www.stuff.co.nz/environment/300283917/taniwha-in-the-valley-hutt-river-is-both-threatened-and-threatening--but-is-it-just-misunderstood

**3. British Library: Hebrew Manuscripts exhibition (Virtual Tour on Matterport platform)**
https://t.co/H0mo8Q7hbf?amp=1

**4. National Lottery Heritage Fund: Shared purpose and a clear direction — building our first roadmap (Medium article)**
https://medium.com/doing-service-design-at-the-national-lottery/shared-purpose-and-a-clear-direction-building-our-first-roadmap-4795e605a3dd

**5. A Dystopian City in a Box (Squarespace site, the zoomable image is at the end of the article)**
https://www.ruchikanambiar.com/the-lilliput-proletariat

**6. Mike Hall (Shopify store)**
https://shop.thisismikehall.com/products/a-panorama-of-london-original-version-giclee-print

**7. Ohio County Public Library: Map of the City of Wheeling and Suburbs Ohio Co. Virginia, 1853**
https://www.ohiocountylibrary.org/archives/map-of-the-city-of-wheeling-and-suburbs-ohio-co.-virginia-1853/7408 

We believe our service will provide an additional tool for the creators to showcase their work easily on WordPress.com.

We look forward to hearing from you. Please let us know if there are areas that we need to work on to make this request feasible.

Thank you for your time.

Zoomable Team"	zoomable
	66508	Add unit tests for WP_oEmbed::_strip_newlines(), _add_provider_early() and _remove_provider_early()		Embeds		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T02:26:01Z	2026-11-06T02:28:46Z	"Three methods of `WP_oEmbed` (`src/wp-includes/class-wp-oembed.php`) are not referenced by any test:

 * `WP_oEmbed::_strip_newlines()`, the callback of the `oembed_dataparse` filter that removes the line breaks of the HTML of an embed, because they break `wpautop()`.
 * `WP_oEmbed::_add_provider_early()` and `WP_oEmbed::_remove_provider_early()`, which `wp_oembed_add_provider()` and `wp_oembed_remove_provider()` use to change the providers before the `WP_oEmbed` object is created.

This ticket adds unit tests for them, each in its own test class in `tests/phpunit/tests/oembed/`:

 * `_strip_newlines()` removes the line breaks of the HTML (`\n` and `\r\n`), keeps the HTML that has no line breaks as it is, and keeps the line breaks, the tabs and the spaces inside `<pre>` elements.
 * `_add_provider_early()` and `_remove_provider_early()` store the providers to add and to remove, in the order they are called, and the next `WP_oEmbed` object uses them and then clears them.

The tests reset the list of the early providers.

I checked that no existing ticket or open pull request adds tests for these methods."	hmbashar
	65999	Allow auto-discovered embeds to link to third party sites.		Embeds		normal	normal	Awaiting Review	enhancement	new		2026-08-31T00:49:17Z	2026-08-31T00:49:17Z	"In r34903 for #32522 WordPress introduced support for auto-discovery of oEmbeds.

As part of this, links within the embedded content were limited to only allow them to be directed to the source origin. Eg, make.wordpress.org embeds may only link to URLs on make.wordpress.org.

This has the effect of requiring that any social type embed be added to the allow list if they systematically include links to third party sites. See my  comment on the Gravatar allow list request, [comment:8:ticket:62467 #62467 (comment)].

I'd like to remove this limitation for a couple of reasons:

* it requires providers be added to the allow list that wouldn't otherwise need to be
* it's relatively easy to work around with an open redirect (validated with a salted checksum, for preference)

Links are currently limited to the `http` and `https` protocols. This limitation ought to be retained."	peterwilsoncc
	60727	Allow fine-grained control of when to use oEmbed for providers outside the explicit list		Embeds		normal	normal	Awaiting Review	enhancement	new		2024-03-07T18:30:45Z	2024-03-07T18:30:45Z	"WordPress maintains a list of appvoed oEmbed providers. Developers are able to add or remove providers from this list.

WordPress also attempts to see if URLs, outside the provider list, support oEmbed - and if they do, it uses oEmbed for them.  Unfortunately, this is currently an ""all or nothing"" appraoch. You can either agree to use all these random sites oEmbed, or none.  I'd love to see a filter added to control whether or not a specific URL, outside the provider list, should use oEmbed.

For reference, our specific use case is we want to continue supporting oEmbed for the vast majority of sites that support it - but we've identified some specific domains that do a poor job of oEmbed, and we'd like to only turn it off for those domains."	MadtownLems
	57076	Allow fullscreen in oembed videos		Embeds		normal	normal	Awaiting Review	enhancement	new		2022-11-11T15:27:50Z	2022-11-15T11:32:51Z	"Hi!

We're trying to enable fullscreen from a video loaded through oembed (and not by copying directly the iframe) from PeerTube.
Here is the link to the video: https://video.davduf.net/w/4V6DMLcQDGQHnZ9wf6h4KH
And to the oembed: https://video.davduf.net/services/oembed/?url=https://video.davduf.net/w/4V6DMLcQDGQHnZ9wf6h4KH

I tried to understand why it was not working and found this piece of code: https://github.com/WordPress/WordPress/blob/82f3535083c0d8859bd3b8333fe006394978c09e/wp-includes/embed.php#L926

I guess it's because allowed attributes do not include `allowfullscreen` but I am not confident enough with WP code to be sure it's bound to this part.

Anyway, would it be possible to allow the allowfullscreen attribute in `iframe` loaded through oembed?

Thanks."	booteille
	49352	Allow get_proxy_item to be filtered/altered before a response is sent to the editor.		Embeds		normal	normal	Awaiting Review	enhancement	new		2020-02-03T16:13:40Z	2020-02-03T16:13:40Z	"**tl;dr:** Add a filter in {{{\WP_oEmbed_Controller::get_proxy_item}}} so certain non-oembed sites can still be embeded using a custom handler from a plugin.

**Scenario:** I would like to create a generic oEmbed provider on my own site similar to iframely.com. So when a user posts a link in the editor that isn't a oembed provider, I would like to be able to filter the response from {{{\WP_oEmbed_Controller::get_proxy_item}}} and not having it reply with {{{return new WP_Error( 'oembed_invalid_url', get_status_header_desc( 404 ), array( 'status' => 404 ) );}}}. In my ideal case I could catch this and pipe the URL in question through my own proxy endpoint and create a custom oEmbed result from meta and open graph tags generated from the original HTML of the link to be embeded.

Currently it seems, that I can only replace the all embeds through a custom handler, similar to what iframely does: https://github.com/itteco/iframely-wordpress/blob/master/iframely/iframely.php#L19-L23
"	neverything
	54468	Apply aspect ratio classes to wp_oembed_get when theme_supports('responsive-embeds') is added		Embeds	5.9	normal	normal	Awaiting Review	enhancement	new		2021-11-18T19:37:38Z	2021-11-18T19:37:38Z	"The Gutenberg embed block supports [adding responsive wrappers around embeds that are cognizant of the embed's aspect ratio](https://github.com/WordPress/gutenberg/blob/v11.9.1/packages/block-library/src/embed/util.js#L185). Without creating fixed-width columns, the embed will fill its container at the interpreted aspect ratio.

If you're still writing PHP templates, you're using wp_oembed_get, which does not support this. [This ticket](https://core.trac.wordpress.org/ticket/34928) suggests that some JS fires to adjust the height on iframes on window resize, but that's a somewhat different issue, becoming important after the embed has been rendered. That ticket also suggests that an embed expanding to fill its container is undesirable and not in-line with oEmbed's specification, but whoever designed the Gutenberg block must have had a different interpretation of that spec.

Would be great if WordPress oEmbeds behaved the same however you create them."	eclev91
	37868	Avoid default width styles in the markup of the audio player	wonderboymusic	Embeds	4.6	normal	normal	Future Release	enhancement	assigned	has-patch	2016-08-29T18:51:47Z	2019-04-19T16:03:03Z	"The markup for every audio player contains inline styles for setting its width to 100%, like below (simplified):

{{{
<div class=""wp-audio-shortcode"" style=""width: 100%;"">
<audio class=""wp-audio-shortcode"" style=""width: 100%;"">
}}}

Why not move that style to a stylesheet? It is the default style for ''every'' audio player, so let’s not repeat ourselves each time. Moreover, style attributes in the HTML make it hard to override styles. If you don’t want your audio player to be 100% wide you’re left with two ugly options:

a) Use `!important` declarations in your own stylesheet to override it.

b) Filter out the default width like this:

{{{
add_filter( 'shortcode_atts_audio', 'my_shortcode_atts_audio', 10, 4 );

function my_shortcode_atts_audio( $out, $pairs, $atts, $shortcode ) {
	$out['style'] = preg_replace( '~(?:^|\s)width\s*+:\s*+100%;?~i', '', $out['style'] );
	return $out;
}
}}}
"	GeertDD
	49910	Embed: resizable iframes		Embeds		normal	normal	Awaiting Review	enhancement	new		2020-04-15T16:24:05Z	2020-04-15T16:24:05Z	"Hi,

I am a developer at Weezevent (https://www.weezevent.com/en-gb), a ticketing solution.

I am currently developing an oEmbed provider to embed our registration widget in WordPress, that returns a ""rich"" embed containing an iframe with a fixed height.

It technically works but our content height changes as the user progresses through the registration steps, so when our content is small it leaves a big gap between the end and the next paragraph in Wordpress; and when our content is big the iframe becomes scrollable. In both cases it's not looking good and not mobile friendly.


Our default integration uses a js script to monitor the content size and dynamically resize the iframe.
You can check an integration using our js script here https://cabaretvert.com/billets/
Scroll down to the ""Déjà commandé"" part and fold the categories or select a quantity and click ""Suite"" to trigger the resizing.
\\



\\



I was wondering if you'd be willing to integrate such a script in Wordpress and enable it for iframe embeds ?
I'm sure it would also be useful for other oEmbed providers.
\\


\\



I know we could write a plugin to allow unfiltered embeds, but the vast majority of ours users are not technical and asking them to install a plugin will scare them off.
(I'd also take being added to the official embed whitelist, but we don't fit the ""globally well-known"" requirement.)


Cheers
Florent"	fthevenetweez
	40776	"Feature request : Need class parameter for ""Twitter"" embed share"		Embeds		normal	normal	Awaiting Review	enhancement	new		2017-05-16T06:47:48Z	2019-04-25T13:08:46Z	"'''Note:''' Twitter embedded share already working nicely. This is an only feature request.

I want to update twitter embed share, but I can't edit or modify that default twitter embed share because it's an iframe.

''For example'', I want to make twitter share as a 'center aligned' within my content area when writing blog posts.

(There are number of possibilities as well.)

Yes, I found the solution for twitter share center alignment. We need to add one class with iframe - '''''tw-align-center''''' but there is no input box/area available in popup where I can write down my custom classes.

Please check this screenshot for more detail - https://d.pr/f32E0"	sanjaydabhoya
	61907	Make oembed_invalid_url return 400 instead of 404		Embeds		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-08-22T09:49:19Z	2024-10-25T11:05:53Z	"In `wp-includes/class-wp-oembed-controller.php` the error response for an invalid url is a 404.

{{{#!php
                        return new WP_Error( 'oembed_invalid_url', get_status_header_desc( 404 ), array( 'status' => 404 ) );
}}}

Please consider changing this to a 400.

The oembed endpoint seems to be an absolute magnet for unauthorised vulnerability checking, and from the webserver logs we can't see the difference between `oembed_invalid_url` and a legitimate request that also returns a 404."	leedxw
	64941	Support TikTok carousel embeds		Embeds		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-03-24T14:56:57Z	2026-03-26T05:26:10Z	"TikTok has image-based carousel embeds now. The URL looks like
https://www.tiktok.com/@itsklarissat/photo/7614533377500138782

When trying to embed this URL it will throw an error
[[Image(https://i.imgur.com/pKKc1Mu.png)]]

If you replace ""photo"" with ""video"" in the URL like:
https://www.tiktok.com/@itsklarissat/video/7614533377500138782

It will embed correctly
[[Image(https://i.imgur.com/vBdnnXg.png)]]

It looks like the oembed regex is:

{{{
'#https?://(www\.)?tiktok\.com/.*/video/.*#i'  => array( 'https://www.tiktok.com/oembed', true ),
}}}

A second regex to match the photo URL could be added or it could be updated like
{{{
'#https?://(www\.)?tiktok\.com/.*/(?:video|photo)/.*#i'  => array( 'https://www.tiktok.com/oembed', true ),
}}}

An alternate solution might be a more generic match, which could account for other URL formats they may add in the future.
{{{
'#https?://(www\.)?tiktok\.com/.*/[^/]+/.*#i'  => array( 'https://www.tiktok.com/oembed', true ),
}}}


I tested this with WordPress 6.9.4 on Twenty TwentyFive and no plugins.
"	Nick_theGeek
	38128	Twitter Embed - Enhancement change theme		Embeds		lowest	normal	Future Release	enhancement	new		2016-09-22T13:34:18Z	2023-05-30T08:59:36Z	"I would like to suggest to add a option to set the twitter embed theme. 
Currently you only can use the standard White Theme, some possibility to customize it to dark as example for dark sites would be great."	Deexgnome
	65587	wp-embed performs extra query even when unnecessary		Embeds	7.1	normal	trivial	Awaiting Review	enhancement	new	has-patch	2026-07-06T22:26:40Z	2026-07-06T23:52:14Z	"Cached oembed data can be stored in two ways: as post meta, or as a standalone post of type oembed_cache (when the embed does not belong to a post for some reason.)

In class-wp-embed, it checks for cached embed data by first querying the oembed_cache post. Then it checks for post meta associated with the defined post_id (which is read from the global $post.) If there is a post_id, the result of the oembed_cache post query is ignored.

{{{#!php
<?php
$cached_post_id = $this->find_oembed_post_id( $key_suffix );

if ( $post_id ) {
	$cache      = get_post_meta( $post_id, $cachekey, true );
	$cache_time = get_post_meta( $post_id, $cachekey_time, true );

	if ( ! $cache_time ) {
		$cache_time = 0;
	}
} elseif ( $cached_post_id ) {
	$cached_post = get_post( $cached_post_id );

	$cache      = $cached_post->post_content;
	$cache_time = strtotime( $cached_post->post_modified_gmt );
}
}}}

find_oembed_post_id should only be called if post_id is not set."	gddrt
	63158	Add Panda Video oEmbed endpoint		Embeds		normal	normal	Awaiting Review	feature request	new		2025-03-24T20:46:07Z	2025-03-25T17:53:33Z	"Hi WordPress team,

Three years ago, we submitted a request to add Panda Video as a supported oEmbed provider in WordPress. At the time, the project was still gaining traction and visibility.

Today, Panda Video has grown significantly, serving thousands of customers with a robust and reliable video hosting platform. We believe this is a good time to revisit the request.

oEmbed Endpoint

Here is our official oEmbed endpoint and documentation:

📘 https://pandavideo.readme.io/reference/oembed"	pandavideo
	62344	Social Media Embed Suggestion		Embeds		normal	normal	Awaiting Review	feature request	new	close	2024-11-04T14:19:48Z	2024-11-07T17:10:32Z	"Hello, 

I noticed there are embeds available for TikTok, YouTube, Pinterest but not for Lemon8. Could WordPress incorporate an embed for Lemon8 so that we can share specific posts from the platform on our websites? It's a newer app but it has about 4 million users in the US and it's a growing popular app right now.

Thank you,
Victorea"	byvictorea
	65700	Comments: wp_insert_comment() and wp_update_comment() don't encode emoji for utf8mb3 columns like wp_insert_post() does		Emoji	7.1	normal	normal	Future Release	defect (bug)	new	has-patch	2026-07-24T01:29:00Z	2026-08-11T09:26:57Z	"`wp_insert_post()` encodes emoji (and other 4-byte UTF-8 characters) as HTML entities before saving a post, when the destination column uses the legacy `utf8`/`utf8mb3` character set instead of `utf8mb4`. This logic lives inline in `wp_insert_post()` (`wp-includes/post.php`) and calls `wp_encode_emoji()`. It was introduced for posts under #31242.

`wp_update_post()` already benefits from this since it delegates to `wp_insert_post()` internally.

However, `wp_insert_comment()` and `wp_update_comment()` (`wp-includes/comment.php`) have no equivalent handling. On a site whose `wp_comments` table still uses `utf8`/`utf8mb3` collation (common on hosts that haven't run the utf8mb4 upgrade, or after MySQL 8.0.30+/MariaDB 10.6.1+ renamed `utf8` to `utf8mb3`), inserting or editing a comment containing an emoji currently either silently corrupts the content or fails outright, depending on SQL mode - the same class of issue as #60362 on the post side.

'''Proposed fix (attached patch)'''

* Extracts the existing ""encode emoji if the column is utf8/utf8mb3"" logic out of `wp_insert_post()` into a new private helper, `_wp_encode_emoji_in_fields( $data, $table, $fields )`, in `wp-includes/formatting.php`.
* Updates `wp_insert_post()` to call the helper (behavior-preserving refactor, no functional change for posts).
* Calls the same helper from `wp_insert_comment()` and `wp_update_comment()` for the `comment_author` and `comment_content` fields, so comments get the same utf8mb3 safety net posts already have.

'''To test'''

On a site where the comments table (or a specific column) uses `utf8`/`utf8mb3` collation - or force it for testing via the `pre_get_col_charset` filter:
1. Insert or edit a comment containing an emoji (via `wp_insert_comment()`/`wp_update_comment()`, or the standard comment form).
2. Before the patch: the emoji is corrupted in the database, or the save fails.
3. After the patch: the emoji is stored as an HTML entity, consistent with how `wp_staticize_emoji()` already renders emoji stored this way, and the comment saves successfully.

No behavior change on utf8mb4 installs."	barry
	57277	Emojis after translate update		Emoji	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-12-05T20:40:37Z	2022-12-06T19:38:28Z	"Dears,

Every time my WordPress update translations I lost all my emojis in my posts.

🏃‍♂️​🏃‍♀️

The emojis changes to ? or ??

I hope can found one solution because I change all the emojis one by one, and sometimes I no remember the emoji I write.

language spanish
theme Generatepress

Best regards"	Guillermo77
	56784	Optimization in wp_staticize_emoji function		Emoji	6.0.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-10-10T17:26:32Z	2026-05-22T10:47:48Z	"In the `wp_staticize_emoji` function there is a piece of code which seems to be there to optimize the process, but in fact does the opposite.

The piece i'm writing about:
{{{
	// Quickly narrow down the list of emoji that might be in the text and need replacing.
	$possible_emoji = array();
	foreach ( $emoji as $emojum ) {
		if ( false !== strpos( $text, $emojum ) ) {
			$possible_emoji[ $emojum ] = html_entity_decode( $emojum );
		}
	}
}}}

Feeding all of 3575 emoji enitities into `strpos` function generates much more overhead than passing all existing emojis for further processing. This can be easily observed by entirely skipping the `false !== strpos( $text, $emojum )` check and adding all entities to `$possible_emoji` array – the whole execution of the `wp_staticize_emoji` function becomes nearly 10x faster. This effect happened to me every time I tested it no matter the content or length of the passed text."	kac1per
	42428	wp-emoji pops up privacy hanger in Firefox with privacy.resistFingerprinting turned on		Emoji	4.1.2	normal	normal	Future Release	defect (bug)	new		2017-11-03T09:56:10Z	2018-06-14T18:31:33Z	"This isn’t really a bug, but worth reporting anyway.

wp-emoji uses a technique that’s often used by trackers for fingerprinting clients: reading canvas pixel data. For them, differences in OS and graphics drivers can lead to subtle differences when text is rendered to a canvas. This means that when they hash data read out of the canvas with text on they have another datapoint to identify a client.

To work around this, Firefox has recently uplifted a technique from TOR Browser. If you visit a site that tries to do this it’ll pop open a hanger asking for the user’s permission. You can test this by downloading a copy of Firefox Nightly, going to about:config and setting privacy.resistFingerprinting to true. Which brings us on to WordPress…

Unfortunately the default wp-emoji package also uses this technnique, which triggers a browser warning on a large number of sites I visit on a daily basis. While I doubt that WordPress is using this for user tracking, it means that sites that are being nefarious get lost in the WordPress noise. This is a shame, but also I would imagine that it would be hard for Firefox to turn this on by default given the number of sites out there using Wordpress.

What I’d like to suggest is that:
1) wp-emoji is reviewed to see whether this technique is necessary for its functionlity. Can it be updated to use some other technique?
2) wp-emoji is considered for removal by default. According to the docs wp-emoji ‘will convert the often greyscale Emoji characters to colored image files.‘ Is this really a problem with the current set of browsers?
"	robinwhittleton
	60306	PHPunit test for wp_enqueue_emoji_styles		Emoji		normal	normal	Awaiting Review	task (blessed)	new	has-patch	2024-01-19T22:43:38Z	2026-10-31T19:29:33Z		pbearne
	57451	Cross Site Request Forgery on Admin of any wordpress site to export files		Export		normal	minor	Awaiting Review	defect (bug)	new		2023-01-12T13:13:23Z	2023-03-20T04:34:24Z	"[Marked as No Impact By WordPress Hackerone Team]

Cross-Site Request Forgery (CSRF) is an attack that forces an end user to execute unwanted actions on a web application in which they’re currently authenticated. With a little help of social engineering (such as sending a link via email or chat), an attacker may trick the users of a web application into executing actions of the attacker’s choosing

Steps To Reproduce:

1. Login to WordPress Backend as an Admin
2. Go-to Tools > Export > Select what to export
3. Select the Data you want to export. Capture this request using a web-proxy like BurpSuite
4. Since this is a GET request, Copy the URL to which request is made.
5. Send this URL to another admin or user with equal rights.
6. When he clicks on the URL, he shall download the file automatically.

The endpoint vulnerable:
`http://<your_wp.com>/wp-admin/export.php?download=true&content=all&cat=0&post_author=2&post_start_date=0&post_end_date=0&post_status=0&page_author=0&page_start_date=0&page_end_date=0&page_status=0&attachment_start_date=0&attachment_end_date=0&submit=Download+Export+File`

Recommendations
Enforce CSRF protection like wpNonce Token for file export endpoint.

Impact
Unauthorised File Download on an administrator's PC
An attacker can write a script which sends 100s of GET requests at once to the endpoint, and share the script to another user, and when he downloads 100 files at once, it shall also consume his disk space"	f41z4n
	61620	Edited Images don't include un-edited versions in WXR file, even if used in a Post		Export		normal	normal	Awaiting Review	defect (bug)	new		2024-07-10T14:07:53Z	2025-11-19T17:22:25Z	"I'm not sure if this should be considered an issue with the Export side, or the Import side, so I'm reporting it both here as well as with the official WordPress Importer plugin (https://wordpress.org/plugins/wordpress-importer/).

My issue there: https://wordpress.org/support/topic/issues-backfilling-urls-for-images-that-have-been-edited/

Summary: If an uploaded image is used in a Post, then that image is edited, the original image is still used in the Post, but is not present in the export of the site. So after importing the content into the new site, these posts contain image tags that link back to the original site (as the original, un-edited image used was not brought along to the new site).

Detailed steps to reproduce are available in the issue here: https://wordpress.org/support/topic/issues-backfilling-urls-for-images-that-have-been-edited/#post-17879467"	MadtownLems
	64556	Tools -> Export | Failure when setting category		Export	6.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-01-27T11:12:44Z	2026-03-24T21:46:33Z	"Hi,

Export of posts fails when exporting posts of a specific category. This probably has affect on other export settings as well.

File /wp-admin/includes/export.php, line 543 is supposed to echo the slug of the current category's parent.  It is trying to get that data from the $cats variable, which normally contains all the categories, but it does not contain that data when limiting the posts to export to a specific category.

Current line 543: 
{{{
<wp:category_parent><?php echo wxr_cdata( $c->parent ? $cats[ $c->parent ]->slug : '' ); ?></wp:category_parent>
}}}


Suggested fix: 
{{{
<wp:category_parent><?php echo wxr_cdata( $c->parent && isset( $cats[ $c->parent ] ) ? $cats[ $c->parent ]->slug : '' ); ?></wp:category_parent>
}}}


Blessings,

Klaas
"	kbpcit
	58195	WordPress Exporter includes trashed posts when the author filter is enabled		Export		normal	normal	Awaiting Review	defect (bug)	new		2023-04-26T07:31:27Z	2023-04-26T15:14:53Z	"The wordpress exporter has a bug where it will export all posts except trashed posts when using the default options but will export all posts including trashed posts when the author filter is enabled (to export posts by a specific author). Exporting by a specific user is the only way to export a specific portion of the posts and avoid exporting all of files.

This is a problem because 99% of people do not want trashed items to be in included in an export file as these are already designated as unwanted/ unnecessary. The exporter function does not make it obvious to users that it will include trashed items in the created export file. This problem is only obvious if someone tries to incorporate the exported posts into another site which already has posts of a similar name. 

You might ask how is it possible to have duplicate posts (1 post published, 1 post trashed with exactly the same name) You couuld get this by accidentally creating two posts with exactly the same slug or by deleting a post and creating a new one with exactly the same name. 

After importing the xml file into another site WordPress gives a warning that the imported post already exists but does not make it clear that the new duplicate is actually located in the trash section of the new site and is not published like a normal post.

With this unexpected behaviour and confusing warning message users will not necessarily understand how to solve the issue and this warning message witll continue to pop up EVERYTIME they export/import posts because the site of origin will continue to include all trash files in the exported xml until the user empties their trash or the trash files expire.

Some users like myself use the export function multiple times a day and export 100s of posts a week. Correcting this ""bug"" would avoid confusion, save time and would ensure the behaviour of the exporter matches the expectations of the user."	shtv
	36340	Other options ignored when using a custom post type with export_wp()		Export		normal	normal	Future Release	enhancement	new	has-patch	2016-03-25T22:17:35Z	2026-06-05T09:07:35Z	"While writing the improved docblock for `export_wp()`, I noticed something that may be an issue when a custom post type is supplied.

For the built-in post types you can filter the exported content by start date, end date and/or author. But not with a custom post type: with them it's everything. Is this by design?

The fix could be to modify line 113 to include the custom post type option because by that point we know that it's both valid and `can_export` is true thanks to the stuff starting on line 88.

I don't use this code myself but it did jump out at me. Thoughts?"	theMikeD
	47446	Tools > Export does not include term meta data for a custom post type		Export	5.2.1	normal	normal	Awaiting Review	enhancement	assigned		2019-05-31T15:38:54Z	2026-09-01T15:12:12Z	"Steps:
1. Register a public custom post type 
2. Register a custom taxonomy with a custom term_meta
3. populate with dummy posts, terms and term meta values
4. go to tools > export and select your custom post type
5. The resulting XML is perfectly valid and includes all posts along with the terms of the taxonomy. Observe that none of the terms have their corresponding `term_meta`

Expected: 
When exporting content of one custom post type, the `term_meta` should be included.

Solution:
I have not found one. Looking at `wp-admin/includes/export.php:148` I can see that `$terms` is only populated when `$args['content']` is set to all (""All Content""). Here the source I am referring to: https://github.com/WordPress/WordPress/blob/5.2.1/wp-admin/includes/export.php#L148

Environment: WP 5.2.1, WAMP, PHP7.2

"	mclaurent
	58982	Tools > Export does not include termmeta data for post categories		Export	6.3	normal	normal	Awaiting Review	enhancement	new		2023-08-04T12:44:38Z	2023-08-04T18:07:11Z	"Steps to reproduce
* Populate some posts and categories on a clean WordPress installation.
* Add some term meta fields to those categories.
* Go to Tools > Export and export Posts, then All categories.
* The export file contains no `wp:category` entry for any categories, hence categories term meta fields are not included.
* Go back to Tools > Export and export Posts, then a single category.
* The new export file contains no `wp:category` entry for the selected category, hence its term meta fields are not included either.
"	jadpm
	48180	extend export with filter for join and where clause		Export	5.2.3	normal	normal	Awaiting Review	enhancement	new		2019-09-30T10:29:31Z	2019-09-30T11:37:29Z	"In attachment I send a patch to add two lines for filters to change external the join and where clause to make it possible to export only the right posts.

**I hope your can take it into the core.**

Background: I have an user defined post type ""bp-blog"", which extends the default blog with buddypress group functionality. Therefor I save the buddy press group id in postmeta.

Now I want export only the ""bp-blog"" posts for a specific group. Without the filter I cannot modify the request query and all ""bp-blog"" posts are exported.

Here my usage of the the new filter:
{{{#!php
<?php
    add_filter('export_filter_join', 'export_filter_join', 0, 2);
    public function export_filter_join($join, $args = array()) {
        if ($args['content'] != 'bp-blog' && !isset($args['group'])) {
            return $join;
        }

        global $wpdb;

        $join .= "" INNER JOIN {$wpdb->postmeta} ON ({$wpdb->posts}.ID = {$wpdb->postmeta}.post_id)"";

        return $join;
    }
}}}

and

{{{#!php
<?php
    add_filter('export_filter_where', 'export_filter_where', 0, 2);
    public function export_filter_where($where, $args = array()) {
        if ($args['content'] != 'bp-blog' && !isset($args['group'])) {
            return $where;
        }

        global $wpdb;

        $where .= "" AND wp_postmeta.meta_key = '_bp_group' AND wp_postmeta.meta_value = {$args['group']}"";

        return $where;
    }
}}}

"	mgleich
	56118	Exception to escapement: Exported or imported data		Export		normal	major	Awaiting Review	feature request	new	needs-docs	2022-07-01T02:21:19Z	2026-09-29T20:17:41Z	"JSON data echoed for download as in https://plugins.trac.wordpress.org/browser/anrghg/tags/1.3.1/admin/includes/export.php?rev=2749921#L327 cannot be escaped using `wp_kses()`. I’m opening this ticket for documentation purposes.

`wp_kses()` calls `wp_kses_split()`, that calls `_wp_kses_split_callback()`, that calls `wp_kses_split2()` (https://docs.classicpress.net/reference/functions/_wp_kses_split_callback/). And the first thing `wp_kses_split2()` does is to “fix” the data by calling `wp_kses_stripslashes()`, that strips backslashes from in front of double quotes (https://docs.classicpress.net/reference/functions/wp_kses_split2/ and https://developer.wordpress.org/reference/functions/wp_kses_stripslashes/) and thus breaks JSON.

Anyway, cxported data is expected to truly mirror the existing data, so there seems to be no way to escape anything here when echoing for download.

The same holds true when importing data as in https://plugins.trac.wordpress.org/browser/anrghg/tags/1.3.1/admin/includes/import.php?rev=2749921#L362

For PHPCS, such instances need to be whitelisted and I’m held accountable for linking to relevant documentation acknowledging the exceptions."	anrghg
	55764	Export of menus		Export		normal	normal	Awaiting Review	feature request	new	reporter-feedback	2022-05-18T09:12:39Z	2022-05-19T08:22:54Z	"​It will be time saving a lot if WordPress allows export ​of ​menus​. ​
"	martiniwebb
	62652	Ambiguous class resolution SimplePie_Core in wordpress 6.7		External Libraries		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2024-12-05T11:42:41Z	2026-01-02T16:25:51Z	"I have updated WordPress to 6.7 and now getting these warnings, any idea how to fix it?

`Warning: Ambiguous class resolution, ""SimplePie_Core"" was found in both ""/.../wp-includes/SimplePie/src/Core.php"" and ""/.../wp-includes/SimplePie/library/SimplePie/Core.php"", the first will be used.`

These are the two files:
https://github.com/WordPress/WordPress/blob/6.7-branch/wp-includes/SimplePie/src/Core.php
https://github.com/WordPress/WordPress/blob/6.7-branch/wp-includes/SimplePie/library/SimplePie/Core.php"	vahidjavani
	51990	Codemirror does not support JSX by default as mentioned		External Libraries	5.5.3	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2020-12-09T13:57:14Z	2022-08-24T19:04:52Z	"Hi,
I found an issue with the core code.

It is mentioned on this link that the CodeMirror lib will support JSX by default in the editor.
https://make.wordpress.org/core/2017/10/22/code-editing-improvements-in-wordpress-4-9

But when I use JSX mode, I do see an invalid System error in the editor.

Please see this image: 

https://user-images.githubusercontent.com/1482075/100721177-eab92a00-33b6-11eb-84c8-a15da679d79d.png

{{{
{
    indentUnit: 2,
    tabSize: 2,
    mode: 'jsx'
}
}}}"	webbdeveloper
	59423	Datepicker in wordpress do not follow the Date format set in the settings		External Libraries		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-09-21T12:21:16Z	2023-09-24T03:43:08Z	"Go to wordpress > Settings > General 

over there select ""Date Format"" > ""Custom date"" and set it to ""jS F Y""

Once you do this it will show you date to be like this 21st September 2023


Now Add the below code in your theme function.php file this code will create a shortcode [datepicker]

{{{#!php
<?php
function enqueue_datepicker_20230921() {
    wp_enqueue_script('jquery-ui-datepicker');
    wp_enqueue_style('jquery-ui-datepicker-style', 'https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css');
}

add_action('wp_enqueue_scripts', 'enqueue_datepicker_20230921');

function datepicker_shortcode_20230921() {
    ob_start();
    ?>
    <input type=""text"" id=""datepicker"">
    <script>
        jQuery(document).ready(function($) {
            $(""#datepicker"").datepicker();
        });
    </script>
    <?php
    return ob_get_clean();
}

add_shortcode('datepicker', 'datepicker_shortcode_20230921');
}}}

Once you have done this Create a page and add short code [datepicker] 

go to the front end and select date in the Datepicker

if you select 22nd it will show the date as 22S September 2023 

rather then 22nd September 2023 

it does not convert S in to nd, st, or th on the front end 


"	rajeshsingh520
	52695	Incorrect way to updateLocale in moment.js add_inline_script		External Libraries	5.6.2	normal	normal	Future Release	defect (bug)	new		2021-03-02T16:38:06Z	2022-10-11T06:38:45Z	"In [wp-includes/script-loader.php L146](https://build.trac.wordpress.org/browser/branches/5.7/wp-includes/script-loader.php#L146)


{{{
moment.updateLocale( '%s', %s );
}}}


WP updates the locale 
**1. with incomplete data**
**2. regardless of the existing data**

The plugins / themes calling for the removed data expect a String, and they will get an undefined, triggering an Uncaught TypeError for any further process.

This is not too visible yet because of the bug #51142.
But when it will be fixed, a lot of scripts will be affected.

----

**1. Incomplete data**

**1.1**
WP currently updates 'longDateFormat' with null parameters. Parameters values should not be null. I suggest to use the 'en_US' values as default.

**The parameters should not be null: 'LTS', 'L', 'LLLL'**

{{{
'longDateFormat' => array(
	'LT'   => get_option( 'time_format', __( 'g:i a', 'default' ) ),
	'LTS'  => null,
	'L'    => null,
	'LL'   => get_option( 'date_format', __( 'F j, Y', 'default' ) ),
	'LLL'  => __( 'F j, Y g:i a', 'default' ),
	'LLLL' => null,
)
}}}


**1.2**
WP currently updates 'week' with 1 parameter instead of 2 (https://momentjs.com/docs/#/customization/dow-doy/). 

**Missing parameter: 'doy'**

{{{
'week' => array(
	'dow' => (int) get_option( 'start_of_week', 0 ),
),
}}}


----

**2. Existing data**

Before calling updateLocale, WP should check if the locale data exists (with moment.localeData( 'en' ) - [docs](https://momentjs.com/docs/#/i18n/locale-data/)).

I suggest to replace only the missing data, and keep the existing one as is."	yoancutillas
	52926	mobile compatibility library sortable list input field ignores touch event		External Libraries	5.7	normal	normal	Awaiting Review	defect (bug)	new		2021-03-27T03:54:44Z	2021-05-26T02:22:35Z	"The ability to edit a WP backend menu item custom url input field has not worked on my iPad iOS 14.4.1 using Safari and Chrome. Any text input field simply doesn't respond. Select choice list controls recognize touch. 

I am using Admin Menu Editor Version 1.9.9 plugin.

On Mar 26, 2021, at 08:56, Janis Elsts <daerils@gmail.com> wrote:

﻿Unfortunately, it looks like it's currently not feasible to fix this issue.

It appears that problem is in one of the JS libraries that is part of WordPress itself. It's a mobile compatibility library that's supposed to translate touch events into simulated mouse events. It doesn't seem to work correctly when you tap an input field that's inside a sortable list, like the menu item list in Admin Menu Editor.

I don't have enough mobile development experience to replace the existing JS library with something better, so this bug may remain unfixed until/unless WordPress core developers fix the underlying issue."	edtorrey
	60207	regarding WP 6.4.2 - masonry 4.2.2 and imagesloaded 5.0.0 js not compatible		External Libraries	6.4.2	normal	normal	Awaiting Review	defect (bug)	new		2024-01-07T14:06:52Z	2024-01-15T22:06:48Z	"Hi, 

The following combination is running on WP 6.4.2:

imagesloaded 5.0.0
masonry 4.2.2

When running imagesloaded function on a masonry object, imagesloaded throws following error:

""obj is not iterable""

see: https://github.com/desandro/imagesloaded/issues/308

It seems version 5.0.0 is the most recent verion of imagesloaded.

Right now we have to fix that problem manually after every WP Upgrade, which is a  real problem for us. Is it possible a patch your version of imagesloaded for WP 6.4.3? 

Kind Regards, Reza Anwar

"	ranwar
	63258	Loose external reference to cdn.dashjs.org		External Libraries		normal	normal	Awaiting Review	enhancement	new		2025-04-10T10:27:46Z	2025-05-26T14:29:53Z	"The mediaelemnt and player in wp-includes/js/mediaelement/mediaelement-and-player.min.js contains an external link to https://cdn.dashjs.org/latest/dash.all.min.js

This introduces an external reference that's actually not needed, the file dash.all.min.js should be included locally.

I know, it's a very minor issue, but it got reported by a government issued pentest and should be easy to fix."	fseydel
	59580	Text_Diff: sync with upstream		External Libraries		normal	normal	Future Release	enhancement	new		2023-10-10T11:11:54Z	2024-05-20T21:34:03Z	"Follow up on ticket #58298.

The `Text_Diff` library, as included in WP, is an external dependency, which hasn't been kept up to date with the original source - i.e. with ""upstream"".

The WP local version has also received some WP-only patches, typically for issues related to compatibility with new PHP versions.

It should be investigated if there are changes upstream which need to be included in the WP version of the library and if the WP version of the library contains any fixes which aren't included yet upstream and should be (and don't have an open pull request upstream).

Relevant parts from the conversation in #58298:

@SergeyBiryukov in https://core.trac.wordpress.org/ticket/58298#comment:3:
> > The `Text_Diff` library is an external dependency, however, AFAIK it is no longer externally maintained.
> 
> The [https://github.com/pear/Text_Diff pear/Text_Diff] project on GitHub had a release in 2019 and appears to have [https://github.com/pear/Text_Diff/commit/14a70077f643739639845cebaea36a58d647b8c7 recent commits], though is indeed no longer actively maintained, as it has been deprecated and superseded by [https://github.com/horde/Text_Diff Horde_Text_Diff].
> 
> We could probably consider switching to the newer package. On at least one occasion though, we encountered a bug in the upstream version, see comment:5:ticket:41526, that was patched using a different approach in [42028] / #41526. As far as I can tell, there were [https://github.com/horde/Text_Diff/commits/master/lib/Horde/Text/Diff/Engine/Native.php no further changes] upstream after the [comment:12:ticket:41526 commits in question], so the issue still exists there.
> 
> I have not yet checked whether a [https://github.com/pear/Text_Diff/pull/7 similar fix for pear/Text_Diff] has the same issue.
>
> > I wonder if it may be prudent to create a repo to maintain this code as a package within the WP organisation ?
> 
> Would it be worth comparing the current code in core with the [https://github.com/pear/Text_Diff pear/Text_Diff] version and checking if a switch would be possible? Otherwise, it looks like we may indeed have to continue maintaining this package for the time being, either in core or separately, to ensure compatibility with newer PHP versions.


@jrf in https://core.trac.wordpress.org/ticket/58298#comment:6:
> Yes, I think it would be very good if we could take the following actions (probably in a separate ticket though):
> * Compare the current version of the package in WP Core with the upstream version of `pear/Text_Diff`.
> * Compare the current version of the package in WP Core with the upstream `horde/Text_Diff` package.
> 
> Based on the findings, discuss follow-up steps.
> 
> If we'd decide to upgrade to either the newer version of `pear/Text_Diff` or to `horde/Text_Diff`, I do still think adding at least _some_ tests to safeguard the integration would be a good thing. That way we can also safeguard that the upgrade does not cause any avoidable problems (at least for those situations which we are testing for).

@oglekler in https://core.trac.wordpress.org/ticket/58298#comment:10:
> This open PR is addressing the issue we had fixed from our side: https://github.com/pear/Text_Diff/pull/8/files"	jrf
	35331	Update external Prototype library to 1.7.3		External Libraries		normal	normal	Awaiting Review	enhancement	new	has-patch	2016-01-06T16:36:45Z	2025-06-11T22:45:00Z	"Mostly bug fixes for newer versions of IE, including a very annoying ""This page uses Java"" popup.

[https://github.com/prototypejs/prototype/compare/1.7.1...1.7.3 Commits between 1.7.1 and 1.7.3]

[http://prototypejs.org/2014/04/18/prototype-1-7-2 1.7.2 announcement]

[http://prototypejs.org/2015/09/24/prototype-1-7-3 1.7.3 announcement]

I could only see it breaking things if people (like me) have added work arounds for the old version?"	mikemanger
	48499	request: bundle unminified jQuery		External Libraries	5.2.4	normal	normal	Awaiting Review	enhancement	new		2019-11-05T10:24:47Z	2019-11-05T15:53:15Z	"This is a follow-up to #47020.

WordPress is including a patched jQuery 1.12.4 now as we require this version but need to patch in security related fixes; whereas jQuery is supporting only newer versions. However we do not include an unminified jQuery. As a result this makes this makes it very hard to verify certain which patches are included, as the source code is not available, and the minification process differs from jQuery's therefore an online diff contains a lot of false positives.

To have verifiable patches I'd like to request that we please keep a list of fixes somewhere (whether it's ticket numbers or full documentation), start including an unmodified jQuery, and verify the bundled jQuery contains all patches post 1.12.4.

"	pacifika
	54802	Allow post_comments_feed_link to disable feed output		Feeds		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-01-12T16:47:31Z	2022-01-12T16:47:39Z	"Using `add_filter( 'post_comments_feed_link', '__return_false');` one would expect to disable ""Comment feeds"".
It's not the case, because `$x = false; isset($x) === true;`

https://github.com/WordPress/wordpress-develop/pull/2150"	drzraf
	50498	"Change ""html"" to ""HTML"" in atomlib.php"		Feeds		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-06-28T16:47:35Z	2021-01-22T11:18:44Z	"Follow #50473, there is a string in {{{wp-includes\atomlib.php}}} 

https://core.trac.wordpress.org/browser/tags/5.4/src/wp-includes/atomlib.php#L217


{{{
Invalid content in element found. Content must not be of type text or html if it contains markup.
}}}
"	man4toman
	59311	Error on feed link		Feeds	6.3.1	normal	major	Awaiting Review	defect (bug)	new		2023-09-07T13:32:54Z	2023-09-07T13:32:54Z	"Hi!

I am revising a web in my job, and I have saw that there is an error in the feed link, it shows all code instead the feed's page.

I hope that you could revise and solve this problem.

Regards,

Rubén."	rubenbitrian
	47623	Feeds: <lastBuildDate> has incorrect date		Feeds	5.2.2	normal	major	Awaiting Review	defect (bug)	new	has-patch	2019-06-29T00:39:32Z	2026-10-22T05:19:17Z	"The feed shouldn't use only the 'post_modified_gmt' to define the lastBuildDate it does not always correspond to the date to be used.
So, on the file wp-includes/feed.php
Instead of 
{{{#!php
<?php
	// Extract the post modified times from the posts.
	$modified_times = wp_list_pluck( $wp_query->posts, 'post_modified_gmt' );
}}}
Should be
{{{#!php
<?php
	// Extract the post modified times from the posts.
	$modified_times = wp_list_pluck( $wp_query->posts, 'post_modified_gmt' );
	$modified_times = array_merge( $modified_times, wp_list_pluck( $wp_query->posts, 'post_date_gmt' ) );
}}}

this is causing the feed to not update the lastBuildDate when you schedule the post.
"	gustavogomes
	57763	RSS Feed not valid		Feeds	6.1.1	normal	major	Awaiting Review	defect (bug)	new		2023-02-17T22:00:07Z	2024-07-26T14:39:10Z	"Hi

By checking my RSS Feed on the W3.org-site I got ""Blank line before XML declaration"" and ""not valid"".

Therefore I removed ALL the blank lines in feed-rss.php, feed-rss2.php and feed-rss2-comments.php are and it works now.

So I highly recommend to update those files in the next update.

Regards
Markus"	donsenilo1968
	50159	Simplepie 1.5.5 - code review and modifications - fix SimplePie cache bug		Feeds	5.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-05-13T21:11:44Z	2022-10-20T00:22:11Z	"* deprecating files and classes
* renaming files and classes for code consistancy
* adopting extended wp class registering available since SimplePie 1.3.3 (SimplePie_Registry)

replace ticket #43357

tested with dashboard widget ""WordPress Events and News"""	arena
	59082	Titles and descriptions in RSS feeds need to use CDATA to encode special characters.		Feeds	6.3	normal	major	Awaiting Review	defect (bug)	new		2023-08-11T21:09:10Z	2023-08-12T04:03:44Z	"Only some RSS XML tag values are enclosed in CDATA, but all values that include special characters should be enclosed in CDATA so we can encode them, like UTF8, emojis, etc. (see https://validator.w3.org/feed/).

For example the item description in feed-rss.php uses CDATA:

{{{
<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
}}}

But the channel description does not:

{{{
<description><?php bloginfo_rss( 'description' ); ?></description>
}}}

Only some description tags use CDATA:

{{{
wordpress/wp-includes$ grep '<description>' feed*
feed-rdf.php:	<description><?php bloginfo_rss( 'description' ); ?></description>
feed-rdf.php:		<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
feed-rdf.php:		<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
feed-rss2-comments.php:	<description><?php bloginfo_rss( 'description' ); ?></description>
feed-rss2-comments.php:			<description><?php echo ent2ncr( __( 'Protected Comments: Please enter your password to view comments.' ) ); ?></description>
feed-rss2-comments.php:			<description><![CDATA[<?php comment_text_rss(); ?>]]></description>
feed-rss2.php:	<description><?php bloginfo_rss( 'description' ); ?></description>
feed-rss2.php:			<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
feed-rss2.php:			<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
feed-rss.php:	<description><?php bloginfo_rss( 'description' ); ?></description>
feed-rss.php:		<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
}}}

And **none** of the title tags use CDATA:


{{{
wordpress/wp-includes$ grep '<title>' feed*
feed-atom-comments.php:		<title>
feed.php:	<title>' . $rss_title . '</title>
feed-rdf.php:	<title><?php wp_title_rss(); ?></title>
feed-rdf.php:	<title><?php the_title_rss(); ?></title>
feed-rss2-comments.php:	<title>
feed-rss2-comments.php:		<title>
feed-rss2.php:	<title><?php wp_title_rss(); ?></title>
feed-rss2.php:		<title><?php the_title_rss(); ?></title>
feed-rss.php:	<title><?php wp_title_rss(); ?></title>
feed-rss.php:		<title><?php the_title_rss(); ?></title>
}}}

I found this issue because a site's title contained an encoded special character and an RSS reader refused to parse the XML because the title value was not in a CDATA enclosure.

js.
"	jsmoriss
	49171	Trying to get property 'post_type' of non-object in wp-includes/link-template.php on line 682		Feeds		normal	normal	Awaiting Review	defect (bug)	new		2020-01-11T17:19:45Z	2025-06-24T14:12:22Z	"Hi there,

I believe this maybe a bug or at least an unchecked condition (post/page does not exist) throwing the above error. I have legit crawlers visiting that cause these errors.

Running 5.3.2. All plugins disabled (except for Health Check & Troubleshooting). Theme: Twenty.

How to re-produce : https://your.site.com/news2020/feed/atom/

It is key that the slug for the post/page does NOT (NO longer) exists. 

Stack trace:
1. {main}() /Users/me/root/index.php:0
2. require() /Users/me/root/index.php:17
3. require_once() /Users/me/root/wp-blog-header.php:19
4. do_action() /Users/me/root/wp-includes/template-loader.php:13
5. WP_Hook->do_action() /Users/me/root/wp-includes/plugin.php:478
6. WP_Hook->apply_filters() /Users/me/root/wp-includes/class-wp-hook.php:312
7. redirect_canonical() /Users/me/root/wp-includes/class-wp-hook.php:288
8. is_front_page() /Users/me/root/wp-includes/canonical.php:498
9. WP_Query->is_front_page() /Users/me/root/wp-includes/query.php:456
10. WP_Query->is_page() /Users/me/root/wp-includes/class-wp-query.php:3879
PHP Notice:  Trying to get property 'post_type' of non-object in /Users/me/root/wp-includes/link-template.php on line 682


A variant (same sort of problem) throws an error in class-wp-query.php with the following:

https://your.site.com/news2020/feed/


   "	ronald2020
	64323	fetch_rss() uses incorrect function signature for XML `start_element_handler`		Feeds		low	minor	Awaiting Review	defect (bug)	new	reporter-feedback	2025-11-30T19:08:38Z	2025-12-01T05:47:45Z	"We have a plugin that relies on `fetch_rss`, which uses MagpieRSS.  We found this warning in the logs


{{{
[30-Nov-2025 18:44:05 UTC] PHP Warning:  MagpieRSS::feed_start_element(): Argument #3 ($attrs) must be passed by reference, value given in /path/to/web/wp-includes/rss.php on line 81
}}}

We tracked this warning down to [https://github.com/WordPress/wordpress-develop/blob/d676a07f9242d98f8d28c4d0064543a58560e304/src/wp-includes/rss.php#L112 `feed_start_element` on line 112] :

{{{
function feed_start_element($p, $element, &$attrs) {
}}}

This is the `start_handler` that is passed to `xml_set_element_handler` at [https://github.com/WordPress/wordpress-develop/blob/d676a07f9242d98f8d28c4d0064543a58560e304/src/wp-includes/rss.php#L77-L78 line 78] . 

However the PHP documentation at https://www.php.net/manual/en/function.xml-set-element-handler.php shows:

""The signature of the handler must be:""

{{{
start_element_handler(XMLParser $parser, string $name, array $attributes): void
}}}

Perhaps the 3rd parameter of `feed_start_element` should be `$attrs` instead of `&$attrs` ?

Thanks!"	avibrender
	43604	Add option to completely disable syndication feeds		Feeds		normal	normal	Awaiting Review	enhancement	reopened		2018-03-21T21:04:46Z	2019-01-16T06:50:09Z	"Some site owners do not want to provide RSS/Atom/whatever feeds, for various reasons. Right now, there is no way to globally disable feeds. The current way to disable feeds involves:

 - hiding feed URLs from the end user (by removing the ""Meta"" widget from the sidebar and removing the feed links from the header)
 - filtering the functions that write the feed URLs
 - disabling feed endpoints by deleting the array containing the feed types in WordPress core
 - hooking in to the `do_feed_x` actions to redirect the user to a 404

See for example the instructions for disabling feeds one user provides [https://wordpress.stackexchange.com/questions/33072/how-to-remove-feeds-from-wordpress-totally here].

It would be nice if there was a setting in `options-reading.php` to disable syndication feeds altogether, which disables display and generation of the feeds across the whole site."	seanleavey
	66505	Add unit tests for WP_SimplePie_Sanitize_KSES		Feeds		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T02:12:19Z	2026-11-06T02:15:01Z	"The `WP_SimplePie_Sanitize_KSES` class (`src/wp-includes/class-wp-simplepie-sanitize-kses.php`), which `fetch_feed()` uses to sanitize the data of a feed with KSES, has no test. This ticket adds unit tests for its `sanitize()` method, in `tests/phpunit/tests/feed/wpSimplePieSanitizeKses.php`:

 * Data of an HTML or XHTML type goes through `wp_kses_post()`, so the tags and attributes that are not allowed (scripts, event handlers) are removed and the allowed ones are kept.
 * Data of a text type is escaped by the parent class, and the surrounding whitespace is trimmed.
 * Data of the ""maybe HTML"" type is handled as HTML when it has an entity or a closing tag, and as text otherwise.
 * Base64 data is decoded before it is sanitized.
 * HTML data is converted to the output encoding when it is not UTF-8.

I checked that no existing ticket or open pull request adds tests for this class."	hmbashar
	66478	Tests: Add unit coverage for bloginfo_rss()		Feeds		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-04T16:20:20Z	2026-11-04T16:21:01Z	"Previously, `bloginfo_rss()` had no direct `PHPUnit` coverage with `@covers`.

This change adds a dedicated test class covering the `bloginfo_rss` filter and echoed output. `get_bloginfo_rss()` already covers value conversion; this focuses on the display filter + echo contract.

Test-only: no production code changes."	shailu25
	66479	Tests: Add unit coverage for comments_link_feed()		Feeds		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-04T16:24:14Z	2026-11-04T16:25:47Z	"Previously, `comments_link_feed()` had no direct `PHPUnit` coverage with `@covers`.

This change adds a dedicated test class covering the `comments_link_feed` filter and escaped feed output, using a local post fixture.

Test-only: no production code changes."	shailu25
	66480	Tests: Add unit coverage for get_self_link()		Feeds		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-04T16:30:14Z	2026-11-04T16:31:04Z	"Previously, `get_self_link()` had no direct `PHPUnit` coverage with `@covers`.

This change adds a dedicated test class covering scheme-aware feed self URL construction from `REQUEST_URI`.

Test-only: no production code changes."	shailu25
	66525	Tests: Add unit tests for the server-side rendering of the RSS block		Feeds		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T07:10:48Z	2026-11-06T07:11:15Z	"The `render_block_core_rss()` function in `src/wp-includes/blocks/rss.php` is not referenced by any test.

This ticket adds tests for the feed URL (missing, of this site, or with an error), the items and their title, link, date, author and excerpt, the attributes of the link, and the classes of the list. The feed is mocked with the `pre_http_request` filter."	hmbashar
	58939	Option to bypass fetch_feed cache on call.		Feeds		normal	minor	Awaiting Review	feature request	new		2023-07-30T20:47:35Z	2023-07-30T20:47:35Z	"I have a use case where users are limited to the normal 12 hour cache restrictions, but I would like to enable admins to be able to bypass the cache and pull the feed. 

Maybe a filter or optional parameter that would allow this? "	picard102
	59729	By setting int to the parameter of the function path_is_absolute(), a Notice will always be output.		Filesystem API	2.5	normal	trivial	Awaiting Review	defect (bug)	new	has-patch	2023-10-25T10:12:11Z	2026-10-26T16:37:55Z	"I found this problem from my client's server logs.

The simplest way to reproduce it is as follows.

{{{
% wp eval 'var_dump(path_is_absolute(1));'
 PHP Warning:  Trying to access array offset on value of type int in /var/www/html/wp-includes/functions.php on line 2123
Warning: Trying to access array offset on value of type int in /var/www/html/wp-includes/functions.php on line 2123
 PHP Warning:  Trying to access array offset on value of type int in /var/www/html/wp-includes/functions.php on line 2133
Warning: Trying to access array offset on value of type int in /var/www/html/wp-includes/functions.php on line 2133
bool(false)
}}}


This occurs because the first character of String is processed as an array within the function.

The client had written code like this:

{{{
$new_path = path_join( $path, get_the_ID() );
}}}

I think get_the_ID() should be cast to String, but why not make the function return False if it's not a String as well?"	mt8.biz
	50287	FS_METHOD=ssh2 breaks some plugins		Filesystem API	5.4.1	normal	minor	Awaiting Review	defect (bug)	new	has-patch	2020-05-30T21:44:41Z	2020-08-27T20:24:02Z	"Some plugins expect WS_Filesystem() call to work properly without options.
SSH2 method requires several options to work. When plugin does not call request_filesystem_credentials() it becomes broken by FS_METHOD=ssh2 constant.

WordPress can use FTP_* constants as defaults in WP_Filesystem_SSH2 when none options are provided to constructor."	denkoren
	63173	FS_Method with ftpext and Core Updates		Filesystem API		normal	major	Awaiting Review	defect (bug)	new	dev-feedback	2025-03-25T18:07:27Z	2026-01-24T23:12:46Z	"This is one of the strangest bugs I've found so far. 

There is a weird behaving section in the code:
https://github.com/WordPress/wordpress-develop/blob/b943118a5b1967591fa1d15ee1ee87f93b7c0147/src/wp-admin/includes/update-core.php#L1057-L1073

When using `FS_METHOD` `ftpext`, it behaves in the following way:
- During a core update, it checks for files in the update package:
1. It checks for readme.html and it finds it
2. It checks for version.php and it doesn't find it. 
But both do exist.

So it ends in this error: `The update could not be unpacked`

Given how generic everything is, this doesn't make sense. FTP Methods for `FS_METHOD` have been my nemesis for a decade.

I've pushed my current FTP setup in case anyone wants to test this issue on top of this:
https://github.com/WordPress/wordpress-develop/pull/8589

Once set-up, for `wp-config.php` we need:
{{{ 
define( 'FS_METHOD', 'ftpext' );
define( 'FTP_USER', 'admin' );
define( 'FTP_PASS', 'password' );
define( 'FTP_HOST', 'ftp' );
define( 'FTP_SSL', false );
}}}

I'm going to add some screenshots to show the behaviour with more detail"	SirLouen
	40195	No provision to set paths for sftp (ssh2)		Filesystem API	4.7.2	normal	normal	Awaiting Review	defect (bug)	new		2017-03-18T13:36:00Z	2017-03-18T13:36:00Z	"I have a server which has different paths for the web server verses when accessed via sftp and consequently updates fail with ""Unable to locate WordPress content directory (wp-content).""

According to this page [https://codex.wordpress.org/Editing%20wp-config.php#Enabling_SSH_Upgrade_Access]  there are 3 options for this exact purpose: FTP_BASE, FTP_CONTENT_DIR, FTP_PLUGIN_DIR. 

Setting these has no affect. 

This is confirmed by turning on debug and the following error is generated:
""Installation failed: Looking for /usr/local/www/+++++/www/wp-content/plugins in /"" 

The ""wp-admin/includes/class-wp-filesystem-base.php"" file reveals the find_folder function only processes the overrides for ftp services. 

{{{
        public function find_folder( $folder ) {
                if ( isset( $this->cache[ $folder ] ) )
                        return $this->cache[ $folder ];
 
                if ( stripos($this->method, 'ftp') !== false ) {
                        $constant_overrides = array(
                                'FTP_BASE' => ABSPATH,
                                'FTP_CONTENT_DIR' => WP_CONTENT_DIR,
                                'FTP_PLUGIN_DIR' => WP_PLUGIN_DIR,
                                'FTP_LANG_DIR' => WP_LANG_DIR
                        );
}}}

Seems to be a strange requirement on the ssh2 method that the paths must align exactly with the web server so I consider this a bug. Others may consider it an enhancement in which case it would be a good idea if the codex entry made it clear only ftp access methods support configurable paths (ssh must align with the webserver)."	fsrs
	49719	PHP warning when updating ro_RO translation to latest version		Filesystem API	5.3.2	normal	minor	Awaiting Review	defect (bug)	new	close	2020-03-28T15:22:55Z	2025-10-16T15:04:31Z	"The PHP warning is this:

{{{
Warning: chmod(): Operation not permitted in /var/www/html/wp-admin/includes/class-wp-filesystem-direct.php on line 168
}}}

Everything seems to work fine after that. I have a big number of plugins but do not know how to test this with them disabled. I use a customized version of TwentyTwenty.

Thank you."	silviubogan
	63197	Sanity Checks in mkdir and delete for FTPext Filesystem		Filesystem API		normal	major	Awaiting Review	defect (bug)	new	dev-feedback	2025-03-29T13:55:16Z	2025-12-01T03:01:29Z	"I've noted that during the process of Core updating with FTP ext with a specific legit FTP setup I've created using the `wordpress-develop` + some edits in the docker containerization system, the update was throwing a ton of errors and ultimately failing.

This is the final revision of a series of reports to solve this. 

Here is the FTP setup
https://core.trac.wordpress.org/ticket/63172

This patch is also needed, because it sorts some big issues with `exists` method in FTPext
https://core.trac.wordpress.org/ticket/63173

With these two patches set-up and running, now we can proceed to test this.

Instructions to reproduce

1. Set up a FTP. Ideally the root of the FTP should be / in the WP folder. For example, if you access your FTP with your credentials, your `wp-content` should be straight in `/wp-content/`, not in something like `/var/www/wp-content` or `/home/youruser/website/wp-content/`

2. Set the `ftpext` `FS_METHOD`

3. Set your credentials in `wp-config.php` minimally:

{{{
define( 'FS_METHOD', 'ftpext' );
define( 'FTP_USER', '.......' );
define( 'FTP_PASS', '.......' );
define( 'FTP_HOST', '......' );
}}} 

4. Run a core update and see all the errors. 
"	SirLouen
	55688	Update size function in WP_Filesystem_Direct		Filesystem API	2.5	normal	normal	Awaiting Review	defect (bug)	new	close	2022-05-06T04:48:11Z	2022-05-06T19:21:54Z	"Related: #55678

Replying to [comment:8 costdev]:
> 
> [https://github.com/WordPress/wordpress-develop/pull/2677 PR2677] was discussed in the scrub. The PR patches a different function and this should be handled in a different ticket.
"	mukesh27
	47817	Using file editor ignores schema and always uses http		Filesystem API	5.2.2	normal	normal	Awaiting Review	defect (bug)	new	close	2019-08-01T22:52:15Z	2025-10-17T11:10:11Z	"When editing a template/theme or plugin file with the WordPress file editor, the internal loopback which I assume uses wp-json does not honor the schema of the siteurl.

For example:
Siteurl: https://kinsta.com

The request will come through as http://kinsta.com
If SSL is forced at the server level, this will force the https:// schema.

This was recently discovered and was failing because a user's SSL intermediate chain was missing, so the site would edit fine without HTTPS forced, but with SSL forced it would fail.

We were able to identify the chain issue due to this error occuring when force HTTPS was enabled in Nginx:

```Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.```"	jeffpaulkinsta
	59781	Add tests for wp_delete_file_from_directory		Filesystem API		normal	normal	Future Release	enhancement	new	has-patch	2023-10-31T22:12:29Z	2026-07-23T17:58:02Z	"While testing this I found you could pass stream URL to it but all failed without error apart from file:// so changed the code to return false for others

I am not sure why we allow Streamed to be used but that is what the code allowed :-)"	pbearne
	66390	WP_Filesystem_SSH2 should verify the server's host key		Filesystem API		low	normal	Awaiting Review	enhancement	new	has-patch	2026-10-27T13:40:48Z	2026-10-29T07:59:06Z	"`WP_Filesystem_SSH2::connect()` opens the connection with `ssh2_connect()` and then authenticates, without checking the server's host key. The `hostkey` option passed to `ssh2_connect()` only sets which key algorithms are accepted. It doesn't pin a key.

The PHP manual for `ssh2_connect()` recommends checking the key with `ssh2_fingerprint()` after connecting.

Possible approaches:

- Accept an expected fingerprint, through a constant such as `FTP_HOST_FINGERPRINT` or a field in the connection form. Compare it with `ssh2_fingerprint()` before authenticating, and refuse the connection if they don't match.
- Store the fingerprint the first time the site connects and refuse later connections if it changes, like OpenSSH's `known_hosts`.

Props lboy for the original report on HackerOne."	johnbillion
	55469	WP_Filesystem_SSH2::chmod() should use ssh2_sftp_chmod()		Filesystem API		normal	normal	Awaiting Review	enhancement	new	has-patch	2022-03-27T17:10:57Z	2022-03-27T17:13:32Z	"`WP_Filesystem_SSH2::chmod()` currently uses `::run_command( sprintf( 'chmod %o %s', $mode, escapeshellarg( $file ) ), true )` (which calls [https://www.php.net/manual/en/function.ssh2-exec.php ssh2_exec()]).  It has essentially been this way since `WP_Filesystem_SS2` was introduced in [8812].

However, some sftp servers do not allow `ssh2_exec()` to be run, generating PHP warnings such as:

> PHP Warning:  ssh2_exec(): Unable to request command execution on remote host

and on those severs all calls to `WP_Filesystem_SSH2::chmod()` basically become noops.

Luckily, starting with version [https://pecl.php.net/package/ssh2/0.12 0.12], the ssh2 extension introduced [https://www.php.net/manual/en/function.ssh2-sftp-chmod.php ssh2_sftp_chmod()], and `WP_Filesystem_SSH2::chmod()` should be changed to use it."	pbiron
	56301	Add File Backup Feature in wp_edit_theme_plugin_file()	sajjad67	Filesystem API		normal	normal	Awaiting Review	feature request	assigned	dev-feedback	2022-07-28T22:23:00Z	2023-07-17T15:07:22Z	"I thought about the security before creating this ticket, but still let's discuss about the possibility of it for once! The way it works now is if you edit a file using the plugin/theme-editor.php, there's no way of going back! It only checks for any Fatal Error!

Now what i think, would it be good/bad if we add a feature to create a (temp) backup of each file edited, like we do for posts/pages as revisions! There's lots to take into consideration before we discuss about it, i know! But is there anyone else thinking like me this could be a feature!!

Let me know if it's open for any further discussion!"	sajjad67
	51287	Administrators & Editors can't create localfile links in a multisite installation		Formatting		normal	major	Awaiting Review	defect (bug)	new		2020-09-10T11:08:31Z	2020-09-24T00:02:56Z	"Steps to reproduce:

Clean WordPress Multisite installation.
Create a user with Administrator (or Editor) capabilities, not Super Admin.
Login as the new user.
Create a new page, and create a local file link in the visual editor.
Enter a local file URL, e.g. **localfile:E:\foobar\**
Publish and refresh the page.
The link has now been stripped into a **\foobar\.**

Note, if you try this with a Super Admin user it works as expected, and the link is correctly created.

Why does WP strip the **localfile:E:** part of the link if the user is not an admin? 

"	peikgabriel
	56531	Aiming to “kill” entities, `sanitize_title_with_dashes()` happens to eat content		Formatting		normal	major	Awaiting Review	defect (bug)	new		2022-09-08T00:01:54Z	2022-09-25T04:52:37Z	"{{{
$title = preg_replace( '/&.+?;/', '', $title );
}}}

This regex deletes the part of the title between an ampersand and a semicolon. I ran into this issue when testing ASCII symbols and punctuation but it may affect titles using a semicolon instead of an inner period, and happen to use an ampersand before. Semicolon is less common, even less in titles, but WordPress should not make assumptions nor impose limitations.

In the process, `sanitize_title_with_dashes()` does again (cf. #56530) part of the job of `remove_accents()` but badly, deleting `&eacute;` instead of replacing it with `e`, and so on.

I’d suggest decoding all HTML entities, then reencoding `<`, `>`, `&`:
{{{#!php
<?php
$title = html_entity_decode( $title );
$title = preg_replace( array( '/</', '/>/', '/&/' ), array( '&lt;', '&gt;', '&amp;' ), $title );
}}}"	anrghg
	59158	Altering Details block styles doubling .wp-block-details class in the output		Formatting	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-08-21T12:32:34Z	2023-08-21T13:47:23Z	"By defaut Details block styles outputs styles for inner paragraph like:
{{{
.wp-block-details>:not(summary) {
    margin-block-end: 0;
    margin-block-start: var(--wp--style--block-gap);
}}}
----
If I want to change margin-block-start on the block level styles I use:

{{{
.wp-block-details>:not(summary) {
    margin-block-start: 0;}
}}}
BUT it outputs:
{{{
.wp-block-details.wp-block-details>:not(summary) {
    margin-block-start: 0;}
}}}
----
HOWEVER,
If I use the same in the Additional CSS section of Styles Editor it produce expected:
{{{
.wp-block-details>:not(summary) {
    margin-block-start: 0;}
}}}


"	randewoo
	60191	Ampersand in non-entities such as &a; is not escaped		Formatting		normal	normal	Awaiting Review	defect (bug)	new		2024-01-04T10:55:42Z	2026-09-29T21:22:45Z	"Wordpress escapes ampersand as {{{&#038;}}} in many places. 

It checks if the ampersand is part of any entity before conversion, as the ampersand in an entity shouldn't be escaped. However the regex also passes things such as {{{&a;}}} which is not an entity, and wrongly doesn't convert the ampersand there. 

To correct that it has to be checked if the pattern matched is really an entity. Which can be done by using something like html_entity_decode and the decode for an entity would be different from the original string. 

The block editor somehow right checks and prevents strings such as {{{&a;}}} to pass but older posts and something inserted by plugins will have this bug. "	superpoincare
	56530	Combining tilde passes `sanitize_title_with_dashes()` and so do most other diacritics		Formatting		normal	major	Awaiting Review	defect (bug)	new		2022-09-07T23:25:41Z	2022-09-08T11:03:59Z	"Combining diacritics that are not acute, grave, hacek or macron (or the deprecated Vietnamese acute tone mark) are not removed by `sanitize_title_with_dashes()` removing characters individually and explicitly **after** URL-encoding.

If the goal is to remove accents, best would be removing the full class **before** URL-encoding:

{{{
$title = preg_replace( '/\p{M}/u', '', $title );
}}}

But isn’t `remove_accents()` called when removing diacritics?

So I’d suggest moving the combining diacritics part to `remove_accents()`."	anrghg
	62156	Defining custom colors in styles color palette removes other colors from palette in several block editor places		Formatting	6.7	normal	major	Awaiting Review	defect (bug)	new		2024-10-02T09:11:12Z	2024-10-02T09:11:12Z	"Defining custom colors in styles - ""color palette"" removes all other colors from palette in inline formatting (highlight) and other block editor places.

This problematic bug has been reported several times in Gutenberg:
[https://github.com/WordPress/gutenberg/issues/64857]

Since the (longstanding) bug shows effect in the block editor, but seems to be caused in styles - ""color palette"" and is still unresolved in WordPress 6.7-beta1-59156 (Theme: Twenty Twenty-Four), maybe trac would be the correct place to draw attention to it?

"	burnuser
	63379	Fix for deprecated rtrim passing null to parameter		Formatting	6.8	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-05-01T15:30:49Z	2025-06-07T17:10:59Z	"
The **untrailingslashit** function in **formatting.php** passes the **$value** param directly into the PHP **rtrim** function, which only takes **Strings**. Anything else trows a ""Deprecated"" warning (example below). 

In my personal case, Yoast SEO was the culprit in the stacktrace, but this **untrailingslashit** should at least validate and/or cast the **$value** param to String with **strval** before calling **rtrim**.

{{{#!php
<?php
function untrailingslashit( $value ) {
	return rtrim( strval( $value ), '/\\' );
}
}}}

Fixes these types of errors:
**Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-includes/formatting.php on line 2819**"	shanemac10
	43155	Formatting bug with ampasands - WooCommerce Layered Nav		Formatting	4.7.5	normal	normal	Awaiting Review	defect (bug)	new		2018-01-24T14:39:12Z	2018-01-24T14:39:12Z	"I found a problem with the WooCommerce layered nav plugin caused by WordPress itself. When you have products shown filtered by an attribute (for example - red) and then click the number of products to show (such as 45) upon page load the ampasand (&) changes to the HTML entity instead.

I commented out a few lines on wp-includes/formatting (example - line 238 - $curl = preg_replace( '/&(?!#(?:\d+|x[a-f0-9]+);|[a-z1-4]{1,8};)/i', '&#038;', $curl );) which now stops this happening. 

Please have a look as I know this will be overwritten when WordPress is next updated.

Best Regards,

Jim."	jimleeder
	49217	HTML error with the multi-level list in Classic Editor		Formatting	5.3.2	normal	normal	Awaiting Review	defect (bug)	new		2020-01-17T12:25:49Z	2020-01-17T13:11:12Z	"I have recently created a multi-level list which is throwing HTML validation error:
No p element in scope but a p end tag seen.
This error appears when there is some text between the multi-level list as shown here:
Please create a blog post and past these lines there and validate html.
{{{
<h3>DEMO 1:</h3>
<ol>
 	<li>Item 1</li>
 	<li>item 2
This text is the cause of generating the HTML error in ol.
<ul>
 	<li>test of list 1</li>
</ul>
</li>
</ol>
}}}"	yasglobal
	61595	Hyphenation problem in Dutch language		Formatting		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-07-08T14:00:14Z	2024-07-08T16:27:11Z	"In Dutch language there are many letter combinations that should not be hyphenated. I just saw ""i-j"" in stead of ""ij"" the latter is the dutch ""y"". Others are ou, au, ei, oe, ee, oo, aa, but I guess they will not present a problem as they are both vowels. Maybe it's not really a bug :)"	victor50g
	63720	Image Caption Should Not Show In Excerpts (of plugins) via WP Core		Formatting	6.8.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2025-07-18T03:10:26Z	2026-09-28T14:18:58Z	"Hello,

The proposal of Standard posts format currently shows captions in excerpts, (if) image is first with caption (then) the caption is displayed in excerpts. The proposal needs to have paragraph text show in the excerpts first, not the image caption as it is recognized as text/paragraph. In addition, button text shows first if it is first in the format, as this text is rendered similar as image caption. In the standard post format, the paragraph text should always show first (regardless if image is first). If image or gallery format is chosen, it would be applicable to show the captions first, although, that may be decided also, for paragraph text to be first possibly. Screenshot reference: https://prnt.sc/Exms8T7tws4d

Thank you.

Best regards."	vvt10551
	52463	Inline SVG - foreignObject support		Formatting	5.6.1	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2021-02-07T11:06:11Z	2021-02-09T21:20:15Z	"WordPress 5.6.1 mangles SVGs which use the [Foreign Object element](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject).

Consider this minimum viable example:

{{{
<svg xmlns=""http://www.w3.org/2000/svg"" xmlns:xlink=""http://www.w3.org/1999/xlink"">
<foreignObject>
	<blockquote xmlns=""http://www.w3.org/1999/xhtml"">
		Hello
	</blockquote>
</foreignObject>
</svg>
}}}

WordPress adds in some `</p>` which malforms the image:

{{{
<p>
<svg xmlns=""http://www.w3.org/2000/svg"" xmlns:xlink=""http://www.w3.org/1999/xlink"">
<foreignObject></p>
<blockquote xmlns=""http://www.w3.org/1999/xhtml""><p>
        Hello
    </p></blockquote>
<p></foreignObject>
</svg></p>
}}}

This occurs when pasting the raw SVG into the classic editor."	edent
	65871	KSES: the filter property is allowlisted but every filter function value is dropped by safecss_filter_attr()		Formatting	5.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-13T13:49:05Z	2026-08-13T14:01:31Z	"Follow-up to #65832.

`filter` has been in the `safecss_filter_attr()` property allowlist since [52049] (#54336),
and [55564] (#57780) made `url()` values survive. The CSS filter functions were never added
to the function-stripping regular expression at wp-includes/kses.php:3018, so a declaration
using one still contains a `(` when it reaches the check on line 3044 and is dropped in full.

Measured against trunk at [63180], PHP 8.3:

{{{
filter: blur(5px)                          => dropped
filter: brightness(0.4)                    => dropped
filter: contrast(200%)                     => dropped
filter: drop-shadow(16px 16px 20px blue)   => dropped
filter: grayscale(50%)                     => dropped
filter: hue-rotate(90deg)                  => kept
filter: invert(75%)                        => dropped
filter: opacity(25%)                       => dropped
filter: saturate(30%)                      => dropped
filter: sepia(60%)                         => dropped
filter: blur(5px) brightness(0.4)          => dropped
filter: url(#svg-blur)                     => kept
filter: none                               => kept
}}}

The one function that survives shows this is a gap rather than a policy. [63180] added the
transform functions, including `rotate`, and `\brotate(` matches inside `hue-rotate(90deg)`
because the hyphen is a word boundary. The function is stripped from the test string by
accident, leaving `filter: hue-` there, and the declaration passes. Nothing was decided
about `hue-rotate` specifically, and `blur()` is no more or less safe than it is.

This is the same ""allowlisted in name only"" state #65832 described for the SVG presentation
properties, with the same effect: for a user without `unfiltered_html` the property is
unusable in its canonical form.

== Scope

`backdrop-filter` is not in the allowlist at all, so it is out of scope here.
The colour functions `rgb()`, `rgba()`, `hsl()`, `color-mix()` and friends are also dropped
everywhere, but that is #56391 and is not touched by this.

Patch adds the ten filter functions to the same alternation [63180] extended, and covers
each of them plus `filter: none`, `filter: url()`, a `javascript:` url and the unrelated
`opacity` property in the existing data provider."	bejignesh
	56656	Move accent removal from `sanitize_title_with_dashes()` to `remove_accents()`		Formatting		normal	major	Awaiting Review	defect (bug)	new		2022-09-26T12:58:17Z	2022-09-26T12:58:17Z	"When `sanitize_title()` attempts to remove accents, it fails, because neither means does work as expected:

1. It calls `remove_accents()`, but this only converts a handful symbols and a set of precomposed Latin letters to Latin base letters.
2. One of the filters (in `default-filters.php`) it applies calls back `sanitize_title_with_dashes()`, but this only removes five accents for the matter (plus two spacing acutes). Full list of removed combining diacritics: U+0301, U+0341, U+0300, U+0304, U+030C.

So, when a title contains a combining tilde, this gets into the slug. Example:

Title: Eñe [U+0045 U+006E U+0303 U+0065]
Slug: Display: eñe/
Slug: Encoded: en%cc%83e/

This problem was mentioned in #56530.

The proposed solution is to fix `sanitize_title_with_dashes()` as suggested in #56531, and to fix `remove_accents()` by adding:
{{{#!php
<?php
$string = preg_replace( '/\p{M}/u', '', $string );
}}}
"	anrghg
	50197	PHP 7.4 Compatibility with WP 5.4.1 – problem with seems_utf8()		Formatting	5.4.1	normal	normal	Awaiting Review	defect (bug)	new	close	2020-05-17T18:42:09Z	2025-07-23T19:50:52Z	"Since I updated to PHP 7.4 I with the newest WordPress version 5.4.1 I am getting error notices when seems_utf8() from formatting.php is called with an integer as parameter. (This seems to happen when something around Buddypress (v 5.2) leads to calling this function and passes some integer id. I have not found the origin of this yet).

PHP 7.3 still seems to accept that and will still interpret $str[ $i ] in line 904.
From 7.4 this will lead to an error notice “Trying to access array offset on value of type int …”. In addition, after the error notice all special characters on the page rendered are not displayed correctly anymore.
Can you please prevent this from happening? A line in the beginning of the function like
$str = (string) $str;
can fix this error notice.
Maybe there is a more elegant way to prevent this, but I right now I don’t find it …

Best regards
Florian"	fohly
	63131	Possible bug (not strict) use of preg_split in formatting.php		Formatting		normal	minor	Awaiting Review	defect (bug)	new	has-patch	2025-03-20T09:54:47Z	2025-03-20T19:00:06Z	"Hello,

With PHP 8.4 and the latest 6.7.2, I get and error on my home page (using Salient theme if that matters). 

The error is on line 3479 in formatting.php 

$textarr = preg_split( '/(<.*>)/U', $text, -1, PREG_SPLIT_DELIM_CAPTURE ); // Capture the tags as well as in between.

This breaks the home page. it seems to be a lexical warning more than anything else so it can be fixed by suppressing the error

$textarr = @preg_split( '/(<.*>)/U', $text, -1, PREG_SPLIT_DELIM_CAPTURE ); // Capture the tags as well as in between.

This resolves the issue."	pjsgsy
	52820	Possible logic error in wp_trim_excerpt()	SergeyBiryukov	Formatting		normal	normal	Future Release	defect (bug)	reviewing	dev-feedback	2021-03-15T16:26:58Z	2026-08-13T07:30:18Z	"https://core.trac.wordpress.org/browser/tags/5.7/src/wp-includes/formatting.php#L3845

Reading this code, it looks like the `wp_trim_excerpt` filter's `$raw_excerpt` parameter will be empty if `$text` as supplied to the function is empty. This should be the value of `$text` at L3824 should it not? Or do I mis-understand?"	theMikeD
	39190	RSS feed not valid: U+001A or 0x1a		Formatting		normal	normal	Awaiting Review	defect (bug)	new		2016-12-08T21:23:40Z	2019-01-04T09:45:50Z	"I am not sure how is it possible, but one of our users copy/paste text from another website into TinyMCE and content is now filled with strange non-visible Unicode characters `U+001A` / `0x1a` (`001a` in JSON response).

It is not visible in TinyMCE or frontend, but it is saved in database and also RSS feed is considered as invalid (displayed without problem in browser, but characters are there).

RSS feed is processed by other custom scripts and we are receiving following messages (different validators):

`PCDATA invalid Char value 26`

`Input is not proper UTF-8, indicate encoding! Bytes: 0x1A`

I can replace those characters and add a check before saving content into database, but it should not be possible for users to break their feeds by copying content into TinyMCE?"	pavelevap
	58616	Replace apostrophe with hyphen for slugs		Formatting		normal	major	Awaiting Review	defect (bug)	new		2023-06-25T15:21:18Z	2023-06-25T15:43:57Z	"I wonder if anybody ever complained about WordPress deleting apostrophes when generating slugs, unlike news outlets replacing them with hyphens for readability.

Title-derived slugs are designed for human readability, but WordPress defeats the point by removing all apostrophes. In the resulting mess, genitives appear like plurals, it’s becomes its, and in other locales even more confusing or ridiculous constructs build up like when “l’a” (has it) becomes “la” (the, in French).

Letter apostrophe and ʻokina need to become underscores along the same lines.

A solution is to add the following near the start of `sanitize_title_with_dashes()` in `wp-includes/formatting.php`:
{{{#!php
<?php
/**
 * Converts punctuation apostrophe to hyphen-minus.
 */
$p_s_title = str_replace(
	array(
		'’',  // Punctuation apostrophe.
		'\'', // ASCII apostrophe.
	),
	'-',
	$p_s_title
);

/**
 * Converts letter apostrophe and ʻokina to underscore.
 */
$p_s_title = str_replace(
	array(
		'ʼ',  // Letter apostrophe.
		'ʻ',  // ʻokina.
	),
	'_',
	$p_s_title
);
}}}

A current workaround consists in adding this code in a child theme’s `functions.php`:
{{{#!php
<?php
/**
 * Filters a sanitized title string respecting apostrophes.
 *
 * @courtesy WordPress
 * @see sanitize_title()
 * @link https://developer.wordpress.org/reference/functions/sanitize_title/
 *
 * @param string $p_s_title     Sanitized title.
 * @param string $p_s_raw_title The title prior to sanitization.
 * @param string $p_s_context   The context for which the title is being sanitized.
 */
add_filter(
	'sanitize_title',
	function( $p_s_title, $p_s_raw_title, $p_s_context = 'save' ) {
		if ( '' === $p_s_raw_title || false === $p_s_raw_title ) {
			$p_s_raw_title = $p_s_title; // Already $fallback_title.
		}
		$p_s_title = $p_s_raw_title;

		/**
		 * Converts punctuation apostrophe to hyphen-minus.
		 */
		$p_s_title = str_replace(
			array(
				'’',  // Punctuation apostrophe.
				'\'', // ASCII apostrophe.
			),
			'-',
			$p_s_title
		);

		/**
		 * Converts letter apostrophe and ʻokina to underscore.
		 */
		$p_s_title = str_replace(
			array(
				'ʼ',  // Letter apostrophe.
				'ʻ',  // ʻokina.
			),
			'_',
			$p_s_title
		);

		if ( 'save' === $p_s_context || 'display' === $p_s_context ) {
			$p_s_title = remove_accents( $p_s_title, $p_s_locale = 'fr_FR' );
			$p_s_title = sanitize_title_with_dashes( $p_s_title, '', $p_s_context );
		}

		return $p_s_title;
	},
	PHP_INT_MAX,
	3
);
}}}"	anrghg
	62651	Reverse order of menu items in default theme		Formatting	6.7.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-12-05T11:18:45Z	2026-01-16T14:56:02Z	When creating a Chinese Traditional wordpress installation and installing the latest woocommerce theme twentytwentyfive I noticed that the order of items in the header menu is reversed. Maybe this is an RTL issue?	kaotec
	57021	Sanitize should accept broader types		Formatting	6.2	normal	normal	Awaiting Review	defect (bug)	new	close	2022-11-07T14:39:00Z	2024-05-08T20:48:13Z	"by default $_GET/$_POST can be string|array type.

All sanitize functions accept only string, which makes it necessary to validate $_GET/$_POST for `is_string` all the time before calling sanitize function to avoid PHP notices.

Instead sanitize function should accept mixed param and validate string internally."	kkmuffme
	51353	Smart Quote Bug		Formatting	5.5.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-09-18T22:20:57Z	2020-09-18T23:21:36Z	"Hi there,
There is a bug when you type a word between quotes """" at the end of a line, when nothing is followed after the last quote, it will be only be one directional way like that : « « 
It seems to work correctly only if the quotes are followed by a space and a character.

eg: ""Hello"" world will return « Hello » world
""Hello world"" will return « Hello world«

Thanks to take time to look at it."	xanathos
	64709	Stretchy Heading inside Media & Text block don't render correct in Firefox browser.		Formatting	6.9.1	normal	normal	Awaiting Review	defect (bug)	new		2026-02-23T17:14:04Z	2026-03-18T19:59:01Z	"Tested with Firefox Developer v. 148,0b15 (64-bit) and standard Firefox v. 147.0.4 (64-bit)

When using Stretchy Heading or Stretchy Paragraph inside the Media & Text block, it renders fine in Chrome, Edge, Android and Brave browsers. **But do not scale properly in FireFox browsers**.
I first tried on staging site with own theme. Then tested in FireFox browser with Playground. 
Problem both on frontend and backend."	clauskofoed
	30495	Unicode character U+000B is not removed by sanitize_file_name		Formatting	4.0.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2014-11-25T11:37:08Z	2026-10-13T11:43:08Z	"It seems that the following expression is true:

{{{
json_encode(sanitize_file_name(json_decode('""\u000B""'))) == ""\u000b""
}}}

On Google App Engine, for example, a file name with a U+000B character cannot be saved.

Since the description of the function states:

  Removes special characters that are illegal in filenames on certain
  operating systems and special characters requiring special escaping
  to manipulate at the command line.

... then I think this is a bug.

Thanks!"	Craxic
	39188	Wrapping paragraph tags around 'Read More' link stripped out of custom post type		Formatting	4.7	normal	normal	Awaiting Review	defect (bug)	new		2016-12-08T19:42:53Z	2019-03-15T02:08:28Z	"My Genesis child-theme modifies the 'Read More' link in posts and custom post types by stripping out the 3 dots (hellipsis) after the link text, changing the text string, and adding styling attributes. The anchor link is wrapped in a set of p-tags. 

When I updated WordPress Core in my local development environment from version 4.6.1 to 4.7, the wrapping p-tags were stripped out, and the anchor tag wrapping the 'Read More' link slid up into the preceding paragraph of text.  The padding added to the paragraph tags wrapping the link disappeared, and the link styling became in-line to the preceding paragraph text (not what I wanted). 

I was able to install a fresh copy of my local dev site and then reran the WP Core update, reproducing the problem. I'm not sure why the wrapping paragraph tags are getting stripped out.  For now, I can work around the problem by running WP v4.6.1, which is not an optimal, long-term solution. 

To see an example of how the 'Read More' links are supposed to appear, visit [http://alb.spiralwebdb.com] and view the custom posts on the front page under 'Practice Areas'. A screenshot of the displaced 'Read More' links is attached as a PNG file."	yogaman5020
	64463	XML Escape Codes Applied to RSS and Changes Post Content		Formatting		normal	normal	Awaiting Review	defect (bug)	new		2025-12-31T20:13:51Z	2026-01-01T22:55:13Z	"WordPress incorrectly second-guesses the user and changes characters from the posts when they go into RSS feeds. This creates a problem for dummy apostrophe, dummy quotation mark, and three dots. You want these to display as is in all situations. Publishing will use “these” instead of ""these,"" but more importantly, no American English style guide ever uses the ellipsis as its own character in publishing. The Associated Press (AP) and most newspapers use three dots or three periods. They do *not* use the dedicated ellipsis character. Some fonts render these the same, but some do not. (Chicago and most books use three dots separated by non-breaking spaces.)

Many people type on ASCII keyboards and have read much less in books than on screens, which means that the differences between various punctuation marks are lost in informal contexts—but not the formal ones.
{{{
ASCII  Non-ASCII
""""      “”
''      ‘’
...     … (combined ellipsis as one character)
-       –—−

Correct Incorrect
“”      """"
‘’      ''
...     … (combined ellipsis as one character)
-–—−    *Dependent on context*
}}}
WordPress *does* handle the various dashes correctly. (i.e., WordPress does not change from one dash to another. The correct usage is up to the author. WordPress does *not* second-guess you.) I only include the various dashes to make a point about how these differences are subtle or invisible to some and glaring to others.

The differences between the four dashes are tricky to spot unless you have lots of editing experience, it can be difficult to tell the difference between the hyphen -, the en dash –, the em dash —, and the negative/minus sign −. All four are valid in different contexts.

Hyphen:  *4-6* is “four-six.”
En dash: *4–6* is “(from) four to six.”
Em dash: *4—6* is “(I think that we have) four; six (is also possible).”
Minus:   *4—6* is “four minus six,” and —6 is “negative six.”

Obviously, these look interchangeable across different fonts. If I see *4-6* on a page of radio slang, I assume *four-six*. If I see *4-6 p.m.*, then I assume from *four to six p.m.* However, if I am reading something longer, with sentences, and I see *4-6 p.m.* with a noticeably small hyphen that is the same length as the hyphen in *dot-less* or the breaks at the end of a line, then I know what is meant, but I roll my eyes and think less of the editor and publisher. It is little different from seeing a book’s title read as *From See to Shining See*.

Similarly, ... and … are not the same thing. If I see … in an American newspaper, then it is simply a punctuation error.

When it comes to the dummy quotation marks, it looks bad enough to write ""word"" instead of “word,” but WordPress converts this to ”word,” which is ridiculous. Similarly, someone may hastily write the following: *She said, ""Get yourself out of that 'funk' you are in.”* which becomes *She said, ”Get yourself out of that ’funk’ you are in.”*

I will never have a reason to compare """" and “” or '' and ‘’ in a post, but the behavior is buggy, to say the least.

To make the difference clear, I have attached a PDF of a page with a font that illustrates the differences.

This affects the display on podcast readers that parse the information in the tags. The incorrectness is fairly objective. The system takes it upon itself to substitute characters that may look alike, but that would be like a system converting every capital A to capital alpha (αλφα), just because *A* and *Α* look similar."	chiarella86
	53023	_wp_json_convert_string type mismatch: returns string on success; false on failure		Formatting	4.1.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-04-12T21:07:07Z	2024-10-15T20:53:13Z	"The private function `_wp_json_convert_string` (which converts a string to UTF-8) also returns `false`, though its `@return` specifies only `string`.

How? [https://www.php.net/manual/en/function.mb-convert-encoding.php `mb_convert_encoding`] returns a `string` on success and a `false` on failure.

Is this a bug or docs fix? It's both.

Reviewing its context, it's used by `_wp_json_sanity_check` to convert IDs and data value. The IDs are the problem. How so? Each ID is used as either a key or project for referencing the data value. 

What happens if the conversion to UTF-8 fails? The key or property would either be an empty string or `false`. That's problematic as it can cause unexpected JSON encoding results.

For example, this [https://3v4l.org/n4qT6 3v4l snippet] simulates the convert encoding failure to view the results through the JSON encoding process. Notice how the returned JSON is invalid when it fails. (Note: This snippet is forcing a failure.)"	hellofromTonya
	56119	`wp_unslash()` and `wp_slash()` do not (un)slash the same data.		Formatting		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-07-01T03:00:33Z	2022-07-11T00:50:23Z	"The `wp_unslash()` and `wp_slash()` functions do not do exactly the opposite thing, ie running `$data = wp_unslash( wp_slash( $data ) )` may modify the data.

The issue occurs with the treatment of objects, `wp_unslash()` uses `map_deep()` and therefore accounts for objects; whereas `wp_slash()` does not traverse objects.

{{{#!php
<?php
/**
 * @ticket 56119
 */
public function test_slash_unslash_reversable() {
	$expected = (object) array( 'data' => 'sl\sh' );
	$actual = wp_unslash( wp_slash( clone( $expected ) ) );

	$this->assertSame( $expected->data, $actual->data );
}

/**
 * @ticket 56119
 */
public function test_unslash_slash_reversable() {
	$expected = (object) array( 'data' => 'sl\sh' );
	$actual = wp_slash( wp_unslash( clone( $expected ) ) );

	$this->assertSame( $expected->data, $actual->data );
}
}}}"	peterwilsoncc
	58666	added HTML tags in HTML block		Formatting	6.2.2	normal	major	Awaiting Review	defect (bug)	new		2023-06-29T02:41:45Z	2023-06-29T02:41:45Z	If you add code, like css or javascript to an HTML block, save it and revisit it later on, HTML tags have been added, mostly line breaks <br />. This breaks the added code.	RichWP - Felix
	63867	error in admin page		Formatting		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2025-08-23T15:13:43Z	2025-08-23T17:23:36Z	"Warning: Array to string conversion in /*/wp-includes/formatting.php on line 5292
"	guestcn
	42182	esc_js must escape U+2028 and U+2029		Formatting	4.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-10-11T12:56:23Z	2017-10-11T13:02:09Z	"JS considers U+2028 (line separator) and U+2029 (paragraph separator) as line terminators, so they must be escaped to not break inline JS.

See:
https://www.ecma-international.org/ecma-262/5.1/#sec-7.3"	johanee
	66320	kses filter silently strips allowfullscreen from Vimeo and YouTube iframe embeds on every post save, breaking video playback sitewide		Formatting		normal	normal	Awaiting Review	defect (bug)	new		2026-10-15T16:40:14Z	2026-10-26T16:49:53Z	"Every time a WordPress post containing a Vimeo or YouTube iframe embed is saved or updated, the kses filter silently strips the allowfullscreen attribute from the embed code in the database. This causes the embedded video to display a privacy/playback error to all visitors with no warning to the site owner — without my knowledge. I never know how long videos have not been working. This is not acceptable.

Steps to reproduce:

Embed a Vimeo or YouTube video in a post using the standard iframe embed code provided by those platforms
Save the post
Visit the post as a visitor — the video displays: “Because of its privacy settings, this video cannot be played here”
Inspect the post content in the database — allowfullscreen has been silently removed

Why this is a defect:

WordPress’s own embed block and oEmbed system generate iframe code that includes allowfullscreen. The kses filter then strips it on save — meaning WordPress is actively breaking its own output with zero warning to the user.

allowfullscreen is not a security risk. It is a standard HTML5 attribute that permits an iframe to enter fullscreen mode. It poses no cross-site scripting risk, no injection vector, and no security concern of any kind. It has been a standard part of the HTML5 specification since 2012.

Real-world impact:

I have operated a professional WordPress broadcast platform since 2009. Over nearly two decades, I have hosted leaders from every major industry — producing close to 300 episodes of long-form video interviews and 300 audio episodes that serve as a permanent public archive. This is serious, professional publishing work on WordPress.

This issue has been silently breaking professional video publishers like me for over a decade. A site with hundreds of video episodes can have every single video broken simultaneously simply because the site owner edited and saved a post for any reason — fixing a typo, updating metadata, adding a transcript. There is no warning. Visitors see broken videos. The site owner has no idea until a visitor reports it.

I want to be more active on my site — updating content, adding transcripts for accessibility and SEO, improving posts. But every time I save a post, my entire video library breaks. This is not a theoretical edge case. This is a recurring, documented failure that is actively discouraging professional publishers from maintaining and improving their WordPress sites.

My site is itsrainmakingtime.ch — a broadcast platform that has been live on WordPress since 2009.

Requested fix:

Add allowfullscreen to the kses allowed attributes whitelist for iframe elements. This is a one-line fix that would permanently resolve a user-hostile bug that has persisted since 2012.

I respectfully urge the WordPress core team to prioritize this fix. Professional publishers deserve better.

Thank you in advance. 

Kim Greenhouse
itsrainmakingtime.ch "	Kim Greenhouse
	60391	links_add_base_url will encode all attribut in null passed in		Formatting		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-01-30T23:23:31Z	2026-11-09T10:07:44Z		pbearne
	60138	make_clickable() processing emails start with www.  incorrectly.		Formatting		normal	trivial	Awaiting Review	defect (bug)	new	changes-requested	2023-12-22T10:23:05Z	2024-02-15T16:25:53Z	make_clickable() processes www.blablabla.bla@gmail.com email as ftp address and appends https:// instead of mailto:	olyahryhorenko17
	63149	safecss_filter_attr does not support base64 SVG image in background-image.		Formatting	6.7.2	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-03-22T21:31:44Z	2025-03-23T21:31:00Z	"Hi, 
I want to use ""base64 SVG image"" as background-image but the function does not work properly.

{{{#!php
<?php
$css = ""background-image: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDggNDgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBmaWxsPSIjMDBmIiBjeD0iMjQiIGN5PSIyNCIgcj0iMTUiLz48L3N2Zz4='), url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDggNDgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3QgZmlsbD0iI2YwMCIgd2lkdGg9IjQ4IiBoZWlnaHQ9IjQ4IiAvPjwvc3ZnPgo=')"";
echo '<span style=""' . safecss_filter_attr( $css ) . '""></span>';

//output: <span style=""background-image: url('data:image/svg+xml""></span>
}}}

The following codes are used in the **safecss_filter_attr** function to break the CSS, but **because base64 uses two characters "":"" and "";""** the function does not work properly.

data:image/svg+xml;base64,PHN...

{{{#!php
<?php
$css_array = explode( ';', trim( $css ) );

.
.
.

if ( ! str_contains( $css_item, ':' ) ) {
	$found = true;
} else {
	$parts        = explode( ':', $css_item, 2 );

}}}

regards
"	jamal59
	53815	safecss_filter_attr removes styles with min() max() and minmax()		Formatting		normal	normal	Awaiting Review	defect (bug)	new		2021-07-28T12:44:09Z	2021-07-28T12:44:09Z	"safecss_filter_attr function eliminates the CSS with min(), max() and minmax().

I was trying to use min() with the recently released theme.json layout settings to adjust max-width dynamically based on device width.



{{{
""contentSize"": ""min( calc(100vw - 30px), 620px)"",
""wideSize"": ""min( calc(100vw - 30px), 1200px)"",
}}}



WordPress 5.8 release adds support for calc() and var() in #46197 and dropping support for IE11, now adding min(), max(), and minmax() would be helpfull for theme developers."	sagarnasit
	62785	wp_kses_no_null() should be modified to handle $content having a null value		Formatting		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-01-07T17:28:49Z	2026-01-16T10:27:07Z	"I've recently added some uses of the `wp_kses_post()` function to my plugin to pass [Plugin Check](https://wordpress.org/plugins/plugin-check/) tests, and found that there are a few cases where the variables I'm passing into that function may be null. When that's the case, I'm getting the following PHP error:

`Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in wp-includes/kses.php on line 1805`

I've traced this back to the `wp_kses_no_null()` function, which is not designed to handle the PHP 8.x requirement that you can't pass null values into `preg_replace()`.

I worked around the issue by adding `?: ''` into each instance of my use of `wp_kses_post()` but it seems to me that the `wp_kses_no_null()` function itself should be updated to handle the possibility that the `$content` input variable is null.
"	room34
	46886	"wp_targeted_link_rel adds the rel attribute when the link has data-target="""""		Formatting	5.1	normal	normal	Awaiting Review	defect (bug)	new		2019-04-11T20:07:45Z	2019-04-13T13:58:32Z	"To reproduce: 
Create a link element (easiest to see bug in classic editor): 

{{{
<a href=""https://example.com"" data-target=""thisandthat"">click here</a>
}}}

Save the post, and the link will have the rel=""noopener noreferrer"" attribute. 
"	jakeparis
	40202	wpautop bad code		Formatting	4.7.3	normal	normal	Future Release	defect (bug)	new		2017-03-19T09:02:06Z	2026-08-18T08:41:09Z	"post content


{{{
<a href=""document.htm""><div>Text</div></a>
}}}

generated markup - note wrong HTML


{{{
<p><a href=""document.htm""></p>
<div>Text</div>
<p></a></p>
}}}

related: #40135
"	jim5471
	43394	wpautop inserts extraneous line breaks if hard return around commented content		Formatting	4.9.4	normal	normal	Awaiting Review	defect (bug)	new		2018-02-23T20:02:19Z	2020-06-15T00:19:38Z	"Problem: If one has code comments before content in a WordPress post/page and there are hard returns before and after the code comment, WordPress will insert an extraneous line break. Further, if there are hard returns between multiple comments an extraneous line break will be added.

This problem can be reproduced by doing the following:
1. Edit a WordPress post or page.
2. Add a code comment with hard returns before and after it such as:

{{{

<!-- My Code Comment-->

}}}
3. Publish/preview the page.
4. Use Inspect to examine the area where you placed the above comment and you'll notice an extra line break.

This may seem like a very edge case and a minor annoyance, but we ran into this issue recently when we had multiple code comments following each other like so:
{{{
<p>Some regular content here.</p>
<!-- This is Important -->
<!-- Don't Forget This -->
<!-- Why are you Forgetting? -->
<!-- Adding individual comments for each line is -->
<!-- fun! -->
<p>Some regular content here.</p>
}}}

An extraneous line break now becomes four line breaks.

This becomes quite confusing for editors as when they look at the post the extra returns are not apparent yet inserted when the page is actually posted.

I'm thinking that resolving this issue might also resolve many other cases of wpautop gone rogue.

My suggestion would be that wpautop be changed so that:
1. If there is a code comment with a hard return before and after the comment, it does not automatically add wpautop. (one can argue that this is behaving as expected, but I doubt many are thinking when they add a code comment that it will add a nice line break for them...and in any case, this can be much more obviously/easily remedied by inserting a <br> in the editor if one truly did want a line break caused in this manner, whereas it can be quite time consuming to discover why extra line breaks are mysteriously appearing)
2. Similarly, with shortcodes, if the shortcode is tested valid then don't add line breaks with wpautop around the shortcode.

"	davidshq
	43313	wptexturise uses the wrong curly quote after a closing link tag		Formatting		normal	normal	Awaiting Review	defect (bug)	new		2018-02-14T10:29:02Z	2018-04-15T18:05:13Z	"When an English possessive 's comes immediately after a closing link tag, wptexturise changes it to the wrong kind of curly quote mark.

'''To reproduce:'''

* Enter some text with a link followed by an 's in your post content, for example 

{{{
<a href=""http://bbc.co.uk/news"">BBC</a>'s approach
}}}

* View the post in the front end.

'''What I expect'''

The filter replaces the straight single quote mark with a right curly apostrophe &#8217;

'''What I see instead'''

The filter replaces the quote mark with a left curly apostrophe &#8216;



"	andfinally
	54721	wptexturize caches the result of run_wptexturize preventing themes from using this if a plugin has already called get_plugin_data		Formatting	5.8.2	normal	normal	Awaiting Review	defect (bug)	reopened	dev-feedback	2022-01-03T11:45:01Z	2024-07-20T10:53:59Z	"One of the plugins I use is simple_sitemap. This plugin (quite reasonably) uses get_plugin_data during its initialization. get_plugin_data makes calls to wptexturize as part of its operation. The plugin's initialization runs before the theme's functions.php is executed. Since wptexturize caches the result of the run_wptexturize filter, the theme is no longer able to disable wptexturize's function and hence gets unwanted smart quotes.

There is a workaround for the theme whereby it makes a dummy call to wptexturize with reset set to true. This makes the wptexturize implementation reinitialize and hence re-execute the call to the run_wptexturize filter. However the documentation states that this flag is designed for unit testing and hence this seems to be less than ideal.

(In passing I'll note that this caching of the result also prevents plugins from using it to temporarily disable the function by adding and then removing the filter should it be required.)

I've left the ticket type as 'defect' but it would be reasonable to argue that this is actually a request for a minor enhancement - if so please change the type field.

"	tremlas
	61817	wptexturize(): Hyphen may be replaced with ndash		Formatting		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-08-04T13:59:03Z	2024-08-04T17:09:11Z	"This was originally reported as a Gutenberg issue: https://github.com/WordPress/gutenberg/issues/64237

A strange issue has been reported where applying a text or background color to hyphens in the content causes the characters to change size as they are replaced with en-dashes.

I tracked down the problem and found that the characters were being replaced by the `wptexturize()` function [https://github.com/WordPress/WordPress/blob/822782a917bf08d2ce89901aba5942de0137127d/wp-includes/block-template.php#L266 here].

When text is colored in the block editor, it is wrapped in a mark element like this:

{{{
<p>Lorem<mark style=""background-color:rgba(0, 0, 0, 0)"" class=""has-inline-color has-accent-3-color"">–</mark>ipsum</p>
}}}

So I tried adding `mark` to the [https://github.com/WordPress/WordPress/blob/822782a917bf08d2ce89901aba5942de0137127d/wp-includes/formatting.php#L106 $default_no_texturize_tags] variable array and found that this solved the problem.

My guess is that we might need to update this variable so that all elements used in inline formatting are allowed in it.
"	wildworks
	54322	Add Logical Properties to safecss_filter_attr		Formatting	5.8.1	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2021-10-26T07:59:07Z	2021-11-19T18:16:32Z	"== Background
CSS Logical Properties and Values give easier control over automating different writing mode formats by using logical, rather than physical directions. In other words, it means that the intended spacing, sizing, etc for each appropriate side of a box element translate seamlessly.

Mozilla Reference:
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties 

With the increase in inline styling from blocks, it's important to add more flexibility to how a theme or plugin developer might want to style their spacing components or future proof them as accessibility and internationalization become increasingly important and stop of mind.

Global usage is at a decent enough support level where it makes sense:
https://caniuse.com/?search=logical%20properties.

== Proposed Enhancement

The proposed addition would just be to add to the properties to the default array in safecss_filter_attr(). 

File: wp-includes/kses.php:
https://github.com/WordPress/wordpress-develop/blob/98bf67e02b0a4b4aa3848f4e8266c4fd66cdaad0/src/wp-includes/kses.php#L2170

The complete list of Logical Properties:


{{{
        // Properties for sizing
        'block-size',
        'inline-size',
        'max-block-size',
        'max-inline-size',
        'min-block-size',
        'min-inline-size',

        // Properties for borders
        'border-block',
        'border-block-color',
        'border-block-end',
        'border-block-end-color',
        'border-block-end-style',
        'border-block-end-width',
        'border-block-start',
        'border-block-start-color',
        'border-block-start-style',
        'border-block-start-width',
        'border-block-style',
        'border-block-width',
        'border-inline',
        'border-inline-color',
        'border-inline-end',
        'border-inline-end-color',
        'border-inline-end-style',
        'border-inline-end-width',
        'border-inline-start',
        'border-inline-start-color',
        'border-inline-start-style',
        'border-inline-start-width',
        'border-inline-style',
        'border-inline-width',
        'border-start-start-radius',
        'border-start-end-radius',

        // Properties for margin & padding
        'margin-block',
        'margin-block-end',
        'margin-block-start',
        'margin-inline',
        'margin-inline-end',
        'margin-inline-start',
        'padding-block',
        'padding-block-end',
        'padding-block-start',
        'padding-inline-end',
        'padding-inline-start',

        // Properties for float & positioning
        'inset',
        'inset-block',
        'inset-block-end',
        'inset-block-start',
        'inset-inline',
        'inset-inline-end',
        'inset-inline-start',

        // Other Misc Props
        'caption-side',
        'overflow-block',
        'overflow-inline',
        'overscroll-behavior-block',
        'overscroll-behavior-inline',
        'resize',
        'text-align'
}}}


"	wazeter
	63046	Add background-clip to the safe_style_css filter		Formatting		normal	normal	Awaiting Review	enhancement	new	has-patch	2025-03-03T20:10:16Z	2025-03-05T15:49:38Z	"Currently, when using the following code, CSS properties like background-clip and display are stripped out during the wp_kses_post() sanitization process.

{{{#!php
<?php
add_action('init', function() {
    $html = '
        <span style=""
            background-clip: text;
            display: inline-block;"">
            Gradient Text
        </span>
    ';

    $sanitize_post = wp_kses_post( $html );
});
}}}

Expected Output:

{{{
<span style=""background-clip: text; display: inline-block;"">
    Gradient Text
</span>
}}}

Current Output:

{{{
<span>
    Gradient Text
</span>
}}}


The issue occurs because CSS properties like background-clip and display are removed. It would be helpful to allow additional CSS properties through the `wp_kses_post()` function by extending the safe_style_css filter to support these properties.
"	mi5t4n
	52444	Add support for Telegram Messenger Protocol		Formatting	3.3	normal	normal	Awaiting Review	enhancement	new	close	2021-02-04T10:56:32Z	2021-02-05T06:39:35Z	"I found an issue with a link to Telegram messenger.

The simple link works correct
{{{<a href=""tg://resolve?domain=man_o2"">}}}

If I add “target”, it works correct on pages.
{{{<a href=""tg://resolve?domain=man_o2"" target=""_blank"">}}}

But if I use it in «Custom HTML» widget, I see a wrong result code:
{{{<a href=""//resolve?domain=man_o2"" target=""_blank"">}}}

I asked The7 theme support and they have said “it works the same with the standard WP theme”.

Screenshot from support:[https://www.evernote.com/l/AnTcHk6kxa5Ltb_UT4cgDp7V-ofL4md-1fQ]"	customer8765
	63036	Additional unit tests kses color-mix		Formatting		normal	trivial	Awaiting Review	enhancement	new	has-patch	2025-02-28T11:01:49Z	2025-02-28T11:02:36Z	I've added tests for https://core.trac.wordpress.org/ticket/62353 and while I can't reproduce the ticket the additional tests might be useful in general.	michaelwp85
	60544	Allow individual blocks to be excluded from `excerpt_remove_blocks()`		Formatting	6.5	normal	normal	Awaiting Review	enhancement	new	has-patch	2024-02-14T23:16:54Z	2024-10-09T14:36:43Z	"In `excerpt_remove_blocks()`, it is possible to to filter the list of block names that should be included when generating excerpt text.

It should also be possible to selectively exclude (or include) individual blocks based on their individual attributes.

For this to work, a new filter would need to be inserted in `excerpt_remove_blocks()` and `_excerpt_render_inner_blocks()`.

I think it would then be enough to check with the existing logic as:

{{{
if (
    in_array( $block['blockName'], $allowed_blocks, true )
    && apply_filters( 'excerpt_allowed_block', true, $block )
)
}}}

Then, if I added a custom attribute to a core (e.g. paragraph) block, I could add a filter to return `false` when that attribute was detected.

The current alternative for this is unhooking `wp_trim_excerpt()` from `get_the_excerpt()` entirely and then reusing it as forked code with an alternate version of `excerpt_remove_blocks()`."	jeremyfelt
	41458	Class gets stripped out when inserting a link in author biography box		Formatting	3.5	normal	normal	Awaiting Review	enhancement	new		2017-07-27T16:44:55Z	2017-07-30T16:11:39Z	"Class gets stripped out when inserting a link in author biography box

For example <a href=""#"" class=""test"">My link</a>

becomes

 <a href=""#"" >My link</a>"	neodjandre
	57517	Expose MutationObserver instance in wpEmoji		Formatting		normal	normal	Awaiting Review	enhancement	new	has-patch	2023-01-20T19:30:38Z	2023-01-20T20:05:34Z	"The current implementation of MutationObserver in wpEmoji keeps the instance private, making it impossible to disconnect/reconnect the observer if necessary.

This has performance implications whenever a page performs large/complex DOM updates frequently. 

A typical workaround is to disable wpEmoji altogether, but I believe there's a better way. 

If we expose the observer instance, we can call connect/disconnect as needed.


{{{#!javascript

// Before doing something expensive
wp.emoji.getObserver().disconnect();

// render 10k nodes in your favorite frontend framework

// Re-enable later
wp.emoji.getObserver().observe( document.body, {
	childList: true,
	subtree: true
} ) 
}}}
"	rinatkhaziev
	63156	Formatting: Expand sanitize_html_class() to support the full range of CDATA that a class attribute can contain		Formatting		normal	normal	Awaiting Review	enhancement	new	has-patch	2025-03-24T15:10:00Z	2025-03-24T15:11:58Z	"The TODO comment in the `sanitize_html_class()` function suggests expanding its support to include the full range of characters that a class attribute can contain. Currently, the function only allows alphanumeric characters, hyphens, and underscores.

However, updating the function to support a broader set of characters may break some existing tests."	debarghyabanerjee
	56774	Need more options on pre-existing blocks.		Formatting	6.0.2	normal	normal	Awaiting Review	enhancement	new		2022-10-09T20:46:32Z	2022-10-09T20:46:32Z	"I have the following queries regarding css customisation through pre-existing blocks.

I want to add an option to:
 Add borderRadius to featured/post-image/cover/image
 Add breakpoints (let's say Bootstrap 5 responsive grid)
 More control over navigation/header padding/margin
 Set a default image when the post featured image is missing
 More control on the drop-down, especially translucent background-color and border-radius"	adsingh14
	41422	Need replace_filter() function for improved Just In Time filter adjusment		Formatting	4.9	normal	normal	Awaiting Review	enhancement	new		2017-07-24T09:42:10Z	2017-08-03T15:59:07Z	"In the new solution for text widgets there is some Just In Time code that adjusts the attached filter functions. The logic finds the priority before removing the filter function then re-instates the filter with the same priority.

This logic assumes that the sequence in which the filter functions have been attached with the same priority are performed doesn't matter. 

If this is not the case then the order change could affect processing where the filter is shared but invoked for different purposes. e.g. the 'widget_text' filter for Text widget and Custom HTML widget

The logic could be improved by implementing a new suite of filter functions including replace_filter(), restore_filter(), disable_filter() and a dummy filter function disabled_filter(). 

Instead of calling remove_filter() and add_filter() we'd use
disable_filter() and restore_filter()

disable_filter() is simply replace_filter() using the disabled_filter() function.


Example:

Filters attached at priority 10 have been set to do_shortcode and balanceTags.
With the current logic after JIT replacement the attached filters would have become
balanceTags then do_shortcode.

Using disable_filter() and restore_filter() the attached filters at priority 10 would be unchanged. 

 





"	bobbingwide
	60319	PHPUnit test for wp_spaces_regexp		Formatting		normal	normal	Future Release	enhancement	new	has-patch	2024-01-22T17:44:21Z	2025-02-12T15:52:56Z		pbearne
	60301	PHPunit test for print_emoji_detection_script		Formatting		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-01-19T19:05:55Z	2026-10-31T21:27:31Z		pbearne
	60842	PHPunit tests for wp_check_invalid_utf8		Formatting		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-03-25T20:25:12Z	2025-02-12T15:55:57Z		pbearne
	62738	Proposal for format_atts()		Formatting		normal	normal	Awaiting Review	enhancement	new		2024-12-26T07:57:03Z	2024-12-26T16:04:34Z	"I have used [https://github.com/rocklobster-in/contact-form-7/blob/v6.0.2/includes/formatting.php#L527 wpcf7_format_atts()], a simple function to format HTML attributes, in my Contact Form 7 plugin for many years. With this function, you can convert this complicated error-prone code:

{{{
echo '<input type=""checkbox"" name=""' . esc_attr( $cb_name ) . '"" value=""' . esc_attr( $cb_value ) . '"" checked=""checked"" />';
}}}

into the following readable clean coding:

{{{
echo sprintf(
  '<input %s />',
  wpcf7_format_atts( array(
    'type' => 'checkbox',
    'name' => $cb_name,
    'value' => $cb_value,
    'checked' => true,
  ) )
);
}}}

I'd like to suggest introducing the same functionality into WordPress core as `format_atts()`.

Another reason for me to suggest this is that the [https://wordpress.org/plugins/plugin-check/ Plugin Check plugin] detects errors of `WordPress.Security.EscapeOutput.OutputNotEscaped` despite the fact that attribute values are properly escaped with `esc_attr()`. If this function becomes WordPress standard and the PCP recognizes that, I and other developers who use similar formatting function will be able to avoid the false-positive error."	takayukister
	47557	Sanitize Email Suggestion		Formatting	5.2.1	normal	minor	Awaiting Review	enhancement	new	has-patch	2019-06-18T15:19:58Z	2024-09-11T21:33:50Z	"I am using WooCommerce and I've noticed several customer emails come through like...

{{{
example@example.com1234
example@example.com1234567812345678
}}}

It's mostly due to the email input being the last one before the credit card step, but these emails are passing the validation and sanitization that exists: is_email and sanitize_email.

I am doing something like the following to fix...

{{{#!php
<?php

    public function clean_billing_email_address( $value ) {
        return trim( preg_replace( '/\d*$/', '', $value ) );
    }
    add_filter( 'woocommerce_process_checkout_field_billing_email', 'clean_billing_email_address' );

}}}

You may consider adding something like this to the sanitize_email function since no TLD ends with numbers anyways, at least at this point in time."	dandersoncm
	53709	Spaces as <br> in RSS Excerpts		Formatting	5.8	normal	normal	Awaiting Review	enhancement	new		2021-07-21T06:39:54Z	2021-07-25T02:32:39Z	"**Problem:** if I use RSS block and want to show text excerpts, all <br> elements missing. It looks not very good, like missing spaces after some sentences. Look at the image, I highlighted places where is <br> in original RSS feed.

[[Image(https://i.imgur.com/P6MsiL6.jpg)]]
Feed: [https://store.steampowered.com/feeds/news/app/1306770/?cc=RU&l=russian&snr=1_2108_4__2107]

**Suggestion:** RSS block should display all <br> as spaces in excerpts."	arskrigitsioniets
	39674	Special characters are encoded in the database, for site settings options		Formatting	4.7.1	normal	normal	Awaiting Review	enhancement	new		2017-01-24T09:50:40Z	2017-01-24T09:53:18Z	"If you change the name of the blog in the settings page, for example to ""Donald's blog"", 
we can see in the mysql database, the result is ""Donald&#039;s blog"" for the '''blogname''' option name, so I can not understand why this happening, I think in the database the result should be the same of what we type.

All sensitization actions I think must be used on the front (page view) side not on the database side (before submitting to the database).

I use Windows 64b, PHP: 7.0.4, WordPress: 4.7.1
"	alexvorn2
	63864	Support RFC 2047 MIME-decoding / improve `wp_iso_descrambler()`		Formatting	6.9	low	normal	Future Release	enhancement	new	has-patch	2025-08-23T01:55:50Z	2025-08-23T01:58:35Z	"The existing `wp_iso_descrambler()` supports an extremely limited subset of MIME-encoded data. Specifically, it supports only the `Q` encoding and directly reads bytes from the encoded string instead of converting those bytes. It was added to fix an issue where subjects from inbound emails were “scrambled.”

While this surely improved the situation in 2004 when many systems were sending `latin1` and where the system locale was `latin1`, it’s pretty insufficient today. WordPress could benefit from improving its support for RFC 2047 enabling proper reading of things like email subjects containing emoji.

== Proposal

 - Introduce `wp_decode_rfc2047()` for focus and clarity around the intention of what is happening. This communicates more clearly to developers and provides more opportunity to test and improve support for the function.
 - Deprecate `wp_iso_descrambler()` and delegate its responsibility to `wp_decode_rfc2047()`. The unclear and inaccurate naming and description of this function leaves little room to substantially improve it.
 - Require calling-code to indicate how to handle parsing errors for explicit recovery.

RFC 2047 / MIME decoding is not too complicated in the “happy path.” It indicates the encoding of the escaped bytes and whether the escaping is via replacing certain bytes with their hex equivalent (the “quoted” or `Q` encoding) or replacing the whole byte sequence with a base64 representation (the “binary” or `B` encoding).

What remains is //uncertainty in the path of invalid encodings//. There may be standardized behaviors for handling parse errors and that would be ideal to incorporate into this enhancement.

=== What about `iconv_mime_decode()`?

PHP provides [https://www.php.net/manual/en/function.iconv-mime-decode.php iconv_mime_decode()] whose purpose is the same as for this ticket. In supported environments it //may// be useful, though it’s not clear how it resolves parsing errors or what changes exactly are made by its options.

If a PHP implementation is going to be required anyway to support runtimes lacking the `iconv` support then it makes sense to lean into a custom solution where WordPress can define the error-handling behaviors and change them as is appropriate, retaining full control over the behavior and specification.

=== A short background

For those unfamiliar, email systems were based on 7-bit ASCII interchange. This posed challenges when attempting to communicate between systems which relied on 8-bit or multi-byte encodings. MIME encoding was introduced as a way of incorporating other character sets within the existing supported domain of 7-bit US-ASCII. The syntax was chosen with an attempt to minimize the chance of conflating intended plaintext with encoded text.

 - Certain email headers may contain MIME-encoded strings.
 - Spans of encoded text //MUST// not exceed 75 characters, but a single header may contain multiple sections of encoded text.
 - When unable to decode the spans, it’s permitted to display the raw text of the encoding.

== Examples

=== Before

{{{#!php
<?php
var_dump( wp_iso_descrambler( '=?ISO-8859-2?Q?=A3=F3d=BC?=' ) );
string(4) ""��d�""

var_dump( wp_iso_descrambler( '=?UTF-8?Q?Caf=C3=A9?= and =?US-ASCII?B?SGVsbG8=?=' ) );
string(33) ""Café?= and =?US-ASCII?B?SGVsbG8=""

var_dump( wp_iso_descrambler( '=?UTF-8?B?4q2QIOKtkA==?=' ) );
string(24) ""=?UTF-8?B?4q2QIOKtkA==?=""
}}}

=== After

{{{#!php
<?php
var_dump( rfc2047_decode( '=?ISO-8859-2?Q?=A3=F3d=BC?=' ) );
string(6) ""Łódź""

var_dump( rfc2047_decode( '=?UTF-8?Q?Caf=C3=A9?= and =?US-ASCII?B?SGVsbG8=?=' ) );
string(15) ""Café and Hello""

var_dump( rfc2047_decode( '=?UTF-8?B?4q2QIOKtkA==?=' ) );
string(7) ""⭐ ⭐""
}}}

"	dmsnell
	66492	Tests: Add unit coverage for the helper functions in kses.php		Formatting		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-05T19:01:49Z	2026-11-05T19:12:14Z	"`src/wp-includes/kses.php` has a number of helper functions that are used by `wp_kses()` and its legacy parser but have no direct PHPUnit coverage. The existing tests in `tests/phpunit/tests/kses/` and `tests/phpunit/tests/kses.php` cover the public entry points and some helpers (for example `wp_kses_hair()`, `wp_kses_decode_entities()` and `wp_kses_check_attr_val()`), but a search of `tests/phpunit/tests` finds no direct references to:

 * `wp_kses_no_null()`
 * `wp_kses_bad_protocol_once()`
 * `wp_kses_array_lc()`
 * `wp_kses_named_entities()`
 * `wp_kses_normalize_entities2()`
 * `wp_kses_normalize_entities3()`

Some of these are only exercised indirectly through `wp_kses()`, so a change in their behavior is hard to spot and to attribute. Direct tests describe the current behavior of each helper.

'''Proposed scope'''

Add tests under `tests/phpunit/tests/kses/`, one class per function, with data providers where it helps, for example:

 * `wp_kses_no_null()`: removal of NULL characters and of `\0` sequences, and the `slash_zero` option (`remove`, `keep`).
 * `wp_kses_bad_protocol_once()`: allowed and disallowed protocols, uppercase and mixed case, and repeated or nested protocols.
 * `wp_kses_array_lc()`: lowercasing of attribute names, and preserving the values.
 * `wp_kses_named_entities()` and `wp_kses_normalize_entities2()` / `3()`: valid named, decimal and hexadecimal references, invalid ones, and references that are out of range.

'''Out of scope'''

This ticket only adds tests and does not change behavior. The following are left out on purpose because other tickets are working on them:

 * `wp_kses_split()` and `wp_kses_split2()`, which belong to the legacy parser that #66208 replaces.
 * `wp_kses_stripslashes()`, which #63881 proposes to deprecate.
 * `wp_filter_nohtml_kses()`, see #54488.
 * The `null` input of `wp_kses_no_null()`, see #62785.

Related: #65819, #66208, #63881, #54488, #62785."	hmbashar
	66620	Tests: Add unit test coverage for _make_clickable_rel_attr()		Formatting		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T14:49:11Z	2026-11-07T15:02:02Z	"Add unit test coverage for `_make_clickable_rel_attr()` in `src/wp-includes/formatting.php`.

The tests cover:
- Adding `rel=""nofollow""` for external HTTP and HTTPS URLs.
- Returning an empty string for internal URLs.
- Returning an empty string for non-http/https URL schemes (`mailto:`, `tel:`, `ftp:`).
- Appending `ugc` when called within the `comment_text` filter context.
- Modifying the generated `rel` string via the `make_clickable_rel` filter.

GitHub PR: https://github.com/WordPress/wordpress-develop/pull/15796"	devmuhib
	66612	Tests: Add unit test coverage for _navigation_markup()		Formatting		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T14:42:17Z	2026-11-07T14:50:55Z	"Add unit test coverage for `_navigation_markup()` in `src/wp-includes/link-template.php`.

The tests cover:
- Default navigation markup structure, CSS class, aria-label, screen reader text, and links placement.
- Custom arguments for CSS class, screen reader heading, and aria-label.
- Fallback of aria-label to screen reader text when aria-label is empty.
- The `navigation_markup_template` filter receiving both template and CSS class arguments.
- Sanitization of CSS classes via `sanitize_html_class()`.
"	devmuhib
	66621	Tests: Add unit test coverage for _split_str_by_whitespace()		Formatting		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T14:49:15Z	2026-11-07T15:02:04Z	"Add unit test coverage for `_split_str_by_whitespace()` in `src/wp-includes/formatting.php`.

The tests cover:
- Strings shorter than the goal length returning a single intact chunk.
- Splitting strings at whitespace boundaries near the goal length, ensuring full reconstruction on concatenation.
- Handling diverse whitespace characters (`\r`, `\n`, `\t`).
- Handling unbroken words exceeding the goal length without premature fragmentation.

GitHub PR: https://github.com/WordPress/wordpress-develop/pull/15797"	devmuhib
	66611	Tests: Add unit test coverage for translate_smiley()		Formatting		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T14:40:49Z	2026-11-07T15:01:01Z	"Add unit test coverage for `translate_smiley()` in `src/wp-includes/formatting.php`.

The tests cover:
- Handling empty match arrays returning an empty string.
- Converting image-based smilies into an `<img>` element with proper attributes (`class=""wp-smiley""`, `alt`, `style`, and `src`).
- Smilies that map to Unicode characters (emoji) returning the unmodified character string.
- Filtering the generated image URL with the `smilies_src` filter.
"	devmuhib
	66610	Tests: Add unit test coverage for wp_rel_callback()		Formatting		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T14:40:07Z	2026-11-07T15:00:59Z	"Add unit test coverage for `wp_rel_callback()` in `src/wp-includes/formatting.php`.

The tests cover:
- Adding a `rel` attribute to an anchor that does not have one.
- Merging a new `rel` value with an existing `rel` attribute without duplicating existing terms.
- Stripping `nofollow` when the destination URL is an internal link.
- Retaining other `rel` terms (such as `ugc`) for internal links.
- Handling valueless HTML attributes (such as `download`) on the anchor element.

"	devmuhib
	66609	Tests: Add unit test coverage for wptexturize_primes()		Formatting		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T14:31:24Z	2026-11-07T14:34:20Z	"Add unit test coverage for `wptexturize_primes()` in `src/wp-includes/formatting.php`.

The tests cover:
- Replacing single quotes with single prime entities (`&#8242;`) following numbers.
- Replacing double quotes with double prime entities (`&#8243;`) following numbers.
- Ensuring strings without target quotes remain unmodified.
- Disambiguating quotes and primes within opened quotation marks.
- Ensuring regular quotes not preceded by numbers become closing quotes.
"	devmuhib
	55962	Upgrade `sanitize_hex_color()` to CSS Color Level 4	pbearne	Formatting		normal	normal	Future Release	enhancement	assigned	dev-feedback	2022-06-11T04:57:08Z	2024-01-17T00:09:09Z	"I’ve noticed that the `sanitize_hex_color()` function unsupports the CSS Color Level 4 with the alpha channel and can therefore not be used. As users are given the ability to provide settings by configuration filters in a mini-plugin or in their theme’s `functions.php`, they may wish to configure opacity alongside.

The fix is to extend the validation condition of `sanitize_hex_color()` from:

`if ( preg_match( '|^#([A-Fa-f0-9]{3}){1,2}$|', $color ) )`

to

`if ( preg_match( '|^#([A-Fa-f0-9]{3,4}){1,2}$|', $color ) )`"	anrghg
	56120	"WordPress should add a space character on every possible ""wrap point"" in a post title when building ""html title"", ""og:title"" and so on"		Formatting		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2022-07-01T05:13:27Z	2022-07-05T05:23:50Z	"In WordPress it is possible to use html tags inside posts title. This is very nice: for example, it allows to use italics, and to make posts titles wrap where one wants. When the latter is the case, though, the titles get displayed good in the post, but not in the browser's window title (that usually the browser builds after the `<title>Foobar</title>` html entity), and not in the link previews that one can get by linking a post into a social network post (that usually have their title based on the `<meta property=""og:title"" content=""Foobar"" />` entity).
For example, a post title like `First line<br>second line<br>third line` will result in a `<title>First linesecond linethird line</title>` entity and in a `<meta property=""og:title"" content=""First linesecond linethird line"" />` entity, that will result in ugly and difficult to read browser window and link previews titles.
This could be avoided by changing WordPress code so that it added a space character on every possible ""wrap point"" (`<br>`, `</p>`, `</div>` and so on) in a post title when building ""html titles"", ""og:title""s and the likes."	pezcurrel
	43156	_walk_bookmarks(): please add the link id as HTML id attribute.		Formatting	4.9.2	normal	normal	Awaiting Review	enhancement	new		2018-01-24T17:28:33Z	2018-01-24T17:28:33Z	"Hi, would it be possible to add an HTML attribute that contains the WP link ID when outputting the a blogroll link with _walk_bookmarks() ?

It would be nice to be able to customize links with CSS.

I know it is possible to do it by hooking a function on 'wp_list_bookmarks', but... what a waste of time for nothing :)

Thanks"	grosbouff
	33204	kses $allowedposttags should support microdata		Formatting		normal	normal	Awaiting Review	enhancement	new		2015-07-30T10:30:26Z	2018-11-15T13:27:39Z	"It should support more attributes:
itemscope, itemprop, itemref, itemtype and itemid

check out https://en.wikipedia.org/wiki/Microdata_(HTML)#Global_attributes"	wordpressplugindeveloper
	40569	next_post_link parameters $format and $link, have default values that produce awkward to use output		Formatting	4.7.4	normal	normal	Awaiting Review	enhancement	new		2017-04-26T02:45:16Z	2017-04-26T02:49:11Z	"The default output when using the default next_post_link() is:

{{{
<a href=""nextposturl"" rel=""next"">Post Title Linked here</a> &raquo;
}}}

Note how the &raquo; is left outside of the linked text by default. I believe for most users this will cause a styling issue to fix as soon as you use this function, and otherwise, seems improper for a default output. I used next_post_link() with the following values to get what I think should be default output behavior

{{{
next_post_link( ""%link"", ""%title &raquo;"" );
}}}

Which outputs:
{{{
<a href=""nextposturl"" rel=""next"">Post Title Linked here &raquo;</a> 
}}}

Note that the &raquo; is now inside of the linked text, and any css applied to the next post link will also affect the &raquo; by default, and no changes to function parameters would be required by users. 

To implement this enhancement, I believe you would simply move the &raquo; into the default value for the $link parameter, and out of the $format parameter default value."	bhartlenn
	46329	sanitize_text_field after 5.1 update should account for __toString() methods		Formatting	5.1	normal	normal	Awaiting Review	enhancement	new		2019-02-23T15:34:50Z	2019-02-24T22:54:46Z	"Since 5.1 the `sanitize_text_field` changed to check if the parameter is an object or array.
That broken one of my codes and possibly for other people too because I was passing a `SimpleXMLElement Object`. It has a magic `__toString()` method that gets called when you do that type conversion.

As @iCaleb suggested in #41450, we may want to add another check.


{{{#!php
<?php
if ( ( is_object( $str ) && ! method_exists( $str, '__toString' ) ) || is_array( $str ) ) {
  return '';
}
}}}

"	fclaussen
	43205	Allow filtering the list of characters to be replaced by wptexturize		Formatting		normal	normal	Awaiting Review	feature request	new		2018-02-01T18:41:46Z	2019-01-16T06:43:09Z	"I'd like to selectively disable the replacement of a subset of the characters replaced by wptexturize.

There are already filters to control which html tags & shortcodes are exempt from being texturized: `no_texturize_shortcodes` & `no_texturize_tags`.

I think a similar filter should exist to control which characters are texturized. This filter would take at least two parameters: `$dynamic_characters` & `$dynamic_replacements`.

I am interested in writing a patch if you'll consider it. Would this enhancement be acceptable?"	cyclic
	54604	Allow for nestable superscript tags		Formatting		normal	normal	Awaiting Review	feature request	new	has-patch	2021-12-09T10:22:30Z	2021-12-14T00:27:10Z	"Allow for nestable <sup> tags required for proper mathematical notation, s.

https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-sub-and-sup-elements"	anonymized_20146636
	53096	Color Settings include alpha channel for transparency		Formatting		normal	normal	Awaiting Review	feature request	new		2021-04-27T08:31:13Z	2021-04-27T08:31:13Z	"a good feature for Gutenberg could be to add the alpha channel for transparency wherever (if it's possible) where the user can select a background or a foreground color since it is used a lot from designers. 

The best way is to add it as rgba first or/and as hexadecimal with the 2 digits in the end like #00000020 (black with 20 as hex for opacity)"	fotisps
	55326	Conditional classes directives in formatting		Formatting	5.9.1	normal	normal	Awaiting Review	feature request	new		2022-03-06T18:01:43Z	2022-03-07T02:02:55Z	"Hey people,

I am here with a suggestion and core feature request for conditional classes directive for HTML class attribute. Similar to [Laraval conditional-classes](https://laravel.com/docs/9.x/blade#conditional-classes)

If this function is already available in WP then please let me know about it, I wasn't able to find a similar function.

There are many cases in development where we're creating a `$clasess` array variable and then with if-else or using conditional statements adding classes into it.

While working with PHP code the code/file format in files look good and it's easy to manage but sometimes with HTML and PHP combination writing inline if-else make the code/file format ugly. and we also have to repeat the escape and echo things again n again if we have a couple of conditional CSS to write.

I have created this custom code to use in my custom development, which allows passing set or array or single sting or strings with comma/space and then it conditional validate and output the string.

{{{#!php
<?php
/**
 * Returns/echo Conditional HTML Classes.
 *
 * @param array|string $classes    Array of classes, single string or strings with comma.
 * @param bool         $echo       If true then echo the output otherwise return it.
 * @return string                  HTML classes string.
 */
function html_class( $classes = array(), $echo = true ) {
	// Define default output.
	$output = '';

	// Make a type and empty check validation.
	if ( ( is_array( $classes ) || is_string( $classes ) ) && ! empty( $classes ) ) {
		/**
		 * If string then parse it comman and space.
		 * otherwise keep the array.
		 */
		$classes = is_string( $classes ) ? wp_parse_list( $classes ) : (array) $classes;

		// Do an empty check.
		if ( ! empty( $classes ) ) {
			// Storing var for valid classess.
			$class_set = array();

			// Loop through all classes.
			foreach ( $classes as $key => $class_name ) {
				// Check if array has integer key, which means no conditions
				// are set for this class, if class is not empty then keep it.
				if ( is_int( $key ) && is_string( $class_name ) && ! empty( $class_name ) ) {
					$class_set[] = trim( $class_name );
				} elseif ( ! empty( $class_name ) && ! empty( $key ) ) {
					$class_set[] = trim( $key );
				}
			}

			/**
			 * Filter array with empty values.
			 * Make array unique.
			 * Sanitize class name.
			 * Implode by space.
			 */
			$output = implode( ' ', array_map( 'sanitize_html_class', array_unique( array_filter( $class_set ) ) ) );
		}
	}

	if ( $echo ) {
		echo esc_attr( $output );
	} else {
		return esc_attr( $output );
	}
}
}}}

so using this function we could save time to not write a few lines of if-else and keep the code look clean and simple as well, e.g. 
{{{#!php
<?php
$classes   = array();
$classes[] = array( 'post-title' );
if ( has_post_thumbnail() ) {
	$classes[] = 'has-thumbnail';
}
if ( has_term( 'featured', 'category' ) ) {
	$classes[] = 'is-featured';
}

echo '<div class=""' . esc_attr( join( ' ', $classes ) ) . '"">';
}}}


this will convert into this.
{{{#!php
<?php
$classes = array(
	array(
		'post-title',
		'has-thumbnail' => has_post_thumbnail(),
		'is-featured'   => has_term( 'featured', 'category' ),
	),
);

echo '<div class=""' . html_class( $classes, false ).'"">; // false is for returning the values.
}}}

however, it does not save too many lines but we are repeating things less and I feel it looks clean in code reading. :)

But this function can be very useful while writing mixed HTML and php.
{{{#!php
<?php
<div class=""col-12
<?php
if ( is_sidebar_active( 'right-sidebar' ) && is_sidebar_active( 'righleft-sidebar' ) ) {
	echo 'col-md-6';
} elseif ( ! is_sidebar_active( 'right-sidebar' ) && is_sidebar_active( 'left-sidebar' ) ) {
	echo 'col-md-8';
} elseif ( is_sidebar_active( 'right-sidebar' ) && ! is_sidebar_active( 'left-sidebar' ) ) {
	echo 'col-md-8 md-offset-4';
} else {
	echo 'col-md-8 md-offset-2';
}
?>
""></div>
}}}


{{{#!php
<?php
$clasess = array(
	'col-12',
	'col-md-6'             => is_sidebar_active( 'right-sidebar' ) && is_sidebar_active( 'righleft-sidebar' ),
	'col-md-8'             => ! is_sidebar_active( 'right-sidebar' ) && is_sidebar_active( 'righleft-sidebar' ),
	'col-md-8 md-offset-4' => is_sidebar_active( 'right-sidebar' ) && ! is_sidebar_active( 'righleft-sidebar' ),
	'col-md-8 md-offset-2' => ! ( is_sidebar_active( 'right-sidebar' ) && is_sidebar_active( 'righleft-sidebar' ) ),
);
?>
<div class=""<?php html_class( $clasess ); ?>""></div>
}}}


Please let me know what you people think about having a directive function for classes.

Thanks,"	vijayhardaha
	57434	Extending the list of supported inline CSS properties allowed by safe_style_css		Formatting		normal	normal	Awaiting Review	feature request	new		2023-01-09T15:18:16Z	2023-01-09T15:18:16Z	"I propose extending the list of safe CSS properties allowed in KSES to provide a better UX. 

My current employer has a steady drip of requests to add new properties, `box-shadow`, `word-wrap` etc., that look like they could be easily supported. We also get requests for positioning properties like `top`, `left` etc., which can be used for clickjacking and the like. I think it would be good to widen support and also put it on record why specific properties are not supported. I am happy to do most of the work preparing the lists of properties, but first, I would like to gauge the general appetite for such a change. 

Please chime in with your thoughts. 
"	mk9287
	51040	How about having a native BR to Newline method, i.e. br2nl		Formatting		normal	normal	Awaiting Review	feature request	new	dev-feedback	2020-08-17T09:54:59Z	2023-12-14T20:35:11Z	"Is there a specific reason that WordPress does not have yet (?) a function to convert Line break (`<Br />`) to Newline (`\n`)?

This is useful for `textarea` fields.

One of the use cases could be a multiline address used as metadata in the user profile.

In the `textarea` user enters like:


{{{
Building name <Return>
Street address <Return>
Postal code. Country name
}}}


When saved we usually convert all line breaks into HTML line breaks for easier rendering in the front-end. We do this using `nl2br` method. So in the database, the above becomes:


{{{
Building name <br />
Street address <br />
Postal code. Country name

}}}

However, when the above information is populated in edit mode, it comes up like


{{{
Building name <br />
Street address <br />
Postal code. Country name.
}}}


A `br2nl` method will make life much easier.

{{{#!php
<?php
/**
 * @param string $input_string
 * Converts HTML line break (<br />) into newline character (\n)
 *
 * @return null|string|string[]
 * Since 5.5
 */
function br2nl( $input_string ) {
   return preg_replace('/<br\s?\/?>/ius', ""\n"", str_replace( ""\n"", """", str_replace( ""\r"", """", htmlspecialchars_decode( $input_string ) ) ) );
}
}}}
"	subrataemfluence
	52100	Include highlight.js in core for syntax highlighting for codeblocks in markdown		Formatting		normal	major	Awaiting Review	feature request	new		2020-12-17T07:05:58Z	2020-12-31T00:38:43Z	"The solution is highlight.js and it is described here:
https://github.com/Automattic/jetpack/issues/18035#issuecomment-746791498"	DBJ
	60436	Cannot create large Tiled Albums - causes crash		Gallery	6.4.3	normal	blocker	Awaiting Review	defect (bug)	new		2024-02-05T06:28:13Z	2024-02-05T06:28:13Z	Cannot create Tiled Album Gallery with large numbers of images. It crashes the editor on a fast 16GB RAM system. Browser tab slows to a crawl and crashes.	amdphreak
	52171	Featured image error in media library, detached.		Gallery	5.6	normal	normal	Awaiting Review	defect (bug)	new		2020-12-24T18:52:40Z	2026-01-29T11:13:15Z	"Again, I found a nasty software bug in the media library, not the first one.
A given image is nicely attached as a featured image, to be seen in the editor, and to be seen nicely when viewed. In the media library, however, it writes to the image that it is detached and has no article title above it. There is no more of this image named file above, so it cannot be said that there is another image attached that looks the same. I tried to save this article several times to see if it was just a temporary error, but it didn't change, the image is still detached.
What I have found bugs in the media library so far is I signaled to WP at the bug report address, they also replied the next day that they were happy to receive the reports, but when I asked us to switch to an email contact, they have not appreciated a response ever since. All of this chat was on a public forum where not even a picture can be uploaded.
At least you can upload a picture here. https://1drv.ms/u/s!AkY7Ee0Yb2VfhYczhGJepwyLK8JsaQ?e=zwz8tr
[[Image(""https://1drv.ms/u/s!AkY7Ee0Yb2VfhYczhGJepwyLK8JsaQ?e=zwz8tr"")]]"	hobbiasztalos
	40811	Gallery drag and drop breaks layout		Gallery	3.5	normal	normal	Future Release	defect (bug)	assigned		2017-05-18T23:40:24Z	2019-12-26T20:50:12Z	"Starting with an example gallery:

[[Image(https://cldup.com/hcwGa3LYIW-3000x3000.png)]]

1) If I start dragging the nth item in a row, n blank spaces are created in the next row, eg:

[[Image(https://cldup.com/_Fbgdjcs1w-3000x3000.png)]]

2) The exception is when I start dragging the last item in a row - as soon as I start to drag, a blank space appears where the current item / the mouse is, and the actual item I am dragging appears a long way from the mouse (in the first position in the next row). 

[[Image(https://cldup.com/8j0d3aCFrk-3000x3000.png)]]

This occurs in Firefox in Windows on a clean WordPress installation with no plugins installed. Testing in Chrome, I get the same results with the exception of dragging the 2nd or 4th item in a row, which work perfectly (1st and 3rd cause gaps; last breaks).

I expect this is due to rounding in some way, and it appears to differ based on the width of your browser. If I go into Firefox responsive view and set a width of 1366px, everything works perfectly. 1367px works for all but the last image in a row, while 1369px has everything broken."	smerriman
	53263	Media galery new libraries		Gallery	5.7.2	normal	normal	Awaiting Review	defect (bug)	new		2021-05-23T22:31:06Z	2025-09-17T08:39:06Z	"Hello!
I found a weirdness in wp 5.7.2 I don't know if it's intentional or something went crazy for me.
So far, the media gallery has stored images by year / month, but since the transition to 5.7.2 it has been stored in year / month / day libraries.
I find this very unnecessary because sometimes I write the article 2-3 days in advance and but it also creates the directory for the day I don’t upload an image. This will waste about 4 kb of storage space on the server for every unnecessarily created empty directory and if I don't pay attention it will be a lot in a couple of years. I tried to look at what they had improved, but found nothing about it.
Who can turn off this daily directory somewhere? Have you met this yet?
[[Image(https://1drv.ms/u/s!AkY7Ee0Yb2Vfhc0FhdZuP0lQQNjnUg?e=t6lBiE)]]"	hobbiasztalos
	59799	Post editor Galley size preview images select size default		Gallery	6.3.3	normal	normal	Awaiting Review	defect (bug)	new		2023-11-03T02:27:50Z	2023-11-03T02:27:50Z	"Dears I don't no if this is one bug, but this is what hapend to me:

I create one new post
I add one gallery
I add the images and close
Save the post

In the resolution say miniature, maybe is thumbnail I am in spanish
But in reality use the full size

But in the gallery, If I press in resolution and change to medium or miniature
The gallery now respect the resolution miniature or medium, etc

You can change the default resolution to miniature and left the input select in miniature.

Or you change the select input to bigger, because that is the resolution if you no touch nothing in gallery

One of the two are wrong, you no can have the select in miniature and show the image bigger.

I have jetpack active without cdn
Generatepress theme
And all my galleries are in bigger size preview!

I dont no if make the request here, but I like have one button in media setting for choice the default preview of the galleries, maybe you can add the id post where you no want to change the size preview

But will be one good idea for no make one by one
Also you can choice mobile and PC different size preview gallery

That is my report and idea

If have one function for change the preview to medium, great"	Guillermo77
	56568	Some Cases Image Metadata is not editable.		Gallery		normal	normal	Awaiting Review	defect (bug)	new		2022-09-14T16:23:34Z	2022-09-14T16:23:34Z	"[<a href=""https://ibb.co/VgcXmDw""><img src=""https://i.ibb.co/dPwng6m/w01.png"" alt=""w01"" border=""0""></a>]

[[Image(<a href=""https://ibb.co/VgcXmDw""><img src=""https://i.ibb.co/dPwng6m/w01.png"" alt=""w01"" border=""0""></a>)]]

Click on the image 

[<a href=""https://ibb.co/6JykkDd""><img src=""https://i.ibb.co/mFR33hx/w02.png"" alt=""w02"" border=""0""></a>]
[[Image(<a href=""https://ibb.co/6JykkDd""><img src=""https://i.ibb.co/mFR33hx/w02.png"" alt=""w02"" border=""0""></a>)]]

close the image gallery pop up and click again on the feature image.

now i am able to edi the Metadata of the image
[<a href=""https://ibb.co/VxgTZjC""><img src=""https://i.ibb.co/Mfc7421/w03.png"" alt=""w03"" border=""0""></a><br /><a target='_blank' href='https://imgbb.com/'>upload pics</a><br />]

[[Image(<a href=""https://ibb.co/VxgTZjC""><img src=""https://i.ibb.co/Mfc7421/w03.png"" alt=""w03"" border=""0""></a><br /><a target='_blank' href='https://imgbb.com/'>upload pics</a><br />)]]

please look into it."	janareddy
	47922	src attribute in Image Gallery Block is inconsistent with image inserted outside of gallery.		Gallery	5.2.2	normal	normal	Awaiting Review	defect (bug)	new		2019-08-22T17:20:40Z	2019-08-22T17:20:40Z	"Steps:
1. Create an Image Gallery Block.
2. Upload an Image
3. Select ""Link To"" ""Media File""
4. Preview / Publish post.


== What I expect to happen:

A thumbnail of my uploaded image shown in the gallery that links to the original uploaded image. i.e. The behaviour should be consistent with images inserted outside of galleries.

I expect the resulting source to look like this: (The same as it would be if the image was outside of a gallery)

{{{
<figure class=""wp-block-image""><a href=""http://www.ekran.org/ben/wp/wp-content/uploads/2019/08/23.sigma35.e0.5.png""><img src=""http://www.ekran.org/ben/wp/wp-content/uploads/2019/08/23.sigma35.e0.5-420x530.png"" alt="""" class=""wp-image-4868"" srcset=""http://www.ekran.org/ben/wp/wp-content/uploads/2019/08/23.sigma35.e0.5-420x530.png 420w, http://www.ekran.org/ben/wp/wp-content/uploads/2019/08/23.sigma35.e0.5-238x300.png 238w, http://www.ekran.org/ben/wp/wp-content/uploads/2019/08/23.sigma35.e0.5-768x970.png 768w, http://www.ekran.org/ben/wp/wp-content/uploads/2019/08/23.sigma35.e0.5-811x1024.png 811w, http://www.ekran.org/ben/wp/wp-content/uploads/2019/08/23.sigma35.e0.5.png 1109w"" sizes=""(max-width: 420px) 100vw, 420px"" /></a></figure>
}}}


== What actually happens:

The gallery uses the 1024x sized images that link to the same 1024px sized images, seemingly ignoring the ""Link to"" ""Media File"" specification. The 1024px down-scaled image seems to be selected arbitrarily and the visitor cannot access the full-sized image by clicking on the image in the gallery.

This is the corresponding source I actually get:

{{{
<figure><a href=""http://www.ekran.org/ben/wp/wp-content/uploads/2019/08/23.sigma35.e0.5-811x1024.png""><img src=""http://www.ekran.org/ben/wp/wp-content/uploads/2019/08/23.sigma35.e0.5-811x1024.png"" alt="""" data-id=""4868"" data-link=""http://www.ekran.org/ben/wp/2019/early-full-resolution-explorations/23-sigma35-e0-5/"" class=""wp-image-4868"" srcset=""http://www.ekran.org/ben/wp/wp-content/uploads/2019/08/23.sigma35.e0.5-811x1024.png 811w, http://www.ekran.org/ben/wp/wp-content/uploads/2019/08/23.sigma35.e0.5-420x530.png 420w, http://www.ekran.org/ben/wp/wp-content/uploads/2019/08/23.sigma35.e0.5-238x300.png 238w, http://www.ekran.org/ben/wp/wp-content/uploads/2019/08/23.sigma35.e0.5-768x970.png 768w, http://www.ekran.org/ben/wp/wp-content/uploads/2019/08/23.sigma35.e0.5.png 1109w"" sizes=""(max-width: 811px) 100vw, 811px"" /></a></figure>
}}}


Seems the offending issues are that:

a. the href points to the down-scaled image, not the media file.
b. {{{sizes=""(max-width: 811px) 100vw, 811px""}}} when it should be {{{sizes=""(max-width: 420px) 100vw, 420px""}}} where 420px is my default thumbnail size."	bbogart
	65155	wrong aspect-ratio of pictures in the galerie with Firefox 150		Gallery	6.9.4	normal	normal	Awaiting Review	defect (bug)	assigned		2026-04-30T13:29:45Z	2026-04-30T13:33:55Z	"WordPress 6.9.4.
Element ""**Galerie**"" (in addition ""Simple Lightbox"" 2.9.5).
More than one row of pictures on a page.
Galerie-configuration:
 - NO crop of the pictures.
 - Aspect-Ratio original.

The first row of pictures in the first galerie on the page is Okay. Each picture has its individual aspect-ratio.
In the following rows the **pictures have a unique size**. They are **streched** to 2:1 to fit this size.

This happens only with the latest Firefox-Browser 150.0.1 on Linux or Windows.
The error NOT occurs in Brave, Edge or Chrome.

The following change fixed the error for me:

File ""/wp/wp-includes/blocks/gallery/style.css""

OLD
{{{
.wp-block-gallery.has-nested-images figure.wp-block-image img {
  display: block;
  height: auto;
  max-width: 100% !important;
  width: auto;
}
}}}

NEW
{{{
.wp-block-gallery.has-nested-images figure.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
}}}

Minimize to /wp/wp-includes/blocks/gallery/style.min.css

See also:

https://wpde.org/thread/203056-verzerrte-bilder-in-der-gallerie-in-firefox/
Some say the css is wrong, others say it's a bug in Firefox.

https://bugzilla.mozilla.org/show_bug.cgi?id=2034897 "	fotodrachen
	40524	Filter hook for max image columns in gallery settings		Gallery	4.7.4	normal	normal	Awaiting Review	enhancement	new	has-patch	2017-04-22T09:52:47Z	2017-04-22T10:10:03Z	"It would be nice to have a filter for modifying maximum count of gallery columns.

Or would this be a bad hook, because most of themes would not support more 9 (default maximum) columns out of the box?"	JanneLeppanen
	41328	lightbox plugins cannot get image address to open except from image link		Gallery	4.8	normal	normal	Awaiting Review	feature request	new		2017-07-14T14:43:04Z	2019-05-02T13:39:24Z	"it would be good if you put image sizes specially for lightbox plugins.

it is already possible to edit A tag's href attributes manually by adding something like ""-768x1024"" but that endings differ for different images so it is not easy.

it is not possible to edit links of images of gallery at all, though it is possible to copy-past gallery code from preview's html source and then edit it manually.

by default single images and gallery images link to full version of image or to attachment page, and it is not possible to change to smaller version from gui.

it would be good if it would be possible to easily select smaller image from gui because as i said they can have different endings. and it would be especially more comfortable for galleries because it would change many links at once.

maybe it would be good to provide additional image address in additional attribute for usage by lightbox plugins. so A tags around image might link to full image or attachment as configured and lightboxes would get get image address from custom attribute."	qdinar
	59436	"""The response is not a valid JSON response"""		General	6.3.1	normal	normal	Awaiting Review	defect (bug)	new		2023-09-24T16:50:18Z	2023-09-24T16:50:18Z	"After update to WordPress 6.3.1 I am not able to edit posts. I needed to install plug in which make on my page only classic editor. After trying to post/edit something without it, I get info: ""“Updating failed. The response is not a valid JSON response”.

I checked WordPress forum, and I am not the only one with the issue after 6.3.1 installation. I also perform troubleshooting describes in many articles like: tirn off all plug-ins or edit .htaccess file. 
"	egzaltowana
	40899	'&' Is always escaped in the JavaScript template.		General	4.7.5	normal	normal	Awaiting Review	defect (bug)	new		2017-06-01T08:41:12Z	2020-09-08T13:05:47Z	"When I tried the JavaScript template, '&' was always escaped.

Source:
{{{
<script type=""text/template"" id=""tmpl-fields"">
<p>&</p>
<p>Unscaped: {{{data.value}}}</p>
<p>Escaped: {{data.value}}</p>
</script>
<script type=""text/javascript"">
( function($) {
	$(document).ready( function () {
		var template = wp.template( 'fields' );
		$( '.widget_search' ).after( template( { value: ""W<i>o</i>&r'l\""d"" } ) );
	} );
} )( jQuery );
</script>
}}}

Rendering:
{{{
<p>&amp;</p>
<p>Unscaped: W<i>o</i>&amp;r'l""d</p>
<p>Escaped: W&lt;i&gt;o&lt;/i&gt;&amp;r'l""d</p>
}}}

While checking the interpolation of the variable, '&' was always converted to '& amp;'.
Is this a specification or a bug?
"	tmatsuur
	61107	'Change role to...' field on wp-admin/network/site-users.php?id=xxx is populated by wrong site roles		General		normal	normal	Awaiting Review	defect (bug)	new		2024-04-30T21:15:00Z	2024-04-30T21:15:00Z	"Please see images for bug details

**The solutions**
Replace line 314 in file wp-admin/includes/class-wp-users-list-table.php with: 

{{{#!php
<?php
<?php 
            if ( $this->is_site_users ) {
                switch_to_blog( $this->site_id );
                wp_dropdown_roles(); 
                restore_current_blog();
            } else {
                wp_dropdown_roles();                
            }
            ?>
}}}
"	ignatiusjeroe
	54954	--wp--preset-- variables defaults not being updated by add_theme_support() 'editor-font-sizes' or 'editor-color-palette'		General	5.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-01-27T14:57:11Z	2022-02-22T13:44:44Z	"Having an issue updating the default values for preset variables, such as font size {{{large}}}, or color {{{black}}}

Since 5.9 it appears that fonts and colours defined in theme.json will correctly override the default values of --wp--preset-- variables, however those defined via add_theme_support are not, and so the default values are still being used.

This is being triggered by whether or not a theme calls {{{add_theme_support( 'experimental-link-color' )}}}

A simple way to test what's going on here:

1. Open a blank install with the Twenty-Twenty-One theme installed.
2. Create a new page and add paragraph text with the font size set to {{{large}}} and set the background color to {{{black}}}
3. Open {{{functions.php}}} and edit {{{line 170}}} to change the {{{large}}} font size, and then edit {{{line 203}}} to change the black color and save.

Result: Paragraph text correctly reflects changes made to font size and color.

4. Open functions.php and delete {{{line 333: add_theme_support( 'experimental-link-color' );}}}

Result: Font size and color fallback to WP default values.

Expected behaviour: Font sizes and colors set via {{{add_theme_support}}} should continue to work as pre 5.9 without the need to add {{{add_theme_support( 'experimental-link-color' );}}}"	tommusrhodus
	62920	301 redirect of query URLs		General	6.7.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-02-07T21:34:01Z	2025-02-20T11:35:09Z	"
WordPress will redirect all query URLs with comma, i.e.:

- `https://undsgn.com/?test=foo,bar`
- `https://www.stw.no/?test=cucurbitaceae,apocynaceae`
- `https://www.sentrylocksmiths.com.au/?test=cucurbitaceae,apocynaceae`

Bug is causing excessive Google crawl requests, as each request of the initial url will be redirected.

Issue confirmed by @bcworkz in WordPress Forum - please see 
[https://wordpress.org/support/topic/301-redirect-of-filter-urls/#post-18292594]."	rosmo01
	66261	AVIF uploads get JPEG sub-sizes when Imagick (ImageMagick 6) reports the file as HEIC		General		low	minor	Awaiting Review	defect (bug)	new	has-patch	2026-10-06T20:10:54Z	2026-10-09T07:27:41Z	"Hi everyone,

I searched the existing tickets before posting and didn't find anything that matches this exactly. Related are #53645 (HEIC to JPEG conversion in 6.7) and #62365 (HEIC mapping vs. `image_editor_output_format` overrides), but as far as I can tell they cover real HEIC uploads, not AVIF files. If this is a duplicate, please point me to the right ticket.

== Summary ==

On a server with ImageMagick 6.9.11, uploaded AVIF files get their sub-sizes (thumbnail, medium) generated as JPEG instead of AVIF. The reason seems to be that Imagick identifies the AVIF file as HEIC, so the HEIC to JPEG mapping kicks in.

== Environment ==

 * WordPress 7.1.3, fresh install, no content
 * PHP 8.5.9
 * Imagick 3.8.1 with ImageMagick 6.9.11-60 Q16
 * GD (bundled) with AVIF support
 * Theme: Twenty Twenty-Five

== Is this the latest version? ==

Yes, I tested on a fresh install of 7.1.3.

== Does it happen with all plugins deactivated and a default theme? ==

Yes. The install is new, Twenty Twenty-Five is active and no plugins are active. Debug logging is enabled and nothing is written to the log. `image_editor_output_format` and `image_editor_default_mime_type` have no filters attached.

== Steps to reproduce ==

 1. Use a server where `WP_Image_Editor_Imagick` is selected (ImageMagick 6.9.11, AVIF listed in the supported formats).
 2. Upload an AVIF file to the Media Library.
 3. Look at the attachment metadata (`wp_get_attachment_metadata()`) or the uploads folder.

== Expected result ==

The original stays `image/avif` and the sub-sizes are generated as AVIF (e.g. `image-150x150.avif`).

== Actual result ==

The original is stored as `image/avif`, but the sub-sizes are created as JPEG (`image-150x150.jpg`, `""mime-type"": ""image/jpeg""` in the metadata).

== What I found when debugging ==

 * `wp_get_image_mime( $file )` returns `image/avif`, and so does `get_post_mime_type()`.
 * `new Imagick( $file )` reports `getImageFormat()` = `HEIC` and `getImageMimeType()` = `image/x-heic` for this AVIF file.
 * After `wp_get_image_editor( $file )`, the editor's `mime_type` property is `image/heic`.
 * Calling `$editor->save( $path, 'image/avif' )` explicitly works fine and writes a valid AVIF. So Imagick can encode AVIF, the problem only occurs in the normal upload flow where no target type is passed.
 * Site Health lists the default transforms `image/heic → image/jpeg` (plus heif and the sequence types).

My guess is that ImageMagick 6 handles AVIF through the libheif delegate and therefore labels it as HEIC. WordPress then seems to take the type from Imagick instead of from the file itself, and the default HEIC to JPEG mapping is applied to what is really an AVIF file. I haven't looked deeper into the code than this, so please correct me if I'm wrong.

== Workaround ==

Forcing GD fixes it, since GD reports the format correctly:

{{{
add_filter( 'wp_image_editors', fn() => [ 'WP_Image_Editor_GD' ] );
}}}

With that filter, new uploads get AVIF sub-sizes after regenerating thumbnails.

== Possible direction ==

Maybe the editor could use the mime type detected from the file (`wp_get_image_mime()`) when Imagick returns a HEIC type for a file that WordPress itself identifies as AVIF. ImageMagick 6.9.11 is old, so this may be an edge case, but it is still shipped by some distributions and hosts.

Thanks for taking a look. I can provide a sample AVIF file and more test output if that helps."	st3phan5
	44212	Add a new helper function for comma- or space-separated lists		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-05-24T10:26:34Z	2018-05-28T15:48:21Z	"The functions `wp_parse_id_list()` and `wp_parse_slug_list()` both use `preg_split()` to convert strings to an array. Strings with leading or trailing spaces will result in an added empty value {{{''}}} or {{{0}}} returned by these functions.

Example

{{{
// leading space
$ids = wp_parse_id_list( ' 1,2,3' );

// result

array(
    0 => 0
    1 => 1
    2 => 2
    3 => 3
)
}}}

This is because the `PREG_SPLIT_NO_EMPTY` flag is not used with`preg_split()`. The same regex `'/[\s,]+/'` used by these functions is also used in other places in WordPress core (also without using the flag). That's why I propose a new helper function for comma- or space-separated lists (that uses the flag by default).

That function could then be used by `wp_parse_id_list()` and `wp_parse_slug_list()` and all other instances where this regex is used."	keesiemeijer
	58751	Add noindex to 404 template		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-07-07T12:13:02Z	2026-04-21T12:36:22Z	"This is a follow-up to #52457. 

we had the same problem, but spam links use tags, they don't directly intrude on our website. How do we add the code so that google doesn't index it?

Example:

`https://example.com/tag/%E5%81%87%E5%A4%9A%E5%93%A5%E5%AD%A6%E5%8E%86%E6%88%90%E7%BB%A9%E5%8D%95-(%E2%8F%A9%E5%8A%9E%E8%AF%81%E7%BD%91%E7%AB%99%E2%9C%94%EF%B8%8Fbbjjzz.com%E2%8F%AA)-%E5%81%87%E5%A4%9A%E5%93%A5%E5%AD%A6%E5%8E%86%E6%88%90%E7%BB%A9%E5%8D%95-%E5%8A%9E%E5%81%87%E8%8B%B1%E5%9B%BD%E8%B5%AB%E7%89%B9%E7%A6%8F%E5%BE%B7%E5%A4%A7%E5%AD%A6%E5%AD%A6%E5%8E%86%E6%96%87%E5%87%AD%E4%B8%8A%E6%B5%B7%E9%87%91%E5%B1%B1%E5%8C%BA-%E5%81%87%E5%A4%9A%E5%93%A5%E5%AD%A6%E5%8E%86%E6%88%90%E7%BB%A9%E5%8D%95-(%E2%8F%A9%E5%8A%9E%E8%AF%81%E7%BD%91%E7%AB%99%E2%9C%94%EF%B8%8Fbbjjzz.com%E2%8F%AA)-%E5%81%87%E5%A4%9A%E5%93%A5%E5%AD%A6%E5%8E%86%E6%88%90%E7%BB%A9%E5%8D%95-%E5%8A%9E%E5%81%87%E8%8B%B1%E5%9B%BD%E8%B5%AB%E7%89%B9%E7%A6%8F%E5%BE%B7%E5%A4%A7%E5%AD%A6%E5%AD%A6%E5%8E%86%E6%96%87%E5%87%AD`"	patrickggg
	37253	"Add several missing ""_deprecated_function()"" calls"		General		low	normal	Future Release	defect (bug)	new	has-patch	2016-07-02T07:21:54Z	2019-04-19T20:51:49Z	"I found 13 deprecated functions that don't use `_deprecated_function()`.

We have to use the deprecated functions call to trigger an error when `WP_DEBUG` is `true`. It helps developers to catch and fix their code.

See the attached patch."	ramiy
	66283	Add skip link to navigate to admin notices panel		General		normal	normal	Future Release	defect (bug)	new		2026-10-10T14:22:52Z	2026-10-14T19:50:12Z	"This is a follow-up to #50486.

That ticket proposed adding a conditional skip link that points to the admin notices container. It was not added in the initial commit, because I was uncertain it was actually desirable. There are two main reasons:

1) The existing Skip to Content link generally lands you only one tab away from the admin notice group. 
2) I don't consider it desirable to introduce contextual variability to primary navigation methods.

Opening this issue for further discussion and work."	joedolson
	65603	Additional CSS cleared in multisite setup when user is admin on single site		General		normal	normal	Awaiting Review	defect (bug)	new		2026-07-10T00:00:52Z	2026-07-13T02:19:17Z	I have a multisite setup. The global admin can add Additional CSS to a block but when a user edits the page that isn't a global admin the Additional CSS disappears.	launchinteractive
	65925	After 7.1 update images not rendering		General		normal	normal	Awaiting Review	defect (bug)	new		2026-08-20T18:56:14Z	2026-08-21T18:50:21Z	"Just for information, and I hope it’s a “one-off” instance, when updating one of my sites today, every image was removed and replaced with “placeholder” text. This applied to both background images and normal images on every page of the site.

I am using Oxygen6, and the previous WordPress version was the most recent up-to-date version. Hosting is with Bluehost (who are not the best)."	adrian33000
	65498	After Upgrading to 7 the admin panel colors changed to purple		General		normal	normal	Awaiting Review	defect (bug)	new		2026-06-20T20:55:30Z	2026-06-22T14:15:58Z	After Upgrading to 7 the admin panel colors changed to purple. Is there a way to fix it. I disabled all my plugins and that didn't help.	jason_hayes
	33936	Alignment issue in dashboard update count		General		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2015-09-20T12:05:10Z	2019-06-19T08:12:11Z	"There is a small margin issue in dashboard update count.[[Image(http://s2.postimg.org/noqs824vt/alignment_issue_dashboard_update_count.png)]]
"	PranaliPatel
	62247	Allow Query block to ignore sticky posts		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-10-17T18:53:04Z	2024-10-17T18:54:06Z	Please see https://github.com/WordPress/gutenberg/issues/66221 and https://github.com/WordPress/gutenberg/pull/66222	coreyw
	56094	Allow the style property of block.json to be an array		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-06-29T12:29:36Z	2022-08-19T10:34:01Z	"## What problem does this PR solve?

In https://github.com/WordPress/gutenberg/pull/34180 we moved block CSS to `blockJson.supports.__experimentalStyle`. This ticket is about getting rid of that experimental property and supporting arrays in `blockJson.style. The goal is to only have a single location where styles are defined.
"	zieladam
	63554	Are we sensitive about direct accessed URL fatal errors?		General		normal	normal	Awaiting Review	defect (bug)	new		2025-06-10T23:33:22Z	2025-06-10T23:33:22Z	"Related to #62722

Issuing this command within `wordpress-develop` (inside `src/`), reports a total of 450 files. Many of them are `includes`, but may others are actual maintained WP files.

`(find . -path './wp-content' -prune -false -o -name '*.php' -print | sed 's|^\./||' | sort -u | xargs -P 10 -I {} curl -s -o /dev/null ""http://localhost:8889/{}""; grep ""PHP Fatal error"" wp-content/debug.log | grep -o '/[^ ]*.php' | sort -u)`

What this command does is simple:

First it gets all the PHP files within `src/` except the ones from `wp-content` and then it issues a curl against each. This should be reporting in `wp-content/debug.log` (I needed a little tweak in `tools/local-env/php-config.ini` adding `log_errors = On` because, for some reason, it was not displaying the on the `debug.log` but I'm not 100% sure if I messed something, so I'm just saying). Finally, it displays all the files that had a ""PHP Fatal Error"" string within the error in `debug.log`

So I was wondering: Shall we be sensitive about this? "	SirLouen
	61513	Attention points in Pentest		General		normal	normal	Awaiting Review	defect (bug)	new		2024-06-26T19:00:01Z	2024-06-26T20:40:52Z	"Team WP, good evening.

The security team of one of the projects I work on asked me to make some adjustments to increase the security level, and this led me to edit some WordPress Core files. I would like to see the possibility of including them in the Core permanently, focusing on increasing community security.

1. Direct access to some files inside /wp-admin folder can lead to exposure of sensible data:
    - /wp-admin/admin-functions.php
    - /wp-admin/admin-header.php
    - /wp-admin/custom-background.php
    - /wp-admin/custom-header.php
For adjust i've just add this code on top of file:

// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}


2. Direct access to /wp-admin/upgrade.php can exposure a WP installation. To fix it i've add this code to /wp-admin/upgrade.php after the require of the wp-load.ph file

if( !is_user_logged_in() ){
	die( '-1' );
}


If possible, I would like to check the impact of the proposed adjustments and, if they are within the standards, that they are added to the WP core."	raphaelsramos
	44070	Avoid flickering of admin notices		General		normal	normal	Awaiting Review	defect (bug)	new		2018-05-14T10:16:22Z	2026-08-21T08:43:03Z	"Here's an example:

- Save settings on the ''General Settings'' page ({{{wp-admin/options-general.php}}}) 
- Then the ""Saved settings"" admin notice displays first above the page header.
- Then it moves below it, causing flickering.

The admin notices are moved with Javascript in {{{wp-admin/js/common.js}}}

{{{
/*
 * The `.below-h2` class is here just for backward compatibility with plugins
 * that are (incorrectly) using it. Do not use. Use `.inline` instead. See #34570.
 * If '.wp-header-end' is found, append the notices after it otherwise
 * after the first h1 or h2 heading found within the main content.
 */
 if ( ! $headerEnd.length ) {
     $headerEnd = $( '.wrap h1, .wrap h2' ).first();
 }
 $( 'div.updated, div.error, div.notice' ).not( '.inline, .below-h2' ).insertAfter( $headerEnd );

}}}

See ticket #35047 and changeset [36134]. Also ticket #34570 and changeset [35516].


The same happens for notices on the other admin ''Settings'' screens, like:

- {{{wp-admin/options-writing.php}}}
- {{{wp-admin/options-reading.php}}}
- {{{wp-admin/options-discussion.php}}}
- {{{wp-admin/options-permalink.php}}}
- {{{wp-admin/profile.php}}}
- {{{wp-admin/user-edit.php?user_id=123}}}
- ... etc ...

We should avoid this flickering, e.g. hide it with CSS and display it with Javascript?

I guess we should also consider the case if Javascript is turned off?

Related #43978 [https://core.trac.wordpress.org/ticket/43978 Avoid flickering on the Tools / Export page]
"	birgire
	61776	Background color is not getting updated in block editor which we are setting through theme customization through templates		General	6.5.5	normal	critical	Awaiting Review	defect (bug)	new		2024-07-27T07:50:26Z	2025-05-12T01:38:24Z	As an admin I have updated the background color of body content through template setting, which is getting applied on all pages on frontend but that background color is not showing in editor of any page	amitrelx
	58659	Bullet points		General		normal	normal	Awaiting Review	defect (bug)	new		2023-06-28T14:45:13Z	2023-06-29T09:14:32Z	When adding a bullet pointed list, I am unable to easily make a new bullet point. Hitting 'enter' does not make a new bullet point. 	mrwilsondfsa
	60450	Button component is missing has-text class when text prop is used		General	6.4.3	normal	normal	Awaiting Review	defect (bug)	new		2024-02-06T22:03:33Z	2024-02-06T22:03:33Z	"When using the [Button](https://developer.wordpress.org/block-editor/reference-guides/components/button/) component, adding text to the button will output the `has-text` class on the button. 

Alternatively, the Button component has a text prop that displays the given text inside the button, but when used, the prop does not output the `has-text` class on the button.  



{{{
<Button 
	variant=""secondary""
	text={__('Click Me', 'example')}
/>
}}}



For those who use the `text` prop, this creates a styling inconsistency and does not take advantage of the core `has-text` styling. The expected outcome would be that using the `text` prop outputs the `has-text` class on the button. "	mmcalister
	64094	Button variation element styling in theme.json overridden by outline default style		General	6.8.3	normal	normal	Awaiting Review	defect (bug)	new		2025-10-14T09:33:59Z	2025-10-22T15:38:39Z	"**Issue**
When using a `core/button` `outline` style with `outline.elements.button` styling in theme.json, the default `outline` styles override the `outline.elements.button` styles. Some of the `outline.elements.button` properties can be applied directly to the `outline` object, but not all, i.e. `:hover`, `:focus`, etc.

This is an issue, because the only way to apply a **hover** effect to the default outline button in theme.json is to use the `css` property, as seen in the Twenty Twenty Five theme. The expected behaviour is that the `elements.button` styles in theme.json take priority over the default `outline` styles (not defined in theme.json). Or more general: that theme.json styling take priority over default styling.

The cause for this issue is the **order** of the generated css. All selectors have a specificity of (0,1,0), but the default `outline` styles are positioned **after** the `elements` styles and thus override them.

This only applies to the `outline` style. When using a custom style, i.e. `variations.custom-outline`, element styling works as expected on the **frontend** (but not in the editor, see below).

**How to reproduce**
In Twenty Twenty Five theme.json, replace `styles.blocks.core/button.variations.outline` with 


{{{
""outline"": {
	""elements"": {
		""button"": {
			""color"": {
				""background"": ""var:preset|color|accent-2""
			},
			"":hover"": {
				""color"": {
					""background"": ""var:preset|color|accent-3""
				}
			}
		}
	}
}
}}}


You will see that the background colors don't apply. They do when using a `custom-outline` style.

This is what the generated css looks like


{{{
:root :where(.is-style-outline--2 .wp-element-button, .is-style-outline--2 .wp-block-button__link) {
	background-color: var(--wp--preset--color--accent-2);
}

:root :where(.is-style-outline--2 .wp-element-button:hover, .is-style-outline--2 .wp-block-button__link:hover) {
	background-color: var(--wp--preset--color--accent-3);
}

:root :where(.wp-block-button.is-style-outline--2 .wp-block-button__link) {
	background: transparent none;
	border-color: currentColor;
	border-width: 2px;
	border-style: solid;
	color: currentColor;
	padding-top: 0.667em;
	padding-right: 1.33em;
	padding-bottom: 0.667em;
	padding-left: 1.33em;
}
}}}


You see that the `elements` styles are created, but are overridden by the default non-theme.json `outline` styles coming **after** the `element` styles.

Due to the use of the `css` property for hover styling in Twenty Twenty Five theme.json, I guess this issue is kind of known (to some), but I didn't find a corresponding issue and think this is bug which should be fixed.

**Additional editor issue**
For custom button styles, element styling works as expected on the frontend, but not in the **editor**. There, the element styles like the background colors don't apply.
"	peroks
	65364	Can't add an external link after updating to WP 7		General	7.0	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2026-05-28T10:41:15Z	2026-05-29T17:37:03Z	"Please help!  There is no linking. The popup to add the link does not work for me.

My site is alushlifemanaul.com.

Thank you!"	venezia566
	59332	Can't customize search in header		General	6.3.1	normal	normal	Awaiting Review	defect (bug)	new		2023-09-12T19:52:07Z	2023-10-05T14:35:32Z	"The search block can't be customized when added to the header navigation. It can be added, but when any customizations are selected, such as ""Change button position"" -> ""No button"", the search box only flickers and nothing changes. This applies to any change I try to make from the toolbar. 

To reproduce problem:
1. Go to Appearance -> Template Parts
2. Select Header
3. Add navigation block, and add search box to end of nav
4. Try to customize the search block

I'm using: 
- WordPress version 6.3.1; Gutenberg plugin is not installed, tested on custom theme, and Twenty Twenty-Two
- Happening in both Chrome and Edge browsers
- Using desktop with Windows 11

GIF of issue: https://imgur.com/a/PYccoLh"	christinameyne
	61226	Can't open add new posts page		General	6.5.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-05-16T03:54:26Z	2024-07-24T18:11:27Z	"I install wordpress by:



{{{
sudo service apache2 start
sudo service mysql start
sudo apt update
sudo apt install -y php libapache2-mod-php php-mysql
sudo a2enmod mpm_prefork
sudo a2dismod mpm_event
sudo service apache2 restart
sudo apt install -y phpmyadmin
echo ""Include /etc/phpmyadmin/apache.conf"" | sudo tee -a /etc/apache2/apache2.conf
sudo service apache2 restart

curl -O https://wordpress.org/latest.tar.gz
tar xzvf latest.tar.gz

mysql -u root -e ""CREATE DATABASE wordpress_db;""

cd /home/labex/project/wordpress
cp wp-config-sample.php wp-config.php
}}}




in wp.config.php:

{{{
$_SERVER['HTTPS'] = 'on';
define('DB_NAME', 'wordpress_db');
define('DB_USER', 'root');
define('DB_PASSWORD', '');
}}}


then:

{{{
sudo cp -r /home/labex/project/wordpress /var/www/html/wordpress
sudo chown -R www-data:www-data /var/www/html/wordpress
sudo service apache2 restart
}}}

and I open the url and signup successful

but when I click the add new post button, the web page become empty, and the console log:


{{{
Uncaught SyntaxError: Unexpected identifier 'https'
VM427 post-new.php:2 Uncaught TypeError: Cannot read properties of undefined (reading 'setCategories')
    at VM427 post-new.php:2:11
VM434 block-editor.min.js:26 Uncaught TypeError: Cannot read properties of undefined (reading '__unstableGetBlockProps')
    at VM434 block-editor.min.js:26:431192
    at VM434 block-editor.min.js:41:131315
    at VM434 block-editor.min.js:41:131359
（匿名） @ VM434 block-editor.min.js:26
（匿名） @ VM434 block-editor.min.js:41
（匿名） @ VM434 block-editor.min.js:41
VM440 block-library.min.js:12 Uncaught TypeError: Cannot read properties of undefined (reading 'privateApis')
    at VM440 block-library.min.js:12:27531
    at VM440 block-library.min.js:14:668882
    at VM440 block-library.min.js:14:668927
（匿名） @ VM440 block-library.min.js:12
（匿名） @ VM440 block-library.min.js:14
（匿名） @ VM440 block-library.min.js:14
VM444 editor.min.js:12 Uncaught TypeError: Cannot read properties of undefined (reading 'SETTINGS_DEFAULTS')
    at VM444 editor.min.js:12:17512
    at VM444 editor.min.js:12:198806
    at VM444 editor.min.js:12:198845
（匿名） @ VM444 editor.min.js:12
（匿名） @ VM444 editor.min.js:12
（匿名） @ VM444 editor.min.js:12
VM402 private-apis.min.js:2 Uncaught Error: Cannot unlock an undefined object.
    at a (VM402 private-apis.min.js:2:2495)
    at VM494 edit-post.min.js:7:38396
    at VM494 edit-post.min.js:7:92887
    at VM494 edit-post.min.js:7:92928
a @ VM402 private-apis.min.js:2
（匿名） @ VM494 edit-post.min.js:7
（匿名） @ VM494 edit-post.min.js:7
（匿名） @ VM494 edit-post.min.js:7
VM497 mce-view.min.js:2 Uncaught SyntaxError: missing ) after argument list (at VM497 mce-view.min.js:2:5417)
VM521 post-new.php:3 Uncaught TypeError: Cannot read properties of undefined (reading 'registerBlockStyle')
    at VM521 post-new.php:3:12
    at VM521 post-new.php:8:4
（匿名） @ VM521 post-new.php:3
（匿名） @ VM521 post-new.php:8
VM502 format-library.min.js:2 Uncaught TypeError: Cannot read properties of undefined (reading '__experimentalLinkControl')
    at VM502 format-library.min.js:2:7416
    at VM502 format-library.min.js:2:23211
（匿名） @ VM502 format-library.min.js:2
（匿名） @ VM502 format-library.min.js:2
VM516 post-new.php:5 Uncaught TypeError: Cannot read properties of undefined (reading 'initializeEditor')
    at HTMLDocument.<anonymous> (VM516 post-new.php:5:25)
}}}


only the add post has this problem, others works fine

my os version:

Linux version 5.4.0-162-generic (buildd@lcy02-amd64-069) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #179-Ubuntu SMP Mon Aug 14 08:51:31 UTC 2023

web browser:
Google Chrome  124.0.6367.201 (arm64)

"	godsdusk
	39543	Certain Strings When Pasted Into Title Bar Cause Loss of Styling		General	4.7	normal	normal	Awaiting Review	defect (bug)	new	close	2017-01-11T02:32:48Z	2025-10-27T12:30:37Z	"To reproduce:

1 - open startpage.com or similar search engine that doesn't use URL redirects
2 - search for string that contains special characters, for example: ""Nova Fátima (Paraná)""
3 - highlight ""Nova Fátima (Paraná)"" from the top result (https://pt.wikipedia.org/wiki/Nova_F%C3%A1tima_(Paran%C3%A1)) and copy it to clipboard
4 - on /wp-admin/post-new.php paste the content of your clipboard to where t says ""Enter title here""
5 - ta da"	Tranny
	65295	Checksum error when trying to upgrade from 6.9.4 to 7.0 with fr_FR package		General		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2026-05-21T09:17:25Z	2026-05-22T06:59:47Z	"I've got this error :


{{{
Mettre à jour WordPress

Téléchargement de la mise à jour depuis https://downloads.wordpress.org/release/fr_FR/wordpress-7.0.zip…

Le téléchargement a échoué.: L'empreinte de contrôle (ou checksum) de votre fichier (efc0790dd3d6320a6e41d0152d2df7a3) ne correspond pas à la valeur de l'empreinte attendue (c195686bfedd394984d8cd19d75a37fa).

Échec de l'installation
}}}

Seems related to the fr_FR package.
It works if I choose to upgrade to the en_US version

=== Environment
- WordPress: 7.0 (after upgrading with en_US)
- Subdirectory: No
- PHP: 8.2.14
- Server: Apache
- Database: mysqli (Server: 5.7.18-16-log / Client: mysqlnd 8.2.14)
- Browser: Firefox 151.0
- OS: macOS
- Theme: Bayard Service 1.0.0
- MU Plugins: None activated
- Plugins:
  * Advanced Custom Fields 6.8.1
  * BSW Blocks 2.15.0
  * Bulk image resizer 2.0.1
  * Carousel Slider Block 2.1.3
  * Contact Form 7 6.1.6
  * Custom Post Type UI 1.19.2
  * Gravity Forms 2.10.2
  * GTM4WP - A Google Tag Manager (GTM) plugin for WordPress 1.22.3
  * hCaptcha for WP 4.26.0
  * MainWP Child 6.0.11
  * MainWP Child Reports 2.3.1
  * Members 3.2.21
  * Redirection 5.7.5
  * SEOPress 9.8.5
  * SEOPress PRO 9.8.4
  * Test Reports 1.3.0
  * WP Mail SMTP 4.8.0
  * WP Sync DB 1.5
  * WP Sync DB Media Files 1.1.4b1
"	jsmansart
	57294	CodeMirror: Text disappears when candidate is confirmed in IME composition		General		normal	normal	Awaiting Review	defect (bug)	new		2022-12-08T07:46:34Z	2022-12-20T02:11:28Z	"In input modes with IME compositions, such as Japanese, the text disappears when a candidate is confirmed. This occurs when it is in a bracket and indented.

For example, enter ""あああ"" as follows:

{{{#!css
.test {
	あああ
}
}}}

Then press Enter to confirm your entry and the text will disappear:

{{{#!css
.test {
	
}
}}}

Perhaps this problem is similar to one that has occurred in the past with the Gutenberg project. I believe that the Enter key to confirm a character is being detected incorrectly, causing unintended behavior.

- https://github.com/WordPress/gutenberg/pull/45607
- https://github.com/WordPress/gutenberg/pull/45510

The IME composition is described in detail in the following tracking issue.

https://github.com/WordPress/gutenberg/issues/45605"	wildworks
	65490	Community feedback on the new interface design		General		normal	major	Awaiting Review	defect (bug)	new		2026-06-19T05:12:19Z	2026-06-19T06:01:28Z	"Hello,

I’m reaching out on behalf of a growing number of users who are highly disappointed with the current visual design. The general consensus among the community is that the current look feels unpolished and below standard.

We strongly urge the development and design teams to reconsider this layout. When a significant portion of your user base agrees that the design needs a major overhaul, we hope you take that feedback seriously and implement changes quickly.

Looking forward to seeing some improvements.

Sincerely,
Vladimir"	grbav
	62593	Condition for doing_it_wrong for conditional tags is too generic		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-11-27T23:59:37Z	2025-11-13T04:16:35Z	"The condition for doing it wrong on conditionals is too generic, causing it to not trigger in many cases, e.g. is_search(),...
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/query.php#L861

e.g. define WP_DEBUG true and add this to an (mu-)plugin and open a 404 or search page and you'll see that you won't get an error from _doing_it_wrong

{{{#!php
<?php
function test_conditionals() {
	if ( is_404() ) {
		wp_die( '404' );
	}

	if ( is_search() ) {
		wp_die( 'search' );
	}
}
add_action( 'setup_theme', 'test_conditionals' );
}}}

"	kkmuffme
	61427	Consistent use of placement of button and link to continue installer or login		General		normal	minor	Awaiting Review	defect (bug)	new	has-patch	2024-06-13T09:45:13Z	2024-10-02T21:03:13Z	"During setup of a fresh WP install you will encounter several forms with either blue buttons or gray-ish buttons. Also you will see a ""log in"" link.

All of them are placed either left or right, but not consistently.
I would love to have all of them on the same side. Personally on the right side.

Note to CSS dev: do not forget RTL stuff.

I will add screenshots.

Also see https://core.trac.wordpress.org/ticket/52989"	ramon fincken
	63384	Content-Disposition 'inline' filenames not respected by download_url()		General	5.9	normal	normal	Awaiting Review	defect (bug)	new		2025-05-02T08:31:45Z	2025-05-06T04:08:16Z	"# Content-Disposition 'inline' filename extraction not working in download_url()

The download_url() function successfully extracts filenames from Content-Disposition headers when they use the 'attachment' directive (e.g., `Content-Disposition: attachment; filename=""xyz.png""`). However, the function fails to extract filenames when the 'inline' directive is used (e.g., `Content-Disposition: inline; filename=""abc.jpg""`). This inconsistency means filenames are only properly captured with the 'attachment' directive but are ignored when using 'inline'.

https://lh3.googleusercontent.com/a/ACg8ocIsaU5KyoziSpU_mP5OpE-dzbmc8hoyOEXemog5RopRRoqTz2Y=s96-c


Example URL: 

{{{#!php
<?php
File: src/wp-admin/includes/file.php
1221: 
1222: 		if ( str_starts_with( $content_disposition, 'attachment; filename=' ) ) {
1223: 			$tmpfname_disposition = sanitize_file_name( substr( $content_disposition, 21 ) );
1224: 		} else {
1225: 			$tmpfname_disposition = '';
1226: 		}

}}}


[[Image()]]"	mi5t4n
	60423	Correct documentation for WP_Block_Parser_Frame class		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-02-02T09:33:10Z	2024-06-19T06:12:52Z	In the DocBlocks for the `__construct` of the class, the `@param` missing null type for `$prev_offset` and `@leading_html_start`	jigar bhanushali
	62923	Cover with fixed background bug on chromium mobile		General	6.7.1	normal	normal	Awaiting Review	defect (bug)	new		2025-02-08T09:02:21Z	2025-02-08T09:02:21Z	"Hi, I discovered a bug creating my lab website.
To be sure it wasn't caused by any plugin I tried to replicate on wordpress.com free and also on another freshly installed wordpress website. It always appear.
The bug is that when inserting a simple wordpress cover block with fixed background if visiting the website via chromium-based mobile browser the image is zooming and unzooming when scrolling the page. It happens when the scrolling action causes the browser addressbar to appear and disappear, and it doesn't bug on the first scrolling when the addressbar isn't disappearing.
The bug is not present on firefox and it's not present on desktop browsers firefox and edge (chromium) because there isn't the addressbas disappearing.
Where to test:
- my website https://giacomomensioguitars.it/
- wordpress.com test https://giacomomensioguitars.wordpress.com/copertina/
- freshly installed wordpress test website http://testguitars.great-site.net/home/
As you can see it's not related to dimension of block, both boxed and full width are affected, and not affected by header sticky or not.
Thanks in advance for reply"	giacomomensio
	64182	Critical Regression in WordPress 6.8+ Causing WooCommerce Cart Session Loss for Guest Users		General	6.8.3	normal	blocker	Awaiting Review	defect (bug)	new	close	2025-11-02T18:25:35Z	2025-11-04T15:11:15Z	"Hello WordPress Team,

I am writing to report a critical, reproducible bug that appears to originate from recent WordPress core updates (starting with version 6.8). This bug causes WooCommerce cart sessions for guest users to be automatically cleared immediately after an item is added — severely impacting e-commerce functionality and resulting in lost sales. It's appearing sometimes not for every added product.

When a guest user adds a variable product to the cart from the Main/Shop/Catalog page (using any variation-selection method), the item is added successfully, then automatically removed from the cart without user action.

This behavior occurs regardless of the variation swatches plugin used, and it disappears entirely when downgrading WordPress to version 6.7.3 (even before 6.7.4 existed).
That confirms the issue is introduced at the WordPress level.

Diagnostic Steps Performed by me:

Plugin Isolation: Only WooCommerce active and any swatch plugin to test the scenario. The issue persisted.

Theme Check: Tested with other themes, my current theme Astra and other like (Kadence, Blocksy). The issue persisted.

Browser Check: Tested in Chrome, Edge, and Opera in Incognito Mode. The issue persisted.

Host Check (Staging): Tested on a clean staging site with Hostinger. The issue persisted.

Host Check (Alternative Host): Migrated the full setup to Pantheon (entirely different stack). The issue persisted there as well.

Reproduced the issue on desktop and android.

WordPress Downgrade Test: Downgrading from 6.8.x → 6.7.3 immediately resolves the issue 100% of the time.

Example of this issue at my end:

Video 1: Bug occurring on Hostinger environment
https://www.loom.com/share/58cf61fba972474d897164a29728ba1b?sid=f6a3d77a-9e91-424e-822e-981b137b0627

Video 2: Same issue on clean Pantheon environment
https://www.loom.com/share/49cc517dce294d33b50850e4473c54e2

You can reproduce the issue at this staging site: https://staging.yazur.shop/product-category/winter-collection/
⚠️ Try adding products multiple times; the issue is inconsistent and does not occur with every product added.

Please escalate this to your development team immediately. This bug is actively preventing sales, and require a quick action.

Thank you for your prompt attention.

Best regards,
Mohammad Mutan"	mutanmohammad
	62620	Cursor mouse disappear on WordPress since 6.7.1		General	6.7.1	normal	minor	Awaiting Review	defect (bug)	new	reporter-feedback	2024-11-29T21:42:24Z	2024-12-03T03:56:03Z	"Hello, 

I am webdesigner on WordPress since 14 years. 
Since the last version ther cursor mouse does not appear on all my website. 
is it normal ? 

Thanks for your help. 

LucasNB
https://www.lucasnb.com"	LucasNB
	62761	Database error logged on re-install with custom LOGGED_IN_COOKIE name		General		normal	normal	Awaiting Review	defect (bug)	new		2025-01-01T14:37:48Z	2025-01-01T14:37:48Z	"There have been a couple of previous tickets in trac about similar issues:

https://core.trac.wordpress.org/ticket/34762
https://core.trac.wordpress.org/ticket/38498

And we have had a similar issue raised over on GitHub at ClassicPress.

https://github.com/ClassicPress/ClassicPress/pull/1699

To reproduce the issue I think the following steps should suffice:

1/ Create a new install and in the `wp-config.php` file use a custom name for LOGGED_IN_COOKIE:
define( 'LOGGED_IN_COOKIE', 'session_' . AUTH_KEY ); // provided salts are defined first
2/ Ensure you are logged into this new site and retain session cookies in the browser.
3/ Drop all database tables
4/ Follow the reinstall steps to re-create the database and either see the error on screen or in debug.log files


{{{
[01-Jan-2025 14:34:13 UTC] WordPress database error Table 'wordpress.test_dev_users' doesn't exist for query SELECT * FROM test_dev_users WHERE user_login = 'admin'
}}}
"	MattyRob
	60328	Deprecated parameter default value of unregister_setting() is not correct type	audrasjb	General		normal	normal	Awaiting Review	defect (bug)	reviewing	changes-requested	2024-01-23T15:26:46Z	2024-01-29T15:23:34Z	"> The parameter callable `$deprecated` cannot default to an empty string. It must either default to `null` or the type has to be changed to `callable|string`.

-- Reported by gerardreches via User Contributed Notes."	crstauf
	62207	Designing issue occur in patterns filter list		General	6.6.2	normal	normal	Awaiting Review	defect (bug)	new		2024-10-11T13:39:45Z	2024-10-14T05:45:17Z	"Designing issue occur in patterns filter list.Spacing between Listing text and bullet points is more.
Need to be reduce gap between them"	multidots1896
	42642	Displayin page WP 4.9		General	4.9	normal	normal	Awaiting Review	defect (bug)	new		2017-11-20T15:10:06Z	2017-11-20T15:27:45Z	"I prefer to display my pages on one column rather than on two, as default checked in WP.
It works fine with twentyseventeen theme and WP 4.8.3.
But it does not any longer works with WP 4.9.
So, I undergraded to 4.8.3 but what a work and waste of time.
Any idea about this bug solving ?
Jacques"	jibe64320
	62477	Do not use $_POST['action'] in the sanitize function.		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-11-19T13:04:49Z	2025-04-21T18:44:30Z	"https://prnt.sc/1LYAES3IjYj0

wp-admin\includes\ajax-actions.php"	nikitasolanki1812
	59992	Document global $locale in wp-admin/options.php		General		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2023-11-30T13:42:55Z	2023-11-30T16:19:32Z	"I have review the below file code and found the we are used a global locale variable. but they do not mention in function comment. So I think we need improve function comment code.

File Names: wp-admin/options.php

"	upadalavipul
	64464	Does Not Escape the Ampersand when It Appears in Something that Looks Like Escape Codes		General		normal	normal	Awaiting Review	defect (bug)	new		2025-12-31T20:34:37Z	2026-01-02T01:29:51Z	"When you type the following:

{{{
&amp;
&#22;
}}}

The content for the RSS should be this:

{{{
&amp;amp;
&amp;#22;
}}}

This will ensure that if someone types an escape code as is, then it will not change when parsed correctly as XML escape codes.

Some change (I think) made this work as expected for escape codes for hexadecimal escape codes. Decimal escape codes and name escape codes still do not render correctly. The post mechanism just stores these things as the escape code.

As a result, if I want to write
{{{
&amp;
}}}
to show an example, I will fail. WordPress will only show the following:
{{{
&
}}}"	chiarella86
	55636	Drag and drop video's go to the top of the page.		General	5.9.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-04-28T00:17:51Z	2026-06-08T11:31:24Z	"Take some time going to the right part to drop a video in and then it put's it at the top.

Nice can just use the arrows or hold and drag it to the right spot.

It's nice too that now it shows like a icon that it's still uploading. But what would be nice is a bar to show the % of it uploading."	RaymondDay
	59542	Duplicate default statement in wp_get_attachment_image_src() documentation		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-10-04T14:03:50Z	2024-01-17T10:34:54Z	"I suspect this is a result of the default value being added to the parameter's description. Removing from the parameter's description will allow the default value to be retrieved from the function argument's list without duplication.

Documentation:
https://developer.wordpress.org/reference/functions/wp_get_attachment_image_src/

Reported by @vitzkrieg via User Contributed Notes."	crstauf
	62727	Duplicating a pattern and changing to non-synced but images on copies of pattern are still synced		General		normal	normal	Awaiting Review	defect (bug)	new		2024-12-20T16:37:16Z	2024-12-20T16:37:16Z	I have created a pattern in a block theme (create block theme plugin) and enabled overrides on an image. I later changed my mind about it being synced (because I cannot set lists to be overiden. I have clicked duplicate and unchecked synced. When I add a number of these patterns into my page and change one of the images, they change in all instances of the pattern on the page. 	pauldyke
	58817	Edit page in wordpress default editor cousing overload on 3 diffrent servers.		General		normal	normal	Awaiting Review	defect (bug)	new		2023-07-17T06:00:35Z	2023-07-17T06:00:35Z	"Hello guys, how are you?
I think i found something very wired and i not so sure issue connected to the core, but it is worth a try.

I have 3 different machines on Google cloud, dedicated machine for 1 WordPress site. (e2-micro machine)

All my 3 websites identical with the same design, theme, plugins and code.

The only different between them is the language of WordPress.

The problem is, i am experience overload on all the machines when editing a page in the default WordPress editor.
Even if i only get in the default editor and only refresh the editor (F5), i get overload on my machine.
**I notice jumps of 150mb – 200mb when i refreshing the page.**

What causing kswapd0 to be triggered on my server and this is look like this:
https://ibb.co/fNdYrxn

In the start all the 3 VMs was experience the same overload.
I was suspect on the post revision + autosave and wp-cron.

**So, i limit the time of wp-cron and turn off the post revision completely + autosave for 1 day in wp-config:**
define( 'AUTOSAVE_INTERVAL', 86400 );

define( 'WP_POST_REVISIONS', false );

define( 'WP_CRON_LOCK_TIMEOUT', 60 );


This helps a lot for all the 3 websites in general.
But still i was getting overload on 2 different machines.
Only in my English, WordPress not experience overload anymore. (this way i think isiue is with the language of WordPress as well)

My other 2 WordPress websites in different language experience overload after 24 any time i am editing a page… (the other WordPress is in Catalan and Spanish)

**So for the final conclusion:**
1. I suspect in Autosave, because issue happens after 24 hours (i change the wp-config).
2. I think it is a language issue too. (websites identical as i said before)
3. In the English WordPress, we not experience the overload (we're still seeing 150 – 200mb when refreshing the page, but don't have overload).
4. Why when i refresh the default page editor it consumes 150mb – 200mb?

Be happy for your help guys.


"	123nadav
	46481	Empty response if page template return zero		General	5.1	normal	normal	Awaiting Review	defect (bug)	new		2019-03-13T15:37:52Z	2019-03-25T14:53:07Z	"Hello together, for an API that pulls data from WordPress, I created a page template that outputs a certain number based on the requested parameters. As long as this number is not equal to zero, everything is fine. But if the page template should output only ""0"", the WordPress page is completely empty. As soon as a space is added, e.g. ""0 "", the output works again."	pattyland
	46342	Error messages in the Dashboard for Editor Role		General		normal	normal	Awaiting Review	defect (bug)	new		2019-02-25T15:31:00Z	2019-02-27T15:18:08Z	"After logging in and clicking on All Posts tab in the left sidebar, I have an editor that gets an error screen that prevents him from entering the Posts page. It says:

""The editor has encountered an unexpected error.""

And there are only three buttons to click, they say:
""Attempt Recovery""
""Copy Post Text""
""Copy Error""

This has happened now on two accounts on the same computer, since I created a new account for the editor. Another editor logged into his corrupted account and did not experience the problem

Computer specs are:
Processor: Intel(R) Atom(TM) x5Z8350 CPUT @ 1.44GHz. Ram: 4.00GB (3.83GB Usable) System Type: 64-bit operating system, 64x based processor Windows: Windows 10 Home Edition
Version 1803, OS build 17134.590

Browsers:
Opera and Chrome

Do you think his computer is causing the problem?"	rexxertt
	59317	Error on new pattern preview		General	6.3.1	normal	normal	Awaiting Review	defect (bug)	new		2023-09-08T05:48:13Z	2023-09-08T06:44:50Z	"While I try to create an new pattern and try to preview the pattern, the page redirects to the error page. On this page, following error will be shown.


TypeError: e is not a function
    at https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/block-editor/index.min.js?ver=148cceb5deef937e87d2:135:7828
    at renderContent (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/components/index.min.js?ver=3426334688a22e73bc0c:33:5438)
    at https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/components/index.min.js?ver=3426334688a22e73bc0c:3:13188
    at St (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:47627)
    at pr (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:54870)
    at $s (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:122623)
    at Sl (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88649)
    at kl (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88577)
    at bl (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88440)
    at dl (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:85597)"	labunchemjong
	57273	Fatal error not trapped in do_action()		General	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-12-04T14:34:50Z	2022-12-05T14:41:04Z	"I encountered a problem this week during a do_action. It was while processing a order complete action in WooCommerce. One of the add_action modules failed trying to instantiate a class. The cause has been fixed but the bug is: 
There was nothing in the error log and the rest of the registered actions did not complete, leaving a partially complete ""action"".

I think the proper behaviour should be for the do_action function to wrap each ""registered"" processing a try / catch block. If it catches an error it logs it to the error log. After that....? is open to debate. I think the rest of the actions should be invoked but others might argue that the exception should be rethrown and nothing more takes place. I'll leave it to your experience to decide.

I suspect the same behaviour in do_filter, but I have not investigated.
we are using PHP 8.0.25"	charlesgodwin
	63154	Fatal error when moderation hash is given as array		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-03-24T10:44:10Z	2025-05-12T01:38:48Z	"A recent uncommissioned penetration test resulted in PHP Fatal errors

{{{
PHP Fatal error:  Uncaught TypeError: hash_equals(): Argument #1 ($known_string) must be of type string, array given in /var/www/html/wp-includes/comment.php:1959
}}}

The request was 

{{{
GET /page-with-comments/?moderation-hash[]=0cdbea79cf8fc31fe70f8d06581b06a8&unapproved=21 HTTP/1.1""
}}}

Which triggered a fatal error in using {{{hash_equals()}}} with an array.

{{{
if ( $comment && hash_equals( $_GET['moderation-hash'], wp_hash( $comment->comment_date_gmt ) ) ) {
}}}

I suggest testing against {{{! is_array()}}} prior to {{{hash_equals()}}}"	leedxw
	60752	Fatal error: Uncaught Error: Class 'WpOrg\Requests\Hooks' not found		General		normal	normal	Awaiting Review	defect (bug)	new		2024-03-12T07:15:27Z	2025-01-25T17:10:20Z	"I've been getting the same error message the last few days...makes me think it has something to do with the update?

I've tried: disabling plugins, and downloading/removing themes and reinstalling twenty twenty-one.

I'm new to WordPress, therefore have no backup, and at a complete loss here. Any guidance is much appreciated!

Fatal error: Uncaught Error: Class 'WpOrg\Requests\Hooks' not found in /home/sites/17a/3/36b2a5154b/practicalpathways/wp-includes/class-wp-http-requests-hooks.php:18 Stack trace: #0 /home/sites/17a/3/36b2a5154b/practicalpathways/wp-settings.php(249): require() #1 /home/sites/17a/3/36b2a5154b/practicalpathways/wp-config.php(92): require_once('/home/sites/17a...') #2 /home/sites/17a/3/36b2a5154b/practicalpathways/wp-load.php(50): require_once('/home/sites/17a...') #3 /home/sites/17a/3/36b2a5154b/practicalpathways/wp-admin/admin.php(34): require_once('/home/sites/17a...') #4 /home/sites/17a/3/36b2a5154b/practicalpathways/wp-admin/index.php(10): require_once('/home/sites/17a...') #5 {main} thrown in /home/sites/17a/3/36b2a5154b/practicalpathways/wp-includes/class-wp-http-requests-hooks.php on line 18

Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/sites/17a/3/36b2a5154b/practicalpathways/wp-includes/functions.php on line 5865

Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/sites/17a/3/36b2a5154b/practicalpathways/wp-includes/functions.php on line 5865"	moustifi
	61984	Favicon • multiple of 48x48 and not 512x512 as WP suggests		General		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-09-04T18:13:47Z	2024-09-10T15:13:31Z	"Hello, if you read Google's documentation, it says that it should be a multiple of 48 and 512, right?

https://developers.google.com/search/docs/appearance/favicon-in-search

Please update the panel so that it doesn't lead all users to the same error. What's the problem? The icon is very small in Google search and it's also simply wrong not to be a multiple of 48."	ofmarconi
	62984	"Find some ""global variables"" are missing to define into the WordPress core files."		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-02-19T10:25:54Z	2025-02-20T02:34:30Z	"Hello team,

I have checked WordPress core file and I have found this ""Overriding WordPress globals is prohibited."" errors into the few files.

Also, I have found that some variables need to define globally into the few core files.

Here, I have mentioned few files list:

/src/wp-admin/menu-header.php
/src/wp-admin/menu.php
/src/wp-includes/shortcodes.php
/src/wp-includes/version.php

Thanks,"	viralsampat
	64551	Fix: Escaped shortcodes are no longer expanded in get_the_excerpt()		General		normal	normal	Awaiting Review	defect (bug)	new		2026-01-25T15:15:30Z	2026-01-25T15:15:30Z	"Trac Ticket: https://core.trac.wordpress.org/ticket/12345

### Description
This pull request fixes an issue where escaped shortcodes were being expanded in `get_the_excerpt()`.  

Previously, shortcodes wrapped in escaping functions (like `\[shortcode]`) were still processed and rendered, which is not the expected behavior. With this patch, escaped shortcodes are preserved as plain text in excerpts, ensuring consistency and preventing unexpected content output.

### Changes Made
- Updated `get_the_excerpt()` logic to respect escaped shortcodes
- Added automated PHPUnit tests to cover this scenario
- Ensured backward compatibility with existing excerpts

### Testing
- Added tests in `tests/phpunit/tests/shortcodes/` to verify escaped shortcodes remain unexpanded
- Run PHPUnit to confirm all tests pass:
"	kashviyadav09
	60626	Font Files do not export/import properly via XML/WXR exporter.		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-02-23T20:26:09Z	2024-02-27T12:03:30Z	"Fonts added by the Font Library are not exported and imported using the site export/import tool.

For clarity, this is referring to the XML/WXR exporter available via the WP Dashboard's Tools > Export menu.

Originally reported here: https://github.com/WordPress/gutenberg/issues/59109"	mmaattiiaass
	65475	Fonts API: Replace _doing_it_wrong() with wp_trigger_error() in WP_Font_Face		General	6.4	normal	minor	Awaiting Review	defect (bug)	new	has-patch	2026-06-17T07:40:50Z	2026-06-22T05:34:33Z	"In `WP_Font_Face::validate_font_face_declarations()`, `_doing_it_wrong()` is currently used to trigger notices when invalid font face properties are encountered (e.g., invalid `font-family`, `src`, or `font-weight`).

Above each of these four occurrences is an inline comment:
`// @todo replace with wp_trigger_error().`

Since `wp_trigger_error()` was introduced in 6.4.0 (the same version `WP_Font_Face` was introduced), we can now safely replace these calls to resolve the `@todo`s.

This ticket updates the four instances in `src/wp-includes/fonts/class-wp-font-face.php` to use `wp_trigger_error()` instead of `_doing_it_wrong()`.

*I will attach a Pull Request that addresses this issue shortly.*
"	mohamedahamed
	56495	For multi site, The emial content used with sprint and filter wpmu_signup_user_notification_email		General	6.0.2	normal	normal	Awaiting Review	defect (bug)	assigned	reporter-feedback	2022-09-02T08:07:44Z	2022-09-06T06:52:30Z	"In the file ""wp-includes/ms-functions.php"" line no 1082.

It's used sprintf function and also used filters in it as well so if someone applies this filter and updates the content of the subject with any specifiers from the below screenshot it will throw an error as sprintf function has only a string to replace but if the someone update content with more specifiers will not work.
So we should separate out sprintf and filter that is used in it.



Thanks"	kp4net
	66262	GD image editor saves resized indexed PNGs as truecolor (regression since 3.5)		General	3.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-06T20:44:22Z	2026-10-07T06:55:35Z	"== Summary ==

This is the GD follow-up to #36477 (see comment:62 and comment:63), where the Imagick side was fixed in [59589].

Since 3.5, the GD editor saves every resized sub-size of an indexed (color type 3) PNG as truecolor RGBA. Sub-sizes are often several times larger than the original.

In 3.4, `image_resize()` did this:

{{{#!php
<?php
if ( IMAGETYPE_PNG == $orig_type && function_exists('imageistruecolor') && !imageistruecolor( $image ) )
	imagetruecolortopalette( $newimage, false, imagecolorstotal( $image ) );
}}}

It checked the original image and converted the new one. [22094] moved this into `WP_Image_Editor_GD::_save()`, which checks the image being saved. `_resize()` always returns a truecolor image from `wp_imagecreatetruecolor()`, so for sub-sizes the check is always false and the conversion never runs.

== Steps to reproduce ==

1. `add_filter( 'wp_image_editors', fn() => array( 'WP_Image_Editor_GD' ) );`
2. Upload `tests/phpunit/data/images/png-tests/cloudflare-status.png`.
3. Check the sub-sizes' PNG color type: all are 6 (RGBA). Expected: 3 (indexed).

== Results ==

Core's png-tests fixtures, trunk editor classes, PHP 8.3, libgd 2.3.3. Percentages are sub-size bytes relative to the original upload, averaged across generated sizes, with the worst single size in brackets.

||= Fixture =||= Transparency =||= Trunk =||= Patched =||
|| cloudflare-status.png || none || 405% (707%) || 110% (189%) ||
|| Palette_icon-or8.png || none || 195% (359%) || 78% (140%) ||
|| test8.png || binary || 261% (413%) || unchanged ||
|| deskcat8.png || partial || 226% (424%) || unchanged ||

Patched output is visually indistinguishable from trunk (PSNR ~39 dB vs. the truecolor output).

== Scope: opaque images only ==

`imagetruecolortopalette()` discards alpha on libgd 2.3.3, even for a minimal two-color image with `imagealphablending( false )` and `imagesavealpha( true )`. Transparent regions become opaque. Preserving transparency would need a per-pixel loop in PHP, which isn't practical on large images. So the patch converts only indexed sources with no transparency, and leaves transparent ones as they are today.

== Proposed patch ==

* In `load()`, record whether the source is palette-based and whether it has any transparency (`imagecolortransparent()` index or non-zero alpha in the palette).
* In `_save()` for `image/png`, when the source was an opaque palette image, convert a copy of the image to a 256-color palette and save that.
* Convert a copy, not `$image` itself: converting in place makes a later WebP/AVIF save from the same editor fail (0-byte file), since GD can't write those from palette images (see performance#2018).
* Unit tests: opaque indexed fixture stays indexed after resize; transparent indexed fixture keeps its alpha; PNG then WebP save from the same editor both succeed.

Related: #36477, #30402, #63448, #53408"	abhishekfdd
	63071	Getting All output should be run through an escaping function error into the WordPress core files.		General		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-03-07T08:41:07Z	2026-01-27T12:41:07Z	"Hello Team,

I have checked wp-admin WordPress core files and I have found this ""All output should be run through an escaping function"" error for few files.

Here, I have listed files:

/wp-admin/includes/class-wp-privacy-policy-content.php
/wp-admin/includes/class-wp-theme-install-list-table.php
/wp-admin/includes/dashboard.php
/wp-admin/includes/class-custom-background.php 
/wp-admin/includes/class-wp-screen.php

I have tested this into the WordPress 6.8-beta1.

Thanks,"	viralsampat
	63141	Getting Detected usage of a non-sanitized input variable error into the WordPress core files.		General		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-03-21T10:20:41Z	2026-02-06T21:51:36Z	"Hello Team,

I have checked wp-admin WordPress core files and I have found this ""Detected usage of a non-sanitized input variable"" error for few files.

Here, I have listed files:

src/wp-admin/includes/class-wp-ms-sites-list-table.php
src/wp-admin/includes/class-wp-privacy-requests-table.php
src/wp-admin/includes/class-wp-terms-list-table.php
src/wp-admin/includes/class-wp-theme-install-list-table.php
src/wp-admin/includes/class-wp-themes-list-table.php
src/wp-admin/includes/class-wp-users-list-table.php
src/wp-admin/includes/post.php

I have tested this into the WordPress 6.8-beta1.

Thanks,"	viralsampat
	60858	Getting Error While updating page which was implemented by Gutenberg		General	6.4.3	normal	critical	Awaiting Review	defect (bug)	new		2024-03-29T03:13:29Z	2024-03-29T03:13:29Z	"Getting the json error While updating page which was implemented by Gutenberg and the error was as below
'Updating failed. The response is not a valid JSON response.'

This Error occure multiple times sine some month in the multiple website."	mohammadtofik
	63188	"Getting Header ""REMOTE_ADDR"" is user-controlled and should be properly validated before use errors into the core files."		General		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-03-28T10:38:01Z	2025-03-28T22:19:47Z	"Hello Team,

I have checked wp-admin WordPress core files and I have found this ""Header ""REMOTE_ADDR"" is user-controlled and should be properly validated before use"" error for few files. I think that it should be resolve.

Here, I have listed files:

src/wp-includes/class-wp-application-passwords.php
src/wp-includes/class-wp-session-tokens.php
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
src/wp-includes/user.php

I have tested this into the WordPress 6.8-beta1.

Thanks,"	viralsampat
	63137	Getting Use isset() or empty() to check the index exists before using it error into the WordPress core files.	audrasjb	General		normal	normal	Awaiting Review	defect (bug)	reviewing	changes-requested	2025-03-20T20:34:57Z	2025-03-20T21:08:00Z	"Hello Team,

I have checked wp-admin WordPress core files and I have found this ""Use isset() or empty() to check the index exists before using it"" error for few files.

Here, I have listed files:

src/wp-admin/network/site-new.php
src/wp-admin/network/site-settings.php
src/wp-admin/network/site-users.php
src/wp-admin/network/sites.php
src/wp-admin/network/themes.php
src/wp-admin/network/user-new.php
src/wp-admin/network/users.php

I have tested this into the WordPress 6.8-beta1.

Thanks,"	viralsampat
	58822	Gutenberg - releases must work with the latest react version		General	6.3	normal	blocker	Awaiting Review	defect (bug)	new		2023-07-17T17:43:40Z	2023-07-17T17:59:23Z	"Gutenberg is falling behind more and more, bundling outdated/unmaintained packages, preventing the use of the latest react.
e.g. https://www.npmjs.com/package/@wordpress/block-editor bundles
>""react-autosize-textarea"": ""^7.1.0"",

Which requires react 16 (!!).
There are far more examples than that, that all shipped with WP 6.2.

Github issues for dependencies mostly go unhandled too, because there are 200 packages now + the @types ones (which are also inconsistent, since some have types bundled while others haven't)

The way gutenberg is maintained, organized and managed needs some major discussion and overhaul by someone who has enough credentials in the WP community to provide a clear plan ahead with Gutenberg."	malthert
	61015	Having Inline SVG breaks the site		General	6.5	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-04-16T12:49:31Z	2024-04-22T13:41:43Z	If this is even 1 inline SVG on the website it throws critical error.	gauravyad
	59843	Headers of the table on make.wordpress blog breaks after a few second of load ( check the url in description)		General		normal	minor	Awaiting Review	defect (bug)	new		2023-11-08T18:56:49Z	2023-11-08T19:25:19Z	"The header of the first table in the following link breaks after a moment. 

https://make.wordpress.org/core/2023/11/08/merging-performant-translations-into-core/

"	thekt12
	57592	Hebrew sort problem come from a core		General		normal	normal	Awaiting Review	defect (bug)	new		2023-01-31T16:33:57Z	2023-01-31T16:44:50Z	"when a slug on Hebrew the sort in admin its not work and we are find a solution for this 
this one when you add this to the core the sort is start work א-ת 
{{{
// Rewrite WP Core sanitize key (hebrew support)

add_filter('sanitize_key', 'hebrew_sanitize_key', 10, 2);

function hebrew_sanitize_key($key, $rawkey) {
    $sanitized_key = '';

    if (is_scalar($key)) {
        $sanitized_key = strtolower($rawkey);
        $sanitized_key = preg_replace('/[^א-תa-z0-9_\-]/', '', $sanitized_key);
    }

    return $sanitized_key;
} 
}}}"	leonfaiberg
	65968	Hidden check box (checkbox) column in the `WP_List_Table` is not hide.		General	7.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-26T11:14:13Z	2026-09-01T06:47:38Z	"On the source of `WP_List_Table` ( https://github.com/WordPress/wordpress-develop/blob/3f5fdc537810c3b11f8084f3d35398edad5f8f35/src/wp-admin/includes/class-wp-list-table.php#L1383 ), the hidden columns can be set to `_column_headers` property.

The hidden columns can hide properly on another columns except on the **check box column**.

From my example ( https://github.com/Rundiz-WP/demo-listtable-ajax/blob/f6691a114414cd16d0911518e55d8592b91b23cf/App/DB/CustomersListTableHideCb.php#L238-L242 ), I was set the hidden column as check box column. 
{{{#!php
<?php
$this->_column_headers = [
    $this->get_columns(),
    ['cb'],
    $this->get_sortable_columns(),
];
}}}

By default, WordPress did not hide this column (as seen in the method `single_row_columns()` https://github.com/WordPress/wordpress-develop/blob/3f5fdc537810c3b11f8084f3d35398edad5f8f35/src/wp-admin/includes/class-wp-list-table.php#L1824-L1827 )
This happens on WP 7.0, 7.1 and not sure that the older versions too or not.

I tried to override the method `single_row_column` and it seems to work but next problem is, it (check box column) is not hidden properly on small screen of WordPress 7.0- (or older).

I am not sure is this the main purpose of `WP_List_Table` class to always display checkbox column. Or not?  
If it is, then this ticket will be end here.

(If this is main purpose of this column, it still weird that checkbox column only hide on `<thead>` and `<tfoot>` except `<tbody>`.)

----

Step to re-produce:
1. Create some simple extended of list table class with hidden column as `cb`.
2. Create display page to display the list table.
3. Open this list table page.

Expect: List table hide the column checkbox completely.
Actual: Only checkbox column header, footer is hide. Not in `<tbody>`.

**Fix 1**: override `single_row_columns()` method.

{{{
    protected function single_row_columns( $item ) 
    {
        global $wp_version;
        if (version_compare($wp_version, '7.1', '>=')) {
            $wp7_1 = true;
        } else {
            $wp7_1 = false;
        }


        list($columns, $hidden, $sortable, $primary) = $this->get_column_info();


        foreach ($columns as $column_name => $column_display_name) {
            $classes = ""$column_name column-$column_name"";
            if ($primary === $column_name) {
                $classes .= ' has-row-actions column-primary';
            }


            if (in_array($column_name, $hidden, true)) {
                $classes .= ' hidden';
            }


            /*
             * Comments column uses HTML in the display name with screen reader text.
             * Strip tags to get closer to a user-friendly string.
             */
            $data = 'data-colname=""' . esc_attr(wp_strip_all_tags($column_display_name)) . '""';


            $attributes = ""class='$classes' $data"";


            if ('cb' === $column_name) {
                $tag = (true === $wp7_1 ? 'td' : 'th');
                $cb_attributes = (false === $wp7_1 ? ' scope=""row""' : '');
                $cb_classes = 'check-column';
                if (in_array($column_name, $hidden, true)) {
                    $cb_classes .= ' hidden demo-listtable-ajax-hidecb-column';
                }
                echo '<' . $tag . $cb_attributes . ' class=""' . esc_attr($cb_classes) . '"">';
                echo $this->column_cb($item);
                echo '</' . $tag . '>';
            } elseif (method_exists($this, '_column_' . $column_name)) {
                echo call_user_func(
                    array($this, '_column_' . $column_name),
                    $item,
                    $classes,
                    $data,
                    $primary
                );
            } else {
                if (true === $wp7_1) {
                    $is_primary = ($primary === $column_name);
                    $tag = $is_primary ? 'th' : 'td';
                    $scope = $is_primary ? ' scope=""row""' : '';


                    $aria_label = '';
                    if ($is_primary) {
                        $label = $this->get_primary_column_aria_label($item);
                        if ('' !== $label) {
                            $aria_label = ' aria-label=""' . esc_attr($label) . '""';
                        }
                    }
                } else {
                    $aria_label = '';
                    $scope = '';
                    $tag = 'td';
                }


                echo ""<$tag $attributes$scope$aria_label>"";


                if (method_exists($this, 'column_' . $column_name)) {
                    echo call_user_func(array($this, 'column_' . $column_name), $item);
                } else {
                    echo $this->column_default($item, $column_name);
                }


                echo $this->handle_row_actions($item, $column_name, $primary);
                echo ""</$tag>"";
            }
        }// endforeach;
    }// single_row_columns
}}}
**Result**: Only fixed on WordPress 7.1+ or newer. But WordPress 7.0.x or older still has a problem on small screen that checkbox column is not hide.

**Fix2**: Enqueue this CSS for WordPress 7.0.x or older.

{{{
@media (max-width: 782px) {
    .demo-listtable-ajax-hidecb-column {
        display: none !important;/* On small screen with hidden check box column, the column not really hidden due to `display: table-cell;` by WP core. */
    }
}
}}}
**Result**: The checkbox column is now completely hide on small and large screen, based on WordPress 7.0.x.

"	okvee
	57755	How to Show Tenplate Content on another page		General		normal	normal	Awaiting Review	defect (bug)	new		2023-02-17T11:43:54Z	2023-02-17T11:43:54Z	"Hey there,

I have one tempelete created by page ""find-your-match.php"" and I want to show that template content on another page, can anyone let me knwo which query of php code I can use to do this.

Thanks
Rajiv Ganger"	rajivganger
	60958	How to put older order to a created new registration account		General		normal	normal	Awaiting Review	defect (bug)	new		2024-04-08T08:33:21Z	2024-08-13T20:40:33Z	"Hello,
we had some issues with registrations of our customer. One of our customers made a big order like 10 days ago. She wasn´t able to create a registration (we didn´t know that it got dissappeared from the website after actualization).
And we would like to help her and put the older order to her new registration accout, which she created now. 
Is that possible?
Thank you. "	candleberrycz
	59096	Hyperlink Search Non-Functional		General	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-08-13T18:08:30Z	2023-08-14T16:09:20Z	In previous versions ie 6.2.x and earlier, creating a hyperlink in the post editor allowed you to search for other posts on the site to link to. In 6.3, this search functionality does not work - there is simply a spinning circle and you cannot find other posts to link to from within the post editor hyperlink tool. 	fribacon
	56854	I cannot edit comments thru admin menu		General		normal	normal	Awaiting Review	defect (bug)	new		2022-10-19T18:15:37Z	2022-10-19T18:22:09Z	"After the the last update i cannot open the https://www.[mysite].com/wp-admin/edit-comments.php

I received an error 502. After I enabled the debug I saw this error:

SELECT COUNT(*) FROM wp_comments LEFT JOIN wp_posts AS wp_posts_to_exclude_reviews ON comment_post_ID = wp_posts_to_exclude_reviews.ID WHERE ( ( comment_approved = '0' OR comment_approved = '1' ) ) AND user_id = 2 AND comment_type != 'order_note' AND comment_type != 'webhook_delivery' AND wp_posts_to_exclude_reviews.post_type NOT IN ('product') AND wp_posts.post_type <> 'wc_user_membership' ORDER BY wp_comments.comment_date_gmt DESC

How I can address this problem?"	strongwomancrushing
	58941	I have found a lot of bugs in fact		General		normal	normal	Awaiting Review	defect (bug)	new		2023-07-31T07:07:49Z	2023-07-31T07:07:49Z	"Previously I've already reported a bug as the following link:
https://core.trac.wordpress.org/ticket/58875

There is a bug also for the styling in theme.json.

I found that once the default style in theme.json file is set, sometimes it is impossible to change again by the user as the style in theme.json have been set to !important.

For example, I've set the color for general text to be dark grey, and if I now assign a blue color to the paragraph text, this property is being overridden by theme.json's setting, as I can inspect the property of that text. It has been set to !important.

Well, I think that there is really a lot of bugs since I am just a normal user, I am not even a professional web developer. I can discover so many bugs within just a week.

I appreciate the search bar feature, but other than that, it is a bit horrible. "	titanchan
	61935	Image block zoom on touch (But only happens on Plesk preview page)		General	6.6.1	normal	minor	Awaiting Review	defect (bug)	new	dev-feedback	2024-08-27T10:47:57Z	2024-08-27T10:47:57Z	"Are you using either the latest version of WordPress, or the latest development version? 

**Yes**

What steps should be taken to consistently reproduce the problem?
**
 Apply to a image the zoom on click option and try to zoom an image.**

Does the problem occur even when you deactivate all plugins and use the default theme?

**Yes**


Please provide any additional information that you think we'd find useful. (OS and browser for UI defects, server environment for crashes, etc.) 

[[Image(https://media.discordapp.net/attachments/571373111803379737/1277942453541933116/image.png?ex=66cf0027&is=66cdaea7&hm=0c04f67cd2826dac9beb17b78abc972f40e5e6094a2d80285de120e432bfc0c7&=&format=webp&quality=lossless&width=356&height=247)]]

[[Image(https://cdn.discordapp.com/attachments/571373111803379737/1277940665598349374/image.png?ex=66cefe7d&is=66cdacfd&hm=72d3c460815a4aa334045f10a069217ca838a9c23d624431f8c2d58e3c801651&)]]
"	salvadorasen
	63900	Improve PHPDoc for wp_parse_id_list() in functions.php		General		normal	normal	Awaiting Review	defect (bug)	new	needs-docs	2025-08-30T15:29:55Z	2025-08-31T19:12:01Z	"The inline documentation for the wp_parse_id_list() function in functions.php has been updated for clarity and to better align with WordPress coding standards.

Expanded the PHPDoc to specify accepted parameter types (int|string|array) and the return value (int[] array of unique, positive integers).
This change helps developers and contributors understand the function’s usage and output, improving code maintainability and IDE support.
No code logic was changed—only documentation was improved."	prab18hat
	55110	In WordPress 5.9 Edit site navigation toggle tooltip issue		General	5.9	normal	normal	Awaiting Review	defect (bug)	new		2022-02-08T06:09:01Z	2022-02-08T12:10:10Z	"In WordPress 5.9 Edit site navigation toggle tooltip are displayed when we select template from 
edit site select dropdown list > browse all template > Single Post

"	multidots1896
	61991	Inconsistent file name after cropping from Site Icon		General		normal	normal	Awaiting Review	defect (bug)	new		2024-09-05T11:04:38Z	2024-09-05T17:21:40Z	"I've noticed an inconsistency in how file names are assigned to various .jpg files in the media library when setting them as the site icon. This issue arises only when the image has a width smaller than 2800 pixels.

When we upload and crop an image with a width greater than 2800 pixels, the file name is displayed correctly, and the term ""cropped"" is added once, as expected. However, if the image width is below 2800 pixels, the term ""cropped"" appears twice after the file is cropped and used as a site icon.

For .png files, the term ""cropped"" is applied twice regardless of the image dimensions.
I've attached a screenshot for reference.

Testing info:

Upload an image with a dimension over 2800 pixels.
Set as site icon
View in media library, how the term is cropped is only applied to the description.
Now upload an image with a dimension less than 2800 pixels. I’ve tested with 2500 pixels.
Set it as the site icon.
You can see that the term “Cropped” is applied twice.

 Environment
- WordPress: 6.6.2-RC1
- PHP: 8.2.12
- Server: Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
- Database: mysqli (Server: 10.4.32-MariaDB / Client: mysqlnd 8.2.12)
- Browser: Chrome 128.0.0.0 (Windows 10/11)
- Theme: Twenty Twenty-Four 1.2
- MU-Plugins: None activated
- Plugins:
  * WordPress Beta Tester 3.5.6
"	nithins53
	53885	Inconsistent output of Site title with special characters on email		General	5.8	normal	normal	Awaiting Review	defect (bug)	new		2021-08-06T04:30:56Z	2026-01-18T14:07:18Z	"The characters in the email are showing inconsistently when a user receives an email from his registration Or While getting the registration Link.

To Reproduce:

1. Add French Word in the Site Title. like Femnøise àèîôû
2. In Admin, Go to User's tag -> click on Send password reset.
3. Check the mail of that user.

I getting Inconsistent output in Gmail. But it shows correct text on yahoo mail.
"	kishanjasani
	57525	Incorrect home link		General	6.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-01-22T14:44:58Z	2024-04-15T10:10:05Z	"I've noticed that Twenty Twenty-Three Theme does not add a trailing / onto the Home page link when used in a sub-directory. Could also be happening in a top level situation although I've not tested.

example.com/test -instead of- example.com/test/

This cause a 301 redirect and slows down page load.

Not a big deal but then again, the fix is quick and easy.
"	Website Rob
	64911	Incorrectly documented hooks	johnbillion	General		normal	trivial	Awaiting Review	defect (bug)	assigned		2026-03-20T08:04:32Z	2026-04-29T12:38:57Z	"Since I'm currently overhauling the wp-hooks/generator (https://github.com/wp-hooks/generator/pull/23 it's done but not pushed, internal testing atm) used e.g. with static analysis tools like psalm and phpstan, there seem to be various docblock issues for various hooks.

Fixing these is an ideal first issue for any new contributors to WP core.

Also I'm open to feedback for those - if you think some of them are wrong or shouldn't be changed for reason X, please let me know.


{{{
Incorrect param name $meta for hook param 1, expected $meta_defaults for hook 'add_signup_meta' in file 'wp-signup.php' on line 504.
Incorrect param name $link for hook param 1, expected $html_link for hook 'login_site_html_link' in file 'wp-login.php' on line 349.
Incorrect param name $items for hook param 3, expected $post_ids for hook 'handle_bulk_actions-{$screen}' in file 'wp-admin/edit.php' on line 222.
Incorrect param name $redirect_url for hook param 1, expected $referer for hook 'handle_network_bulk_actions-{$screen}' in file 'wp-admin/network/site-themes.php' on line 139.
Incorrect param name $items for hook param 3, expected $themes for hook 'handle_network_bulk_actions-{$screen}' in file 'wp-admin/network/site-themes.php' on line 139.
Incorrect param name $site_id for hook param 4, expected $id for hook 'handle_network_bulk_actions-{$screen}' in file 'wp-admin/network/site-themes.php' on line 139.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'wp_ajax_menu_quick_search_args' in file 'wp-admin/includes/nav-menu.php' on line 112.
Incorrect param name $args for hook param 1, expected $query_args for hook 'wp_ajax_menu_quick_search_args' in file 'wp-admin/includes/nav-menu.php' on line 112.
Incorrect param name $status_links for hook param 1, expected $get_views_links for hook 'comment_status_links' in file 'wp-admin/includes/class-wp-comments-list-table.php' on line 354.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'wp_privacy_personal_data_erasers' in file 'wp-admin/includes/ajax-actions.php' on line 5182.
Incorrect param name $output for hook param 1, expected $column_output for hook 'manage_users-network_custom_column' in file 'wp-admin/includes/class-wp-ms-users-list-table.php' on line 481.
Incorrect param name $screen_id for hook param 2, expected $id for hook 'screen_layout_columns' in file 'wp-admin/includes/class-wp-screen.php' on line 943.
Incorrect param name $screen_settings for hook param 1, expected $_screen_settings for hook 'screen_settings' in file 'wp-admin/includes/class-wp-screen.php' on line 1021.
Incorrect param name $path for hook param 1, expected $filepath for hook 'load_image_to_edit_filesystempath' in file 'wp-admin/includes/image.php' on line 1218.
Incorrect param name $results for hook param 3, expected $update_results for hook 'automatic_updates_debug_email' in file 'wp-admin/includes/class-wp-automatic-updater.php' on line 1741.
Incorrect param name $actions for hook param 1, expected $_actions for hook 'bulk_actions-{$this->screen->id}' in file 'wp-admin/includes/class-wp-list-table.php' on line 591.
Incorrect param name $args for hook param 1, expected $info for hook 'debug_information' in file 'wp-admin/includes/class-wp-debug-data.php' on line 135.
Missing docblock for hook 'importer_scheduled_cleanup' in file 'wp-admin/includes/import.php' on line 123.
Incorrect param name $site for hook param 2, expected $_site for hook 'display_site_states' in file 'wp-admin/includes/class-wp-ms-sites-list-table.php' on line 673.
Incorrect param name $sitename for hook param 2, expected $site_name for hook 'wp_privacy_personal_data_email_subject' in file 'wp-admin/includes/privacy-tools.php' on line 659.
Missing docblock for hook 'upgrader_scheduled_cleanup' in file 'wp-admin/includes/class-file-upload-upgrader.php' on line 113.
Incorrect param name $data for hook param 2, expected $new_plugin_data for hook 'upgrader_overwrote_package' in file 'wp-admin/includes/class-plugin-upgrader.php' on line 169.
Missing docblock for hook 'publish_future_post' in file 'wp-admin/includes/upgrade.php' on line 1294.
Incorrect param name $ability_name for hook param 1, expected $name for hook 'wp_before_execute_ability' in file 'wp-includes/abilities-api/class-wp-ability.php' on line 631.
Incorrect param name $ability_name for hook param 1, expected $name for hook 'wp_after_execute_ability' in file 'wp-includes/abilities-api/class-wp-ability.php' on line 652.
Incorrect param name $commentdata for hook param 2, expected $comment_data for hook 'pre_comment_approved' in file 'wp-includes/comment.php' on line 1346.
Incorrect param name $allow_branching for hook param 1, expected $branching for hook 'customize_changeset_branching' in file 'wp-includes/class-wp-customize-manager.php' on line 811.
Incorrect param name $context for hook param 2, expected $filter_context for hook 'customize_changeset_save_data' in file 'wp-includes/class-wp-customize-manager.php' on line 2905.
Incorrect param name $block_type for hook param 2, expected $name for hook 'register_block_type_args' in file 'wp-includes/class-wp-block-type.php' on line 573.
Incorrect param name $data for hook param 1, expected $data2html for hook 'oembed_result' in file 'wp-includes/class-wp-oembed.php' on line 430.
Incorrect param name $class_name for hook param 1, expected $classname for hook 'block_default_classname' in file 'wp-includes/block-supports/generated-classname.php' on line 36.
Incorrect param name $post_type for hook param 2, expected $name for hook 'register_post_type_args' in file 'wp-includes/class-wp-post-type.php' on line 501.
Incorrect param name $post_type for hook param 2, expected $name for hook 'register_{$post_type}_post_type_args' in file 'wp-includes/class-wp-post-type.php' on line 522.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'role_has_cap' in file 'wp-includes/class-wp-role.php' on line 95.
Incorrect param name $quality for hook param 1, expected $default_quality for hook 'wp_editor_set_quality' in file 'wp-includes/class-wp-image-editor.php' on line 269.
Incorrect param name $mime_type for hook param 1, expected $default_mime_type for hook 'image_editor_default_mime_type' in file 'wp-includes/class-wp-image-editor.php' on line 393.
Incorrect param name $blog_id for hook param 1, expected $site_id for hook 'wpmu_blog_updated' in file 'wp-includes/ms-blogs.php' on line 35.
Incorrect param name $output for hook param 1, expected $filtered_output for hook 'wp_finalized_template_enhancement_output_buffer' in file 'wp-includes/template.php' on line 1058.
Incorrect param name $small_network for hook param 1, expected $is_small_network for hook 'enable_live_network_counts' in file 'wp-includes/ms-functions.php' on line 2512.
Incorrect param name $subdirectory_reserved_names for hook param 1, expected $names for hook 'subdirectory_reserved_names' in file 'wp-includes/ms-functions.php' on line 2768.
Incorrect param name $pre_option for hook param 1, expected $pre for hook 'pre_option' in file 'wp-includes/option.php' on line 150.
Documented 3 params, but 4 hook params provided for hook 'wp_default_autoload_value' in file 'wp-includes/option.php' on line 1333.
Incorrect param name $pre_option for hook param 1, expected $pre for hook 'pre_site_option' in file 'wp-includes/option.php' on line 2057.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'pre_site_transient_{$transient}' in file 'wp-includes/option.php' on line 2582.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'is_post_type_viewable' in file 'wp-includes/post.php' on line 2442.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'is_post_status_viewable' in file 'wp-includes/post.php' on line 2494.
Missing docblock for hook 'publish_future_post' in file 'wp-includes/post.php' on line 5402.
Missing docblock for hook 'publish_future_post' in file 'wp-includes/post.php' on line 7985.
Incorrect param name $html for hook param 1, expected $output for hook 'wp_list_bookmarks' in file 'wp-includes/bookmark-template.php' on line 321.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'wp_robots' in file 'wp-includes/robots-template.php' on line 32.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'wp_get_attachment_image_src' in file 'wp-includes/media.php' on line 1027.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'wp_img_tag_add_auto_sizes' in file 'wp-includes/media.php' on line 2024.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'pre_attachment_url_to_postid' in file 'wp-includes/media.php' on line 5526.
Incorrect param name $default_header_enforced_contexts for hook param 1, expected $header_enforced_contexts for hook 'wp_loading_optimization_force_header_contexts' in file 'wp-includes/media.php' on line 6116.
Incorrect param name $number for hook param 1, expected $excerpt_length for hook 'excerpt_length' in file 'wp-includes/formatting.php' on line 4019.
Incorrect param name $taxonomy for hook param 2, expected $name for hook 'register_taxonomy_args' in file 'wp-includes/class-wp-taxonomy.php' on line 316.
Incorrect param name $taxonomy for hook param 2, expected $name for hook 'register_{$taxonomy}_taxonomy_args' in file 'wp-includes/class-wp-taxonomy.php' on line 337.
Incorrect param name $user_id for hook param 1, expected $ID for hook 'add_user_role' in file 'wp-includes/class-wp-user.php' on line 575.
Incorrect param name $user_id for hook param 1, expected $ID for hook 'remove_user_role' in file 'wp-includes/class-wp-user.php' on line 603.
Incorrect param name $user_id for hook param 1, expected $ID for hook 'set_user_role' in file 'wp-includes/class-wp-user.php' on line 663.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'user_has_cap' in file 'wp-includes/class-wp-user.php' on line 821.
Hook params must be documented only with @param to avoid side-effects in static analysis, but @return tag found for hook 'block_core_social_link_get_services' in file 'wp-includes/blocks/social-link.php' on line 349.
Incorrect param name $stylesheets for hook param 1, expected $mce_css for hook 'mce_css' in file 'wp-includes/class-wp-editor.php' on line 600.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'wp_enqueue_editor' in file 'wp-includes/class-wp-editor.php' on line 893.
Incorrect param name $comments for hook param 1, expected $comments_flat for hook 'comments_array' in file 'wp-includes/comment-template.php' on line 1589.
Incorrect param name $args_comment_field for hook param 1, expected $field for hook 'comment_form_field_comment' in file 'wp-includes/comment-template.php' on line 2807.
Incorrect param name $post for hook param 2, expected $item for hook 'rest_prepare_wp_font_face' in file 'wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php' on line 483.
Incorrect param name $item for hook param 2, expected $taxonomy for hook 'rest_prepare_taxonomy' in file 'wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php' on line 301.
Incorrect param name $post for hook param 2, expected $item for hook 'rest_prepare_wp_font_family' in file 'wp-includes/rest-api/endpoints/class-wp-rest-font-families-controller.php' on line 271.
Incorrect param name $nav_menu_item for hook param 1, expected $menu_item for hook 'rest_delete_nav_menu_item' in file 'wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php' on line 329.
Incorrect param name $where for hook param 1, expected $where_prepared for hook 'get_{$adjacent}_post_where' in file 'wp-includes/link-template.php' on line 1991.
Incorrect param name $keys for hook param 1, expected $wp_revisioned_meta_keys for hook 'wp_post_revision_meta_keys' in file 'wp-includes/revision.php' on line 584.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'schedule_event' in file 'wp-includes/cron.php' on line 179.
Missing docblock for hook '$hook' in file 'wp-includes/cron.php' on line 439.
Incorrect param name $args for hook param 3, expected $hook for hook 'wp_next_scheduled' in file 'wp-includes/cron.php' on line 859.
Documented 3 params, but 4 hook params provided for hook 'wp_next_scheduled' in file 'wp-includes/cron.php' on line 859.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'pre_wp_mail' in file 'wp-includes/pluggable.php' on line 231.
Incorrect param name $message for hook param 1, expected $get_debug for hook 'recovery_email_debug_info' in file 'wp-includes/class-wp-recovery-mode-email-service.php' on line 150.
Missing docblock for hook 'pre_option_enable_xmlrpc' in file 'wp-includes/class-wp-xmlrpc-server.php' on line 194.
Missing docblock for hook 'option_enable_xmlrpc' in file 'wp-includes/class-wp-xmlrpc-server.php' on line 196.
Incorrect param name $link for hook param 1, expected $route for hook 'rest_queried_resource_route' in file 'wp-includes/rest-api.php' on line 3334.
Incorrect param name $is_request_endpoint for hook param 1, expected $is_rest_endpoint for hook 'wp_is_rest_endpoint' in file 'wp-includes/rest-api.php' on line 3488.
Incorrect param name $block for hook param 2, expected $parsed_block for hook 'render_block' in file 'wp-includes/class-wp-block.php' on line 651.
Incorrect param name $block for hook param 2, expected $parsed_block for hook 'render_block_{$this->name}' in file 'wp-includes/class-wp-block.php' on line 666.
Incorrect param name $block_name for hook param 2, expected $name for hook 'enqueue_empty_block_content_assets' in file 'wp-includes/class-wp-block.php' on line 704.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'allowed_block_types_all' in file 'wp-includes/block-editor.php' on line 127.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'allowed_block_types' in file 'wp-includes/block-editor.php' on line 142.
Incorrect param name $default_value for hook param 1, expected $value for hook 'customize_value_{$id_base}' in file 'wp-includes/class-wp-customize-setting.php' on line 773.
Incorrect param name $id for hook param 1, expected $blog_id for hook 'clean_site_cache' in file 'wp-includes/ms-site.php' on line 1007.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'wp_script_attributes' in file 'wp-includes/script-loader.php' on line 2924.
Found invalid 'boolean' JS type, but expected PHP type 'bool' in docblock for hook 'wp_inline_script_attributes' in file 'wp-includes/script-loader.php' on line 3027.
Incorrect param name $defaults for hook param 1, expected $query_var_defaults for hook 'get_terms_defaults' in file 'wp-includes/class-wp-term-query.php' on line 260.
Incorrect param name $args for hook param 2, expected $query_vars for hook 'get_terms_orderby' in file 'wp-includes/class-wp-term-query.php' on line 956.
}}}
"	kkmuffme
	61826	Inline Padding Issue with Full-Width (alignfull) child Group in WordPress 6.6		General	6.6	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2024-08-05T20:31:52Z	2026-01-27T19:33:59Z	"The inline padding for full-width (alignfull) groups is not being applied as expected. This behavior differs from previous versions, specifically WordPress 6.5.5, where the padding was correctly applied.

== Steps to Reproduce:

Create or edit the header.html template.
Add a full-width (alignfull) group with inline padding.
Save the changes and view the header on the frontend.

== Expected Behavior:

In WordPress 6.5.5, the header displays with the root inline-padding for spacing.

== Observed Behavior:

In WordPress 6.6, the inline padding is not applied, and the header appears without any spacing.

== Environment:

WordPress Version: 6.6
Theme: Twenty Twenty Four (with changes only to the header.html template)


Below is a sample code snippet for the header.html template used for testing:

{{{
<!-- wp:group {""align"":""wide"",""style"":{""spacing"":{""padding"":{""top"":""var:preset|spacing|30"",""bottom"":""var:preset|spacing|30""}}},""layout"":{""type"":""constrained""}} -->
<div class=""wp-block-group alignwide"" style=""padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30)""><!-- wp:group {""align"":""full"",""layout"":{""type"":""default""}} -->
<div class=""wp-block-group alignfull""><!-- wp:group {""layout"":{""type"":""flex"",""flexWrap"":""wrap"",""justifyContent"":""space-between""}} -->
<div class=""wp-block-group""><!-- wp:group {""style"":{""spacing"":{""blockGap"":""var:preset|spacing|20""},""layout"":{""selfStretch"":""fit"",""flexSize"":null}},""layout"":{""type"":""flex""}} -->
<div class=""wp-block-group""><!-- wp:site-logo {""width"":60,""shouldSyncIcon"":true} /-->

<!-- wp:group {""style"":{""spacing"":{""blockGap"":""0px""}}} -->
<div class=""wp-block-group""><!-- wp:site-title {""level"":0} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:group {""layout"":{""type"":""flex"",""flexWrap"":""wrap"",""justifyContent"":""left""}} -->
<div class=""wp-block-group""><!-- wp:navigation {""ref"":5,""style"":{""spacing"":{""margin"":{""top"":""0""},""blockGap"":""var:preset|spacing|20""},""layout"":{""selfStretch"":""fit"",""flexSize"":null}},""layout"":{""type"":""flex"",""justifyContent"":""right"",""orientation"":""horizontal""}} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
}}}"	tremidkhar
	64993	Input Fields Size Styling Issue		General		normal	normal	Awaiting Review	defect (bug)	new	close	2026-03-30T12:08:08Z	2026-03-31T08:16:42Z	Increasing Input Fields Size affects not only the WP Core, but also other plugin setting pages.	mehrazmorshed
	61162	Internal WordPress Plug-in Search dont show relevant results		General	6.5	normal	normal	Awaiting Review	defect (bug)	new		2024-05-07T15:49:52Z	2025-06-27T06:18:30Z	"Today, I used the integrated plug-in search feature in WordPress to look for two plug-ins. As an example, I will use 'Elementor.' When you type 'Elementor' into the search field, you only find the plug-in on page 5. This is the case with other plug-ins as well. It can be quite frustrating when you enter the exact name of a plug-in and then have to sift through 100 results before you find it. This was not the case before.
Cheers Chris"	chris1407
	61722	JS Error when mouving mouse on pattern archive		General	6.6	normal	minor	Awaiting Review	defect (bug)	new	reporter-feedback	2024-07-22T05:26:53Z	2024-08-01T05:46:44Z	"When you're moving your mouse across the pattern archive page, there is an error occuring for each mouvement. So that generate a lot of error, not blocking but maybe for perf. 


"	gaeldenysiak
	62084	Line Breaks not displayed in emails		General		normal	normal	Awaiting Review	defect (bug)	new		2024-09-19T20:22:11Z	2024-09-22T22:18:42Z	"Hello WP Team,

I would like to bring the following issue to your attention:

In the email translations into German, the final email received by the recipient does not display any line breaks, even though they are included in the email templates:
[https://tinyurl.com/bde22px4]

Furthermore, there is speculation that this might be a global issue, as the German email messages are filtered before being sent, replacing the placeholders. The German Polyglots team believes that the original messages might also be affected because of this.

Thank you for reviewing this, and best regards,

Albarosa 
"	albarosa
	60556	Link Box Half Off Left Side Of Screen		General		normal	normal	Awaiting Review	defect (bug)	new		2024-02-16T05:22:24Z	2024-02-16T05:22:24Z	"If a link is near the left side of the screen, and you need to check the ""open in new tab"" box, often you can't because the link box is half off the left side of the screen.

The only solution right now is to open your browser window to full-screen or space the link away from the left side of the page, add the variables, and then delete the spaces."	hmnvtn
	56178	Links got invisible in responsive devices.		General		normal	normal	Awaiting Review	defect (bug)	new		2022-07-08T10:44:48Z	2022-07-15T05:08:25Z	"In WordPress 6.0 in the FSE while checking the menu on the smaller devices it appears that the color of the links is the same as that of the background so due to that they appear to be invisible.

Here is the short video of the issue:

https://www.loom.com/share/a2a4f0ea61314b1397b3ca206e3f67b6"	hilayt24
	52359	Links in Gutenberg Continue to be Built When Typing		General		normal	minor	Awaiting Review	defect (bug)	new		2021-01-25T12:35:42Z	2021-01-25T15:39:39Z	"If adding a link to the trailing word or phrase in Gutenberg, the link continues to be built when you continue typing. Basically, the anchor tag keeps getting pushed to the right as you type.  

To reproduce...type a word or phrase and end in a linking word or phrase.  For this example, we will link to the word WordPress.  Highlight WordPress, click the link icon in the toolbar and add the URL https://www.wordpress.org.  Then continue typing.  The new text will continue as part of the link.  Expected behavior would be that the link does not continue to be built after the target word or phrase."	dlfulle
	63507	Loopback tests should run on admin-ajax again		General		normal	normal	Awaiting Review	defect (bug)	new		2025-06-01T19:17:41Z	2025-06-01T19:17:41Z	"Loopback requests were initially implemented to run a generic admin_url()
This was then changed to use the wp-json API https://core.trac.wordpress.org/changeset/49154 and subequently the site_url(), then home_url()
https://github.com/WordPress/wordpress-develop/commit/dad6b61cfb6fa3016f5f469e4b2c6a8b39b6f046
https://github.com/WordPress/wordpress-develop/commit/85c8cca7d14ab45870cdc57d07f43c5d5e9e953d
https://github.com/WordPress/wordpress-develop/commit/e686cb1b0e7061477cc1b2f537f64e053366d0b8
due to various issues and now currently checks wp-cron.php

However, this wp-cron.php check does not usefully validate that loopbacks actually work, since all WP and plugins use admin-ajax.php for loopbacks (e.g. woocommerce action scheduler) and validating cron isn't useful there.
In contrast there is only a single possible scenario where a wp-cron.php loopback happens - and that is when actually starting wp-cron.php

Since admin-ajax.php also works unauthenticated (unlike previous wp-admin calls, which caused other side effects), this makes more sense and won't have the issue of the original admin_url() loopback test, as well as none of the issues of the loopback tests encountered when using home_url()/site_url()

Additionally, when the DISABLE_WP_CRON constant is defined because cron is only run via CLI, servers are often set up to block public access to wp-cron.php, causing the healthcheck to incorrectly report that loopbacks do not work - when in fact they do, just not for wp-cron.php, bc it's disabled.

Changing the loopback URL https://github.com/WordPress/wordpress-develop/blame/trunk/src/wp-admin/includes/class-wp-site-health.php#L3128 to run on admin_url( 'admin-ajax.php' ) ensures that loopback tests usefully test the loopback capability."	kkmuffme
	42000	Mac Keyboard text shortcuts no longer work		General	4.8.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2017-09-27T03:02:43Z	2020-12-15T22:50:16Z	"I have certain words (like Purchase) that I type 100+ times a day in a post. I have my mac set that if I type 'ppp' it turns to 'Purchase' if I type 'azz' it turns to Amazon and many others. They all stopped working in wordpress 4.8.2. They work on all other sites and apps in both safari and chrome, but no longer in wordpress. This is killing me! 

ALSO, in Safari only, you have to scroll all the way up to the top of a post to reach the toolbox instead of it staying at the top of the screen."	anasdiary
	58350	Media Attachment Details - text fields are too small. Need to redesign them for better compatibility with large screen resolutions		General		normal	normal	Awaiting Review	defect (bug)	new		2023-05-18T08:14:25Z	2023-05-24T04:49:01Z	"How it looks now:

[[Image(https://i.postimg.cc/MHfkFBn3/Screenshot-from-2023-05-18-11-08-59.png)]]

1. Media design is outdated and not compatible with modern >= ""FullHD"" screens.
2. Text fields are small. Especially ""Title"" field. It's very uncomfortable to write in long titles.
3. At the left and bottom side are empty ""opportunity space"" that can be used for text fields with larger width and height."	anonymized_20788931
	61016	Menu Vanishing On Save		General		normal	normal	Awaiting Review	defect (bug)	new		2024-04-16T14:17:29Z	2024-04-16T14:17:29Z	The entire menu I have is getting deleted when I save.  There is no plugins causing this, and it is happening multiple times.  	mgparisi
	58951	Meta and Link tags contain trailing slashes		General	6.2.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-08-01T09:30:06Z	2023-08-06T15:25:18Z	"Dear wordpress core,

I'm trying to remove all of the trailing slashes in wordpress core from the meta and link tags according to the W3C.

Whenever I have a blank wordpress site, and check that site with the w3c validator, I get a lot of info messages with the following text in it:
Info: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.

I made a fork of the wordpress master repository, and created a branch named trailingslash, where I think I've succesfully removed most if not all trailing slashes.

Please review my code."	simbaclaws
	65090	Missing escaping for dynamic link text		General		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2026-04-17T14:49:12Z	2026-04-19T17:18:52Z	"**File:** [src/wp-login.php](src/wp-login.php#L234)
- **Line:** 234
- **Problem:** `$message` output without escaping (filterable content)
- **Current Code:**
{{{
if ( ! empty( $message ) ) {
   echo $message . ""\n"";
}
}}}
- **Context:** `$message` comes from `apply_filters( 'login_message', $message )` but could contain HTML or special chars
- **Fix:** Context-dependent, could be:
{{{
// If message is expected to have HTML:
if ( ! empty( $message ) ) {
   echo wp_kses_post( $message ) . ""\n"";
}
// Or if plain text:
if ( ! empty( $message ) ) {
   echo esc_html( $message ) . ""\n"";
}
}}}"	maheshpatel
	37249	Missing url escapes and 'author' link relation in wp_list_authors()		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2016-07-01T12:34:23Z	2019-04-20T10:11:59Z	"
Since WordPress 4.4 the function {{{get_the_author_posts_link()}}} is available: 

https://github.com/WordPress/WordPress/blob/4.4-branch/wp-includes/author-template.php#L236-268

It was introduced in #30355. It escapes the {{{get_author_posts_url()}}} as expected and uses {{{rel=""author""}}} for the author link.

This is not the case with {{{wp_list_authors()}}} were e.g. both {{{get_author_posts_url()}}} and {{{get_author_feed_link()}}} are un-escaped.

ps: 

My first thought was to have two separate tickets for the escape + relation, but I decided to combine it here as it corresponds to the same code.

It would have been handy to use {{{get_author_posts_url()}}} within {{{wp_list_authors()}}} but there's a slight difference there. If we had e.g. the input parameters {{{get_author_posts_url( $author, $name )}}} then such a replacement could work ;-)
"	birgire
	65059	Modal overlapping the content editor		General	7.0	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2026-04-10T18:57:44Z	2026-05-19T20:46:14Z	"An accessible modal appearing as part of a meta box (ie. the ""Add New Plan"" button in LifterLMS) now causes the meta box area to fully expand if it has not been resized previously, hiding the content editor area completely.

It can also overlap with the resize bar, requiring an expansion to allow for the action underneath it to be clicked."	brianhogg
	64219	My Patterns (and others) not loading		General	6.8.3	normal	critical	Awaiting Review	defect (bug)	new		2025-11-10T04:33:55Z	2025-11-10T04:33:55Z	"I create a new page, click to add a new block, click Patterns.

Now I wait, and wait and wait.

Usually these load:
All, Accordion, Countdown, Essential blocks, Image Gallery, Post Carousel, Post Grid, Pricing Table, Team Member, Testimonial, Testimonial Slider, Timeline Slider, Woo Duct Grid.

Sometimes more load, but not always, if I reload the page I'm editing, it is more likely they will show up.

Finally, sometimes My Patterns load, sometimes not.

Whatever you are doing in the Admin to lazy load the patterns is not working. Maybe give me a button to force them to load while you figure this problem out because right now, its pretty much useless for building my web site.
"	burningthumb
	58501	Need to change in docs comment in xmlrpc.php		General		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-06-09T09:59:58Z	2023-06-13T05:07:37Z	"Hello,

Need to change below the comment for this ""logIO()"" function.

Need to change comment ""logIO() - Writes logging info to a file."" line and It should be ""Writes logging info to a file - logIO()."" Also, add a full stop in the last for this line ""@param string $io Whether input or output""

As per phpcs coding standard."	hiren1094
	59427	Need to updated image-edit.php file code for Crop.		General		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-09-22T13:54:10Z	2023-09-25T08:11:05Z	I have reviewed the code of the theme and I found the image-edit.php file code is breaking. please check the below attachment of my patch.	upadalavipul
	60003	PHP error in wp_match_mime_types()	pbearne	General	6.4	normal	normal	Awaiting Review	defect (bug)	assigned	reporter-feedback	2023-12-02T09:04:05Z	2024-02-15T16:23:51Z	"PHP ERROR:

`Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /.../wp-includes/post.php on line 3308`

FIX:

change LINE 3308 to:

{{{
if ( $real && preg_match( ""#$pattern#"", $real )
     ^^^^^^^^^
}}}"	argaliano15
	61277	"PHP message: PHP Fatal error:  Uncaught Error: Undefined constant ""ABSPATH direct access to wp-includes/rss.php on line 19"	deepakrohilla	General		normal	major	Awaiting Review	defect (bug)	assigned	has-patch	2024-05-23T06:18:58Z	2024-05-29T10:30:54Z	"error.message PHP message: PHP Fatal error:  Uncaught Error: Undefined constant ""ABSPATH direct access to wp-includes/rss.php on line 19.
request_uri': '/wp-content/rss.php'"	deepakrohilla
	61286	"PHP message: PHP Fatal error:  Uncaught Error: Undefined constant ""ABSPATH"" in  wp-includes/cache.php"	deepakrohilla	General	6.5.3	normal	major	Awaiting Review	defect (bug)	assigned	has-patch	2024-05-24T05:51:59Z	2024-05-31T18:01:10Z	"PHP message: PHP Fatal error:  Uncaught Error: Undefined constant ""ABSPATH"" in /var/wp-includes/cache.php:12
request_uri': '/wp-content/cache.php'"	deepakrohilla
	59625	Pagination. Classes name mistake for item of pagination		General	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-10-14T14:12:27Z	2023-10-14T14:12:27Z	"If you created pagination for comments using the default method. For example
{{{#!php
<?php
<?php

$args = array(
    'post_id' => get_the_ID(), 
    'parent' => 0, 
    'count' => true, 
);
$top_level_comments_count = get_comments($args);
$max_pages = ceil($top_level_comments_count / $per_page);

$args = array(
    'screen_reader_text' => __('Comments navigation'),
    'aria_label' => __('Comments'),
    'class' => 'comments-pagination',
    'format' => '',
    'total' => $max_pages,
    'current' => $page,
    'prev_text' => '❮',
    'next_text' => '❯',
    'type' => 'list',
    'echo' => false, // Установите это значение в false
);

$pagination = get_the_comments_pagination($args);
$pagination = str_replace('#comments', '', $pagination);
?>
<div class=""company-rewiew-pagination"">
    <?php echo $pagination; ?>
</div>
}}}
This challenge created this pagination for me
{{{#!php
<?php
<div class=""company-rewiew-pagination"">
  <nav class=""navigation comments-pagination"" aria-label=""Comments"">
    <h2 class=""screen-reader-text"">Comments navigation</h2>
    <div class=""nav-links"">
      <ul class=""page-numbers"">
        <li><span aria-current=""page"" class=""page-numbers current"">1</span></li>
        <li><a class=""page-numbers"" href=""https://test.local/review/test-company-1/comment-page-2/"">2</a></li>
        <li><a class=""page-numbers"" href=""https://test.local/review/test-company-1/comment-page-3/"">3</a></li>
        <li><a class=""next page-numbers"" href=""https://test.local/review/test-company-1/comment-page-2/"">❯</a></li>
      </ul>
    </div>
  </nav>
</div>
}}}
But I got a bug into name of <ul> class wrapper. It has the same class like for <li><a class=""page-numbers""> item. class=""page-numbers"" Can You fix this mistake ? Can you make for item <li><a class=""page-number""> name?
[[Image(https://i.ibb.co/VCnFZyc/Corrected.jpg)]]

<ul class=""page-numbers""> and <li><a class=""... page-numbers""> has different logics for CSS styles but has the same name of classes. Can you fix it? 

"	blackstar1991
	60086	Picture size changing		General		normal	normal	Awaiting Review	defect (bug)	new		2023-12-16T02:11:05Z	2023-12-16T03:38:54Z	"Hi there,

I'm having issues with some images on my website ([nessapporo.com]). I want the images to be a certain size, and they look good on the desktop. When I check it on the smartphone, the image becomes elongated. How can I fix this?

Scott"	nessapporo
	66234	Plug in issues		General		normal	normal	Awaiting Review	defect (bug)	new		2026-10-02T18:45:07Z	2026-10-02T18:45:07Z	"Hi 

I have downloaded the world press zip file and this doesn’t seem to do anything, I’ve tried to download the gigsberg site as an affiliate partner of their site.please can someone help with this as I’m not that technical minded.please let me know what I am doing wrong. Thanks "	flyscantrip26
	56098	Post Excerpt style in query loop not able to override if paragraph color is set in the global style.		General	6.0	normal	minor	Awaiting Review	defect (bug)	new		2022-06-30T04:18:39Z	2026-01-26T12:42:10Z	"Post Excerpt style in query loop not able to override if paragraph color is set in the global style.

ex.
The paragraph colour is set to RED.
The Query loop excerpt colour is set to GREEN.

The final output will be RED.

"	tnchuntic
	44277	Post type rewrite breaks page url's		General	4.9.6	normal	normal	Awaiting Review	defect (bug)	reopened		2018-05-30T10:59:35Z	2018-06-04T15:50:56Z	"I have a post type which we rewrite a custom url using the following:

{{{
'slug' => '%kh_product_cat%',
}}}

It used to work but not sure when but it stopped working and although the post type url's work, the page url's don't.

Take that line out and the page url's work again, tested on a clean install of WP to make sure and get the same problem.

Has something been changed in WP recently which would affect this?"	garethgillman
	58688	Posts get unlinked from our site's taxonomy when being converted to Block Editor		General		normal	normal	Awaiting Review	defect (bug)	assigned		2023-06-30T16:01:52Z	2023-06-30T16:01:52Z	"Sorry, I don't know how to describe this better. I work for HelloSubscription and we usually link our posts at hellosubscription.com by categories (news, coupons, reviews). We have taxonomies to link them to our directory (boxes.hellosubscription.com) so the post gets redirected to the right brand/box (we are a subscription box reviews website). However, these past week or so, whenever we convert the posts from Classic editor to Block editor, these taxonomies gets removed so the posts we publish doesn't get link to our directory page. 

Sorry if this sounds confusing, but that's basically our little problem now."	hspaula
	60735	Problem: Updating failed. The response is not a valid JSON response		General	6.4.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-03-09T02:50:17Z	2024-03-09T12:20:40Z	"I encountered an error message when publishing or updating. Due to a mistake in a wrong sentence, the error message appears. You will get the error message ""Updating failed. The response is not a valid JSON response"". Why did it happen?

- WordPress 6.4.3 running theme GeneratePress.
- .htaccess file according to wp settings
- Permalinks postname settings
- Already started with HTTPS
- REST API no 404 error message"	r3ndy
	56446	Query loop next page button not working as expected.		General		normal	normal	Awaiting Review	defect (bug)	assigned	changes-requested	2022-08-26T18:16:58Z	2022-08-27T08:04:01Z	"Recently I ran into an issue using the query loop block halfway down on the front page of a website I was working on.

Whenever I clicked on the ‘next page’ button to show more blogposts results, the click would cause the page to jump to to top and I would have to scroll down to go back to the blog overview window.

I expected the click to show me more more results yet stay in the same place on the page. Is this a wrong assumption or is this an actual bug?

If it's not a bug then maybe an enhancement issue? "	vncntdvrs
	57340	Questions about about the pathlength of WP5.8-6.1 is affected by themes		General		normal	normal	Awaiting Review	defect (bug)	new		2022-12-16T07:04:54Z	2023-03-08T17:32:22Z	"Hello,
When I was using wordpress as workload to collect performance data, I found that the themes in wordpress/wp-content/ had a great impact on the pathlength of the transaction–that is, the number of instructions per transaction. Moreover, when I take out the release version of wordpress and change themes to other versions, the pathlenth will also change.

pathlength Variation：
WP5.8 -> WP5.9：-18.7%
WP5.8 -> WP6.1：-25.2%

I would like to ask: 1.why this is the case? Whether the themes truly affect the amount of code of each transaction？ 2. Why the pathlength of 5.9 and 6.1 is reduced by so much compared to 5.8? Is it because of these php and css files? Or have done some optimizations to the code?

I really hope someone can help me with this, it will help me a lot.

Thank you for your time."	longt4o
	58263	REQUEST_METHOD Warning with server cron		General	6.2	normal	normal	Awaiting Review	defect (bug)	new	changes-requested	2023-05-06T03:09:45Z	2023-05-06T03:09:45Z	"I am trying server cron without WP-cron.
When I run server cron, I get the following warning.

PHP Warning: Undefined array key ""REQUEST_METHOD"" in /home/PARH/TO/public_html/wp-includes/template-loader.php on line 26
This is because REQUEST_METHOD is not available in server cron.

So we can use (template-loader.php on line 26)
{{{#!php
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) {
 }}}
To
{{{#!php
if ( isset( $_SERVER['REQUEST_METHOD'] ) && 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) {
 }}}
Can this be changed to

TESTING
XSERVER
PHP7.4/8.0
WordPress6.2.0
"	nendeb55
	54179	Raw JS is prematurely ended with a </script> tag when HTML tags are present within JS strings.		General		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-09-24T13:42:03Z	2021-09-26T01:26:06Z	"We are using a custom JS file that is reaching out to a web service, building a string from the data, and setting it as the innerHTML to a DOM Element already on the page. For some reason, HTML tags in this string were causing our script to get cut short, and whatever remained would instead by interpreted as HTML. A JavaScript snippet such as the following:


{{{
myElement.innerHTML = ‘<div><p>My Content</p></div>’;
}}}
 

would cause a </script> tag to be inserted between the </p> and </div> tags, cutting the JS short, leaving the rest to be read as HTML. The fix was to replace every tag in these strings with a chain of concatenations:


{{{
myElement.innerHTML = ‘<’ + ‘div>’ + ‘<’ + ‘p>My Content’ + ‘<’ + ‘/p>’ + ‘<’ + ‘/div>’;
}}}


I don’t know what was causing this, but this workaround prevented whatever was processing our JavaScript from recognizing and interpreting the HTML tags."	joshuapeck9898
	60674	Reducing WordPress archive weight		General		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2024-03-02T10:36:48Z	2026-03-20T11:25:49Z	"I've opened an issue on Github but, it's also surely easiest to duplicate it here to follow up it.

The main idea f this ticket is to find a way to reduce the WordPress archive zip file. 

--- Github Description ---
Over the year, WordPress archives weight have increased and... I think we can't change this but we can surely do something on old feature which are no more used.
I know the backward compatibility is something really important to the WP leads eyes but we can't continue (IMO)to as 43% of the web to download files always heavier.
Maybe we could work with Core team to determine which functions are no more used and deprecated from years. Removing them will make WordPress liter.
I think to Classic editor, We could move all the classic editor features to the Classic Editor plugin. It would make the archive liter for the most part of the new users.
Features would always be available thanks to the plugin.


https://github.com/WordPress/sustainability/issues/30"	sebastienserre
	66376	Regression: Poetry block swapped with paragraphs on paste. Verse didn't have this behavior.		General		normal	normal	Awaiting Review	defect (bug)	new		2026-10-24T13:16:10Z	2026-10-25T15:31:31Z	"When I create a Poetry block, then paste inside text copied from any source, I expect the block to remain Poetry and not be converted to Paragraphs.

If I wanted to paste Paragraphs, I would simply paste without taking the extra step to insert a Poetry block beforehand.

The Verse block didn't exhibit this behavior.

See attached screencast."	paolal
	63065	Reject nonce if presented as array		General	6.7.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-03-06T15:31:26Z	2025-03-06T15:31:26Z	"An attacker against {{{/wp-comments-post.php}}} is causing the following warning (suggesting the nonce is not checked to be a string).

{{{
PHP Warning:  Array to string conversion in /var/www/html/wp-includes/pluggable.php on line 2355
}}}

I was able to reproduce this by switching {{{akismet_comment_nonce}}} to be an array (on a site with akismet installed)

{{{
curl \
 -F author=test -F email=test@example.com \
 -F comment=test \
 -F comment_parent=0 -F comment_post_ID=1 \
 -F akismet_comment_nonce[1]=123 -F ak_js_1=123 \
 http://localhost/wp-comments-post.php
}}}


Suggested fix is for {{{wp_verify_nonce()}}} to return false if nonce is an array before any string functions are applied."	leedxw
	55534	Remaining image files after deleting them		General	5.9.2	normal	critical	Awaiting Review	defect (bug)	new		2022-04-05T20:12:26Z	2022-04-05T21:34:40Z	"hi wordpress team!

I had a very strange problem yesterday that I did not even think about ...

As you know, after uploading images in WordPress, WordPress automatically creates several different sizes of it. For example, I uploaded over 200 product images to WooCommerce ... (on an unofficial site) After a long time, yesterday I decided to remove all products and their photos from within the WordPress media section And I did. **But after looking at the hosts and the uploads folder, I was surprised to see that all the images still remained in the upload folder.** In fact, in addition to the image uploaded in WordPress (WooCommerce products), there were 4 different sizes of each image in the upload folder.
I was really surprised by this ...
I tested this on several different websites and even my colleagues confirmed it. Please address this issue if possible. It is very, very important. thank you!"	hoseinkh
	59297	Remove unused variables		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-09-06T12:56:06Z	2024-02-19T23:49:34Z	"I have reviewed the code and found some of the variables are defined but they do not use in the below files. Please check the below files:

Files: 

1. wp-admin/includes/class-wp-privacy-policy-content.php
2. wp-admin/includes/post.php
"	upadalavipul
	56024	Removing a caption's contents removes the image alignment		General	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-06-21T04:49:33Z	2022-07-12T16:55:00Z	To reproduce this bug: first, insert an aligned image with a caption in either the classic WYSIWYG or a classic WYSIWYG block. Next, hit backspace to delete the caption within the editor. The image appears to remain properly aligned in the editor, but once you save/publish, the alignment is lost.	eagleharborsolutions
	65828	Replace core's remaining utf8_encode() calls in wxr_cdata() and wp_read_image_metadata()		General	6.9	normal	normal	Future Release	defect (bug)	new	has-patch	2026-08-06T18:00:11Z	2026-08-10T05:34:39Z	"Core calls `utf8_encode()` in three remaining places:

 * `src/wp-admin/includes/export.php:249` — `wxr_cdata()`, on every WXR export containing non-UTF-8 bytes.
 * `src/wp-admin/includes/image.php:1052` — `wp_read_image_metadata()`, per EXIF/IPTC meta key.
 * `src/wp-admin/includes/image.php:1058` — `wp_read_image_metadata()`, per IPTC keyword.

`utf8_encode()` was deprecated in PHP 8.2 and is removed in PHP 9.0. Core polyfilled it with its own `_deprecated_function()` notice in [60950], so core is now emitting a deprecation notice from its own code:

 * PHP 8.2–8.4 — the native function still exists, so PHP raises `E_DEPRECATED`.
 * PHP 9.0 — the native function is gone, core's polyfill runs and raises the `_deprecated_function` notice.

== The deeper problem ==

All three sites use the same shape:

{{{#!php
if ( ! wp_is_valid_utf8( $str ) ) {
      $str = utf8_encode( $str );
}
}}}

This assumes that any text failing UTF-8 validation is ISO-8859-1, and re-encodes the raw bytes on that assumption. That guess is wrong for every other single-byte encoding — Windows-1252 text, which is far more common in the wild, has its 0x80–0x9F range silently mapped to C1 control characters — and it is wrong for every multi-byte encoding. The result is silent mojibake written into a WXR backup or into post meta.

This is the concern @dmsnell raised in [https://core.trac.wordpress.org/ticket/55603#comment:99 comment 99] and [https://core.trac.wordpress.org/ticket/55603#comment:93 comment 93] of #55603: the problem is not merely that these functions are deprecated, but that ''in the absence of concrete knowledge about a text encoding we should avoid assuming that it's ISO-8859-1''. IPTC in particular carries no reliable encoding declaration.

== Proposed change ==

Replace the calls with `wp_scrub_utf8()`, introduced in 6.9 for exactly this purpose — its documentation notes that ''some contexts (e.g. generating XML) require valid input strings''. Invalid byte spans are replaced with the Unicode replacement character (`U+FFFD`) rather than reinterpreted as an encoding core cannot know.

No new API, and the `wp_is_valid_utf8()` guards are unchanged.

== Behaviour change ==

This is a deliberate, visible change and should be reviewed as such.

 * '''Before:''' invalid bytes are reinterpreted as ISO-8859-1. Correct only when the input genuinely was ISO-8859-1; silent corruption otherwise.
 * '''After:''' invalid bytes become `U+FFFD`. Never guesses an encoding, but the original bytes are not recoverable.

For genuinely-latin1 input this trades a correct conversion for a lossy one. For every other encoding it trades silent corruption for visible, well-defined replacement. Per [https://core.trac.wordpress.org/ticket/55603#comment:93 comment 93], a refactor here has to choose whether to ''preserve the defects or reject unsupported inputs''; this patch rejects the unsound guess.

== Verification ==

Against unpatched trunk the new tests produce 1 error and 5 failures. The error is the defect itself surfacing:

{{{
1) Tests_Image_Meta::test_iptc_invalid_utf8_is_scrubbed
Function utf8_encode() is deprecated
/var/www/src/wp-admin/includes/image.php:1052
}}}

With the patch applied: 7/7 new tests pass, `tests/admin/exportWp.php` and `tests/image/meta.php` pass 17/17, and `--group image --group unicode` passes 1178/1178. PHPCS reports no new errors or warnings.

Tests added cover lone high bytes, never-valid bytes, truncated sequences, overlong sequences and surrogate halves through the WXR export, plus an IPTC block built at runtime with `iptcembed()` so no binary fixture is needed.

== Related ==

See #55603 (parent), #62608 (closed as duplicate), #63863 (the 6.9 polyfill). Unblocking these call sites also unblocks #64634, which is waiting on them to update PHPCompatibilityWP."	khokansardar
	59265	Reset password form is not sending recovery email		General	6.3.1	normal	normal	Awaiting Review	defect (bug)	new		2023-09-01T15:05:47Z	2023-09-01T15:05:47Z	"Reset password email is not sending. Once you're ""domain.com/dashboard/retrieve-password/"" URL, after put email or username for recovery, email with link is never sent. It is in WP version 6.3.1"	ardaniela
	58325	Resolving Persistent Memory Exhaustion Error During WordPress Theme Update		General		normal	normal	Awaiting Review	defect (bug)	new		2023-05-16T13:27:36Z	2023-05-16T13:27:36Z	When I attempt to update my WordPress theme to the latest version, I encounter the following error: 'Fatal error: Allowed memory size exhausted (tried to allocate X bytes)'. Despite increasing the memory limit in my PHP configuration, the error persists. What advanced troubleshooting steps can I take to resolve this memory exhaustion issue and successfully update my WordPress theme?	aspireddev
	46155	Responsive images (srcset) not working on cropped files.	joemcgill	General		normal	major	Awaiting Review	defect (bug)	assigned	reporter-feedback	2019-01-31T02:51:55Z	2019-05-15T13:36:42Z	"When adding images to a page or using wp_get_attachment_image() function in a page template, responsive images do not get generated if the image size is set to 'crop' (e.g. thumbnail or a custom size). Basically, srcset is not added in html. Other sizes are OK though.

To reproduce the bug, make sure an image size is set to 'crop'. Then upload a new image and add it to a page selecting a **full size first**. Update the page and then remove the image from the page. Update and then insert it again and this time make sure to select the **cropped image size**. Update.
You will see that a standard <img> tag is generated in the frontend. E.g.:

{{{
<img class=""alignnone size-thumbnail wp-image-10"" src=""/wp-content/uploads/photo-360x360.jpg"" alt="""" width=""360"" height=""360"">
}}}

instead of

{{{
<img class=""alignnone size-thumbnail wp-image-10"" src=""/wp-content/uploads/photo-360x360.jpg"" alt="""" width=""360"" height=""360"" srcset=""/wp-content/uploads/photo-360x360.jpg 360w, /wp-content/uploads/photo-720x720.jpg 720w, /wp-content/uploads/photo-768x768.jpg 768w, /wp-content/uploads/photo.jpg 1280w"" sizes=""(max-width: 360px) 100vw, 360px"">
}}}


I have tested it on WP 5.0.3 and even tried downgrading to 4.9.9 and 4.9.8 but it's the same. Tested with all plugins deactivated and on the default twenty-something theme.
I have tried it on PHP 7.1, 7.2 and 5.6.
Tested both Guttenberg and the classic editor."	olgri
	63162	Sanitizing styles doesn't work as expected in presence of semi-colon(;) in CSS value		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-03-25T12:06:51Z	2025-03-25T12:58:50Z	"When looking into the issue created in the Gutenberg repo [https://github.com/WordPress/gutenberg/issues/69574] found that the presence of semicolon in CSS value doesn't split the inline-styles as expected when sanitizing the styles.

See
https://github.com/WordPress/wordpress-develop/blob/804ca756b1434e7dc4ce9a357ce3cb3846552d7c/src/wp-includes/kses.php#L2375-L2386 

In the issue #69574 of Gutenberg the plugin adds the style 

{{{
background-image: url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgOTYgOTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1oaWRkZW49InRydWUiIGZvY3VzYWJsZT0iZmFsc2UiIHN0eWxlPSJoZWlnaHQ6IGNhbGMoMTEwJSAtIDdweCk7IHdpZHRoOiBjYWxjKDExMCUgLSA3cHgpOyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJmaWxsR3JhZDVlNjY4MWE1LTFiMTMtNDZiMS05YjI5LWEyNzU0Nzk0NGExOTAiIHgxPSIwLjE0NjQiIHkxPSIwLjg1MzYiIHgyPSIwLjg1MzYiIHkyPSIwLjE0NjQiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjU5QkYiIG9mZnNldD0iMCI+PC9zdG9wPjxzdG9wIHN0b3AtY29sb3I9IiNGRjk5RDkiIG9mZnNldD0iMC4yNCI+PC9zdG9wPjxzdG9wIHN0b3AtY29sb3I9IiNBNkZGNjYiIG9mZnNldD0iMC43NSI+PC9zdG9wPjxzdG9wIHN0b3AtY29sb3I9IiM4Q0ZGNEMiIG9mZnNldD0iMSI+PC9zdG9wPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxzeW1ib2wgdmlld0JveD0iMCAwIDI0IDI0IiBpZD0icGF0aDVlNjY4MWE1LTFiMTMtNDZiMS05YjI5LWEyNzU0Nzk0NGExOSI+PHBhdGggdmVjdG9yLWVmZmVjdD0ibm9uLXNjYWxpbmctc3Ryb2tlIiBmaWxsPSJ1cmwoI2ZpbGxHcmFkNWU2NjgxYTUtMWIxMy00NmIxLTliMjktYTI3NTQ3OTQ0YTE5MCkiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSIwIiBkPSJNMjAuNDY1IDUuNzZzLjI3LS44LS4zMS0xLjM2Yy0uNTMtLjUyLTEuMjItLjI0LTEuMjItLjI0LS42MS4zLTUuNzYgMy40Ny03LjY3IDUuNTctLjg2Ljk2LTIuMDYgMy43OS0xLjA5IDQuODIuOTIgLjk4IDMuOTYtLjE3IDQuNzktMSAyLjA2LTIuMDYgNS4yMS03LjE3IDUuNS03Ljc5ek0zLjUzNSAxOS44NGMyLjM3LTEuNTYgMS40Ni0zLjQxIDMuMjMtNC42NC45My0uNjUgMi4yMi0uNjIgMy4wOC4yOSAuNjMuNjcgLjggMi41Ny0uMTYgMy40Ni0xLjU3IDEuNDUtNCAxLjU1LTYuMTUuODl6Ij48L3BhdGg+PC9zeW1ib2w+PHVzZSBocmVmPSIjcGF0aDVlNjY4MWE1LTFiMTMtNDZiMS05YjI5LWEyNzU0Nzk0NGExOSI+PC91c2U+PC9zdmc+), url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgOTYgOTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1oaWRkZW49InRydWUiIGZvY3VzYWJsZT0iZmFsc2UiPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iYmdGaWxsR3JhZDVlNjY4MWE1LTFiMTMtNDZiMS05YjI5LWEyNzU0Nzk0NGExOSIgeDE9IjAuNSIgeTE9IjEiIHgyPSIwLjUiIHkyPSIwIj48c3RvcCBzdG9wLWNvbG9yPSIjMDEzMEZGIiBvZmZzZXQ9IjAiPjwvc3RvcD48c3RvcCBzdG9wLWNvbG9yPSIjM0NCNEZGIiBvZmZzZXQ9IjEiPjwvc3RvcD48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48Zz48cmVjdCB4PSI0IiB5PSI0IiB3aWR0aD0iODgiIGhlaWdodD0iODgiIHJ4PSI4LjgiIGZpbGw9InVybCgjYmdGaWxsR3JhZDVlNjY4MWE1LTFiMTMtNDZiMS05YjI5LWEyNzU0Nzk0NGExOSkiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSIwIj48L3JlY3Q+PC9nPjwvc3ZnPg==);

}}}


Which in the frontend (after sanitization) results in


{{{
background-image: url('data:image/svg+xml;
}}}


In ideal case it should not add the backgroud-image style as `data` protocol isn't allowed by default in WP. If the protocol is allowed with the filter


{{{
add_filter( 'kses_allowed_protocols', function ( $protocols ) {
	return array_merge( $protocols, array( 'data' ) );
} );
}}}


it should render properly but results in the same output


{{{
background-image: url('data:image/svg+xml;
}}}
"	karthikeya01
	63599	Scheduled Posts Occasionally Miss Schedule with Real Cron Setup		General		normal	normal	Awaiting Review	defect (bug)	new		2025-06-19T10:50:51Z	2025-06-19T10:50:51Z	"Hi WordPress Support,

We’re encountering an intermittent issue where scheduled posts are sometimes not being published as expected and instead show the “Missed schedule” status.

Our Setup:
We have disabled the default WP-Cron by setting DISABLE_WP_CRON to true in wp-config.php.

We’re using a real system cron job to run scheduled events every minute with this command:
wp cron event run --due-now

The Issue:
Most scheduled posts are published correctly.

Occasionally, a post misses its scheduled time and gets marked as “Missed schedule”.

Even after the next cron job run, the missed post does not publish automatically.

Running the above cron command manually also does not seem to publish the missed post.

There are no error logs or plugin conflicts that we can identify.

What We Expect:
Posts should be published at their scheduled time, or at the very least, during the next wp cron event run --due-now execution, even if they missed the exact time.

"	guruprasath1
	65617	Search button is missing an accessible name		General	6.9.4	normal	normal	Awaiting Review	defect (bug)	new		2026-07-13T07:00:44Z	2026-09-05T14:28:13Z	The search button relies only on an icon and does not expose a meaningful accessible name to screen readers. Users of assistive technologies may not understand the purpose of the button.	shailesh7714
	55924	Search by category can be changed to search invalid month		General	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-06-05T07:45:04Z	2022-06-06T17:46:25Z	"In admin 'Posts' page, the search category can be selected by drop down menu:
[[Image(https://ibb.co/mHH5nxG)]]

However, client-side attackers can bypass items in drop down menu by intercepting the 'cat' field in request, which will return data from other non-existing categories.

Possible fix is to add server-side checks to this field to validate whether the category is valid."	floridsleeves
	55923	Search by month can be changed to search invalid month		General		normal	normal	Awaiting Review	defect (bug)	new		2022-06-05T07:37:07Z	2022-06-06T18:06:05Z	"In admin 'Posts' page, the search date can be selected by drop down menu:
[[Image(https://ibb.co/6RmFLVg)]]

However, client-side attackers can bypass items in drop down menu by intercepting the 'm' field in request, which will return data from other months that are not included in the drop down menu.

"	floridsleeves
	54355	Serialization of 'Closure' is not allowed		General	5.8.1	normal	normal	Awaiting Review	defect (bug)	new		2021-11-01T14:18:16Z	2021-11-08T08:46:10Z	"Hi,

I'm using an object to manage my initialization.

I'm looking at the documentation at https://developer.wordpress.org/reference/functions/register_activation_hook/

When I register a hook using a closure (callable) that invokes a method on the object I get an error saying that ""Serialization of 'Closure' is not allowed thrown at line [599] in file [/var/www/html/wp-includes/functions.php]""

Here is my offending code:

{{{#!php

register_activation_hook(WPMP_BASE_FILE_NAME, function() use ($initialize_service) {
    $initialize_service->activate();
});`

}}}


Looking at the code in `functions.php` I can see that there are checks if the data is an array or an object:


{{{
if ( is_array( $data ) || is_object( $data ) ) {
    return serialize( $data );
	
}}}


The issue is that the Closure is seen as an object, but cannot be serialized (see https://3v4l.org/s23qj)

A potential fix could be:

{{{
function maybe_serialize( $data ) {
	if ( is_array( $data ) || is_object( $data ) ) {
		try {
			return serialize( $data );
		} catch (\Throwable $e) {
			return $data;
		}

	}
}}}

However, this requires PHP7.0 which would violate the requirement for WP core to support 5.6"	cambridgeandy
	58967	Shortcode block text is not visible		General	6.2.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-08-03T10:05:20Z	2023-08-14T10:18:36Z	"Steps to reproduce the issue:
1. Create new page
2. Insert cover block
3. Insert shortcode block inside cover block
4. Result: shortcode block title and text are not visible because they are showing up with white font"	johnquail
	59376	Shortcodes no longer working		General		normal	normal	Awaiting Review	defect (bug)	new		2023-09-17T15:13:17Z	2023-09-17T15:13:17Z	This is a problem isn't it if word-press updates can suddenly disallow short-codes because of their updates. I am not sure I can work with an organisation that does this. My entire site, weeks of work thrown out of the window. To say i am furious is an understatement but i expect that is why it is done isn't it? I would say it is a major major drawback. All the code is fine, had it checked just wordpress team stamping its feet for money 	longtimenoc
	54991	Site problem		General	5.9	normal	critical	Awaiting Review	defect (bug)	new		2022-01-29T22:30:23Z	2022-05-17T11:38:45Z	"Hello all
I have an issue with my site, i'm getting the message 

`Warning:  call_user_func_array() expects parameter 1 to be a valid callback, function '_disable_block_editor_for_navigation_post_type' not found or invalid function name in .../wp-includes/class-wp-hook.php on line 307`

Any advise or help?

Thank you!"	nikosgr74
	64767	Some PHP Warnings appears with PHP 8.5		General	6.9.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-03-01T15:32:13Z	2026-03-01T18:50:12Z	"class WP_Translation_File_MO, lines 70 and 75 :

[01-Mar-2026 15:23:31 UTC] PHP Warning:  The float 2500072158 is not representable as an int, cast occurred in D:\SITES_WEB\Gexprod\Site\wp-includes\l10n\class-wp-translation-file-mo.php on line 70

[01-Mar-2026 15:23:33 UTC] PHP Warning:  The float 2500072158 is not representable as an int, cast occurred in D:\SITES_WEB\Gexprod\Site\wp-includes\l10n\class-wp-translation-file-mo.php on line 75






"	phil78180
	43778	Spamming via Contact Form 7 (even Contact Form 7 was deleted)		General	4.9.5	normal	critical	Awaiting Review	defect (bug)	new		2018-04-16T11:27:46Z	2018-04-16T14:52:15Z	"I was confused these days. I disabled Contact Form 7, then they could still spam me. I deleted that plugin, they could still send me the spam email.

From: Randalphirm <janderson@glmtg.xom>
Subject: Yоur Lарtoр + 30 minutes = $600,000

Message Body:
Extrеmely goоd nеws. 

I dоwnlоaded this уеstеrday and it made me $2,421.28 

Thеse guys guаrаntee that it will mаke уоu $2,000 within 24 hours. 

Do nоt miss out on this. 

Plеаse fоllоw thе linк below tо clаim your cаsh by midnight tоdaу… 

=> Clаim yоur $2,000 herе todау http://makemoneyusasystem-3.tk/?p=53617 

Congrаtulаtiоns!

-- 
This e-mail was sent from a contact form on "	knguyen2011
	56749	Special characters break ability to view a page.		General	5.5.1	normal	normal	Awaiting Review	defect (bug)	new		2022-10-06T15:48:31Z	2022-10-06T15:48:31Z	"Steps to make an unworkable page:

Have a post-name based permalink.

Go to create a post using default Gutenberg editor, use ""fdsåƒ"" for the name of the post.

Note that the link it gives you has fdsaƒ in the url and it does not load (page not found)."	programmin
	54898	Strange behavior with (Page-) Templates		General		normal	normal	Awaiting Review	defect (bug)	new		2022-01-25T07:30:46Z	2022-02-01T13:15:17Z	"Test with 5.9 RC 4 + Twenty Twenty Two

1.) Creating new templates
a) In Full Site Editing ""Add New"" Templates seems - now - limited to ""missing"" standard ones.
b) In Twenty Twenty Two a ""Home"" Template exists and a ""Front Page"" (referenced as ""Home""!) can be created. So the create-feature in FSE looks inconsistent within itself!
c) In regular page editing, you can choose an existing page template or create (freely!) a new one of any kind. And after this creation, you can edit this new template in FSE. (where it can not be created directly!) - Looks very strange.


2.) In the Site Editor itself under ""More tools and options"" you can find ""Export"" as option for Download templates. But I could not find a possibility for Import. Looks also inconsistent."	burnuser
	57104	The Default Border color in the Code block is different in backend and frontend.		General		normal	critical	Awaiting Review	defect (bug)	new		2022-11-14T14:04:52Z	2022-11-14T17:01:37Z	"In the Twenty Twenty-Three theme, The Default Border color in the Code block is different in the backend and frontend.

When I add a border in the code block the default border color is {{{#ccc}}} in the backend and {{{black}}} in frontend.  "	krunal265
	63757	The crop function doesn't work with ai generated PNG		General	6.8.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2025-07-27T14:29:53Z	2025-07-27T17:34:36Z	"""I'm using WordPress 6.8.2. The bug occurs both on my live website and locally with XAMPP. I generated a PNG image with ChatGPT, uploaded it to the media library, and used the crop tool. I applied the crop and saved the result. However, when I insert the image into a page, it appears uncropped.
I Attach the image so you can test it"	linopolo
	60486	Theme Export: Update the way we replace the version number.		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-02-09T13:25:03Z	2024-02-09T13:25:49Z	"Updates the way we update the version number so it works when the version number is greater than 10.

This was raised in https://github.com/WordPress/gutenberg/pull/40106/files/3ef38c98a083a382ca1490be535ba1ea314b49e8#r1479956056

GitHub PR: https://github.com/WordPress/wordpress-develop/pull/6076"	scruffian
	64364	There has been a critical error on this website.		General		normal	normal	Awaiting Review	defect (bug)	new		2025-12-05T10:05:09Z	2025-12-08T07:06:52Z	"When you present us with this generic error you might as well tell us more so we get a chance to debug. WordPress encounters an error and you HAVE info to give us. So pls make it a useful message that can help us find the bug. YES it is often plugins or themes - but give us a hint pls!

Today I upgraded WordPress. I only use 6 solid well known plugins and the DIVI4 theme. Everything worked BEFORE the update but not after.

You already know at this time in execution, a lot about the error. Give us that info on this page instead of a generic message! Make this a useful debug page. NO not the debug log - ordinary users dont stand a chance. Info on this page pls!"	dandavince
	65675	Toggletip Screen Reader Accessibility (wp-includes/general-template.php)		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-07-20T18:09:54Z	2026-09-08T20:40:19Z	"The new toggletip element rendering branch introduced a role=""dialog"" span to serve as the supporting text bubble. When this dialog was opened and auto-focused, it lacked an ""aria-describedby"" association.

**Impact:** Screen reader users would hear that a dialog had opened, but the reader would not automatically announce the actual helper text content inside the dialog, forcing the user to manually explore the page hierarchy to find the text."	fahimmurshed
	53066	Trigger errors when non-existent methods are called on objects.		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-04-21T07:40:24Z	2021-04-23T04:27:45Z	"Numerous WordPress classes include a `__call()` function for back-compat, however, simply return false on invalid calls.

For example, the following code outputs 'No' even though it should be a fatal error.
{{{
$wp_query = new WP_Query();

echo $wp_query->delete_all_posts() ? 'Yes' : 'No';
}}}

This can cause logic errors, where someone were to use something like: `WP_User::has_role( 'something' )` and expect to receive true/false, but only ever get false. (Note that `has_role()` doesn't exist and won't exist: [comment:10:ticket:22624])"	dd32
	62286	Trying to access array offset on null		General		normal	trivial	Awaiting Review	defect (bug)	new	has-patch	2024-10-22T22:59:06Z	2024-11-05T10:24:31Z	"PHP notice ""Trying to access array offset on null"" when doing a wp-admin request with WP CLI  --context=admin since we are in eval() and the variables are therefore not in global context
inside
`function sort_menu( $a, $b ) {`

for `return ( $default_menu_order[ $a ] <= $default_menu_order[ $b ] ) ? -1 : 1;`

"	kkmuffme
	60070	Typo in wp-includes/class-json.php		General		normal	trivial	Awaiting Review	defect (bug)	new	dev-feedback	2023-12-14T10:25:56Z	2024-01-27T21:12:45Z	"If we go through wp-includes/class-json.php on line number 186 we can see it is mentioned: ""multibye"". It should be ""multibyte""."	jayadevankbh
	63859	Ugly modal showing up after the session expires		General		normal	normal	Awaiting Review	defect (bug)	new		2025-08-22T08:25:26Z	2025-08-22T08:33:34Z	"I went back to a WP Site after obviously the session has expired. I was facing a amsll, empty modal. After scrolling a bit down I could read ""Briefly unavailable for scheduled maintenance. Check back in a minute."" - see screenshots. I can't tell what I did before on that site, but anyway, this modal needs to be adjusted.

It seems to get rendered in {{{wp_auth_check_html()}}} while {{{wp_maintenance()}}} is kicking in."	Presskopp
	61912	"Uncaught exception 'Error' with message 'Undefined constant ""ABSPATH""' in /var/www/wp-settings.php:33"		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-08-22T17:23:01Z	2024-08-26T09:05:33Z	"Uncaught exception 'Error' with message 'Undefined constant ""ABSPATH""' in /var/www/wp-settings.php:33
"	deepakrohilla
	40870	Using underscore in meta box id field metabox is not working correctly		General	4.7.5	normal	normal	Awaiting Review	defect (bug)	new		2017-05-26T11:52:17Z	2017-05-26T17:49:18Z	"To reproduce this issue: 1. Create a meta box with an id that has underscores(id_with_underscores). 2. Try to put the box after the title. Nothing happens. Replace the underscores with dashes and everything works as expected.
{{{#!php
<?php
// Render metabox
function render_metabox(){
?>
<h2>Test</h2>
<?php
}
// Define meta box
add_meta_box(
			'test_underscore_metabox',
			__( 'Person Details', 'text-domain' ),
			'render_metabox',
			'post',
			'advanced',
			'high',
			null
		);
function move_metabox_after_title() {
	
	global $post, $wp_meta_boxes;
	
	do_meta_boxes( get_current_screen(), 'advanced', $post );
	
	unset( $wp_meta_boxes[ get_post_type( $post ) ]['advanced'] );
}
add_action( 'edit_form_after_title', 'move_metabox_after_title' );
}}}
"	stode
	65327	WP 7 returns a 403 error when attempting to open a Formidable Forms entry in a new tab		General	7.0	normal	major	Awaiting Review	defect (bug)	assigned	reporter-feedback	2026-05-22T17:40:58Z	2026-05-26T19:30:00Z	Using the latest version of Formidable Forms Pro we receive resumes from job seekers in pdf format. When using WP 6.9.4, we would open each entry in a new tab and then proceed to download teh resume. As soon as we updated to WP 7.0, we got a 403 error each time we attempted the same process. When we rolled back to 6.9.4, all returned to normal.	darcy56
	63959	WP cron job issue in a custom plugin		General		normal	normal	Awaiting Review	defect (bug)	new	close	2025-09-11T13:20:27Z	2025-09-12T00:04:08Z	"I am working on a class-based plugin. I need a custom cron job that will be active when the plugin is active and run the plugin function. Now, I am facing an issue where it is not calling the plugin function, but I have checked the cron that has already been created. Below is my code. Let me know what I am missing here. smcp_cron_do_task() is not triggered by the cron job.


{{{
<?php
class ClassName {

    public function __construct() {
        // Ensure custom cron intervals are registered early
        //add_filter( 'cron_schedules', array( $this, 'add_custom_intervals' ) );

        // Hooks
        register_activation_hook( __FILE__, array( $this, 'smcp_cron_activate' ));
        register_deactivation_hook( __FILE__, array( $this, 'smcp_cron_deactivate' ));

        add_action( 'smcp_cron_task_hook', array( $this, 'smcp_cron_do_task' ) );
    }

    // Schedule on activation
    function smcp_cron_activate() {
        if ( ! wp_next_scheduled( 'smcp_cron_task_hook' ) ) {
            wp_schedule_event( time(), 'every_minute', 'smcp_cron_task_hook' );
        }
    }

    // Clear scheduled event on deactivation
    function smcp_cron_deactivate() {
        $timestamp = wp_next_scheduled( 'smcp_cron_task_hook' );
        if ( $timestamp ) {
            wp_unschedule_event( $timestamp, 'smcp_cron_task_hook' );
        }
    }

    function smcp_cron_do_task() {
        // Custom Code
        error_log( 'My custom cron job ran at: ' . current_time('mysql') );
    }

    public function add_custom_intervals( $schedules ) {
        $schedules['every_minute'] = array(
            'interval' => 60,
            'display'  => __( 'Every Minute' ),
        );
        return $schedules;
    }
}

// Initialize plugin
new Site_Monitor();
}}}
"	arungiri
	59055	WP-Exposher Admin page cannot be found		General	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-08-10T16:42:33Z	2023-08-10T16:42:33Z	"I've read the forums yesterday and it seems i'm not the only one that has been affected by the automatic update for 6.3 

I have tried all repair tips from WordPress and other blogs and I still couldn't get the admin page for Exposher.org working. I am not really well-versed with Java and programming, so I would like to ask assistance from the WP support team. 

I have added a post on forums, but I haven't had any replies from MODS or support. I have a very tight deadline with the pages and blogs that I have been working for the past few weeks and I hope this can be sorted out as soon as possible. "	alexalpha88
	63066	Warning when array passed to wp_check_invalid_utf8()		General	6.7.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-03-06T15:57:33Z	2026-04-09T05:05:20Z	"{{{wp_check_invalid_utf8()}}} specifies

{{{
 * @param string $text   The text which is to be checked.
}}}

and will trigger the following warning if passed an array.

{{{
PHP Warning:  Array to string conversion in /var/www/html/wp-includes/formatting.php on line 1096
}}}

To reproduce

{{{
curl -v ""http://localhost/wp-login.php?redirect_to[]=http://""
}}}

I would suggest returning an empty string if presented with an array."	leedxw
	61237	When Editor becomes an iframe, relative path content is not displayed correctly		General		normal	normal	Awaiting Review	defect (bug)	new		2024-05-17T07:31:40Z	2024-05-17T07:31:40Z	"The editor canvas becomes an iframe (blob) under certain conditions, but there is a tag I would like to see added to the embedded html generated when this happens.

In my environment, when adding images to an article, I sometimes use relative URLs instead of absolute URLs.
In that case, the image in the iframe cannot be previewed.

To solve this problem, you need to add a base tag to the header part of the html in the iframe.

Here is an example


{{{
<iframe>
<head>
...
  <base href=""{WP_HOME_URL}"" />
</head>
<body>
...

</iframe>
}}}


I issued a similar question below, but I heard Trac is better, so I'm posting it back here.

https://wordpress.org/support/topic/when-editor-becomes-an-iframe-relative-path-content-is-not-displayed-correctly/


Please consider this."	sawanoboly
	60174	When I press the write button I get an error.		General	6.4.2	normal	normal	Awaiting Review	defect (bug)	new		2024-01-01T13:12:05Z	2024-01-01T21:28:11Z	"I moved scspbk.com from WordPress server to Cloudways server.
If you click Write after moving, an error will occur.
I would like to solve the problem.

I have attached the URL where I uploaded the error photos and videos.

https://blog.naver.com/dlackddn83/223308797087"	changwoolim
	58630	"When custom taxonomy assigned to ""Media"" post type and multiple images assigned to that taxonomy, then count only displaying 1"		General	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-06-26T14:01:39Z	2023-07-04T11:49:31Z	"Screenshot 1(https://prnt.sc/HoG6bAo9WqQK): as showing count shows only 1 in the admin column.
Screenshot 2(https://prnt.sc/BmGVH5LAhYwu): as shown here multiple images are assigned in ""English"" term under the ""language"" taxonomy"	chiragrathod103
	62684	With WordPress Editor - an empty comment is possible - It should show error		General	6.7.1	normal	normal	Awaiting Review	defect (bug)	new		2024-12-12T16:35:16Z	2024-12-13T05:21:06Z	"Attempting to submit an empty column does not work. However, when using the WordPress editor, removing text in a comment is possible without issues.


✅ - When Trying to submit an empty comment: https://prnt.sc/eH6-zdudB8tX
❌ - Editing a comment: (Empty Comment Possible here)
 1. https://prnt.sc/VhRWi1CmXI6I
 2. https://prnt.sc/W4c8a7CmDp4F"	mdibrahimk48
	61067	WordPress Categories and Tags pages are not loading 500 internal server error		General	6.5	normal	normal	Awaiting Review	defect (bug)	new		2024-04-24T10:26:18Z	2024-04-24T11:52:06Z	"Hi,

Categories and tags pages are not loading, I am getting 500 internal server error 

Example link:
https://thefedonline.com/category/grow/newsandmags/hrhqueenelizabeth/
https://thefedonline.com/category/districts/9/

Kind Regards,

Prakash
"	prakashnfrn
	43140	WordPress does not allow HTML tags in the Name field of Links (blogroll)		General	4.9.2	normal	normal	Awaiting Review	defect (bug)	new		2018-01-21T18:07:04Z	2018-01-26T21:33:37Z	"In WordPress 4.9.2, when creating a Link (i.e. the blogroll feature) it is not possible to wrap HTML tags around the text in the Name field: WordPress will simply display those HTML tags escaped on the website.

Being able to add HTML tags around the Name text is important because it allows specifying foreign-language names with the {{{<span lang=""XX"">}}} tag for the sake of accessibility (screenreaders etc.) and semantic markup. My blog, for example, is in English, but some of the blogs linked to in my blogroll have foreign-language titles.

WordPress already allows adding tags like {{{<span lang=""XX"">}}} in the Title field of new blog posts, presumably for precisely this purpose, so this feature should be made available to the Links editor as well."	CRCulver
	60839	WordPress issue > WordPress 6.5 RC3 and 6.4.3, crop feature not working: Invalid Paramter		General	6.4.3	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2024-03-25T11:12:30Z	2025-05-12T01:38:19Z	"Description
The crop feature is not working and showing error when clicking on the apply option. Issue existing on both WordPress 6.5 RC3 and 6.4.3.

=== Environment
- WordPress: 6.5-RC3-57872
- PHP: 8.0.30
- Server: TasteWP-S4 Official/3.0.0
- Database: mysqli (Server: 8.0.32-0ubuntu0.20.04.2 / Client: mysqlnd 8.0.30)
- Browser: Firefox 123.0 (Windows 10/11)
- Theme: Twenty Twenty-Four 1.0
- MU-Plugins: None activated
- Plugins: 
 * WordPress Beta Tester 3.5.5

=== Expected Results
Crop should work when clicked on the apply option

=== Actual Results
Invalid Paramter error showing when clicked on the apply option
Attach video url for reference : https://www.loom.com/share/2b35d8d654284820b67b031e9a8e6d4b"	vivekawsm
	62779	WordPress pattern module in file selection in same images visible in all the pages.		General		normal	normal	Awaiting Review	defect (bug)	new		2025-01-03T16:13:36Z	2025-05-12T01:38:46Z	When user select the file uploader in wordpress pattern module then all the pages in same images are visible.	nirupagajera
	40716	WordPress's magic quotes emulation doesn't slash keys like PHP's built-in magic quotes		General	0.71	normal	normal	Awaiting Review	defect (bug)	new		2017-05-10T14:56:49Z	2017-06-06T06:48:41Z	"PHP's built-in magic quotes feature [https://secure.php.net/manual/en/security.magicquotes.disabling.php#69024 not only slashed values, but also keys]. However, although WordPress emulates the magic quotes feature even when it is disabled/unavailable, it has apparently never slashed keys of the GPC arrays, only the values.

As a consequence of this, I was just dealing with a bug in a plugin that a user was experiencing on PHP 5.2, but I had never witnessed on newer versions of PHP (5.6, 7.0), which did not have magic quotes enabled.

The plugin POSTs data via Ajax that includes both keys and values containing backslashes. This data will be double-slashed by the magic quotes feature. So in the Ajax handler, this data is passed through `wp_unslash()`, and so the original, single-slashed values can then be utilized. However, `wp_unslash()` does not unslash the keys. When PHP's magic quotes are disabled, this is not a problem, because WordPress's magic quotes do not slash keys. But on older versions of PHP where magic quotes are enabled by default, PHP will slash both the keys and values, and `wp_unslash()` will not unslash the keys.


Data flow:

{{{
# WordPress's magic quotes emulation:

POST               => Data containing slashes in keys and values posted.
add_magic_quotes() => Slashes in values are escaped.
wp_unslash()       => Escaping slashes in values removed.

result: data is unchanged.

---

# PHP's magic quotes:

POST             => Data containing slashes in keys and values posted.
magic_quotes_gpc => Slashes in values *and keys* escaped.
wp_unslash()     => Escaping slashes in values removed.

result: values unchanged, keys still double-slashed.

}}}

In other words, there is an inconsistency in how data is slashes on different PHP configurations, despite WordPress's efforts to standardize it. The values are consistent in the way that they are slashed, but keys are not."	jdgrimes
	61566	Wrong Dates on Release Archive Page		General		normal	minor	Awaiting Review	defect (bug)	new		2024-07-03T19:06:02Z	2024-07-04T10:39:01Z	"The dates of the older release like 0.71-gold seems wrong, it should be 2003 and not 2007.

URL in Question: https://wordpress.org/download/releases/#branch-071"	thesheryar
	44251	Wrong way of getting website root url when site is rewritten		General		normal	normal	Awaiting Review	defect (bug)	new		2018-05-28T13:11:44Z	2018-05-28T14:07:03Z	"I have my wordpress setup on IIS and it is on https://blog.my-imaginary-blog-domain.com/blog. This is ""real"" address of my website. However user see this url https://www.my-imaginary-blog-domain.com/blog. Every page works but my homepage goes in redirect loop. I made changes to my wordpress settings and I setup that my site url is https://www.my-imaginary-blog-domain.com/blog. Inside web.config file of https://www.my-imaginary-blog-domain.com project I made rewrite rule. This is about my setup. Now about where is problem. Problem is in wp_includes/canonical.php file inside redirect_canonical method:
if ( ! $requested_url && isset( $_SERVER['HTTP_HOST'] ) ) {
		// build the URL in the address bar
		$requested_url  = is_ssl() ? 'https://' : 'http://';
		$requested_url=$_SERVER['HTTP_HOST'] //this is wrong in my opinion, this returns // https://blog.my-imaginary-blog-domain.com/blog, and not https://www.my-imaginary-blog-domain.com, causing problem of infinite redirection loop, probably some code compares this incoreectly made $requested_url variable with something else
		 $sURL    = site_url(); 
        $asParts = parse_url( $sURL ); 
		$requested_url .= $asParts['host'] ;
		
This 3 lines above are how I solved my problem.So I deleted this line:$requested_url=$_SERVER['HTTP_HOST']; and put those 3 line above instead




"	vladop
	53243	X-WP-DoingItWrong has limited usefulness		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-05-21T01:46:15Z	2021-05-21T16:06:49Z	There is only ever a single X-WP-DoingItWrong header, which means it has limited usefulness. It would be much more useful if all alerts could be seen in the response.	anubisthejackle
	54435	admin-ajax.php : 404 Error		General		normal	normal	Awaiting Review	defect (bug)	new		2021-11-13T04:33:20Z	2022-03-12T01:40:09Z	"The admin-ajax.php file is throwing a 404 error when you click on the X to close the theme customization screen.

(/wp-admin/customize.php?return=%2Fwp-admin%2Fthemes.php)

The admin-ajax.php file does return a proper 200 code when modifying any theme settings."	Mayhem30
	61191	all of my wordpress sites that just updated are missing photos		General	6.5.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-05-10T16:23:26Z	2024-05-10T18:34:39Z	Any site that I have created with wordpress that has been updated is not viewing properly and all media is missing. For example, visit coventrylakerowing.com. 	plbmdesign
	61779	block.json - custom block style asset is loaded unconditionally to all pages with a non block-based theme		General	6.6.1	normal	normal	Awaiting Review	defect (bug)	assigned		2024-07-28T06:50:12Z	2024-07-30T04:43:31Z	"Wordpress version: 6.6.1.
Description:
When using the block.json method to register a custom block and a regular theme is being used (not a block-based theme), the block style asset is loaded  even when the block is not being used. When switching to a block-based theme the block style asset is loaded conditionally. "	incrediblewp
	60572	block_core_navigation_render_inner_blocks loses caret for parent items		General	6.4.3	normal	minor	Awaiting Review	defect (bug)	new		2024-02-19T12:18:58Z	2024-02-25T10:35:35Z	"When we build a menu via the blocks editor the regular way, and create a parent menu items with a submenu, the parent menu item is (somehow) marked as a parent. It receives a caret automatically in Twenty Twenty Four theme.

When programmatically creating a menu via `block_core_navigation_render_inner_blocks`, the parent-child relationship is not marked automatically. There is no dropdown caret in the parent menu item.

Reproduction scenario:
- Twenty Twenty Four theme
- Go to Editor and manually create Navigation
- Parent item ""Post A""
- Add a submenu
- Child item ""Post B""
- View the website. Post A is parent, has a dropdown caret and Post B is below it

Now, do it programmatically via block_core_navigation_render_inner_blocks:

{{{
	function block_core_navigation_render_inner_blocks($items)
	{
		return new WP_Block_List(array(
			new WP_Block([
				'blockName'    => 'core/navigation-link',
				'attrs'        => [""label"" => ""Post A""],
				'innerBlocks'  => array(new WP_Block([
					'blockName'    => 'core/navigation-link',
					'attrs'        => [""label"" => ""Post B""],
					'innerBlocks'  => [],
					'innerHTML'    => '',
					'innerContent' => [],
				])),
				'innerHTML'    => '',
				'innerContent' => [],
			])
		));
	}
}}}

View the website. There is no dropdown caret applied to the parent post (Post A)"	anaid
	62276	class-wp-user.php can throw a warning for trim() when $value is null	heuptasje	General	6.7	normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2024-10-22T11:33:07Z	2024-10-22T11:58:46Z	It seems like the `class-wp-user.php` class can throw a deprecated warning on the `trim()` function when `$value` is null.	heuptasje
	62490	doing_action wrong in shutdown		General		normal	minor	Awaiting Review	defect (bug)	new	reporter-feedback	2024-11-20T15:09:54Z	2024-11-20T20:49:03Z	"{{{#!php
<?php
add_action( 'init', 'wp_die', 10, 0 );

function last_this() {
	if ( doing_action( 'init' ) ) {
		trigger_error( 'yes', E_USER_WARNING );
	}
}
add_action( 'shutdown', 'last_this', 10, 0 );
}}}


You'll get ""yes"" in error log.




"	kkmuffme
	52838	forms not sending after 5.7 install		General		normal	normal	Awaiting Review	defect (bug)	new		2021-03-17T17:24:53Z	2021-03-18T08:27:36Z	"using Contact form 7, switched to Forminator. still didn't work.
Had to revert back to 5.6.2 in order to get the forms to start working again."	Cliff_ottawa
	60371	get_home_path fails in headless mode.		General	6.4.2	normal	normal	Awaiting Review	defect (bug)	new		2024-01-29T14:43:32Z	2025-11-19T20:53:07Z	"The core get_home_path function is incorrect when in a headless mode and siteurl and home are different.

The easy fix for this is to just add a filter to the return value so that we can return ABSPATH"	fishpig
	63159	load_textdomain tries to load the current working directory as a file		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-03-25T03:09:37Z	2025-03-25T03:16:18Z	"It all stems from this line in `wp-includes/l10n.php`


{{{#!php
<?php
		$success = $i18n_controller->load_file( $file, $domain, $locale );

		if ( $success ) {
			if ( isset( $l10n[ $domain ] ) && $l10n[ $domain ] instanceof MO) {
				$i18n_controller->load_file( $l10n[ $domain ]->get_filename(), $domain, $locale );
			}
}}}


There is no guarantee that $l10n[ $domain ]->get_filename() is not empty there

And if it is, there is no sane check and it tries to load a translation on `realpath('')` which is the current working directory

While it doesn't cause any direct issues, this is just something I came accross while debugging and I think the following patch should be done

--- wp/wp-includes/l10n.php.old 2025-03-25 03:13:47.957506010 +0100
+++ wp/wp-includes/l10n.php     2025-03-25 03:14:15.295131388 +0100
@@ -844,7 +844,7 @@
                $success = $i18n_controller->load_file( $file, $domain, $locale );

                if ( $success ) {
-                       if ( isset( $l10n[ $domain ] ) && $l10n[ $domain ] instanceof MO ) {
+                       if ( isset( $l10n[ $domain ] ) && $l10n[ $domain ] instanceof MO && !empty($l10n[ $domain ]->get_filename())) {
                                $i18n_controller->load_file( $l10n[ $domain ]->get_filename(), $domain, $locale );
                        }

Or alternatively before `realpath` check if $translation_file is empty in WP_Translation_Controller

"	tofandel
	65957	missing tests for bookmark-template.php		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-24T19:37:36Z	2026-10-31T19:29:57Z		pbearne
	61017	page_for_posts is automatically reset		General	6.5	normal	normal	Awaiting Review	defect (bug)	new		2024-04-16T14:59:06Z	2024-04-16T14:59:06Z	"Hi all,

It's my first ticket, so please be kind if some information are missing.

I have a quite strange bug regarded the page_for_posts field (in ""Settings/Reading settings / Posts page"")

My setup : 
Multisite wordpress
No problem on main site, just on one ""child"" site has the problem.
I couldn't identify the way to reproduce it.

The problem : sometimes, the field ""page_for_posts"" is reset, and so the articles does not appears anymore on the blog page.

The site with the bug : https://birding-experience.com

Someone has this same trouble ?
Anyone who want to help me looking for more information (identifying the way to reproduce the bug, identify the way to correct it, etc).

Thanks all for you help

Kind regards

Pierre
"	pierronimo
	54114	paginate_links() ajax		General	5.8.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-09-12T17:55:31Z	2021-09-21T13:37:56Z	"`paginate_links()` may not work incorrectly for AJAX requests and other requests that pass `$_GET` parameters.

Let's look how `paginate_links()` works in AJAX request handler function. I wrote a demo plugin:

{{{#!php
<?php
/*
Plugin Name: paginate_links() Bug
*/

add_action( 'wp_ajax_' . 'paginate_links_test', 'paginate_links_test_ajax' );

add_action(
	'admin_menu',
	function () {

		add_options_page(
			'paginate_links() test',
			'paginate_links() test',
			'manage_options',
			'paglinkstest',
			static function() {
				?>
			<script>
				jQuery( function( $ ){

					$( '#test_list' ).on( 'click', 'a.page-numbers', function( event ){

						event.preventDefault()
						let url = encodeURIComponent( this.getAttribute( 'href' ) )

						$( '#test_list' )
							.empty()
							.load( `${ ajaxurl }?action=paginate_links_test&url=${ url }` )
					} )
				} )
			</script>

			<style>
				.pagination{ margin:3em; }
				.pagination > *{ padding:1em 2em; font-size:150%; }
				.pagination a:hover{ color:red; background:#fff; }
			</style>

			<div class=""wrap"">

				<h2><?php echo get_admin_page_title(); ?></h2>

				<div id=""test_list"">
					<?php echo paginate_links_test(); ?>
				</div>
			</div>
				<?php
			}
		);
	}
);


function paginate_links_test( $page = null ) {

	$args = array(
		'base'             => admin_url( 'options-general.php?page=paglinkstest&paged=%_%' ),
		'format'           => '%#%',
		'total'            => 20,
		'current'          => max( 1, (int) ( $_GET['paged'] ?? $page ?? 1 ) ),
		'merge_query_vars' => false,
	);

	$pagination = paginate_links( $args );

	?>
	<pre style=""white-space: pre-wrap""><?php echo htmlspecialchars( $pagination ); ?></pre>
	<div class=""pagination""><?php echo $pagination; ?></div>
	<?php

}

function paginate_links_test_ajax() {

	echo '<p>$_GET[url]: ' . $_GET['url'] . '</p>';

	wp_parse_str( wp_parse_url( $_GET['url'], PHP_URL_QUERY ), $query_vars );

	paginate_links_test( $query_vars['paged'] );

	exit;
}

}}}

Let's install + activate this plugin, go to it's page (under settings menu item) and click on the pagination links:

First paginate links looks good:

`<a class=""page-numbers"" href=""https://wp.dev/wp-admin/options-general.php?page=paglinkstest&#038;paged=20"">20</a>`

But with each click the link to the page grows additional unnecessary parameters

Second click:

`<a class=""page-numbers"" href=""https://wp.dev/wp-admin/options-general.php?page=paglinkstest&#038;paged=20&#038;action=paginate_links_test&#038;url=https%3A%2F%2Fwp.dev%2Fwp-admin%2Foptions-general.php%3Fpage%3Dpaglinkstest%26paged%3D2"">20</a>`

Third:

`<a class=""page-numbers"" href=""https://wp.dev/wp-admin/options-general.php?page=paglinkstest&#038;paged=20&#038;action=paginate_links_test&#038;url=https%3A%2F%2Fwp.dev%2Fwp-admin%2Foptions-general.php%3Fpage%3Dpaglinkstest%26paged%3D3%26action%3Dpaginate_links_test%26url%3Dhttps%253A%252F%252Fwp.dev%252Fwp-admin%252Foptions-general.php%253Fpage%253Dpaglinkstest%2526paged%253D2"">20</a>`

This happens because paginate_links() forcibly add current request $_GET parameters to each pagination link and we have no way to disable this behavior. So we can't normally use paginate_links() in AJAX requests in some circumstance. 

**The best solution** is to somehow cut out the merge of additional parameters, because this function is designed to build pagination links based on the passed data and this side effect only spoils everything. But I don't know what it is about backward compatibility.

**So, the easiest solution** is to add additional argument to paginate_links(), which allow to disable merge of additional GET parameters. 

It will at least allow to use this function in AJAX requests and any other requests, where it's not necessary to add request parameters to pagination links.


"	Tkama
	45960	plugin_basename() fails on windows path		General		normal	normal	Awaiting Review	defect (bug)	new	close	2019-01-12T16:14:10Z	2025-10-24T15:10:48Z	"I happened upon this little bug with plugin_basename(). Namely if a file path include the C: (Windows), it will fail. So here's a quick fix.

{{{#!php
<?php
if ( substr( strtoupper($file), 0, 2 ) === ""C:"" ) {
	$file = ltrim($file, 'C:');
	$file = ltrim($file, 'c:');
}
}}}


If we add this as initial sterilization, it will work as expected. Otherwise, the wrong string is returned."	dovyp
	40687	pre_option_upload_url_path filter no longer working		General	4.7.4	normal	normal	Awaiting Review	defect (bug)	new		2017-05-07T20:42:53Z	2024-04-29T23:52:29Z	"“pre_option_upload_url_path” filter is not working since WP 4.7.

This is my use case that used to work like a charm before, it's pretty simple and seems like an issue in the {{{wp_upload_dir()}}} function in {{{/wp-includes/functions.php}}} file.

{{{
function cdn_url() {
  return 'http://cdn.domain/wp-content/uploads';
}
add_filter( 'pre_option_upload_url_path', 'cdn_url' );
}}}
"	anonymized_14169293
	59678	problem with update		General	6.3.2	normal	critical	Awaiting Review	defect (bug)	new	reporter-feedback	2023-10-19T06:23:09Z	2025-05-12T01:38:15Z	"this is an error when I try to update wordprwss

Update WordPress
Downloading update from https://downloads.wordpress.org/release/wordpress-6.3.2-partial-0.zip…

The authenticity of wordpress-6.3.2-partial-0.zip could not be verified as no signature was found.

Unpacking the update…

Verifying the unpacked files…

Preparing to install the latest version…

Enabling Maintenance mode…

Copying the required files…

Disabling Maintenance mode…

Upgrading database…

Some of your translations need updating. Sit tight for a few more seconds while they are updated as well.

-1"	sebwebswiss
	55486	register_block_type_from_metadata does NOT work within a theme but as a plugin		General	5.9.2	normal	minor	Awaiting Review	defect (bug)	new	needs-refresh	2022-03-30T01:02:26Z	2023-05-30T12:34:44Z	"I created a wordpress block and it guides me to the official documentation and it came to work as an external plugin, taking into account the architecture of block.json for its use, however it has not worked for me when the block is required to be integrated into a theme, delivery wrong path request looking in plugin folder plus adding another path.

example error peticion

https://domain.local/wp-content/plugins/D:/xampp/htdocs/wp-content/themes/NewsPaper/inc/gutenberg/myblock/index.js?ver=d395fe5d9d90bd6565685c91d8d38888"	andre3600
	61910	register_block_type_from_metadata fails to register style attribute when using $args		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-08-22T16:40:41Z	2026-11-06T06:35:10Z	"= Summary =

The `register_block_type_from_metadata` function fails to properly register a block's `style` attribute when the block is registered using the `$args` parameter instead of reading from a `block.json` file.

= Steps to Reproduce =

1. Call `register_block_type_from_metadata` and pass the block configuration in the `$args` array instead of reading from `block.json`. The first argument should be an empty string to specify a `block.json` file is not used.
2. Include a `style` attribute in `$args` specifying an array of style handles.  
3. Observe a PHP warning about an undefined index 'name' when it attempts to call `register_block_style_handle`.

= Expected Result =

The block should register successfully with the specified `style` attribute. No PHP warnings should be generated.

= Actual Result =

A PHP warning is emitted: 
{{{
Warning: Undefined array key ""name"" in .../wp-includes/blocks.php on line 294
}}}

The `style` attribute is not properly registered for the block.

= Relevant Code =

The issue lies in this part of `register_block_type_from_metadata`:

{{{#!php
foreach ( $style_fields as $metadata_field_name => $settings_field_name ) {
    if ( ! empty( $settings[ $metadata_field_name ] ) ) {
        $metadata[ $metadata_field_name ] = $settings[ $metadata_field_name ];
    }
    if ( ! empty( $metadata[ $metadata_field_name ] ) ) {
        $styles           = $metadata[ $metadata_field_name ];
        $processed_styles = array();
        if ( is_array( $styles ) ) {
            for ( $index = 0; $index < count( $styles ); $index++ ) {
                $result = register_block_style_handle(
                    $metadata,
                    $metadata_field_name, 
                    $index
                );
                if ( $result ) {
                    $processed_styles[] = $result;
                }
            }
        } else {
            $result = register_block_style_handle(
                $metadata,
                $metadata_field_name
            );
            if ( $result ) {
                $processed_styles[] = $result;
            }
        }
        $settings[ $settings_field_name ] = $processed_styles;
    }
}
}}}

When calling `register_block_style_handle`, it passes the `$metadata` array. However, when registering via `$args`, the block `name` is not present in `$metadata`. It only exists in `$args`/`$settings` at this point.


= Unit Test =

Here is a failing unit test that demonstrates the issue: (see attached)

The test currently fails due to the PHP warning.

= Related =

#56865, [57026] - Original change allowing `register_block_type_from_metadata()` to be used without a block.json file.
"	mreishus
	60502	remove_function method removing next priority action too while removing current priority		General	6.4.3	normal	normal	Awaiting Review	defect (bug)	new		2024-02-12T12:03:58Z	2024-02-19T19:49:32Z	"{{{
add_action('my_custom_hook', 'mycustomfunc1',9); 
add_action('my_custom_hook', 'mycustomfunc2',99); 
add_action('my_custom_hook', 'mycustomfunc3',100);


function mycustomfunc1(){
    echo 'mycustomfunc1 <br/>';
}

function mycustomfunc2() {
    echo 'mycustomfunc2  <br/>';
    remove_action('my_custom_hook', 'mycustomfunc2',99);
}

function mycustomfunc3() {
    echo 'mycustomfunc3 <br/>';
}


add_action('wp', function(){

    do_action('my_custom_hook');
    exit;
});

}}}
Hi everyone, I found a strange behaviour from the WP core related to remove_action, here when we are removing `mycustomfunc2` and the `mycustomfunc3` automatically getting removed generating output like this-
https://imgur.com/Y3aMVfF
Appreciate if this being checked, initially it seems to be a clear bug. 
I can ensure I am using WP version 6.4.3 with no change in core files. "	amritanshatwisetr
	66354	render_block_core_template_part / get_404_template is called when in any admin area		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-20T19:50:39Z	2026-10-26T05:39:07Z	"it seems that no matter where you are in the admin area, render_block_core_template_part is invoked. I have no idea why this would be required when in the reading settings area, for example.

to replicate:
1. add error log to render_block_core_template_part like so:

{{{#!php

<?php
/**
 * Server-side rendering of the `core/template-part` block.
 *
 * @package WordPress
 */

/**
 * Renders the `core/template-part` block on the server.
 *
 * @since 5.9.0
 *
 * @global WP_Embed $wp_embed WordPress Embed object.
 *
 * @param array $attributes The block attributes.
 *
 * @return string The render.
 */
function render_block_core_template_part( $attributes ) {
	static $seen_ids = array();

	error_log('WHY IS THIS RENDERING ' . print_r($attributes, true));
	$template_part_id = null;
	$content          = null;
...
}}}

2. check error log, observe that header and footer template parts are there.

This is on the 2025 theme, with no other plugins installed.

Digging deeper:
It appears that in template-loader.php, when on any admin area, get_404_template is invoked... because is_404 is true, because the main query sees {{{$query_vars['p']}}} is empty, because we're not viewing a post.

So a bit more involved than I originally thought.

UPDATE: this was due to the site i was working on missing the file for the site favicon. in fetching the missing favicon, it was rendering the 404 template somewhere else. 

it's still rendering though, and it appears to be a browser plugin request. Using React Developer Tools extension attempts to look for /wp-admin/installHook.js.map, which doesn't exist, triggering the rendering of the 404 page template.

background: a block i'm working on does some complicated stuff, so I was looking to implement a simple caching / transient system to store the rendered output. This entails having a way to flush the cache - but while I was testing it in a custom admin area, there was one block transient that just wouldn't go away. as it turns out, that block was in the header template, and because of my missing favicon image, was getting invoked every time the admin area loaded, and then re-caching the block as it rendered a 404 for the favicon request. neat!

tldr: feels like 404 page templates shouldn't be rendered for requests like these, seems like a lot of extra stuff going on that doesn't need to be.

"	brumack
	55971	saving settings returns 404 - WP_SITEURL not used?		General	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-06-13T16:10:41Z	2022-06-13T17:47:19Z	"I have 2 servers.

Server B hosts a WordPress installation (DigitalOcean Marketplace 1 click install).

Server A hosts example.com. The blog is accessed at example.com/blog thanks to Apache proxypass:


{{{
        <Location ""/blog"">
                  ProxyAddHeaders On
                  ProxyPass https://10.110.0.3
                  ProxyPassReverse https://10.110.0.3
                  Header add Access-Control-Allow-Origin ""*""                  
                  RequestHeader set X-Forwarded-Proto ""https""
                  RequestHeader set X-Forwarded-Port ""443""
        </Location>
}}}


in wp-config.php I have set


{{{
if (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
        $_SERVER['HTTPS'] = 'on';
}

define('WP_HOME','https://example.com/blog');
define('WP_SITEURL','https://example.com/blog');
}}}


Everything works fine apart from saving the settings that return a 404.
The form is submitted to the incorrect URL:

https://example.com/wp-admin/options-general.php?settings-updated=true

instead of

https://example.com/blog/wp-admin/options-general.php?settings-updated=true
"	mommens
	44082	settings_errors() wraps all notices in p and strong tags		General		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2018-05-14T19:06:59Z	2026-01-31T15:05:50Z	"I noticed today that `settings_errors()` wraps every notice in a set of `<p>` and `<strong>` tags.

This is undesirable for a few reasons:

* Notices should be allowed to use their own formatting (they already are everywhere)
* Many/most core notices that do not use `settings_errors()` are not strong, or use `strong` for emphasizing specific parts of a notice

As a result, almost every plugin is forced to reinvent their own approach for putting out admin notices. Core even does this in a bespoke way in almost every other admin page, resulting in a bunch of duplication and fragmentation of approaches.

(A quick grep of `.php` files in `wp-admin` with `is-dismissible` in them shows 75.)

----

A few ideas:

* We could use `wpautop()` to wrap each notice to avoid duplicate `<p>` tags
* We could use KSES to only allow certain tags in a notice (not certain this is necessary)
* We could invent a new function for formatting admin area notices in places other than settings (which most plugins do already, so something they can use is preferable)

I can also imagine this issue being a smaller part of a larger `admin_notices` initiative, but figured I'd at least document this kvetch."	johnjamesjacoby
	66010	tests for _get_cron_lock		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-31T20:25:15Z	2026-08-31T20:35:59Z		pbearne
	65955	tests for cache-compat.php		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-24T18:38:16Z	2026-08-24T19:33:45Z		pbearne
	66011	tests for trackback_response		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-31T20:50:10Z	2026-08-31T21:09:54Z		pbearne
	59700	tests for wp_update_php_annotation		General		normal	normal	Future Release	defect (bug)	new	has-patch	2023-10-20T19:52:23Z	2026-05-07T16:20:44Z		pbearne
	62873	unable to install plugins		General		normal	major	Awaiting Review	defect (bug)	new		2025-01-27T18:37:34Z	2025-01-27T18:37:34Z	"Hi there!
I replicated the error on multiple hosting providers. Once I attempt to install a plugin, I get the following error:
Installation failed: Download failed. cURL error 60: SSL certificate problem: unable to get local issuer certificate
I then install plugins manually, but can't do it from the dashboard. The websites have SSL certificates and hosting providers confirmed the issue is not hosting-related."	kucerovic
	62324	uncaught syntaxerror		General		normal	normal	Awaiting Review	defect (bug)	new		2024-10-30T20:54:35Z	2025-02-26T04:29:24Z	"The remote debugger displays the error:

Uncaught SyntaxError: Cannot use import statement outside a module.

When inspecting the file in the remote console, the error is flagged on this line:

// source --> https://urbanblogsphere.my.id/wp-includes/blocks/navigation/view.min.js?ver=6.6.1 
import * as e from ""@wordpress/interactivity"";"	ramonapoly
	56724	unexpected sudden change in the site without any intervention from my side		General		normal	blocker	Awaiting Review	defect (bug)	new		2022-10-03T23:55:12Z	2022-10-03T23:55:12Z	"suddenly i found the website has changed but i did not do any change , i found 18 pages has been published since 2015, i did not add any of them and i just opened my website from a month 
the homepage itself it's completely changed 
i am still using the same theme but my change does not appear on the website after publishing it .
how can i return my website as it was?"	mainoffice
	46639	unit test for wp_is_numeric_array()		General		low	normal	Future Release	defect (bug)	reviewing	has-patch	2019-03-25T12:58:57Z	2026-05-07T16:21:50Z	just a missing unit test	pbearne
	40007	update_option function does not work if the $value argument is false on a nonexistent option		General		normal	normal	Awaiting Review	defect (bug)	reopened	has-patch	2017-03-01T17:03:59Z	2023-10-30T23:49:08Z	"If we specify a false argument in update_option function and if the database option does not exist then the option will not be saved.

I expect the option to be saved with false value if it does not exist.

If we look into the code of this function we can see that it will return false if the old value is false too, so if the option does not exists then it will return false.

It's a bug.

How to replicate? give a try:

{{{#!php
<?php
update_option( 'aaa2345454', false );
}}}

"	alexvorn2
	64386	when I try to click anywhere it keeps clocking and timing out		General	6.9	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2025-12-09T16:07:30Z	2025-12-09T20:20:09Z	I can’t seem to get word press dashboard working.  It keeps clocking and timing out.	pennysprimal
	65986	wp-config-sample.php is not usable as a live config without filling placeholders		General		normal	normal	Awaiting Review	defect (bug)	new		2026-08-28T05:45:36Z	2026-09-08T14:39:49Z	"This is the standard WordPress `wp-config.php` template, mostly unmodified — but there are a few real issues:

1. Placeholder credentials never filled in
{{{#!php
define( 'DB_NAME', 'database_name_here' );
define( 'DB_USER', 'username_here' );
define( 'DB_PASSWORD', 'password_here' );
}}}

These are still the sample values. As-is, this file will fail to connect to any real database. This needs to be replaced with actual credentials before the site will work.

2. Placeholder secret keys/salts — a real security problem
{{{#!php
define( 'AUTH_KEY',         'put your unique phrase here' );
...
define( 'NONCE_SALT',       'put your unique phrase here' );
}}}

These are meant to be long, random, unique strings. Leaving them as literal placeholder text means:
- Session/auth cookies are far more predictable/forgeable.
- If this exact file is ever reused across sites (or checked into a public repo), all sites share the same ""secret,"" making cookie forgery trivial.

Generate real values from the [https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service] or via `wp config shuffle-salts` (WP-CLI).

3. `CONCATENATE_SCRIPTS` defined too early, and questionable value
{{{#!php
define( 'CONCATENATE_SCRIPTS', false );
}}}

This is placed *before* the file's docblock/header and before `ABSPATH` is even set up — it works functionally since `define()` doesn't care about surrounding comments, but it's an unusual/fragile spot to put a custom constant (normally these go in the ""Add any custom values"" section below). Setting it to `false` also disables JS/CSS concatenation in the admin, which hurts admin dashboard performance — this is usually a temporary debugging aid, not something you want permanently in production.

4. `WP_DEBUG` is `false` with no companion debug-logging setup
Not a bug per se, but worth noting: if this is a dev/staging environment, you'd typically want:
{{{#!php
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
}}}

so errors are logged to a file instead of either being silently swallowed or (worse) displayed on a live site.

5. No `DISALLOW_FILE_EDIT` / hardening constants**
Not a ""bug,"" but commonly paired with this file for production security (e.g., disabling the plugin/theme file editor, forcing SSL for admin/login).

Summary: The file is structurally correct WordPress boilerplate, but it is not safe to deploy as-is — the unfilled `DB_*` credentials will break the DB connection, and the unfilled `AUTH_KEY`/`*_SALT` placeholders are a genuine security weakness, not just a style nit."	alijah06
	43535	wp-mediaelement.min.js?ver=4.9.4:1 crashes, making the Widgets in customize.php unusable		General	4.9.4	normal	normal	Awaiting Review	defect (bug)	new		2018-03-13T09:57:51Z	2018-03-13T10:29:44Z	"When accessing **wp-admin/customize.php** with a live preview, I am unable to add menu items or to switch between ""Text/Visual"" for the text widgets. At the first sight, it seems to be a problem with Javascript.

The console looks like having an error with the media gallery - `Uncaught TypeError: Cannot read property 'indexOf' of null` (see screenshot for details).
[[Image(https://cloudup.com/cLbAt2w2Kas)]]

There is also a second error in the console - which does not seem related - but it may prove helpful: `Error parsing header X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube: insecure reporting URL for secure page at character position 22. The default protections will be applied.`

I have also disabled live preview with a `die()`, the situation is the same - which makes me think the error is more related to the way media gallery interprets some part of the content while rendering customize.php. Everything works smoothly for **wp-admin/widgets.php** (no Javascript errors).

There may be other sections that are affected, but I can confirm these two:
* Widgets > Footer X > Any text widgets: cannot switch between Visual and Text (stays blocked on Visual)
* Menu > Main Menu > Add items: items are not clickable (and the first one is not folded).

Browser: Chrome 64.0"	radual
	52235	wp_extract_urls doesn't match localhost		General	5.6	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-01-06T11:22:43Z	2021-03-05T11:44:37Z	"The wp_extract_urls function does not match URLs with localhost as the domain:

{{{#!php
<?php
// Matches.
wp_extract_urls(""<a href=\""http://localhost.com:8889/?p=9\"">hi</a>"");

// Doesn't match.
wp_extract_urls(""<a href=\""http://localhost:8889/?p=9\"">hi</a>"");
}}}

I think this function should definitely match localhost because this is often used in testing environments. But if this is intended behaviour, then the documentation makes no mention that this function only matches a subset of allowed URLs."	seanleavey
	51773	wp_guess_url() calls strpos() incorrectly if $_SERVER['SCRIPT_FILENAME'] is empty		General	3.7	normal	normal	Awaiting Review	defect (bug)	new		2020-11-13T15:59:06Z	2020-11-13T22:11:08Z	"This can happen, for example, if using PHPUnit's `@runInSeparateProcess`.

The message produced is
{{{
PHP Warning:  strpos(): Empty needle in /var/www/html/wp-includes/functions.php on line 5435
}}}
In the aforementioned PHPUnit case, that warning causes tests to fail."	bjorsch
	56555	wp_insert_post does not save the post_date for pending posts		General	6.0.2	normal	normal	Awaiting Review	defect (bug)	new		2022-09-12T08:56:34Z	2022-09-12T08:56:34Z	"If we set a date when inserting a post with the status of pending/draft, WordPress does not display that date when editing the post 


{{{#!php
<?php
// Create post object
$my_post = array(
		'post_title'    => 'test title'  ,
		'post_content'  => 'test content',
		'post_status'   => 'pending',
	 	'post_date' => '2022-09-01 10:38:00',
		'post_date_gmt' => '2022-09-01 08:38:00'
);

// Insert the post into the database
$id = wp_insert_post( $my_post );
}}}

Expected when editing the post to see the set date 

 [[Image(https://i.imgur.com/8DSgjCq.png)]]

current behavior: the date does not display, instead it shows ""Immediately""

[[Image(https://i.imgur.com/bGZwCSB.png)]]"	sweetheatmn
	65702	wp_lostpassword_url() duplicates the base path on a Multisite network installed in a subdirectory		General	7.0.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-07-24T08:05:48Z	2026-07-24T16:52:41Z	"On a Multisite network installed in a subdirectory, wp_lostpassword_url() returns a URL where the base path appears twice.

This happens when the network base path is not ""/"". For example, when WordPress is installed at http://example.com/subdir/ , the base path is ""/subdir/"".

== Steps to reproduce ==

 1. Install a fresh copy of WordPress in a subdirectory, for example
    http://example.com/subdir/ .
 2. Enable Multisite by following the official guide ""Create A Network"":
    https://wordpress.org/support/article/create-a-network/
 3. Open the ""Lost your password?"" link on the login page.

Reproduced on a clean install with no plugins, using only the steps in the official Create A Network guide.

Tested on WordPress 7.0.2 with no plugins active.

== What I expected ==

{{{
http://example.com/subdir/wp-login.php?action=lostpassword
}}}

== What actually happens ==

{{{
http://example.com/subdir/subdir/wp-login.php?action=lostpassword
}}}

The ""/subdir/"" part is repeated.

== Why it happens ==

In wp_lostpassword_url() (wp-includes/general-template.php), the code adds the current site's path in front of ""wp-login.php"":

{{{
$blog_details  = get_site();
$wp_login_path = $blog_details->path . 'wp-login.php';
...
$lostpassword_url = add_query_arg( $args, network_site_url( $wp_login_path, 'login' ) );
}}}

The value of $blog_details->path (the wp_blogs.path column) already includes the base path. For the main site it is the same as the network path.

Then network_site_url() adds the network base path in front again. So the base path is added two times, and you get ""/subdir/subdir/"".

wp_login_url() and wp_registration_url() do not have this problem. They use site_url() and do not add the path a second time.

The line that prepends $blog_details->path was added in WordPress 5.5 (#39311)."	youcune
	60855	wp_mkdir_p can error when simultaneous requests attempt to create the same directory		General		normal	normal	Awaiting Review	defect (bug)	new		2024-03-27T18:54:56Z	2024-05-20T14:30:19Z	"When two requests happen at the same time that both attempt to create a new directory with `wp_mkdir_p`, a race condition can occur that results in one request creating the directory and the other triggering an error.

The issue happens when both of the requests reach the `file_exists` check at nearly the same time:

https://github.com/WordPress/wordpress-develop/blob/e73db80196c0044503633bda41511258a9516a8b/src/wp-includes/functions.php#L2059

The directory does not exist yet, so the check fails and both requests continue execution of the function. Then the requests are in a race to get to the code where the directory is actually created using `mkdir`:

https://github.com/WordPress/wordpress-develop/blob/e73db80196c0044503633bda41511258a9516a8b/src/wp-includes/functions.php#L2082

The first request to reach that point will successfully create the directory and return true, the second will return false when `mkdir` fails because the directory already exists.

This causes an error upstream in the code because `wp_mkdir_p` is expected to return true when the directory already exists.

Found when testing the font library on new installs, see https://github.com/WordPress/gutenberg/issues/59023#issuecomment-2022746082"	grantmkin
	44259	wp_query: Post & Page Parameters doc section incorrect		General		normal	normal	Awaiting Review	defect (bug)	new		2018-05-29T13:15:46Z	2018-05-29T13:46:25Z	"The [[https://developer.wordpress.org/reference/classes/wp_query/#post-page-parameters|Post & Page Parameters]] section of the code ref page for `WP_Query` contains the following incorrect text:

{{{
post_name__in (array) – use post slugs. Specify posts to retrieve. (Will be available in version 4.4)
}}}

The ""Will be available in..."" text should be removed since 4.4 was released long ago."	pbiron
	63099	wp_rand() function returns only 0 or 1 when called without parameters on 32-bit PHP systems		General	6.7.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-03-13T20:52:05Z	2025-05-07T16:18:17Z	"I've identified a bug in WordPress's wp_rand() function that causes it to return only the values 0 or 1 when called without parameters on 32-bit PHP systems.

**Environment Information:**
- PHP Version: 7.4.33
- PHP Int Max: 2147483647 (32-bit system)
- PHP Int Size: 4
- OS: Linux (64-bit)
- Server Software: Apache
- WordPress Version: 6.7.2
- Random Int Available: Yes
- OpenSSL Available: Yes

**Issue Description:**
When calling wp_rand() without parameters on a 32-bit PHP system, it consistently returns only the values 0 or 1, rather than generating random numbers across the expected range. This occurs due to an integer overflow issue.

**Debug Results:**

{{{
Array
(
    [start] => Array
        (
            [min] => 
            [max] => 
            [rnd_value_length] => 0
            [rnd_value] => ...
        )

    [max_random_number] => 4294967295
    [php_int_max] => 2147483647
    [after_cast] => Array
        (
            [min] => 0
            [max] => -1
            [max === max_random_number] => false
        )

    [use_random_int_functionality] => true
    [random_int_try] => Array
        (
            [_min] => -1
            [_max] => 0
        )

    [random_int_result] => -1
    [return_path] => random_int success
    [final_result] => 1
)
}}}

**Root Cause Analysis:**
1. On 32-bit PHP systems (PHP_INT_MAX = 2147483647), the function sets $max_random_number to 4294967295 (unsigned 32-bit int max value)
2. When this value is cast to an integer in 32-bit PHP, it overflows and becomes -1
3. The function then calls random_int(-1, 0) which returns either -1 or 0
4. Finally, the absint() function converts -1 to 1, resulting in only 0 or 1 being returned

**Steps to Reproduce:**
1. Run WordPress on a 32-bit PHP system
2. Call wp_rand() without parameters multiple times
3. Observe that only 0 or 1 is returned

**Expected Behavior:**
The function should return random numbers across the full range (0 to getrandmax() or similar) when called without parameters, just like PHP's native rand() function.

**Additional Tests:**
- PHP's native rand() and mt_rand() functions work correctly on the same system
- When wp_rand() is called with specific parameters (e.g., wp_rand(10, 100)), it behaves correctly

This appears to be a bug in how the function handles 32-bit PHP systems when called without parameters."	kalonya
	50893	wp_send_json_success is nothing, no error for any inf/nan		General	5.2.5	normal	normal	Awaiting Review	defect (bug)	new		2020-08-11T06:15:16Z	2022-10-19T15:51:55Z	"If wp_send_json_success() has an argument array with INF or Nan in it nothing is printed out, no error is given, this can make it really hard to track down errors in the data of attachments for example.

Steps to reproduce issue:

wp_send_json_success( array('a'=>34/0) );

The fact that can continue and print nothing and nothing but a notice shows how bad PHP can be on multiple levels... :( but there should be some error in this function, or perhaps clean the error since I see it is recursively going through the array for something in _wp_json_sanity_check?"	programmin
	57266	wp_suspend_cache_invalidation can be set to no Boolean value which break usage		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-12-03T00:14:02Z	2022-12-05T22:20:21Z		pbearne
	58668	"wrong ""domain"" returned by wpmu_validate_blog_signup when using on subsite in subdomain multisite"		General	3.0	normal	minor	Awaiting Review	defect (bug)	new	has-patch	2023-06-29T06:25:06Z	2023-06-29T06:30:52Z	"`wpmu_validate_blog_signup` function relies on global `$domain` which will give wrong results when its triggered on subsite of subdomain multisite. In cases like this, `$domain` will be set to current subsite, which will lead to unexpected value of ""domain"" element in returned array.

Triggering the function on subsite will lead to ""domain"" element having value like ""newsite.currentsubsite.network"" instead of ""newsite.network"".

To fix this, `$domain` should be set based on `$current_network->domain` instead of global `$domain`."	maniu
	61713	— no role for this site —		General	6.5.5	normal	normal	Awaiting Review	defect (bug)	assigned	reporter-feedback	2024-07-19T17:41:36Z	2024-07-23T17:35:30Z	"Hello, sometimes my site mistakenly creates a user with a user role (— no role for this site —). I used to be able to find it easily in the users section, but now there is nothing to find them
Please give me a solution to find them, there are too many users and I can't check them all"	hamidsna
	56317	“document.domain” setting		General		normal	normal	Future Release	defect (bug)	new		2022-08-01T12:57:48Z	2022-10-12T19:02:38Z	"Hi Team,

I submit a ticket for review as suggested in this post (https://wordpress.org/support/topic/document-domain-setting/).

Do you know any plans to address “document.domain” setting problem in upcoming WordPress releases:
– https://developer.mozilla.org/en-US/docs/Web/API/Document/domain
– https://developer.chrome.com/blog/immutable-document-domain/

I check the latest WordPress release (v6.0.1) and it has four JavaScript libraries using this property:
* wp-admin\js\gallery.js
* wp-includes\js\tinymce\wp-tinymce.js
* wp-includes\js\dist\vendor\wp-polyfill.js
* wp-includes\js\dist\vendor\wp-polyfill-url.js"	ashoot96
	59916	API Docs: update comment endpoint does't have example request	gavande1	General		normal	minor	Awaiting Review	enhancement	assigned		2023-11-16T11:02:29Z	2023-11-27T18:39:26Z	"**Details**
I noticed that the comment update API endpoint doesn't have an example request, even though the API document has a title for it. 

**Link to doc**
https://developer.wordpress.org/rest-api/reference/comments/#example-request-2"	gavande1
	62662	Ability to rename wp-admin and wp-login in wp-config.php		General	6.7.1	normal	major	Awaiting Review	enhancement	new		2024-12-07T06:20:49Z	2024-12-07T06:20:49Z	"I have been dealing with multiple requests from users who get constant bruteforce hits on wp-admin and wp-login.php file. 

One solution is to make them renameable by removing hard coded values from the codebase and replace with e.g. ADMINPATH and LOGINPATH (like ABSPATH) which may be editable in wp-config.php."	nabtron
	43742	Add $_wp_admin_css_colors variable to front-end		General	3.0	normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2018-04-12T07:17:43Z	2020-06-04T23:11:00Z	"I've developed a plugin that uses the admin colour scheme functionality.

When a colour scheme is registered (using `wp_admin_css_color`), it's added to the `$_wp_admin_css_colors` variable. This is only accessible within the dashboard though so if you try and use that variable on the front-end, it returns `null` (doesn't exist).

Can this be made accessible on the front-end too?"	danieltj
	64154	Add $x_redirect_by in all places used wp_redirect() and wp_safe_redirect() - in the core, themes and plugins		General		normal	normal	Awaiting Review	enhancement	new		2025-10-27T14:04:56Z	2025-10-27T14:04:56Z	"To better debug any redirects, please explicitly add the $x_redirect_by parameter in all places where the wp_redirect() and wp_safe_redirect() functions are used.

And also add a recommendation for theme and plugin developers to explicitly specify this parameter.

I think this will be useful for all developers in the future."	valentynilinov
	62087	Add `inline` support to the new `wp_get_admin_notice()` function		General	6.4	normal	normal	Awaiting Review	enhancement	new		2024-09-20T08:17:19Z	2024-09-20T08:17:19Z	"The introduction of `wp_get_admin_notice()` is a good move to unify how admin notices are generated, and makes it easier down the road to change these as needed.

One element that is currently missing, although it ''can'' be added using the `additional_classes` argument, is the `inline` reference.

Admin notices will by default always be moved, by JavaScript, to immediately follow the `h1` tag of a page, but adding the `inline` class will leave it in the position it is generated. This exists as there are various cases where the admin notice markup is used by plugins, themes, and core to bring emphasis to a notice or warning that is context aware.

Since the function is intended to generate the markup and return it, this should ideally be an explicit boolean value introduced to the function as well for ease of use, and to bring awareness."	Clorith
	51301	Add class field to wp_nonce_field		General		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2020-09-13T18:21:25Z	2020-09-14T05:49:30Z	"It would be great to have an optional `$class` field when generating nonce field. That way, when I'm referencing the field in my JS scripts, I can add a class that specifies that this field will be used in JS. 

For instance, every element that is used in JS script has a `js-` prefix. It's a common practice in JS development. 

So I'd have 

{{{#!php
<?php
wp_nonce_field('action', 'name', true, true, 'js-nonce-field');
}}}

The class field would be optional, and by default empty. If it would be empty it wouldn't be displayed.
"	dingo_d
	64939	Add opt-out mechanism for global admin CSS on individual elements		General		normal	normal	Awaiting Review	enhancement	new		2026-03-24T13:54:09Z	2026-03-24T13:54:09Z	"== Problem

WordPress admin stylesheets (`forms.css`, `common.css`) apply broad, bare-element selectors that set visual properties on elements like `input`, `textarea`, `button`, `a`, `div`, `p`, and headings. For example:

{{{#!css
/* forms.css */
input[type=""text""] { border: 1px solid #949494; min-height: 40px; /* ... */ }

/* common.css */
a, div { outline: 0; }
p { font-size: 13px; line-height: 1.5; margin: 1em 0; }
}}}

These rules work well for traditional wp-admin screens, but they conflict with component libraries that manage their own element styles — particularly those using CSS cascade layers, where unlayered admin styles unconditionally win regardless of specificity.

This has been causing inconveniences for years, but is now becoming a blocker for adopting modern CSS architectures like `@layer`. We have an [https://github.com/WordPress/gutenberg/pull/76783 interim workaround] in place for the `@wordpress/ui` package, but a Core-level solution would benefit the broader ecosystem: any plugin or component library using layered CSS, or simply wanting a clean styling baseline for its UI, faces the same problem.

== Proposal

Add a `data-wp-no-global-css` attribute that opts individual elements out of admin global styles. Each bare element selector in `forms.css` and `common.css` would be guarded with `:where(:not([data-wp-no-global-css]))`:


{{{#!css
/* Before */
input,
select,
textarea,
button {
  box-sizing: border-box;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

/* After */
:is(input, select, textarea, button):where(:not([data-wp-no-global-css])) {
  box-sizing: border-box;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}
}}}


An element with the attribute is simply excluded from the rule. Elements without it are unaffected.

=== Design goals

- **Specificity-neutral** — `:where()` adds zero specificity, so existing overrides of admin styles continue to work.
- **Per-element** — the guard is on each element selector, not an ancestor wrapper, so there's no gap where the wrapper itself still receives admin styles.
- **Package-agnostic** — usable by `@wordpress/components`, `@wordpress/ui`, or any third-party component library.
- **Not a styling hook** — the attribute name describes an opt-out behavior, not a component identity, so it doesn't invite misuse as a selector by consumers.
- **Backwards compatible** — the default behavior (no attribute) is identical to today.

=== Scope

Only the bare/unscoped element selectors in `forms.css` and `common.css` need the guard — roughly the first ~335 lines of `forms.css` and the element resets in `common.css`. Class-scoped rules (`.wp-admin ...`, `.form-table ...`, etc.) are already sufficiently scoped and don't need changes."	0mirka00
	64679	Add option in dashboard font management screen to include external font libraries/apis		General		normal	normal	Awaiting Review	enhancement	new		2026-02-20T18:55:50Z	2026-02-23T08:16:04Z	"The new font library management page in WP 7.0 currently (as of Beta 1) has two options: manage fonts already imported, or upload new fonts.

There should be a third option to use external font libraries or APIs for including fonts. 

Uploading and managing existing fonts is extremely useful, and the average user will benefit. Web developers however typically use external font libraries / APIs to leverage fonts in web pages rather than uploading font files, with methods like an embed or @include directive in <head>. Like this:

<link rel=""preconnect"" href=""https://fonts.googleapis.com"">
<link rel=""preconnect"" href=""https://fonts.gstatic.com"" crossorigin>
<link href=""https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap"" rel=""stylesheet"">

or 

<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
</style>

WordPress themes often have options for including external fonts, but using those methods means the use of the font is not theme-agnostic. 

A third option for using external font library/api includes could help alleviate theme dependency, reduce the potential for website bloat from uploading font files, and would be a useful tool for devs.

Edit to add: Or maybe this would be better on the (soon to be created) new API connectors page 

(I did not find any tickets for this but apologize if it's a duplicate!)"	amykamala
	56846	"All test classes that use the ""wp"" prefix should be renamed for consistency"		General		normal	minor	Awaiting Review	enhancement	new	has-patch	2022-10-18T18:42:18Z	2023-07-25T21:15:25Z	"About 170  PHP test classes use lowercase `w` and only 34 test classes use capital `W` in the `wp` prefix.
Examples:
`wp` : `Tests_Formatting_wpParseStr`
`Wp` : `Tests_Category_WpListCategories`
According to [https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/#test-classes| this document], the correct spelling is `Wp`.
So, all test classes that use the `wp` prefix should be renamed for consistency."	antonvlasenko
	62151	Allow Ignoring Patch Version in version_compare() for PHP Compatibility		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-10-01T19:06:51Z	2024-10-01T22:51:41Z	" Currently, `version_compare()` in PHP compares the full version number, including the patch (third number). However, in many cases, only the major and minor versions are relevant, such as when comparing WordPress or plugin versions for compatibility.

For example, if a plugin is tested up to WordPress version `6.6` in `readme.txt`, but the current version is `6.6.2`, the comparison returns false because of the patch difference. The WordPress API adjusts this by adding the patch version (`6.6.2`), but it would be more efficient to handle this locally with `version_compare()` and ignore the patch version.

**Proposal**:  
Add a simple option to `version_compare()` that allows ignoring the patch version in comparisons. This would prevent the need to modify API data for version compatibility checks.

Here is an example of how this could be handled locally:

{{{#!php
<?php
function version_compare_ignore_patch($version1, $version2, $operator) {
    // Remove the patch version (everything after the second dot) if present
    $version1 = implode('.', array_slice(explode('.', $version1), 0, 2));
    $version2 = implode('.', array_slice(explode('.', $version2), 0, 2));

    // Use version_compare with the modified versions
    return version_compare($version1, $version2, $operator);
}

// Example usage
echo version_compare_ignore_patch('6.6.2', '6.6', '<=');  // Outputs true
}}}



This would streamline plugin and WordPress version compatibility checks without requiring adjustments on the API side, improving efficiency for developers."	mostafa.s1990
	59918	Allow wp_get_global_settings to return null if the value is not found.		General	5.9	normal	normal	Future Release	enhancement	new	needs-unit-tests	2023-11-16T19:53:12Z	2023-11-27T20:30:54Z	"Currently, `wp_get_global_settings()` defaults to returning the entire settings object whenever the value specified in the first parameter does not exist in the settings object. This means that any code making use of this function has to do an additional check to make sure that the expected setting value is returned.

What would be preferable in many cases is that the function would return `null` or `false` if the setting is not found instead.

For example, if I want to get the layout settings for a theme, I would call `wp_get_global_settings( array( 'layout' ) );` but may end up with the setting values or (in the case of a theme that doesn't support the layout setting) the entire settings object. This happens because `wp_get_global_settings()` makes use of the `_wp_array_get()` helper function with the entire settings object passed as the third default value.

For backwards compatibility, it would be nice to add a third parameter to `wp_get_global_settings()` that would allow you to adjust this default behavior so that you could force the function to return `null` if the setting is not found by adjusting the default value passed to `_wp_array_get()`."	joemcgill
	63419	Auto-generate temporary title for new posts without a title		General		normal	major	Awaiting Review	enhancement	new		2025-05-08T21:04:54Z	2025-05-08T21:28:14Z	"Hi everyone,
I’d like to propose a simple yet valuable improvement to the post editing experience in WordPress – something that could help both beginners and power users, and improve overall content organization.

Currently, when a user creates a new post or page, the title field can be left empty. WordPress allows saving or even publishing the post without a title, or sometimes leaves it as “Auto Draft.” This results in:

Lists of posts/pages with empty or unclear titles

Difficulty in identifying which draft is which

Confusion especially for less experienced users

Poor experience for content-heavy sites that rely on clear draft management

 What I’m suggesting is simple:
If no title is set by the user, WordPress could automatically generate a placeholder title upon the first save, like:

“Untitled Draft (1)”

“Untitled Draft (2)”

or the localized version based on site language

This would not be a permanent title – just a temporary, human-readable label that helps keep drafts manageable.

 Why this can’t be (reliably) done with a plugin:
While it may seem like something that a plugin could handle, it's actually difficult to implement correctly from outside Core, because:

Plugins don’t easily hook into the post title logic in the block editor

There's no reliable way to auto-set post titles on draft save without risking overwriting user input

It touches core behavior of wp_insert_post() and default post title handling — which is best done natively

 Benefits:
This small change would help:

Beginners who often skip the title field

Power users managing large numbers of drafts

Sites where multiple contributors are creating content

Keep things cleaner and more understandable across the admin UI

 Final thoughts:
This is not a major feature or overhaul – just a small quality-of-life improvement that solves a real issue seen in many WordPress installs."	smahjoob
	43830	"Being able to set a page as a homepage under the ""Page Attribute"" meta box"		General		normal	normal	Awaiting Review	enhancement	new		2018-04-22T12:00:58Z	2019-01-16T06:50:09Z	"Hi everyone,

As the file attached shows, the idea is to allow the user to set the page as a homepage from the admin panel of the page without going to the ""settings"" -> ""reading"" section.

Tank you.
Team from contributor day in Madrid"	dssaez
	60906	Block Hooks: Allow adding toggle without injecting hooked block		General		normal	normal	Awaiting Review	enhancement	new		2024-04-03T11:54:31Z	2024-04-03T11:56:40Z	It has been requested (by @simison) that it should be possible for a plugin to have the Block Hooks toggle (in the 'Plugins' Panel of an anchor block's block inspector) enabled, without actually inserting the block. The rationale for this is increased visibility, while still giving control to the responsible plugin to actually insert that block in its designated position (e.g. via a separate control panel by the plugin).	Bernhard Reiter
	61078	Block Hooks: Consider introducing a dedicated endpoint		General		normal	normal	Future Release	enhancement	new		2024-04-25T15:30:59Z	2024-04-26T08:34:22Z	"It might be worth revisiting a dedicated endpoint for Block Hooks (as originally discussed in #59574 and attempted in https://github.com/WordPress/gutenberg/pull/58622). Such an endpoint would accept an anchor block (and optionally a context) as its arguments, and return the list of hooked blocks in each relative position for that anchor block. Specifically, its syntax would likely be something like this:

{{{
/wp/v2/hooked-blocks/core/post-content?entity=template&id=twentytwentythree/single
/wp/v2/hooked-blocks/core/page-list?entity=navigation&id=4
}}}

(Which would return a list of all blocks hooked to the Post Content if located inside of the TT3 Theme's Single Posts template, or to the Page List block if located inside the Navigation menu with ID number 4.)

So far, we've managed to avoid the need for an extra endpoint, and instead used the actual markup -- in particular the `metadata.ignoredHookedBlocks` attribute, plus the presence of hooked blocks in their expected position(s) -- to infer e.g. the state of the Block Hooks toggle. However, we're starting to push the limits of what's possible with that information. For example, in order to fix #60756, we'd need to change the format of `ignoredHookedBlocks` to include the relative position."	Bernhard Reiter
	60769	Block Hooks: Consolidate approach to get the list of hooked blocks.		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-03-13T14:28:40Z	2024-07-03T07:15:57Z	"Our current approach to getting hooked blocks has two parts to it:

1. We use `get_hooked_blocks()` to get all of the hooked blocks which are hooked from the `block.json` file.
2. In function `insert_hooked_blocks` we apply the filter callbacks (passing a derived value from step 1 as the default value) to get hooked blocks that are applied by the `hooked_block_types` filter.

Currently it's a bit confusing and without knowledge you'd assume `get_hooked_blocks()` would retrieve ''all'' of the hooked blocks. Additionally it feels like you have to run a few different pieces of code separately and combine their resulting values to get a complete picture which could result in some bugs or unnecessary complexities.

I feel there's room for improvement to provide a better API for getting all of the hooked blocks by consolidating these two approaches into a single function somehow.

How this to work we would also need to know the current context so we can pass that data to the filter callbacks."	tomjcafferkey
	61647	Catch ArgumentCountError in apply_filters, and prompt developers to check accepted_args		General	6.6	normal	normal	Awaiting Review	enhancement	new		2024-07-13T05:29:19Z	2024-07-13T05:29:19Z	"
{{{
diff --git a/src/wp-includes/class-wp-hook.php b/src/wp-includes/class-wp-hook.php
index d95691d..f91f986 100644
--- a/src/wp-includes/class-wp-hook.php
+++ b/src/wp-includes/class-wp-hook.php
@@ -317,13 +317,17 @@ final class WP_Hook implements Iterator, ArrayAccess {
 					$args[0] = $value;
 				}
 
-				// Avoid the array_slice() if possible.
-				if ( 0 === $the_['accepted_args'] ) {
-					$value = call_user_func( $the_['function'] );
-				} elseif ( $the_['accepted_args'] >= $num_args ) {
-					$value = call_user_func_array( $the_['function'], $args );
-				} else {
-					$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
+				try {
+					// Avoid the array_slice() if possible.
+					if (0 === $the_['accepted_args']) {
+						$value = call_user_func($the_['function']);
+					} elseif ($the_['accepted_args'] >= $num_args) {
+						$value = call_user_func_array($the_['function'], $args);
+					} else {
+						$value = call_user_func_array($the_['function'], array_slice($args, 0, $the_['accepted_args']));
+					}
+				} catch (ArgumentCountError $e) {
+					throw new ArgumentCountError($e->getMessage() . "". Did you set a correct accepted_args in add_action() or add_filter()?"");
 				}
 			}
 		} while ( false !== next( $this->iterations[ $nesting_level ] ) );

}}}

I would like to propose this change. Add try-catch block around call_user_func_array in apply_filters(), so that (beginner) developers are hinted that they might forget to change accepted_args.

As a beginner WordPress developer, I encounter ArgumentCountError when I write the following code. I wasn't aware of the optional argument $accepted_args. My pull request thus gives a hint.




{{{#!php
<?php
add_action('update_option', 'option_changed');


function option_changed($option_name, $old_value, $new_value) {
	...
}
}}}




"	gqqnbig
	65374	"Clarify the ""invalid_filetype"" upload error message"		General	7.1	normal	minor	Awaiting Review	enhancement	new	has-patch	2026-05-30T13:28:16Z	2026-05-30T13:44:39Z	"The `invalid_filetype` error string in `wp_default_scripts()`
  (`src/wp-includes/script-loader.php`) currently reads:
  
    ""This file cannot be processed by the web server.""
    
  This implies a server fault when the actual cause is that
  WordPress does not accept the file's MIME type. The wording
  is also inconsistent with neighboring strings in the same
  `$uploader_l10n` array, which all explain the cause and
  suggest an action:
  
  - `zero_byte_file`: ""This file is empty. Please try another.""
  - `not_an_image`:   ""This file is not an image. Please try another.""
  
  Proposed change:
  
    ""This file type is not supported. Please try another.""
    
  This pattern-matches the surrounding strings, removes the
  misleading ""web server"" framing, and tells the user what to
  do next.
  
  See also: #61361, which addressed the analogous image-specific
  wording (`noneditable_image`) for the same reason. The
  `invalid_filetype` message was not touched in that ticket but
  suffers the same vagueness.
  
  A PR with this change is in flight on GitHub and will be linked
  once opened.
"	thorr19
	61899	Custom query args for `search_box` form in `WP_List_Table`		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-08-20T12:01:54Z	2024-08-20T12:07:07Z	"There is no way to preserve a custom query argument in the search forms built by the `WP_List_Table` class other than replacing the class that is used through the filter `wp_list_table_class_name`.

Replacing the class is effective and provides a lot of customization, when needed, but it's an overkill when we want to add a query argument that has no visible field, like the ones already supported. We'd need to create a custom class for every existing class extension of `WP_List_Table`, which would be very hard to maintain.

This proposal is for a new filter (`search_box_custom_args`) that will allow just that. Add a custom query argument as a hidden input to the form, when present."	xipasduarte
	38597	Discourage usage of legacy properties in WP_Network		General	4.6	normal	normal	Future Release	enhancement	reviewing	has-patch	2016-10-31T20:48:29Z	2024-09-17T21:54:30Z	"`@property`'s is for magic properties: https://phpdoc.org/docs/latest/references/phpdoc/tags/property.html

Since `$id` isn't magic, let's remove the `@property` documentation.

See: #37050"	johnjamesjacoby
	46102	Documentation improvement		General		normal	normal	Awaiting Review	enhancement	reopened		2019-01-25T11:08:01Z	2019-01-27T03:15:05Z	We have found grammatical mistake in comment of wp-activate.php file.	chinteshprajapati
	55662	Eliminating magic numbers		General		normal	normal	Awaiting Review	enhancement	new		2022-05-03T07:49:31Z	2022-05-03T14:43:08Z	"Magic numbers in code are unique values with unexplainable meaning. These numbers can be confusing to the reader. To learn more, see: https://en.wikipedia.org/wiki/Magic_number_(programming)

Using this example:
`$max_filesize = 5 * 1024 * 1024`;

A common way to eliminate those numbers is by using either comments or constants. Example:
`$max_filesize = 5 * 1024 * 1024; // 5 MB`
`$max_filesize = 5 * MB_IN_BYTES;`

WordPress counts at least 20 instances of using `1024` in PHP, either meaning filesize, screen, or image dimensions. Using constant definitions would instantly differentiate their meaning when browsing the code.

Another example is `fileupload_maxk`, which defaults to `1500`. If we define that size using a constant, we could easily update all related instances without having to inspect those manually: simply by updating the constant value. This cohesiveness aids in reducing regressions. "	Cybr
	64988	Enhancement: Add support for displaying child categories in Navigation “Category Link” block (dropdown support)		General	6.9.4	normal	normal	Awaiting Review	enhancement	new		2026-03-30T04:04:38Z	2026-04-26T07:03:31Z	"Currently, the Navigation block includes a “Category Link” block that allows selecting a specific category and linking to its archive page.

However, unlike the Page List block (which supports hierarchical parent–child page structures with dropdowns), the Category Link block does not provide any option to display child categories when the selected category has children.

---

### Problem
When a parent category is selected:
- Only the parent category is shown in the navigation
- Child categories are not displayed as a dropdown/submenu
- No control exists to enable hierarchical category navigation

---

### Expected Behavior
Add a control in the Category Link block settings to:
- Enable/disable displaying child categories
- Automatically render child categories as a nested submenu (dropdown)
- Respect category hierarchy similar to the Page List block

---

### Suggested Enhancements
- Add a toggle option:
  - `Display child categories`
- Optional improvements:
  - Depth control (limit levels)
  - Sorting options (name, count, etc.)

---

### Benefits
- Improves consistency with Page List block behavior
- Enhances UX for hierarchical taxonomies
- Reduces need for custom code or manual menus
- Useful for blogs, WooCommerce stores, and taxonomy-heavy sites

---

### Additional Context
This enhancement would make category navigation more flexible and align it with existing hierarchical navigation patterns in WordPress."	wpsharif
	55414	Filter error suppression for individual DB query errors		General	5.9.2	normal	normal	Future Release	enhancement	new	has-patch	2022-03-17T16:32:14Z	2024-06-28T14:38:45Z	"Sometimes it is useful to suppress certain DB errors while logging others.

For example, we have a set of standalone, core-like sites on WordPress.com where users can install arbitrary plugins and themes, and sometimes there are situations where query errors from third-party plugins flood a site's error logs. In some of those cases, the source of the error is not straightforward to address, and we would like to silence or throttle the errors so the site can continue using a given plugin without consuming its available disk space.

Targeted suppression would be possible if WordPress supported a `suppress_query_error` filter that receives:
* the current error suppression setting, defaulting to `$wpdb->suppress_errors`
* the raw error string
* the DB query associated with the error

The result of filtering would determine whether `$wpdb->print_error()` returns early or logs the error, like `$wpdb->suppress_errors` does today.

I have a patch for this and plan to submit a PR shortly after creating this ticket."	bpayton
	51463	Fire an action prior to AJAX action handling (allows diagnostics)		General		normal	normal	Future Release	enhancement	new	has-patch	2020-10-07T09:07:42Z	2021-10-19T10:43:45Z	"Currently, admin-ajax.php has no action that it will fire if there is no action hooked.

This means that you can't (without using hacks) track calls to ""unhooked"" actions. To be able to track those calls is useful for various diagnostic purposes. For example, logging bots which speculatively call a list of various actions belonging to vulnerable plugins. Or, detecting and logging coding errors.

The attached patch adds a ""pre_wp_ajax"" action call to allow plugins to monitor calls to unhooked AJAX actions."	DavidAnderson
	63015	Handle more content-disposition format on dowload_url		General		normal	normal	Awaiting Review	enhancement	new		2025-02-25T14:48:39Z	2025-02-25T15:34:22Z	"Hello,

In changeset 51939 content-disposition ""attachment; filename="" have been supported for download_url function

We could handle the content-disposition ""inline; filename="" too that instead of forcing the browser to download the image just to displaying it.

Some systems like imgProxy (imgproxy.net) are returning this kind of header when serving the same asset but with another filetype as the original one (avif instead of jpg).

Nicolas,"	Rahe
	65553	Improve the Custom Fields meta box editing flow in the post editor	joedolson*	General		normal	normal	7.3	enhancement	accepted	has-patch	2026-06-29T12:11:28Z	2026-10-15T06:51:06Z	"The Custom Fields meta box in the post editor still uses an older table-style editing flow. Adding, updating, and deleting fields works, but the interaction is difficult to scan and relies on color-flash feedback after AJAX actions.

This ticket proposes improving the existing Custom Fields meta box while preserving the existing custom field form contracts as much as possible.

The initial patch/prototype:
- Keeps the existing Custom Fields meta box and AJAX behavior.
- Preserves existing field names, IDs, nonces, and `data-wp-lists` behavior for add/update/delete actions.
- Shows visible success notices inside the Custom Fields meta box after adding, updating, or deleting a field.
- Removes the yellow/red row highlight animations used by `wpList` and replaces them with clearer notice feedback.
- Improves the add-new flow:
  - If there are no saved custom fields, the new-field form is shown.
  - If saved custom fields exist, the new-field form is collapsed behind an “Add custom field” button.
  - “Enter new” toggles the name control from the existing select to a text input.
  - “Cancel” clears/collapses the pending new-field form.
  - Attempting to save without selecting or entering a field name keeps the form open.
- Adjusts spacing and field layout to make saved and pending custom fields easier to scan.

The patch is intended as a starting point for design, accessibility, and backwards-compatibility feedback. In particular, review is requested on:
- Whether the add-new flow should be changed in this way.
- Whether the in-metabox notice is the right feedback pattern for add, update, and delete actions.
- Whether the visual layout changes are acceptable for this legacy admin UI.
- Whether the shared behavior between the classic editor and block-editor metabox area should be refactored further before commit."	poligilad
	63881	KSES: Deprecate wp_kses_stripslashes		General		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2025-08-26T17:12:25Z	2025-09-04T18:01:53Z	"[https://developer.wordpress.org/reference/functions/wp_kses_stripslashes/ wp_kses_stripslashes()] does not appear to have a purpose in modern PHP. Documentation suggest that it was required to support the `e` ''eval'' regular expression flag:

> This function changes the character sequence `\""` to just `""`. It leaves all other slashes alone. The quoting from `preg_replace(//e)` requires this.

[https://core.trac.wordpress.org/ticket/19877#comment:1 Some historical context] from @duck_ supports this (bold mine):

> wp_kses_stripslashes is a legacy function that had to be used to deal with addslashes() run when using preg_replace() and the eval modifier. The double quotes remained slashed because the backreference in the PHP string to be evaluated was in single quotes, so a custom slash removal function was used to remove slashes from in front of double quotes.
> 
> I would prefer to actually remove the call as it's no longer necessary. If you're passing slashed data to kses it should be stripped first -- which is why we do stripslashes in wp_filter_kses(). **Unfortunately removing the call would cause breakage for those passing in slashed data containing double quoted attributes as this happens to work at the moment.**

There is a potential problem mentioned that should be better understood before proceeding.

-----

[https://www.php.net/manual/en/migration70.changed-functions.php The flag was removed in PHP 7], so the `e` flag is not supported by any PHP version that WordPress supports. `wp_kses_stripslashes()` is likely obsolete.

There was work to remove the `e` flag usage 16-17 years ago:

- [10339]
- [12198]

Related tickets:

- #19877
- #56118

The function may be doing more harm than good at this point. See [https://github.com/WordPress/gutenberg/issues/6619 Gutenberg 6619] and [https://github.com/WordPress/gutenberg/issues/16508 Gutenberg 16508]."	jonsurrell
	65036	List more helpful suggestions than check username and password for database issues		General	6.9.4	normal	normal	Awaiting Review	enhancement	new		2026-04-07T13:39:23Z	2026-04-07T13:39:23Z	"During initial setup, if wordpress can't connect to the database it only suggests checking username, password and host and checking if your database is running.  I have already filed enhancement request #65034 to increase the diagnostics but this request is to add additional suggestions:
Currently you suggest:
'Are you sure you have the correct username and password?'
'Are you sure you have typed the correct hostname?'
'Are you sure the database server is running?'
I would suggest adding:
'You may also need to check for possible Firewalls'
'You may also need to check for possible security restrictions such as SELinux'

Possible a link to a dedicated external page (which can have a more detailed check list?)

"	ralatalo
	61125	Many strings or URLs lack proper escaping.	audrasjb	General		normal	minor	Awaiting Review	enhancement	reviewing	has-patch	2024-05-02T08:40:19Z	2024-10-04T18:57:31Z	"Upon reviewing various strings and URLs within the WordPress core codebase, it has been noted that many instances lack proper escaping.

This absence of escaping poses a security risk, as it can potentially lead to vulnerabilities such as cross-site scripting (XSS) attacks. Unescaped output allows malicious users to inject scripts into web pages viewed by other users.

For example, you can see it here, \wp-activate.php"	yagniksangani
	59586	Missing Features for FSE / Block Themes		General	6.4	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2023-10-10T16:09:04Z	2023-10-10T16:09:04Z	"With Classic themes there were some general options that all themes had.
Moving from Classic themes to Block Themes users have to change some settings by going to 
General > Settings instead of going to Appearance Editor.

Non tech-savvy users would benefit from having options built in core to change some generic site mods via the new user interface.
The ones i am thinking of are :
i) Site Title
ii) Tagline
iii) Site Logo
iv) Favicon
v) What to use for the Homepage
"	digamberpradhan
	64113	Missing unit tests for wp-duotone class		General	6.9	normal	minor	Awaiting Review	enhancement	new		2025-10-17T20:15:23Z	2025-10-17T20:43:32Z	"As part of Contributor Day in WCEH 2025 

WP Duotone classes missing phpunit tests"	fishtron
	60084	Modify default value for x_redirected_by parameters		General		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2023-12-15T20:06:11Z	2023-12-15T20:06:11Z	"Hello,

The function `wp_redirect()`and `wp_safe_redirect()` are accepting a 3rd parameter `$x_redirected_by` which is by default `WordPress`.

This 3rd parameter is really useful to debug redirection but only few plugins are using it. 
I only know Polylang, Yoast SEO and Redirection by John Godley which are using it. All other redirections made by a third party (theme or plugins) are signed `WordPress` which is misleading.

I think we should change the default value to something more generic like `Not Signed` and add `WordPress`to the real redirections made by the Core.

I do not really know how many redirections WordPress do but I think it would really help lots of developers."	sebastienserre
	63436	PHPCS for Class FTP files		General		normal	trivial	Awaiting Review	enhancement	assigned	dev-feedback	2025-05-12T20:09:00Z	2026-02-06T23:22:58Z	"Discussion coming from here: #63416

First things first, we need to confirm if it's time to remove PHPCS exclusions for PHPCS before moving forward in PHPCS formatting in the individual tickets (including the latest update [59846] that is actually updating PHPCS in one of the 3 FTP files).

I note this to raise in the next `dev-chat` and whatever decision, I will update here either continuing and committing, or dismissing (and maybe reverting [59846]"	SirLouen
	60112	PHPUnit test for _deprecated_argument()		General		normal	normal	Future Release	enhancement	new	has-patch	2023-12-19T17:35:13Z	2025-02-12T15:52:29Z		pbearne
	60113	PHPUnit test for _deprecated_file()		General		normal	normal	Future Release	enhancement	new	has-patch	2023-12-19T17:35:46Z	2025-02-12T15:52:41Z		pbearne
	60110	PHPUnit test for _deprecated_hook()		General		normal	normal	Future Release	enhancement	new	has-patch	2023-12-19T17:01:31Z	2026-11-05T15:39:38Z		pbearne
	60117	PHPUnit tests for _deprecated_argument()		General		normal	normal	Future Release	enhancement	new	has-patch	2023-12-19T20:47:12Z	2025-02-12T15:53:14Z		pbearne
	60115	PHPUnit tests for _deprecated_constructor()		General		normal	normal	Future Release	enhancement	new	has-patch	2023-12-19T17:36:43Z	2025-02-12T15:53:14Z		pbearne
	60116	PHPUnit tests for _deprecated_function()		General		normal	normal	7.3	enhancement	new	has-patch	2023-12-19T17:37:09Z	2026-10-15T16:33:27Z		pbearne
	61752	Plugin and theme editors should show files in alpha order		General		normal	normal	Awaiting Review	enhancement	new	needs-unit-tests	2024-07-25T14:41:56Z	2026-11-08T01:27:21Z	"[https://snipboard.io/9JSQ1U.jpg Plugin editor file order]

I've been informed this is supposedly ""Date created"" order. But in my opinion that's not very practical for navigating files.

I would prefer to see the folders in alpha order and then the files in alpha order.

"	helgatheviking
	61542	Reading Settings static front page dropdown field alignment issue		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-06-30T07:05:09Z	2024-07-02T12:39:36Z	Reading Settings static front page dropdown fields alignment issue found 	fahem
	62067	Remove Unnecessary array_flip Function in VALID_TOP_LEVEL_KEYS Filter		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-09-18T04:33:21Z	2024-09-18T04:35:02Z	"The current implementation of the `array_intersect_key` function uses an `array_flip` on the `VALID_TOP_LEVEL_KEYS` array to filter input. 

This adds unnecessary overhead. We can optimize the process by converting `VALID_TOP_LEVEL_KEYS` into an associative array and passing it directly to `array_intersect_key`, eliminating the need for `array_flip`.

Sample code: 
{{{#!php

<?php
function test(){
    $a = array(
        'blockTypes' => 0,
        'customTemplates' => 1,
        'description' => 2,
        'patterns' => 3,
        'settings' => 4,
        'slug' => 5,
        'styles' => 6,
        'templateParts' => 7,
        'title' => 8,
        'version' => 9,
    );
    return $a;
}
function flip(){
    $a = array(
		'blockTypes',
		'customTemplates',
		'description',
		'patterns',
		'settings',
		'slug',
		'styles',
		'templateParts',
		'title',
		'version',
	);
    return array_flip( $a );
}

test();
flip();
}}}


[[Image(https://i.ibb.co/3RP2qp2/src5.png)]]


File: `wp-includes/class-wp-theme-json.php`
WP_Theme_JSON::sanitize is calling more than 50 times. 

"	wpdebuglog
	63880	Remove and rounding borders and minor improve login and dashboard page		General	6.9	normal	normal	Awaiting Review	enhancement	new	has-patch	2025-08-26T17:02:24Z	2025-08-26T17:03:23Z	"**Login page**

----
Centerized
Rounded sign in button
Small prompts

**Dashboard**

----
Removed cut at the end item side menu


**Setup and install php files**

----
Removed and rounded borders
Addedd header of the steps
}}}
"	anonymized_23357741
	65610	Replace the two uses of compact() in wpdb::determine_charset() with explicit array literals.		General	7.1	low	normal	Awaiting Review	enhancement	new	has-patch	2026-07-10T16:16:45Z	2026-07-10T16:17:04Z	"Using explicit array literals:

- Makes the returned array structure immediately visible.
- Avoids the overhead of compact(), which performs variable lookup by name.
- Improves readability and static analysis.
- Aligns with modern PHP coding practices used elsewhere in WordPress core."	arshidkv12
	61141	Request new function add_sites_page(...)		General		normal	minor	Awaiting Review	enhancement	new	has-patch	2024-05-03T11:43:59Z	2024-06-08T04:15:19Z	"On a multisite in the Network Admin area there is a new top menu called 'Sites'. It would be beneficial to have a function that adds submenu items to it. All other Admin top menu's have one except for this page. A couple of examples: 
{{{
add_dashboard_page()
}}}
 and 
{{{
add_users_page()
}}}
.

If coded the function( see below). The only thing left to alter by your team is the code comments. The function should be placed somewhere in wp-admin/includes/plugin.php. Below is the function code:
{{{#!php
<?php
/**
 * Adds a submenu page to the Multisite Sites main menu.
 *
 * This function takes a capability which will be used to determine whether
 * or not a page is included in the menu.
 *
 * The function which is hooked in to handle the output of the page must check
 * that the user has the required capability as well.
 *
 * @since 6.5.x
 *
 * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
 * @param string   $menu_title The text to be used for the menu.
 * @param string   $capability The capability required for this menu to be displayed to the user.
 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
 * @param callable $callback   Optional. The function to be called to output the content for this page.
 * @param int      $position   Optional. The position in the menu order this item should appear.
 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
 */
function add_sites_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) {
	return add_submenu_page( 'sites.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position );
}
}}}

"	ignatiusjeroe
	55330	Set global_styles_svg_filters transient to return true causing symbol `1` to be appeared on the screen in a production mode		General	5.9.1	normal	trivial	Awaiting Review	enhancement	new		2022-03-07T18:14:12Z	2022-03-08T06:49:37Z	"WordPress 5.9.1
PHP 8.0.15

When I set `global_styles_svg_filters` to return true (to prevent from being set - I don't use `theme.json` but request is sending so I want to disable it) it renders `1` at the top of the website

Steps to reproduce on TwentyTwentyTwo theme:

1. Paste these lines in `functions.php`

{{{#!php
<?php
// @see https://github.com/WordPress/WordPress/blob/master/wp-includes/option.php#L131
$theme = get_stylesheet();
add_filter( ""pre_transient_global_styles_svg_filters_{$theme}"", '__return_true' );
}}}

You will see `1` at the top of any screen on site's front

If you define `WP_DEBUG` as `true` or `WP_ENVIRONMENT_TYPE` as `development` it will dissapear

It happens [here](https://github.com/WordPress/WordPress/blob/master/wp-includes/script-loader.php#L2361) - `wp_get_global_styles_svg_filters()` function will return `true` (as I manually set transient) so `$cached` [will](https://github.com/WordPress/WordPress/blob/2399966d8ce0f89e3989360929fa01edf86e15c0/wp-includes/global-styles-and-settings.php#L172) be `true` as well. Therefore it echoing as 1

It is so minor and specific but it happened to me :) So because I may set any return type for this transient my guess there is no need for extra check but for a filter. For example

{{{#!php
<?php
// script-loader.php
$svg_filters = wp_get_global_styles_svg_filters();
$filters = apply_filters( 'wp_get_global_styles_svg_filters', $svg_filters );
}}}

This way I will control svg filters output myself
"	aliakseyenkaihar
	54479	Set_blog_id performance	flixos90	General		normal	normal	Future Release	enhancement	reviewing	changes-requested	2021-11-20T10:06:43Z	2026-08-14T23:28:57Z	"On multisite many plugins switches blog (wbdb->set_blog_id) many times (few thousands).
There is a performance impact in wpdb->tables method.
Simple caching reduces overall execution time."	wladwm
	57537	Site editor theme export: remove site specific details		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2023-01-24T07:27:28Z	2023-06-14T15:11:36Z	"Currently when you use the Site Editor's theme export functionality, there are some block attributes that are specific to the site, including:

- refs id on the Navigation block
- queryId on the query block

It would be better to not include these attributes on theme export, since they do not have any use / may cause incorrect behavior if the theme is installed on a different site.

See https://github.com/WordPress/gutenberg/issues/42730 for more context."	jffng
	58438	Site not Working post Software updates		General		normal	critical	Awaiting Review	enhancement	new	reporter-feedback	2023-06-01T08:20:18Z	2023-06-01T11:30:30Z	"Hi,

Post the plugin and software updates, the site has not been working, and keep getting the below error message.
""There has been a critical error on this website""

The site link is below for your reference.
http://learnion.blackbuck.com/login-2/?redirect_to=http%3A%2F%2Flearnion.blackbuck.com%2F

Kindly Assist

Thanks

Regards,
George
+91-99166 84725"	z4065
	60430	Spell enqueueing or enqueuing consistently		General		normal	trivial	Awaiting Review	enhancement	new	dev-feedback	2024-02-03T14:44:20Z	2024-06-13T22:21:33Z	"Small Typo corrections in below files (Inline Documents)

- In wp-includes/widgets/class-wp-widget-custom-html.php Line no 58
- In wp-includes/script-loader.php line no 2430 
- In wp-includes/widgets/class-wp-widget-text.php line no 47


{{{
enqueueing
}}}
it should be

{{{
enqueuing
}}}

"	shailu25
	65526	Splitting functions.php into separate tests per functions	pbearne	General		normal	normal	Future Release	enhancement	assigned	has-patch	2026-06-23T21:26:46Z	2026-09-29T22:32:08Z	"This ticket has the last of the functions not moved to separate test classes/files
And deletes the original file

==== moved 
`mysql2date`
`current_time` 
`current_datetime`
`date_i18n`
`wp_date`
`wp_get_http_headers`

==== split
`wpTimezone` and `wpTimezoneString`

==== moved from functions.php
- `human_readable_duration`
- `wp_extract_urls`
- `path_is_absolute`
- `path_join`
- `wp_normalize_path`
- `wp_unique_filename`
- `wp_check_filetype_and_ext`
- `wp_get_image_mime`
- `wp_json_encode`
- `wp_recursive_ksort`
- `validate_file`
- `wp_generate_uuid4`
- `wp_parse_args`
- `bool_from_yn`
- `add_query_arg`
- `get_allowed_mime_types`
- `wp_get_mime_types`
- `_canonical_charset`
- `_device_can_upload`
- `wp_json_file_decode`
- `mysql_to_rfc3339`
- `wp_get_ext_types`
- `wp_ext2type`
- `wp_raise_memory_limit`
- `wp_is_uuid`
- `wp_unique_id`
- `wp_getimagesize`
- `wp_is_stream`
- `wp_is_json_media_type`
- `wp_get_default_extension_for_mime_type`

==== moved/renamed from upload.php
`_wp_upload_dir`
`wp_send_json`

==== moved from file.php
`get_file_data`

==== tickets waiting for merging

`wp_widgets_add_menu`: [https://core.trac.wordpress.org/ticket/60179 #60179].

`nocache_headers` [https://core.trac.wordpress.org/ticket/54490 #54490]
`wp_mkdir_p` [https://core.trac.wordpress.org/ticket/57081 #57081]
`wp_upload_bits` [https://core.trac.wordpress.org/ticket/65534 #65534]
`wp_maybe_load_widgets`  [https://core.trac.wordpress.org/ticket/57201 #57201]
`wp_privacy_exports_dir` [https://core.trac.wordpress.org/ticket/59710 #59710] merged
`wp_privacy_exports_url` [https://core.trac.wordpress.org/ticket/59709 #59709] merged
`_deprecated_function` [https://core.trac.wordpress.org/ticket/60116 #60116]

`status_header`[https://core.trac.wordpress.org/ticket/65650 #65650]
`get_temp_dir`[https://core.trac.wordpress.org/ticket/65651 #65651]
`wp_json_encode`[https://core.trac.wordpress.org/ticket/65652 #65652]
`wp_get_update_php_url`[https://core.trac.wordpress.org/ticket/65653 #65653]
`get_dirsize`[https://core.trac.wordpress.org/ticket/65654 #65654]
`wp_die` (and its various handlers)[https://core.trac.wordpress.org/ticket/65655 #65655]"	pbearne
	63745	Suggestion Regarding PHPDoc Usage for $GLOBALS in WordPress Core		General		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2025-07-24T12:53:38Z	2025-07-24T16:19:24Z	"Hello Team,

I hope you're doing well.

While reviewing the WordPress Core files, I noticed the usage of PHPDoc blocks for certain global variables like **""_wp_tests_development_mode""**. However, I found that other global variables such as **debug** are not consistently documented using PHPDoc.

I believe adding PHPDoc comments for these globals can improve code readability, assist with static analysis tools, and enhance overall documentation clarity. It might be worth considering standardizing this across the Core codebase.

Thank you"	viralsampat
	60114	Test for _deprecated_class()		General		normal	normal	Future Release	enhancement	new	has-patch	2023-12-19T17:36:12Z	2026-05-07T16:20:44Z		pbearne
	66615	Tests: Add unit test coverage for add_thickbox()		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T14:44:39Z	2026-11-07T14:51:08Z	"Add unit test coverage for `add_thickbox()` in `src/wp-includes/general-template.php`.

The tests cover:
- Enqueuing both the `thickbox` script and `thickbox` style assets.
- Verifying the network admin hook (`_thickbox_path_admin_subfolder`) is not attached in standard non-network admin context.
"	devmuhib
	66613	Tests: Add unit test coverage for wp_dependencies_unique_hosts()		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T14:43:03Z	2026-11-07T14:50:59Z	"Add unit test coverage for `wp_dependencies_unique_hosts()` in `src/wp-includes/general-template.php`.

The tests cover:
- Returning an empty array when no external dependencies are queued.
- Extracting external hostnames from queued scripts and styles.
- Deduplicating hostnames when multiple scripts or styles share the same host.
- Excluding hostnames matching the local site (`$_SERVER['SERVER_NAME']`).
- Ignoring relative dependency URLs without a host.
"	devmuhib
	66618	Tests: Add unit test coverage for wp_get_tooltip_helper()		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T14:49:03Z	2026-11-07T15:01:58Z	"Add unit test coverage for `wp_get_tooltip_helper()` in `src/wp-includes/general-template.php`.

The tests cover:
- Returning an empty string when content is empty or whitespace only.
- Default tooltip markup structure, including the button toggle, Dashicon, popover hint, and tooltip role.
- Generating toggletip markup with proper `popovertarget` and `aria-haspopup=""dialog""`.
- Using custom button markup processed with `WP_HTML_Tag_Processor`.
- Applying custom classes, element IDs, and Dashicon icons.

GitHub PR: https://github.com/WordPress/wordpress-develop/pull/15794"	devmuhib
	66614	Tests: Add unit test coverage for wp_heartbeat_settings()		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T14:43:38Z	2026-11-07T14:51:03Z	"Add unit test coverage for `wp_heartbeat_settings()` in `src/wp-includes/general-template.php`.

The tests cover:
- Injecting the relative `ajaxurl` for frontend requests while leaving `nonce` unset when logged out.
- Injecting both `ajaxurl` and a valid `heartbeat-nonce` when a user is logged in.
- Preserving any custom settings keys passed into the function.
"	devmuhib
	52397	The function wp_is_mobile should accept also lower case strings as user agents		General	3.4	low	normal	Awaiting Review	enhancement	new	reporter-feedback	2021-01-29T13:20:21Z	2021-01-30T11:05:29Z	"The actual version of the function wp_is_mobile is case sensitive and detects a mobile device only if the first letter of the User Agent is capital.

https://developer.wordpress.org/reference/functions/wp_is_mobile/


For example, I would replace 



{{{
strpos( $_SERVER['HTTP_USER_AGENT'], 'Mobile' ) !== false
}}}





with


{{{
strpos( strtolower( $_SERVER['HTTP_USER_AGENT'] ),'mobile' ) !== false
}}}



The same for the other User Agents."	giuse
	64028	This PR improves the developer experience for Windows users working with the WordPress development repository.   It adds a Windows helper script (`start-windows.ps1`) and updates the README with clear instructions to avoid common issues.		General	6.9	normal	normal	Awaiting Review	enhancement	new	needs-docs	2025-09-23T10:40:34Z	2025-09-23T10:58:03Z		yash12344
	54525	URL Object		General		normal	normal	Awaiting Review	enhancement	new		2021-11-27T02:58:47Z	2021-11-27T19:11:22Z	"hi

i would to suggest to wordpress to build a wordpress URL_Object who implement url distribution logic like theses.

example : this url : "" http://localhost/author/admin/ ”


{{{
{
    base_url : http://localhost/author/admin/
    protocol : http
    root : localhost
    full_path:author/admin/
    template : author.php
    /**...some stuff*/
    {child
        path:author
        path_type:users_list
        {child
            path:admin
            path_type:user_name
            {user_object:WP_user
                /*...data from WP_user*/
            }
        }
    }
}
}}}
 
another example with this url : “ http://localhost/2021/10/20/my_comment/ ""(a comment url)


{{{
{
    base_url : http://localhost/2021/10/20/my_comment/
    protocol : http
    root : localhost
    full_path:2021/10/20/my_comment/
    template : comments.php
    /**...some stuff*/
    {child
        path:2021
        path_type:date(year)
        {child
            path:10
            path_type:date(month)
            {child
                path:20
                path_type:date(day)
                {comment_object:WP_Comment
                    /*...data from WP_Comment like*/
                    comment_ID:""""
                    comment_post_ID :""""
                    comment_author :""""
                    comment_author_email :""""
                    /***...and more */
                }
            }
        }
    }
}
}}}

another example with this url : http://localhost/vehicle/car/


{{{
{
    base_url : http://localhost/vehicle/car/
    protocol : http
    root : localhost
    full_path:vehicle/car/
    template : category.php
    /**...some stuff*/
    {child
        path:vehicle
        path_type:category
        parent_category:none
        {child
            path:car
            path_type:category
            parent_category:vehicle
            {object_array
                /*...listed object for this category*/
                {object_1:car_with_4_wheels
                     /*object fields and data */
                    color:""""
                    wheels:""""
                    type:""""
                    motor:""""
                    gear_ratio:""""
                    /**...and more*/
                }
                {object_2:car_with_3_wheels}
                {object_3:car_with_5_wheels}

                /***...and more */
            }
        }
    }
}
}}}

the underlying idea is to give us the possibility to know where url part come from, to make more flexible and logic routing.

to explain a little bit my purpose , we will move to : http://localhost/vehicle/car/my_black_car_with_four_wheels 

we can get this object : 
{{{
{
    base_url : http://localhost/vehicle/car/
    protocol : http
    root : localhost
    full_path:vehicle/car/
    template : category.php
    /**...some stuff*/
    {child
        path:vehicle
        path_type:category
        parent_category:none
        {child
            path:car
            path_type:category
            parent_category:vehicle
            {object:car_object
                /*object fields and data */
                color:black
                wheels:4
                type:sportive
                motor:950ch
                gear_ratio:6
                /**...and more*/
            }
        }
    }
}
}}}

in addition, the possibilites to create wordpress routing from this object will be a good idea. i'll try to give you an example : we want to create a user car space with this url format :
http://localhost/user/vehicle/cars

{{{
/**first we will create this object*/
$my_url_object = new url_object(/${root}/${users}/${category:vehicle}/${category:cars});
}}}

this action will instantiate the url object and the routing logic at the same time, so we will get this url_object
{{{
{
    base_url : http://localhost/user/vehicle/car
    protocol : http (will depends form the server config)
    root : localhost
    template : """"
    /**...some stuff*/
    {child
        path:user
        {user_object:WP_user
            /**data from WP_user */
            data:""""
            ID:""""
            caps:""""
            roles:""""
            /**... and more */
        }
        {child
            path:vehicle
            {category_object : vehicle
                /**data from vehicle object */
            }
            {child
                path:car
                {category_object:car
                    /**data from car object */
                    /**for example:*/
                    color:""""
                    wheels:""""
                    type:""""
                    wheels_size:""""
                    motor:""""
                    gear_ratio:""""
                    /**...and more*/
                }
            }
        }

    }
    
}
}}}

the only last thing we have to do is to decide which template will be used:

{{{
$my_url_object->set_template(user_car.php)
}}}
"	grosfaignan
	51227	Update paginate_links dots to account for total pages		General	5.5.1	normal	trivial	Awaiting Review	enhancement	new	dev-feedback	2020-09-03T00:06:12Z	2026-09-10T08:25:13Z	"Currently, under certain conditions the pagination shows dots when it would make more sense to show a number.

Example:
If you have the following variables:
{{{
Mid size: 2
End size: 1
Total pages: 5
Current page: 1
}}}
Then it will visually output as follows:

{{{
Prev 1 2 3 ... 5 Next
}}}

With current changed to 5 then it will show dots at 2 instead.


In this case, it would make more sense to show the number instead of dots.

"	mikeybinns
	65598	Use array_first() to get the first array element		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-07-09T08:45:10Z	2026-07-13T05:21:40Z	Now that `array_first()` (added in PHP 8.5, polyfilled in `wp-includes/compat.php` via #63853) is available in core, a few spots can be simplified to use it directly instead of the older `array_values( ... )[0]` / `array_slice( ..., 0, 1 )[0]` constructs. This improves readability without changing behavior.	Soean
	63206	WP_Filesystem and request_filesystem_credentials		General		normal	normal	Awaiting Review	enhancement	reviewing	needs-unit-tests	2025-04-01T00:34:28Z	2026-02-06T23:22:49Z	"I want to open this ticket as a follow-up for #62718. I was trying to build some Unit Tests for this, and I was banging my head trying to figure out a test that made sense because all the edge cases, felt too obvious.

But suddenly, I thought: ""What if maybe `WP_Filesystem()` is not mutually exclusive with `request_filesystem_credentials`?""

So after doing a little research, I found out, that there are a total of 10 coincidences

1. https://github.com/WordPress/wordpress-develop/blob/3998c85e880321877abb8105a5b2a97021745fbf/src/wp-admin/update-core.php#L881
2. https://github.com/WordPress/wordpress-develop/blob/3998c85e880321877abb8105a5b2a97021745fbf/src/wp-includes/update.php#L1131
3. https://github.com/WordPress/wordpress-develop/blob/3998c85e880321877abb8105a5b2a97021745fbf/src/wp-admin/includes/theme.php#L46
4. https://github.com/WordPress/wordpress-develop/blob/3998c85e880321877abb8105a5b2a97021745fbf/src/wp-admin/includes/class-wp-upgrader.php#L244
5. https://github.com/WordPress/wordpress-develop/blob/3998c85e880321877abb8105a5b2a97021745fbf/src/wp-admin/includes/class-wp-upgrader.php#L1019
6. https://github.com/WordPress/wordpress-develop/blob/3998c85e880321877abb8105a5b2a97021745fbf/src/wp-admin/includes/class-wp-site-health.php#L1896
7. https://github.com/WordPress/wordpress-develop/blob/3998c85e880321877abb8105a5b2a97021745fbf/src/wp-admin/includes/ajax-actions.php#L4411
8. https://github.com/WordPress/wordpress-develop/blob/3998c85e880321877abb8105a5b2a97021745fbf/src/wp-admin/includes/ajax-actions.php#L4757
9. https://github.com/WordPress/wordpress-develop/blob/3998c85e880321877abb8105a5b2a97021745fbf/src/wp-admin/includes/plugin.php#L932

9 of which actually use `request_filesystem_credentials` to grab and pass the credentials.

And just one that actually grab the credentials, but doesn't pass them.
https://github.com/WordPress/wordpress-develop/blob/3998c85e880321877abb8105a5b2a97021745fbf/src/wp-admin/includes/class-wp-site-health-auto-updates.php#L340
And something says that this code is only accounting for `direct` because right after the `WP_Filesystem()` call it will return a `false` if it's not `direct`

So my question here is: Why not introducing `request_filesystem_credentials` straight on `WP_Filesystem` function, and definitely and future-proof it, removing all errors like the one in #62718?

I think it's not intuitive the fact that `WP_Filesystem` is not actually adding `request_filesystem_credentials` by default, so unless you deal with this regularly, it's easy to miss.

The problem with this is that this brings a major code refactor touching a couple of files at once. I may first write some unit tests to cover this scenario and then add a patch for this.
"	SirLouen
	60366	add call_for_blog  for easy to switch blog and restore in multisite		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-01-29T09:48:09Z	2025-06-30T10:04:45Z	"add call_for_blog  for easy to switch blog and restore in multisite

{{{
function call_for_blog($blog_id, $callback, ...$args){
	try{
		$switched	= (is_multisite() && $blog_id && $blog_id != get_current_blog_id()) ? switch_to_blog($blog_id) : false;

		return call_user_func_array($callback, $args);
	}finally{
		if($switched){
			restore_current_blog();
		}
	}
}
}}}

usage:


{{{
call_for_blog(123, 'wp_update_post', ['ID'=>$id, 'post_title'=>$title]);
}}}

closure callback:

{{{
for_blog($shop_blog_id, function($id, $title){
	$result	= some_function();

	if(is_wp_error($result)){
		return $result;
	}

	$result	= some_other_function();

	if(is_wp_error($result)){
		return $result;
	}

	return wp_update_post(['ID'=>$id, 'post_title'=>$title]);	
}, $id, $title);
}}}
"	denishua
	57768	avoid creating tcp connection every time		General		normal	normal	Awaiting Review	enhancement	new		2023-02-20T09:17:27Z	2023-03-07T19:37:28Z	"Every time when I send a php request of page , initial connect value will over 700ms  but the Waiting for server response just 500ms even though the same uri. Does it mean creating a new tcp connection every time? The request has setted header with Keep-Alive: timeout=5, max=100 and response setted Connection: Keep-Alive but seen invalid. How Can I avoid initial connection each time? 
Thank you for your time!"	sophygsf
	54861	cache_javascript_headers() is not call by core		General	5.9	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2022-01-20T00:48:20Z	2022-01-20T01:14:08Z	I can't where this function is used in core should we move it to depicted if its not being used?	pbearne
	43884	new is_front() function		General		normal	normal	Awaiting Review	enhancement	new		2018-04-27T20:24:39Z	2018-04-29T22:15:31Z	"When we need to check if we doing something in front-end, we do it like this:

{{{
if( ! is_admin() ){}
}}}

But this not convenient and not so clear because of `!`. And maybe not full, because we don't check other admin functions like: is_blog_admin(), is_network_admin(), is_user_admin().

We have so many functions in WordPress, but haven't this simple but useful function, why?

Maybe its a good idea to add **is_front()** function in **/wp-includes/load.php** file?

{{{
function is_front(){
	return ! is_admin();
}
}}}
"	Tkama
	60056	phpUnit tests for is_lighttpd_before_150		General		normal	normal	Future Release	enhancement	new	has-patch	2023-12-12T22:24:25Z	2025-02-12T15:56:26Z		pbearne
	60057	phpunit tests for _doing_it_wrong()		General		normal	normal	Future Release	enhancement	new	has-patch	2023-12-12T23:16:29Z	2026-10-31T18:44:27Z		pbearne
	60054	phpunit tests for apache_mod_loaded		General		normal	normal	Future Release	enhancement	new	has-patch	2023-12-12T21:23:40Z	2025-02-12T15:57:38Z		pbearne
	66416	register_block_type_from_metadata performs unneccesary file system operations for blocks resolved from metadata registry		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-10-29T14:23:11Z	2026-10-30T10:14:52Z	"If block metadata has been resolved via WP_Block_Metadata_Registry::get_metadata, register_block_type_from_metadata performs excessive file_exists calls, which affects block registration performance.

E.g., on Mac M4, Woo core blocks (around 170 blocks) registration in a standard wp-env-based environment drops from ±15ms to ±5ms if file_exists is skipped (which is feasible when blocks are resolved via the registry). 


"	kalessil
	59792	test for wp_auth_check_html		General		normal	normal	Future Release	enhancement	new	has-patch	2023-11-01T20:55:46Z	2026-05-07T16:20:44Z		pbearne
	59820	test for wp_auth_check_load		General		normal	normal	Future Release	enhancement	new	has-patch	2023-11-06T22:20:56Z	2026-10-31T20:01:41Z		pbearne
	59854	test for wp_find_hierarchy_loop_tortoise_hare		General		normal	normal	Future Release	enhancement	new	has-patch	2023-11-08T22:36:07Z	2026-05-07T16:20:44Z		pbearne
	59697	test for wp_get_direct_php_update_url		General		normal	normal	Future Release	enhancement	new	has-patch	2023-10-20T17:35:11Z	2026-05-07T16:20:44Z		pbearne
	54359	test for wp_get_direct_update_https_url		General		normal	normal	Future Release	enhancement	new	has-patch	2021-11-01T23:48:47Z	2026-09-24T15:27:37Z	just yet another test	pbearne
	59637	test for wp_get_update_https_url		General		normal	normal	Future Release	enhancement	new	has-patch	2023-10-16T19:30:45Z	2026-05-07T16:20:44Z		pbearne
	60177	test for wp_ob_end_flush_all		General		normal	normal	Future Release	enhancement	new	has-patch	2024-01-02T20:57:45Z	2026-05-07T16:20:44Z		pbearne
	60828	tests for wp_check_browser_version		General		normal	normal	Future Release	enhancement	new	has-patch	2024-03-22T16:30:47Z	2026-05-07T16:20:44Z		pbearne
	59623	tests for wp_get_direct_update_https_url		General		normal	normal	Future Release	enhancement	new	has-patch	2023-10-13T22:07:36Z	2026-11-03T00:27:28Z		pbearne
	55729	tests for wp_original_referer_field		General		normal	normal	Future Release	enhancement	new	has-patch	2022-05-13T23:59:48Z	2026-05-07T16:20:44Z		pbearne
	63103	Add 'orderby'=>'rand' option for get_users() function		General	6.7.2	normal	trivial	Awaiting Review	feature request	new		2025-03-14T13:22:05Z	2025-03-14T13:22:05Z	"Recently I've faced the problem when I need to get random user (in my case it's only one, but I see that it could be many). I solved it the other way, but I thought that it is very inconvenient that developers need to reinvent the wheel every time by their own instead of we just add 
{{{#!php
<?php
get_users(['orderby'=>'rand']);
}}}

possibility"	letraceursnork
	60656	Add Linktree icon to social icons options		General	6.4.3	normal	normal	Awaiting Review	feature request	new		2024-02-29T08:15:58Z	2024-02-29T08:15:58Z	Linktree, Carrd, etc are becoming more popular. I'd like to include a social icon link for these, but most espcially Linktree in my situation. 	tingc888
	51746	Add a core wrapper function to retrieve $wp->request		General		normal	normal	Awaiting Review	feature request	new	reporter-feedback	2020-11-10T11:37:28Z	2021-01-26T22:50:50Z	"Feature request: add a core wrapper function to retrieve global {{{$wp->request}}}.

Core should provide a function {{{wp_get_uri_request()}}} (or some other naming convention) to reliably get the uri request. And reduce reliance on globals/superglobals.
{{{#!php
<?php
global $wp;
$url = $wp->request;
}}}
instead use:
{{{#!php
<?php
$url = wp_get_uri_request();
}}}
"	apedog
	65427	Add filter for WP Ability Permission Error Message		General	7.0	normal	normal	Awaiting Review	feature request	new	has-patch	2026-06-05T22:12:24Z	2026-06-05T22:12:50Z	"`WP_Ability::execute()` currently replaces permission failures with a generic error message:

> Ability ""%s"" does not have necessary permission.

For example, we enforce two-factor authentication for privileged users, but when a required 2FA check blocks an ability permission callback, the error message is very general and doesn't help the user understand why. It would be nice to be able to add a filter for the error message."	rebasaurus
	62666	Add function to retrieve page ID or permalink based on template		General		normal	normal	Awaiting Review	feature request	new	has-patch	2024-12-09T02:14:30Z	2025-05-26T14:29:53Z	"This contribution implements a new function that retrieves the ID or permalink of a page based on its assigned template. The function performs a query to find pages using a specific template and returns either the ID or permalink of the first matching page.

### Details:
- The function `get_page_by_template()` accepts two parameters: `$template` (the template name) and `$field` (which can be 'ID' for the page ID or 'permalink' for the page URL).
- It uses `WP_Query` to search for pages with the specified template.
- The function returns either the page ID or permalink based on the `$field` argument.

### Benefits:
- Provides an easy way to retrieve a page by its template, improving flexibility for theme and plugin developers.
- Reduces the need for custom queries in theme files.
- Helps in dynamically linking or referencing pages based on their template."	gustavocoimbra
	62510	Add links to Learn WordPress in the wp-admin Help box and the default comment		General		normal	normal	Awaiting Review	feature request	new	has-patch	2024-11-22T05:19:59Z	2025-01-01T06:45:51Z	"Training and Meta relaunched https://learn.wordpress.org/ in August this year. Training has since been discussing how we can increase traffic to the site, especially from within the WordPress software. (See discussions [https://make.wordpress.org/training/2024/08/28/drawing-new-learners-to-the-new-learn-wordpress-org/ Drawing new learners to the new Learn.WordPress.org], which led to [https://make.wordpress.org/training/2024/10/24/brainstorm-introducing-learning-pathways-to-users-during-onboarding/ Brainstorm: Introducing Learning Pathways to users during onboarding].)

Previously, there have been ideas to add/revamp dashboard widgets that link to Learn WordPress resources. ticket:50139 ticket:57785 ticket:61585

Here, we propose two new ideas that do not rely on the use of widgets.

== 1. Add a reference to Learn in the Help box

[[Image(https://make.wordpress.org/training/files/2024/10/help-box.png)]]

Currently, ""Support Forums"" links to the general landing page https://wordpress.org/support/forums/ or its locale equivalent. We suggest adding ""Learning resources on Learn WordPress"" or similar, which links to https://learn.wordpress.org/ under that.

== 2. Add a reference to the WordPress User courses in the default comment on a new install

[[Image(https://make.wordpress.org/training/files/2024/10/default-comment.png)]]

Currently, the auto-generated comment on a new install says:

> Hi, this is a comment.
> To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
> Commenter avatars come from [https://en.gravatar.com/ Gravatar].

We would like to add something along these lines to that comment.

> If you're new to WordPress, check out these free courses by the official WordPress 
> Training Team: [https://learn.wordpress.org/learning-pathway/user/ The WordPress User Learning Pathway]

"	kaitohm
	48587	Allow customization of Admin Color Schemes for dashboard		General		normal	normal	Future Release	feature request	new		2019-11-13T01:47:15Z	2021-03-10T12:39:05Z	"This issue -- #48585 -- highlights the need for a sorely missed core accessibility feature: the ability for users to customize the preset Admin Color Schemes for the administrative dashboard.

I know there are plugins that can customize the dashboard, but I believe this feature belongs in core for these reasons:
1. It affects users' ability to access and manage the basic functions of any WordPress installation.
2. The necessary styles already exist in core and there is already provision to save specific color scheme settings in the user profile. This functionality would be a refinement of pieces already baked in.
3. The accessibility shortcomings of the default set of Admin Color Schemes are already a known issue.
4. For intermediate users, being able to make certain customization choices to an existing scheme or palette is typically the easiest way to achieve a desired result. (More complex functionality, like altering the button layouts, would probably be best left to plugins aimed at more advanced users.)

As a user, I want to emphasize that color selection for accessibility is very much an individual choice. There are, for example, W3C standards-validated high-contrast color schemes that are very hard on my eyes. Regardless of whatever other changes may be made to the default Admin Color Schemes for accessibility, it would be beneficial to allow users to further tailor those schemes to suit their own needs. Since the Admin Color Scheme choices are saved in the individual user profile and the color choices are not publicly facing, there's no obvious reason why WordPress users shouldn't have that option.

Ideally, such a customization option would include some kind of color picker interface. In a pinch, providing a hyperlink to an external color chooser with clear instructions to copy and paste the hexadecimal code for the desired color into the appropriate spot would probably be adequate and would still be a significant improvement.

I'm not a developer, so the engineering of such a feature is beyond my scope, but I figured it was worth asking."	Ate Up With Motor
	62544	Consolidate repetitive CSS rules in list-tables.css		General		normal	trivial	Awaiting Review	feature request	new	has-patch	2024-11-23T05:55:01Z	2024-12-10T04:16:08Z	While trying to understand WordPress with the hopes to become a contributor, I noticed in the list-tables.css places where styles could be unified using a shared class, then account for differences with modifiers or variables. In doing so, potentially reducing the file size of the style sheet. I am wondering if this would be considered before I attempt to pursue it? Thanks for your time! 	kj1999
	43334	Include Post/Page status when restoring the previous revision		General		normal	normal	Awaiting Review	feature request	new		2018-02-16T01:07:32Z	2018-02-16T20:05:03Z	"I noticed page/post status is not included in the restore previous version. Would be a great addition to the next build.

Thanks"	necromuncher
	50807	Introduce a function for deprecated options		General		normal	normal	Future Release	feature request	new	has-patch	2020-07-29T13:43:29Z	2020-10-15T17:06:36Z	While tackling #50413, two option keys were renamed. In the absence of a `_deprecated_function()` equivalent for options, a temporary backwards compatibility fix was added in [48575] with the goal of exploring a `_deprecate_option()` function in 5.6.	desrosj
	54218	Introduce a way to communicate incoming UI updates to users		General		normal	normal	Awaiting Review	feature request	new	dev-feedback	2021-10-04T17:28:04Z	2021-11-04T19:43:54Z	"We are introducing more and more updates to WordPress. While developers have various channels to get updated on incoming changes, the users find themselves surprised by a new feature. After an update, which now is silent and just happens automatically, a user can find their workflow completely disrupted out of the blue.

What if we had a system where we introduced the news of incoming UI updates to users? We would communicate only on thise updates that are definitely going to land in the upcoming release.

An idea is adding a dashboard widget, so the message can be coming via some API on wordpress.org website, and link the message to some page where we explain the changes, ways to opt out, how to test today and so on.

Of course for strictly controlled environments this could be filtered out and disabled.

This is a light approach. There is a more complex route as well, where we try to introduce UI updates in dot versions, silently launching them and inviting users to ""switch"" to the new feature and try it out before it becomes the new default. This is a rather common thing in software as a servuce products, but less seen in distributed as a package OSS software.

What do you all think about this?"	andraganescu
	62006	License adaptable text (e.g., suggested Privacy Policy) under liberal license		General		normal	normal	Awaiting Review	feature request	new		2024-09-07T16:52:10Z	2024-09-07T16:52:10Z	"Some parts of WordPress are meant to be adapted by user (e.g., Privacy Policy).
The suggested Privacy Policy is hard-coded in a PHP class (https://developer.wordpress.org/reference/classes/wp_privacy_policy_content/get_default_content/). 

Because of this, the suggested text is licensed under GNU GPL.

I recommend changing this to allow people making their own content from this and not to be obligated by GNU GPL terms."	maniues
	56916	Look to the current request to get the URL settings.		General		normal	normal	Awaiting Review	feature request	new		2022-10-26T18:44:11Z	2022-10-26T18:44:11Z	"I recently raised a bug stating that it was unclear what the two URL settings were for, suggesting the text be clarified. On reflection, that wasn't really what I wanted. What I really want is for those settings to be unnecessary.

When the PHP is invoked, it knows what the current request URL is.

If the request is ""https://example.com/Rutabaga/TheBestVegetable"", then the WordPress URL is ""https://example.com/Rutabaga/"" and the permalinks and links to comment POST actions can be based on that.

If the next day I wire-in a different domain into the same folder of PHP files, then suddenly this new URL is the WordPress URL and all the permalinks are based on that instead.

This would have an impact on Multisite. Rather than selecting sub-folders or sub-domains, you'd instead configure a list of URL prefixes for each site. (For example, ""a.example"" and ""www.a.example"" goes to site A. ""example.com/b"" goes to site B.) "	billpg
	63415	Utilize a feature request management platform		General		normal	normal	Awaiting Review	feature request	new		2025-05-08T12:16:07Z	2025-05-08T12:16:07Z	"I'm not sure this is the right place to suggest this — and that's partly why I’m suggesting it.

I believe the WordPress team could benefit from using a feature request management platform (like Canny) to help prioritize tasks and stay better connected with the community.

It often feels like things fall through the cracks and never get picked up. Overall, prioritization seems suboptimal.

For example, adding block support to term descriptions or stabilizing the Table of Contents block may be more important to many in the community than some of the current priorities.

A platform like this would also make it easier for less technically inclined users to have their voices heard."	asafm7
	59148	WordPress CDN/Mirror plugins/themes...		General		normal	normal	Awaiting Review	feature request	new		2023-08-19T04:16:53Z	2023-08-19T04:16:53Z	"Hello.
Does the wordpress theme and plugin repository have a distributed CDN/Mirrors system?
We are a cloud hosting service provider in Vietnam.
Our customers 90% use wordpress. And when connecting to wordpress to download, update, and get plugin/theme information, the connection is often lost.
Because our country VN has a connection to the international or interrupted.
Don't know if WordPress.org has distributed servers to download data?"	tranbinhcse
	62300	WordPress functionality usage outside wordpress itself		General		normal	critical	Awaiting Review	feature request	new		2024-10-25T05:43:13Z	2024-10-25T05:43:13Z	"Former I think in older versions or templates, I use to develope like codeigniter application and import wordpress funcitonalities eg header, widgets etc. Specifially header using 

<?php   @require '../wp-load.php'; ?> and <?php  get_header(); ?>

Hoever in wordpress 6.7 with header blocks, it does not work. Is there a way it can be incorporated? So that all I do in the header blocks I can pikc that way"	qqqjus
	59605	activate, deactivate items in menue		General		normal	normal	Awaiting Review	feature request	new		2023-10-12T21:16:25Z	2023-10-12T21:16:25Z	It will be nice for an feature, to activate/deactivate the items in the menue.	joskis
	44159	feature request: otption for removing save my name in comments		General	4.9.6	normal	normal	Awaiting Review	feature request	new		2018-05-20T04:14:29Z	2018-05-25T12:19:17Z	"Hi,

As I see in wordpress 4.9.6, a new option has been added under comments fields that says: sava my name, email and etc…
Thant very nice. thank you so much

But I think it would be better if there was an option in wordpress settings to let website owners choose whether to select it or not to show on frontend.

Thank you very much"	longman2020
	59606	move posts per hand in archive		General		normal	normal	Awaiting Review	feature request	new	reporter-feedback	2023-10-12T21:21:10Z	2023-11-28T14:22:41Z	It will be nice in the future, to move posts per hand in an archive without php code or an plugin.	joskis
	54343	set custom name for metadata value in custom-fileds metabox select box		General	5.8.1	normal	normal	Awaiting Review	feature request	new		2021-10-29T18:44:51Z	2021-10-29T18:44:51Z	"I use postmeta_form_keys filter to add some extra custom metadata to custom-fileds metabox.
but i want to set name for metadata.
Beacuase i use persian language, it isnt good to set persian letter as metadata.
its better i can set a name and value for each metadata.
for example in postmeta_form_keys callback:

{{{
function filter_function_name_1552( $keys, $post ){
    if($post->post_type == 'car') {
        $keys['قیمت'] = 'regular_price';
    }
	return $keys;
}
}}}
that 'قیمت' is custom name to display in meta select option text and regular_price is meta key (option value to save and access)

i dont know this restrictions and how to handle it. but its my idea

in wp-admin/template.php line ~693
change $keys to Associative arrays (import every value as key too) to support submitted metadatas

{{{
$keys = $wpdb->get_col(
	$wpdb->prepare(
	""SELECT DISTINCT meta_key
	FROM $wpdb->postmeta
	WHERE meta_key NOT BETWEEN '_' AND '_z'
	HAVING meta_key NOT LIKE %s
	ORDER BY meta_key
	LIMIT %d"",
	$wpdb->esc_like( '_' ) . '%',
	$limit
	)
	);
		
	foreach($keys as $index=>$key){
	    unset($keys[$index]);
	    $keys[$key] = $key;
	}
}}}

and in same file line ~734
add $index and change $key with $index in foreach


{{{
foreach ( $keys as $index => $key ) {
	if ( is_protected_meta( $key, 'post' ) || ! current_user_can( 'add_post_meta', $post->ID, $key ) ) {
	continue;
	}
	echo ""\n<option value='"" . esc_attr( $key ) . ""'>"" . esc_html( $index ) . '</option>';
}
}}}


also i know should be change codes when get submitted metadata and i dont any idea for it.
tnx a lot"	myousefi08
	38618	wp_description() and description-tag		General		normal	normal	Awaiting Review	feature request	new	dev-feedback	2016-11-02T10:00:21Z	2019-04-05T11:03:42Z	"The `wp_title()` function is used by the `title-tag` theme feature to output specific page titles.

Ref https://developer.wordpress.org/reference/functions/wp_title/

What are your thoughts on having something like this for the meta description?"	henry.wright
	53451	Chrome 92 userAgent notice	adamsilverstein	General		normal	minor	Future Release	task (blessed)	assigned		2021-06-18T17:12:13Z	2022-05-02T08:32:17Z	"Starting Chrome 92, Chrome dev tools will start warning about the usage of navigator.userAgent:

https://blog.chromium.org/2021/05/update-on-user-agent-string-reduction.html

Although it is colored blue and not red and hence not an error message, it's better to not see it. 

Many scripts user navigator.userAgent, especially wp-emoji.js which loads on all sites. 

A way to continue using it is to see if navigator.userAgentData is true and prevent new Chrome from executing navigator.userAgent. "	superpoincare
	61365	Editor: Introduce XML Tag Processor and XML Processor		HTML API		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-06-04T09:46:25Z	2024-10-31T12:35:58Z	"This proposes an XML Tag Processor and XML Processor to complement the [https://core.trac.wordpress.org/ticket/57575 HTML Tag processor] and the [https://core.trac.wordpress.org/ticket/58517 HTML Processor].

The explorations have started in https://github.com/WordPress/wordpress-develop/pull/6713.

The XML API implements a subset of the [https://www.w3.org/TR/xml/ XML 1.0 specification] and supports documents with the following characteristics:

* XML 1.0
* Well-formed
* UTF-8 encoded
* Not standalone (so can use external entities)
* No DTD, DOCTYPE, ATTLIST, ENTITY, or conditional sections

The API and ideas closely follow the HTML API implementation. The parser is streaming in nature, has a minimal memory footprint, and leaves unmodified markup as it was originally found.

This description is mostly a placeholder for now to reference in GitHub and source code. It will be fleshed out more in the future."	zieladam
	59291	HTML API: Expose raw tag markup to support existing filters		HTML API	6.4	normal	normal	Awaiting Review	enhancement	new	has-patch	2023-09-05T21:26:35Z	2023-09-19T00:50:37Z	"Many existing filters in Core (e.g. `wp_targeted_link_rel`) pass segments of the raw HTML markup for matched tags where code implementing those hooks perform futher analyis on those segments. The HTML API attempts to hide the raw inner markup as much as possible, making it hard to provide full backwards compatability with these existing filters.

In this patch a new function is added which extracts the raw markup to maintain those existing behaviors. It requires a disclaimer to operate to try and encourage folks to use the structural and semantic methods provided by the HTML API.

Where possible, existing code and filters should be updated so that they no longer depend on the raw HTML."	dmsnell
	48124	Cant disable SSL verification when using Requests::request_multiple		HTTP API	5.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-09-24T12:02:11Z	2019-10-15T18:52:03Z	"When using the Requests::request_multiple method, it is not possible to disable SSL verification using verify or verifyname.

setup_handle in wp-includes/Requests/Transport/cURL.php configures CURL options but does not configure any options for verify or verifyname.

"	Josh Stopper
	53107	HTTPS Detect & Migrate feature breaking existing HTTPS		HTTP API	5.7.1	normal	blocker	Awaiting Review	defect (bug)	new		2021-04-28T21:04:12Z	2025-08-26T09:41:55Z	"I have been working on an issue for 2 weeks, since my website auto-updated to WordPress 5.7.

Prior to the 5.7 update, my site was already utilizing https using the Really Simple SSL plugin to accomplish HTTPS. After the update, my site has been failing WooCommerce Stripe orders.

Using the Chrome browser inspect>console, I could see internet errors on the cart and checkout pages. That led me to believe there was an issue with SSL, so I started digging in. Upon removal of the Really Simple SSL plugin, my site started functioning again…for 24 hours, then the failed orders return with the same “problem connecting to Stripe API endpoint”.

Looking at support forums for the Really Simple SSL plugin and support forums for the Stripe plugin, I am seeing a common instance of HTTPS/SSL connection issues since the WP 5.7 update with the HTTPS Detect and Migrate feature.

https://wordpress.org/support/plugin/woocommerce-gateway-stripe/

https://wordpress.org/support/plugin/really-simple-ssl/

I have worked with my host for the past 2 weeks, no issue with server configuration. 

*Site has been completely rebuilt since original issue, everything up to date, and running on PHP 7.4. 

Disabling all plugins does not resolve issue.

Other plugin that was installed was the Redirection plugin. It existed and functioned great along side of Really Simply SSL prior to WordPress 5.7 update. 

When issue occurs, besides customers experiencing a failed order, I receive notification inside of wp-admin stating the following:

> Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /home/mydirectory/public_html/mydomain.com/wp-includes/update.php on line 614

WooCommerce logs show this:
{{{
2021-04-17T18:04:41+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
sources/src_1IhIVWLaN8oj4ayJigp45Mf3
====End Log====


2021-04-17T18:04:41+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
customers request: Array
(
    [email] => joycenillen@yahoo.com
    [description] => Name: Joyce Nillen, Guest
    [name] => Joyce Nillen
    [metadata] => Array
        (
        )

)

====End Log====


2021-04-17T18:04:42+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Info: Begin processing payment for order 9405 for the amount of 25.96
====End Log====


2021-04-17T18:04:42+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
payment_intents request: Array
(
    [source] => src_1IhIVWLaN8oj4ayJigp45Mf3
    [amount] => 2596
    [currency] => usd
    [description] => Light My Safe - Order 22772
    [metadata] => Array
        (
            [customer_name] => Joyce Nillen
            [customer_email] => joycenillen@yahoo.com
            [order_id] => 22772
            [site_url] => https://www.lightmysafe.com
        )

    [capture_method] => automatic
    [payment_method_types] => Array
        (
            [0] => card
        )

    [customer] => cus_JJwO71o01oVKCe
    [statement_descriptor] => LIGHT MY SAFE, LLC
    [shipping] => Array
        (
            [name] => Joyce Nillen
            [address] => Array
                (
                    [line1] => 31011 Still Oaks Ln
                    [line2] => 
                    [city] => Spring
                    [country] => US
                    [postal_code] => 77386
                    [state] => TX
                )

        )

)

====End Log====


2021-04-17T18:05:53+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Error Response: WP_Error Object
(
    [errors] => Array
        (
            [http_request_failed] => Array
                (
                    [0] => cURL error 28: Operation timed out after 70000 milliseconds with 0 bytes received
                )

        )

    [error_data] => Array
        (
        )

    [additional_data:protected] => Array
        (
        )

)


Failed request: Array
(
    [api] => payment_intents
    [request] => Array
        (
            [source] => src_1IhIVWLaN8oj4ayJigp45Mf3
            [amount] => 2596
            [currency] => usd
            [description] => Light My Safe - Order 22772
            [metadata] => Array
                (
                    [customer_name] => Joyce Nillen
                    [customer_email] => joycenillen@yahoo.com
                    [order_id] => 22772
                    [site_url] => https://www.lightmysafe.com
                )

            [capture_method] => automatic
            [payment_method_types] => Array
                (
                    [0] => card
                )

            [customer] => cus_JJwO71o01oVKCe
            [statement_descriptor] => LIGHT MY SAFE, LLC
            [shipping] => Array
                (
                    [name] => Joyce Nillen
                    [address] => Array
                        (
                            [line1] => 31011 Still Oaks Ln
                            [line2] => 
                            [city] => Spring
                            [country] => US
                            [postal_code] => 77386
                            [state] => TX
                        )

                )

        )

    [idempotency_key] => 
)

====End Log====


2021-04-17T18:05:53+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Error: WP_Error Object
(
    [errors] => Array
        (
            [http_request_failed] => Array
                (
                    [0] => cURL error 28: Operation timed out after 70000 milliseconds with 0 bytes received
                )

        )

    [error_data] => Array
        (
        )

    [additional_data:protected] => Array
        (
        )

)

====End Log====


2021-04-17T21:55:16+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Error: Unable to verify domain - cURL error 35: SSL connect error
====End Log====


2021-04-17T21:55:43+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Error: Unable to verify domain - cURL error 35: SSL connect error
====End Log====



2021-04-25T01:37:27+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
sources/src_1IjwuWLaN8oj4ayJqztQW0Eq
====End Log====


2021-04-25T01:37:28+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
customers request: Array
(
    [email] => lloydjm87735@gmail.com
    [description] => Name: Joshua Lloyd, Guest
    [name] => Joshua Lloyd
    [metadata] => Array
        (
        )

)

====End Log====


2021-04-25T01:37:29+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Info: Begin processing payment for order 9861 for the amount of 67.41
====End Log====


2021-04-25T01:37:29+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
payment_intents request: Array
(
    [source] => src_1IjwuWLaN8oj4ayJqztQW0Eq
    [amount] => 6741
    [currency] => usd
    [description] => Light My Safe - Order 22783
    [metadata] => Array
        (
            [customer_name] => Joshua Lloyd
            [customer_email] => lloydjm87735@gmail.com
            [order_id] => 22783
            [site_url] => https://www.lightmysafe.com
        )

    [capture_method] => automatic
    [payment_method_types] => Array
        (
            [0] => card
        )

    [customer] => cus_JMgHueqPvXNYj4
    [statement_descriptor] => LIGHT MY SAFE, LLC
    [shipping] => Array
        (
            [name] => Joshua Lloyd
            [address] => Array
                (
                    [line1] => 735 West Chapel Drive
                    [line2] => 
                    [city] => Bumpass
                    [country] => US
                    [postal_code] => 23024
                    [state] => VA
                )

        )

)

====End Log====


2021-04-25T01:37:31+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Stripe PaymentIntent pi_1IjwudLaN8oj4ayJ2czGCrrS initiated for order 9861
====End Log====


2021-04-25T01:37:31+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
payment_intents/pi_1IjwudLaN8oj4ayJ2czGCrrS/confirm request: Array
(
    [source] => src_1IjwuWLaN8oj4ayJqztQW0Eq
)

====End Log====


2021-04-25T01:37:34+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Stripe PaymentIntent pi_1IjwudLaN8oj4ayJ2czGCrrS succeeded for order 9861
====End Log====


2021-04-25T01:37:34+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Processing response: stdClass Object
(
    [id] => ch_1IjwueLaN8oj4ayJhKytz6OP
    [object] => charge
    [amount] => 6741
    [amount_captured] => 6741
    [amount_refunded] => 0
    [application] => 
    [application_fee] => 
    [application_fee_amount] => 
    [balance_transaction] => txn_1IjwufLaN8oj4ayJ6M1CLoJO
    [billing_details] => stdClass Object
        (
            [address] => stdClass Object
                (
                    [city] => Bumpass
                    [country] => US
                    [line1] => 735 West Chapel Drive
                    [line2] => 
                    [postal_code] => 23024
                    [state] => VA
                )

            [email] => lloydjm87735@gmail.com
            [name] => Joshua Lloyd
            [phone] => 8043665608
        )

    [calculated_statement_descriptor] => LIGHT MY SAFE, LLC
    [captured] => 1
    [created] => 1619314652
    [currency] => usd
    [customer] => cus_JMgHueqPvXNYj4
    [description] => Light My Safe - Order 22783
    [destination] => 
    [dispute] => 
    [disputed] => 
    [failure_code] => 
    [failure_message] => 
    [fraud_details] => stdClass Object
        (
        )

    [invoice] => 
    [livemode] => 1
    [metadata] => stdClass Object
        (
            [customer_name] => Joshua Lloyd
            [customer_email] => lloydjm87735@gmail.com
            [order_id] => 22783
            [site_url] => https://www.lightmysafe.com
        )

    [on_behalf_of] => 
    [order] => 
    [outcome] => stdClass Object
        (
            [network_status] => approved_by_network
            [reason] => 
            [risk_level] => normal
            [seller_message] => Payment complete.
            [type] => authorized
        )

    [paid] => 1
    [payment_intent] => pi_1IjwudLaN8oj4ayJ2czGCrrS
    [payment_method] => src_1IjwuWLaN8oj4ayJqztQW0Eq
    [payment_method_details] => stdClass Object
        (
            [card] => stdClass Object
                (
                    [brand] => visa
                    [checks] => stdClass Object
                        (
                            [address_line1_check] => pass
                            [address_postal_code_check] => pass
                            [cvc_check] => pass
                        )

                    [country] => US
                    [exp_month] => 10
                    [exp_year] => 2023
                    [fingerprint] => uX3MQuWxGSmWp2Me
                    [funding] => debit
                    [installments] => 
                    [last4] => 9226
                    [network] => visa
                    [three_d_secure] => 
                    [wallet] => 
                )

            [type] => card
        )

    [receipt_email] => 
    [receipt_number] => 
    [receipt_url] => https://pay.stripe.com/receipts/acct_156BO7LaN8oj4ayJ/ch_1IjwueLaN8oj4ayJhKytz6OP/rcpt_JMgHVsrBo3qlMMFbdJpkjyjP6bw531O
    [refunded] => 
    [refunds] => stdClass Object
        (
            [object] => list
            [data] => Array
                (
                )

            [has_more] => 
            [total_count] => 0
            [url] => /v1/charges/ch_1IjwueLaN8oj4ayJhKytz6OP/refunds
        )

    [review] => 
    [shipping] => stdClass Object
        (
            [address] => stdClass Object
                (
                    [city] => Bumpass
                    [country] => US
                    [line1] => 735 West Chapel Drive
                    [line2] => 
                    [postal_code] => 23024
                    [state] => VA
                )

            [carrier] => 
            [name] => Joshua Lloyd
            [phone] => 
            [tracking_number] => 
        )

    [source] => stdClass Object
        (
            [id] => src_1IjwuWLaN8oj4ayJqztQW0Eq
            [object] => source
            [amount] => 
            [card] => stdClass Object
                (
                    [exp_month] => 10
                    [exp_year] => 2023
                    [last4] => 9226
                    [country] => US
                    [brand] => Visa
                    [address_line1_check] => pass
                    [address_zip_check] => pass
                    [cvc_check] => pass
                    [funding] => debit
                    [fingerprint] => uX3MQuWxGSmWp2Me
                    [three_d_secure] => optional
                    [name] => 
                    [tokenization_method] => 
                    [dynamic_last4] => 
                )

            [client_secret] => src_client_secret_mKUo0uaOE2CjiExXjpNwBzdh
            [created] => 1619314653
            [currency] => 
            [flow] => none
            [livemode] => 1
            [metadata] => stdClass Object
                (
                )

            [owner] => stdClass Object
                (
                    [address] => stdClass Object
                        (
                            [city] => Bumpass
                            [country] => US
                            [line1] => 735 West Chapel Drive
                            [line2] => 
                            [postal_code] => 23024
                            [state] => VA
                        )

                    [email] => lloydjm87735@gmail.com
                    [name] => Joshua Lloyd
                    [phone] => 8043665608
                    [verified_address] => 
                    [verified_email] => 
                    [verified_name] => 
                    [verified_phone] => 
                )

            [statement_descriptor] => 
            [status] => consumed
            [type] => card
            [usage] => reusable
        )

    [source_transfer] => 
    [statement_descriptor] => LIGHT MY SAFE, LLC
    [statement_descriptor_suffix] => 
    [status] => succeeded
    [transfer_data] => 
    [transfer_group] => 
)

====End Log====


2021-04-25T01:37:34+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
balance/history/txn_1IjwufLaN8oj4ayJ6M1CLoJO
====End Log====


2021-04-25T04:40:09+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
sources/src_1IjzlJLaN8oj4ayJdx2eFhR7
====End Log====


2021-04-25T04:40:11+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
customers request: Array
(
    [email] => ralph@rlsanford.ca
    [description] => Name: Ralph Sanford, Guest
    [name] => Ralph Sanford
    [metadata] => Array
        (
        )

)

====End Log====


2021-04-25T04:40:12+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Info: Begin processing payment for order 9862 for the amount of 101.18
====End Log====


2021-04-25T04:40:12+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
payment_intents request: Array
(
    [source] => src_1IjzlJLaN8oj4ayJdx2eFhR7
    [amount] => 10118
    [currency] => usd
    [description] => Light My Safe - Order 22784
    [metadata] => Array
        (
            [customer_name] => Ralph Sanford
            [customer_email] => ralph@rlsanford.ca
            [order_id] => 22784
            [site_url] => https://www.lightmysafe.com
        )

    [capture_method] => automatic
    [payment_method_types] => Array
        (
            [0] => card
        )

    [customer] => cus_JMjDGV5zOVuq1R
    [statement_descriptor] => LIGHT MY SAFE, LLC
    [shipping] => Array
        (
            [name] => Ralph Sanford
            [address] => Array
                (
                    [line1] => 612 68 Avenue NW
                    [line2] => 
                    [city] => Calgary
                    [country] => CA
                    [postal_code] => T2K 0N1
                    [state] => AB
                )

        )

)

====End Log====


2021-04-25T04:40:13+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Stripe PaymentIntent pi_1IjzlRLaN8oj4ayJ4WkvrtSG initiated for order 9862
====End Log====


2021-04-25T04:40:13+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
payment_intents/pi_1IjzlRLaN8oj4ayJ4WkvrtSG/confirm request: Array
(
    [source] => src_1IjzlJLaN8oj4ayJdx2eFhR7
)

====End Log====


2021-04-25T04:40:15+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Stripe PaymentIntent pi_1IjzlRLaN8oj4ayJ4WkvrtSG succeeded for order 9862
====End Log====


2021-04-25T04:40:15+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Processing response: stdClass Object
(
    [id] => ch_1IjzlSLaN8oj4ayJa2iVzgKW
    [object] => charge
    [amount] => 10118
    [amount_captured] => 10118
    [amount_refunded] => 0
    [application] => 
    [application_fee] => 
    [application_fee_amount] => 
    [balance_transaction] => txn_1IjzlTLaN8oj4ayJvRWNsgml
    [billing_details] => stdClass Object
        (
            [address] => stdClass Object
                (
                    [city] => Calgary
                    [country] => CA
                    [line1] => 612 68 Avenue NW
                    [line2] => 
                    [postal_code] => T2K 0N1
                    [state] => AB
                )

            [email] => ralph@rlsanford.ca
            [name] => Ralph Sanford
            [phone] => 4036609969
        )

    [calculated_statement_descriptor] => LIGHT MY SAFE, LLC
    [captured] => 1
    [created] => 1619325614
    [currency] => usd
    [customer] => cus_JMjDGV5zOVuq1R
    [description] => Light My Safe - Order 22784
    [destination] => 
    [dispute] => 
    [disputed] => 
    [failure_code] => 
    [failure_message] => 
    [fraud_details] => stdClass Object
        (
        )

    [invoice] => 
    [livemode] => 1
    [metadata] => stdClass Object
        (
            [customer_name] => Ralph Sanford
            [customer_email] => ralph@rlsanford.ca
            [order_id] => 22784
            [site_url] => https://www.lightmysafe.com
        )

    [on_behalf_of] => 
    [order] => 
    [outcome] => stdClass Object
        (
            [network_status] => approved_by_network
            [reason] => 
            [risk_level] => normal
            [seller_message] => Payment complete.
            [type] => authorized
        )

    [paid] => 1
    [payment_intent] => pi_1IjzlRLaN8oj4ayJ4WkvrtSG
    [payment_method] => src_1IjzlJLaN8oj4ayJdx2eFhR7
    [payment_method_details] => stdClass Object
        (
            [card] => stdClass Object
                (
                    [brand] => visa
                    [checks] => stdClass Object
                        (
                            [address_line1_check] => pass
                            [address_postal_code_check] => pass
                            [cvc_check] => pass
                        )

                    [country] => CA
                    [exp_month] => 12
                    [exp_year] => 2023
                    [fingerprint] => tyNgZW4ajYdD9uFa
                    [funding] => credit
                    [installments] => 
                    [last4] => 5113
                    [network] => visa
                    [three_d_secure] => 
                    [wallet] => 
                )

            [type] => card
        )

    [receipt_email] => 
    [receipt_number] => 
    [receipt_url] => https://pay.stripe.com/receipts/acct_156BO7LaN8oj4ayJ/ch_1IjzlSLaN8oj4ayJa2iVzgKW/rcpt_JMjDjWskkLxJwdvsW2YoodB8q1Czb6R
    [refunded] => 
    [refunds] => stdClass Object
        (
            [object] => list
            [data] => Array
                (
                )

            [has_more] => 
            [total_count] => 0
            [url] => /v1/charges/ch_1IjzlSLaN8oj4ayJa2iVzgKW/refunds
        )

    [review] => 
    [shipping] => stdClass Object
        (
            [address] => stdClass Object
                (
                    [city] => Calgary
                    [country] => CA
                    [line1] => 612 68 Avenue NW
                    [line2] => 
                    [postal_code] => T2K 0N1
                    [state] => AB
                )

            [carrier] => 
            [name] => Ralph Sanford
            [phone] => 
            [tracking_number] => 
        )

    [source] => stdClass Object
        (
            [id] => src_1IjzlJLaN8oj4ayJdx2eFhR7
            [object] => source
            [amount] => 
            [card] => stdClass Object
                (
                    [exp_month] => 12
                    [exp_year] => 2023
                    [last4] => 5113
                    [country] => CA
                    [brand] => Visa
                    [address_line1_check] => pass
                    [address_zip_check] => pass
                    [cvc_check] => pass
                    [funding] => credit
                    [fingerprint] => tyNgZW4ajYdD9uFa
                    [three_d_secure] => optional
                    [name] => 
                    [tokenization_method] => 
                    [dynamic_last4] => 
                )

            [client_secret] => src_client_secret_UisPsYhUseJAbcX9at145AQK
            [created] => 1619325615
            [currency] => 
            [flow] => none
            [livemode] => 1
            [metadata] => stdClass Object
                (
                )

            [owner] => stdClass Object
                (
                    [address] => stdClass Object
                        (
                            [city] => Calgary
                            [country] => CA
                            [line1] => 612 68 Avenue NW
                            [line2] => 
                            [postal_code] => T2K 0N1
                            [state] => AB
                        )

                    [email] => ralph@rlsanford.ca
                    [name] => Ralph Sanford
                    [phone] => 4036609969
                    [verified_address] => 
                    [verified_email] => 
                    [verified_name] => 
                    [verified_phone] => 
                )

            [statement_descriptor] => 
            [status] => consumed
            [type] => card
            [usage] => reusable
        )

    [source_transfer] => 
    [statement_descriptor] => LIGHT MY SAFE, LLC
    [statement_descriptor_suffix] => 
    [status] => succeeded
    [transfer_data] => 
    [transfer_group] => 
)

====End Log====


2021-04-25T04:40:15+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
balance/history/txn_1IjzlTLaN8oj4ayJvRWNsgml
====End Log====


2021-04-25T12:47:50+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Your domain has been verified with Apple Pay!
====End Log====


2021-04-25T13:01:45+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Your domain has been verified with Apple Pay!
====End Log====


2021-04-25T14:46:55+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
sources/src_1Ik9EXLaN8oj4ayJLpQu124U
====End Log====


2021-04-25T14:46:56+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
customers request: Array
(
    [email] => yjcrawler1@me.com
    [description] => Name: Ben Smith, Guest
    [name] => Ben Smith
    [metadata] => Array
        (
        )

)

====End Log====


2021-04-25T14:46:57+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Info: Begin processing payment for order 9863 for the amount of 66.71
====End Log====


2021-04-25T14:46:57+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
payment_intents request: Array
(
    [source] => src_1Ik9EXLaN8oj4ayJLpQu124U
    [amount] => 6671
    [currency] => usd
    [description] => Light My Safe - Order 22785
    [metadata] => Array
        (
            [customer_name] => Ben Smith
            [customer_email] => yjcrawler1@me.com
            [order_id] => 22785
            [site_url] => https://www.lightmysafe.com
        )

    [capture_method] => automatic
    [payment_method_types] => Array
        (
            [0] => card
        )

    [customer] => cus_JMt0Q61Pi2GIsk
    [statement_descriptor] => LIGHT MY SAFE, LLC
    [shipping] => Array
        (
            [name] => Ben Smith
            [address] => Array
                (
                    [line1] => 5821 Nunatak Pl
                    [line2] => 
                    [city] => Las Cruces
                    [country] => US
                    [postal_code] => 88012
                    [state] => NM
                )

        )

)

====End Log====


2021-04-25T14:47:08+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Error Response: WP_Error Object
(
    [errors] => Array
        (
            [http_request_failed] => Array
                (
                    [0] => cURL error 28: Operation timed out after 10005 milliseconds with 0 out of 0 bytes received
                )

        )

    [error_data] => Array
        (
        )

    [additional_data:protected] => Array
        (
        )

)


Failed request: Array
(
    [api] => payment_intents
    [request] => Array
        (
            [source] => src_1Ik9EXLaN8oj4ayJLpQu124U
            [amount] => 6671
            [currency] => usd
            [description] => Light My Safe - Order 22785
            [metadata] => Array
                (
                    [customer_name] => Ben Smith
                    [customer_email] => yjcrawler1@me.com
                    [order_id] => 22785
                    [site_url] => https://www.lightmysafe.com
                )

            [capture_method] => automatic
            [payment_method_types] => Array
                (
                    [0] => card
                )

            [customer] => cus_JMt0Q61Pi2GIsk
            [statement_descriptor] => LIGHT MY SAFE, LLC
            [shipping] => Array
                (
                    [name] => Ben Smith
                    [address] => Array
                        (
                            [line1] => 5821 Nunatak Pl
                            [line2] => 
                            [city] => Las Cruces
                            [country] => US
                            [postal_code] => 88012
                            [state] => NM
                        )

                )

        )

    [idempotency_key] => 
)

====End Log====


2021-04-25T14:47:08+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Error: WP_Error Object
(
    [errors] => Array
        (
            [http_request_failed] => Array
                (
                    [0] => cURL error 28: Operation timed out after 10005 milliseconds with 0 out of 0 bytes received
                )

        )

    [error_data] => Array
        (
        )

    [additional_data:protected] => Array
        (
        )

)

====End Log====


2021-04-25T14:47:51+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
sources/src_1Ik9FQLaN8oj4ayJNh69u4Em
====End Log====


2021-04-25T14:47:53+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
customers request: Array
(
    [email] => yjcrawler1@me.com
    [description] => Name: Ben Smith, Guest
    [name] => Ben Smith
    [metadata] => Array
        (
        )

)

====End Log====


2021-04-25T14:47:54+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Info: Begin processing payment for order 9863 for the amount of 66.71
====End Log====


2021-04-25T14:47:54+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
payment_intents request: Array
(
    [source] => src_1Ik9FQLaN8oj4ayJNh69u4Em
    [amount] => 6671
    [currency] => usd
    [description] => Light My Safe - Order 22785
    [metadata] => Array
        (
            [customer_name] => Ben Smith
            [customer_email] => yjcrawler1@me.com
            [order_id] => 22785
            [site_url] => https://www.lightmysafe.com
        )

    [capture_method] => automatic
    [payment_method_types] => Array
        (
            [0] => card
        )

    [customer] => cus_JMt1GQZtDRRBV6
    [statement_descriptor] => LIGHT MY SAFE, LLC
    [shipping] => Array
        (
            [name] => Ben Smith
            [address] => Array
                (
                    [line1] => 5821 Nunatak Pl
                    [line2] => 
                    [city] => Las Cruces
                    [country] => US
                    [postal_code] => 88012
                    [state] => NM
                )

        )

)

====End Log====


2021-04-25T14:48:04+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Error Response: WP_Error Object
(
    [errors] => Array
        (
            [http_request_failed] => Array
                (
                    [0] => cURL error 28: Operation timed out after 10005 milliseconds with 0 out of 0 bytes received
                )

        )

    [error_data] => Array
        (
        )

    [additional_data:protected] => Array
        (
        )

)


Failed request: Array
(
    [api] => payment_intents
    [request] => Array
        (
            [source] => src_1Ik9FQLaN8oj4ayJNh69u4Em
            [amount] => 6671
            [currency] => usd
            [description] => Light My Safe - Order 22785
            [metadata] => Array
                (
                    [customer_name] => Ben Smith
                    [customer_email] => yjcrawler1@me.com
                    [order_id] => 22785
                    [site_url] => https://www.lightmysafe.com
                )

            [capture_method] => automatic
            [payment_method_types] => Array
                (
                    [0] => card
                )

            [customer] => cus_JMt1GQZtDRRBV6
            [statement_descriptor] => LIGHT MY SAFE, LLC
            [shipping] => Array
                (
                    [name] => Ben Smith
                    [address] => Array
                        (
                            [line1] => 5821 Nunatak Pl
                            [line2] => 
                            [city] => Las Cruces
                            [country] => US
                            [postal_code] => 88012
                            [state] => NM
                        )

                )

        )

    [idempotency_key] => 
)

====End Log====


2021-04-25T14:48:04+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Error: WP_Error Object
(
    [errors] => Array
        (
            [http_request_failed] => Array
                (
                    [0] => cURL error 28: Operation timed out after 10005 milliseconds with 0 out of 0 bytes received
                )

        )

    [error_data] => Array
        (
        )

    [additional_data:protected] => Array
        (
        )

)

====End Log====






2021-04-27T03:48:41+00:00 DEBUG 
====Stripe Version: 5.1.0====
====Start Log====
Stripe Payment Request live mode requires SSL.
====End Log====

}}}"	nilltech
	47549	Http proxy not passing Auth request Basic header		HTTP API		normal	normal	Awaiting Review	defect (bug)	new		2019-06-17T13:32:55Z	2019-07-25T09:46:04Z	"Hi,
I've configured WordPress to use an HTTP Proxy, using 
WP_PROXY_* consts in wp-config.php

All outgoing communications are passed to the proxy, but we have an authentication problem.

It seems that, using libCurl transport, in curl_before_send are set only

CURLOPT_PROXYAUTH e CURLOPT_PROXYUSERPWD

but not ""Proxy-Authorization: Basic"" header.

Just for test, I've disabled curl transport ( in Request/Transport/cURL.php - function test() I've done a shortcircuit to false ), so using fsockopen 
I can authenticate regularly.

Maybe there is an implementation bug?

Have you a solution for this or some test to run to help you?

Thank you,
Simone.
"	smarx80
	64516	In a test sequence, resources can still be updated after being deleted.		HTTP API	6.9	normal	normal	Awaiting Review	defect (bug)	new		2026-01-16T03:07:25Z	2026-01-21T23:00:21Z	"{{{
DELETE /pages/{id} AT 2026-01-15T9：47:36
[
  {
    ""method"": ""DELETE"",
    ""endpoint"": ""/pages/{id}"",
    ""status"": 200,
    ""apiParameters"": {
      ""pathParameters"": [
        {
          ""name"": ""id"",
          ""value"": ""11"",
          ""type"": ""integer""
        }
      ],
      ""queryParameters"": [],
      ""requestBodyParameters"": []
    },
    ""responseBody"": ""{\""id\"":11,\""date\"":\""2026-01-15T09:47:36\"",\""date_gmt\"":\""2026-01-15T09:47:36\"",\""guid\"":{\""rendered\"":\""http:\\/\\/localhost\\/?page_id\u003d11\"",\""raw\"":\""http:\\/\\/localhost\\/?page_id\u003d11\""},\""modified\"":\""2026-01-15T09:48:14\"",\""modified_gmt\"":\""2026-01-15T09:48:14\"",\""password\"":\""\"",\""slug\"":\""__trashed\"",\""status\"":\""trash\"",\""type\"":\""page\"",\""link\"":\""http:\\/\\/localhost\\/?page_id\u003d11\"",\""title\"":{\""raw\"":\""394-195667\"",\""rendered\"":\""394-195667\""},\""content\"":{\""raw\"":\""\"",\""rendered\"":\""\"",\""protected\"":false,\""block_version\"":0},\""excerpt\"":{\""raw\"":\""disgood \"",\""rendered\"":\""\u003cp\u003edisgood \u003c\\/p\u003e\\n\"",\""protected\"":false},\""author\"":1,\""featured_media\"":0,\""parent\"":0,\""menu_order\"":0,\""comment_status\"":\""open\"",\""ping_status\"":\""closed\"",\""template\"":\""\"",\""meta\"":{\""footnotes\"":\""\""},\""permalink_template\"":\""http:\\/\\/localhost\\/%pagename%\\/\"",\""generated_slug\"":\""394-195667\"",\""class_list\"":[\""post-11\"",\""page\"",\""type-page\"",\""status-trash\"",\""hentry\""],\""_links\"":{\""self\"":[{\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/pages\\/11\"",\""targetHints\"":{\""allow\"":[\""GET\"",\""POST\"",\""PUT\"",\""PATCH\"",\""DELETE\""]}}],\""collection\"":[{\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/pages\""}],\""about\"":[{\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/types\\/page\""}],\""author\"":[{\""embeddable\"":true,\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/users\\/1\""}],\""replies\"":[{\""embeddable\"":true,\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/comments?post\u003d11\""}],\""version-history\"":[{\""count\"":2,\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/pages\\/11\\/revisions\""}],\""predecessor-version\"":[{\""id\"":14,\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/pages\\/11\\/revisions\\/14\""}],\""wp:attachment\"":[{\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/media?parent\u003d11\""}],\""wp:action-publish\"":[{\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/pages\\/11\""}],\""wp:action-unfiltered-html\"":[{\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/pages\\/11\""}],\""wp:action-assign-author\"":[{\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/pages\\/11\""}],\""curies\"":[{\""name\"":\""wp\"",\""href\"":\""https:\\/\\/api.w.org\\/{rel}\"",\""templated\"":true}]}}"",
    ""requestHeaders"": ""Accept: application/json\nAuthorization: ██\n"",
    ""requestBody"": """"
  }
]
POST /pages/{id} AT 2026-01-15T09:47:48
[
  {
    ""method"": ""POST"",
    ""endpoint"": ""/pages/{id}"",
    ""status"": 200,
    ""apiParameters"": {
      ""pathParameters"": [
        {
          ""name"": ""id"",
          ""value"": ""11"",
          ""type"": ""integer""
        }
      ],
      ""queryParameters"": [],
      ""requestBodyParameters"": [
        {
          ""path"": ""excerpt"",
          ""name"": ""excerpt"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""slug"",
          ""name"": ""slug"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""featured_media"",
          ""name"": ""featured_media"",
          ""value"": """",
          ""type"": ""integer""
        },
        {
          ""path"": ""comment_status"",
          ""name"": ""comment_status"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""status"",
          ""name"": ""status"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""ping_status"",
          ""name"": ""ping_status"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""content"",
          ""name"": ""content"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""password"",
          ""name"": ""password"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""meta"",
          ""name"": ""meta"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""date_gmt"",
          ""name"": ""date_gmt"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""author"",
          ""name"": ""author"",
          ""value"": """",
          ""type"": ""integer""
        },
        {
          ""path"": ""template"",
          ""name"": ""template"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""parent"",
          ""name"": ""parent"",
          ""value"": """",
          ""type"": ""integer""
        },
        {
          ""path"": ""date"",
          ""name"": ""date"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""title"",
          ""name"": ""title"",
          ""value"": """",
          ""type"": ""string""
        }
      ]
    },
    ""responseBody"": ""{\""id\"":11,\""date\"":\""2026-01-15T09:47:48\"",\""date_gmt\"":\""2026-01-15T09:47:48\"",\""guid\"":{\""rendered\"":\""http:\\/\\/localhost\\/?page_id\u003d11\"",\""raw\"":\""http:\\/\\/localhost\\/?page_id\u003d11\""},\""modified\"":\""2026-01-15T09:47:48\"",\""modified_gmt\"":\""2026-01-15T09:47:48\"",\""password\"":\""\"",\""slug\"":\""\"",\""status\"":\""draft\"",\""type\"":\""page\"",\""link\"":\""http:\\/\\/localhost\\/?page_id\u003d11\"",\""title\"":{\""raw\"":\""394-195667\"",\""rendered\"":\""394-195667\""},\""content\"":{\""raw\"":\""\"",\""rendered\"":\""\"",\""protected\"":false,\""block_version\"":0},\""excerpt\"":{\""raw\"":\""maxixe AFL CT\"",\""rendered\"":\""\u003cp\u003emaxixe AFL CT\u003c\\/p\u003e\\n\"",\""protected\"":false},\""author\"":1,\""featured_media\"":0,\""parent\"":0,\""menu_order\"":0,\""comment_status\"":\""open\"",\""ping_status\"":\""closed\"",\""template\"":\""\"",\""meta\"":{\""footnotes\"":\""\""},\""permalink_template\"":\""http:\\/\\/localhost\\/%pagename%\\/\"",\""generated_slug\"":\""394-195667\"",\""class_list\"":[\""post-11\"",\""page\"",\""type-page\"",\""status-draft\"",\""hentry\""],\""_links\"":{\""self\"":[{\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/pages\\/11\"",\""targetHints\"":{\""allow\"":[\""GET\"",\""POST\"",\""PUT\"",\""PATCH\"",\""DELETE\""]}}],\""collection\"":[{\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/pages\""}],\""about\"":[{\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/types\\/page\""}],\""author\"":[{\""embeddable\"":true,\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/users\\/1\""}],\""replies\"":[{\""embeddable\"":true,\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/comments?post\u003d11\""}],\""version-history\"":[{\""count\"":1,\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/pages\\/11\\/revisions\""}],\""predecessor-version\"":[{\""id\"":12,\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/pages\\/11\\/revisions\\/12\""}],\""wp:attachment\"":[{\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/media?parent\u003d11\""}],\""wp:action-publish\"":[{\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/pages\\/11\""}],\""wp:action-unfiltered-html\"":[{\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/pages\\/11\""}],\""wp:action-assign-author\"":[{\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/pages\\/11\""}],\""curies\"":[{\""name\"":\""wp\"",\""href\"":\""https:\\/\\/api.w.org\\/{rel}\"",\""templated\"":true}]}}"",
    ""requestHeaders"": ""Accept: application/json\nAuthorization: ██\n"",
    ""requestBody"": ""{}""
  }
]
POST /pages/{id}/autosaves AT 2026-01-15T09:48:20
[
  {
    ""method"": ""POST"",
    ""endpoint"": ""/pages/{id}/autosaves"",
    ""status"": 200,
    ""apiParameters"": {
      ""pathParameters"": [
        {
          ""name"": ""id"",
          ""value"": ""11"",
          ""type"": ""integer""
        }
      ],
      ""queryParameters"": [],
      ""requestBodyParameters"": [
        {
          ""path"": ""meta"",
          ""name"": ""meta"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""featured_media"",
          ""name"": ""featured_media"",
          ""value"": ""featured_media\u003d-2147483648"",
          ""type"": ""integer""
        },
        {
          ""path"": ""excerpt"",
          ""name"": ""excerpt"",
          ""value"": ""excerpt\u003d483-07-150"",
          ""type"": ""string""
        },
        {
          ""path"": ""ping_status"",
          ""name"": ""ping_status"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""template"",
          ""name"": ""template"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""date_gmt"",
          ""name"": ""date_gmt"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""author"",
          ""name"": ""author"",
          ""value"": """",
          ""type"": ""integer""
        },
        {
          ""path"": ""password"",
          ""name"": ""password"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""content"",
          ""name"": ""content"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""parent"",
          ""name"": ""parent"",
          ""value"": ""parent\u003d117"",
          ""type"": ""integer""
        },
        {
          ""path"": ""title"",
          ""name"": ""title"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""comment_status"",
          ""name"": ""comment_status"",
          ""value"": ""comment_status\u003dclosed"",
          ""type"": ""string""
        },
        {
          ""path"": ""status"",
          ""name"": ""status"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""menu_order"",
          ""name"": ""menu_order"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""date"",
          ""name"": ""date"",
          ""value"": """",
          ""type"": ""string""
        },
        {
          ""path"": ""slug"",
          ""name"": ""slug"",
          ""value"": ""slug\u003ddehumidify-nv-gc"",
          ""type"": ""string""
        }
      ]
    },
    ""responseBody"": ""{\""author\"":1,\""date\"":\""2026-01-15T09:48:20\"",\""date_gmt\"":\""2026-01-15T09:48:20\"",\""id\"":15,\""modified\"":\""2026-01-15T09:48:20\"",\""modified_gmt\"":\""2026-01-15T09:48:20\"",\""parent\"":11,\""slug\"":\""11-autosave-v1\"",\""guid\"":{\""rendered\"":\""http:\\/\\/localhost\\/?p\u003d15\"",\""raw\"":\""http:\\/\\/localhost\\/?p\u003d15\""},\""title\"":{\""raw\"":\""\"",\""rendered\"":\""\""},\""content\"":{\""raw\"":\""\"",\""rendered\"":\""\""},\""excerpt\"":{\""raw\"":\""\"",\""rendered\"":\""\""},\""meta\"":{\""footnotes\"":\""\""},\""preview_link\"":\""http:\\/\\/localhost\\/?page_id\u003d11\u0026preview_id\u003d11\u0026preview_nonce\u003db5944fb7a1\u0026preview\u003dtrue\"",\""_links\"":{\""parent\"":[{\""href\"":\""http:\\/\\/localhost\\/wp-json\\/wp\\/v2\\/pages\\/11\""}]}}"",
    ""requestHeaders"": ""Accept: application/json\nAuthorization: ██\n"",
    ""requestBody"": ""{\""slug\"": \""dehumidify-nv-gc\"", \""parent\"": 117, \""excerpt\"": \""483-07-150\"", \""featured_media\"": -2147483648, \""comment_status\"": \""closed\""}""
  }
]
}}}"	nefelibata
	60934	Internal Subnets are being blocked by wp_parse_url and why?		HTTP API		normal	normal	Awaiting Review	defect (bug)	new	needs-docs	2024-04-05T04:50:22Z	2024-10-08T21:46:48Z	"https://github.com/WordPress/wordpress-develop/blob/6.5/src/wp-includes/http.php#L566-L588

This code block has plagued me for months trying to identify what the cause of WordPress, ActivityPub, Friends, and Mastodon plugins could/would not work with my Friendica or Mastodon instances, and it's been because of these lines of code literally blocking it from even trying.

I think this is a bad way to handle this, and I'm wondering why this literally non-essential software-level ""firewall""-like code was put in. Malicious code certainly would not even bother to use wp_parse_url at all, let alone utilise this function to engage in things. Everyone I'd spoken to either had no clue about this as well, just assuming WordPress had nothing like this there, which is clearly inaccurate given the code right there.

Furthermore, there's literally no known documentation I could find about this, none within WordPress for sure. Through external resources I managed to find a way to get around this issue by creating a custom plugin that used a custom add_filter() to define a new instance, by each and every involved host by FQDN, to allow in this wp_http_validate_url function call.

So, why does this code block exist to block internal IP subnets? If that's ever needed, one can literally do so at their firewalls where it should be, not bolted into their web application's code and blocking by default. And especially not documented or providing any clear cut means to add rules in a reasonable manner towards this at the VERY least."	erenfro
	65229	Remove WordPress.org IP from function documentation		HTTP API		normal	trivial	Awaiting Review	defect (bug)	new	has-patch	2026-05-13T04:27:36Z	2026-05-13T04:28:59Z	"A WordPress.org IP address (which may change over time) is currently in use in some function documentation.

We might as well update that to point to a TEST-NET-xx address.

I've randomly chosen `198.51.100.50` based on a google suggestion, to differentiate from 192.xxxxx that might be thought to be local at first glance.

We could also use TEST-NET-3 if a more obviously public IP range is wanted:
{{{
TEST-NET-1: 192.0.2.0 - 192.0.2.255 (192.0.2.0/24)
TEST-NET-2: 198.51.100.0 - 198.51.100.255 (198.51.100.0/24)
TEST-NET-3: 203.0.113.0 - 203.0.113.255 (203.0.113.0/24)
}}}

PR attached."	dd32
	39687	Request headers sent incorrectly from `WP_Http` to `Requests`		HTTP API		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2017-01-25T12:02:48Z	2017-01-27T08:51:23Z	"While having a closer look at Requests (and also the way it is used in WP), I noticed something that appears to be a bug.

The `$headers` variable that is passed from `WP_Http::request()` to `Requests::request()` is an array of `$key => $value` pairs where `$value` may be an array itself in case multiple values for that header have been passed to `WP_Http::request()`. However, the Requests library expects each `$value` of the `$headers` array to always be a string, as it uses `sprintf()` with it directly (the passed `$headers` array is sent through `Requests::flatten()`).

This can cause issues when specifying multiple headers of the same name."	flixos90
	49203	Requests::request_multiple() does not honor $auth option		HTTP API	5.4	normal	normal	Awaiting Review	defect (bug)	new		2020-01-15T13:40:53Z	2020-02-05T06:52:49Z	"If individual requests have an option for `$auth`, the authentication `CURLOPT`s don't get set as `curl.before_send` is never dispatched.

Manually setting an 'Authorization' header overcomes this limitation. I suspect this is not intended behaviour however, cf. documentation in #48349."	alpipego
	64212	Stream-to-file may fail or overwrite existing temporary file		HTTP API		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-11-07T06:16:39Z	2025-11-07T06:19:23Z	"Consider this request:
{{{
wp_remote_request( 'https://example.org/style.css', [ 'stream' => true ] );
}}}

If `/tmp/style.css` exists and can't be overwritten, the request will fail with:
{{{
class WP_Error#5189 (3) {
  public $errors =>
  array(1) {
    'http_request_failed' =>
    array(1) {
      [0] =>
      string(63) ""fopen(/tmp/style.css): Failed to open stream: Permission denied""
    }
  }
}
}}}

Likewise, if multiple requests occur at the same time, there's a chance the file will be overwritten.

WP_HTTP should ensure that either a) The filename is unique, or b) the path is unique.

This can be worked around by passing the `filename` parameter like so:
{{{
wp_remote_request( 'https://example.org/style.css', [ 'stream' => true, 'filename' => wp_tempnam( 'style.css' ) ] );
}}}

This does result in the filename of the streamed file being `/tmp/style-XXXXXX.tmp` but given the location of the file storage, this seems reasonable and unlikely to break back-compat significantly."	dd32
	56688	Uncaught Requests_Exception using Requests::request_multiple		HTTP API	6.0.2	normal	normal	Awaiting Review	defect (bug)	new		2022-09-29T10:17:52Z	2025-09-11T21:59:49Z	"If a remote website does not respond to a request in Requests::request_multiple then CURL timeout is unhandled in the process.  


{{{
PHP Fatal error:  Uncaught Requests_Exception: cURL error 28: Operation timed out after 10001 milliseconds with 0 out of 0 bytes received in /.../wp-includes/Requests/Transport/cURL.php:443

Stack trace:
#0 /.../wp-includes/Requests/Transport/cURL.php(179): Requests_Transport_cURL->process_response('', Array)
#1 /.../wp-includes/class-requests.php(381): Requests_Transport_cURL->request('https://api.dyn...', Array, NULL, Array)
#2 /.../wp-includes/class-requests.php(233): Requests::request('https://api.dyn...', Array, NULL, 'GET', Array)
#3 /.../wp-content/plugins/tg-dynamic-dns-updater/public/class-tg-dynamic-dns-updater-public.php(149): Requests::get('https://api.dyn...', Array)
#4 /.../wp-content/plugins/tg-dynamic-dns-updater/public/class-tg-dynamic-dns-updater-public.php(131): Tg_Dynamic_Dns_Updater_Public->tg_get_bearer_token('70f4>
#5 /.../wp-includes/class-wp-hook.php(307): Tg_Dynamic_Dns_Updater_Public->tg_post_dynamic_dns('RHMgWcS1V5ybPtY...')
#6 /.../wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
#7 /.../wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#8 /.../wp-content/plugins/tg-dynamic-dns-updater/includes/class-tg-dynamic-dns-updater-async-api-task.php(34): do_action('wp_async_tg_inv...', 'RHMgWcS1V5ybPt>
#9 /.../wp-content/plugins/tg-dynamic-dns-updater/includes/wp-async-task.php(164): tg_async_dns_api_task->run_action()
#10 /.../wp-includes/class-wp-hook.php(307): WP_Async_Task->handle_postback('')
#11 /.../wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
#12 /.../wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#13 /.../wp-admin/admin-post.php(85): do_action('admin_post_wp_a...')
#14 {main}
}}}



To reproduce simply add non-responsive url to the requests array or reduce the timeout value to an unreasonable value to force a CURL timeout.

This issue is a bit beyond my understanding but has to do with the hook system calling other functions where the timeout occurs as best I can tell.... this creates a fault where it can't be caught by the calling code.

I also admit to not knowing what ""Component"" this belongs to.
"	clutch2sft
	66484	WP_Http_Streams writes response headers into streamed files when headers span more than one read		HTTP API	trunk	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-11-04T22:16:54Z	2026-11-11T01:42:03Z	"== Problem ==

In streamed mode, `WP_Http_Streams::request()` writes every block it reads to the destination file, including blocks read while it is still accumulating the response headers. Only the block that completes the `\r\n\r\n` header/body separator is replaced with the parsed body. Every header byte read in earlier blocks stays in the file.

This happens whenever the headers arrive over more than one `fread()`:

 * Headers larger than the 4,096-byte read size, wherever the separator falls.
 * A separator that straddles the 4,096-byte boundary.
 * Small headers delivered in more than one socket read. `fread()` on a socket returns whatever is available, so a slow server, a proxy, or TLS record boundaries can split the headers.

The response is still parsed correctly and returns status 200, so the corrupted file is not reported as an error.

`WP_Http_Streams` has been deprecated since 6.4, and `WP_Http` no longer uses it, so this only affects code that calls the transport directly with `'stream' => true`. It is present on trunk and was found while testing [https://github.com/WordPress/wordpress-develop/pull/14288 PR 14288] for #65817. That PR does not introduce or change it.

== Reproduction ==

Serve each raw response below from a local socket and request it directly through `WP_Http_Streams` with:

{{{
array(
    'stream'   => true,
    'filename' => $filename,
    'timeout'  => 5,
)
}}}

Results on trunk (a8f43c520d), PHP 8.1. Each response has the body `hello`:

||= Raw response =||= Status =||= File size =||= File contents =||
|| Small headers, one write (control) || 200 || 5 || `hello` ||
|| Separator at byte 4,094 (straddles the read boundary) || 200 || 4,101 || 4,096 header bytes + `hello` ||
|| Separator at byte 6,000 || 200 || 4,101 || 4,096 header bytes + `hello` ||
|| Separator at byte 10,000 || 200 || 8,197 || 8,192 header bytes + `hello` ||
|| `HTTP/1.0 200 OK\r\nContent-Type: text/plain`, a 200 ms pause, then `\r\n\r\nhello` || 200 || 46 || 41 header bytes + `hello` ||

The [https://github.com/WordPress/wordpress-develop/pull/14288 PR 14288] head (da0980d) gives identical results.

The straddling case makes a deterministic PHPUnit regression test, because no single read can contain a separator that ends at byte 4,098:

{{{
$prefix       = ""HTTP/1.0 200 OK\r\nX-Fill: "";
$raw_response = $prefix . str_repeat( 'a', 4094 - strlen( $prefix ) ) . ""\r\n\r\nhello"";
}}}

== Expected result ==

The destination file contains only the response body (`hello`).

== Suggested fix ==

Write nothing to the file until the headers have been parsed, then write only the body part of the block that completes them. Regression tests should cover the straddling case and headers larger than 4 KB.

AI assistance: Yes
Tool(s): OpenAI Codex, Claude Code
Model(s): GPT-6.1, Claude Opus 5.5
Used for: Reviewing the transport, building and running the reproductions, and drafting this description; the reproductions and results were reviewed by me."	dpknauss
	66391	`get_allowed_http_origins()` should not trust the insecure origin of an HTTPS site	johnbillion	HTTP API		normal	normal	7.3	defect (bug)	reviewing	has-patch	2026-10-27T14:16:59Z	2026-10-30T07:09:42Z	"The `get_allowed_http_origins()` function always adds both the `http://` and `https://` variants of the admin and home host to the allowed origins list, regardless of the site's scheme. On a site served only over HTTPS, the `http://` origin is therefore trusted even though the site doesn't use it.

This feeds `send_origin_headers()` which reflects a matching `Origin` into `Access-Control-Allow-Origin`. A network attacker who can tamper with plaintext HTTP traffic can issue a credentialed cross-origin request to the HTTPS site and read the response.

Fix: Add the `http://` origin only when the corresponding `admin_url()`/`home_url()` is not HTTPS.

Related: #43428 

Originally reported by talkemade on HackerOne."	johnbillion
	41340	fsockopen HTTP Proxy support is broken for HTTPS URLs		HTTP API	4.8	normal	normal	Awaiting Review	defect (bug)	new		2017-07-16T12:47:02Z	2020-10-01T22:58:13Z	"First of all, a little bit of background on HTTP proxies.

""HTTP proxies"" can exist with and without TLS at the proxy level. Both varieties allow you to connect to HTTPS hosts, through the CONNECT method (https://tools.ietf.org/html/rfc7231#section-4.3.6).

This means that there are four different valid combinations of TLS at proxy connection level and TLS at remote host connection level.

WordPress only allows setting a single proxy host (and port), but provides no configuration for whether it should be connected through TLS. The curl code correctly interprets this as using a non-TLS HTTP proxy for both HTTP and HTTPS connections.

fsockopen instead will use the remote host TLS (ssl) option even when opening the connection to the Proxy, effectively forcing the same host:port pair to be used both as TLS and not, which does not generally work. Resulting in these error connections:

HTTP proxy with no TLS:

 - https://api.wordpress.org/ -> tries connecting to proxy with tls, fail.
 - http://api.wordpress.org/ -> works

HTTP proxy with TLS:

 - https://api.wordpress.org/ -> (probably? -- haven't tried) works
 - http://api.wordpress.org/ -> tries connecting to proxy without tls, fail.

"	flameeyes
	50288	fsockopen request turns off SNI when it shouldn't		HTTP API	5.4.1	normal	normal	Awaiting Review	defect (bug)	new		2020-05-31T10:11:29Z	2020-05-31T10:11:29Z	"I have a multisite setup where there are 3 domains in the same server. The network upgrade button fails every time with this sort of error:

{{{
Warning! Problem updating https://example.com. Your server may not be able to connect to sites running on it. Error message: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure stream_socket_client(): Failed to enable crypto stream_socket_client(): unable to connect to ssl://example.com:443 (Unknown error)
}}}

The issue is that my sites use SNI and the upgrade setup doesn't enable SNI because verification is turned off.

The bug can be traced to fsockopen transport in wp-includes/Requests/Transport/fsockopen.php line 444.
{{{#!php
<?php
                       // SNI, if enabled (OpenSSL >=0.9.8j)
                        if (defined('OPENSSL_TLSEXT_SERVER_NAME') && OPENSSL_TLSEXT_SERVER_NAME) {
                                $context_options['SNI_enabled'] = true;
                                if (isset($options['verifyname']) && $options['verifyname'] === false) {
                                        $context_options['SNI_enabled'] = false;
                                }
                        }
}}}

If you have verifyname option set to false then SNI is not enabled. However you need SNI on for this to work anyway.

The work-around is to comment out the $context_options['SNI_enabled'] = false; line and it the network upgrade works fine."	csmall2
	65522	get_allowed_http_origins() drops port from allowed CORS origins		HTTP API	3.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-06-23T15:23:27Z	2026-08-11T09:36:04Z	"## Environment

- WordPress: trunk (latest development version)
- Any install where `home` or `siteurl` uses a non-standard port
  (e.g. `http://example.com:8080`, `http://localhost:8888`, Docker, staging)

## Steps to reproduce

1. Set `home` and `siteurl` to a URL with a non-standard port:
   `http://example.com:8080`
2. Call `get_allowed_http_origins()`.
3. Observe the returned list contains `http://example.com` (no port).
4. Send a CORS request from the browser with
   `Origin: http://example.com:8080`.
5. Call `is_allowed_http_origin( 'http://example.com:8080' )`.

## Expected result

- `get_allowed_http_origins()` includes `http://example.com:8080`
  and `https://example.com:8080`.
- `is_allowed_http_origin( 'http://example.com:8080' )` returns
  `http://example.com:8080`.

## Actual result

- Allowed list contains `http://example.com` without the port.
- `is_allowed_http_origin( 'http://example.com:8080' )` returns `''`
  (silently rejected).
- CORS requests from the same host on a non-standard port fail with
  no visible error.

## Root cause

`get_allowed_http_origins()` in `src/wp-includes/http.php` calls
`parse_url()` on `admin_url()` and `home_url()` but only uses the
`host` key, discarding `port`. There is an existing `@todo Preserve port?`
comment at the affected location.

## Proposed fix

Append the port to the host when present:

```php
$admin_host = $admin_origin['host'] . ( isset( $admin_origin['port'] ) ? ':' . $admin_origin['port'] : '' );
$home_host  = $home_origin['host'] . ( isset( $home_origin['port'] ) ? ':' . $home_origin['port'] : '' );

Test plan

Add tests/phpunit/tests/http/getAllowedHttpOrigins.php with 5 tests:

• Non-standard port preserved in allowed list
• Standard URLs produce no :80 suffix
• Different ports on home vs admin both preserved
• is_allowed_http_origin() accepts origin with matching port
• is_allowed_http_origin() rejects origin without port when site uses one

Verified locally: 4 failures without fix, 5 passes with fix."	yaghoot
	61358	Add Support to HTTP 2 in WP_Http Class		HTTP API		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-06-03T12:37:37Z	2024-07-19T01:52:12Z	"As HTTP 2 has become the standard of the web and HTTP 3 deployment is increasing rapidly, `WP_Http` class should support HTTP/2.0 in `httpversion` which currently only accepts `1.0` or `1.1`.

The `httpversion` should accept `1.0`, `1.1`, `2.0`, and `3.0` and the default should be `2.0` instead of `1.0` or `1.1` standing in 2024.

There is no way to make requests via HTTP/2 in WordPress unless a custom cURL-based approach is used. This should be fixed."	isaumya
	66507	Add unit tests for WP_Http::is_ip_address(), chunkTransferDecode(), browser_redirect_compatibility() and validate_redirects()		HTTP API		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T02:20:58Z	2026-11-06T02:24:38Z	"Several static methods of `WP_Http` (`src/wp-includes/class-wp-http.php`) are not referenced by any test:

 * `WP_Http::is_ip_address()`
 * `WP_Http::chunkTransferDecode()`
 * `WP_Http::browser_redirect_compatibility()`
 * `WP_Http::validate_redirects()`

This ticket adds unit tests for them, each in its own test class in `tests/phpunit/tests/http/`:

 * `is_ip_address()` returns 4 for IPv4 addresses, 6 for IPv6 addresses (also in brackets, in short form and with an IPv4 suffix), and false for other strings.
 * `chunkTransferDecode()` decodes a body that uses the chunked transfer encoding (with several chunks, chunk extensions and uppercase hexadecimal sizes), and returns the body as it is when it is not chunked or is malformed.
 * `browser_redirect_compatibility()` changes the type of the request to GET for a 302 response, and does not change it for other status codes.
 * `validate_redirects()` accepts a valid URL and throws a `WpOrg\Requests\Exception` for one that is not valid.

The processing of the responses, the headers and the cookies is not part of this ticket.

I checked that no existing ticket or open pull request adds tests for these methods."	hmbashar
	66501	Add unit tests for wp_remote_retrieve_header(), wp_remote_retrieve_response_message(), allowed_http_request_hosts() and ms_allowed_http_request_hosts()		HTTP API		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T01:48:57Z	2026-11-06T01:51:44Z	"Several functions of `src/wp-includes/http.php` are not referenced by any test:

 * `wp_remote_retrieve_header()`
 * `wp_remote_retrieve_response_message()`
 * `allowed_http_request_hosts()`
 * `ms_allowed_http_request_hosts()`

The other `wp_remote_retrieve_*()` functions have tests in `tests/phpunit/tests/http/`. This ticket adds unit tests for these four, in separate test classes in the same directory:

 * `wp_remote_retrieve_header()` returns the value of a header, an empty string when the header is not set, and an empty string when the response is a `WP_Error` or has no headers. It also handles a `WpOrg\Requests\Utility\CaseInsensitiveDictionary` of headers, which is what the HTTP API returns.
 * `wp_remote_retrieve_response_message()` returns the message of the response, and an empty string when the response is a `WP_Error`, has no `response` or it is not an array.
 * `allowed_http_request_hosts()` keeps a host that is already external, and marks a host as external when `wp_validate_redirect()` allows it, which includes the host of the site and the hosts of the `allowed_redirect_hosts` filter.
 * `ms_allowed_http_request_hosts()` keeps a host that is already external, allows the domain of the network and the domains of the sites of the network, and does not allow other hosts.

I checked that no existing ticket or open pull request adds tests for these functions."	hmbashar
	60658	Set http_build_query as an option to Curl class		HTTP API		normal	normal	Awaiting Review	enhancement	new		2024-02-29T09:46:40Z	2025-01-16T22:33:13Z	"I had a problem integrating an API, as explained in this [[https://stackoverflow.com/questions/78075910/reduce-the-parameters-of-wordpress-curl/78080020|Stack Overflow question]].

I was requesting that an option (e.g. `'query_body' => true` by default) be added to `$args` in `class WP_Http`. The option would affect `class Curl` under `function setup_handle` where `$data = http_build_query($data, '', '&');`

It would then look like (or similar):

class-wp-http.php (line 206):
{{{#!php
			'body'                => null,
			'query_body'          => true,
			'compress'            => false,
}}}

class-wp-http.php (line 322):
{{{#!php
		$options = array(
			'query_body' => $parsed_args['query_body'],
			'timeout'    => $parsed_args['timeout'],
}}}

Curl.php (line 393):
{{{#!php
			} elseif (!is_string($data)) {
				$data = $options['query_body'] ? http_build_query($data, '', '&') : $data;
			}
}}}

When I make these changes to my copy of WordPress, the API works and it does not affect the rest of the core."	elzix
	59021	Is there a way to monitor active connection initiated by cron and other running script (similar to netstat in windows)		HTTP API		normal	normal	Awaiting Review	feature request	new		2023-08-09T11:24:27Z	2023-08-09T11:33:25Z	Is there a way to monitor active connection initiated by cron and other running script (similar to netstat in windows) and if possible to terminate or block specific outbound connection/IP.	havoc2k7
	54449	Loading CodeMirror prevents the Help tabs children to work properly.		Help/About	5.8.2	normal	normal	Future Release	defect (bug)	new		2021-11-15T17:41:22Z	2022-07-19T13:25:06Z	"When you load the `wp-theme-plugin-editor` script (CodeMirror) it prevents/blocks the Help on click event. You can quickly test this if you additional tab on the Theme Editor screen, right now there is only an Overview, but if we add and 2nd one you won't be able to switch between children.

I am using this on another page, but I have tested it, and when I remove the `wp_enqueue_script('wp-theme-plugin-editor');` the functionality works as it should be.

This is the JS file that's causing the issue: `/wp-admin/js/theme-plugin-editor.js`

I have looked at it quickly but couldn't pinpoint the section of code that's causing the issue.

Krasen "	krasenslavov
	65214	Refine the help text wording for backend editor		Help/About	3.3	normal	normal	Awaiting Review	defect (bug)	reopened	has-patch	2026-05-09T22:23:49Z	2026-10-15T17:06:32Z	"actually we use the wording ""The top section controls the editor within the dashboard"" for the help text on wp-admin/options-writing.php:24. That's not very precise and confuses newcomers."	timse201
	60123	Suggestion for Update text From Privacy to Privacy Policy		Help/About	4.9	normal	normal	Awaiting Review	enhancement	new		2023-12-20T21:13:03Z	2024-02-15T16:26:06Z	I have a suggestion, please replace the text from Privacy with Privacy Policy	dilip2615
	58354	Translate screenshots for the About page		Help/About		normal	normal	Awaiting Review	feature request	new		2023-05-19T05:14:43Z	2023-09-29T01:45:28Z	"Many locales' polyglots are working on translating the About page and providing great experience and clear information for local native language users, but screenshots cannot be replaced and translated, and as a result, what is highlighted in the screenshots looks different in the translated admin interface. 

I propose to translate images src for screenshots with text as well and provide logic for that.

The path to images can be restricted to WordPress CDN and the images themselves can be uploaded by GTE to a local media library, or the images can be submitted separately somewhere before actual strings translation."	oglekler
	62650	WordPress 6.8 add a horizontal rule credits page after external libraries		Help/About		normal	normal	Awaiting Review	feature request	new	has-patch	2024-12-05T09:55:53Z	2025-05-26T14:29:53Z	"The ""External Libraries"" section enhances the visual structure of the credits page. I have attached a screenshot for proper understanding."	Subrata Deb Nath
	64979	Align needs gettext		I18N	5.7	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-03-29T21:42:58Z	2026-03-31T18:15:19Z	"https://translate.wordpress.org/projects/wp/dev/de/formal/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=2925&filters%5Btranslation_id%5D=146115785

this string is used in core as a noun and in Gutenberg it is used for a button (verb)"	timse201
	65255	Clear needs context		I18N		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-05-16T19:16:52Z	2026-05-20T08:08:53Z	"Right now, we have 2 strings for clear. One with context verb and one without. A better way would be to separate them with the context clear/reset that value and clear that field.
I did not dig into every string but it would be helpful.

https://translate.wordpress.org/projects/wp/dev/de/formal/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=47766&filters%5Btranslation_id%5D=3898356

https://translate.wordpress.org/projects/wp/dev/admin/de/formal/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=7906&filters%5Btranslation_id%5D=1657953"	timse201
	57981	Export .po files error of untranslated strings starting or ending with new lines (\n)		I18N	2.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-03-24T20:08:20Z	2024-11-06T14:57:17Z	"As found while dealing with GlotPress [see GitHub issue]https://github.com/GlotPress/GlotPress/issues/1594, there is a bug on the method `export_entry()` of class `PO` of core.

The PO method `match_begin_and_end_newlines()` has an early check for `$translation`, early returns the variable without changing nothing if the variable is `''` (empty).

As `match_begin_and_end_newlines()` is only early returning for `''` (empty) values, fails and actually adds new lines on `null` translations, which is wrong, and produces the undesired effect as seen in the GlotPress export error mentioned above.

The problem is that when the translation don't exist, it's set to `null`, not `''` (empty). But `export_entry()` sends to `match_begin_and_end_newlines()` either `''` (empty) in case `$entry->translations` is empty, or, of the translations array do exist, each one might have `null` values, which is the correct default behavior.

So, for consistency probably `match_begin_and_end_newlines()` should only check for `null` values to earlier return, and the `export_entry()` should only sends `null` or non-empty strings in case there is an actual translation."	pedromendonca
	57049	Make the use (or non-use) of `esc_url()` more consistent for translated URLs		I18N		normal	normal	Future Release	defect (bug)	new	dev-feedback	2022-11-09T20:28:33Z	2024-11-06T15:05:53Z	"There are currently 122 instances of `__( 'https://` in Core (excluding those within bundled themes). Of those, 24 are passed through `esc_url()`.

The general rule is that default translations representing Core are considered trusted. Following that rule, unfiltered URLs that are translated don't need to be passed through `esc_url()`, though it's unclear if URLs should be considered an exception.

This should be clarified in the handbook (I couldn't find where ""core translations are trusted"" is detailed) and made consistent across the code base."	desrosj
	37611	Ordering of the Site Language entries		I18N	4.0	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2016-08-09T08:48:11Z	2024-11-06T15:51:47Z	"The ordering of the language selector in options-general.php is based off the locale, but the visual (and quick-access by typing) entries are using the languages native name.

Would it not make more sense to order by the native name here, I don't think I know of any other language selector that isn't alphabetically ordered by the visual element of it?"	Clorith
	40643	Russian post date month translation is incorrect		I18N	4.7.4	normal	normal	Awaiting Review	defect (bug)	new		2017-05-02T22:45:20Z	2017-05-02T23:37:59Z	"Was wondering if you could fix the post dates for the Russian translation of the months.

You can see for example that the post date on https://cyhacker.com/ says ""3RD МАЙ 2017"", for example. This is using the [https://translate.wordpress.org/projects/wp/dev/ru/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=2723&filters%5Btranslation_id%5D=76439 normal form] of ""May"".

It should be ""3RD МАЯ 2017"", which is using the [https://translate.wordpress.org/projects/wp/dev/ru/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=1367227&filters%5Btranslation_id%5D=31279546 genitive form] of ""May"".

Not sure if or where I could tweak this. This actually goes for all months, where the genitive form should be used."	chepurko
	22812	Tweak the media modal styles for longer strings in ru_RU		I18N	3.5	normal	normal	Awaiting Review	defect (bug)	new	close	2012-12-07T15:38:16Z	2020-09-14T20:05:31Z	"1. In Attachment Display Settings, the Alignment dropdown is a bit off.
2. In Gallery settings, the Random checkbox is misaligned.

See the screenshots."	SergeyBiryukov
	46059	cyrillic capitalization in tag search		I18N		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-01-22T01:14:30Z	2020-07-20T12:42:11Z	When doing ''search tags'' using Cyrillic if you didn't guess right capitalization in existing tag, then it won't be in search result. It's impossible to find all tags with given substring if they are saved with different capitalization in this substring.	anonymized_15879810
	53677	load_script_textdomain() doesn't work for subdirectory themes, or those in alternate theme roots		I18N		low	normal	Future Release	defect (bug)	new	has-patch	2021-07-16T07:08:25Z	2026-06-15T07:58:43Z	"load_script_textdomain() attempts to load script translations for themes, but fails to generate the correct relative filename when the theme is within a sub-directory or alternate theme root.

WordPress supports three main formats for theme directories (See [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/theme.php#L427 search_theme_directories()])
 1. wp-content/themes/$theme
 2. wp-content/custom-theme-root/$theme
 3. wp-content/themes/a-directory-of-themes/$theme (and likewise for the custom $theme_root)

The first case is covered, but when using the other two, the generated relative path and subsequent path md5 is incorrect.

For example, given the file `.../themes/a-directory-of-themes/$theme/build/index.min.js` instead of generating the md5 of `build/index.js` it generates it of `$theme/build/index.js`.

I'm unsure what it would do with the custom theme roots, all that I can tell is that the use-case doesn't appear to be covered in the function."	dd32
	65256	text track strings need context		I18N		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-05-16T19:24:55Z	2026-06-01T22:22:34Z	"Right now, text tracks are abbreviated to track sometimes. To reduce future conflicts with (audio) tracks and to reduce incorrect translations, it could be helpful to get context here.

https://translate.wordpress.org/projects/wp/dev/de/formal/?filters%5Bterm%5D=textspur&filters%5Bterm_scope%5D=scope_any&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filters%5Buser_login%5D=&filter=Apply+Filters&sort%5Bby%5D=priority&sort%5Bhow%5D=desc"	timse201
	65809	wp_get_l10n_php_file_data() reads the wrong revision date key from .l10n.php files		I18N	6.6	normal	normal	7.3	defect (bug)	new	dev-feedback	2026-08-04T21:57:20Z	2026-10-29T18:59:50Z	"`wp_get_l10n_php_file_data()` in `wp-includes/l10n.php` maps the PO headers it returns onto the keys a `.l10n.php` file stores them under:

{{{#!php
'PO-Revision-Date'   => 'po-revision-date',
}}}

No generated `.l10n.php` file uses that key. The revision date is written as `translation-revision-date`, so `PO-Revision-Date` always comes back empty.

`tests/phpunit/data/languages/de_CH.l10n.php` has the same wrong key, which is why the existing coverage in `Tests_L10n::test_wp_get_installed_translations_for_core()` passes. The fixture matches the code rather than a real file. `tests/phpunit/data/l10n/plural-complex.php`, added earlier in [57518], uses the correct key.

== Why it matters ==

`wp_get_installed_translations()` falls back to this reader when a translation has no sibling `.po` file. That value is sent to api.wordpress.org to work out which language packs are out of date. With an empty revision date, a pack that is already installed and current gets offered again.

Measured on trunk with the Twenty Twenty-Five nl_NL pack, freshly installed, changing nothing but whether the `.po` is on disk:

|| state || `wp_get_installed_translations()` reports || offers after `wp_update_themes()` ||
|| .po present || 2025-08-05 20:37:56+0000 || 0 ||
|| .po absent || empty string || 1 ||

== Fix ==

Read `translation-revision-date`, and correct the `de_CH.l10n.php` fixture to use it as well.

`POT-Creation-Date` maps to `pot-creation-date`, which no format writes, so it stays empty. Left alone here.

----

This came out of #65429 but is not the cause of that report, where the `.po` files were present. Filed separately since the defect stands on its own.

An earlier version of this description claimed the key had been renamed upstream. That was wrong, see comments below. The fixture was simply wrong from the start."	bejignesh
	50749	wp_set_script_translations() ignores failure when called before script is registered.		I18N	5.4	normal	normal	Future Release	defect (bug)	new	has-patch	2020-07-24T05:22:21Z	2026-07-10T13:27:54Z	"wp_set_script_translations() only works if it's called after the script has already been registered. The doc page confirms this: https://developer.wordpress.org/reference/functions/wp_set_script_translations/. The function does trigger `_doing_it_wrong` when called prior to `wp_register_scripts`, but fails silently when called before the specific script has been registered.

In investigating js translation issues in the plugin directory, we discovered that it is very common for developers to incorrectly call `wp_set_script_translations()` too early. As a result, js translations are not correctly loaded for many plugins.

This would be easily fixed by having `wp_set_script_translations()` trigger `_doing_it_wrong` when `$wp_scripts->set_translations()` returns false."	tellyworth
	66511	Add unit tests for the Translations and Gettext_Translations methods that merge entries and parse plural forms and headers		I18N		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T02:39:58Z	2026-11-06T02:43:46Z	"Several methods of the `Translations` and `Gettext_Translations` classes (`src/wp-includes/pomo/translations.php`) are not referenced by any test:

 * `Translations::add_entry_or_merge()`
 * `Translations::merge_originals_with()`
 * `Gettext_Translations::nplurals_and_expression_from_header()`
 * `Gettext_Translations::parenthesize_plural_exression()`
 * `Gettext_Translations::make_headers()`

This ticket adds unit tests for them, each in its own test class in `tests/phpunit/tests/pomo/`:

 * `add_entry_or_merge()` adds an entry (or an array that is converted to an entry), merges an entry that has the same key with the existing one, and returns false for an entry without a key.
 * `merge_originals_with()` adds the entries that do not exist, and merges the ones that exist without replacing them.
 * `nplurals_and_expression_from_header()` returns the number of plural forms and the expression of a `Plural-Forms` header, and the default `2` and `n != 1` when the header is not valid.
 * `parenthesize_plural_exression()` adds the parentheses of a conditional expression.
 * `make_headers()` parses the headers of a translation, with real line breaks or with `\n`, ignoring the lines that are not headers.

I checked that no existing ticket or open pull request adds tests for these methods."	hmbashar
	25585	Arabic stopwords comparison		I18N	3.7	normal	normal	Future Release	enhancement	reopened	has-patch	2013-10-13T14:49:30Z	2026-07-17T12:51:26Z	"WordPress uses simple string comparison in WP_Query->parse_search_terms() function, which is fine for many languages but Arabic need more than that to provide a really smart search!

There are some chars need to removed before the string comparison, like:

Hamza
http://en.wikipedia.org/wiki/Hamza

Diacritics
http://en.wikipedia.org/wiki/Arabic_diacritics

Tāʼ marbūṭah
http://en.wikipedia.org/wiki/Taw

If this cannot be in core, Could you at least add some filters to do it ?!"	alex-ye
	66217	Further hardening of MO file parsing		I18N		normal	minor	Awaiting Review	enhancement	new	has-patch	2026-09-30T09:37:04Z	2026-09-30T10:24:16Z	"**Description**

`WP_Translation_File_MO::parse_file()` already performs some validation when parsing `.mo` files. See #61794, which added hardening for invalid metadata lines.

There are still other parts of the MO file structure that are not fully validated before being used. In particular, offsets and lengths from the MO header and translation tables are used to calculate table boundaries and read strings without consistently verifying that they describe valid ranges within the file.

Malformed or truncated MO files could therefore result in unexpected parsing behaviour.

**Expected behavior**

The MO parser should reject structurally invalid files cleanly with an `Invalid data` error, while continuing to accept valid MO files.

This would extend the existing hardening introduced in #61794 to the remaining structural data of the MO file.
"	Presskopp
	42721	Introduce native language name as a WP_Locale property		I18N	4.9	normal	normal	Future Release	enhancement	new		2017-11-28T03:11:50Z	2019-01-08T10:27:49Z	"At the moment, displaying the current locale's native name is only possible by reusing `wp_get_available_translations()`, which performs an external request to the translations API and stores the result in a transient.

It would be easier if the native name was available as a `WP_Locale` instance property.

Use case: [41198] introduced [source:tags/4.9/src/wp-includes/script-loader.php?marks=391-445#L391 50+ strings with language names] for MediaElement.js. Looking at the code, they are used as subtitle track labels, unless the track has its own label.

This is only a subset of all locales supported by WordPress. If the goal is to make sure the current locale's name can be used as a subtitle track label, it doesn't make much sense to translate the whole list to 100+ languages."	SergeyBiryukov
	64193	Proposal: Add official support for ltr.css in RTL-based multilingual sites		I18N		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2025-11-04T07:52:43Z	2026-02-06T14:51:16Z	"WordPress automatically loads rtl.css when the site language is right-to-left (RTL), which is helpful for RTL-based sites. However, in multilingual websites where the base language is RTL and the secondary language is LTR (e.g., English), there is no built-in mechanism to load a dedicated ltr.css file.

This creates a gap in styling support, as developers must manually detect the language and enqueue LTR-specific styles. While this can be solved with a few lines of code, the lack of official support reflects a design bias toward LTR-first sites.

Suggested enhancement:
Introduce a standardized way to load ltr.css when the current language is LTR, especially in RTL-based multilingual sites. This could mirror the rtl.css behavior or be exposed via a filter/hook.

Benefits:
- Improved developer experience
- Better styling consistency across languages
- Greater inclusivity for RTL-first global sites"	asadister
	37624	Strings should not have different translators comments?	swissspidy	I18N		normal	normal	Future Release	enhancement	assigned		2016-08-10T15:41:33Z	2024-02-28T16:40:59Z	"See for example here: https://translate.wordpress.org/projects/wp/dev/admin/cs/default?filters[status]=either&filters[original_id]=3731&filters[translation_id]=139896

String `Install %s` have 3 different comments, but there should be only one? If special context is not needed (I am not sure, especially for importer), there should be one comment `translators: %s: Importer, plugin or theme name`?

Or maybe any general solution for GlotPress to unite these comments and display it better for translators? Or any special tool to automatically check for these differences?"	pavelevap
	43802	Default timezone for new sites in WP multisite		I18N	4.9.5	normal	normal	Awaiting Review	feature request	new	has-patch	2018-04-18T19:38:19Z	2019-06-20T14:27:23Z	"In WordPress Multisite, the super admin may set a default language for all newly created sites but not a default timezone. As a matter of fact, the timezone for new sites is taken from translation string ""0"" (context string ""default GMT offset or timezone string""). [https://github.com/WordPress/WordPress/blob/176a28905041fd79c439946a4ba290a87db5991f/wp-admin/includes/schema.php#L402 Relevant code]

Unfortunately, language is not location. It's entirely possible for a community using WordPress multisite to use a language while not being physically based in the usual timezone for said language. Furthermore, many language are spread all over the world.

For that reason I think it would be more correct to decouple default timezone from translation files and add a ""default timezone for new sites"" setting for multisite installations."	moreauf
	50021	"Internationalization of excerpt function in ""Latest Posts"" block"		I18N	5.4	normal	normal	Awaiting Review	feature request	new		2020-04-28T07:02:29Z	2024-02-29T04:51:04Z	"In ""Latest Posts"" block, when extracting excerpts from posted articles,
they are always separated by the specified number of words.

The Japanese text is not space-separated, so the excerpt displayed by
the ""Latest posts"" block is not shortened.

The wp_trim_words function is used to extract excerpts from ""post"".
This function determines whether to cut off by the number of words or
the number of characters by the following conditions.


{{{
if ( strpos( _x( 'words', 'Word count type. Do not translate!' ), 'characters' ) === 0 &&
    preg_match( '/^utf\-?8$/i', get_option( 'blog_charset' ) ) ) {
}}}


I think it is desirable to be able to extract the ""latest posts"" block
excerpt under the same conditions.
"	tmatsuur
	65314	Make `wp-includes/pomo` the canonical pomo source; retire `svn.glotpress.org/trunk/pomo`		I18N		normal	normal	Awaiting Review	task (blessed)	new	has-patch	2026-05-22T04:53:11Z	2026-06-08T07:24:45Z	"== Background ==

The pomo library (PO/MO file reading and writing, plus the Translations and plural-form helpers) currently exists in two places:

- wp-includes/pomo/ — shipped with WordPress core.
- https://glotpress.svn.wordpress.org/trunk/pomo/ — the original home, dating from when GlotPress was an SVN project that bundled pomo as its own subdirectory.

When that split was set up, GlotPress was the source of truth: changes landed in the GlotPress SVN copy and were synced into core.

That arrangement no longer reflects reality:

- GlotPress is now a WordPress plugin developed on GitHub (https://github.com/GlotPress/GlotPress).
- GlotPress requires WordPress, so at runtime it uses the pomo library shipped in wp-includes/pomo/.
- GlotPress no longer pulls from, depends on, or syncs with the SVN copy of pomo. The SVN copy is effectively orphaned and only continues to matter to the extent that core still mirrors it.

== Proposal ==

Officially recognize `wp-includes/pomo/` as the canonical, upstream copy of the library. All future changes (bug fixes, deprecations, PHP compatibility work, etc.) land in core directly via Trac/SVN and are reviewed under the I18N component.

== Notes on divergence ==

The GlotPress SVN copy of pomo contains a samples/ directory with example .po/.mo fixtures used during the library's original development. WordPress core has never shipped that folder and shouldn't start — but those fixtures may still be useful as test data. Options:

- Move the fixtures into core's PHPUnit i18n test fixtures (if not already covered).
- Or, move them into the GlotPress GitHub repo under tests/.
- Or, leave them where they are and treat the SVN location as a frozen fixture archive."	dd32
	64207	Blogger Importer Tools fails with new Blogger export format (.zip with .atom files)		Import		normal	major	Awaiting Review	defect (bug)	new		2025-11-06T06:28:49Z	2025-11-06T06:28:49Z	"The Blogger export format has recently changed. Previously, Blogger provided a single `.xml` file when exporting a blog, which worked with the existing WordPress Blogger importer.

Now, Blogger provides a Google Takeout-style `.zip` archive that contains:
* One or more `.atom` files
* Additional metadata files

Because of this change, the current Blogger importer (`/wp-admin/import.php` → *Blogger*) is unable to process the new export format and results in no data being imported.

This affects all new Blogger exports and breaks migration workflows for users attempting to move content to WordPress.

== Steps to Reproduce ==
1. Go to **Blogger → Settings → Back up content → Download**.
2. A `.zip` archive is downloaded.
3. Go to **Tools → Import → Blogger** in WordPress.
4. Attempt to import the `.zip` file or extract and import the `.atom` file(s).

== Actual Result ==
The importer expects a single `.xml` file and cannot parse the `.atom` files inside the archive. The import results in no imported content.

== Expected Result ==
WordPress should successfully import Blogger content from the current export format (.zip containing `.atom` files).

== Impact ==
* Migration workflows from Blogger to WordPress are currently broken.
* Affects all newly exported Blogger backup files."	devansh2002
	8578	Blogger import incorrectly reports saved user information		Import		normal	normal	WordPress.org	defect (bug)	new		2008-12-11T16:53:52Z	2019-03-15T00:30:30Z	"I installed a fresh copy of WordPress 2.7 and was importing content from a Blogger site.  Before beginning to import, the page claimed that Blogger account information was saved in the database and that I could restart the process.  Even after pressing the ""Clear account information"" button, the message still appeared."	covert215
	39381	Export->Import WordPress menu bug when image is saved as label		Import	4.7	normal	normal	Awaiting Review	defect (bug)	new		2016-12-23T15:11:28Z	2017-06-06T04:06:22Z	"So I use this as ""Home"" content value:

{{{
<img src=""http://SITE.com/wp-content/uploads/2016/01/home-icon.png"" alt=""Home"" />
}}}

And then I export with:
WordPress -> Tools -> Export -> All

And then I import with this official plugin:
wordpress-importer.0.6.3.zip
( https://wordpress.org/plugins/wordpress-importer/ )
And then I see that it was 'Home' text imported (the actual page name).

Another bug is if I leave the field empty, after saving it get gone from Navigation menu at all. While I may want to use CSS for that. And assigning a CSS class to menu item is gone/missing. (or maybe that was from the theme), but I want to have an option to leave a blank element and hook to it's css.
"	KestutisIT
	26247	Importer fails when importing from a server on a private network		Import		normal	normal	WordPress.org	defect (bug)	new		2013-11-25T22:18:00Z	2018-03-02T17:08:23Z	"WordPress import (using the wordpress-importer plugin) does not work correctly if both machines are on the same private network. Text content imports, but all media imports fail. I have traced the problem down to a test that is done in wp-includes/http.php. Though i am not deeply familiar with the WordPress code base, the test seems unnecessary to me, and if it is commented out then the import function will behave as expected.

I have included a patch against WordPress 3.6.1 that demonstrates where the problematic test is and resolves the issue."	dramaley
	6269	RSS Import Doesn't Properly Strip CDATA Tags		Import	2.3.3	normal	normal	WordPress.org	defect (bug)	new	dev-feedback	2008-03-18T00:58:13Z	2019-03-15T00:40:20Z	"When importing an RSS feed that uses the <description> tag as opposed to <content:encoded>, I noticed that WP's RSS import doesn't strip the CDATA tags as it does for the <content:encoded>.

=========Code Lines (83-87)===============
{{{
if (!$post_content) {
// This is for feeds that put content in description
preg_match('|<description>(.*?)</description>|is', $post, $post_content);
$post_content = $wpdb->escape($this->unhtmlentities(trim($post_content[1])));
}
}}}
=====================================

I tweaked the code to solve the problem (see below)

==========Tweaked Code===============

{{{
if (!$post_content) {
// This is for feeds that put content in description
preg_match('|<description>(.*?)</description>|is', $post, $post_content);
$post_content = str_replace(array ('<![CDATA[', ']]>'), '',$wpdb->escape($this->unhtmlentities(trim($post_content[1]))));
}
}}}

======================================

I'd be happy to submit a patch, except I'm not quite that savvy yet. It would be great it someone could incorporate it. Thanks."	sweetdeal
	56685	Remove LiveJournal from importer recommendations		Import		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-09-29T05:06:49Z	2025-06-19T00:06:50Z	"The LiveJournal importer has seemingly been broken for quite some time, but is still recommended on the Importers screen.

After reviewing some data, including the support threads and plugin directory install metrics, I recommend that we retire the LiveJournal plugin from being recommended on the Importer screen.

See also #47243 and #meta5550

The importer list is pulled from WordPress.org, but a fallback list is included in core: https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/import.php#L187"	dd32
	52781	WP Export/Import tool		Import		normal	normal	Awaiting Review	defect (bug)	new	close	2021-03-11T16:04:49Z	2025-09-22T16:32:51Z	"One of the biggest challenges on WordPress is to export/import content with images. I'm trying to export posts from a website and import to another one but no images are being uploaded even if I check ""import attachments etc"". I've tried several plugins but none of them can really get the work done properly."	ayrancd
	52740	WordPress Importer: Add vertical space between inputs		Import		normal	normal	WordPress.org	defect (bug)	new	has-patch	2021-03-09T20:47:55Z	2021-04-08T20:17:12Z	Need bottom space between 2 inputs	ravipatel
	62857	WordPress renames images when importing them		Import	6.7.1	normal	major	Awaiting Review	defect (bug)	new	dev-feedback	2025-01-24T09:47:00Z	2025-05-12T01:38:46Z	"Hello
I found a bug in WordPress import
WordPress renames images when importing them.
Changing the image name will have a negative impact on the body of the new site. It will even affect SEO.
Even if we do not pay attention to the main product images. The images in the product text will disappear after importing the information.
I thought that maybe one to 10 images were not uploaded correctly. After checking, I found that all the images are renamed.
This issue even makes it difficult to search for images in the media library.
I have shown an example in the video below.
Source website https://digit-shop.com
Destination website https://digit-buy.ir

[https://digit-shop.com/wp-content/uploads/2025/01/wordpress.mp4]

[https://wordpress.org/support/topic/bug-in-wordpress-import/]

"	reza465
	25769	import vs DISALLOW_FILE_MODS		Import	3.7.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2013-10-30T11:08:21Z	2017-02-05T14:30:45Z	"When DISALLOW_FILE_MODS is set to true, you cannot install an importer from the plugin repo.

Visiting Tools / Import yields the following screen:

{{{
If you have posts or comments in another system, WordPress can import those into this site. To get started, choose a system to import from below:

No importers are available.
}}}

That first line should be changed to explain that file mods are disabled and that the plugins must be installed manually. Better yet, the list should point to the relevant plugins in the repo and highlight that they need to be installed accordingly.
"	Denis-de-Bernardy
	57982	Allow users to bulk select a new page author when importing content		Import		normal	normal	Awaiting Review	enhancement	new		2023-03-24T20:18:48Z	2023-03-24T20:18:48Z	"Hello! 
Recently I've been importing content between multiple sites where there were a variety of people involved in the projects. The users were mainly administrators but a few editors as well. 

I'd like to add a feature request to bulk-add a user to be assigned to all content with a single click during the import-journey. 

Currently, you have to select the user one by one from a drop-down menu. When you're working with a big volume of updates, this is quite time-consuming, and it would be cool to have a one-click solution. 

Here's an image as an example: https://d.pr/i/tlH7W6 "	kimclow
	6393	Export & import blogroll with categories		Import		normal	normal	Future Release	enhancement	new		2008-03-26T17:01:38Z	2025-04-29T14:32:21Z	"I have attached a patch which will export Blogroll OPML file having a category attribute in it. It is valid to have a category attribute in outline tag. Generated OPML file by wp-links-opml.php has been validated by http://validator.opml.org/.

I have also updated link-import.php and link-parse-opml.php files in wp-admin to parse category attribute and create link_category in database if it does not exist and assign link to that category.

This enhancement will automatically export and import link-categories with links."	jayminkapish
	5678	Respectfully strip newlines in some importers	hansengel*	Import	2.5	normal	normal	WordPress.org	enhancement	accepted	has-patch	2008-01-16T11:20:02Z	2026-04-06T11:11:45Z	"Filing this as an enhancement because it could do with some discussion and insight from wiser and more experienced heads before being labelled ""defect"". :-)

I noticed while helping some users import their blogs that importers of HTML content (such as the RSS importer) don't tidy up superfluous newlines in the import format, which results in unnecessary {{{<br/>}}} elements after {{{wpautop()}}} filtering for display. They turn up in the editor too, which reinforces the problem.

I've adapted one of the filter functions to strip superfluous newlines, and changed my RSS importer to use it. The results have been warmly welcomed by users, who no longer have to clean up their imported blog content. ;-)

{{{strip_newlines()}}} should probably go into {{{wp-includes/formatting.php}}}, if there isn't already a function that already serves this purpose. I couldn't find one, so I adapted this. 

Given that similar HTML block/inline-savvy string-replacement code exists in other formatting functions, perhaps there's an opportunity for some refactoring here? I feel kind of silly proposing a function that is almost entirely duplicated from other code in the core.

I've used it immediately before the ""Clean up content"" section in {{{wp-admin/import/rss.php}}}'s {{{get_posts()}}}, and in an Advogato importer that I've written (which also uses HTML as the content format).

{{{
function strip_newlines($text) {
	// Respectfully strip unnecessary newlines
	$textarr = preg_split(""/(<[^>]+>)/Us"", $text, -1, PREG_SPLIT_DELIM_CAPTURE);
	$stop = count($textarr); $skip = false; $output = ''; // loop stuff
	for ($ci = 0; $ci < $stop; $ci++) {
		$curl = $textarr[$ci];
		if (! $skip && isset($curl{0}) && '<' != $curl{0}) { // If it's not a tag
			$curl = preg_replace('/[\n\r]+/', ' ', $curl);
		} elseif (strpos($curl, '<code') !== false || strpos($curl, '<pre') !== false || strpos($curl, '<kbd') !== false || strpos($curl, '<style') !== false || strpos($curl, '<script') !== false) {
			$next = false;
		} else {
			$next = true;
		}
		$output .= $curl;
	}
	return $output;
}
}}}

Thoughts?"	jdub
	37818	Suggested import id for wp_insert_user		Import	2.0	normal	normal	Future Release	enhancement	new	has-patch	2016-08-25T03:47:56Z	2020-07-17T17:47:49Z	"I would like to import users and would like to keep the previous user ids.

In `wp_insert_post()` I can define the `import_id` and that is the ID that is used if it does not yet exist.

By adding the same parameter to `wp_insert_user()` would allow us to suggest an ID."	grapplerulrich
	48227	extend import with preselect of existing or pre-fill to create new users		Import		normal	normal	Awaiting Review	enhancement	new		2019-10-06T12:17:51Z	2019-10-06T12:17:51Z	"Attached patch will be checking, while importing wordpress posts, imported user existing. If so he will be preselected to map to him. Or if he not exists he will be pre-filled in field to create him.

Additionally the result sentence ""Remember to update the passwords and roles of imported users."" will be only shown, if a new user was created."	mgleich
	53126	Blogger Importer		Import	5.7.1	normal	major	Awaiting Review	feature request	reopened	reporter-feedback	2021-05-01T10:31:46Z	2021-05-01T13:54:55Z	I was trying to import my data from my blogger to WordPress but I can’t as it shows me an error every time I am trying and shows me that the plugin is not tested with the latest version of WordPress as I have installed the latest version so kindly please resolve this issue as soon as possible and I have a self-hosted web site!	harshit366
	44863	Modify the WordPress importer to handle .zip as well as .xml files		Import		normal	normal	Awaiting Review	feature request	new		2018-08-29T15:15:16Z	2018-08-29T15:34:49Z	"Wordpress.com exports sites in two ways, as a .zip file (full of XML files) or as a single XML file, depending on whether the export is done from Calypso or wp-admin.

The importer is expecting a single XML file, and fails if the user tries to import the zip file.

Suggestion:  Modify the importer to accept the .zip file, unzip it into tmp, and then import each of the included XML files."	sterndata
	54685	Admin email verification redirects back to login page		Login and Registration	5.8.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-12-23T00:53:15Z	2024-03-12T19:38:31Z	"Hi everyone,

Recently, our admins started to getting `Administration email confirmation` on logon. However, after clicking on `This email is correct` admins are redirected back to login page and asked to login again. We've tried many times and it's an infinite loop of logging in, confirming email address, redirecting back to login page, logging in, confirming email addres, redirecting to login page and so on.

We use login URL configured on the /wp-admin/options-general.php?page=move-login page and it seems like WP doesn't properly handle admin email confirmation when login URL is set. I had a look at the codebase and I believe this `?action=confirm_admin_email` string parameter gets lost when webserver redirects `wp-login.php` to configured login page: https://github.com/WordPress/WordPress/blob/b788e6255a97dbdd1dc55d42f8fbeeb66c806214/wp-login.php#L623

I added one more hidden input same way as `redirect_to` is implemented https://github.com/WordPress/WordPress/blob/b788e6255a97dbdd1dc55d42f8fbeeb66c806214/wp-login.php#L635 and this fixed the issue.

I'm happy to attach a patch file.

Kind regards,
Mikhail Golenkov"	golenkovm
	63412	Bcrypt - Cannot Verify Password Hashes		Login and Registration	6.8	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-05-08T03:02:57Z	2025-05-08T04:33:06Z	"Hi There,

Some bcrypt hashes cannot be verified likely due to an escape character issue.

One example of hash is:

{{{
$2b$10$AmZawb7AujOXxowQuhUk2.sg69pZge8uG.zdbIc.FMRmz54Op8x9u
}}}

The password for this hash is: A3oc5tq9'U&d

If you try to verify this anywhere, it will verify like it should but it doesn't work in WP. We also noticed this could be an escape issue since if we try to verify this with a simple php script:

{{{#!php
<?php
// The password to check
$password = ""A3oc5tq9'U&d"";

// The bcrypt hash to check against
$hash = ""$2b$10$AmZawb7AujOXxowQuhUk2.sg69pZge8uG.zdbIc.FMRmz54Op8x9u"";

// Verify the password against the hash
if (password_verify($password, $hash)) {
    echo ""correct"";
} else {
    echo ""incorrect"";
}
}}}

This will throw out an error for undefined variable, we need to either wrap the hash in single quotes or escape it like so:

{{{
$hash = ""$2b\$10\$AmZawb7AujOXxowQuhUk2.sg69pZge8uG.zdbIc.FMRmz54Op8x9u"";
}}}

Storing this hash directly in the database with escaped character does not help either.

We found this since we are running an import of users from another platform which also uses bcrypt for hashing passwords. (JS bcrypt library 5.1.1 for reference)

Please let me know what you think and if this is even a WordPress Specific issue."	aaron13223
	60929	Deprecated notice: the_block_template_skip_link()		Login and Registration		normal	normal	Awaiting Review	defect (bug)	new		2024-04-04T20:58:07Z	2024-04-04T21:07:59Z	"When I visit the wp-login.php?action=register page I get a PHP notice:

{{{
Deprecated: Function the_block_template_skip_link is deprecated since version 6.4.0! Use wp_enqueue_block_template_skip_link() instead. in wp-includes/functions.php on line 6078
}}}"	henry.wright
	63317	I caught a bug while trying to regester	Developer of website	Login and Registration	6.8	normal	critical	Awaiting Review	defect (bug)	assigned	reporter-feedback	2025-04-20T16:46:43Z	2025-04-20T16:52:28Z	I wanted to make a web site so i tried using wordpress website but when i clicked register it took me to new page blank with no gui so it needs to be fixed as soon as possible to reduce problem so i hope you will fix it.	akshyat5034q
	66130	Login language switcher button has no explicit background, unreadable with custom login background		Login and Registration	7.0	normal	normal	Awaiting Review	defect (bug)	new	close	2026-09-17T15:58:39Z	2026-10-30T15:27:20Z	"Hi everyone,

I noticed a small contrast issue on the login screen and wanted to report it, along with a proposed fix: happy to hear if I'm missing something or if this has already been discussed elsewhere. I searched Trac before opening this, but didn't find an existing one report, so apologies in advance if this turns out to be a duplicate.

Description: when more than one language is installed, WordPress shows a language switcher button on wp-login.php. Looking at login.css, the rule for this button (`.login .language-switcher .button`) only sets margin-bottom and it doesn't declare its own background, so it relies implicitly on whatever background happens to sit behind it.

This works fine with the default light login background, but if the login screen is customized (via a custom stylesheet enqueued, a white-labeling plugin, or similar) with a dark background or one close to the button's own text color, the button's text becomes very hard to read, since nothing guarantees contrast between the two.

How to reproduce: with WordPress Playground use the following blueprint:

{{{
{
  ""landingPage"": ""/wp-login.php"",
  ""preferredVersions"": { ""php"": ""8.0"", ""wp"": ""latest"" },
  ""steps"": [
    {
      ""step"": ""setSiteLanguage"",
      ""language"": ""it_IT""
    },
    {
      ""step"": ""writeFile"",
      ""path"": ""/wordpress/wp-content/mu-plugins/repro-login-bg.php"",
      ""data"": ""<?php add_action('login_enqueue_scripts', function() { echo '<style>body.login{background:#3c3c3c;}</style>'; });""
    }
  ],
  ""login"": false
}
}}}

Expected: the button should have an explicit background so it stays readable regardless of the page's background.

Actual: the button's background is implicit/transparent and blends into custom login backgrounds.

I've attached simple a patch that adds an explicit background-color to the button rule, reusing a value already used for backgrounds elsewhere in wp-admin.
Would appreciate a second look on whether that's the right value to reuse, or if there's a more appropriate approach for this (e.g. using a dedicated class and so on).

Thanks for taking a look!
"	enrico.sorcinelli
	62485	Lost Password form action URL is not using wp_lostpassword_url		Login and Registration		normal	minor	Awaiting Review	defect (bug)	new	has-patch	2024-11-20T11:49:23Z	2024-12-05T08:31:16Z	"Lost Password form action URL is set by
{{{#!php
<?php
echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) );
}}}


Because of this, if lostpassword_url filter is used the lost password form will no longer work. So ideally the action should be set to:

{{{#!php
<?php
echo esc_url( wp_lostpassword_url($redirect_to) );
}}}


Attached is the updated wp-login.php file with the action URL changed on line 896"	talextech
	63986	Multisite site registration table doesn't support IPv6		Login and Registration		normal	normal	Future Release	defect (bug)	new	commit	2025-09-16T03:23:37Z	2026-07-28T06:27:21Z	"The `wp_registration_log` table stores a log of created Multisite sites, this includes an IP address.

It appears that the table (and code) only expects a IPv4 address, not allowing for IPv6.

Attached PR is untested and only validated on a visual review."	dd32
	54299	Multisite: The link in the password retrieval email always points to the main-site		Login and Registration		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2021-10-20T14:59:52Z	2023-08-18T12:37:19Z	"The link in the password retrieval email always points to the main-site. If the password reset was requested on a sub-site then the link in the email should point to that sub-site.

This is important because the main-site may be in a different language to the sub-site."	henry.wright
	43536	Network registration page		Login and Registration		normal	normal	Future Release	defect (bug)	assigned	has-patch	2018-03-13T10:23:17Z	2026-11-07T17:55:43Z	"Hi,
The registration page for the WordPress Multisite version, has, inside its body, the class page-id-xxx where xxx is the id of the page_on_front.

This is in my opinion a bug, and makes impossible to customize this page via CSS because every rule will be also referred to the page_on_front.

Then it should be useful to have a custom css on the body of the network registration page, something like network-registration-page.

Thanks."	SGr33n
	52721	No way to filter value of $credentials['remember'] in wp_signon		Login and Registration	1.5.1	normal	normal	Future Release	defect (bug)	new	has-patch	2021-03-05T11:44:54Z	2025-02-06T14:12:06Z	"There are famous plugins out there using wp_signon and providing $credentials, so essentially $_POST values are completely ignored. Meanwhile, $credentials lacks of 'remember' value in these plugins, so for the wp_signon function means 'remember = false'.

If you want to force that remember = 1, there's only the wp_authenticate filter available which:
1. is maybe deprecated?
2. does not pass the remember value

So, basically, there is no way to filter the remember value, when the wp_signon function is not properly called by someone."	mirkolofio
	34372	Password reset link invalid for user names containing blanks		Login and Registration	4.3.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2015-10-20T18:35:44Z	2021-01-12T21:56:43Z	When a user name contains a blank, resetting the corresponding password. The URL in the reset email will contain a blank, at which point the link will be interrupted.	ditler
	57032	Percent sign in site title leads to signing up new users not working		Login and Registration	6.0.3	normal	normal	Awaiting Review	defect (bug)	new		2022-11-08T12:03:35Z	2026-02-07T10:40:49Z	"When a web site title contains a percent sign, e.g.

{{{
Brand name - 100% organic
}}}

the process of signing up a new user in `/wp-admin/user-new.php` will fail with a fatal error, probably because the percent sign is interpreted as a placeholder by `sprintf()` in /wp-includes/ms-functions.php around line 1105:

{{{
Fatal error: Uncaught ArgumentCountError: 3 arguments are required, 2 given in
(...)/sites/wheaty_v3/htdocs/wp-includes/ms-functions.php:1105Stack
trace: #© (...)/htdocs/wp-includes/ms-functions.php(1105):
sprintf(' Hallo, Indu wurde..
, 'https://www.whe...#1
(...)/htdocs/wp-includes/class-wp-hook.php(307):
wpmu_signup_user_notification('(...)','(...)..
'36db891bc11cbbc..
, Array) #2
(...)/htdocs/wp-includes/class-wp-hook.php(331):
WP_Hook->apply_filters("",Array)#3(...)/htdocs/wp-
includes/plugin.php(476):WP_Hook->do_action(Array)#4
/(...)/htdocs/wp-includes/ms-functions.php(892):
do action('after_signup_us...,
'(...)', '(...)
'36db891bc11cbbc..., Array) #5
(...)/wheaty_v3/htdocs/wp-admin/user-new.php(226):
wpmu_signup_user('oliver2', 'technik@hansetr..
, Array) #6 {main} thrown in
/(...)/htdocs/wp-includes/ms-functions.php on line
1105
}}}

Presumably, the web site title needs to be escaped somewhere in the `apply_filters()` call. 


"	pekka.gaiser
	37857	Strange behaviour for COOKIE_DOMAIN since Wordpress 4.6		Login and Registration	4.6	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2016-08-28T11:53:15Z	2023-10-05T01:04:22Z	"I hope I am right here, because since the last update for WordPress 4.6 there is a very strange behaviour with the by hand sedate constant COOKIE_DOMAIN.

I have adapted COOKIE_DOMAIN in wp-config.php to be able to use the same login data about multible domains away.

Since the update for WordPress 4.6 this causes problems with the browser cache for all dynamic data transfers, like forms etc. Not only in WordPress, but also in form-plugins or WooCommerce.

With the example WooCommerce: data for the goods basket are updated always only after a renewed page-reload. That means, if you go to basket, no changes are active. You need to reload the basket to see the changes in action. The same behavior with changes in forms for addresses etc.

Absolutely no caching module is active. If browser caching is disabled, everything works fine.

These are the changes I've made for the COOKIE_DOMAIN in wp-config.php:

{{{#!php
<?php
define( 'COOKIE_DOMAIN', '.domain.com' );
define( 'COOKIEPATH', '/' );
define( 'SITECOOKIEPATH', '/' );
define( 'ADMIN_COOKIE_PATH', '/wp-admin' );
define( 'COOKIEHASH', md5( 'https://' . COOKIE_DOMAIN ) );
}}}

If I escape them, everything works fine.

Before the update everything functioned very well and without any problems."	indikatordesign
	58381	"When logging in, the e-mail verification button ""The e-mail is correct"" doesn't accepts to let me in most of the time."		Login and Registration		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-05-23T13:39:48Z	2023-05-23T13:58:57Z	"Hi, it's been years from now that when I am logging in, the e-mail verification button ""The e-mail is correct"" is not working on almost all of the websites I'm developing. All of my websites are up to date with latest WordPress version. When I click the button, WP brings me back to login window with errors(In french) : 
Erreur : le champ de l’identifiant est vide.
Erreur : le champ du mot de passe est vide.

It's a pain to not be able to tell the system the e-mail is correct. Eveytime, to log in, I click on Remind me later. But that forces me to see the e-mail verification window every time I log in to these websites."	joseetremblay
	48260	WordPress beta 5.3 - Unable to type Password when I login....		Login and Registration	5.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-10-08T17:02:50Z	2019-10-14T05:18:36Z	I'm unable to type anything at the password field at WordPress 5.3-beta2-46428	william13110
	36439	Wrong language when resetting password	johnbillion	Login and Registration		normal	normal	Future Release	defect (bug)	reviewing	has-patch	2016-04-07T09:29:24Z	2021-10-20T15:16:27Z	"When using WPML (or other multilanguage plugin) along with multisite, the reset password email comes in wrong language, as the reset password form is sent to network_site_url() instead of site_url(). I think a proper way should be: 

<form name=""lostpasswordform"" id=""lostpasswordform"" action=""<?php echo esc_url( site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>"" method=""post"">"	vasikgreif
	42377	"login screen empty fields msgs are not in sync with the ""Username or Email Address"" field label"		Login and Registration	4.8.2	normal	normal	Awaiting Review	defect (bug)	new		2017-10-30T08:59:29Z	2017-10-30T08:59:29Z	"(My first trac bug report everrrrr ...)

Recently the ""Username"" field label on the login screen (and other places) changed to ""Username or Email Address"" and users can now be authenticated using either a username or an email address.

Authentication by username is default implemented by means of a callback (wp_authenticate_username_password) hooked to the authenticate filter.
Authentication by email address is default implemented by means of an additional callback (wp_authenticate_email_password) hooked to the authenticate filter.

Implementation seems to be a bit sloppy and it doesn't provide much flexibility.

This bug report will concentrate on flexibility in the empty field error msgs displayed when the ""Username or Email Address"" field is left empty (while providing input for the ""Password"" field).

Below I'll describe 3 login situations and the resulting (mostly incorrect) error msgs followed by what I think are the correct error msgs.

Note that the ""Username or Email Address"" field is intentionally left unchanged for convenience. This bug report is not about changing the field label as displayed in the login screen. WordPress core as is provides enough flexibility to do that.

So here we go.

1. Both default authentication methods are hooked to the authenticate filter.
On submitting an empty ""Username or Email Address"" field while providing a password the following msg is displayed:

'''ERROR''': The username field is empty. (<== wrong)

'''ERROR''': The '''Username or Email Address''' field is empty.

2. Only the wp_authenticate_username_password method is hooked to the authenticate filter.
On submitting an empty ""Username or Email Address"" field while providing a password the following msg is displayed:

'''ERROR''': The username field is empty. (<== actually correct)

'''ERROR''': The '''Username''' field is empty.

3. Only the wp_authenticate_email_password method is hooked to the authenticate filter.
On submitting an empty ""Username or Email Address"" field while providing a password the following msg is displayed:

'''ERROR''': The email field is empty. (<== wrong)

'''ERROR''': The '''Email Address''' field is empty.


Since I prefer an error msg where the field label name stands out I've capitalized the field name as well as displayed them in bold. Also helps in reading the error msgs and see the differences.

As can be seen we have an issue here. We can't always seem to get the proper field label reference in the empty field error msgs when submitting an empty ""Username or Email Address"" field.

There must be a way for the methods to refer to their own field label part (Username/Email Address) when individually hooked to the authenticate filter but when both are hooked at the same time refer to the combined field label (Username or Email Address) in the error msg.

I think the program logic needs to be changed so all three situations return the correct empty field error msg on login screen submit."	nlpro
	53728	no re: definition towards the cloud-friendly environment		Login and Registration		normal	minor	Awaiting Review	defect (bug)	new		2021-07-21T21:20:28Z	2021-12-14T23:58:25Z	"hi

no re: definition towards the cloud-friendly environment eg. cognito integration 
miniorange sso is solving the purposes but they basically push the same code with a separate name.
another problem is if ec2 instance hold a custom role no other software vendor able to detect the ec2 instances' role. they just keep asking for API key and access token even ec2 is in the same role. 

note:-
if you go to IAM -> create a custom role with some set of role -> assign same role in ec2 none plugin creator detects ec2 role they just keep asking for API access token of IAM.
thx
sayantan
"	cadentic2018
	44960	wp-login.php does not allow redirecting 'read' capability (Subscriber) to Dashboard instead of Profile upon login		Login and Registration		normal	normal	Awaiting Review	defect (bug)	new		2018-09-18T15:34:01Z	2018-09-18T15:34:01Z	"Re: https://github.com/WordPress/WordPress/blob/4.9.8/wp-login.php#L965

I understand checking if $redirect_to is empty, but why specifically intercept users without 'edit_posts' capability that do have 'read' capability?

Here's some code that I am using to override this: https://gist.github.com/cliffordp/35d74c3bceec9fbd10547b5d1ba988e5

I'm hoping this snippet will not be needed in the future.

Thank you."	cliffpaulick
	54246	wp_logout sometimes causes 'upstream sent too big header'		Login and Registration		normal	normal	Awaiting Review	defect (bug)	new		2021-10-12T14:15:58Z	2025-05-12T01:37:52Z	"I'm using nginx as a proxy for my wp.

By default setting for 'fastcgi_buffer_size' is set to 4k.

If you do a headers_list() during wp_logout. you will see the size is almost 3k.

So if we combine this wp_logout with other hook which also sets couple headers. Sometimes this 4k limit reached and blowing out the buffer and resulting in a HTTP 500 error. The fix is to increase the 'fastcgi_buffer_size' setting. But increasing this setting will cause unnessasary memory usage for regular use.

So Its recommended to decrease this huge list of setcookie especially each of this is so long."	erikdemarco
	66193	wpmu_activate_signup() reports a password that was never set when the user already exists		Login and Registration	3.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-09-26T19:07:05Z	2026-09-26T19:24:51Z	"In `wpmu_activate_signup()`, `$password` is generated before the `username_exists()` check. If the user already exists and the signup includes a site, that password is never applied to the account, but it is still:

 * passed to the `wpmu_activate_blog` action,
 * emailed by `wpmu_welcome_notification()` through the default `Password: PASSWORD` template,
 * displayed on `wp-activate.php`.

[49078] documented `$password` as ""User password, or ""N/A"" if the user account is not new"" for `wpmu_welcome_notification()`, and `wp-admin/network/site-new.php` already passes `'N/A'`, but `wpmu_activate_signup()` never does.

=== Steps to reproduce ===

 1. On a multisite with site registration enabled, create a site signup for a new user via `wp-signup.php`.
 2. Make the first activation fail during site creation, for example by adding an error on `wp_validate_site_data`. The user is created, the site is not.
 3. Visit the activation link again.

**Expected:** the page and welcome email do not show a password, since none was generated for the account.
**Actual:** the site is created, and the page and welcome email show a new password that does not work. The password set on the first attempt was never shown to anyone, so the user can only get in via password reset.

=== Reachability ===

Not reachable through `wp-signup.php` validation alone, since `wpmu_validate_user_signup()` rejects existing usernames. It is reachable when site creation fails partway and the link is retried, with concurrent activations of the same key, and when plugins call `wpmu_signup_blog()` for existing users.

=== Proposed fix ===

Generate the password only when the user is created in `wpmu_activate_signup()`, otherwise use `'N/A'`, matching the docblock and `site-new.php`. Patch and unit tests to follow.

Related: #38474 (PR 8710 also modifies `wpmu_activate_signup()` and adds a test class named `Tests_Multisite_wpmuActivateSignup`), #33209, #31127."	abhishekfdd
	54716	"""Remember me"" label changed to ""Keep me logged in"""		Login and Registration	2.0	normal	trivial	Awaiting Review	enhancement	new		2021-12-31T22:36:46Z	2022-02-20T22:29:05Z	"I think the label ""Remember me"" to be misleading.

The default ""Remember Me"" checkbox behaviour is:
>If checked your browser keeps you logged in for 14 days. 
>If unchecked you're logged out when you quit the browser, or after two days.

The checkbox function is not to remember the user identity, but to keep the authentication valid.
The task of remembering the user credentials is on the browser.

I think that ""Keep me logged in"" would be clearer and more consistent with other services around the internet.
""Keep me logged in on this computer"" is even more accurate.
There are variation on the wording, like [Keep me|Stay][logged in|signed in].

Twenty years ago I would just have suggested to add a tooltip (title) with an explanation, but it has already been established in #24766 that title attributes are to be phased out.
Amazon uses a full blown popup to explain the function of the checkbox.
[[Image(amazon-signin.png)]]

Although a totally minor issue I would like to have a discussion about this.
"	Cyberchicken
	44334	'Invalid username or email' can just be 'Invalid username' in retrieve_password function		Login and Registration		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2018-06-08T15:04:20Z	2018-06-08T15:56:11Z	"Since `strpos` returns `false` if a character is not found in between the input string and returns `0` if found at the beginning of it the error message `There is no user registered with that email address.` will only come up if user could not be located with the supplied email address. For anything else we can just use `Invalid username`.

Example: `myname@gmail.com`
- Error message: There is no user registered with that email address.
- This is correct since strpos only returns true if @ is somewhere within the string or at the end.

Example: `@myname`
- Error message: Invalid username
- No need to add the phrase or email

Example: `@@myname`
- Error message: Invalid username
- No need to add the phrase or email

Example: `myname`
- Error message: Invalid username
- No need to add the phrase or email"	subrataemfluence
	49328	Add filter/action to append link to the login form footer inside the #login container		Login and Registration		normal	trivial	Awaiting Review	enhancement	new		2020-01-30T09:40:26Z	2020-01-30T22:07:05Z	"At the moment, when using login_footer action, you can add the HTML at the bottom of login page. 

I think it can be useful to be able also to add some message or custom links to the #nav or #backtoblog area of the login form. At the moment, the only way is to use the hack described [here](https://wordpress.stackexchange.com/questions/99251/how-do-you-add-a-custom-link-to-the-wordpress-login-page) and it doesn't work for not English pages."	oksanaromaniv
	37870	Adding hints to login/registration form fields		Login and Registration	4.6	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2016-08-29T21:22:51Z	2019-04-19T16:04:22Z	"Could it be possible to clarify a bit the login/registration system for computer-illiterate people, by putting a grayed-out example of the kind of data they have to enter in each login field?

I have already seen this on other websites, and it is very effective IMHO. For example:
- ID: grayed-out johnsmith
- Email: grayed-out john@smith.org
- Etc.

Of course, the grayed-out examples should be considered for i18n, so that the form displays examples relevant to each culture/language."	davidbourguignon
	43080	Allow access to triggered WP_Error when using login_errors and login_messages filters		Login and Registration	4.9.1	normal	normal	Awaiting Review	enhancement	new		2018-01-12T21:39:59Z	2020-10-13T03:28:56Z	"Hi,

There are currently 2 filters login_errors et login_messages but everything is string. As a consequence this is translated. I would be nice to add $wp_error (WP_Error) in these filters to make it even more customizable.

"	anonymized_10765487
	63376	Enhancement: wp_login_form() $redirect params default value fetching update		Login and Registration		normal	normal	Awaiting Review	enhancement	new		2025-05-01T05:59:53Z	2025-05-26T14:29:53Z	"Our current method for retrieving the current URL is as follows:


`$current_url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];`

- https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/loginout/index.php#L20C2-L20C105

This approach relies on `is_ssl()` and `$_SERVER['HTTP_HOST']`, and it accesses `$_SERVER['HTTP_HOST']` without checking if it is set. It also lacks proper usage of sanitization.

## What is your proposed solution?

Why rely on `$_SERVER['HTTP_HOST']` and `is_ssl()` when we can construct the URL directly using:

`home_url( wp_unslash( sanitize_url( $_SERVER['REQUEST_URI'] ) ) )`

This provides a more secure and WordPress-native approach."	sh4lin
	56224	Hardcoded wp-login.php vs login_url filter?		Login and Registration		normal	normal	Future Release	enhancement	new		2022-07-15T08:42:35Z	2023-09-18T20:51:29Z	"The login_url filter allows changing allows changing the login URL.
However there are a few places, where wp-login.php is hardcoded.

Is the filter safe to use to modify the login url? Should (can?) those hardcoded wp-login.php in core be changed?"	malthert
	45143	"If the ""recover password"" form submit button is double-clicked two emails will be sent"		Login and Registration		normal	minor	Awaiting Review	enhancement	new	dev-feedback	2018-10-22T08:44:48Z	2019-03-18T12:11:56Z	"Some users tend to double-click all buttons and links. On the password recovery form (/wp-login.php?action=lostpassword) when the submit button is double-clicked, two emails will be sent. At this point the user is confused about which link to use to recover the password and fails finishing the recovery. 

It would be good for the submit button to have a time limit or some other means to prevent a double-click from happening."	Tiia Rantanen
	39929	"Improve ability to customize ""nav"" links below login form."		Login and Registration	4.8	normal	normal	Awaiting Review	enhancement	new		2017-02-21T19:07:00Z	2017-02-21T19:11:52Z	"In adding a Single Sign-On option to a site, I ran into trouble while trying to add a link to the login form. Flexibility could be introduced by adding an action inside each `p.nav` in `wp-login.php`, but there's already duplicated code. So, I've added a function that builds the output and allows plugins to add new links or change the existing links.

Thanks for considering my request."	dcavins
	59084	Spaces in username during login		Login and Registration		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2023-08-12T06:56:50Z	2026-06-23T12:26:45Z	"The username can have spaces in them which is not a good practice of usernames.
Yes, during the registration it escapes and converts the space to %20 for the username.

We can restrict the user to more efficient username with this:
{{{#!php
<?php

/**
 * Check if the sanitized username contains spaces and add an error if needed.
 *
 * This function is hooked into the registration_errors filter to check the sanitized
 * username for spaces. If a space is found in the username, an error message is added
 * to the list of registration errors.
 *
 * @param WP_Error $errors            A WP_Error object containing any registration errors.
 * @param string   $sanitized_user_login The sanitized username without spaces or special characters.
 * @param string   $user_email        The email address entered during registration.
 * @return WP_Error Modified WP_Error object with added error message, if applicable.
 */
function loginpress_check_username_for_spaces( $errors, $sanitized_user_login, $user_email ) {
    if ( strpos( $sanitized_user_login, ' ' ) !== false ) {
        $errors->add( 'username_space', __( 'Username cannot contain spaces.', 'text-domain' ) );
    }
    return $errors;
}
add_filter( 'registration_errors', 'prefix_check_username_for_spaces', 10, 3 );
}}}
"	wparslan
	66616	Tests: Add unit test coverage for wp_login_form()		Login and Registration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T14:47:35Z	2026-11-07T16:22:56Z	"Add unit test coverage for `wp_login_form()` in `src/wp-includes/general-template.php`.

The tests cover:
- Returning the login form markup when the `echo` argument is set to `false`.
- Echoing the login form markup by default (and returning null).
- Customizing form IDs, field IDs, input labels, and prefilled username values.
- Setting `required=""required""` via `required_username` and `required_password` parameters.
- Filtering markup via the `login_form_top`, `login_form_middle`, and `login_form_bottom` filters.

GitHub PR: https://github.com/WordPress/wordpress-develop/pull/15793"	devmuhib
	42053	There should be an option to make wp_login_form() functions's username and password input field required.		Login and Registration	4.9	normal	normal	Awaiting Review	enhancement	reopened		2017-10-01T11:47:32Z	2019-04-24T22:03:20Z	There should be options to make the `username` and `password` filed required if necessary or if any developer wants to make it `required` by HTML in `wp_login_form()` function inside `src/wp-includes/general-template.php` file through `$args` argument.	rnaby
	40705	Unable to login to admin backend from a wordpress login modal window		Login and Registration	4.7.3	normal	normal	Awaiting Review	enhancement	new		2017-05-09T19:48:11Z	2017-05-09T21:15:38Z	"Hello,

I am unable to login to WordPress backend from the login modal. Always get 'ERROR: The password field is empty.' error but if I login through this link https://yourwebsite.com/wp-admin/ or https://yourwebsite.com/wp-login.php it works.

I believe the modal login should work irrespective of where you are?

Have experienced this on more than five sites.

See the attached screenshot.

http://prnt.sc/f5xwb8

Thanks"	dickensayieko
	55260	Update Codex Page to Include Password Visibility Button and Language Switcher		Login and Registration	5.9.1	normal	normal	Awaiting Review	enhancement	new	needs-docs	2022-02-25T16:43:24Z	2022-02-25T16:43:24Z	"The Codex page, [https://codex.wordpress.org/Customizing_the_Login_Form /Customizing the Login Form], needs to be updated to include the [https://ibb.co/1dZ23W1 /login form password visibility button and the language switcher]. 

To assist, the following can be added to the updated page for the benefit of all WordPress users:

**Code to Disable the Password Visibility Button:**


{{{
function remove_wp_hide_pw_button() {

?><script>
	if ((document.addEventListener != null) && (document.querySelector != null)) {
    document.addEventListener( 'DOMContentLoaded', function() {
        var b = document.querySelector('button.wp-hide-pw');
        if (b != null) b.remove();
    });
}
</script>
<?php
}

add_action('login_footer', 'remove_wp_hide_pw_button');
}}}

**Filter to Disable the Language Switcher:**

{{{
add_filter( 'login_display_language_dropdown', '__return_false' );
}}}

**Useful:**

(1) Above codes can be implemented using the plugin, [https://wordpress.org/plugins/code-snippets/ /Code Snippets].
(2) Above codes have been thoroughly tested and work as intended.
(3) No security issues detected when using the above codes.

Thank you!"	generosus
	52964	Video On Login Page		Login and Registration		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2021-04-03T12:12:29Z	2023-08-16T16:43:16Z	"So I was wondering about how can I add a video as a background of the login form by editing the login form's code.
Turns out we cannot as there is no vector to do so.
Can we add a hook to do so..?"	wparslan
	60737	invalid_email or user_email ?		Login and Registration	6.5	normal	minor	Awaiting Review	enhancement	new	dev-feedback	2024-03-10T21:40:10Z	2026-05-22T11:25:30Z	"Hey there,

I'm talking about login error keys.
Here are the 3 things we can find in the WP Core:
{{{#!php
<?php
$errors->add( 'invalid_email', __( '<strong>Error:</strong> There is no account with that username or email address.' ) );
$errors->add( 'invalid_email', __( '<strong>Error:</strong> The email address is not correct.' ) );
$errors->add( 'user_email', __( '<strong>Error:</strong> The email address is not correct.' ), array('form-field' => 'email', ) );
}}}
The 1st is an error message when you try to login using an email address that is not used as a user in this site, the key is ""invalid_email""
The 2nd is an error message when you try to register a new user with an email address that is not correctly formatted, the key is ""invalid_email""
The 3rd is an error message when you try to update your personal profile with an email address that is not correctly formatted, the key is ""user_email""

So we have 2 keys and 2 messages (like ""A1 A2 B2"", should be ""A1 B2 B2"") but the message 2 is sharing both, we should clearly decide is ""invalid_email"" is when the email does not exists in our site OR when the email is not correctly formatted.

I suggest that the 2nd message should share the ""user_email"" and let the ""invalid_*"" for the login stuff, like we already have ""invalidcombo"" or ""invalid_username"" that shares the same kind of issue.

thanks for your reading time"	juliobox
	40768	site.com/login should not redirect to login page when user is already logged in		Login and Registration		normal	normal	Awaiting Review	enhancement	new	has-patch	2017-05-15T13:53:08Z	2024-04-19T15:54:33Z	"When I am already logged in I should not be redirected to Login page if I type in `mysite.com/login`. Rather WordPress should be able to decide which page I should be on in this situation.

Being redirected to Login page even when I am already logged in must be treated as a bug. The reason is I am being able to login as a different user by going to login page directly when I am already logged in!

For example if I am already logged in as admin and type in `mysite.com/login` I should directly be taken to `wp-admin`. Same decision could be taken for different user privileges like if I am logged in as a subscriber or as a participant then I might land on site's home page.

Inspired from #40762 I have modified the decider so that WordPress can take this decision itself and stop landing logged in users to login page."	subrataemfluence
	65393	custom login page		Login and Registration		normal	normal	Awaiting Review	feature request	new		2026-06-02T17:59:22Z	2026-06-02T18:23:04Z	"i firmly believe in the customize principle of wordpress.

So in every wordpress installation i add this simple PHP code:
{{{
if (!class_exists('CustomLoginLogo')) {
    class CustomLoginLogo {
        public function setCustomLogo() {
            $custom_logo_id = get_theme_mod('custom_logo');
            $logo_url = wp_get_attachment_image_url($custom_logo_id, 'full');

            if ($logo_url) {
                echo <<<EOD
<style type=""text/css"">
    body.login {
        height: auto !important;
		background: #c1c1c1;
    }           
    body.login div#login h1 a {
            background-image: url({$logo_url}) !important;
            background-size: contain !important;
            width: 100% !important;
    }
</style>
EOD;
            }
        }
    }
}
    $customLoginLogo = new CustomLoginLogo();
    add_action('login_head', array($customLoginLogo, 'setCustomLogo'));


}}}


This code does 2 things, changes the background color of the login page and replaces the wordpress logo with the site's logo. 

With this simple customization, the site feels more yours. 

So i am suggesting that this should be in the general settings, pick a color or image as background and change the logo of the login page.

That's my little opinion"	avagp
	46229	Email Direction		Mail		normal	normal	Future Release	defect (bug)	new	close	2019-02-10T21:53:27Z	2025-08-05T12:56:44Z	"Hello WordPress,
Thank you so much for changing the world.

I am using the RTL layout of WordPress and all emails that I receive from WordPress, like changing password, reviewing a comment are in LTR direction.

Hope you fix this in the next update or let me know that how can I fix it.

Regards,
Rahim"	rahimvaziri
	64940	PHP mailer Exception Handler		Mail		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-03-24T14:15:36Z	2026-05-20T06:07:03Z	"Wrap the phpmailer_init hook (do_action_ref_array( 'phpmailer_init', array( &$phpmailer ) )) within a try-catch block in pluggable.php to ensure that exceptions during mail initialization are properly caught and logged.

Currently, if an exception occurs during the execution of the phpmailer_init hook (e.g., due to file permission issues when accessing attachments or embedded resources), the failure is not clearly logged, making debugging difficult. In a real-world scenario, a failure occurred due to restricted access to an uploads directory, but the root cause was not visible until the hook was wrapped in an exception block.

By handling exceptions at this point, errors such as ""wp_mail failed"" or file access issues (e.g., inability to access /wp-content/uploads) can be properly surfaced and logged, improving debuggability and reliability of the mail system."	kajori
	51717	Emails in WordPress (Templating and Sending methodology)		Mail		normal	normal	Awaiting Review	feature request	new	dev-feedback	2020-11-05T20:50:48Z	2025-08-17T16:54:36Z	"Hello, 

One issue that has come up with clients and the ability to apply branding to emails consistently across website generated emails. Because plugin developers need to implement their own templating for emails.

Some Woo-commerce extensions use the Woo-commerce system, which is great, but some don't. Between contact forms (not WooCommerce related), Orders and WordPress emails etc, its quite problematic to implement a consistent presentation for emails across the system. 

Another item I've noted - is with my custom apps built previously we have used a scheduling system to send system generated emails, this excludes delays for very important items like forgotten passwords. But essentially all it is, is a database table for to be sent emails, that are sent after that point in time. This could also be used as a log. 

I understand this could be setup as a plugin, but if implemented well and inline with the desired future functionality of WordPress could be a nice addition to the system and could have some small performance improvements for requests that generate emails (this is was observed by myself moving to this setup with custom apps/sites/software in the past it is now my standard in any application of quality). 

"	Nate1
	53229	"""Alt Text"" label misaligned in French"	audrasjb*	Media		normal	normal	Future Release	defect (bug)	accepted	has-patch	2021-05-19T07:50:05Z	2025-07-04T07:53:10Z	"Hello,

In French, in a post edit when adding an image or a gallery block, the ""Alt Text"" label is misaligned with the input field.

We can see this behaviour on Ubuntu20.04/Firefox88.0.1 and Chrome 90.0.4430.212.

**Step to reproduce**
- be sure to have French as language in your profile
- in a post add an ""Image block""
- click on ""mediathèque"" to add an existing image
- Check an image and see the sidebar

"	sebastienserre
	43531	$content_width and Add Media (+ twentyseverteen?)		Media	4.9.4	normal	normal	Awaiting Review	defect (bug)	new	close	2018-03-12T20:07:38Z	2025-01-20T15:53:24Z	"I apologize in advance if this isn't a bug. However, I couldn't seem to find any documentation on the expected behavior (e.g., there's nothing on the codex page for the image_size_names_choose filter). None the less, it certainly feels odd / awkward. 

When adding an image (to a post / page), the size setting select (Add Media > Attachment Display Setting > Size) doesn't feel quite right. I understand the relationship between (global) $content_width and this setting. That is, the <img> tag's width= is forced / maxed to the $content_width (if the image is wider than the $content_width). 

I see this happening for the size = large images, as well as any image sizes I've added via add_image_size() that are too wide. However, it (i.e., the forced max width=) doesn't happen to the size Medium when the Medium width is set wider than the content width. 

Perhaps this is intentional? 

Theme was twentyseventeen. Unfortunately, I've haven't had time to try to reproduce this on another theme. The size Medium was set to 800 x 800. 

I'd like to suggest the Settings > Media page display the current $content_width, as well as explain a bit, as well as link to a deeper explanation. As it is, a user can select a theme, blindly set the image sizes (not realizing who they actually map to the theme), and then be hit with the experience (?) described above, AND have no idea why. 

Truth be told, it took me too long to figure this out. Somehow I've managed to avoid $content_width. Too many custom themes maybe? :)

Or am I just missing something about the intent of what otherwise feels like a sloppy experience? 

I hope this helps. TIA

"	ChiefAlchemist
	49587	Add error handling for the media manager Ajax response		Media	3.5	normal	normal	Future Release	defect (bug)	new		2020-03-06T11:00:27Z	2021-03-02T21:47:47Z	"When the media manager modal performs an Ajax request to query attachments, if the Ajax call responds with an error then the user is presented with an eternal loading spinner and no indication there has been a problem.

I think there are two places which need a `fail()` handler for the Ajax promise:

* `wp.media.model.Attachments.more()`
* `wp.media.model.Query.more()`

I haven't done any testing yet though to confirm this.

Needs a decision around how best to present an error to a user. Probably needs UI work; maybe one of the UI pieces such as the upload failure message can be reused."	johnbillion
	65931	Add tests for get_media_embedded_in_content()		Media		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-21T13:09:27Z	2026-10-31T16:50:14Z	"Related: #26674, #59791.

In #26674, tests are going to be added for `get_tag_regex()` although that function has no current use in Core.

`get_media_embedded_in_content` uses a regular expression that is very similar (basically the same one) to the one used in `get_tag_regex()`. The purpose of the function is similar as well, although a little more specialized.
 
All the more so, it would be good to have tests for `get_media_embedded_in_content`.


For history, `get_tag_regex()` was introduced in [23729] and I couldn't find any usage of the function in that commit. It was later used internally in `get_media_embedded_in_content()` and removed in [31574].

Today, `get_media_embedded_in_content()` uses its own regex."	afercia
	48026	Always show selected image even if it doesn't match search string		Media		normal	normal	Awaiting Review	defect (bug)	new		2019-09-12T06:35:43Z	2019-11-04T01:25:45Z	"When embedding an image in a post, if there is a pattern in the search box and an image is uploaded that doesn't match it, the new image details are not shown until the search pattern is cleared.

Steps:

1. Click ""Add Media""

2. Enter search pattern, e.g. ""abc""

3. Switch to ""Upload Files"" tab and upload a file, e.g. ""xyz""

4. Once the file is uploaded, you see the ""Media Library"" tab again, but no details are showing in the ""Attachment Details"" area, although the newly-uploaded file is selected

5. Clear the search pattern

6. Selected image details appear

The correct behavior is to always show the details of the selected file, even if it doesn't match the search pattern, at least immediately after it's been uploaded."	galbaras
	59753	Attach image to existing content functionality not working properly		Media		normal	normal	Future Release	defect (bug)	new		2023-10-27T07:14:55Z	2024-04-18T20:37:08Z	"Hello guys, Hope you're doing great! 

So, I was trying to attach my image to existing content of a post from the media module. But I guess that functionality isn't working at all! can someone please check into this? 

Thanks! 

Screen recording: https://screenrec.com/share/aPDzmSAhoR
Tested Environments: Fresh WordPress ( 6.3.2 , 6.4 - Beta , 6.5 alpha-57013 )"	mihirdev21
	61554	Attachment page not redirecting to attachment file even after setting the option in wp-admin/options.php		Media	6.5.5	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-07-03T05:37:50Z	2025-05-12T01:38:23Z	Found an issue. Kindly review if its a bug. So, if we upload attachments to wordpress media gallery and url is website.com/?attachment_id=101 or something. Even if we set attachment page to redirect to attachment file, it will not redirect. And with the same setting enabled, if we change permalink structure of attachment to something like website.com/photofile then when we open the attachment page, it will redirect to the png/jpg. Can someone please confirm if the are also facing same issue and if its a bug.	beingbaban
	42978	Automatically clear file upload error messages		Media		normal	normal	Future Release	defect (bug)	new		2017-12-25T15:50:20Z	2020-08-31T10:09:33Z	"When an error occurs on file upload in the media uploader while drafting a post, the error message persists after both a) another file is successfully uploaded, b) the media manager is closed and re-opened.

In both of these cases, it is my opinion that the user is best served by having the error message automatically dismissed, as 

1. Its positioning is not typical of a ""historic/cumulative"" error log, 
2. It may be assumed that by successfully uploading another file the error first encountered is no longer relevant, and
3. An indefinite amount of time may have passed since the error was first encountered and the media manager subsequently closed and the next time the media manager/upload div was re-opened such that the user may have completely forgotten about the error and may be confused to see a red error box and mistakenly think it is associated with some action he/she just took,
4. As a dialog, nothing about the media manager suggests that its state should persist after being closed and re-opened.

(see attachment as an example of an error)"	ComputerGuru
	34296	Autoplay for more than one self-hosted video fails		Media	4.3.1	normal	normal	Awaiting Review	defect (bug)	reopened		2015-10-14T10:05:48Z	2017-07-05T20:12:26Z	"Hi,

When adding more than one self-hosted video to a page (using the [video] shortcode or media browser to insert), if you set more than one to autoplay, then none of them autoplay.

This might be a mediaelementjs problem.

Stock 4.3.1 install with TwentyFifteen:
http://test.10degrees.uk/one-video-autoplay/ - one video set to autplay, works fine.
http://test.10degrees.uk/two-videos-autoplay/ - both videos set to autoplay, neither plays.

These are both mp4 files.

Jonny"	jonnyvaughan
	63054	Back end media library display problem		Media	6.7.2	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2025-03-04T19:42:42Z	2025-03-10T10:19:59Z	"I'm using WordPress 6.72, and the media library is not showing any images from my library in grid mode, so I'm not able to insert featured images into posts.
I have disabled all plugins and it is still broken. The front end works fine. The site is at https://sunrooms2.com/"	jontubmen
	56728	Can we fix featured image view issue when allowed SVG image type?		Media	6.0.2	normal	normal	Awaiting Review	defect (bug)	new		2022-10-04T09:17:51Z	2025-09-10T11:26:04Z	"Hi,

I am facing issue when allowing to upload SVG image on wordpress media.

You can see mentioned SS.

Thank you "	sumitsingh
	63475	Changes made to the site icon image through media library are not reflected on the site icon		Media	4.3	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-05-22T12:24:11Z	2025-05-27T19:41:00Z	"If the image used as a site icon is edited through the media library and saved, then the changes made to the site icon image is reflected in the preview of the site icon in the settings -> general page but the changes are reflected on the actual site icon displayed for that site.

Steps to Reproduce -
1. Go to Settings -> General and click on ""Choose a Site Icon"".
2. Upload any image and set it as the Site Icon.
3. Go to Media Library and select the image used as the site icon.
4. Edit the image, do some changes like rotating the image and save the changes.
5. Go to Settings -> General and check the site icon preview.
6. Remove the site icon and again chose the same edited image as site icon.
7. Save changes and observe.

Expected:
The site icon should be updated with the edited image.

Actual:
The site icon is still displayed as the original image."	avinashbhosale
	59339	Conversion to webp causes fatal error when original image is a palette image (as opposed to truecolor)		Media	6.3.1	normal	normal	Awaiting Review	defect (bug)	new		2023-09-13T13:41:52Z	2025-07-21T18:55:40Z	"I am working on an image conversion plugin. I've run into a bug when the original image is a ""paletter image""[https://www.thecoderscamp.com/paletter-image-not-supported-by-webp/]"", or in other words, an image that has an indexed palette rather than being truecolor. I believe it's a png. 

The error I get is: 

{{{
Fatal error: Paletter image not supported by webp in /home/username/public_html/wp-includes/class-wp-image-editor.php on line 584
}}}

And how I'm using it: 

{{{#!php
<?php
$image_editor = wp_get_image_editor( $this->image_path );
$new_file_info = $this->get_editor()->save( $this->image_path, 'image/webp' );
}}}

This method worked fine on hundreds of images of png, jpg, and tiff until I ran into this one that has a ""palette"". 

In `wp-includes/class-wp-image-editor-gd.php:487`, if the image loaded into WP_Image_Editor is a png, we check for a palette and convert to true color before saving. I believe that we need to also check in the webp conditional and, just like for png, convert to truecolor first. 

"	jakeparis
	57741	"Core throwing 'Attempt to read property ""post_type"" on null'"		Media		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-02-17T04:04:23Z	2025-09-10T11:24:14Z	"A calls B. B calls C.

C is calling get_post() passing in args from B.

C then proceeds to immediately use the results of get_post() ($post->post_type) without checking the response, resulting in an edge condition where a warning is thrown: Attempt to read property ""post_type"" on null

A: https://github.com/WordPress/WordPress/blob/f0789b64238a97adc3ce0c9b8cdf33c1753f550c/wp-admin/post.php#L186-L189

B: https://github.com/WordPress/WordPress/blob/f0789b64238a97adc3ce0c9b8cdf33c1753f550c/wp-admin/edit-form-blocks.php#L249-L253


C: https://github.com/WordPress/WordPress/blob/f0789b64238a97adc3ce0c9b8cdf33c1753f550c/wp-includes/media.php#L4552-L4558"	haykuro
	53895	Default Audio Player Bug, mejs-container wp-audio-shortcode mejs-audio		Media		normal	normal	Awaiting Review	defect (bug)	new		2021-08-08T22:33:28Z	2021-08-08T22:38:59Z	The default code has a problem in this zone mejs-container wp-audio-shortcode mejs-audio. The width is set and this causes viewing problems after changing browser window size. The width is hard coded and should not be set. To reproduce the bug add a audio file with wp customizer, in a theme with a header, save. View code and the width is set. This would be fine if the width is a percentage or not set at all. I personally think the width should be removed.	akissz
	50011	Edge case in image lazy-loading		Media	5.5	normal	normal	Awaiting Review	defect (bug)	new		2020-04-25T20:40:32Z	2020-05-20T21:42:52Z	"In #44427 the feature to lazy load images by default was added. 

The code uses regex and hence there are some edge cases which can complicate. 

One such case is adding 


{{{
 loading=lazy
}}}

with space before 'loading' in the alt value. 

This can be done in the block-editor by selecting the image and adding the above in:

Image settings > Alt text (alternative text) box

This is allowed in HTML. 

When this is done, the regex thinks that the image tag has a lazy loading attribute and doesn't add it. "	superpoincare
	43816	Editing Image Can Lead to Mixed Metadata		Media	4.9.5	normal	normal	Future Release	defect (bug)	new		2018-04-20T00:04:30Z	2022-11-23T16:09:37Z	"== Summary
If an image is uploaded at a size allowing the creation of a defined image size (ie, ""large"", ""twentyseventeen-featured-image"", etc.) and the image is then edited to a size which doesn't allow that defined size to be created, the non-supported size can still be placed and will display the original image.

== Steps to Reproduce
1. Upload an image which is slightly larger than a defined image size in a particular theme (for example, if using the WordPress default definition for ""large"" images, 1,024 pixels, upload an image 1,100 pixels wide)
1. Edit the image, and scale or crop it to be 1,000 pixels wide
1. Save edit
1. Within the post editor, ""add media"", select the ""large"" image size, and place within body of post

=== Expected Behavior
* //Developer//: The ""large"" image should not be able to be selected within the ""Place Media"" dialog
* //Regular user//: The ""large"" image placed should reflect the image edit

=== Result
The ""large"" size is selectable and the **original** image is placed within the page.

=== Other Effects
In this particular example, if the Media Library is in ""grid"" view, and our edited image is selected, the dialog which opens will display the incorrect original image, as the dialog preferentially uses the ""large"" image size.

== Source of Behavior

I believe the problem stems from line 880 of https://core.trac.wordpress.org/browser/tags/4.9.5/src/wp-admin/includes/image-edit.php :

{{{
$meta['sizes'] = array_merge( $meta['sizes'], $img->multi_resize( $_sizes ) );
}}}

* `$meta['sizes']` contains all of the sizes which were able to be created when the image was uploaded
* The return from `$img->multi_resize()` only has keys set for those sizes that can be created from the edited image
* Using `array_merge` keeps the original values not returned by `$img->multi_resize()`, despite the fact they are no longer valid for this edit

== Fix

I believe the fix may be as simple as simply returning the result of `$img->multi_resize()` without merging it into the existing `$meta['sizes']`, which are mainly used in this context to create the `_wp_attachment_backup_sizes` array.

{{{
$meta['sizes'] = $img->multi_resize( $_sizes );
}}}"	rogerlos
	52777	Editing an empty gallery results in a javascript error		Media		normal	normal	Future Release	defect (bug)	new	reporter-feedback	2021-03-11T13:22:38Z	2025-05-12T01:37:50Z	"How to reproduce?

1. In the **classic** editor, create a post with a gallery with one image and save the post.
2. Go to the media library and delete permanently this image.
3. Go back editing the previous post. The gallery displays ""No items found"".
4. Attempt to edit the gallery and check the browser console.

Here is the error displayed:

{{{
Uncaught TypeError: Cannot read property 'args' of undefined
    at n.<anonymous> (media-views.min.js?ver=5.8-alpha-50521:2)
    at f (underscore.min.js?ver=1.8.3:2)
}}}

and the trace:

{{{
(anonymous)	@	media-views.min.js?ver=5.8-alpha-50521:2
f	@	underscore.min.js?ver=1.8.3:2
setTimeout (async)		
(anonymous)	@	underscore.min.js?ver=1.8.3:2
p	@	backbone.min.js?ver=1.4.0:2
f	@	backbone.min.js?ver=1.4.0:2
c	@	backbone.min.js?ver=1.4.0:2
n.trigger	@	backbone.min.js?ver=1.4.0:2
(anonymous)	@	media-models.min.js?…r=5.8-alpha-50521:2
c	@	load-scripts.php?c=0…r=5.8-alpha-50521:2
fireWith	@	load-scripts.php?c=0…r=5.8-alpha-50521:2
(anonymous)	@	wp-util.min.js?ver=5.8-alpha-50521:2
c	@	load-scripts.php?c=0…r=5.8-alpha-50521:2
fireWith	@	load-scripts.php?c=0…r=5.8-alpha-50521:2
l	@	load-scripts.php?c=0…r=5.8-alpha-50521:2
(anonymous)	@	load-scripts.php?c=0…r=5.8-alpha-50521:2
load (async)		
send	@	load-scripts.php?c=0…r=5.8-alpha-50521:2
ajax	@	load-scripts.php?c=0…r=5.8-alpha-50521:2
s.ajax.s.ajax	@	load-scripts.php?c=0…r=5.8-alpha-50521:5
(anonymous)	@	wp-util.min.js?ver=5.8-alpha-50521:2
s.Deferred.s.Deferred	@	load-scripts.php?c=0…r=5.8-alpha-50521:5
send	@	wp-util.min.js?ver=5.8-alpha-50521:2
sync	@	media-models.min.js?…r=5.8-alpha-50521:2
fetch	@	backbone.min.js?ver=1.4.0:2
more	@	media-models.min.js?…r=5.8-alpha-50521:2
more	@	media-models.min.js?…r=5.8-alpha-50521:2
edit	@	media-editor.min.js?…r=5.8-alpha-50521:2
edit	@	mce-view.min.js?ver=5.8-alpha-50521:2
edit	@	mce-view.min.js?ver=5.8-alpha-50521:2
onclick	@	plugin.min.js?wp-mce-49110-20201110:1
c.fire	@	tinymce.min.js?ver=49110-20201110:2
fire	@	theme.min.js?wp-mce-49110-20201110:1
o	@	theme.min.js?wp-mce-49110-20201110:1
C	@	tinymce.min.js?ver=49110-20201110:2
d	@	tinymce.min.js?ver=49110-20201110:2
}}}
"	Chouby
	65493	Editor: Broaden the Document-Isolation-Policy header to all admin pages	adamsilverstein	Media		normal	normal	7.3	defect (bug)	assigned	dev-feedback	2026-06-19T13:16:19Z	2026-10-26T18:05:30Z	"{{{#!div
The block editor sends the `Document-Isolation-Policy` (DIP) header to enable
SharedArrayBuffer for WebAssembly-based client-side media processing in
Chromium 137+. Today the header is hooked onto only four screens:
`load-post.php`, `load-post-new.php`, `load-site-editor.php`, and
`load-widgets.php`.
}}}

Because the header is scoped that narrowly, navigations from an editor screen to a sibling admin screen (site editor sub-routes, template operations, pattern editing) load **without** the header. Chromium 137+ then places those documents in a different browser agent cluster from the editor. The agent-cluster mismatch breaks cross-window communication (`window.opener`, popup references) and SharedArrayBuffer access that client-side media processing relies on.

This is the same problem that currently forces several editor E2E suites to disable client-side media processing wholesale.

== Proposed change ==

Send the DIP header on **all** admin pages by hooking `wp_set_up_cross_origin_isolation()` onto `admin_init` instead of the four `load-*` screen actions. Keeping every admin navigation in the same agent cluster preserves cross-window communication.

The block-editor screen gate is no longer needed. Cross-origin isolation is only relevant for users who can upload media, so the screen check is replaced by a single capability check:

{{{
#!php
<?php
// Cross-origin isolation is not needed if users can't upload files anyway.
if ( ! current_user_can( 'upload_files' ) ) {
	return;
}
}}}

This is also cheaper than resolving the current screen on every admin request.

The existing escape hatch for third-party page builders that override the block editor via a custom `action` query parameter is retained:

{{{
#!php
<?php
if ( isset( $_GET['action'] ) && 'edit' !== $_GET['action'] ) {
	return;
}
}}}

== Scope ==

 * '''Admin-only.''' The front-end preview is intentionally out of scope; DIP
   remains an admin-only concern.
 * The classic-theme site-preview skip is a separate change (see #65399).

== Affected functions ==

 * `wp_set_up_cross_origin_isolation()` in `src/wp-includes/media.php`
 * Hook registration in `src/wp-includes/default-filters.php`

== How to test ==

 1. Run Chromium 137+ against a build with the patch applied.
 2. As a user with the `upload_files` capability, confirm the
    `Document-Isolation-Policy: isolate-and-credentialless` response header is
    present on `/wp-admin/index.php`, `/wp-admin/site-editor.php`,
    `/wp-admin/edit.php`, and `/wp-admin/post.php?post=…&action=edit`.
 3. Sign in as a Subscriber (no `upload_files`) and confirm the header is '''not'''
    sent on any admin page.
 4. Visit a third-party editor URL with `?action=elementor` (or similar) and
    confirm the header is '''not''' sent.
 5. Run `vendor/bin/phpunit tests/phpunit/tests/media/wpCrossOriginIsolation.php`.

== Patch ==

Pull request: https://github.com/WordPress/wordpress-develop/pull/11298

Upstream Gutenberg pull request:
https://github.com/WordPress/gutenberg/pull/76662
"	adamsilverstein
	62060	Error Message When Using the WordPress Uploader		Media		normal	normal	Awaiting Review	defect (bug)	new		2024-09-17T19:27:51Z	2024-09-17T19:27:51Z	I have multiple clients experiencing the same issue reported in this forum post: https://wordpress.org/support/topic/error-message-when-i-try-to-upload-to-media-library/. Using the browser uploader works, but they're becoming increasingly frustrated at having to use that as a workaround. 	g0nff
	63357	Error function  exif_imagetype() functions.php on line 3338		Media		normal	normal	Awaiting Review	defect (bug)	new	close	2025-04-27T06:22:32Z	2025-06-07T16:28:42Z	"I have error with ""exif_imagetype(): Stream does not support seeking in"" at wp-includes/functions.php on line 3338. i Change getimagesize then it works fine."	devnguyentien
	52509	Error generating Thumbnails of PDF-Files		Media	5.6.1	normal	normal	Awaiting Review	defect (bug)	new		2021-02-12T12:46:26Z	2023-07-02T13:37:05Z	"This is a follow-up to #48853.

This issue seems to be still present in Version 5.6.1
Some PDF-Files cause an internal server error, some do not. (The server's error log tells something about missing headers)

Here's what i did to isolate the error:
- I examined the PDF-Files. The affected files had a PDF-Version 1.7 an were created with non-Adobe-Tools (e.g. Office365). PDFs with Version 1.4 and 1.5 (created with Acrobat) worked well.
- tried it with a local copy of the site on XAMPP: No Problems
- used a little code-snippet to prevent thumbnail-generation in general: Upload works

This is the snippet:
{{{#!php
<?php
function disable_pdf_previews() {
    $fallbacksizes = array();
    return $fallbacksizes;
}
add_filter('fallback_intermediate_image_sizes', 'disable_pdf_previews');
}}}



"	falk07
	65977	Error in the GD editor when converting from WebP		Media	7.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-27T12:40:21Z	2026-08-30T01:18:01Z	"Due to the PHP8.4 ValueError for out of range GD quality units, lossless WebP sources leak IMG_WEBP_LOSSLESS (101) into non-WebP encoders in WP_Image_Editor_GD, causing fatal errors on AVIF and JPEG conversion on PHP 8.4+.

In `wp-includes/class-wp-image-editor-gd.php`, `set_quality()` (line 607, @since 6.7.0):

**Wrong mime checked** (line 617)
`'image/webp' === $this->mime_type` tests the source type. `$this->output_mime_type` is never consulted, so the quality value 101 applies to every output format.

**Rejection silently discarded** (line 621)
`parent::set_quality( 101 )` returns `WP_Error invalid_image_quality` — return value ignored.

**Direct assignment bypasses everything** (line 627)
`$this->quality = $quality;` writes 101 past the parent clamp of (0-100) and past the `wp_editor_set_quality` filter.

This results in broken media items, broken subsizes, 0 byte AVIF files, and a single lossless WebP conversion will break a `wp media regenerate` run.

{{{
[27-Aug-2026 11:00:12 UTC] PHP Fatal error:  Uncaught ValueError: imageavif(): Argument #3 ($quality) must be between -1 and 100 in /Users/james/Sites/wordpress-test-site/app/public/wp-includes/class-wp-image-editor.php:577
Stack trace:
#0 /Users/james/Sites/wordpress-test-site/app/public/wp-includes/class-wp-image-editor.php(577): imageavif(Object(GdImage), '/Users/james/Si...', 101)
#1 /Users/james/Sites/wordpress-test-site/app/public/wp-includes/class-wp-image-editor-gd.php(685): WP_Image_Editor->make_image('/Users/james/Si...', 'imageavif', Array)
#2 /Users/james/Sites/wordpress-test-site/app/public/wp-includes/class-wp-image-editor-gd.php(567): WP_Image_Editor_GD->make_image('/Users/james/Si...', 'imageavif', Array)
#3 /Users/james/Sites/wordpress-test-site/app/public/wp-includes/class-wp-image-editor-gd.php(495): WP_Image_Editor_GD->_save(Object(GdImage), '/Users/james/Si...', 'image/avif')
#4 /Users/james/Sites/wordpress-test-site/app/public/wp-admin/includes/image.php(343): WP_Image_Editor_GD->save('/Users/james/Si...')
#5 /Users/james/Sites/wordpress-test-site/app/public/wp-admin/includes/image.php(588): wp_create_image_subsizes('/Users/james/Si...', 392)
#6 /Users/james/Sites/wordpress-test-site/app/public/wp-admin/includes/media.php(535): wp_generate_attachment_metadata(392, '/Users/james/Si...')
#7 phar:///usr/local/bin/wp/vendor/wp-cli/media-command/src/Media_Command.php(383): media_handle_sideload(Array, false, '', Array)
#8 [internal function]: Media_Command->import(Array, Array)
#9 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func(Array, Array, Array)
#10 [internal function]: WP_CLI\Dispatcher\CommandFactory::{closure:WP_CLI\Dispatcher\CommandFactory::create_subcommand():97}(Array, Array)
#11 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func(Object(Closure), Array, Array)
#12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(431): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(454): WP_CLI\Runner->run_command(Array, Array)
#14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1269): WP_CLI\Runner->run_command_and_exit()
#15 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#16 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#17 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
#18 phar:///usr/local/bin/wp/php/boot-phar.php(20): include('phar:///usr/loc...')
#19 /usr/local/bin/wp(4): include('phar:///usr/loc...')
#20 {main} thrown in /Users/james/Sites/wordpress-test-site/app/public/wp-includes/class-wp-image-editor.php on line 577

}}}
"	jmrcodes
	44754	Error saving data from 'custom fields' of type select / checkbox (multiple) in Attachment Modal		Media		normal	major	Future Release	defect (bug)	new		2018-08-08T12:41:01Z	2019-04-15T21:43:45Z	"It's my first ticket, and I have little idea of English, I apologize if I did wrong.

The method used to save the custom fields in the Attache modal, I think, is poorly implemented. The problem comes when you have a field of multiple type (select or checkbox). At the time of parsing the form, the jQuery serializeArray function is used. This returns an array of key / value objects with all the items in the form.

The moment you have a field of multiple type whose name value has '[]', if there are multiple values selected, they are overwritten with the selected item from the list of elements.

Error is located in the _.each of line 72 of the file:

https://core.trac.wordpress.org/browser/trunk/src/js/media/views/attachment-compat.js

{{{
65  save: function( event ) {
66    var data = {};
67	
68    if ( event ) {
69      event.preventDefault();
70    }
71	
72    _.each( **this.$el.serializeArray()**, function( pair ) {
73      data[ pair.name ] = pair.value;
74    });
75	
76    this.controller.trigger( 'attachment:compat:waiting', ['waiting'] );
77    this.model.saveCompat( data ).always( _.bind( this.postSave, this ) );
78  },
}}}

The result of serializeArray () is

[[Image(https://actycrea.com/img/wordpress/before.png)]]

And the result after the _.each is:

[[Image(https://actycrea.com/img/wordpress/after.png)]]

As you can see, it deletes all the elements previous to the last one of the same key.

I think the best way to fix it is this:

{{{
65  save: function( event ) {
66    var data = {};
67	
68    if ( event ) {
69      event.preventDefault();
70    }
71	
72    _.each( this.$el.serializeArray(), function( pair ) {
73      if ( $.trim( pair.name ).length ) {
74        if ( typeof( data[ pair.name ] ) == 'object' ) {
75          data[ pair.name ].push( pair.value );
76        } else if ( pair.name.indexOf( '[]' ) > -1 ) {
77          data[ pair.name ] = new Array( pair.value );
78        } else {
79          data[ pair.name ] = pair.value;
80        }
81      }
82    });
83	
84    this.controller.trigger( 'attachment:compat:waiting', ['waiting'] );
85    this.model.saveCompat( data ).always( _.bind( this.postSave, this ) );
86  },
}}}

By doing this, it would return the following data object:

[[Image(https://actycrea.com/img/wordpress/finally.png)]]

I explained? I'm very sorry for my English ...

Fernando.

"	fobiaxx
	52535	Excess text read with errors in Media Library	rcreators	Media		normal	normal	Future Release	defect (bug)	assigned		2021-02-16T04:13:15Z	2025-02-13T20:12:40Z	"When an error is generated in the media library, the error is read only after reading two separate versions of the page title and the upload media button text. This is most immediately caused by executing the error message in a `._delay` call, but this is actually a symptom; the delay is necessary. 

This is most likely due to an extra Backbone model refresh that occurs after the error. Resolving this issue may only be possible by refactoring the media library to avoid the additional refresh. 

Delaying the execution of the message ensures that the message is read without being interrupted by the extra Backbone refresh; it would be preferable, however, if the extra refresh didn't happen, or happened prior to the error. 

This ticket follows #47120, resolving the lack of accessible messages on upload errors. "	joedolson
	57276	Failing TIFF image uploads to S3 buckets using WP Offload Plugin		Media	6.1.1	normal	major	Awaiting Review	defect (bug)	new	has-patch	2022-12-05T14:26:27Z	2022-12-05T14:38:15Z	"For TIFF image upload, it's failing to offload media to third party WP Offload Media plugin.
It is failing because we introduced filesize metadata for images doesn't have thumbnail images https://core.trac.wordpress.org/changeset/52837 . which is telling the wp_generate_attachment_metadata hook that there are image thumbnail. but no other sizes available.
Here is the bug I created for WP Offload Media plugin and their response. I see they have valid point. https://github.com/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/616#issuecomment-1337245283
we should be checking if the meta data set only, we need to pass Filesizes with meta data.

I think it will fix the issue by checking if metadata is not empty to set filesizes

From
{{{#!php
<?php
	// Capture file size for cases where it has not been captured yet, such as PDFs.
	if ( ! isset( $metadata['filesize'] ) && file_exists( $file ) ) {
		$metadata['filesize'] = wp_filesize( $file );
	}
}}}


To this
{{{#!php
<?php
	// Capture file size for cases where it has not been captured yet, such as PDFs.
	if ( $metadata && ! isset( $metadata['filesize'] ) && file_exists( $file ) ) {
		$metadata['filesize'] = wp_filesize( $file );
	}

}}}
"	jsaravana
	58743	Featured image Edit  : When clicking on the undo option, the save edits option is disabled.	joedolson*	Media	6.3	normal	normal	Awaiting Review	defect (bug)	accepted		2023-07-07T04:56:35Z	2023-08-07T16:11:57Z	"Description

When editing the featured image multiple times and clicking on the undo option, the save edits option is disabled.
=== Environment
- WordPress: 6.3-beta3-56143
- PHP: 7.4.33
- Server: TasteWP-S1 Official/3.0.0
- Database: mysqli (Server: 8.0.32-0ubuntu0.20.04.2 / Client: mysqlnd 7.4.33)
- Browser: Chrome 114.0.0.0 (Windows 10/11)
- Theme: Twenty Twenty-Three 1.1
- MU-Plugins: None activated
- Plugins: 
  * WordPress Beta Tester 3.5.0

 Steps to Reproduce

* Upload a featured image
* Edit the image from rotation options for multiple times
* Click on the undo option
* '' Save edit '' option showing as disabled

Expected Results
The 'save edit 'option should be enabled when clicking on the undo option after the image editing is done.

Actual Results
The 'save edit' was disabled when clicked on the undo option, When multiple editing was done.
"	vivekawsm
	47121	Featured image modal: content disappears when changing device orientation		Media	5.0	normal	normal	Awaiting Review	defect (bug)	new		2019-05-04T09:27:12Z	2019-08-29T13:51:28Z	"To reproduce:
- emulate a mobile device via the Chrome dev tools
- edit a post in Gutenberg
- click Featured Image > Set featured image in the sidebar
- the ""Featured Image"" media modal opens
- depending if your initial device orientation is landscape or portrait, click once or twice on the Chrome dev tool ""Rotate"" button to change device orientation
- once the orientation is ""portrait"", the whole content of the modal disappears
- ie: the content container becomes totally empty: `<div class=""media-modal-content""></div>`
- change orientation again: still empty

See attached screenshots."	afercia
	55465	Fix hiding playlist buttons from Add Media modal dialog		Media	5.9.2	normal	minor	Awaiting Review	defect (bug)	new	has-patch	2022-03-25T17:31:46Z	2022-03-25T18:59:18Z	"==== How to reproduce

On a fresh installation of WordPress 5.9.2 with [[https://wordpress.org/plugins/classic-editor/|Classic Editor]] plugin enabled, add the following lines to the default theme's `functions.php`:

{{{#!php
<?php
add_filter('media_library_show_audio_playlist', '__return_false');
add_filter('media_library_show_video_playlist', '__return_false');
}}}

Then go to `/wp-admin/post-new.php` and click the Add Media button.

These filters are supposed to allow hiding the [[https://developer.wordpress.org/reference/hooks/media_library_show_audio_playlist/|Create Audio Playlist]] and [[https://developer.wordpress.org/reference/hooks/media_library_show_video_playlist/|Create Video Playlist]] buttons, which is not the case. The buttons are still visible in the Add Media modal dialog.

Workarounds include filtering `media_view_strings` instead, or enqueing additional styles to hide the buttons.

The discussion at Ticket [ticket:43009] focuses on the behavior //after// uploading an audio/video file rather than the initial state, hence the new ticket.

==== Reason

✅ **PHP:** [[https://developer.wordpress.org/reference/functions/wp_enqueue_media/|wp_enqueue_media]] function sets `attachmentCounts` according to the filter results.

✅ **JavaScript:** `menuItemVisibility` function is called, which adds `hidden` class to the elements.

❌ **CSS:** In `media-views.css`, `.media-menu .media-menu-item` selector wins over `.media-frame .hidden`, setting the elements' `display` property to `block` instead of `none`.

==== Proposed fix

Since there are similar rules of higher specificity (e.g. `.attachments-browser .uploader-inline.hidden`, `.media-embed .setting input.hidden`) in the same CSS file, I thought adding the following rule would be appropriate:

{{{#!css
.media-menu .media-menu-item.hidden {
	display: none;
}
}}}"	erengy
	47531	Handling WP embed (native) Audioplayer's Volume Slider with keyboard defective		Media	5.2.1	normal	normal	Future Release	defect (bug)	new		2019-06-12T12:05:25Z	2019-08-29T14:35:16Z	"
As I underestand, handling audioplayers with Tab/Arrows/Enter should be universal with all  browsers. I have built a test-webpage from my main web page, consisting some audio-books for children. There are several single WP embed (native) players:   https://midripai.ee/s3/pai/pai-kuulata-yksiti-wpn/.
 Moving with Tab-key onto volume slider, it should be increasing volume by Right Arrow, and decrease by Left Arrow (at least Screenreader Orca in Linux tells to do so). Instead of that, the Down Arrow decreases volume, and ''the Up Arrow does nothing''.
Of course, the volume can be handled by Up/Down arrow, being either on Time Slider; or on Mute Button (it seems not to depend of web browser: at least Chrome and Firefox do work similarly.) Yet bringing volume down, being on Volume Slider by Down Arrow  could be annoying for visually impaired, as one needs to move back onto Mute Button or Time Slider of the same player to increase volume again. Being on the Play/Pause button, the Down Arrow also decreases volume; and Up Arrow does nothing.
The same problem occurs also with WP embed (native) Playlist Player.


Tested: Win7-64 bit: Both Chrome (74; 75.0.3770.80 = the latest) and Firefox (67.02); and
Linux Mint Mate 18.3 64 bit: Chromium 73.0.3683.86 and Firefox (67.0)
Laptops: Fujitsu E8420 and Lenovo w500 internal keyboards and also external ps2 and USB-keyboard.
Both with Blocks and blocks switched off (with plugin Classic editor); and also disabled all plugins for test). I did not use special Audio-blocks though."	Juhan108
	64492	"If admin session has timed out, uploading an image to media library incorrectly returns ""Server cannot process this image"" error, along with info about image sizes"		Media	6.9	normal	minor	Awaiting Review	defect (bug)	new		2026-01-09T21:57:40Z	2026-01-09T21:57:40Z	"In the backend, if a user session expires (cookie expires) whilst on the media library page, and a user tries to upload an image in the media library, the server returns the standard ""The server cannot process the image. This can happen if the server is busy or does not have enough resources to complete the task. Uploading a smaller image may help. Suggested maximum size is 2560 pixels."" when it should either return authentication error-related text or kick the user out to the dashboard login page."	bluesix
	40785	Image caption in WYSIWYG is not displaying in post page		Media	4.7.5	normal	normal	Awaiting Review	defect (bug)	new		2017-05-17T13:53:07Z	2017-05-19T11:15:53Z	"I have uploaded an image to my post via Media upload utility of WYSIWYG editor and added a caption to it. When I go the post page, the image is there but the caption is not showing up anywhere, which ideally should be underneath the image.

In wp_posts table the content was saved as:


{{{
<div class=""section-hotel-details-text-all"">Nestled among ski slopes in the Garhwal Himalayas, this secluded hotel is 23 km from Panch Prayag temple and 25 km from Nanda Devi National Park. In winter, the property is only accessible by cable car.</div>
<div class=""section-hotel-details-text-all""></div>
<div class=""section-hotel-details-text-all"">Ranging from studios to 2-bedroom suites, the cosy lodgings come with cable TV and kitchenettes with minifridges, microwaves and stoves. Suites add living rooms and dining areas.</div>
<div class=""section-hotel-details-text-all""></div>
<div class=""section-hotel-details-text-all"">Breakfast is free. There's also a relaxed restaurant, a game room and a bonfire area with regular entertainment. Ski equipment rentals and lessons are available, as are guided hikes and in-room massages. The property has a generator.</div>
<div class=""section-hotel-details-text-all"">

[caption id=""attachment_713"" align=""alignnone"" width=""1600""]<img class=""wp-image-713 size-full"" src=""/wp-content/uploads/2017/03/Auli.jpg"" alt="""" width=""1600"" height=""924"" /> Cliff Top Restaurant at 10000ft[/caption]

</div>
}}}"	subrataemfluence
	60354	Image filter functions strip query string from image src	joemcgill	Media		normal	normal	Awaiting Review	defect (bug)	reviewing	reporter-feedback	2024-01-26T15:14:35Z	2024-06-26T15:47:15Z	"The following 2 functions strip the query string from the image src found in the content but it's not clear why this is done.

- wp_image_add_srcset_and_sizes: https://github.com/WordPress/WordPress/blob/master/wp-includes/media.php#L1708-L1715
- wp_img_tag_add_width_and_height_attr: https://github.com/WordPress/WordPress/blob/master/wp-includes/media.php#L2092-L2094

When using an external image service like Photon, Tachyon, or some other integration that provides resizing via a query string this breaks the generated srcset & sizes calculation, and can make the width and height attributes use the original image dimensions when the same image file name is used up to the start of the query string.

Take the following 2 image URL examples:

- https://example.com/images/kitten.jpg
- https://example.com/images/kitten.jpg?resize=300,200

The query string means these are 2 different images but those functions will treat them both as the original."	sanchothefat
	43152	Image remains in page after deleting from Media Library		Media	4.9.2	normal	normal	Future Release	defect (bug)	new		2018-01-24T00:31:39Z	2019-04-15T15:21:13Z	"Whilst editing your page, if you open the Media Library (using the Add Media button), and then delete an image that is currently added to the page, the image remains on the page after closing the pop-up window.

To Reproduce:
- Insert Image on Page
- Click Add Media button to display the Media Library popup Window
- Select the image that you previously inserted on the page and delete the image
- Close the media pop-up window
- Image that was deleted remains on page

Here's a gif to show an example - https://cl.ly/1I2r3q3H301J

I originally raised this as an [https://github.com/WordPress/gutenberg/issues/4610 issue with Gutenberg], but it was suggested to raise it here since it's also an issue with the classic editor."	ahortin
	50238	Image rotation still an issue with images shot from above		Media	5.4.1	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2020-05-24T19:26:00Z	2022-03-16T16:38:31Z	"It seems like this bug is considered dealt with but I am still having the problem even while using 5.4.

When I try to upload an image directly from my phone either by taking it with the camera or uploading from my photo library it strips the EXIF.  It only seems to happen when I am taking a photo from above as in scanning a document or photo.

It only seems to happen when I upload the image using my iPhone 11 or iPad Pro.

Obviously something was missed when this was finally “fixed.”"	wmassjunction
	63093	Image scaling size change		Media	6.7.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2025-03-13T07:08:16Z	2026-06-10T17:09:53Z	"Hello

I Upload Image in media but Automatics Image Scaling size change(ex. upload image size:1920x800 change size:1600x800). how can solve this."	nirav257
	46470	Image srcset and sizes not output in classic block. Image attachment removed		Media	5.1	normal	normal	Awaiting Review	defect (bug)	new		2019-03-12T03:16:28Z	2019-04-04T13:56:29Z	"I installed the Gutenberg plugin on one of my sites, which was eventually updated to WP 5.0.3 and then WP 5.1. In all that time, most of the content remained unchanged.

Looking at it now, most of the images in the library are unattached and embedded images produce the old/simple ""IMG"" tag, with no ""srcset"" or ""sizes"" attributes.

I've tried attaching images in the media library. No change.

I've tried setting $content_width. No change.

Than only thing that makes any difference is editing the post/page, removing the embedded image and simply embedding it again. In the editor's HTML view, the respective ""IMG"" tag looks almost identical, except possibly the order of attributes.

When converting tinyMCE content to blocks, WordPress should convert all of the required metadata, but seems like it doesn't."	galbaras
	51133	Image uploaded through third party plugin showing in media but not showing up in post		Media	5.5	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-08-25T07:46:26Z	2023-01-31T13:13:54Z	I created a plugin which uploads Image to upload folder. It sends blob through ajax and uses wp_insert_attachment insert as attachment, wp_generate_attachment_metadata to generate meta data and uses wp_update_attachment_metadata to update meta data of attachment. And it shows up in media without file name and when I pragmatically insert attachment to the post using wp_get_attachment_image , it only display's attachment's name not image file. 	ujw0l
	57637	ImageEdit component can be exited with unsaved state		Media	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-02-06T02:30:24Z	2023-02-06T02:42:35Z	"The image-edit component https://github.com/WordPress/WordPress/blob/master/wp-admin/js/image-edit.js used to crop and perform other edit interactions on images has a `notsaved` method, which is ''sometimes'' called to prevent closing the dialog if the user has made edits to the image without saving the image.

This is not consistently checked, which means that users can exit the dialog without being asked if they want to save unsaved changes.

Steps to reproduce on a post with Gutenberg:

1. Create a new post, or edit an existing post.
2. Add a new image block, or click on an existing one.
3. Click on the ""Replace"" button on the block control bar.
4. Click on ""Open Media Library""
5. Click on ""Edit Image""
6. Make a crop to the image by click-and-dragging on the image, then click ""Crop"".
7. The modal is now in an unsaved state.
8. Clicking ""Cancel"" below the image triggers the `notsaved()` check, where if the user clicks ""Cancel"", the closure fails.
9. Clicking here does not trigger the check, and closes the dialog: the greyed-out modal background, the modal's ""X"", the modal's ""Back"" button in the bottom right, the browser close-tab button

The above workflow reproduces in the Media Library, if you click ""Edit Image"" in the per-image view.

The simple fix would be to remove the `if ( warn )` conditional here, and only check if `notsaved()` before closing: https://github.com/WordPress/WordPress/blob/0ed99784d829eec393a9b2fa3b2c71824295c95c/wp-admin/js/image-edit.js#L848-L853

This affects WP 6.1.1 and, 6.1.0, 6.0, and probably previous versions."	benlk
	59638	Images: repeating a single image causes `fetchpriority` to be repeated		Media		normal	normal	Future Release	defect (bug)	new	dev-feedback	2023-10-16T20:02:35Z	2024-06-05T15:41:14Z	"I noticed a small bug in how core auto-applies the `fetchpriority=""high""` attribute. This feature aims to add this attribute only to the LCP image, which is frequently the first large image in a layout.

The bug is this: if a user inserts a single image several times, every instance of the image will have the `fetchpriority=""high""` attribute.

=== Steps to reproduce
1. create a new post
2. insert a large image at the top of the post
3. Insert the image several more times, so the post now contains several copies of the image.
4. save and view the post source code

**Expected result:**
The first large image contains the `fetchpriority=""high""` attribute.

**Actual results:**
Each copy of the image contains the `fetchpriority=""high""` attribute.

=== Notes
I am posting this here because it feels like a bug, even though I'm not sure we should fix it:
- The image URL for each item is the same so there may be zero impact to repeating the attribute (the same URL is prioritized). Unless there is a case where the actually fetched image from the srcset could be different for two copies of the same image?
- There could be a slight negative performance impact when fixing this since the repetition is the result of an optimization where we only consider each unique image once."	adamsilverstein
	61926	Imagick breaks default image progressive/interlace when converted to a mime type that doesn't support interlace		Media		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-08-26T03:33:45Z	2024-09-02T06:04:39Z	"if the new format the instance is set to in https://github.com/WordPress/WordPress/blame/master/wp-includes/class-wp-image-editor-imagick.php#L818 does not support interlace, imagick will remove the interlace information (set it to ""none"")

Therefore retrieveing it here https://github.com/WordPress/WordPress/blame/master/wp-includes/class-wp-image-editor-imagick.php#L827 is too late. It must be retrieved before setImageFormat is called
"	kkmuffme
	40638	In attachments taxonomy displays slug instead of name		Media	4.7.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-05-02T16:53:50Z	2020-02-04T18:47:50Z	"Hello!

Custom taxonomy registered for attachment displays as '''slug''' instead of '''name'''.

It looks like this:
[[Image(http://caseforyou.pro/two.png)]]

It would be much better if it will looks like this:
[[Image(http://caseforyou.pro/one.png)]]

It is a only one thing to do. Replace string
{{{#!php
$values[] = $term->slug;
}}}

to
{{{#!php
$values[] = $term->name;
}}}

in file /wp-admin/includes/media.php at line number 1652.

The code fragment:
[[Image(http://caseforyou.pro/three.png)]]

Could you do this change and inlclude in one of the followings releases?

Thank you!"	snookerist
	36285	Inconsistency between the filters that can be used to override the default shortcode output for images/videos/audio		Media		normal	normal	Future Release	defect (bug)	new		2016-03-21T18:15:59Z	2017-07-27T16:13:03Z	"Currently, in order to override the default output of the {{{caption}}}, {{{video}}} and {{{audio}}} shortcodes, you have to use the following respectively:

{{{

apply_filters( 'img_caption_shortcode', '', $attr, $content );

apply_filters( 'wp_audio_shortcode_override', '', $attr, $content, $instance );

apply_filters( 'wp_video_shortcode_override', '', $attr, $content, $instance );

}}}

Imho, there should be some consistency between these regarding the following:

* hook name.
* arguments passed to the filtering function.

Also, it would be very useful if the attachment ID was also passed to the filtering function.

Right now, the attachment ID of images can be obtained from {{{$attr['id']}}}, which gives {{{attachment_IDNUMBER}}}, while the ID of video and audio attachments can only be obtained by using the media file URL found in the {{{$attr}}} array and directly querying the database in order to get the post ID based on the {{{guid}}} field.
"	gnotaras
	58729	Incorrect Information Displayed in Media Library Window when Uploading Featured Image		Media		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-07-06T11:29:00Z	2026-05-22T16:48:00Z	"I encountered an issue while attempting to upload a featured image for a post on WordPress. The problem arises when I access the Media Library window, as it displays incorrect information regarding the number of uploaded items.

Steps to Reproduce:

1. Log in to the WordPress admin panel.
2. Navigate to the ""Posts"" section and select an existing post or create a new one.
3. Click on the ""Set featured image"" button within the post editor.
4. After uploading the first image its showing wrong information of number of media, Instead of **Showing 1 of 1 media items** its showing **Showing 1 of 2 media items**
5. It appears that the number of media items is inconsistent when I attempt to open the media library again by selecting the ""replace"" option.

Video Link : https://www.loom.com/share/f87871494c5145c385f2343b454fe262

"	adhun
	65879	Infinite scrolling: Explore ways to improve refinding content		Media		normal	normal	Awaiting Review	defect (bug)	new		2026-08-14T15:07:48Z	2026-08-14T15:07:48Z	"Now that in WordPress 7.1 after #65564 Infinite scrolling is enabled again by default, it's a good opportunity to explore ways to improve some of the known usability limitations of this design pattern.

Note: It is worth reminding that Infinite scrolling is not used only in the Media Library, see #40330.

That said, one of the known usability limitations of infinite scrolling is the difficulty for users in re-finding content they previously have seen several 'scrolls' before.


In a 2022 article, the Norman Nielsen Group researchers dedicated an entire section to this problem:

""Difficulty refinding content""

Infinite Scrolling: When to Use It, When to Avoid It
Nielsen Norman Group – September 4, 2022
https://www.nngroup.com/articles/infinite-scrolling-tips/

Quoting:

> Infinite scrolling results in a lack of landmarks to help users orient themselves. With pagination, users may remember the page that an item was on and that an item was close to the top of the page or towards the middle, but **in an infinite list of items, it is hard to remember the location of any specific item and return to it**.

Reading the entire article is highly recommended.

After some research, there's a few ways to consider to mitigate the 'refindability' problem. I'll mention them here and then leave room for usability / design considerations, feedback, and more exploration.


1
Save for Later / Wishlists: Provide a clear ""bookmark,"" ""favorite,"" or ""save"" button on every item thumbnail so users can flag content without leaving the feed.

2
Recent History: Maintain a visible ""Recently Viewed"" section or sidebar so users can jump back to items they already clicked.

3
Integrated Pagination Indicators: Display dynamic page numbers (e.g., ""Page 3"") as the user scrolls to serve as landmarks, making the list feel segmented and easier to remember.

Some of these patterns are our daily common experience on our mobile phones. For example, many Photos apps do split the images feed into sections by date, month etc.

Regarding the ""Save for Later / Wishlists / bookmark"" section I'd like to highlight the Media Library already provides something similar:

- When creating a gallery, the bottom toolbar shows the currently selected images.
- This feature could be extended beyond the Gallery creation flow and become a sort of 'Recently viewed' list that is displayed in the bottom toolbar for every image users select before they actually insert into the post.

"	afercia
	47148	Insufficient labelling and inappropriate nesting of form controls	joedolson*	Media		normal	minor	Future Release	defect (bug)	accepted		2019-05-06T15:16:18Z	2024-02-05T20:03:21Z	"Moved from the WPCampus accessibility report issues on GitHub, see: https://github.com/WordPress/gutenberg/issues/15288

* **Severity**: 
 * Low
* **Affected Populations**:
 * Blind
 * Low-Vision
 * Cognitively Impaired
* **Platform(s)**:
 * Windows - Screen Reader
 * Windows - ZoomText
 * Mac - VoiceOver
 * Android - TalkBack
 * iOS - VoiceOver
* **Components affected**:
 * Media Dialog

**Issue description**
In the ""Featured Image"" modal dialog's ""Media Library"" tab, users
can choose an image to be the featured image; this is presented as a
series of checkbox elements which, once checked, show a button to
uncheck inside the custom checkbox element.

This button is in the Tab order, however its only name is ""Deselect"",
it doesn't tell the user what is being deselected. Users must infer
what this button does from context, and may wonder why it's next to
seemingly-ordinary checkboxes which themselves are natively
unselectable.

The button role of these buttons does not convey that the user is
checking or unchecking an item, and their placement inside the
checkbox elements is semantically confusing, and may be functionally
confusing since one focusable element is nested inside another.

Screen reader users hear that a list is present, yet find that they
cannot navigate by list-items.

**Issue Code**
{{{
    <ul tabindex=""-1"" class=""attachments ui-sortable ui-sortable-disabled"" id=""__attachments-view-53"">


        <li tabindex=""0"" role=""checkbox"" aria-label=""Marianne_Williamson"" aria-checked=""true"" ... class=""..."">


            <div class=""..."">


                <div class=""thumbnail"">


                    <div class=""centered"">


                        <img src=""...this-is-fine-300x200.jpg"" draggable=""false"" alt="""">


                    </div>


                </div>


            </div>


            <button type=""button"" class=""check"" tabindex=""0"">


                <span class=""...""></span>


                <span class=""screen-reader-text"">Deselect</span>


            </button>


        </li>


        ...


    </ul>
}}}

**Remediation Guidance**
Allow the list semantics to remain available by not overriding the
`<li>` elements' native list-item roles.

Remove the `<button>` inside the checkbox and allow the original
checkbox itself to be hidden and shown (perhaps styled with the custom
checkmarks and ""-"" symbols, using the :before pseudo-element, as
used in other checkboxes); hiding elements with opacity still allows
speech recognition and screen readers to perceive the checkbox as though
it were visible. The alt attribute inside the image will be able to
label the checkbox if it's inside the `<label>` element.

The checkbox now can offer both the image name and its state together in
one unit, allowing users to always know what they are deselecting.

**Recommended Code**
{{{
    <fieldset>


        <legend class=""screen-reader"">Media options result</legend>


        <ul tabindex=""-1"" class=""attachments ui-sortable ui-sortable-disabled"" id=""__attachments-view-53"">


            <li ... class=""..."">


                <input type=""checkbox"" id=""data_159"">


                <label for=""data_159"">


                    <img src=""...this-is-fine-300x200.jpg"" draggable=""false"" draggable=""false"" alt=""Marianne_Williamson"">


                </label>


            </li>


            ...


        </ul>


    </fieldset>





    li {


        position: relative;


    }


    li>input {


        position: absolute;


        opacity: 0;


        ...


    }


    li input+label img {


        ...


    }


    li input:focus+label img {


        /* styles for focussed input */


        /* include an actual outline in addition to box-shadow for high contrast users */


    }


    li input:checked {


        opacity: 1;


    }


    li input:checked:focus,


    li input:checked:hover {


        /* change from checkmark to dash */


    }


    li input:checked+label img {


        ...


    }
}}}

**Relevant standards**
* 1.3.1 Info and Relationships (Level A) https://www.w3.org/TR/WCAG20/#content-structure-separation-programmatic

**Note**: This issue may be a duplicate with other existing accessibility-related bugs in this project. This issue comes from the Gutenberg accessibility audit, performed by Tenon and funded by WP Campus. This issue is GUT-49 in Tenon's report"	anevins
	50126	Latest large Image size compression generating incorrect file permissions		Media	5.4.1	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2020-05-08T08:31:10Z	2022-03-16T16:27:33Z	"The Latest large Image size compression is generating incorrect file permissions. I have tested on all 5 of my sites. I have also eliminated all plugins and themes and built a new site to test. Not sure about other platforms or servers, but I use Microsoft IIS-10. if you correct the permissions through the O/S WordPress changes them back (only for ""Large Size"", I have tried a variety of other compression plugins and added various PHP coded to functions.php (tried in 3 Themes) and even wrote a plugin to disable the compression, the thumbnails and all other sizes work and show correctly, just not the Large Size, the problem does get corrected if you increase or decrease the ""aspect ratio"" of the ""large size"" image, but that has to be done manually and I must have over 10,000 images. The problem started about 2 or 3 months ago (with the latest 2 or 3 versions of WP), thanks"	michael.moody
	48992	MP3 artwork issue in WordPress 5.3.1		Media	5.3.1	normal	normal	Awaiting Review	defect (bug)	new		2019-12-15T21:01:49Z	2020-04-12T21:13:27Z	"Hello!

I've had an issue with WordPress ever since I installed it where MP3 files would lose their artwork, which split into a separate file. This might sound familiar to some, as it was the core of the following closed issues: #40085 / #40075

The problem: This has never stopped happening for me. I've disabled add-ons related to the uploader and media library to no avail once I found out that this was apparently a solved issue. I have a test-site which I am going to try disabling all add-ons. 

Any other"	mattgcn
	42838	Manipulating uploads and images can break when using stream wrappers		Media		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-12-08T12:30:05Z	2026-08-18T08:43:53Z	"When using PHP stream wrappers for storing uploads into object storages (like S3 or Google Cloud Storage) some things break because in this context a directory merely  a path which ends in a '/'. 

PHP's builtin `dirname` always returns the path without the trailing slash. On regular filesystems this is not a problem since `a` and `a/` are equivalent, but in the context of object storages this pose some issues.

I'm attaching a patch which always add a trailing slash when the code expects to work with directories."	calin
	64936	Media Library grid view toolbar misalignment		Media		normal	normal	Awaiting Review	defect (bug)	new		2026-03-24T07:07:59Z	2026-05-15T08:18:17Z	"In Media → Library (Grid View), toolbar elements are misaligned. Dropdowns (“All media items”, “All dates”), “Bulk select”, and view switch icons are not on the same vertical baseline. Alignment is also inconsistent with the “Search media” field, and spacing between label and dropdown is too tight.

Steps to Reproduce:
1. Go to Media → Library
2. Switch to Grid View
3. Observe the toolbar

Expected Results:
Proper alignment and consistent spacing like list view.
"	huzaifaalmesbah
	65513	Media Library modal shows wrong count on first upload and does not reset after image deletion		Media		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-06-22T12:12:45Z	2026-07-02T12:36:04Z	"I found the following bugs in media uploads while user upload first time.

**Bug 1: Wrong media count when uploading the first image**

After uploading the first image through the Featured Image modal, the Media Library tab displays ""Showing 1 of 2 media items"" instead of ""Showing 1 of 1 media items."" The count is off by one on the initial upload.
Steps to reproduce:


Open any Page or Post in the editor.
Click ""Set featured image"" to open the Featured Image modal.
On the Upload files tab, upload one image (library was empty before).
Switch to the Media Library tab.

Expected: ""Showing 1 of 1 media items""
Actual: ""Showing 1 of 2 media items""

**Bug 2: Modal does not reset after deleting the uploaded image**

After clicking ""Delete permanently"" and confirming the deletion inside the Featured Image modal, the Attachment Details sidebar continues to display the deleted image's metadata (filename, date, file size, dimensions, Edit Image / Delete permanently links). The ""Set featured image"" button also remains active as if an item is still selected.
Steps to reproduce:

Open the Featured Image modal with at least one image in the library.
Select the image — Attachment Details populate in the right sidebar.
Click ""Delete permanently"" in the sidebar and confirm the browser dialog.

Expected: Attachment Details panel clears, selection state resets, ""Set featured image"" button becomes disabled.
Actual: Attachment Details panel still shows the deleted image's data. ""Set featured image"" button remains enabled.

Here is I attached record screen video for better understanding: https://tinyurl.com/26ocs6r4"	dilipbheda
	49078	Media Library permission checks in WordPress		Media	5.3.2	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2019-12-24T13:19:41Z	2020-03-12T14:36:07Z	"

If permissions to ~/uploads/ are not set correctly (or was modified in some manner), deleting media will only delete database references (item(s) will disappear from the Media Library view) but the actual files are not deleted.

However, when uploading media, permission errors are displayed.

This seems to be the the default behavior.

When was the last time you checked the contents of ~/uploads/ directory?
"	danskoya
	43641	Media controls in the media grid are too wide		Media	4.9	normal	normal	Awaiting Review	defect (bug)	new		2018-03-27T11:14:37Z	2018-10-02T16:56:31Z	"The audio and video player that's shown when viewing an individual media item in the media grid displays a control bar which is too wide for its container.

Tested in latest Chrome, Firefox, and Safari on macOS."	johnbillion
	64929	Media edit screen shows file URL under “Permalink” for non-previewable formats		Media		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-03-23T08:56:21Z	2026-04-14T16:06:41Z	"On the **Edit Media** screen, non-previewable files (e.g. .avi) display both the attachment permalink and the direct file URL under the label “Permalink”. Only the first link is a permalink; the second is the raw file path.

For previewable formats (e.g. .mp4), only the permalink is shown.

**Expected behavior:**
The file URL should be labeled separately (e.g. “File URL”) or accompanied by a short notice indicating that no preview is available.

by the way the left padding of 10px is only applied for the permalink and therefore adds a visual glitch"	Presskopp
	58594	Media file changes no longer trigger updated/modified statuses.		Media	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-06-21T19:54:38Z	2023-06-21T19:54:38Z	"In older versions of WP, when media files like PDFs were updated it would trigger an event that could be listened to and acted upon by plugins.

In the current version of WP (6.2.2) if a user changes the uploaded date or otherwise modifies a media file's properties, the change is no longer picked up by audit trail plugins like WP Activity Log, nor is it seen as an update to a ""post"".

Plugins that have ""Clear cache whenever a post or page is updated"" functionality are now broken when it comes to media file changes.

For instance, if a site is using Sucuri's WAF and caching plugin as well as the Enable Media Replace plugin, when a user replaces a media file with a new one it doesn't trigger Sucuri's cache clearing functionality anymore. I have reviewed both Enable Media Replace and Sucuri's plugins to make sure neither of them are at fault for breaking this functionality. Additionally, neither Sucuri nor WP Activity Log pick up the changes to display in their activity logs.

I do not know if media file post types were explicitly excluded from using the process pages and posts use to broadcast changes, but this new behavior is only present in the most recent version(s) of WP and is a bug if this wasn't a planned change."	sbeaney
	40593	Media library replace image popup not displaying completely below 641px width		Media	4.7.4	normal	normal	Awaiting Review	defect (bug)	new		2017-04-28T10:04:38Z	2018-10-02T14:31:15Z	"When trying to Replace Media with screen width below 641px the right panel of the popup gets hidden and there is no way to update image information like description and title.

Tested in Chrome (Version 58.0.3029.81 64-bit) and Firefox (53.0 - 64 bit).

Screenshots attached."	subrataemfluence
	50200	Media library thumbnails broken for certain aspect ratio images in Firefox		Media	5.4.1	normal	normal	Awaiting Review	defect (bug)	new		2020-05-18T08:11:50Z	2020-05-21T14:50:47Z	"Recently a client reached out to me about broken images in WordPress dashboard.
Turns out media library can't load thumbnails for certain aspect ratio images.
The images are generated though and exist on the server (I looked up the image source with dev tools and checked if the image actually was generated and yes there it was).

So I made a few tests on live and test environments. These are the image sizes that cause the thumbnails to break:

236x591
237x591
238x591
239x591

Both 235x591 and 240x591 work fine as expected. My client was uploading images using the size 236x591.

Now the issue is not only with those pixel sizes as I tried doubling the image size as well. Doubling 237x591 to 474x1182 also breaks the thumbnail so it's more like aspect ratio bug than just the image size.

The images load fine on frontend but there is a problem in the admin panel when editing posts and adding these media files to a post (only shows white box and doesn't load image).

I have tried this on fresh install of WordPress with Twenty Twenty and no plugins installed. Bug happens on stable 5.4.1 as well as alpha version of 5.4.2 and 5.5
All of my tests were done through HTTPS protocol.

Happens on PHP version 7.2 and 7.3

Bug appears on Firefox version 76 but it does not appear on Chrome version 81 or Microsoft Edge version 44

I have not tested any other aspect ratios."	jussitrival
	49431	Media uploader window leaves behind orphan button element in Block Editor		Media	5.0	normal	normal	Awaiting Review	defect (bug)	new		2020-02-14T07:13:52Z	2022-05-06T02:59:54Z	"This issue was originally reported in the Gutenberg Github repo - https://github.com/WordPress/gutenberg/issues/9184. Reporting this here as well—currently it looks like a fix might need to be applied in core, but also possibly in both Gutenberg and core.

----

**Describe the bug**
Whenever you focus an Image Block or Gallery Block, a button element is created just before the closing body tag. Then, after blurring, the button is still there. This can be performed indefinitely times, leading to a massive amount of orphan button elements

----

**Steps to reproduce**
1. Open up the block editor
2. Open up dev tools and inspect the closing body tag
3. In the editor sidebar, switch between the document and the block tab and back again
4. Check the dev tools, observe that button(s) are appended to the dom every time the document tab is opened

Expected: No buttons are appended


"	talldanwp
	66357	"Media: ""Showing 1 of 1 media items"" has no plural form, and its translators comment is not extracted"		Media	5.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-21T07:57:48Z	2026-10-22T20:13:00Z	"When the Media Library grid uses the ""Load more"" button, it shows how many media items are loaded:

{{{#!js
this.loadMoreCount.$el.text(
	/* translators: 1: Number of displayed attachments, 2: Number of total attachments. */
	sprintf(
		__( 'Showing %1$s of %2$s media items' ),
		this.collection.length,
		this.collection.getTotalAttachments()
	)
);
}}}

This is `updateLoadMoreView()` in `src/js/media/views/attachments/browser.js` (line 611 on trunk), added in [50829] for #50105.

There are two problems:

 1. The string has no plural form, so a library with one media item shows ""Showing 1 of 1 media items"", and translators get one form for every count.
 2. The translators comment sits above `sprintf()` instead of the `__()` call, so it is not extracted. `wp i18n make-pot` on trunk's `browser.js` gives the string without a `#.` line, and the wp/dev Hindi export from translate.wordpress.org has no comment for it either.

Since [62632] (#65564), infinite scrolling is on by default, so this count only shows for users who turn it off in their profile or on sites that filter `media_library_infinite_scrolling` to false.

=== Steps to reproduce ===

 1. On a site with exactly one media item, go to Users > Profile, check ""Disable infinite scrolling in the Media Library grid view"" and save.
 2. Go to Media > Library in grid view.
 3. Below the item, the count reads ""Showing 1 of 1 media items"".

Tested on WordPress 7.1.3, whose `updateLoadMoreView()` is identical to trunk.

=== Suggested fix ===

Use `_n()`, with the plural form following the total, and put the comment directly above the `_n()` call:

{{{#!js
this.loadMoreCount.$el.text(
	sprintf(
		/* translators: 1: Number of displayed attachments, 2: Number of total attachments. */
		_n(
			'Showing %1$s of %2$s media item',
			'Showing %1$s of %2$s media items',
			this.collection.getTotalAttachments()
		),
		this.collection.length,
		this.collection.getTotalAttachments()
	)
);
}}}

With this, `make-pot` extracts the comment and both forms, from the source file and from the built `wp-includes/js/media-views.js`. Existing translations of the old string do not carry over to the new pair.

Related: the open count tickets (#57488, #58729, #65513) are about the numbers, not the wording. [https://github.com/WordPress/wordpress-develop/pull/12392 PR 12392] for #65513 adds an e2e assertion for ""Showing 1 of 1 media items"", which this change would turn into ""Showing 1 of 1 media item""."	ekamran
	65873	Media: enable HEIC/HEIF sequence uploads when the server lacks image editor support		Media		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-13T17:55:22Z	2026-08-13T17:58:22Z	"''Claude went through the code for this one and drafted the ticket:''

Follow up to #64915, which stopped `WP_REST_Attachments_Controller::create_item_permissions_check()` from rejecting HEIC/HEIF uploads on servers whose image editor can't process them. That change was narrowed during commit to the still formats only, so `image/heic-sequence` and `image/heif-sequence` are still rejected with `rest_upload_image_type_not_supported`.

Those two mime types are what an Apple Live Photo or an Android burst is. The comment in core explains the reasoning:

{{{
 * The '-sequence' variants (multi-frame Live Photos) are deliberately
 * excluded: neither the server nor the browser fallback can process
 * them yet, so they should fall through to the standard unsupported
 * mime-type error rather than be stored unprocessable.
}}}

That was accurate when it was written. The browser half of it has since changed: https://github.com/WordPress/gutenberg/pull/79647 demuxes a sequence and decodes its first frame in the browser, uploading that still in its place, so a capable browser never reaches this check at all.

What does reach it is a browser that can't decode HEVC. Rejecting the upload there is worse than storing it. `wp_check_filetype_and_ext()` already collapses a sequence to its first frame, so the user still gets a usable photo - just without the motion, which is the same result they'd get uploading the file anywhere else. Today they get an error instead and no photo at all.

Worth noting that core is already set up for these files everywhere else. `wp_get_mime_types()` registers the `heics` and `heifs` extensions, and `wp_is_heic_image_mime_type()` already returns true for all four mime types. The permissions check is the one place that treats the sequence variants differently.

=== Proposed change ===

Replace the hardcoded still-only array with the existing helper, which is what #64915 originally proposed:

{{{
#!php
if (
    $prevent_unsupported_uploads &&
    ! empty( $files['file']['type'] ) &&
    wp_is_heic_image_mime_type( $files['file']['type'] )
) {
    $prevent_unsupported_uploads = false;
}
}}}

Net 7 lines removed.

=== Testing ===

1. Remove image editor support so the check is reachable: `add_filter( 'wp_image_editors', '__return_empty_array' );`
2. `POST` a `.heics` file (or anything sent as `image/heic-sequence`) to `/wp/v2/media`.
3. Before the change the request fails with `rest_upload_image_type_not_supported`. After it, the attachment is created and stores the first frame.

The existing unit test asserting the old behavior (`test_upload_heic_sequence_is_not_bypassed`) is removed, and the sequence mime types are folded into the data provider for `test_upload_heic_bypasses_unsupported_image_type_check` so one case covers all four.

PR: https://github.com/WordPress/wordpress-develop/pull/13042

Related Gutenberg work: https://github.com/WordPress/gutenberg/pull/79647
"	adamsilverstein
	65825	Media: the edit-image content handler is bound twice on the Post and ImageDetails media frames		Media	5.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-06T13:14:16Z	2026-08-06T13:40:00Z	"`wp.media.view.MediaFrame.Post` and `wp.media.view.MediaFrame.ImageDetails` each register `content:render:edit-image` twice, so `editImageContent()` runs twice for a single ""Edit Image"" click.

`MediaFrame.Select.bindHandlers()` binds it directly:

{{{
// src/js/media/views/frame/select.js
bindHandlers: function() {
    ...
    this.on( 'content:render:edit-image', this.editImageContent, this );
},
}}}

Both subclasses call the parent and then bind the same pair again. `MediaFrame.Post.bindHandlers()` does it through its handlers map:

{{{
// src/js/media/views/frame/post.js
bindHandlers: function() {
    Select.prototype.bindHandlers.apply( this, arguments );
    ...
    handlers = {
        content: {
            'embed':          'embedContent',
            'edit-image':     'editImageContent',
            'edit-selection': 'editSelectionContent'
        },
        ...
    };

    _.each( handlers, function( regionHandlers, region ) {
        _.each( regionHandlers, function( callback, handler ) {
            this.on( region + ':render:' + handler, this[ callback ], this );
        }, this );
    }, this );
},
}}}

`MediaFrame.ImageDetails.bindHandlers()` does it directly:

{{{
// src/js/media/views/frame/image-details.js
bindHandlers: function() {
    Select.prototype.bindHandlers.apply( this, arguments );
    ...
    this.on( 'content:render:edit-image', this.editImageContent, this );
    ...
},
}}}

Both subclasses define their own `editImageContent`, at `post.js:407` and `image-details.js:81`. `Select.prototype.bindHandlers()` binds `this.editImageContent`, which resolves on the instance, so both registrations on a given frame point at that subclass's own override rather than the one on `Select`. On constructed `Post` and `ImageDetails` frames the two registered callbacks are the same function reference, and each is identical to the subclass's own override and not to `Select.prototype.editImageContent`. The duplicate is therefore two registrations of the same method.

Counting the listeners on freshly constructed frames:

|| frame || listeners on `content:render:edit-image` ||
|| `wp.media.view.MediaFrame.Select` || 1 ||
|| `wp.media.view.MediaFrame.Post` || 2 ||
|| `wp.media.view.MediaFrame.ImageDetails` || 2 ||

Each invocation constructs a `wp.media.view.EditImage`, sets it on the content region and calls `loadEditor()`, which issues an `image-editor` Ajax request. The second view replaces the first, so what the user ends up seeing is correct, but the first view and its request are wasted.

Measured in the Classic block's Add Media modal, which goes through `wp.media.editor` and involves no block editor media frame: one click on ""Edit Image"" issues two `action=image-editor&do=open` requests for the same attachment, and a single `imgedit-panel-*` element survives in the DOM.

Introduced in [46461] (5.3), which added `editImageContent` and its listener to the `select` frame for #48028. `post.js` already carried `'edit-image': 'editImageContent'` in its handlers map at that point, and since `MediaFrame.Post` extends `MediaFrame.Select` the binding has been duplicated ever since.

Removing the `'edit-image'` entry from the `MediaFrame.Post` handlers map, and the duplicate `this.on()` call in `MediaFrame.ImageDetails.bindHandlers()`, leaves the inherited `select` binding in place and the handler runs once on every frame.

Steps to reproduce:

1. Add a Classic block to a post, click inside it, then activate ""Add Media"".
2. Select an image so the Attachment Details panel appears.
3. Click ""Edit Image"".
4. In the browser network panel, filter on `admin-ajax.php` and observe two POST requests carrying `action=image-editor` and `do=open` for the same `postid`.

Noticed while tracing #65816, which has an unrelated cause in `@wordpress/media-utils`. Filed separately so the two do not get mixed up."	bejignesh
	35593	Metadata from wrong file in media_handle_upload		Media		normal	normal	Awaiting Review	defect (bug)	reviewing	has-patch	2016-01-24T15:14:20Z	2026-08-23T08:05:44Z	"In media_handle_upload and media_handle_sideload the attachment metadata is generated after inserting the attachment. For that the same file name is used. However, if a plugin changes the filename in an `add_attachment` hook the wrong file name will be used. Thus the wrong metadata is written or it is cleared.

See wp-admin/includes/media.php:
{{{
368	        // Save the data
369	        $id = wp_insert_attachment($attachment, $file, $post_id);
370	        if ( !is_wp_error($id) ) {
371	                wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
372	        }
}}}

In my patch I query the filename again before updating the metadata.
"	normanrz
	56439	Missing Title Attribute at HTML TAG FIGURE		Media	6.0.1	normal	normal	Awaiting Review	defect (bug)	new		2022-08-25T14:30:58Z	2022-08-25T21:46:31Z	"Hi,

i like to parse my website https://draeger-it.blog an grap all videos from pages.
I'm missing the pissible attribute title at TAG FIGURE like below:
{{{
<figure title=""Here is some Text!"">
  <video controls src=""https://draeger-it.blog/wp-content/uploads/2022/07/raspberry_pi_pico_w_website.mp4"">
  <figcaption>some description</figcaption>
</figure>

}}}

At my backend i can fill this fields but this don't would be rendered:

{{{
<figure class=""wp-block-video""><video controls="""" src=""https://draeger-it.blog/wp-content/uploads/2021/08/maker_pi_rp2040_neopixel.mp4""></video><figcaption>Hier steht eine Beschriftung.</figcaption></figure>
}}}

Here is my Website Report:
`
### wp-core ###

version: 6.0.1
site_language: de_DE
user_language: de_DE
timezone: Europe/Berlin
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 1
dotorg_communication: true

### wp-paths-sizes ###

wordpress_path: /homepages/10/d872679325/htdocs/draegerit/draeger-it.blog
wordpress_size: 515,57 MB (540609358 bytes)
uploads_path: /homepages/10/d872679325/htdocs/draegerit/draeger-it.blog/wp-content/uploads
uploads_size: 1,92 GB (2060998403 bytes)
themes_path: /homepages/10/d872679325/htdocs/draegerit/draeger-it.blog/wp-content/themes
themes_size: 17,81 MB (18674742 bytes)
plugins_path: /homepages/10/d872679325/htdocs/draegerit/draeger-it.blog/wp-content/plugins
plugins_size: 108,27 MB (113525365 bytes)
database_size: 255,52 MB (267927552 bytes)
total_size: 2,80 GB (3001735420 bytes)

### wp-dropins (2) ###

advanced-cache.php: true
maintenance.php: true

### wp-active-theme ###

name: Draeger-IT.blog (draegeritblog_admiral)
version: 1.0
author: Stefan Draeger
author_website: http://www.draeger-it.blog
parent_theme: Admiral (admiral)
theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, title-tag, post-thumbnails, menus, html5, custom-background, custom-logo, woocommerce, editor-style, customize-selective-refresh-widgets, editor-color-palette, responsive-embeds, admiral-pro, themezee-breadcrumbs, themezee-mega-menu, themezee-widget-bundle, themezee-related-posts, infinite-scroll, widgets
theme_path: /homepages/10/d872679325/htdocs/draegerit/draeger-it.blog/wp-content/themes/draegeritblog_admiral

### wp-parent-theme ###

name: Admiral (admiral)
version: 1.6.9 (latest version: 1.7)
author: ThemeZee
author_website: https://themezee.com/de/
theme_path: /homepages/10/d872679325/htdocs/draegerit/draeger-it.blog/wp-content/themes/admiral

### wp-plugins-active (20) ###

Antispam Bee: version: 2.11.1, author: pluginkollektiv
Blog2Social: Social Media Auto Post & Scheduler: version: 6.9.9, author: Blog2Social, Adenion
Broken Link Checker: version: 1.11.18, author: WPMU DEV
Complianz | GDPR/CCPA Cookie Consent: version: 6.3.1, author: Really Simple Plugins
Disable & Remove Google Fonts: version: 1.4.1, author: Fonts Plugin
Download Manager: version: 3.2.54, author: W3 Eden, Inc.
Easy Video Player: version: 1.2.2.1, author: naa986
Enlighter - Customizable Syntax Highlighter: version: 4.5.0, author: Andi Dittrich
OneSignal Push Notifications: version: 2.2.7, author: OneSignal
Redirection: version: 5.3.2, author: John Godley
Schema App Structured Data: version: 1.17.15, author: Hunch Manifest
Simple Lightbox: version: 2.8.1, author: Archetyped
Site Kit by Google: version: 1.81.0, author: Google
Table of Contents Plus: version: 2106, author: Michael Tran
ThemeZee Toolkit: version: 1.3, author: ThemeZee
WordPress Editorial Calendar: version: 3.7.12, author: Colin Vernon, Justin Evans, Joachim Kudish, Mary Vogt, and Zack Grossbart
WPDM - Extended Short-codes: version: 3.0.4, author: W3 Eden, Inc.
WP Super Cache: version: 1.8, author: Automattic
WP YouTube Lyte: version: 1.7.19, author: Frank Goossens (futtta)
Yoast SEO: version: 19.6, author: Team Yoast

### wp-media ###

image_editor: WP_Image_Editor_GD
imagick_module_version: Nicht verfügbar
imagemagick_version: Nicht verfügbar
imagick_version: Nicht verfügbar
file_uploads: File uploads is turned off
post_max_size: 64M
upload_max_filesize: 64M
max_effective_size: 64 MB
max_file_uploads: 20
gd_version: 2.2.5
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: 9.27

### wp-server ###

server_architecture: Linux 4.4.302-icpu-088 x86_64
httpd_software: Apache
php_version: 8.1.9 64bit
php_sapi: cgi-fcgi
max_input_variables: 5000
time_limit: 50000
memory_limit: -1
max_input_time: -1
upload_max_filesize: 64M
php_post_max_size: 64M
curl_version: 7.64.0 OpenSSL/1.1.1n
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: true

### wp-database ###

extension: mysqli
server_version: 5.7.38-log
client_version: mysqlnd 8.1.9
max_allowed_packet: 67108864
max_connections: 3000

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /homepages/10/d872679325/htdocs/draegerit/draeger-it.blog/wp-content
WP_PLUGIN_DIR: /homepages/10/d872679325/htdocs/draegerit/draeger-it.blog/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: -1
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: true
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Nicht definiert
DB_CHARSET: utf8
DB_COLLATE: undefined

### wp-filesystem ###

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
mu-plugins: writable

### google-site-kit ###

version: 1.81.0
php_version: 8.1.9
wp_version: 6.0.1
reference_url: https://draeger-it.blog
amp_mode: no
site_status: connected-site
user_status: authenticated
verification_status: verified-non-site-kit
connected_user_count: 1
active_modules: site-verification, search-console, adsense, analytics, analytics-4, pagespeed-insights, tagmanager
recoverable_modules: none
required_scopes: 
	openid: ✅
	https://www.googleapis.com/auth/userinfo.profile: ✅
	https://www.googleapis.com/auth/userinfo.email: ✅
	https://www.googleapis.com/auth/siteverification: ✅
	https://www.googleapis.com/auth/webmasters: ✅
	https://www.googleapis.com/auth/adsense.readonly: ✅
	https://www.googleapis.com/auth/analytics.readonly: ✅
	https://www.googleapis.com/auth/tagmanager.readonly: ✅
capabilities: 
	googlesitekit_authenticate: ✅
	googlesitekit_setup: ✅
	googlesitekit_view_posts_insights: ✅
	googlesitekit_view_dashboard: ✅
	googlesitekit_manage_options: ✅
	googlesitekit_view_splash: ✅
	googlesitekit_view_authenticated_dashboard: ✅
	googlesitekit_view_wp_dashboard_widget: ✅
	googlesitekit_view_admin_bar_menu: ✅
enabled_features: 
	adsenseSetupV2: ✅
	dashboardSharing: ⭕
	ga4ActivationBanner: ⭕
	ideaHubModule: ⭕
	twgModule: ⭕
	userInput: ⭕
	zeroDataStates: ✅
search_console_property: https://draeger-it.blog/
adsense_account_id: pub-877•••••••••••••
adsense_client_id: ca-pub-877•••••••••••••
adsense_account_status: approved
adsense_site_status: added
adsense_use_snippet: yes
adsense_web_stories_adunit_id: none
analytics_account_id: 1883•••••
analytics_property_id: UA-1883•••••••
analytics_profile_id: 2364•••••
analytics_use_snippet: yes
analytics_4_property_id: none
analytics_4_web_data_stream_id: none
analytics_4_measurement_id: none
analytics_4_use_snippet: yes
tagmanager_account_id: 6002••••••
tagmanager_container_id: GTM-PMS••••
tagmanager_amp_container_id: none
tagmanager_use_snippet: yes

`
"	stdr1980
	38479	Need to check utf8_encode() is available before use.		Media	4.4	normal	normal	Future Release	defect (bug)	new	has-patch	2016-10-25T04:38:14Z	2024-08-05T19:28:11Z	"The DOM/XML extension isn't necessarily installed on some distros so use of `utf8_encode()` should be checked for availability first. It's not checked in `wp_read_image_metadata()` in ""wp-admin/includes/image.php"" (where I encountered its lack on a Ubuntu 16.04 PHP 7 server), introduced in [36429] and [36430], nor in `wxr_cdata()` in ""wp-admin/includes/export.php"", introduced in the distant past.

(Also it does ISO-8859-1 not Windows-1252 so more than likely not that good in the image situation anyway.)"	gitlost
	50667	New attachment size is created even the source is smaller		Media	5.4.2	normal	normal	Awaiting Review	defect (bug)	new		2020-07-15T09:42:55Z	2022-10-19T20:37:30Z	"When you upload a very optimized image sometimes the created attachment size's file size is larger than the source image. When a new size is created its filesize should be checked whether it's really smaller or not. Now it just allocates extra space and uses extra bandwidth.

Sample image: [https://ibb.co/x8LhGC0]"	anonymized_14216934
	59192	New image crop interface don't work in windows 10. Scale works.		Media	6.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-08-24T18:33:19Z	2024-04-24T15:53:48Z	"Win 10, 64GB RAM, Plenty SSD
Shared hosting, Dreamhost
Browsers tried: Chrome, Brave, Firefox, even Opera...
Loving the new image-edit interface concept, but:

Media -> Select Image -> Edit Image -> Crop -> AR: 1:1 -> Apply Crop -> ... Nothing
Save Edits remains gray. No changes made.

Media -> Select Image -> Edit Image -> Scale -> New Dim: 500w -> Scale ... ""Image Saved"" notice. ""Save Edits"" remains gray. Changes saved.

I'm trying to scale and crop an image. It looks like a better workflow than before, but this crop is still a no-go.

I am pretty familiar with the old method, so the new method will certainly be an improvement. I use WordPress's crop function regularly. I'd love to see the fixed asap.

Hope this helps.

Chris"	Laughter On Water
	49071	None of the images with the file name ending -300x250 will work as expected after downloading		Media	5.3.2	normal	minor	Awaiting Review	defect (bug)	new		2019-12-23T22:22:52Z	2019-12-23T22:29:46Z	"If I upload an image called image-300x250.jpg (or any other with ending -300x250) via media gallery I can see the image (and 150x150 version) in the upload folder but the image thumbnail is blank in the media gallery.

The image is blank also in the Gutenberg editor screen and in the front end. Anyway the correct img src url seems to be found in the front end html code.

"	mmoro
	64931	On media grid view, the file name is shown twice if it exceeds the maximum file upload size		Media		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-03-23T09:18:50Z	2026-11-02T06:45:09Z	Showing it only once will be enough, if you ask me.	Presskopp
	40127	On mobile media deleting message formatting issues		Media		normal	normal	Future Release	defect (bug)	new		2017-03-12T12:42:20Z	2023-09-05T15:21:34Z	"Formatting leads to widow in delete media image on mobile. Seen tested on iPhone 7 plus.

[[Image(https://cldup.com/91KH54-k3y.PNG, 50%)]]"	karmatosed
	54193	PHP fileinfo extention identifies JSON as text/plain; wp_check_filetype_and_ext then prevents upload		Media		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-09-27T16:54:56Z	2026-06-12T14:34:39Z	"For hosts that make available the PHP fileinfo extension, uploaded files of mime type `application/json` are identified by that extension as `text/plain`.  Within the `wp_check_filetype_and_ext` function, it's noted that ""a few common file types are occasionally detected as `text/plain`"", but `application/json` is not listed as one of those common types.  For reference, the following types are listed:  csv, rtf, tsv, and vtt.  

I propose adding `application/json` to this list.  Otherwise, I believe it may be impossible to upload a JSON file on a host that uses this extension."	dashifen
	41516	PNG Image Saturation Loss on Resize		Media	4.8	normal	normal	Awaiting Review	defect (bug)	new		2017-08-01T16:08:23Z	2017-08-04T04:16:39Z	"I work with PNG images made with grey colors. And the colors change because of wordpres, not the original image, but all the new sizes.

By default make the colors much darker but sometimes, also is weird:

[[Image(http://i.imgur.com/L3Sk1Rg.png)]]

Left and right are the same image. Some times handle even different for the same K=70 color.

( I export with Adobe illustrator to sRGB )"	colomet
	61983	Part of `wp_generate_attachment_metadata` missing `avif` extension		Media	6.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-09-04T16:22:27Z	2024-09-09T17:33:34Z	"This ticket proposes a fix to `wp_generate_attachment_metadata` which is missing extension support for AVIF images.  The code path in question is only used as a fallback, it would be good to add a test that validates the fix.
"	adamsilverstein
	51003	Photo rotation issue when iPhone photos are uploaded		Media	5.5	normal	major	Awaiting Review	defect (bug)	new		2020-08-14T12:38:18Z	2020-08-14T15:50:10Z	"Last year I had a brief issue where some of the photos I uploaded from my phone were not rotating correctly on the site itself.  Strangely they were correct in the media library.

I updated to 5.3 and the issue resolved itself.

However, a few days ago the image rotation issue is back.  I tried disabling plugins (no help) and reinstalling the latest version of WordPress (also no help).  The issue persists.

The most noticeable and bad looking post is here: https://anaturalcuriosity.org/top-10-of-2019-my-favorite-cacti-and-euphorbia/"	anaturalcuriosity
	41468	"Provide contextual info about what ""attached"" and ""detached"" means regarding media objects"		Media		normal	normal	Awaiting Review	defect (bug)	new		2017-07-27T22:10:56Z	2017-07-30T14:25:03Z	"From user testing:

""I have no idea what it means when it says an image is 'Attached' to a post. Does it mean the image is in the post? Does it mean if I 'Detach' the image from the post it will go away from the post? I'm worried a client might 'Detach' an image from a post to remove it, or 'Attach' an image to add it. What is this for? How can an image be 'Unattached' to the post it is displayed in anyway?"""	mor10
	66226	REST API: Attachment title from uploaded filename is not sanitized like media library uploads		Media	6.6	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-01T08:23:35Z	2026-10-01T10:08:50Z	"When a file is uploaded through the REST API (`POST /wp/v2/media`, used by the block editor) without a title, the attachment title is built from the raw uploaded filename and never sanitized.

Chrome and other browsers send a double quote in a multipart filename as `%22`. So uploading `""css"".png` from the block editor creates an attachment titled **`%22css%22`**. Uploading the same file through the media library (`async-upload.php` → `media_handle_upload()`) gives the title `css`, because `media_handle_upload()` runs the name through `sanitize_text_field()`.

The REST logic was added in [58447] (#57957) to ""match the naming behavior for uploaded media in the REST API to the way media is named when uploading in the media library"", but it doesn't apply the same sanitization. HTML in a filename is kept as well: `<b>Bold</b> Name.jpg` gets the title `<b>Bold</b> Name` via REST, and `Bold Name` via the media library.

=== Steps to reproduce
1. In Chrome, open the block editor and add an Image block.
2. Upload a file named `""css"".png`.
3. Check the attachment title in the media library: it shows `%22css%22`.

=== Expected
The title should be `css`, the same as an upload through the media library.

=== Proposed fix
Wrap the derived title in `sanitize_text_field()` in `WP_REST_Attachments_Controller::insert_attachment()`, as `media_handle_upload()` does.

Found while testing #16191. The related ''filename'' issue (`22css22.png`) is tracked in #66125."	binsaifullah
	46970	Remove white Space - iPhone 6/7/8		Media	5.2	normal	normal	Future Release	defect (bug)	new		2019-04-18T08:42:03Z	2023-05-20T07:27:13Z	"Hello,

While we edit image from admin dashboard (Dashboard > Media > Library - edit), there is much white space displayed in iPhone-6/7/8 landscape and portrait mode. So for that, we can make that element in full width.

Thanks,
Shashank."	shashank3105
	40299	Removing width attribute on an image with a caption removes entire caption		Media	4.7.3	normal	normal	Future Release	defect (bug)	new		2017-03-29T13:59:21Z	2018-12-27T21:56:20Z	"If you insert an image with a caption into the visual editor, it will create code like:

{{{
[caption id=""attachment_12345"" align=""alignnone"" width=""150""]<img class=""wp-image-12345 size-thumbnail"" src=""https://www.example.com/wp-content/uploads/2017/03/image.png"" alt="""" width=""150"" height=""150"" /> My caption[/caption]
}}}

If you switch from the visual editor to the text editor and remove the `width` attribute '''of the image''' to get:

{{{
[caption id=""attachment_12345"" align=""alignnone"" width=""150""]<img class=""wp-image-12345 size-thumbnail"" src=""https://www.example.com/wp-content/uploads/2017/03/image.png"" alt="""" height=""150"" /> My caption[/caption]
}}}

And then either update the post, or switch back to the visual editor, the caption is stripped and only the image remains:

{{{
<img class=""wp-image-12345 size-thumbnail"" src=""https://www.example.com/wp-content/uploads/2017/03/image.png"" alt="""" height=""150"" />
}}}

Removing the `height` attribute doesn't appear to cause the same behavior. I don't believe that removing the width attribute on the image should result in both the caption being stripped and the `[caption]` shortcode being removed.

I'm not sure but this might be related to [27426] and #23103."	catchmyfame
	39387	Responsive Images Broken When Full Size <= 300 px	joemcgill	Media	4.4	normal	normal	Future Release	defect (bug)	reviewing	has-patch	2016-12-24T19:02:49Z	2017-05-18T14:27:41Z	"A quick test of the srcset feature today showed me that WordPress never includes the ""full"" size image in the srcset when the ""thumbnail"" size is inserted in a post.  As a result, if the full size was 300 px, the responsive image feature effectively does nothing.

Tested 4.7.  Suspect this might go back to 4.4."	miqrogroove
	48788	Run time crop image not working using wp_get_image_editor		Media	5.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-11-25T14:16:27Z	2020-01-16T15:35:00Z	"it's not working run time crop image

{{{#!php
<?php
$editor = wp_get_image_editor($filePath);

$editor->set_quality($quality);

$editor->crop($srcX, $srcY, $srcW, $srcH, $destWidth, $destHeight);

$saved = $editor->save($destFileName);
}}}



=============================
Problem for ""$editor->crop()"" while source image size is smaller than destination image size.

{{{#!php
<?php
$editor->crop($srcX, $srcY, $srcW, $srcH, $destWidth, $destHeight);
}}}
"	ahmed17
	55247	SVG logos generate warnings from _wp_get_image_size_from_meta()		Media	5.9	normal	minor	Awaiting Review	defect (bug)	new		2022-02-24T12:50:48Z	2024-10-01T19:45:59Z	"If I set an SVG image as my logo in the customizer, my debug log gets filled with the following notices:

` PHP Notice:  Trying to access array offset on value of type bool in /{redacted}/wp-includes/media.php on line 1182 `

Looking at that file, [https://core.trac.wordpress.org/browser/tags/5.9/src/wp-includes/media.php#L1178 that section] refers to the following function: 

{{{#!php
<?php
function _wp_get_image_size_from_meta( $size_name, $image_meta ) {
	if ( 'full' === $size_name ) {
		return array(
			absint( $image_meta['width'] ),
			absint( $image_meta['height'] ),
		);
	} elseif ( ! empty( $image_meta['sizes'][ $size_name ] ) ) {
		return array(
			absint( $image_meta['sizes'][ $size_name ]['width'] ),
			absint( $image_meta['sizes'][ $size_name ]['height'] ),
		);
	}

	return false;
}
}}}


I suspect what's happening here is the function is assuming there will always be a height and width meta, which doesn't exist with SVG file types."	gillespieza
	51115	Scaled Images have larger file size than the original		Media	5.5	normal	normal	Awaiting Review	defect (bug)	new		2020-08-23T22:29:29Z	2020-08-24T20:02:43Z	"I saw a bug about this for png files but I have the same issues with jpg.  This occurs with WP 5.5 on different sites. 
As a result, I turn scaling off to work around the issue. "	koolkatwebdesigns
	48784	Search box in Select / Upload image pop-up not working with cropped images		Media	5.3	normal	normal	Awaiting Review	defect (bug)	reopened		2019-11-24T20:52:28Z	2020-03-28T20:10:45Z	"Hi, it seems that the search field in the pop-up of selecting or uploading images can not find the images which have been cropped before. For example, if I go to Appearance / Customize and want to change the Logo image, and I am asked to cropped the image, that image won't show in the search field. It will show the non cropped image, but not the cropped one.
Thank you!
In the attached image you can see how the search field can do find the filename ""Foto-de-Javier-1.jpg"" using just the letters ""jav"". But there is another image in the Media which name is ""cropped-Foto-de-Javier-1.jpg"" and this one does not appear."	javierr
	27919	Similar strings for media modal	joedolson*	Media	3.9	normal	normal	Future Release	defect (bug)	accepted	has-patch	2014-04-19T18:10:24Z	2025-02-13T20:22:12Z	"There are some strings which we use for the same action from different modal windows:

- ""Attachment Display Settings"" x ""Display Settings"" - same settings from different windows

- ""Edit Image"" x ""Edit Original"" - same link from different windows

- ""There are no associated subtitles."" - should be ""items"", I guess (can be inserted also other things then subtitles)."	pavelevap
	66309	Site Icon in Settings > General: exact 512×512 image skips the crop step, so site icon sizes (32/180/192/270) are never generated		Media	trunk	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-14T15:23:48Z	2026-10-22T15:46:38Z	"When a Site Icon is set from '''Settings > General''' using an image that is exactly 512×512, the media frame skips the crop step and saves the original attachment as `site_icon`. The crop step is what generates the site icon sizes (`site_icon-32`, `-180`, `-192`, `-270`), so they are never created.

`wp_site_icon()` then falls back to the closest registered size for every favicon tag, and browsers download a larger image than needed (e.g. a 150px–300px image for the 32×32 favicon).

The Customizer (Site Identity) does not have this problem. For an exact 512×512 image it still sends the image through `crop-image` with `context: 'site-icon'`, which creates the `cropped-` attachment with all site icon sizes. The two UIs give different results for the same image.

This has been the behaviour since the Site Icon setting was added to Settings > General in 6.5 (#54370). It is still present in trunk.

== Steps to reproduce ==

 1. On a fresh install, go to Settings > General.
 2. Click ""Choose a Site Icon"" and upload/select a PNG that is exactly 512×512.
 3. Note that no cropper appears. Save Changes.
 4. Inspect the attachment and the icon URLs:
{{{
wp post meta get $(wp option get site_icon) _wp_attachment_metadata --format=json
wp eval 'foreach ( array( 32, 180, 192, 270, 512 ) as $s ) { echo $s, "": "", get_site_icon_url( $s ), PHP_EOL; }'
}}}
 5. Repeat with a square image of any other size (e.g. 1024×1024). The cropper appears, and after cropping the `site_icon-*` sizes exist.

== Expected result ==

The site icon attachment has the 32, 180, 192 and 270 sizes, and `get_site_icon_url( 32 )` returns a 32×32 file, matching what happens in the Customizer or with any non-512 image.

== Actual result ==

The attachment has only the standard intermediate sizes (thumbnail/medium). `get_site_icon_url()` returns the nearest larger size for every requested size, e.g.:
{{{
32:  .../icon-150x150.png
180: .../icon-300x300.png
192: .../icon-300x300.png
270: .../icon-300x300.png
512: .../icon.png
}}}
`_wp_attachment_context` is not set to `site-icon`.

== Cause ==

`site-icon.js`, `select` handler ([https://github.com/WordPress/wordpress-develop/blob/33ffa46a017c255cf86ac143b3f14706e0022d4d/src/js/_enqueues/admin/site-icon.js#L118-L134 L118–134]): if the selected image already matches the required size, it calls `switchToUpdate()` and sets the hidden field to the original attachment ID, skipping the cropper entirely.

The site icon sizes are only added in `wp_ajax_crop_image()` for the `site-icon` context, via `WP_Site_Icon::additional_sizes()` on `intermediate_image_sizes_advanced` ([https://github.com/WordPress/wordpress-develop/blob/33ffa46a017c255cf86ac143b3f14706e0022d4d/src/wp-admin/includes/ajax-actions.php#L4092-L4119 ajax-actions.php L4092–4119]).

For comparison, the Customizer's `SiteIconControl.onSelect()` handles the exact-size case by still calling `crop-image` with a full-image crop ([https://github.com/WordPress/wordpress-develop/blob/33ffa46a017c255cf86ac143b3f14706e0022d4d/src/js/_enqueues/wp/customize/controls.js#L4874-L4900 controls.js L4874–4900]).


== Possible fixes ==

 * Match the Customizer: in `site-icon.js`, when the image is already 512×512, call `wp.ajax.post( 'crop-image', { context: 'site-icon', cropDetails: { x1: 0, y1: 0, width: 512, height: 512, dst_width: 512, dst_height: 512 } } )` instead of using the original attachment. This keeps the existing ""cropped-"" duplicate behaviour discussed in #33011 / #38530.
 * Or, generate the site icon sizes on the selected attachment without creating a duplicate (e.g. when the `site_icon` option is saved), so both UIs produce the same result.

== Related ==

#54370, #33011, #38530, #36441, #58137
"	ebrissette
	62695	Styling added causes websites to break		Media	6.7.1	normal	normal	Awaiting Review	defect (bug)	new		2024-12-16T13:30:44Z	2024-12-16T13:43:14Z	"This is a follow-up to #62413.

Hello,

The code added in this ticket causes issues with other sites. Can you revert this or recommend a workaround?

[[Image(https://i.imgur.com/l9I3IkZ.png)]]

[https://www.kunsthuizen.nl/kunstenaars/elvira-bach/ The page where it occurs]

"	rogierlegit
	40806	Subtitles show no media files in browser when there are some		Media		normal	normal	Awaiting Review	defect (bug)	new	close	2017-05-18T17:42:45Z	2025-07-10T00:11:01Z	"This may be a case of it looking for a very particular file, the trouble is that isn't clear if the case.

I discovered this whilst testing the video widget, but assume its media library. I see the following:

[[Image(https://cldup.com/jLgqBIQbvi.png, 60%)]]

Somewhat of a surprise when my media library shows...

[[Image(https://cldup.com/pCAJry0o1a.png, 60%)]]"	karmatosed
	63322	Suggested cropping for media		Media	6.8	normal	minor	Awaiting Review	defect (bug)	new		2025-04-21T14:03:23Z	2025-04-22T05:58:39Z	After uploading an image and entering metadata, the select and crop screen suggests 900 by 200 as optimal and marks that as the default.  But for header images what actually fits in my site is 1000 wide, and **any** height.  So I always have to skip cropping for headers.  If I were to accidentally hit the return key, I would hae to delete and upload again.	happyhobo
	47144	Text inadvertently rendered by assistive technologies	joedolson*	Media		normal	normal	Future Release	defect (bug)	accepted	has-patch	2019-05-06T14:58:01Z	2026-07-09T12:16:50Z	"Moved from the WPCampus accessibility report issues on GitHub, see https://github.com/WordPress/gutenberg/issues/15296

* **Severity**: 
 * Medium
* **Affected Populations**:
 * Blind
 * Low-Vision
 * Cognitively Impaired
* **Platform(s):**
 * Windows - Screen Reader
 * Mac - VoiceOver
 * Android - TalkBack
 * iOS - VoiceOver
* **Components affected**:
 * Block Panel
 * Document Panel
 * Media Dialog

**Issue description**
Users of assistive technologies such as screen readers who navigate to
the bottom of the Settings panels will find a button which they cannot
activate (nor see if sighted) called ""Select files"".

Additionally, if users change the color modes in the popup custom color
picker, the current mode is announced in a live region. However, long
after users are done with choosing a color, even after choosing to edit
another block on the page, when they reach the bottom of the Block panel
they'll still hear ""hex color mode active"". At this point, users may
not remember what this was for and have no idea what this is
referencing, as it no longer has any context.

**Issue Code**
{{{
    <!-- color announcement -->


    <div id=""wp-a11y-speak-polite"" aria-live=""polite"" aria-relevant=""additions text"" aria-atomic=""true"" class=""screen-reader-text wp-a11y-speak-region"">Hex color mode active</div>





    <!-- select files -->


    <div class=""wp-uploader-browser"" id=""wp-uploader-browser-o_1d2saqvj4l3skgruvl1ejo1ejp3"" style=""position: fixed; top: -1000px; left: -1000px; height: 0px; width: 0px;"">


        <button type=""button"" class=""browser button button-hero"" id=""__wp-uploader-id-1"" style=""display: inline-block; position: relative; z-index: 1;"">Select Files</button>


    </div>
}}}

**Remediation Guidance**
When users have performed an action, such as clicking another block (or
whatever action causes ""No block selected"" to appear in the Block
panel), clear the live region so that users who encounter it while
manually reading do not hear it. Refill the live region when users
change color modes.

The hidden file selection button should be hidden from all users with
display: none whenever it is not visible nor meant to be used.

**Recommended Code**
{{{
    <!-- color announcement -->


    <div id=""wp-a11y-speak-polite"" aria-live=""polite"" aria-relevant=""additions text"" aria-atomic=""true"" class=""screen-reader-text wp-a11y-speak-region""> </div>





    <!-- select files -->


    <div class=""wp-uploader-browser"" id=""wp-uploader-browser-o_1d2saqvj4l3skgruvl1ejo1ejp3"" style=""display:none;"">


        <button type=""button"" class=""browser button button-hero"" id=""__wp-uploader-id-1"" style=""display: inline-block; position: relative; z-index: 1;"">Select Files</button>


    </div>
}}}

**Note**: This issue may be a duplicate with other existing accessibility-related bugs in this project. This issue comes from the Gutenberg accessibility audit, performed by Tenon and funded by WP Campus. This issue is GUT-41 in Tenon's report

''**Note**: The a11y-speak live regions are used in core as well. In several places. Thus, clearing the live regions shouldn't depend on a specific user action or scenario. It would require a more generic solution, preferably avoiding setTimeout() which seems to me a very fragile solution by its own nature.''"	anevins
	58483	UI issue in uploasd multiple media in mobile		Media	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-06-08T07:40:16Z	2023-06-08T07:40:16Z	"Hi,

We need to add padding on the right side for maintaining alignment on the right side in uploading multiple media on mobile.

The more informed nation you can see mentioned screenshot. "	sumitsingh
	52373	URL returned by get_attachment_link() can 404.		Media	4.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-01-25T23:51:23Z	2021-02-02T00:52:54Z	"The permalink returned by `get_attachment_link()` and `get_permalink( /* attachment */ )` can result in a file not found page in the following circumstances:

* The attachment's post parent has been deleted but `post_parent` is set (ie, post parent is pointing to an invalid ID).
* The attachment's post parent is an unregistered post type.

In both cases `get_permalink()` will return a URL in the format `w.org/attachment-name` that will 404 when visited on the front end of the website.

If pretty URLs are enabled, the URL should return `w.org/attachment/attachment-name` as the permalink.

Adding the following unit test will demonstrate the bug:


{{{#!php
<?php
public function test_attachment_attached_to_non_existent_post_type_does_not_404() {
	global $wp_post_types;

	$this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );
	flush_rewrite_rules();

	// Create temporay post type.
	register_post_type( 'not_a_post_type', array( 'public' => true ) );
	$post_id = self::factory()->post->create( array( 'post_type' => 'not_a_post_type' ) );

	// Attach media to post of post type.
	$attachment_id = self::factory()->attachment->create_object(
		'image.jpg',
		$post_id,
		array(
			'post_mime_type' => 'image/jpeg',
			'post_type'      => 'attachment',
			'post_title'     => 'An Attachment!',
			'post_status'    => 'inherit',
		)
	);

	// Unregister post type.
	foreach ( $wp_post_types as $id => $pt ) {
		if ( 'not_a_post_type' === $pt->name ) {
			unset( $wp_post_types[ $id ] );
			break;
		}
	}

	// Visit permalink.
	$this->go_to( get_permalink( $attachment_id ) );
	$this->assertQueryTrue( 'is_attachment' );
}
}}}

This looks to have been introduced in #1914
"	peterwilsoncc
	66024	Unused closing div tag in wp_print_media_templates method		Media	7.1	high	normal	Awaiting Review	defect (bug)	new	has-patch	2026-09-02T14:03:29Z	2026-09-02T15:03:40Z	"wp-includes/media-template.php line 1588

There is no opening tag associated with the closing </div>

Deleting the closing </div> fixes the problem."	jdorner
	46793	Uploading files that the filename contains LTR and RTL characters cause filename change		Media	4.9.1	normal	major	Awaiting Review	defect (bug)	new		2019-04-04T11:03:32Z	2019-04-11T13:32:52Z	I have uploaded some pdf files in the Media. The process goes well but when I am trying to access them the files are not found. I reviewed the uploads with ftp and I saw that the file names changed. For example a file that was uploaded with filename  אילן-גל-פאר-english.pdf is changing to english.pdf-גל-פאר- with result to get 404 error.	VSotiris
	64693	Video Block: Unexpected Behavior with Supported and Unsupported Formats		Media		normal	normal	Awaiting Review	defect (bug)	new		2026-02-22T11:41:10Z	2026-05-19T20:50:08Z	"I tested video format support in WordPress 7.0 by generating multiple test videos in different formats.

According to the official documentation for the Video Block:
​https://developer.wordpress.org/themes/classic-themes/functionality/media/video/

The supported formats are listed as:

mp4

m4v

webm

ogv

flv

However, during testing I observed the following:

Formats that work (not listed in documentation)

.mov — uploads and plays correctly in both admin and frontend.

Formats that partially work

.avi — uploads, but does not play correctly.

.wmv — uploads, but does not play correctly.

Formats that do not work as expected

.ogv — uploads, but does not display correctly in admin or frontend (although it is listed as supported).

.flv — cannot be uploaded, although it is listed as supported in the documentation.

Questions:

Is it possible to restrict uploads in WordPress so that only fully supported video formats are allowed?

Is there an official way to validate which video formats are fully supported and guaranteed to work correctly with the Video Block?

Is the documentation outdated, or has format support changed in recent versions?

Thank you in advance for clarification."	blackstar1991
	43839	Video Player Mobile		Media		normal	normal	Future Release	defect (bug)	new		2018-04-23T23:51:04Z	2019-04-15T19:51:39Z	"I usually use the video player with autoplay on. 
\\
But I noticed that on the mobile (I know the autoplay does not work on the mobile), the video player does not display the big play button in the middle of the player. 
\\
And the only way to run a video is to press the play button from the control bar at the bottom of the player.
\\
Print screen:
\\
That's how it should look (So it was up to wp 4.8.3)[https://i.imgur.com/PkHjszD.jpg]
\\
That's what it looks like now [https://i.imgur.com/l8Zp94G.jpg]
\\

Does anyone know how to solve this issue?

Thank you!"	studiosx
	65683	Visually expose the labels of the Media Library 'List view' and 'Grid view' links	joedolson*	Media		normal	normal	7.3	defect (bug)	accepted	has-patch	2026-07-21T21:21:17Z	2026-11-09T17:21:16Z	"Related: #51006, #50921.

Now that accessible tooltips and toggle tips are in Core, see [62741], I think that's a great opportunity to reconsider those parts of the admin UI that we are most accustomed to and that at first glance we do not consider problematic but in fact may be problematic for some users.

One of the most evident cases is about the 'List view' and 'Grid view' links in the Media Library. 

Those two icon-only links do contain visually hidden screen reader text but that's not sufficient. There should be a _visible_ label for them.

Visible label text should always be preferred.

Some users don't understand icons. Some users need to know the accessible name of a control to be able to issue a voice command. The most accessible web and desktop applications use a combination of icon + visble label to take into account the needs of users with diverse abilities.

When there's a really, really, ''really'' good reason to use only an icon, e.g. because of design constraints that can't be solved otherwise, then exposing the accessible name of such a link by the means of an accessible tooltip is an acceptable compromise. Still, it's a compromise. Always prefer visible text.

In this specific case there are two options:

1. Change the design and add visible label text below the icons.
2. Use the new WordPress accessible tooltips. 

It is worth noting that in their first implementation the new WordPress tooltips only supported button eloments. They are going to be extended to support also links but only for the 'tooltip' pattern, not for the 'toggletip' pattern.

For links, as agreed on the discussion starting at https://github.com/WordPress/wordpress-develop/pull/12528#issuecomment-5025167415, the only implementation we'd want to have is the 'tooltip' case. As in: an icon-only link that already has an accessible name and needs to visually expose it by the meqans of a tooltip. 

For these two links, the PHP part in the List view is pretty simple to address. However, the JS part in the Grid view may be a little more comples. Still, visible text is the preferred option so I would like to suggest a design change to start with."	afercia
	42484	WP ajax call fail when executing long time  'ERR_SPDY_PROTOCOL_ERROR'.		Media	4.8.3	normal	normal	Awaiting Review	defect (bug)	new		2017-11-09T12:18:18Z	2017-11-09T12:38:47Z	"Hello,

    I have one ajax script that is uploading 25MB video on server and convert on server. This core process doing by only WordPress ajax file. This process is run successfully but after uploading and conversion ajax automatically fail and give me this error ""ERR_SPDY_PROTOCOL_ERROR"". This error i am facing from last update(4.8.3). so i think there is issue regarding ajax call in WordPress 4.8.3 version.
    I am WordPress Developer with 6+ years of experience and i have found this bug. Please review this bug.

There is attach one image related to error.

[[Image(http://webidroid.com/WP_ajax_err.png)]]
     "	gaurangsondagar
	64943	WP generates duplicate pictures after Upload		Media	6.9.4	normal	normal	Awaiting Review	defect (bug)	assigned		2026-03-24T18:12:54Z	2026-03-30T14:01:25Z	"After upload a picture different sizes of smaller versions are generated.
Default-steps (longest side): 
  150 - Thumbnail 
  300 - Medium 
  768 - Medium large 
 1024 - Large 
 1536 - ? 
 2048 - ? 

To minimize the diskspace I use the 1536-size als 'full' upload. So no smaller 1536-version has to be generated.
In some cases the size 'large' (1024) is generated twice.

- only for portrait, not for landscape (hight > width)
- only for aspect-ratio 4:3 (1.333..)

4:3 is the format of MFT (micro four-thirds) cameras. When I use the options 'original' (from raw) or '4:3' with the crop-tool in darktable and limit the size to 1536 pixels on darktable-export = WP-upload, this error happens.

Uploading the size 1153x1536 Pixel generates the sizes 768x1023 AND 769x1024.

Example

Use this as full:
https://fotodrachen.de/wp/wp-content/uploads/Lohbluete_20230920_0131.jpg 

Results:
https://fotodrachen.de/wp/wp-content/uploads/Lohbluete_20230920_0131-768x1023.jpg
https://fotodrachen.de/wp/wp-content/uploads/Lohbluete_20230920_0131-769x1024.jpg"	fotodrachen
	55057	WebP EXIF data missing and images are not rotated in the same way JPEG images are rotated.	adamsilverstein	Media	5.8	normal	normal	Future Release	defect (bug)	assigned		2022-02-03T01:25:58Z	2022-07-07T18:29:05Z	"When a WebP image is uploaded with the rotated exif this exif is ignored and the image is uploaded as it is instead of rotating the image when a JPEG version is uploaded the rotation happens as it should creating a `-rotated.jpeg` version of the original image.

**Result when uploading a JPEG version**

[[Image(https://user-images.githubusercontent.com/3921289/152251451-201251d2-409f-42d6-a302-a93bfe3aec3c.png)]]

**Result when uploading a WebP version**

[[Image(https://user-images.githubusercontent.com/3921289/152251458-1f3d98ac-5b40-4728-97a9-a3c05aa7cbb7.png)]]

Steps to replicate the problem: 

- Create a WebP version of the original JPEG image (you can use imagemagick to do this)
- Upload the WebP version of the image and observe the image is not rotated the same way it happens with the JPEG version.

Original JPEG image used to test this behavior can be found at (and attached as part of this report):

 - https://www.flickr.com/photos/brevity/6221434141/in/photostream/

Related with the performance ticket: 

- https://github.com/WordPress/performance/issues/146


**Media handling information from the installation where this is happening: 
**
Active editor	WP_Image_Editor_Imagick
ImageMagick version number	1691
ImageMagick version string	ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
Imagick version	3.7.0
File uploads	Enabled
Max size of post data allowed	100M
Max size of an uploaded file	100M
Max effective file size	100 MB
Max number of files allowed	20
Imagick Resource Limits	area: 122 MBdisk: 1073741824file: 786432map: 512 MBmemory: 256 MBthread: 1
ImageMagick supported file formats	3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HEIC, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
GD version	bundled (2.1.0 compatible)
GD supported file formats	GIF, JPEG, PNG, WebP, BMP
Ghostscript version	9.53.3"	mitogh
	55323	When an image is edited the URL of the image is not updated		Media	5.9.1	normal	normal	Awaiting Review	defect (bug)	new		2022-03-06T01:31:01Z	2022-03-07T19:34:24Z	"When an image is edited from the image editor, after an edit has been applied, the URL of the image is not updated due it always references back to the original image instead of referencing the image to the updated image (when the edit has been applied to all images sizes).


== Steps to replicate the problem.

1. Upload an image into the media library
2. After the image is uploaded into the media library click on Edit image
3. Apply an edit to the image, either rotate, flip or crop,
4. Make sure that the option is applied to all images sizes.
5. Click on Save
6. Observe how the URL of the image (see attached image), by clicking on  Copy URL to the clipboard
7. Open the copied URL into a new tab the copied URL still references to the original image, and not the edited image instead.

"	mitogh
	55345	When uploading image through featured image section, the image item count is wrong.		Media		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-03-08T17:45:56Z	2026-05-22T15:57:03Z	"When uploading image through featured image section, the image item count is wrong.

=== Env 
* 5.9.1
* Brave, Chromium
* Win 10
* Theme : TT2
* Plugins: None

=== Test Instruction

* Open Post Editor and click on 'Set featured image' option.
* Notice the total number of existing images
* Upload a new image into the featured image section.
* Now notice the number of images (+2)


* Reload the page, and now the count corrects itself.



When uploading image directly to the featured image section of the post editor, the media item count works correctly.
"	alanjacobmathew
	45980	WordPress 5.0.3 PDF is opening empty page in Chrome and not showing content		Media	5.0.3	normal	normal	Awaiting Review	defect (bug)	reopened		2019-01-14T10:34:54Z	2019-01-30T07:38:23Z	"Hi,

I have some links that open pdf.
On firefox or safari, when I clic on the link, the pdf is opend on another page.
I can see the pdf.

On Chrome, when I clic, anoter page is open but the page is empty.
I can see on the url that the pdf is open

https://www.....de/wp-content/uploads/2018/07/TEST.pdf

but it is empty. And it worked before (not with WordPress 5.0.1) 

And it doesn't work with new pdf too.

MAny thanks for you help"	Timama
	50692	WordPress v5.4.2 Escaping Problem in the Edit Media Screen		Media	5.4.2	normal	normal	Future Release	defect (bug)	new	has-patch	2020-07-18T02:04:24Z	2023-01-31T13:35:59Z	"**Summary**: 
WordPress v5.4.2 escapes the content of the Description field in the Edit Media screen if the filter {{{'user_can_richedit'}}} returns {{{false}}}. 


**How to Replicate**
1) Upload an attachment and open the Edit Media screen
2) Add a simple HTML markup to the Description field. Example: {{{<p>Hello World!</p>}}}
3) Save changes and check that the content of the field is not HTML escaped
4) Add the following line to the current theme

{{{add_filter('user_can_richedit', '__return_false', 999, 0);}}}

5) Go back to the Edit Media screen and save changes again
6) Problem: The content of the field Description is HTML escaped

**Context**
I administer a WordPress website since many years ago and I disabled the WYSIWIG editor setting the value of the filter {{{'user_can_richedit'}}} to {{{false}}}. I like to enter HTML code directly. Now I am unable to use HTML code in the Description field as I did previously. 

Probably other users are also facing this problem. "	rafaelcardero
	51243	[JS] Exception when setting or trying to upload a featured image in a post		Media	5.5.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-09-04T09:43:43Z	2020-10-30T07:15:30Z	"I'm getting the following JS exception when trying to set or upload a featured image in a post. The editor then exits with an error message.

{{{
TypeError: this.obj._listeners is undefined
    Backbone 5
    t https://ig-klettern.org/wp-includes/js/media-views.min.js?ver=5.5:2
    dispose https://ig-klettern.org/wp-includes/js/media-views.min.js?ver=5.5:2
    dispose https://ig-klettern.org/wp-includes/js/media-views.min.js?ver=5.5:2
    remove https://ig-klettern.org/wp-includes/js/media-views.min.js?ver=5.5:2
    Underscore 3
    Backbone 2
    remove https://ig-klettern.org/wp-includes/js/media-views.min.js?ver=5.5:2
    Underscore 3
    Backbone 2
    remove https://ig-klettern.org/wp-includes/js/media-views.min.js?ver=5.5:2
    value https://ig-klettern.org/wp-includes/js/dist/media-utils.min.js?ver=9ad24b42cc69f241229ded4dc61409fb:2
    Ii https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:104
    $g https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:105
    bh https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:105
    ah https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:109
    Ti https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:145
    unstable_runWithPriority https://ig-klettern.org/wp-includes/js/dist/vendor/react.min.js?ver=16.9.0:26
    Ma https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:52
    Ia https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:140
    ze https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:118
    mg https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:53
    unstable_runWithPriority https://ig-klettern.org/wp-includes/js/dist/vendor/react.min.js?ver=16.9.0:26
    Ma https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:52
    mg https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:52
    V https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:52
    Sb https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:213
    Mg https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:85
    e https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    t https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    o https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    o https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    b https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    p https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    s Redux
    I https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    N https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    default https://ig-klettern.org/wp-includes/js/dist/block-editor.min.js?ver=6d92bbc61845b6652c64f83c59aee1f0:12
    t https://ig-klettern.org/wp-includes/js/dist/block-editor.min.js?ver=6d92bbc61845b6652c64f83c59aee1f0:7
    s https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    he https://ig-klettern.org/wp-includes/js/dist/rich-text.min.js?ver=a4056cfcb2aec8ceb3c8e8935dfd0bc4:7
react-dom.min.js:103:487
    ve https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:103
    callback https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:114
    yg https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:62
    xg https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:61
    Ti https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:148
    unstable_runWithPriority https://ig-klettern.org/wp-includes/js/dist/vendor/react.min.js?ver=16.9.0:26
    Ma https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:52
    Ia https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:140
    ze https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:118
    mg https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:53
    unstable_runWithPriority https://ig-klettern.org/wp-includes/js/dist/vendor/react.min.js?ver=16.9.0:26
    Ma https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:52
    mg https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:52
    V https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:52
    Sb https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:213
    Mg https://ig-klettern.org/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:85
    e https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    t https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    o https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    o https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    b https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    p https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    s Redux
    I https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    N https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    default https://ig-klettern.org/wp-includes/js/dist/block-editor.min.js?ver=6d92bbc61845b6652c64f83c59aee1f0:12
    t https://ig-klettern.org/wp-includes/js/dist/block-editor.min.js?ver=6d92bbc61845b6652c64f83c59aee1f0:7
    s https://ig-klettern.org/wp-includes/js/dist/data.min.js?ver=75f90354ddff4acd5b0b4026454037ca:2
    he https://ig-klettern.org/wp-includes/js/dist/rich-text.min.js?ver=a4056cfcb2aec8ceb3c8e8935dfd0bc4:7
Uncaught TypeError: r is null
    Ce https://ig-klettern.org/wp-includes/js/dist/rich-text.min.js?ver=a4056cfcb2aec8ceb3c8e8935dfd0bc4:7
    fe https://ig-klettern.org/wp-includes/js/dist/rich-text.min.js?ver=a4056cfcb2aec8ceb3c8e8935dfd0bc4:7
    he https://ig-klettern.org/wp-includes/js/dist/rich-text.min.js?ver=a4056cfcb2aec8ceb3c8e8935dfd0bc4:7
rich-text.min.js:7:29619
}}}


The following patch fixes the issue for me:


{{{
diff -u wp-includes/js/backbone.js.orig wp-includes/js/backbone.js
--- wp-includes/js/backbone.js.orig     2020-09-04 11:34:27.333611546 +0200
+++ wp-includes/js/backbone.js  2020-09-04 11:35:31.813714069 +0200
@@ -374,7 +374,7 @@
   // Cleans up memory bindings between the listener and the listenee.
   Listening.prototype.cleanup = function() {
     delete this.listener._listeningTo[this.obj._listenId];
-    if (!this.interop) delete this.obj._listeners[this.id];
+    if (!this.interop && this.obj._listeners) delete this.obj._listeners[this.id];
   };
 
   // Aliases for backwards compatibility.
}}}



"	cryptomilk
	55492	`Dismiss Errors` button alignment is not centered in Media Library.		Media	5.9.2	normal	normal	Awaiting Review	defect (bug)	reopened	has-patch	2022-03-31T04:20:58Z	2026-01-27T11:28:39Z	"When I drag/upload an SVG image in the Media library then it shows a mime types error and the ""Dismiss Errors"" button is not aligned properly."	iamjaydip
	65230	`redirect_canonical()` fails to redirect slug-based attachment URLs when `wp_attachment_pages_enabled` is disabled		Media	6.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-05-13T04:43:14Z	2026-05-13T04:44:34Z	"When attachment pages are disabled (`wp_attachment_pages_enabled = 0`) and pretty permalinks are in use, visiting an attachment via its slug URL (e.g. `/my-image-jpg/`) returns a 200 with the attachment page rendered, instead of redirecting to the file. The query-string form (`?attachment_id=123`) for the same attachment correctly redirects.

This is a follow-up to #59866, which addressed the logged-in/anonymous discrepancy but did not cover the slug-URL code path.

**Steps to reproduce**

1. Enable pretty permalinks (e.g. `/%postname%/`).
2. Set `wp_attachment_pages_enabled` to `0`.
3. Upload any media file.
4. Visit the attachment's pretty permalink, e.g. `/my-image-jpg/`.

**Expected:** 301 redirect to the file URL (e.g. `/wp-content/uploads/2026/05/my-image.jpg`).
**Actual:** 200 response with an attachment page rendered.

**Cause**

In `src/wp-includes/canonical.php` (~line 553), inside the `is_attachment() && ! get_option( 'wp_attachment_pages_enabled' )` block:

{{{#!php
$attachment_id   = get_query_var( 'attachment_id' );
$attachment_post = get_post( $attachment_id );
}}}

`get_query_var( 'attachment_id' )` is only populated for `?attachment_id=ID` URLs. For slug-based URLs the query var is empty, so `get_post( '' )` returns `null`, `$attachment_url` is falsy, and the redirect branch silently falls through.

**Prior tickets**

- #59866 — Attachment pages are only disabled for users that are logged in (fixed in 6.4.3; this ticket covers the slug-URL gap missed there)
- #57913 — Attachment pages need to have an ""on"" toggle (introduced the option)

''Note: AI was used in the preparation of this ticket.''"	dd32
	53193	chmod(): Operation not permitted in class-wp-image-editor-imagick.php		Media	5.7.1	normal	normal	Awaiting Review	defect (bug)	new		2021-05-12T05:49:17Z	2021-05-12T13:15:24Z	"Hi

**Current install:**
Using the LATEST version of WordPress, the line numbers in this bug report relate to that version number.
The system is running on CENTOS with APACHE as the server.


**Problem Discription:**
PHP Warning:  chmod(): Operation not permitted in ""wp-includes/class-wp-image-editor-imagick.php"" on line 710


**Explanation why this is a problem**
Every security conscious system administrator will have the following settings:

On directories e.g.
drwxr-x---. 10 editor apache  4096 Feb 19  2019 wp-content
drwxr-x---. 25 editor apache 12288 Mar 29 13:26 wp-includes
drwxr-x---.  4 editor apache  4096 Dec 11 17:10 themes
drwsrws---.  2 editor apache  4096 May 12 15:09 upgrade
drwsrws---. 20 editor apache  4096 Jan  1 00:00 uploads

On files e.g.
-rw-r-----.  1 editor apache 31328 Mar 29 13:25 wp-signup.php
-rw-r-----.  1 editor apache  4747 Dec 11 15:27 wp-trackback.php

While the apache server can READ every file, it cannot WRITE every file abd that is good! I have NEVER had a problem with these settings, ever.
Where the apache server NEEDS to write, it can (e.g. uploads/upgrade/cache)
I can happily update core/plugins/themes using FS_METHOD ssh2 with ssh keys set for the editor.

Also it is nearly IMPOSSIBLE to have the system being taken over as the apache server cannot write core files.


**Does the problem occur even when you deactivate plugins, use default theme?**
N/A
File system permission issue


**In case it's relevant to the ticket, what is the expected output or result?**
There needs to be an additional check whether the line SHOULD/CAN be executed.

On my system the editor is NOT the same as the user running the http server. The server user is MOSTLY (and should) restricted to reading (other that the upload/upgrade/cache/etc directories).

This will lead to errors on Linux based systems.

"	jobst
	50681	default-filters.php contains non-tweakable parameters		Media	5.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-07-16T13:43:50Z	2020-09-26T01:02:19Z	"'default-filters.php' should NEVER use the ""plugins-loaded"" hook.
The reason being that this removes EVERY THEME DEVELOPER any kind of power around that setting. 
Those ""default filters"" becomes ""definitive and non editable filter"" for theme developers.

For me this breaks my custom image size workflow

The best hook to replace ""plugins-loaded"" (according to wordpress's own documentation) would be ""init""

------ The Faulty line is in default-filters.php (l-526)-----------------

add_action( 'plugins_loaded', '_wp_add_additional_image_sizes', 0 );

---------------------------------------------------------------------

Also I don't understand why image sizes can't be more simple and centralized.
""thumbnail, medium, large"" are treated as wordpress option and are user editable
""medium_large"" is treated as an non-user-editable invisible wordpress option
NEW ""big_image_size_threshold"" which is a filter and basically a new image size (messes up the different image sizes names by the way)
NEW ""1536x1536 and 2048x2048"" that are hooked before any theme developers can access it which makes them non-editable for users and theme developpers.

The latest two (1536 and 2048) are indeed ""plugin developpers"" editable IF those plugin developers are willing to use bad practice and go for the ""plugins-loaded"" hook instead of the ""init"" hook.

This is breaking change for EVERY THEME DEVELOPPER and encourages bad practice for plugins developpers to interract with it.

This is very bad because EVERY DEVELOPPER should manages and have full control over his image sizes pipeline and avoid the default one at all costs. It's getting clunkier, less functionnal and more bloated with each update. It is really simple to fix but wordpress is really going the other way around and now preventing developers from working with it."	rsepierre
	45562	drag and drop file upload fails with empty files when dragging from macOS Preview into WP on Safari 12		Media	5.0	normal	normal	Awaiting Review	defect (bug)	new		2018-12-10T00:27:48Z	2020-11-19T15:39:30Z	"Part of my workflow involves opening multiple files in Preview (on macOS), and then adding them to WordPress by dragging and dropping them to the Add Media page in WordPress (running in Safari).  That used to work fine, but when I upgraded to Safari 12.0, I get the error:

""File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.""

I'm using self-hosted WordPress (on both Ubuntu 11.04 or 11.10, with Apache 2.4 as the web server); I don't think I made any server-side configuration changes when this started happening, though it's possible I upgraded Apache versions at about the same time?  This occurs in WordPress 5.0, and also occurred in WP 4.x versions; again, I don't think it was caused by a WP change, though I can't rule out a WP upgrade at about the same time.

This works fine when dragging and dropping from Finder, it's only when dragging and dropping from Preview.

To reproduce:

* Select multiple images and open them up in Preview.
* Go to Add Media in WordPress in Safari 12.
* Drag one of the images from the Preview sidebar to Wordpress.

I get the above file upload error when I do this."	dbcarlton
	56295	filter wp_content_img_tag runs multiple times		Media	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-07-27T23:25:04Z	2025-05-12T01:37:59Z	"Filter wp_content_img_tag seem (in a block theme) seem to run 3 times on content images and 2 times on custom logo image. Simple code to expose the problem: 

add_filter( $hook_name='wp_content_img_tag', function( $filtered_image, $context, $attachment_id ){ return 'a:'.$filtered_image; },$priority=21, $accepted_args=3 );"	gigito78
	66050	image auto rotated on upload		Media		high	normal	Awaiting Review	defect (bug)	new		2026-09-05T01:57:36Z	2026-09-05T02:56:28Z	"hi. 

i'm a professional photographer and i use wordpress as my portfolio. whenever i upload portrait oriented images, it gets autorotated into landscape, and i would have to manually rotate it back to portrait before putting it in the slideshow in the editor, which creates extra work. 

i did some research and i can see the reason behind the design, but i'm concerned on it also creating another copy of the file? if so what are some of the fixes? i don't want to store image that's doubled in size.

thanks,
J"	jz99
	66284	image scaling is skipped for large images, resulting in huge thumbnails		Media	7.1.3	normal	normal	Awaiting Review	defect (bug)	new		2026-10-11T06:31:01Z	2026-10-28T07:19:50Z	"When uploading a large Image to the media gallery, WordPress will simply skip the scaling. No thumbnails etc. are generated and WordPress defaults to the full image instead. This means that It'll use e.g. a 70MB JPG as thumbnails.

How to reproduce:

- upload large image. (I tried with a full size JPG from a Hasselblad X2D II 100C, 70MB JPG that's 102 megapixels).
- observe size in media gallery

expected: image is scaled (default: 2560px)

observed: image is full size!"	somian
	49640	image_get_intermediate_size returns wrong		Media		normal	normal	Awaiting Review	defect (bug)	new		2020-03-13T10:25:35Z	2020-03-13T17:20:32Z	"The function `image_get_intermediate_size` isn't working as expected.

If I upload a `1200px x 900px` image as the original. In WordPress theme I use `wp_get_attachment_image( $post_id, array( '1x1-large', '1x1-medium' ) );`

`1x1-large` is setup using `add_image_size( '1x1-large', 1024, 1024, true );`

It will fail as, it cannot create this image size as the the original is smaller. However, the function in question is clever enough to look for other aspect ratios that match. This is good.

So if I had another name images called `1x1-medium` (setup using `add_image_size( '1x1-medium', 768, 768, true );` )

This will exist as the original image is large enough to be sized down to this.

The function however uses this this code-block to short-circuit it:

https://github.com/WordPress/WordPress/blob/46674e2367b8ca0c15b859bd578bc2119bfa0150/wp-includes/media.php#L780
{{{
// If there's an exact match to an existing image size, short circuit.
if ( intval( $data['width'] ) === intval( $size[0] ) && intval( $data['height'] ) === intval( $size[1] ) ) {
    $candidates[ $data['width'] * $data['height'] ] = $data;
    break;
}

}}}

So `$data['width'] =` each image sizes width and `$size[0] = '1x1-large'`

This will never match!!! $size should in theory be a string, not an integer."	CHEWX
	54714	images deleted from media library still exist in upload directory		Media		normal	normal	Awaiting Review	defect (bug)	new		2021-12-31T01:20:28Z	2021-12-31T13:39:45Z	"Currently its so easy to make storage full of all wp site which allow user to upload image.

Just upload big image all the time. Eventhough the admin of the website delete it permanently from media gallery. This files still exist in 'uploads' directory.

When media is deleted permanently from media library, all files for this images should also be deleted including the size variations."	erikdemarco
	39521	media_handle_sideload does not initialize the caption/excerpt value		Media	2.6	normal	normal	Awaiting Review	defect (bug)	new		2017-01-09T02:58:05Z	2019-05-16T02:37:04Z	"In /wp-admin/includes/media.php changes have been made in the media_handle_upload() function to initialize the caption/excerpt value after an upload. Here's the code:

{{{#!php
<?php
	// Construct the attachment array
	$attachment = array_merge( array(
		'post_mime_type' => $type,
		'guid' => $url,
		'post_parent' => $post_id,
		'post_title' => $title,
		'post_content' => $content,
		'post_excerpt' => $excerpt,
	), $post_data );
}}}

Corresponding changes should be made in the media_handle_sideload() function, which still has:

{{{#!php
<?php
	// Construct the attachment array.
	$attachment = array_merge( array(
		'post_mime_type' => $type,
		'guid' => $url,
		'post_parent' => $post_id,
		'post_title' => $title,
		'post_content' => $content,
	), $post_data )
}}}
"	dglingren
	45802	media_upload_tabs not supported in 5.0?		Media		normal	normal	WordPress.org	defect (bug)	reopened		2019-01-01T04:37:22Z	2019-06-04T19:16:22Z	"I noticed the instructions here are incorrect at least for the latest WordPress 5.0

https://codex.wordpress.org/Inserting_Media_into_Posts_and_Pages

At least, I can't seem to find the add media and it appears to be replaced by Gallery and Image, which shows upload/media-library/insert-from-url.

Unfortunately it looks like there is no longer a way to get to this dialog and use extra upload-tabs to the left on the dialog shown in the tutorial linked above. In other words [https://developer.wordpress.org/reference/hooks/media_upload_tabs/ media_upload_tabs] doesn't do anything? If so, it should probably note this on that filter page and on the codex page.
"	programmin
	45212	mediaelement.js WordPress .mp4 videos not playing/working on certain browsers/devices		Media		normal	normal	Awaiting Review	defect (bug)	reopened		2018-10-28T04:46:14Z	2020-04-10T18:11:46Z	"Instead of the normal embedded Media Element video player working properly, on Safari Desktop and Safari/Chrome/Firefox on iPhone, the video player does not work. It's black and provides the actual video download beginning with mejs.download-file: https://cdn.elitesportsny.com etc. ...

Please help. Thanks. "	robsabo10
	61476	mediaelement.js fails to rewind audio file when forwarding audio with AirPlay from iPhone to Mac		Media	6.6	normal	minor	Future Release	defect (bug)	new		2024-06-20T10:52:50Z	2025-05-12T01:38:22Z	"Follow these steps to reproduce:

- Have an iPhone and a Mac (I'm running iOS 17.5.1 and macOS Sonoma 14.5)
- Forward audio from your phone to your Mac using AirPlay
- Have a blog post containing an audio shortcode
- Open the blog post in Safari on your phone and play the audio. The audio should play on your Mac.
- When the audio has finished playing, the scrubber bar will try to rewind to the start, but it will get stuck and glitch along the way.

I debugged this problem to understand why it happens. When the audio file has finished playing and the `ended` event fires, mediaelement.js rewinds the player to time=0. This happens because of the `autoRewind` option, which is true by default (we don't modify the default). But somehow, the AirPlay connection won't let the audio file rewind, which causes the glitch."	f26d
	51667	php notices in logs		Media	5.5.1	normal	minor	Awaiting Review	defect (bug)	new	reporter-feedback	2020-10-29T19:45:40Z	2023-10-25T05:53:48Z	"On php 7.4 I receive php notices in the error log. Not really sure if its a theme problem or problem with the media.php. Just reporting in case its something that should be addressed. But my log is riddled full of these. Maybe add a check to see if the parameter is actually an array first?

[29-Oct-2020 19:20:36 UTC] PHP Notice:  Trying to access array offset on value of type bool in wp-includes/media.php on line 782
[29-Oct-2020 19:20:36 UTC] PHP Notice:  Trying to access array offset on value of type bool in wp-includes/media.php on line 788
[28-Oct-2020 23:11:32 UTC] PHP Notice:  Trying to access array offset on value of type bool in wp-includes/media.php on line 781
[28-Oct-2020 23:11:32 UTC] PHP Notice:  Trying to access array offset on value of type bool in wp-includes/media.php on line 787"	lsamins
	43070	srcset attribute can be overridden but not prevented		Media	4.4	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2018-01-11T19:07:48Z	2026-06-30T10:19:18Z	In `wp_get_attachment_image()`, a `srcset` attribute can be passed to the fourth parameter to override the attribute's contents. There is no way to prevent this attribute from showing, though. An empty `srcset` attribute throws a validation error.	desrosj
	44456	srcset max-width set to image width		Media	4.9.6	normal	normal	Awaiting Review	defect (bug)	new		2018-06-25T14:53:48Z	2020-04-07T03:05:48Z	"My understanding is the max-width value in the image srcset should be limited to 1600px,  however it is actually always set to the width of the original image. Also, max_srcset_image_width does not appear to be properly setting the max-width value either.

Thanks,
Mike"	mikedunn
	43540	srcset not added when the original image size doesn't exist in the database after regeneration		Media		normal	normal	Awaiting Review	defect (bug)	new		2018-03-14T02:54:09Z	2024-02-27T18:54:22Z	"Suppose you have a post where you've inserted a 'large' image size. Any other image sizes of the same proportion are added to the srcset on the front end.

Now, change the 'large' image size to something else, and regenerate thumbnails (using the plugin, CLI, etc).

The image in the post continues to work (since plugins / CLI tend not to delete non-existing sizes from the file system precisely because they may be embedded in posts).

However, it no longer receives any srcset - because the src_matched variable never gets set to true in `wp_calculate_image_srcset`.

Can the src_matched logic be adjusted to cover this case?"	smerriman
	37581	text overflows, if it has no hyphens on media upload error notices		Media	4.5.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2016-08-05T09:34:58Z	2020-08-18T07:28:31Z	"Long text overflows and adding horizontal scroll in message box . if text has no hyphens, it extending beyond the parent div and look bad or worse, cause layout problems.

"	gk.loveweb
	36273	update_attached_file() on Windows will result in invalid image path when using native Windows directory separators		Media	4.4.2	normal	normal	Awaiting Review	defect (bug)	new	needs-unit-tests	2016-03-18T10:48:16Z	2026-10-17T19:44:24Z	"Calling ''update_attached_file( $image->ID, $file );'' on platforms like Windows can be really bad if ''$file'' was normalized/validated using PHP's ''realpath()'' function:

{{{#!php
<?php
$id = 123; // Image
$image = get_post( $id );

if ( is_null( $image) || !preg_match( '!^image/!', get_post_mime_type( $image ) ) ) {
	die( sprintf( ""Invalid image id (#%s)"", $id ) );
}

// Easy case: Let's imagine we can get the path from meta data
$file = get_attached_file( $image->ID );

// Well, in real world you could have created the path manually...
// The only important thing to know is, that we call ""realpath()"" which will
// convert any directory separator into the native directory separator:
// Linux will end with /dir/subdir/basename.jpg
// Windows will end with C:\Dir\Subdir\basename.jpg
$file = realpath( $file );

// Again, this is just a demo, for real world cases see plugins like ""Force Regenerate Thumbnails""
// But this is a valid API call:
update_attached_file( $image->ID, $file );

// On Windows this will result in an update statement like
//   UPDATE `postmeta` SET `meta_value` = 'C:WWWSitesdemohtdocswordpresswp-contentuploads201603example.jpg' WHERE `post_id` = 123 AND `meta_key` = '_wp_attached_file'
// when $file was set to ""C:\WWW\Sites\demo\htdocs\wordpress\wp-content\uploads\2016\03\example.jpg""
// Now imagine a plugin which is re-generating thumbnails :]

// The problem is
//   $meta_value = wp_unslash($meta_value);
// in wp-includes/meta.php update_metadata().

}}}

When using ''update_attached_file()'' we should make sure that ''update_metadata()'' don't update the path value to an invalid value...



PS: After you updated all image paths to an invalid value, the media library won't work anymore:

{{{
[18-Mar-2016 07:31:10 UTC] PHP Warning:  file_exists() expects parameter 1 to be a valid path, string given in C:\WWW\Sites\demo\htdocs\wordpress\wp-includes\media.php on line 3063
}}}
"	Whissi
	63142	will not accept .png images		Media		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2025-03-21T12:00:22Z	2025-04-14T15:31:22Z	Everytime I try to install a .png image I get a JSON message and the image disapppears. It also did not upload to the media library.  If I convert it to a .jpeg image it will then be accepted. This has happened with numorous images. I deactivated Gutenberg and the site now accepts .png images.  	fenianmaster
	50944	wp_calculate_image_srcset can unintentionally include unscaled original image		Media	4.4	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2020-08-12T14:08:33Z	2020-08-24T21:33:22Z	"In `wp-includes/media.php`, `wp_calculate_image_srcset` seems to add the original image to the srcset string if the width is smaller than `$max_srcset_image_width` and if the image isn't a GIF. This isn't desirable since the original image is uncompressed and I don't even think it's intentional.

This behavior seems to have been introduced in this patch: https://core.trac.wordpress.org/changeset/35561. From what I can tell, the if statement should read like this:

{{{#!php
if ( ! isset( $image_sizes['thumbnail']['mime-type'] ) || 'image/gif' === $image_sizes['thumbnail']['mime-type'] ) {
}}}

The current code will include the original image whenever the thumbnail IS NOT a GIF. This seems to be opposite to the desired behavior?
"	fredrikll
	64010	wp_die() status code Media component updates (parent ticket: #64009)		Media		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-09-19T17:12:29Z	2025-12-01T04:01:09Z	"If you have come here directly, please refer back to the parent ticket here: [https://core.trac.wordpress.org/ticket/64009 #64009]

This ticket is regarding the `wp_die()` function calls within the Media component and will cover the following locations:

|| Filepath || Line Number || Context || Status Code || New Code || Code Meaning ||
|| src/wp-admin/includes/class-file-upload-upgrader.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/themes.php#L57 57] || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/claass-file-upload-upgrader.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/themes.php#L82 82] || UPLOAD: Invalid file || 500 || 422 || Unprocessable Content ||
|| src/wp-admin/includes/class-file-upload-upgrader.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/themes.php#L91 91] || UPLOAD: Invalid file || 500 || 422 || Unprocessable Content ||
|| src/wp-admin/includes/class-file-upload-upgrader.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/themes.php#L120 120] || UPLOAD: missing file || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/class-file-upload-upgrader.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/themes.php#L136 136] || UPLOAD: missing file || 500 || 400 || Bad Request ||
|| src/wp-admin/async-upload.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/themes.php#L35 35] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/async-upload.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/themes.php#L43 43] || Error: invalid post type || 500 || 400 || Bad Request ||
|| src/wp-admin/media-new.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/themes.php#L16 16] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/upload.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/themes.php#L13 13] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/upload.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/themes.php#L296 296] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/upload.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/themes.php#L317 317] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/upload.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/themes.php#L332 332] || User Permissions: does not have access || 500 || 403 || Forbidden ||

There are however the following function calls I have not touched as I felt they were already valid with their current status code:

|| Filepath || Line Number || Status Code ||
|| src/wp-admin/includes/class-file-upload-upgrader.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/class-file-upload-upgrader.php#L69 69] || 500 ||
|| src/wp-admin/includes/class-file-upload-upgrader.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/class-file-upload-upgrader.php#L129 129] || 500 ||
|| src/wp-admin/media-new.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/media-new.php#L35 35] || 500 ||
|| src/wp-admin/media-upload.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/media-upload.php#L30 30] || 403 ||
|| src/wp-admin/media-upload.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/media-upload.php#L37 37] || 403 ||
|| src/wp-admin/media-upload.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/media-upload.php#L45 45] || 403 ||
|| src/wp-admin/upload.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/upload.php#L300 300] || 500 ||
|| src/wp-admin/upload.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/upload.php#L321 321] || 500 ||
|| src/wp-admin/upload.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/upload.php#L336 336] || 500 ||

Please have a look through the suggested changes documented here, and any/all feedback is appreciated. 😃"	callumbw95
	49841	wp_get_attachment_url does not return a url		Media	5.4	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-04-07T17:29:44Z	2020-06-02T16:49:34Z	"wp_get_attachment_url returns the base url to the uploads directory suffix with the file path.

The file path is not always a valid url. 'fun image.png' is a valid file name. It's url path is 'fun%20image.png'

I suggest adding the below straight after line 5859 in wp-includes/post.php

{{{
		// Convert the file path into a valid URL path
		$file = implode('/', array_map('rawurlencode', explode(DIRECTORY_SEPARATOR, $file)));
}}}

"	hughie.molloy
	50264	wp_get_image_editor()->multi_resize() occasionally fails		Media	5.4.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-05-27T12:26:21Z	2022-03-16T18:56:30Z	"I'm using wp_get_image_editor to create different sizes of same image, in 99.9% it works fine, but sometimes happens this:
[[Image(http://files.dangerd.org/pub/!PUBLIC//wpbug2.png)]]
All images are generated with smallest size in array, any ideas?
{{{#!php
<?php
$image = wp_get_image_editor( $source );
$image->resize( 1920, 1282, false );
$image->set_quality(65);
$image->save( $path );
$sizes = array(
	array('width'=>640,'height'=>480,'crop'=>false),
	array('width'=>640,'height'=>480,'crop'=>true),
	array('width'=>150,'height'=>150,'crop'=>true),

);
$mult = $image->multi_resize( $sizes );
}}}
"	dangerd512
	53121	wp_get_image_mime() - something weird going on		Media	4.8	normal	minor	Awaiting Review	defect (bug)	new		2021-04-30T17:29:42Z	2021-05-01T01:58:35Z	"Okay, eh... help... so this is a weird one to write up.

In the context of #53009, @hellofromTonya and me are looking at all calls to `markTestSkipped()` in the test suite.

One of the ones I was looking at is this test in `tests/phpunit/tests/functions.php`:
{{{#!php
<?php
public function test_wp_get_image_mime( $file, $expected ) {
	if ( ! is_callable( 'exif_imagetype' ) && ! function_exists( 'getimagesize' ) ) {
		$this->markTestSkipped( 'The exif PHP extension is not loaded.' );
	}

	$this->assertSame( $expected, wp_get_image_mime( $file ) );
}
}}}

for the [https://developer.wordpress.org/reference/functions/wp_get_image_mime/ `wp_get_image_mime()`] function.

Now, there are two questions I have:
1. Why is `is_callable()` used for `exif_imagetype` and `function_exists()` for `getimagesize` ? This is the same in the actual function as well as the test, but strikes me as odd. Why not use `function_exists()` (or `is_callable()`) for both ?
2. I've been trying to verify the conditions by running the test with the Exif and GD extensions in various states - both enabled, GD disabled - Exif enabled, GD enabled - Exif disabled, both disabled - and I can only seem to make the test hit the skip condition with Exif disabled. Tested on both PHP 5.6 as well as PHP 7.4.

I've checked the PHP docs and the [https://www.php.net/manual/en/function.getimagesize.php `getimagesize()`] function is listed as part of the GD extension and the manual doesn't say anything explicitly about it being available independently of the extension, so the condition ''seems'' justified, but the fact that I can't seem to get the test to fail is making me want to dig deeper.


Related to #11946 and #40017. The original function was introduced in [39831], the tests in [40397].

Pinging @joemcgill - would you happen to be able to give me some insight into what's happening here ?"	jrf
	62312	wp_image_src_get_dimensions() - Warning for SVG with postmeta height and width empty		Media	5.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-10-28T16:04:43Z	2026-10-28T00:18:24Z	"As @donbowman pointed out originally in https://core.trac.wordpress.org/ticket/57813#comment:2 `wp_image_src_get_dimensions()` will throw a warning and have potentially broken results when used with an SVG.

After a short conversation with @soean, he followed my suggestion to split this topic up into an individual ticket, since this one is frontend related, the other is not.

I will prepare a PR on github, following @donbowman's initial findings."	apermo
	43413	wp_prepare_attachment_for_js  missing image size medium_large		Media	4.9.4	normal	normal	Future Release	defect (bug)	new	has-patch	2018-02-25T18:54:29Z	2024-11-03T15:24:11Z	"I have a function that creates a media size in case the size is called but is missing in meta. https://gist.github.com/danyj/2edb3d83bae4c363bf839f0dd5f1343f


usage 
{{{
thz_create_missing_attachment_size(13031,'medium_large');
}}}


every missing file size  is recreated and exists in by wp_prepare_attachment_for_js size key  except the media_large  because it is missing here.

https://github.com/WordPress/WordPress/blob/dfa68397063daf90a8758896693f137f9b981856/wp-includes/media.php#L3297-L3304

Basically if meta has been updated the wp_prepare_attachment_for_js is not checking for sizes but manually goes by that array . Not sure if the missing size key is left out on purpose but when you compare the  wp_prepare_attachment_for_js   to wp_get_attachment_metadata  the data is not same "	Themezly
	52181	wrong mimetime for gzip files		Media	5.6	normal	normal	Future Release	defect (bug)	new	has-patch	2020-12-27T22:47:17Z	2021-06-07T20:26:56Z	"In the file  wp-includes/functions.php, function wp_get_mime_types(), the mimetype for gz|gzip is indicated as ""application/x-gzip"", while fileinfo (and /etc/mimetypes) return ""application/gzip"".

Also, it seems this line is missing tgz, so I would suggest changing this from:
{{{
'gz|gzip'                      => 'application/x-gzip',
}}}
to:
{{{
'gz|gzip|tgz'                      => 'application/gzip',
}}}
"	liedekef
	60345	Add duplicate checking for uploaded attachments		Media		normal	normal	Awaiting Review	enhancement	new		2024-01-25T16:39:34Z	2026-08-13T21:00:36Z	"It can be very difficult to tell whether you've already added a given document or image to your media library if it's no longer in recent items. The lack of sorting or filtering makes specific difficult to locate.

Based on a [https://wordpress.slack.com/archives/C02SX62S6/p1706115251959409 conversation on duplicate detection in #core-media], we think that a starting point for this is to hash the meta data for an attachment at the time of upload and store that as attachment meta.

We could then check for that hash value before uploading a new document, and prompt the user to use the old attachment if it already exists. 

The specific meta data would probably need to vary depending on the type of attachment."	joedolson
	46134	Allow filtering of `$header` object in `get_header_image_tag()` function (for custom header image override)		Media	5.0.3	normal	normal	Future Release	enhancement	new	dev-feedback	2019-01-29T14:38:10Z	2022-01-20T15:50:13Z	"Currently, when trying to override custom header image, it is only possible to filter header image URL (via `theme_mod_header_image` [https://developer.wordpress.org/reference/hooks/theme_mod_name/ filter hook]) or the actual image [https://developer.wordpress.org/reference/hooks/get_header_image_tag/ output HTML] in [https://developer.wordpress.org/reference/functions/get_header_image_tag/ get_header_image_tag()] function.

It would be beneficial to allow filtering also the `$header` object of  `get_header_image_tag()` function: in case of override via theme code we can set not only an image URL, but an image attachment ID too. That way the `get_header_image_tag()` function can do better job with image overrides (such as setting correct image `srcset` and `sizes` attributes and also [https://core.trac.wordpress.org/ticket/46124 the image alt text])."	webmandesign
	43608	Display missing module error for GD when on Media Settings		Media	4.6	normal	normal	Future Release	enhancement	new		2018-03-22T06:16:06Z	2019-04-15T18:22:33Z	"When WordPress is installed on a server is [http://php.net/manual/en/book.image.php missing the GD PHP image library], there should be an admin level warning displayed on the Media Settings admin page.

Without the GD module there will be '''no intermediate image sizes created when images are uploaded in the media library''' (the media gallery just uses the full image size by default)

[https://pasteboard.co/Hd2hc9L.jpg Without Admin Notice]

The Media Settings page should display an admin warning / error that tells the user that they're missing that module and without it no intermediate images will be created. The whole page talks about the various images size and without GD none of these settings will be used for anything.

I've created a simple gist that displays an admin notice if the '''GD library isn't loaded''' and the current user is on the '''Media Settings''' page.

[https://pasteboard.co/Hd2hVdk.jpg With Admin Level Notice]

[https://gist.github.com/simonrcodrington/be60b6daae0b966a559878c4ba16d9d0]

This has come up a few times now where images haven't been created in the media library and no one has known why. Sometimes hosting providers don't include this extension or they are just not loaded. Having an admin level notice here would make sense. 



"	simonrcodrington
	58752	Doc typo improvement to  of file : wordpress-develop/src/js/media/views/view.js		Media		normal	normal	Awaiting Review	enhancement	assigned	dev-feedback	2023-07-07T13:19:08Z	2024-04-03T17:06:51Z	"There is a grammar error on line 11 of the file like 

actual sentence: outside of the media manager.
correct sentence: outside the media manager."	hasanazizul
	57781	Exclude sized variant from SRCSET if larger in file size than the original image	adamsilverstein	Media	6.1.1	normal	normal	Awaiting Review	enhancement	assigned		2023-02-21T13:01:57Z	2023-02-21T13:01:57Z	"== Problem

Every here and then some anomalies may occur where a sized image variant, which is smaller in image dimensions than its original, may nevertheless be larger in file size than the original. Some examples were shown in #57238.

== Scope

The goal of #57238 is to improve the rulesets/algorithm that this is less likely to happen. And continue to improve if new edge cases get reported.

WP Media has no mechanism to alter the outcome of the sized image variants (e.g. multi pass optimization like rerun with different parameters until sized version is smaller in file size).

But if that situation nevertheless happens there is still an easy ""last safety net"" we can make use of.

== Goal of this very ticket

- The original will always be better in quality (natural law, unless a sized variant gets improved by artificial intelligence).
- If a sized variant is larger in file size than the original, it makes no sense to offer it, hence exclude it from the SRCSET.
- Possibly not only the first sized variant may be larger in file size, but potentially more (was the case in #57238). All those variants shall be excluded.

== Extra goal

If such an incident is detected on a real world WordPress instance, it would be ideal if the WordPress dev team could learn from it and potentially improve the algorithm accordingly.

Ideas:

- In WordPress > Settings > Media
  - [√] Allow to send analytical data when image optimizations fails

- In WordPress > Dashboard > Site Health: Hint + action links
  - ""We detected X images where the smaller sized responsive images were larger than the original.""
  - __Show affected images__ and __Report to WordPress team to improve the image optimizations__.

- For both situations we would need a ""show me more"" disclaimer text, which would be like:

> Note: WordPress has clever responsive image algorithms. Still occasionally there may be a situation where a very optimized original results in resized images which oddly are larger in file size. With this check you allow to transmit the URLs of such affected images to the WordPress development team, so that we can study them and improve WordPress accordingly. The images will be purely used for analytical purposes and your image rights remain unaffected. No other data than the URLs of the images get transmitted."	abitofmind
	54452	Image Aspect Ratio on resize		Media	5.8.2	normal	trivial	Awaiting Review	enhancement	new		2021-11-16T10:54:08Z	2021-11-16T10:54:08Z	"With the picture block the css resize the picture width but never the height so it break is aspect ratio.

Just need to add a height: auto to .wp-block-image img ."	edgarwes
	63049	Image Editor: Changing crop aspect ratio can allow cropping area to exceed image boundary		Media		normal	normal	Awaiting Review	enhancement	new		2025-03-03T22:41:18Z	2025-03-03T22:49:47Z	"This experience can be recreated when editing an image in the core editor, and cropping it. When changing the aspect ratio of the crop - it appears to keep the fixed width of the cropping area and adjust the height based on the new ratio.

In some cases this will take the cropped area *outside* the border of the image and result in an error.

https://snipboard.io/GlBFq8.jpg

An enhancement would be to adjust height/width of the cropping area to ensure it is contained within the image."	jordesign
	63626	"Improve Media Library's ""Attached"" status to reflect actual usage in posts/pages, not just direct uploads."		Media		normal	normal	Awaiting Review	enhancement	new		2025-06-27T06:21:32Z	2025-06-27T16:02:55Z	"Currently, WordPress marks media files as “attached” only if they are uploaded directly into a post or page using the Add Media button. However, if a user uploads media to the Media Library first, and later inserts it into a post or page, the file remains labeled as “unattached” - even though it's actively in use.

This behavior causes confusion, especially for users managing large amounts of media or trying to free up storage. It also leads to the false assumption that “unattached” media is unused and safe to delete.

Steps to Reproduce:
Create a new post and upload an image directly inside the post editor.

Save the post.

Visit the Media Library, filter by Unattached.
→ The image is correctly not shown in the “Unattached” filter.

Now, upload a different image directly to the Media Library.

Insert that image into a post by selecting it from the Media Library.

Save the post.

Return to the Media Library and filter by Unattached.
→ The inserted image still appears as Unattached, even though it's now used in content.

Expected Result:
Any media item inserted into a post or page—regardless of whether it was uploaded through the editor or Media Library—should be marked as “attached.” Ideally, it could also display which post/page it is attached to.

Actual Result:
Only media uploaded directly to a post is considered ""attached."" Media added via the Media Library remains ""unattached,"" even if inserted into content.

Users expect “attached” to mean “in use,” but the current system reflects only a technical upload path."	sr33hgs
	64794	Improve image editing - Responsive images + Art direction		Media		normal	major	Awaiting Review	enhancement	new		2026-03-04T16:58:25Z	2026-05-20T06:12:34Z	"WP has a great management of img src sets. But I think it could be upgraded.

For Art direction in responsive images it's essential to have cropped versions of the images. WP allows to crop but not to keep the old (original) one, which could be reused for cropping in different formats.

It keeps the original image in the server but with no more access to it. It's kind of a waste, it could allow to reuse it - but never destroy it.

Also, it would be great to improve a bit the images control - they are a huge part in resources.

Right now, WP makes 6 versions of images plus the original one (with no access). But it only allows the control over 3 of them in settings.

Maybe this could be revamped to be more efficient and re-useful. The ""edit image"" could have more options (at least, duplicate when cropping) - and a link or in place control of the image_size control setting, according to role."	ridesirat
	44655	Introduce alternative srcset option for custom logo		Media		normal	normal	Awaiting Review	enhancement	new		2018-07-27T15:06:23Z	2018-07-30T12:00:04Z	"When adding theme support for custom-logo I can define the recommended size for the logo:

{{{#!php
<?php
    add_theme_support( 'custom-logo', array(
        'height'      => 38,
	'width'       => 186,
	'flex-width'  => true,
	'flex-height' => true,
    ));
}}}

The user will then be notified that they should upload their image at these dimensions. If they follow the advice the_custom_logo() will output:

{{{
<img width=""186"" height=""38"" src=""http://www.domain.co.uk/wp-content/uploads/2018/07/img.png"" class=""custom-logo"" alt=""test"" itemprop=""logo"">
}}}

Due to the small size srcset is not included and viewing on mobile could produce a blurry image. So to get srcset increase the height and width 3x making height 114 and width 558 we will now get:


{{{
<img width=""558"" height=""114"" 
      src=""http://www.domain.co.uk/wp-content/uploads/2018/07/paul-reeve-logo-2.png""
      class=""custom-logo"" alt=""test"" itemprop=""logo"" 
      srcset=""
          http://www.domain.co.uk/wp-content/uploads/2018/07/img.png 558w,
          http://www.domain.co.uk/wp-content/uploads/2018/07/img-350x72.png 350w,
          http://www.domain.co.uk/wp-content/uploads/2018/07/img-186x38.png 186w,
          http://www.domain.co.uk/wp-content/uploads/2018/07/img-372x76.png 372w
      "" 
      sizes=""(max-width: 558px) 100vw, 558px"">
}}}

We now have srcset but have had to use a larger image than we want, we have the option to resize the image via css to produce the correct dimensions but we are still potentially loading an image larger than needed. Also, from my testing I cannot seem to get this method to swap images at all, this could be due to my own error/misunderstanding however, I did find another person with a similar issue on SO 

[https://stackoverflow.com/questions/49177239/srcset-and-sizes-not-working-consistently-across-browsers]

and viewing the following page always shows large.jpg as the image being used in my browser (chrome):

[https://simpl.info/srcsetwvalues/]

It would be good if we could specify the type of srcset to use e.g use 1x, 2x, 3x instead of 350w, 500w...


{{{
<img 
    srcset=""
        http://www.domain.co.uk/wp-content/uploads/2018/07/img-186x38.png 1x,
        http://www.domain.co.uk/wp-content/uploads/2018/07/img-372x76.png 2x, 
        http://www.domain.co.uk/wp-content/uploads/2018/07/img.png 3x"" 
    src=""http://www.domain.co.uk/wp-content/uploads/2018/07/img-186x38.png"" alt=""test"">
}}}


This way we could specify the required logo size to be 3x then server the appropriate size according to the pixel density of the device the user is viewing on."	mrmadhat
	52451	Make the media sideload functions testable and add tests		Media		normal	normal	Awaiting Review	enhancement	new		2021-02-04T17:18:55Z	2021-02-04T17:27:08Z	"Goals: 

1. Make the media ""sideload"" functions testable
2. Provide code coverage for these functions

To accomplish this: 

- These functions will first need to be refactored.
- Then unit tests can be built to provide code coverage.

Sideload functions include:

- `media_handle_sideload()`
- `media_sideload_image()`

A guide for the refactoring work:

- All changes will focus on testability
- No changes should impact or alter the current behavior, extensibility, or backwards compatibility
- Care will be given to maintainability and readability (i.e. code quality)
"	hellofromTonya
	64056	Media / REST API: Uploading non-resizable image formats (SVG) generates multiple PHP warnings		Media		normal	normal	Awaiting Review	enhancement	new	close	2025-09-30T14:27:40Z	2025-10-01T08:28:56Z	"When uploading an SVG file using the WordPress Media REST API (e.g., via /wp/v2/media), the response includes several PHP warnings. These warnings indicate undefined array keys for ""width"" and ""height"" in image.php, followed by multiple ""Cannot modify header information"" errors in class-wp-rest-server.php. The SVG file uploads successfully, but the warnings clutter the API response, which can disrupt client-side applications expecting clean JSON output.

'''Steps to Reproduce:'''
- Set up a WordPress installation with SVG support enabled (e.g., using a plugin like Safe SVG or custom code).
   {{{
// Allow SVG file to be uploaded.
add_filter( 'upload_mimes', 'custom_mime_types' );
    
function custom_mime_types( $mimes ) {
    $mimes['svg'] = 'image/svg+xml';

    return $mimes;
}
}}}

- Use the REST API endpoint /wp/v2/media to upload an SVG file (e.g., via a POST request with a valid SVG file and appropriate authentication).

- Observe the API response, which includes the following warnings:


{{{
<br />
<b>Warning</b>:  Undefined array key ""width"" in <b>/var/www/src/wp-admin/includes/image.php</b> on line <b>110</b><br />
<br />
<b>Warning</b>:  Undefined array key ""height"" in <b>/var/www/src/wp-admin/includes/image.php</b> on line <b>111</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /var/www/src/wp-admin/includes/image.php: 110) in <b>/var/www/src/wp-includes/rest-api/class-wp-rest-server.php</b> on line <b>1896</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /var/www/src/wp-admin/includes/image.php: 110) in <b>/var/www/src/wp-includes/rest-api/class-wp-rest-server.php</b> on line <b>1896</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /var/www/src/wp-admin/includes/image.php: 110) in <b>/var/www/src/wp-includes/rest-api/class-wp-rest-server.php</b> on line <b>1896</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /var/www/src/wp-admin/includes/image.php: 110) in <b>/var/www/src/wp-includes/rest-api/class-wp-rest-server.php</b> on line <b>1896</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /var/www/src/wp-admin/includes/image.php: 110) in <b>/var/www/src/wp-includes/rest-api/class-wp-rest-server.php</b> on line <b>1920</b><br />
}}}



'''Expected Behavior:'''

The SVG file should upload successfully via the REST API, and the response should be a clean JSON object containing the media details without any PHP warnings.


'''Additional Context:'''

- The issue appears to stem from wp-admin/includes/image.php attempting to access width and height keys in the image metadata, which are not applicable to SVG files (as SVGs are vector-based and do not have fixed pixel dimensions).
- The subsequent header warnings in class-wp-rest-server.php are likely caused by the earlier warnings outputting text before headers are sent, breaking the REST API's ability to set headers properly.
- Tested on a fresh WordPress install with minimal plugins to confirm the issue persists."	jignesh.nakrani
	49583	Media Library in SubFolder, when Organize by Mo/Yr is deactivated		Media		normal	normal	Awaiting Review	enhancement	new		2020-03-05T18:33:41Z	2022-10-26T16:06:46Z	"I'd like to suggest that an additional folder is added to the /uploads folder, for /media_library uploads.  If not for all media uploads, then at least for when Mo/Yr Media organization is disabled.

I've worked on several projects where there are simply not going to be very many media files.  In effect, I'll deactivate the ""Organize my uploads into month- and year-based folders"" checkbox/feature.  BUT, even if there are only 4 dozen images uploads, that ends up creating = 12 x 4 x (image sizes per theme settings).  Those 48 photos can quickly turn into a few hundred, diluting the convenience of quickly referencing  /wp-content/uploads.

Today, several plugins/addons store files/folders within the Uploads folder. This probably wasn't an issue years ago, but today it creates a mess of files in /uploads.  Between all of these factors, it's not nearly as ""clean"" in /uploads as it once used to be.

my .02"	splaquet
	58163	Media Tests for Attachments and Images		Media	6.3	normal	normal	Awaiting Review	enhancement	new	has-patch	2023-04-20T06:37:43Z	2023-04-21T05:18:14Z	"The attached patch adds PHPUnit Tests to the following functions:

 - wp_get_attachment_url()
 - wp_get_attachment_metadata()
 - image_downsize()
 - get_image_tag()
 - image_get_intermediate_size()
 - wp_get_attachment_image_src()
 - wp_get_attachment_image()

The tests are straight-forward and ensures that they are working as expected."	Howdy_McGee
	58416	Media Title field should soft wrap in Media Modal: For better readability/editing of long titles.		Media	3.5	normal	normal	Awaiting Review	enhancement	new	needs-unit-tests	2023-05-26T20:48:37Z	2025-05-12T01:38:09Z	"**Usability Issue:**
- In the **Media Modal** the **Title** field currently is an `<input type=text>` and as such is single line only.
- Scrolling a ~50 character long title within a ~20 char text field sucks.
- Soft wrapping would really benefit longer media titles in terms of instant readability and easy editing.

**Solution Approaches:**

1. Leaving it a `<input type=text>` and tweak it to soft wrapping with CSS only.

- I found the [https://stackoverflow.com/questions/5286663/wrapping-text-inside-input-type-text-element-html-css exact same request on StackOverflow] for HTML in general (CMS agnostic)
- Pure [https://stackoverflow.com/a/31814539/199400 CSS solutions for this] which once worked, became unsupported around 2016 in major browsers.
- Bottom line: `<input type=text>` is single line only and always, user agents allow no circumventions.

2. Alternative approach: Use a `<textarea>` with its built in soft-wrapping and resize-ability, integrated with contemporary responsive web design techniques, and ensure that the user can not unintentionally insert linebreaks.
- This seems to be the viable solution.
- Googled & DuckDuck'ed CMS-agnostic, but by coincidence found [https://wordpress.org/support/topic/textarea-disable-line-breaks/ WordPress specific solution] even.
- JS which intercepts ENTER control characters.
- To be ultra safe (does it need to be?) this would also need server-side validation (in case JS is bypassed somehow (un)intentionally).

"	abitofmind
	64043	Media Uploader should not always 'crunch' any kind of files		Media		normal	normal	Awaiting Review	enhancement	new		2025-09-25T10:57:25Z	2025-09-28T13:43:44Z	"When uploading a .htm(l) file it shows ""crunching"" like if it was an image. That should not be."	Presskopp
	40124	Media on uploading only gives me edit options		Media		normal	normal	Future Release	enhancement	new		2017-03-12T12:32:20Z	2023-09-05T15:07:41Z	"This shows on mobile but is also desktop issue.

[[Image(https://cldup.com/_ZB6QmO5gZ.PNG, 50%)]]

 Says 'edit' but doesn't give me option to view or delete."	karmatosed
	65998	Media: Sideload and clean up the web-safe companion of a transcoded video upload		Media		normal	normal	Future Release	enhancement	new	has-patch	2026-08-31T00:05:48Z	2026-10-20T19:35:18Z	"Follow up to #65549 (animated GIF video companions) and #64915 (source-format originals).

The client-side media flow in Gutenberg can now transcode an uploaded video that is not already web-safe (a `.mov` or `.mkv` container, a non-web-safe codec, an oversized frame or a high bitrate) to MP4/H.264 or WebM/VP9 in the browser. See https://github.com/WordPress/gutenberg/pull/79375. The original upload is kept as the attachment, the same principle behind the `-scaled` image and the HEIC original, and the transcoded version is sideloaded as a companion file of that attachment. The `core/video` block points its playback `src` at the companion.

Core needs the server side of that flow:

 * Accept a video attachment as the sideload parent for a new `optimized_video` companion size. This is scoped to that one size; every other size still requires an image or PDF parent, since a video has no sub-sizes.
 * Record the companion under the `optimized_video` attachment metadata key on finalize, and treat it as a name the request is allowed to store.
 * Delete the companion alongside the attachment in `wp_delete_attachment_files()`, the way the `animated_video` companions are handled.
 * Expose a `wp_video_transcoding_keep_original` filter (default `true`) on the REST API index as `video_keep_original`, and preload it with the other media processing settings. When a site returns `false`, the editor transcodes before upload so only the optimized file is stored, trading the ability to download or regenerate from the original for lower storage use.

Patch incoming: https://github.com/WordPress/wordpress-develop/pull/13323"	adamsilverstein
	66248	No way to turn off importing alt text from image XMP metadata		Media		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-10-06T00:28:00Z	2026-10-14T13:44:36Z	"This is a follow-up to issue #63895.  The fix for that issue created a new `wp_get_image_alttext()` function which parses images for XMP metadata and uses that to populate the alt text for the image.  Currently `wp_get_image_alttext()` is called unconditionally - if you don't want this functionality, there does not appear to be any way to turn it off.  You could use the `wp_read_image_metadata` filter to overwrite the alt text after `wp_get_image_alttext()` has already run, but it would be better to have a way to prevent `wp_get_image_alttext()` from running a bunch of unnecessary code in the first place.

I will submit a pull request to address this."	siliconforks
	41462	Promote media details admin page to full post page		Media	4.9	normal	normal	Future Release	enhancement	new		2017-07-27T17:43:26Z	2023-10-18T16:01:34Z	"Currently when editing media metadata, you either get the modern library modal with the image on the left and various fields on the right. When you click ""Edit more details"" you get a blast from the past with an old-school version of WordPress admin where everything looks uninspired and, for new users, broken.

Based on user feedback it turns out some site owners use the Attachment Page feature to provide contextual info, commenting, etc for media items. One example was a teacher who uploaded student images to a gallery, then had each image link to the attachment page where further information and images were provided in the ""description"" field (so the post content) and parents could leave comments.

Since media items in reality are full fledged posts with their own post content, the media details admin view should be upgraded to a full post page with proper WYSIWYG editing for the Description field, custom fields, and ability to control things like commenting.

This would also be an ideal place to visualize in what posts a media item is in use across the site."	mor10
	40774	Refine error message when embedding invalid Video (URL)		Media	4.8	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-05-16T02:11:00Z	2026-01-31T12:41:17Z	"like in #40771 you get the following error when your link is invalid:

{{{
Sorry, we can’t display the video file type selected. Please select a supported video file (...) or stream (YouTube or Vimeo) instead.
}}}

When posting an incomplete youtube link for example it's not the file type but a character wrong or missing.

I propose to change the error message like in the patch attached:

{{{
Sorry, either the selected file type is not supported or the video stream is invalid. Please make sure to select one of the following video file types (%1$s) or a valid stream (YouTube or Vimeo) instead.
}}}






"	Presskopp
	40869	Replacing an image in content editor		Media	4.7.5	normal	normal	Awaiting Review	enhancement	new		2017-05-26T10:42:10Z	2017-05-26T13:36:33Z	"Hello,

I noticed a strange behaviour in WordPress User Experience  while dealing with images.

Let's say for example you want to replace an existing image in the content editor while creating or editing a post/page.  Right now this is only possible when this 'existing' image is part of your Media Library and probably has an attachment post_id.

What about people that have added images from external urls or maybe even placeholder images that have been adding to their content via custom TinyMCE buttons. When you press Edit on those images you can't easily replace them for an image inside your Media Library.

I think this is a little odd and we should be able to replace any image in our editor for one inside our library so I made this little change what will make the 'Replace' button always show up in the Image Details modal.


/wp-includes/media-template.php  :line: 885
{{{
<div class=""image"">
	<img src=""{{ data.model.url }}"" draggable=""false"" alt="""" />

	<# if ( data.attachment && window.imageEdit ) { #>
		<div class=""actions"">
			<input type=""button"" class=""edit-attachment button"" value=""<?php esc_attr_e( 'Edit Original' ); ?>"" />
			<input type=""button"" class=""replace-attachment button"" value=""<?php esc_attr_e( 'Replace' ); ?>"" />
		</div>
	<# else if ( data.attachment && window.imageEdit ) { #>
		<div class=""actions"">
			<input type=""button"" class=""replace-attachment button"" value=""<?php esc_attr_e( 'Replace' ); ?>"" />
		</div>
	<# } #>
</div>
}}}


**Todo.
While adding a new image to the editor we get a small JavaScript error.
"	MacPresss
	52705	Set threshold for lazy loaded images		Media		normal	normal	Awaiting Review	enhancement	new		2021-03-03T17:18:31Z	2021-03-05T19:38:30Z	"The new lazy load by default has caused a lot of problems for my websites. It broke a3 lazy load and created large content layer shifts with that plugin enabled. Even after the developer said he turned off the new default lazy load. That plugin is now unusable which is fine if there is a good alternaitve.   

Without a3 lazyload the sites are much slower than previously when using a3 lazyload. I guess the new feature can be turned off but I think other things changed when making the role out. Maybe WordPress core use to define the image width and then height rather than height and then width in the HTML? Not positive but I think so.  

Even though I think this made WordPress worse I imagine these changes are here to stay. 

Can you make it so we can set an image threshold on the default lazy load? Lazy loading without a threshold makes the images pop out of black space, providing a very poor user experience in my opinion. "	cbw5007
	22966	Show admin-cropped thumbnails instead of WordPress-cropped thumbnails		Media		normal	normal	Awaiting Review	enhancement	new		2012-12-16T22:22:59Z	2023-08-29T15:35:39Z	"Used to be able to see which images have been cropped (and which ones haven't) in image search results. Now have to click 'edit image' and check the image individually.

It's valuable for the publisher to see what his/her readers will see on the front end of the site when the 'thumbnail' function is called (either publisher's hard-cropped image or full un-cropped image). Useful especially for publishers that are pulling images from a time before 'thumbnails' existed in WP.

Main reason this is an issue is that when an un-cropped thumbnail is selected as the featured image, it will be stretched/distorted to dimensions of thumbnail settings in function.php."	beerpulse
	66476	Tests: Add unit coverage for `wp_exif_date2ts()`		Media		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-04T16:12:51Z	2026-11-04T16:13:32Z	"Previously, `wp_exif_date2ts()` had no direct `PHPUnit` coverage with `@covers`.

This change adds a dedicated test class covering `Exif Y:m:d H:i:s` conversion to a unix timestamp, including surrounding whitespace trimming.

Test-only: no production code changes."	shailu25
	66622	Tests: Add unit test coverage for get_taxonomies_for_attachments()		Media		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T14:49:19Z	2026-11-07T15:06:26Z	"Add unit test coverage for `get_taxonomies_for_attachments()` in `src/wp-includes/media.php`.

The tests cover:
- Returning an array of taxonomy names by default.
- Returning taxonomy objects when `output` is set to `'objects'`.
- Correctly detecting taxonomies registered for attachment sub-types (e.g. `attachment:audio`).
- Excluding taxonomies not associated with attachments.

GitHub PR: https://github.com/WordPress/wordpress-develop/pull/15798"	devmuhib
	66623	Tests: Add unit test coverage for wp_get_image_editor_output_format()		Media		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T14:49:23Z	2026-11-07T15:06:27Z	"Add unit test coverage for `wp_get_image_editor_output_format()` in `src/wp-includes/media.php`.

The tests cover:
- Checking default output format mappings for HEIC/HEIF images to JPEG.
- Modifying mappings via the `image_editor_output_format` filter and verifying all filter arguments (`$formats`, `$filename`, `$mime_type`).

GitHub PR: https://github.com/WordPress/wordpress-develop/pull/15799"	devmuhib
	66619	Tests: Add unit test coverage for wp_image_matches_ratio()		Media		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T14:49:07Z	2026-11-07T15:02:00Z	"Add unit test coverage for `wp_image_matches_ratio()` in `src/wp-includes/media.php`.

The tests cover:
- Testing identical image dimensions.
- Proportionally scaled image dimensions (both when source > target and target > source) across 4:3 and 16:9 aspect ratios.
- Rejecting mismatched aspect ratios and orientation mismatches.
- Testing the 1px tolerance window supported by `wp_fuzzy_number_match()`.
- Rejecting dimensions that differ beyond the 1px tolerance.

GitHub PR: https://github.com/WordPress/wordpress-develop/pull/15795"	devmuhib
	66624	Tests: Add unit test coverage for wp_is_heic_image_mime_type()		Media		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T14:49:26Z	2026-11-08T04:47:01Z	"Add unit test coverage for `wp_is_heic_image_mime_type()` in `src/wp-includes/functions.php`.

The tests cover:
- Validating supported HEIC and HEIF MIME types (`image/heic`, `image/heif`, `image/heic-sequence`, `image/heif-sequence`) return true.
- Validating non-HEIC MIME types (`image/jpeg`, `image/png`, `image/webp`, `image/avif`, `application/pdf`, empty string) return false.
- Data providers declared as `public static` for PHPUnit 10+ compatibility.

GitHub PR: https://github.com/WordPress/wordpress-develop/pull/15800"	devmuhib
	66546	Tests: Add unit tests for the Post Featured Image block		Media		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T10:43:08Z	2026-11-06T10:55:37Z	"The functions in `src/wp-includes/blocks/post-featured-image.php` are not referenced by any test: `render_block_core_post_featured_image()`, `get_block_core_post_featured_image_overlay_element_markup()`, `get_block_core_post_featured_image_border_attributes()` and `register_block_core_post_featured_image()`.

This ticket adds tests in two parts: the helper functions that build the border and the overlay, and the render callback (the link, the size and the styles of the image, the first image of the content, and the overlay)."	hmbashar
	66603	Tests: Add unit tests for the columns, the actions and the messages of WP_Media_List_Table		Media		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T08:41:27Z	2026-11-07T08:49:22Z	"`WP_Media_List_Table` in `src/wp-admin/includes/class-wp-media-list-table.php` is only partly tested: `tests/phpunit/tests/admin/wpMediaListTable.php` covers the row actions and `prepare_items()` without the cron option. Its small methods have no tests.

This ticket adds tests that cover:

* `__construct()` (the detached filter and the modes), `ajax_user_can()` and `get_default_primary_column_name()`;
* `get_columns()` (the taxonomies, the columns of an unattached file, the comments column, and the `manage_media_columns` and `manage_taxonomies_for_attachment_columns` filters) and `get_sortable_columns()`;
* `get_bulk_actions()` for the trash, the media in the trash, and the unattached files;
* `current_action()`, `has_items()`, `no_items()`, and `extra_tablenav()` (the filter, the months dropdown, the `restrict_manage_posts` action and the Empty Trash button)."	hmbashar
	65152	UI: Inconsistent left padding between buttons and select dropdowns in media views		Media		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2026-04-29T19:13:53Z	2026-04-30T04:49:58Z	"In the media frame (e.g., when clicking ""Add Media"" in the editor), there is an inconsistency in the left padding between buttons (e.g., ""Add Media File"", ""Bulk select"") and the select dropdowns (e.g., ""All media items"", ""All dates"").

Current padding values:

- Buttons: `padding-left: 10px`
- Select dropdowns: `padding-left: 8px`

This creates a visually misaligned UI where the text inside dropdowns sits `2px` closer to the left edge compared to buttons.

=== Expected Behavior === 
Both buttons and select dropdowns should have consistent left padding for better visual alignment.

=== Actual Behavior === 
The select dropdown has `8px` left padding while buttons have `10px` left padding, causing text misalignment when these elements appear side by side.

=== Screenshots ===
[[Image(https://postimg.cc/gallery/Cxrh1Nh)]]

=== Proposed Solution ===
Update the left padding of the select dropdown in `media-views.css` from `8px` to `10px` to match the button padding.



"	baikare.sandeep007
	37005	Unit test for the wp_check_filetype method		Media		normal	normal	Awaiting Review	enhancement	new	has-patch	2016-06-02T18:43:14Z	2020-04-09T05:51:19Z	"Improving the code coverage for the functions.php, to be more precise the `wp_check_filetype` method, this one hadn't any tests written, decreasing the overall code coverage. Now, the test covers the entire logic
"	borgesbruno
	47237	Used different escape function on options-media.php		Media		normal	trivial	Awaiting Review	enhancement	new	has-patch	2019-05-11T16:02:00Z	2019-05-11T16:33:37Z	"I have checked the options-media.php file and found two different escape function.

Example:

{{{
1) <input name=""upload_path"" type=""text"" id=""upload_path"" value=""<?php echo esc_attr( get_option( 'upload_path' ) ); ?>"" class=""regular-text code"" />
2) <input name=""thumbnail_size_w"" type=""number"" step=""1"" min=""0"" id=""thumbnail_size_w"" value=""<?php form_option( 'thumbnail_size_w' ); ?>"" class=""small-text"" />
}}}
"	dilipbheda
	63673	Various inconsistencies in connection with the ‘Crop’ function	joedolson*	Media		normal	normal	Awaiting Review	enhancement	accepted	has-patch	2025-07-08T16:13:12Z	2025-07-28T11:35:34Z	"When Cropping an Image from the ""Image Details Edit"" screen there are some inconsistencies as follows:

the min values for imgedit-sel-width-[image-id] as well as imgedit-sel-height-[image-id] are set to 0, but you are unable to set any number lesser then 7. After you entered 7 or more, you will be able to enter a lesser number in the secons field.

When you empty the fields the cropped selection should be cleared as if the ""Clear Crop"" button was pushed.

When you enter selection values the cropped selection should appear as if the ""Crop"" button was pushed.

See attached video, which hopefully makes things more clear.
"	Presskopp
	53637	Video poster image is not shown after video has been played		Media	5.7.2	normal	normal	Awaiting Review	enhancement	new		2021-07-10T10:12:25Z	2021-07-12T21:34:03Z	"The poster image is shown correctly before the video starts. When the video has been played, it can be restarted. But then the first frame image of the video is shown instead of the poster image. It would be great if the poster image would be shown again.

This is how the video was embedded:


{{{
[video width=""960"" height=""540"" mp4=""https://mydomain.com/wp-content/uploads/2021/07/video.mp4"" poster=""https://mydomain.com/wp-content/uploads/2021/07/video_thumbnail.jpg""][/video]
}}}
"	marowi
	57760	add 'pre_wp_get_attachment_url' filter		Media		normal	normal	Awaiting Review	enhancement	new	has-patch	2023-02-17T18:16:16Z	2024-11-20T18:09:07Z	"We are making plugin for featured image using external url.

If user gt featured image url via `wp_get_attachment_url()` there is no way for us to hook because `wp_get_attachment_url` hook will never called if the post is not 'attachment'. The only way for us to make it work via creating fake attachment which is complicated.

`pre_wp_get_attachment_url` filter will be very helpful in this case."	fodisery
	44867	image editor: save modified image as a new copy	joedolson*	Media	5.2	normal	normal	Future Release	enhancement	accepted	has-patch	2018-08-30T13:11:43Z	2025-03-12T18:36:07Z	"WordPress allows multiple image sizes to be defined by a theme : they will affect how hard-crop/soft-crop is being used.

Sometimes no autocropping is desirable because editors want to care themselves about it.
For example blog posts having two images ratios (thumbnail for listing, 3:1 for wide-width header).
Giving the possibility to derive one image from the other is very interesting : it avoid uploading two different images but still gives editor ability to do fine-tuned cropping.

For this to work the image editor must be able to save a modified image as a COPY of the original image.

Would an implementation be accepted?

https://wordpress.org/ideas/topic/image-editing-option-to-save-a-copy
"	drzraf
	62253	let get_post_galleries(), when in array mode, include gallery attributes in returned array even for blocks		Media	6.6.2	normal	minor	Awaiting Review	enhancement	new		2024-10-18T10:22:37Z	2024-10-18T10:22:37Z	"As of WP 6.6.2, the return value of get_post_galleries(), if used in non-HTML mode, is reduced to image IDs and image-URLs when parsed from gallery blocks, but includes all additional attributes when parsed from short-code. Having information like number of columns or image size is helpful for theme design. So it is derirable to include this additional information in the returned array. 
In its simplest form this can be done by just merging the array {{{$block['attrs']}}}:
{{{
	$galleries[] = $block['attrs'] + array(
		'ids' => implode( ',', $ids ),
		'src' => $srcs,
	);
}}}
for the new Gallery block format (line 5156 in media.php) and
{{{
	$galleries[] = $block['attrs'] + array(
	//	'ids' => implode( ',', $ids ),
		'src' => $srcs,
	);
}}}
for the Old Gallery block format (line 5183 in media.php).

Moreover to design it future-proof, it might be wise to unify the names and the possible set of allowed values of the included attributes across the 3 sources shortcode, gallery block V1 and gallery block V2. For example, the attributes\\
  'link':'file' (from shortcode) and 'LinkTo':'media' (from gallery block V2)\\
should appear identically in the output array."	mkoch31167
	41977	media_handle_upload() un required second parameter	antpb	Media	2.5	normal	normal	Future Release	enhancement	assigned		2017-09-25T14:21:04Z	2023-02-07T06:26:41Z	"Why second parameter of `media_handle_upload( $file_id, $post_id )` is required?

It's better to define it as 0 and make it optional. In some cases it's more convenient! And we lose nothing if do so..."	Tkama
	39791	sanitize_file_name() optimizations		Media	4.8	normal	normal	Awaiting Review	enhancement	new		2017-02-05T23:24:33Z	2018-01-20T13:49:47Z	"This changeset: [29290]

added this line:
{{{#!php
$filename = str_replace( array( '%20', '+' ), '-', $filename );
}}}

But because of this changeset it can be removed as those chars aren't present anymore: [35122]


'''Additional proposals'''

1.) After many years new special characters are added step-by-step to sanitize_file_name(). Now almost all characters of the reserved file system, reserved URI and unsafe URL characters lists are part of it, except of:

reserved file system chars (https://en.wikipedia.org/wiki/Filename#Reserved_characters_and_words)
{{{
chr(0), ..., chr(32)
}}}


the reserved URI char (https://tools.ietf.org/html/rfc3986#section-2.2):
{{{
@
}}}


the unsafe URL char (https://www.ietf.org/rfc/rfc1738.txt):
{{{
^
}}}

non-printing DEL:
{{{
chr(127)
}}}

Finally you should add all these chars to avoid future bug reports:
{{{#!php
$special_chars = array(
	// file system reserved https://en.wikipedia.org/wiki/Filename#Reserved_characters_and_words
	'<', '>', ':', '""', '/', '\\', '|', '?', '*',
	// control characters http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx
	// note: \t, \n and \r are chr(9), chr(10) and chr(13)
	chr(0), chr(1), chr(2), chr(3), chr(4), chr(5), chr(6), chr(7), chr(8), chr(9), chr(10),
	chr(11), chr(12), chr(13), chr(14), chr(15), chr(16), chr(17), chr(18), chr(19), chr(20),
	chr(21), chr(22), chr(23), chr(24), chr(25), chr(26), chr(27), chr(28), chr(29), chr(30),
	chr(31),
	// non-printing character <DEL>
	chr(127),
	// non-breaking space
	chr(160),
	// URI reserved https://tools.ietf.org/html/rfc3986#section-2.2
	'#', '[', ']', '@', '!', '$', '&', ""'"", '(', ')', '+', ',', ';', '=',
	// URL unsafe characters https://www.ietf.org/rfc/rfc1738.txt
	'{', '}', '^', '~', '`'
);
}}}

If you do that, do not forget to change this line:
{{{#!php
$filename = preg_replace( '/[\r\n\t -]+/', '-', $filename );
}}}


to that (because we replaced the other chars already):
{{{#!php
$filename = preg_replace( '/[ -]+/', '-', $filename );
}}}

and remove this line because we cover it already through chr(160):
{{{#!php
$filename = preg_replace( ""#\x{00a0}#siu"", ' ', $filename );
}}}

Source: https://en.wikipedia.org/wiki/Whitespace_character#Unicode

2.) mb_strtolower() could be used to raise windows/unix interoperability (when downloading ftp backups or moving the host) because of their different behaviour in case-sensitivity.
"	mgutt
	46835	unnecessary image size created		Media	5.1	normal	normal	Awaiting Review	enhancement	new		2019-04-08T21:14:39Z	2019-04-09T08:38:57Z	"[[Image(https://i.stack.imgur.com/JDFyd.png)]]

This is hard to explain. I have the medium size set to 640px wide.
If i upload an image that is exactly 640px wide. It creates an unnecessary copy of it that matches the original image in every sense.

The problem is that when i upload an image that's exactly 640px wide it makes a copy like so:

image.png (is 640x640 px)
image-640x640.png (is ALSO 640x640 px, so why create it?)

The medium (640px) size should only be created if the original image is Wider than that, not equal.

I hope i explained it well enough. Let me know if it needs clarification."	ctrlaltdelete
	40915	wordpress should issue a warning if no graphic library is installed		Media	4.7.5	normal	normal	Awaiting Review	enhancement	new		2017-06-03T14:58:23Z	2017-06-10T07:07:59Z	"Hi people! I've installed wordpress on my site, and I had no library for image manipulation installed. Iin that case, I got no thumbnails.

Due to css of my site, I was not initially aware of my site, cause the layout was right.

So, I think that a warning on admin to the ones that don't have GD or imagick installed could be a good thing. I know that this is a strange corner case :)"	waltercruz
	57733	wp-includes/functions.php::do_enclose() should handle post content differently		Media	6.1.1	normal	normal	Awaiting Review	enhancement	new		2023-02-16T12:21:59Z	2023-02-16T12:21:59Z	"This method **removes enclosures** if {{{get_post()->post_content}}} doesn't contain the enclosure URL.

What if the post **will** contain the URL **after** it is being rendered with, say, a shortcodes? For example, I may use shortcodes to form the media URL in the post content as {{{<a href=""[base_site_url]/media/podcast001.m4a"">media file</a>}}} as the string that will be rendered (and then match) the URL found in enclosure. And by the way, on the enclosure I would also like to use shortcodes, but this is yet to be tested and not relevant to this bug report.

URL comparisons should happen with both post content and enclosure content transformed to their final forms, not its raw version.

Thank you in advance."	avibrazil
	65751	wp_get_registered_image_subsizes() has no unit test coverage		Media		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-07-29T01:53:27Z	2026-10-31T16:50:09Z	"wp_get_registered_image_subsizes() in wp-includes/media.php (since 5.3.0) has no PHPUnit coverage at all — confirmed via grep -rn ""wp_get_registered_image_subsizes"" tests/phpunit/. It's a pure function composing get_intermediate_image_sizes() and wp_get_additional_image_sizes() into a normalized {width, height, crop} array per registered size, so it's straightforward to cover: custom sizes via add_image_size(), crop as a bool vs. a position array, sizes with no dimensions being omitted, and the intermediate_image_sizes filter. Have a PR ready with 4 tests covering these cases."	irozum
	65874	Alt Text updating during uploading		Media		normal	normal	Awaiting Review	feature request	new		2026-08-14T00:44:17Z	2026-08-18T17:04:01Z	"I would love to write the alt text into the box whilst the image is uploading.

screen shot showing that the box is greyed out whilst uploading:
[[Image(https://craiglambie.com/wp-content/uploads/2026/08/wp-upload-alt.png)]]

discussion (here)[https://wordpress.org/support/topic/fr-alt-text-input-field-whilst-uploading/#post-18992164]

The idea is that the ""alt-text"" box would be available to type into as the media uploads - making the workflow easier, and the likeliness of adding alt text higher."	cclambie
	54226	Cleanup Unused Image Sizes		Media		normal	normal	Awaiting Review	feature request	new		2021-10-06T09:45:25Z	2021-10-06T11:21:46Z	I have just spent my morning cleaning up over 400,000 unused image sizes taking up over 14Gb of disk space on my site. This comes from both WordPress & WooCommerce not cleaning up after thumbnail sizes have been changed in the past. I am luckily an advanced user and able to do this via the command line but I really feel for the average user who is paying a premium for hosting to host a plethora of images that are old and never used. WordPress & Woocommerce really need to look at cleaning up after themselves.	mitchellk
	48462	Download from Media in Backend		Media	5.2.4	normal	normal	Awaiting Review	feature request	new		2019-10-30T10:48:12Z	2019-11-15T15:26:41Z	"It would be great to quickly download multiple images/files from the media in the backend.
This would speed up the editing process, when an editor needs help with image editing.

Mark multiple images > click download."	diebombe
	48488	Easier disabling of PDF thumbnail creation		Media	4.7	normal	normal	Future Release	feature request	new	dev-feedback	2019-11-03T20:14:48Z	2019-12-03T16:49:09Z	"Since #31050 wordpress automatically creates thumbnails for uploaded PDF Files by creating a second attachment post object with the extracted image.
While this may be useful for many use cases, in some like ours it is not.
Furthermore, it is possible to turn of thumbnail creation for audio and video by using the following simple code (
{{{#!php
<?php
	remove_post_type_support( 'attachment:audio', 'thumbnail' );
	remove_post_type_support( 'attachment:video', 'thumbnail' );
}}}
).
It would be great to have a similar concept for pdf thumbnails in wp-admin/includes/image.php"	pampfelimetten
	60250	Feature Req – Media Library Grid-List	antpb	Media		normal	normal	Future Release	feature request	assigned		2024-01-14T16:18:41Z	2024-09-30T02:37:11Z	"Hello, i have site with lots of images so i have to check attachment details of images and upload new ones everyday. so in grid view of media library, the attachment details modal is really helpful and i have infinite scroll enabled. i have to check old images after uploading a new into media library but need to scroll a lot and it’s very annoying. on the other side in list view there is a pagination so i can remember page number everyday but there is No attachment modal thats why I have to open attachment page of every image and update info which takes lots of time.

I really need pagination in grid view or attachment details modal in list view. kindly add an one feature in media library. it will save lots of time in future. Thank You 🙂

"	smtkapps
	55093	Feature Request - Media Uploads option for year-based folders (without month)		Media		normal	normal	Awaiting Review	feature request	new		2022-02-05T22:18:22Z	2022-10-26T15:53:30Z	"Feature Request (maybe while you’re working on 5.9.1… :-)) :

On Settings > Media (wp-admin/options-media.php screen),
under “Uploading Files”
In addition to “Organize my uploads into month- and year-based folders”,
an option to “Organize my uploads into year-based folders”

Cheers,
Kim"	wardencenter
	42633	Suggestion to provide Better Page and Image Management		Media	4.9	normal	normal	Awaiting Review	feature request	new		2017-11-20T03:41:59Z	2017-11-20T05:24:14Z	"**** This is not  bug report but a suggestion ****

Not at all sure if this is the right place for this however, I've been using wordpress for about 12 months now and believe it lacks somewhat in the management of pages and media. I believe that it would help tremendously helpful if we could:

(1) organize pages into groups or folders as it can be overwhelming with the current long list of pages when we are working on large sites with a lot of pages, and

(2) similarly, organize media into folders so for example, we could keep site media separate from post media.

Thanks for listening"	sixlinksrule
	49631	Test coverage for media_sideload_image() _source_url meta	killua99	Media	5.4	normal	normal	Future Release	task (blessed)	assigned	has-patch	2020-03-12T14:38:46Z	2026-09-04T06:18:13Z	"Since #48164 when an image is sideloaded we store the original attachment URL in `_source_url`. There should be test coverage across this feature that validates that the meta is being properly stored. 

@pbiron mentioned in the Media meeting where this was discussed that there are currently no existing tests around the `media_sideload_image()` function. This would be a great start to getting that covered. 

@joemcgill also mentioned that ""You may want to consider writing the test in a way that sideloads an image that is already available on the test site."" 

Link to media meeting where this took place: https://wordpress.slack.com/archives/C02SX62S6/p1584022312111000"	antpb
	49331	'output' Taxonomy Slug Crashes Menu		Menus	5.3.2	normal	normal	Awaiting Review	defect (bug)	new		2020-01-30T16:52:58Z	2020-01-30T22:42:13Z	"If I create a custom taxonomy with its slug as 'output' the Menus in the admin area disappear as well as on the frontend.
The 'output' is not listed as a reserved term here: https://codex.wordpress.org/Reserved_Terms"	nekokun
	52616	Admin Taxonomy Search returns only 10 results max and no pagination		Menus		normal	normal	Awaiting Review	defect (bug)	new		2021-02-23T00:51:16Z	2021-02-23T10:37:57Z	"In Admin : /wordpress/wp-admin/nav-menus.php
In the 'Add menu items' section.
When you search for products or categories or other taxonomies, it returns maximum of ten 10 results and with no option of pagination.

Looked for a solution but found nothing.
Can this be fixed somehow?"	aristotelisj
	55719	Better error message for sites using a FSE supporting theme when visiting the old navigation menus screen		Menus	5.9	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-05-12T19:46:18Z	2022-05-12T19:46:18Z	"When a block theme that supports full site editing is active, the user will see 'Your theme does not support navigation menus or widgets.' when navigating to the old Navigation Menus screen (`wp-admin/nav-menus.php`).

This `wp_die()` notice is triggered when `add_theme_support()` is not called for `menus` and `widgets` (which is the case for FSE themes).

While this is accurate, it could be misleading for someone who was familiar with WordPress prior to block-based themes. A FSE theme still supports widgets and navigation menus, just through blocks. It's not unreasonable to assume some users will have this page bookmarked or that plugins will continue linking to this page for some time.

This ticket is to consider whether a different error message should be displayed when `wp_is_block_theme()` is `true`, potentially including a link back to the admin or a resource about navigation menus and widgets in a block-ified WordPress."	desrosj
	64834	"Bug Report / UX Issue: Taxonomy Hierarchy Flattens and Breaks in Nav Menu ""View All"" Tab Due to Pagination"		Menus	6.9.1	normal	normal	Awaiting Review	defect (bug)	new		2026-03-09T18:45:14Z	2026-03-09T18:45:14Z	"Hi there! 
Description of the Issue:
There is a long-standing UX issue in the WordPress admin panel regarding the Appearance > Menus (nav-menus.php) screen. When a user tries to add terms from a hierarchical taxonomy (such as WooCommerce Product Categories or standard Post Categories) to a menu, the visual parent-child hierarchy breaks completely if the number of terms exceeds the pagination limit.
​In the ""View All"" tab of the taxonomy meta box, instead of displaying the correct indented tree structure, WordPress renders a completely flat list. This makes it nearly impossible for site admins to identify which child category belongs to which parent, especially on e-commerce sites with hundreds of nested categories.
​Expected Behavior:
The visual hierarchy should be maintained, displaying like this:
​Category
​Sub-category 1
​Sub-category 2
​Sub-sub-category 1
​Actual Behavior:
The hierarchy is stripped, and items are displayed as a flat list:
​Category
​Sub-category 1
​Sub-category 2
​Sub-sub-category 1
​Steps to Reproduce:
​Create a hierarchical taxonomy (e.g., standard categories or WooCommerce product categories).
​Generate a large number of terms (e.g., 50+ terms) with multiple levels of parent-child relationships.
​Navigate to Appearance > Menus.
​Open the meta box for that specific taxonomy and click on the ""View All"" tab.
​Notice that the pagination kicks in and the terms are listed flatly without any hierarchical indentation.
​Technical Root Cause:
The issue stems from how wp_terms_checklist() and the Walker_Nav_Menu_Checklist handle large datasets. When the number of terms exceeds the default limit, pagination ('number' and 'offset' arguments in get_terms) is applied.
​Because a child term might end up on a different pagination page than its parent, the walker cannot reliably build the tree. As a fallback, WordPress abandons the hierarchical structure and outputs a flat list to prevent ""orphan"" child terms from breaking the HTML structure.
​Impact:
This causes a massive workflow bottleneck for users managing large sites, specifically WooCommerce stores with complex product catalogs. Users are forced to guess which ""T-Shirts"" sub-category belongs to ""Men"" and which belongs to ""Women"" since they both look identical in the flat list.
​Proposed Solutions:
​AJAX-based Tree Loading: Implement a lazy-loading tree structure (similar to modern UI frameworks) where clicking a parent expands its children dynamically, bypassing the need for standard pagination.
​Disable Pagination for Hierarchical Taxonomies: Introduce a filter or core toggle that allows hierarchical taxonomies to bypass the number limit entirely in the nav menu meta box, rendering the full tree at once.
​Contextual Parent Labels: If flattening is absolutely necessary for performance, append the parent name to the child term in the UI (e.g., Sub-category 1 (Parent: Category)).
​Thank you for looking into this long-standing friction point in the WordPress admin experience!"	grafimangr
	18209	Capabilities with misplaced dependencies in edit_theme_options		Menus	3.2.1	normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2011-07-22T06:33:07Z	2022-08-04T10:00:18Z	"When setting capabilities for other groups, the user is unable to add to theme options with just '''edit_theme_options''' if they do not also have '''edit_posts''' capabilities. The user will be able to delete things like menu elements, but may not add them without this flag.


== How to reproduce; ==
Edit capabilities of group removing all '''POSTS''' to hide the Posts Dashboard pages (works by just removing '''edit_posts''' as well).
Give group '''edit_theme_options''' capabilities to edit their own menus.
Users may now access the Theme Options, and may delete objects.
User can add menu items to the preview, but once they Save these, the changes are not committed without the edit_posts permission."	Clorith
	66177	Check that menu items are objects in _wp_menu_item_classes_by_context()		Menus		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2026-09-24T18:31:52Z	2026-09-25T10:05:50Z	"`wp_nav_menu()` passes the result of `wp_get_nav_menu_items()` to `_wp_menu_item_classes_by_context()` ( [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/nav-menu-template.php#L201 GH] ), which assigns properties on every item without checking that the item is an object ( [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/nav-menu-template.php#L399 GH] ). The items come through the `wp_get_nav_menu_items` filter, and in the normal case they are all WP_Post objects.

A filter that leaves a `null` in that array causes a PHP fatal error:

{{{
Fatal error: Uncaught Error: Attempt to assign property ""current"" on null ...
}}}

WordPress should check that each menu item is an object before assigning properties to it.

I have a PR to address this."	josephscott
	61876	Exception thrown in navigation/view.min.js on mobile device		Menus	6.6.1	normal	normal	Awaiting Review	defect (bug)	new		2024-08-15T08:18:10Z	2024-11-02T10:24:22Z	"After the update to 6.6.1 the menu isn't shown anymore on mobile devices.
Remote debugger shows:

{{{
Uncaught SyntaxError: Cannot use import statement outside a module
}}}

Opening the file in the remote console the following line is marked as faulty:


{{{
// source --> https://toebele-rechberghausen.de/wp-includes/blocks/navigation/view.min.js?ver=6.6.1 
import*as e from ""@wordpress/interactivity"";
}}}
"	derroth
	54585	Issue in the menu editor		Menus		normal	normal	Awaiting Review	defect (bug)	new		2021-12-06T10:04:32Z	2021-12-06T10:16:17Z	"In the WP menu editor (in apparence), when im searching a category with a ' (quote) inside the category's name, WP don't find it. The category will only be found if i'm testing with a word rather than the exact expression.

Actualité sur l'outillage -> not found
outillage -> the category ""Actualité sur l'outillage"" is found 

The same probleme exists for the product category's name when Woocommerce is installed."	fiotty0
	54217	Menu Screen has some UI inconsistency issue		Menus	5.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-10-04T13:42:31Z	2021-10-05T06:53:46Z	"Bulk Select button on menu screen on top and bottom doesn't have the equal margin from top and bottom, Refer Screenshot `bulk-select-margin.png`

After applying the patch, the screen looks like this, refer `bulk-select-after-fix.png`


Made sure it doesn't break anything else, after applying the fix for it, menu items margin got disturbed so applied fix for that as well, refer `menu-item-margin.png`


`Add menu items from the column on the left.` padding of this also got disturbed so fixed this by adding

{{{
.nav-menus-php #post-body-content .post-body-plain {
	margin-bottom: 0;
	padding: 0.1em 0;
}
}}}
Refer Screenshots: `menu-item-colum-left.png` & `menu-item-colum-left-after-fix.png`

 "	juhise
	39355	Menu title doesn't get updated if I change the page title		Menus	4.7	normal	normal	Awaiting Review	defect (bug)	assigned		2016-12-21T01:38:03Z	2020-01-08T00:23:49Z	"It seems like WordPress converts the hyphen character to the dash character automatically. I created a new page with the following page title:

'''Foo - Bar'''

However, when I checked the menu title (Appearance > Menus), I found the title was displayed as:

'''Foo – Bar'''

The page gets stored in the database with a customized menu title (page title with a hyphen and menu title with a dash) and that's why the menu title doesn't get updated if I change the page title."	maaarsl
	55863	Menus broken after upgrade to 6.0		Menus	6.0	normal	major	Awaiting Review	defect (bug)	new		2022-05-28T12:00:30Z	2022-05-28T12:00:30Z	"After upgrading WordPress to 6.0, some of the menus on our site broke.

It didn't happen to all, but to some. We had to restore to the previous version of WordPress.

When going into Appearance - Menus and looking for the menu, the menu appears blank in WordPress. However, when I added something back to the menu and pressed save all the original menu items reappeared, so there may be some kind of database linking error?

We are nervous to upgrade back to 6.0 as a result."	darrenburn
	58640	Navigation Block renders wrong menu		Menus	6.2.2	normal	major	Awaiting Review	defect (bug)	new		2023-06-27T07:15:00Z	2024-04-23T09:56:26Z	I have been experiencing a problem with block editor in the theme block theme that I am developing. The core/navigation block does not renders the manu I select in editor. However, in editor, the menu that gets rendered is one selected.	mechaartistix
	62925	Non-unique names for inputs in nav-menu	joedolson*	Menus		normal	normal	Awaiting Review	defect (bug)	accepted	has-patch	2025-02-09T07:53:51Z	2025-02-18T17:38:22Z	"/wp-admin/nav-menus.php

e.g. in the 


{{{
<form id=""nav-menu-meta"" class=""nav-menu-meta"" method=""post"" enctype=""multipart/form-data"">
}}}

If there are custom menus (e.g. WooCommerce) but possibly also only with native ones, it's possible that there are multiple different input with identical name= which will cause issues on form submit/processing.

e.g.


{{{
<input type=""hidden"" class=""menu-item-title"" name=""menu-item[-1][menu-item-title]"" value=""Some Text""/>
}}}

I have multiple elements in the navigation that all have ""menu-item[-1][menu-item-title]"" as name (starting from -1 all the way up to -133 which is the number of elements in the navigation)
Also affects other elements like menu-item[-1][menu-item-url],...
"	kkmuffme
	51948	Override fallback nav menu item label		Menus		normal	normal	Awaiting Review	defect (bug)	new		2020-12-06T15:57:28Z	2020-12-06T15:57:28Z	"While looking into some advanced concepts for improving navigation menus, I noticed if I create completely custom Nav Menu items, WordPress falls back to using ""Custom Link"" no matter what.

I think this needs a filter adding in the fallback method, https://github.com/WordPress/wordpress-develop/blob/ac71fffac0045511a990ce02210300421d8b3b0e/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php#L322 whereby I can add in a more correct message to display for my custom Nav Menu items."	invisibledragonltd
	51565	PHP Notices from wp_setup_nav_menu_item when object_id doesn't exist anymore		Menus	5.5.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-10-19T08:49:56Z	2024-01-19T18:05:52Z	"Hello,

The function `wp_setup_nav_menu_item` calls function `get_post_states` after trying to get the post linked to a menu item.

Unfortunately, no check is done of `get_post` return value and, if the post linked to a menu item doesn't exist anymore, the variable `$menu_post` will be `null`. The susequent call to `get_post_states` (which uses $menu_post as its first argument with the null value) will give 2 PHP warnings:

- Notice: Trying to get property 'post_status' of non-object
- Notice: Trying to get property 'ID' of non-object

Indeed, `get_post_states` don't check that its first argument is really a post object and directly tries to access its properties assuming it to be a valid object.

I think both functions should be corrected: `wp_setup_nav_menu_item` should check the return value of `get_post` and `get_post_states` should also check if its first argument is indeed a valid post object.

Culprit code from `wp_setup_nav_menu_item`:

{{{#!php
<?php
				if ( $object ) {
					$menu_item->type_label = $object->labels->singular_name;
					// Denote post states for special pages (only in the admin).
					if ( function_exists( 'get_post_states' ) ) {
						$menu_post   = get_post( $menu_item->object_id );
						$post_states = get_post_states( $menu_post );
						if ( $post_states ) {
							$menu_item->type_label = wp_strip_all_tags( implode( ', ', $post_states ) );
						}
					}
}}}
"	tristanleboss
	65704	Some plugins which use a menu icon that is too large are breaking the admin side menu.		Menus		normal	normal	Awaiting Review	defect (bug)	new	close	2026-07-24T11:22:14Z	2026-07-30T09:54:16Z	"Hello.

Some plugins which use a menu icon that is too large are breaking the admin side menu.

Please add overflow:hidden to...

#adminmenu div.wp-menu-image {
  float: left;
  width: 36px;
  height: 34px;
  margin: 0;
  text-align: center;
}

See attachments."	damndealdone
	39056	Twenty Seventeen: No Default Menu option creates extra work		Menus	4.7	normal	normal	Awaiting Review	defect (bug)	reopened		2016-12-04T17:28:41Z	2018-03-05T13:42:50Z	"A new WordPress site is created with a sample post, and sample page. In previous themes, there was a menu with Home and Sample Page listed, which was nice to see where the menu lives, and preview what a page looks like.

On Twenty Seventeen there is no default menu. This prevents me from both identifying where those links would be, as well as not allowing me to view the Sample Page."	ElfIRL
	57428	Walker_Nav_Menu::start_el() $data_object is not a WP_Post		Menus	6.1.1	normal	minor	Awaiting Review	defect (bug)	new	has-patch	2023-01-06T11:26:26Z	2026-06-27T16:43:43Z	"The inline docs for `Walker_Nav_menu::start_el()` state that the `$data_object` parameter is a WP_Post object. This isn't accurate as the object that comes in has various properties such as `$title` and `$url` which do not exist on a standard `WP_Post` object. 

The docs were changed from `object` to `WP_Post` here https://core.trac.wordpress.org/changeset/38559, but it's not clear why. 

Proposed solutions would be to revert this to an `object` parameter, leaving it to the developer to find out what type of object is being passed in, or an improvement would be to define an object type for a `Walker_Nav_Menu_Data_Object` (likely extending WP_Post) that documents all possible/acceptable properties that would be expected to be able to be used in a walker. "	jdamner
	39196	When saving large menus the JSON encoded string was not used. related to  #14134		Menus	4.5	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2016-12-09T09:24:44Z	2026-01-30T05:29:44Z	"This is a follow-up to #14134.

The solution proposed in #14134 is not properly working. This is because the values of the JSON string are replacing $_POST but later on $_REQUEST was being used. The only reason it seemed to still work is because the post action of the form was populating all the variables, but still failed when the apache, php or suhosin were reached.

In the proposed solution only the JSON string, menu ID and action are submitted by post and then $_POST and $_REQUEST are populated with the data. 
"	budaned
	51963	WordPress Multisite: Menu Editor Does Not Work In Subsites		Menus	5.5.3	normal	blocker	Awaiting Review	defect (bug)	new		2020-12-08T06:45:05Z	2021-03-02T22:18:58Z	"Hello
If you install a fresh WordPress multisite without any plugins, and you create a subsite like mysite.com/site1 and you go to Appearance > Menus in the dashboard of the subsite, you come across the following problems although you do not have such problems with the main site's menu editor:
(I tested with various browsers, various PCs, various OS's, on the latest Wordpress version 5.5.3, a fresh install without any plugins)
1- We cannot add new items:
We can add new pages to the menu, but we cannot add new custom links, posts, categories, etc. to the menu. We can add them easily to the menu of the main site, but not the subsite.

2- We cannot move / rearrange the menu items:
When we click ""edit"" beside a menu item, we do not see the arrangement options such as Move Up / Move Down / Move Under / etc. Those options are available in the main site.

3- Screen Options Button Does not Work:
When we click on Screen Options, the button does not work. It works well on the main site.
"	javad2000
	58538	Wrong menu is shown after adding new Header Template parts		Menus	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-06-14T18:51:11Z	2023-06-14T18:51:11Z	"I believe I have found a repeatable bug, and workaround, pertaining to adding new Header Template Parts in WordPress 6.2.2, using multiple FSE themes.

The goal: To have (at least) three custom Page templates, each with a different Nav block in its header. The current site has a working header, containing a Nav block with ""menu 1"" selected from the Classic menu list, in the Front Page, Page (and other) Templates - so it's necessary to add two more Template Parts for Headers, and two new Custom Page Templates, using each new Header.

Steps:
- Add second Header Template Part, with a second menu selected from existing Classic menus.
- Add third Header Template Part, with a third menu selected from existing Classic menus.
- Add Custom Page Template 2, using Header Template Part 2, including Nav 2.
- Add Custom Page Template 3, using Header Template Part 3, including Nav 3.
**- Note that both new page Templates and Header Template Parts show the correct Nav menu in the editor.
**
- Assign one or more pages to Custom Page Template 2
- Assign one or more pages to Custom Page Template 3
- **BUG: All pages assigned to BOTH Custom Page Templates 2 and 3 will show only Nav menu 3**.

**In other words, creating the third Header Template Part seems to to overwrite the Nav menu selected in the second Header Template Part.
**

THE WORKAROUND:

For each of the two new Header Template Parts (2 and 3)

- Modify the menu of each Header Template Part in some way, such as:
	- Add an item to the menu at the end (anything - just an empty item is fine).
	- Save the Header Template Part, and test it. You will see the correct menu with the new item.
	- Return to the Header Template Part, remove the extraneous item from the menu, and save it again.
- After doing this for both of Header Template Parts 2 and 3, they should then function correctly throughout the site.

"	littleen
	41502	_wp_expand_nav_menu_post_data() corrupts multiple select (array value)		Menus	4.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-08-01T04:01:03Z	2026-11-10T07:51:30Z	"Hi guys.

Elliot here - ACF developer.
I've recently added custom fields to the WP menu and WP menu item forms.

In doing so, i have discovered that the `_wp_expand_nav_menu_post_data()` function (called in wp-admin/nav-menus.php on line 56) is corrupting some array $_POST values.

The issue is caused with inputs using a name like so:
`my_field[]`
`my_field[]`

Please note that there is no issue when a key is defined like so:
`my_field[0]`
`my_field[1]`

There are many cases where a developer would not define the 'keys' of an 'array type' input name. Think of a multiple select element. The element accepts only one name attribute and it must be defined like so `my_field[]`.
- Also, checkbox / radio fields are commonly rendered using the same naming style.

Is it possible to request some extra logic within the `_wp_expand_nav_menu_post_data()` function that allows for this?

I suspect the issue is caused on line 1125 of the 'wp-admin/includes/nav-menu.php' file where the $_POST value is modified:
`$new_post_data[ $array_bits[ $i ] ] = wp_slash( $post_input_data->value );`

Thanks
Elliot"	elliotcondon
	43076	current-menu-item for archive menu item on singular page	audrasjb	Menus		normal	normal	Future Release	defect (bug)	assigned	reporter-feedback	2018-01-12T09:51:43Z	2020-01-17T00:02:45Z	If I have CPT with archive and singular page and I add to menu url to archive and I go to singular page of CPT then should be add current-menu-item to menu item of archive	sebastian.pisula
	47139	function wp_logout_url urlencode causes issues in items wrap nav walker.	audrasjb	Menus		normal	normal	Awaiting Review	defect (bug)	reviewing	reporter-feedback	2019-05-06T14:42:44Z	2019-08-02T11:09:52Z	"Hi

The function wp_logout_url returns a encoded logout url. This used to work before without any issues.


{{{
string(128) ""http://wprtdev.tst/wp-login.php?action=logout&_wpnonce=72f1be58e4&redirect_to=http%3A%2F%2Fwprtdev.tst%2F%3Floggedout%3Dtrue""
}}}
 

But if you parse this url as a list element in the menu walker you get a warning and error

{{{

<b>Warning</b>:  sprintf(): Too few arguments in <b>/var/docs/wprtdev.tst/public/wp-includes/nav-menu-template.php</b> on line <b>261</b><br />
}}}


because the walker uses %3$s for the items wrap and the encoded url has %3Afor : and %3F for ?

It is not possible to add a logout url into the items wrap like this


{{{
'items_wrap'=>'<ul id=""%1$s"" class=""%2$s"">%3$s<li id=""woo-menu-logon-main"" class=""menu-item menu-item-type-post_type""><a href=""http://wprtdev.tst/wp-login.php?action=logout&amp;_wpnonce=72f1be58e4&amp;redirect_to=http%3A%2F%2Fwprtdev.tst%2Fblog%3Floggedout%3Dtrue"" title=""Logout from shop"" itemprop=""url""><i class=""wooicon icon icon-exit""></i>Logout</a></li>',
}}}

How to fix this?

Thank you !
"	BackuPs
	49332	method Walker_Nav_Menu::start_el should not call filter the_title on non post menu items		Menus	5.3.2	normal	normal	Awaiting Review	defect (bug)	new		2020-01-30T17:16:29Z	2020-01-30T22:39:24Z	"I am working on a site with a.o:
- WP 5.3.2
- WPML 4.3.6
- Estatik-pro 3.8.1
- Divi 3.29.1

And am seeing the following notices in the debug log:

PHP Notice:  Trying to get property 'post_type' of non-object in .\wp-content\plugins\estatik-pro_3.8.1\functions.php on line 386
PHP Stack trace:
PHP   1. {main}() .\index.php:0
PHP   2. require() .\index.php:17
PHP   3. require_once() .\wp-blog-header.php:19
PHP   4. include() .\wp-includes\template-loader.php:98
PHP   5. get_header() .\wp-content\themes\Divi\single.php:3
PHP   6. locate_template() .\wp-includes\general-template.php:41
PHP   7. load_template() .\wp-includes\template.php:671
PHP   8. require_once() .\wp-includes\template.php:722
PHP   9. wp_nav_menu() .\wp-content\themes\Divi\header.php:263
PHP  10. walk_nav_menu_tree() .\wp-includes\nav-menu-template.php:217
PHP  11. Walker_Nav_Menu->walk() .\wp-includes\nav-menu-template.php:583
PHP  12. Walker_Nav_Menu->display_element() .\wp-includes\class-wp-walker.php:244
PHP  13. Walker_Nav_Menu->display_element() .\wp-includes\class-wp-walker.php:156
PHP  14. Walker_Nav_Menu->start_el() .\wp-includes\class-wp-walker.php:144
PHP  15. apply_filters() .\wp-includes\class-walker-nav-menu.php:213
PHP  16. WP_Hook->apply_filters() .\wp-includes\plugin.php:206
PHP  17. es_the_title_filter() .\wp-includes\class-wp-hook.php:288
(If you want, I can post a stack trace with variable info.)

Diving into this problem I noticed that:
- The main nav menu does not only contain items that are a post, but also the language switcher flags (added by WPML)
- On line 213 of file wp-includes/class-walker-nav-menu.php, Walker_Nav_Menu->start_el() calls 
{{{
apply_filters( 'the_title', $item->title, $item->ID );
}}}
  for all items in the menu, be it posts or other items.
- Estatik-pro hooks into this filter and calls get_post() on the given ID which is not a post ID:
{{{#!php
<?php
function es_the_title_filter( $title, $id = null ) {
	global $es_settings;
	$post = get_post( $id );
	if ( is_single() && $post->post_type == Es_Property::get_post_type_name() ) {
		...
	}

	return $title;
}
add_filter( 'the_title', 'es_the_title_filter', 10, 2 );
}}}

Who is wrong?
- WPML: by adding non-posts to menu's.
- Estatik-pro for not checking that the filter is called for non-posts?
- Walker_Nav_Menu->start_el() for unconditionally calling the filter 'the_title' on all menu-items?

IMO:
- Menu-items can be other things than posts, and WPML shows that this is indeed possible.
- The filter 'the_title' seems to be explicitly for altering a post title, not titles of images, non-post menu-items, or whatever. So Estatik-pro should not have to check that the given ID is indeed from a post.
- Walker_Nav_Menu->start_el() calls its own filter 'nav_menu_item_title' directly after calling the 'the_title' filter (though still documenting $item as a WP_Post).

Based on the above, my conclusion is: Walker_Nav_Menu->start_el() should check if the item is a WP_Post before calling the 'the_title' filter.

If you agree, solving this should be easy, surround line 213 with 
{{{
if ( $item instanceof WP_Post ) { ... }
}}}
However, in a lot of places it is documented that a menu-item is a WP_Post and changing that may take considerably more work.
"	erwinbr
	56491	unregister_nav_menu() does not update theme mod 'nav_menu_locations'		Menus		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-09-01T22:48:44Z	2022-09-01T22:58:18Z	"When you register a menu location then attach a wp_nav menu to a that location it is added to array **''global'' $_wp_registered_nav_menus** and then another array stored in **get_theme_mod('''nav_menu_locations''')**.


{{{#!php
<?php
// wp-admin/nav-menus.php Line 65
set_theme_mod( 'nav_menu_locations', array_map( 'absint', $_REQUEST['menu-locations'] ) )
}}}

If you change the menu location name a few times and associate a wp_nav menu to the new location, **get_theme_mod('''nav_menu_locations''')** array will keep appending the new data and the older locations are still in this theme_mod array.


Currently **unregister_nav_menu()** only removes the attached menu ID from **''global'' $_wp_registered_nav_menus**.  It does not remove this menu location key=>value pair from the **get_theme_mod('''nav_menu_locations''')** array. 

Proposed Patch & update to unregister_nav_menu() in wp-admin/nav-menus.php on Line 109
{{{#!php
<?php
// wp-admin/nav-menus.php - Starting Line 109
/**
 * Unregisters a navigation menu location for a theme and updates theme mod 'nav_menu_locations'
 *
 * @since 6.1.1
 *
 * @global array $_wp_registered_nav_menus
 *
 * @param string $location The menu location identifier.
 * @return bool True on success, false on failure.
 */
function unregister_nav_menu($location)
{
	global $_wp_registered_nav_menus;
	if (is_array($_wp_registered_nav_menus) && isset($_wp_registered_nav_menus[$location])) {
		unset($_wp_registered_nav_menus[$location]);
		set_theme_mod('nav_menu_locations', $_wp_registered_nav_menus);
		if (empty($_wp_registered_nav_menus)) {
			_remove_theme_support('menus');
		}
	}
	$theme_locations = get_theme_mod('nav_menu_locations');
	if (is_array($theme_locations) && array_key_exists($location, $theme_locations)) {
		unset($theme_locations[$location]);
		set_theme_mod('nav_menu_locations', $theme_locations);
		return true;
	}
	return false;
}

}}}
"	studiolxv
	59744	walk_page_tree issue - cast array to object to fix		Menus		normal	normal	Awaiting Review	defect (bug)	new		2023-10-26T09:27:55Z	2023-10-26T16:44:27Z	"`( ! ) Warning: Attempt to read property ""before"" on array in ...\wp-includes\class-walker-nav-menu.php on line 273`

`$walker->walk` expects an object but
`walk_page_tree` passes an array.

https://github.com/WordPress/WordPress/pull/679"	lazardanlucian
	55841	wp_get_nav_menu_items doesn't work properly		Menus	6.0	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-05-26T09:45:23Z	2022-05-27T21:47:56Z	"Function ""wp_get_nav_menu_items"" doesn't work correctly, when you try to retrieve a list of terms for a specific menu using slug returns all pages available.
"	andreamarrano
	65884	wp_map_nav_menu_locations() reuses $slug for a nested loop, so some new theme locations are skipped		Menus	4.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-14T21:40:56Z	2026-08-14T21:49:43Z	"`wp_map_nav_menu_locations()` uses `$slug` for two nested loops. The outer one at
wp-includes/nav-menu.php:1276 iterates the slug group, and the loop at :1292, nested three
levels inside it, iterates the same group again with the same variable name.

PHP leaves a `foreach` variable at its last assigned value, so once any new location
descends into the old-location loops, `$slug` no longer holds the outer loop's value. The
test at :1282 then compares every later new location in that pass against the wrong slug:

{{{#!php
foreach ( $slug_group as $slug ) {                          // 1276
    foreach ( $registered_nav_menus as $new_location => $name ) {
        if ( ... stripos( $new_location, $slug ) ... )      // 1282, reads the outer $slug
        foreach ( $old_nav_menu_locations as $location => $menu_id ) {
            foreach ( $slug_group as $slug ) {              // 1292, overwrites it
}}}

The skipped location is only recovered if it happens to match a later slug in the same
group. When it matches exactly one slug, nothing picks it up and the assignment is lost.

Measured against trunk, new theme locations on the left, previous theme's assignments on
the right:

{{{
primary + primary-menu   old = header, mainmenu     1 of 2 mapped
primary + primary-nav    old = header, mainmenu     1 of 2 mapped
footer  + footer-menu    old = secondary, bottom    1 of 2 mapped
primary + main           old = navigation-menu, top-menu   2 of 2 mapped
header  + header-top     old = primary, top-menu    2 of 2 mapped
}}}

`primary + main` is the case `test_location_guessing_one_menu_per_location()` already
covers. It passes because `main` is itself a slug in the group and is picked up on a later
pass, which is why the existing tests do not catch this. `header-top` recovers the same way
via `top`. `primary-menu`, `primary-nav` and `footer-menu` match only one slug each, so they
are lost.

Reached on every theme switch through `_wp_menus_changed()`, hooked to `after_switch_theme`
in wp-includes/default-filters.php:376, and from
wp-includes/class-wp-customize-nav-menus.php:734.

Present since [41237] (#39692) in 4.9. The inner loop has carried the outer loop's variable
name from the first version.

Patch renames the inner variable and adds a regression test. The test fails without the
source change and is the only failure of the 106 in the `menu` group; `menu` and `customize`
are green with it."	bejignesh
	64312	Confusing & Unsafe Menu Behavior in WordPress Admin (Especially on Mobile)		Menus	6.8.3	normal	major	Awaiting Review	enhancement	new		2025-11-26T18:20:11Z	2025-11-26T19:25:07Z	"Dear WordPress Core Team,

I’m a long-time WordPress/WooCommerce admin (multiple sites, some with Storefront, some with other themes), and I’ve run into menu behavior that feels confusing and unsafe for normal, non-technical site owners.

In the Admin (Appearance → Menus), it looks like:
“This is your menu. Add/remove items here and that’s what visitors will see.”

But in reality, that’s not what happens:
- I can remove pages from a menu (or have no items at all),
- The menu appears empty in the Admin,
- Yet on the live site — especially on mobile — those pages still show up in the navigation.

In many cases, themes use separate desktop and mobile menu locations, and where no menu is configured, WordPress or the theme will automatically show a list of pages. From an admin’s perspective, this means:
“I didn’t add this page to any menu… but WordPress is still putting it in front of my visitors.”

This can expose pages that were supposed to be hidden or retired. It’s not just a UX annoyance; it’s a real trust and privacy risk.

From a WordPress admin’s point of view, here’s what would make this safe and predictable:
1. If I clear a menu or remove all its items, nothing should appear there for visitors. \\
  If a menu is assigned to a location and ends up empty, the output should be empty — not an automatic list of pages.
2. Clearly show desktop vs mobile menus in Admin. \\
  Make it obvious when a theme uses separate menu locations (e.g., “Desktop Header” vs “Mobile Header”) and which menu is assigned to each.
3. Warn me when WordPress will “invent” navigation I didn’t configure. \\
  If a location will show a page list when no menu is set, the Admin should clearly say so and ideally give me a simple switch to turn that behavior off — without needing custom code.

Right now, the Menus screen suggests a simple, WYSIWYG model, but the live behavior (especially on phones) doesn’t match. I’m asking that either:
- The actual behavior be brought in line with what the Admin UI suggests, or
- The Admin clearly explain when and where automatic/fallback navigation will appear, and give non-technical users an easy way to control it.

Thank you for considering this.
Sincerely,
Franz Mortensen"	franzmortensen
	59079	Draft Pages should not be shown in menus to those who can't see them (or possibly anyone)		Menus		normal	normal	Awaiting Review	enhancement	new		2023-08-11T19:36:37Z	2023-08-11T19:36:37Z	"Especially when the option to ""automatically add new pages"" to a menu is enabled, it's very easy to add Draft pages to a menu accidentally by publishing them and then reverting them to Draft status.

When this happens, the menu now contains a menu item that links to something like mysite.com/?p=123 that just 404's for most visitors (and might even accidentally expose a page title they didn't want shown yet).

I've spoken with more than a few users who made this mistake and had no idea that turning a Published Page back into Draft status would leave the menu item intact.

I believe that menu items that represent items in Draft status should not be displayed in the menu on the front-end.

I think someone could make the case they should appear to authenticated users who can edit the Page, but I don't believe they should be shown to anyone. I think them being present makes it very easy to confuse site owners on what the site looks like to a normal visitor, both in terms of the menu but also the page itself, as viewing a page in draft status has no clear indicator that they're viewing a page in draft status."	MadtownLems
	55773	FSE navigation menu - styling problem		Menus		normal	normal	Awaiting Review	enhancement	new		2022-05-18T12:21:49Z	2023-06-14T17:30:29Z	"WordPress 5.9.3 running Twenty Twenty-Two theme
also WordPress 6.0-RC3 running Twenty Twenty-Two theme
No plugins active

There seems to be a problem with the styling of the FSE navigation menu.

Looking at the WordPress website https://wordpress.org/ the navigation menu is styled (in blue) to show which page you are on and in the case of a nested menu item it shows both the the subpage and the ancestor menu item.

But this isn't working reliably on FSE.

With a similar menu I have found that the styling is absent in the following cases...

    the homepage which was the 'Front Page'
    with a nested menu of 2 subpages the styling was absent on the first subpage which was the 'Posts Page'
    with a nested menu and a subpage selected the styling is absent on the menu-ancestor
    
Styling is provided by ""current-menu-item"" Class in the li tag.

""aria-current='page'"" is also absent from the link when the styling isn't working.
    
Maybe someone can confirm this is a bug - thanks."	jim5471
	52924	Fix input annoyance when editing Menus in Safari		Menus		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-03-26T22:36:34Z	2021-03-26T23:42:01Z	"In Safari only when you edit a menu's e.g. Title Attribute and enter e.g. ""something autofill"" and save the menu and then change it to ""Something autofill"" and save again... then try to change it to e.g. ""something autofill"" Safari will autofill it with Something autofill for you, which is annoying.

See [https://aubrey.pw/d/2021/4UlG5p8iiKEn.gif] to see it in action. I think these fields should have autocomplete=""off"" by default."	aubreypwd
	46208	Improve Menu experience by making it easier to delete multiple menus at once	audrasjb	Menus	5.0.3	normal	normal	Future Release	enhancement	reviewing		2019-02-07T21:35:19Z	2019-05-03T22:03:30Z	"If possible, please make it easier to delete multiple menus with a one click button (same as the plugin interface).
For example add an extra tab next to ""Manage Locations"". 
- Right now, we've to select a menu (to edit) then remove it. If you have like 10 menus... then this task simply takes too much time.


The menus are saved all over different tables wp_terms, wp_posts, etc. inside the database. Wouldn't it be better to simple create a seperate db table for menus instead and have all data placed in there (with object cache)?


Mireille"	mireillesan
	40024	Include CPT archives in the menu cutomizer		Menus		normal	normal	Future Release	enhancement	new		2017-03-03T15:35:25Z	2019-11-07T16:57:39Z	"If we create a new Custom Post Type and go to the menu customizer, we can insert links to particular posts of that type.

What we can't easily do is insert a link to the Custom Post Type archive page.

Example: we create a Movies CPT. We want to add a link to the list (archive) of all Movies to the menu. We can't do that unless we use the custom URL field (and the URL is not provided anywhere in the admin panel, only in the CPT registering code itself).

Enhancement needed: add a section which lets you link to archive pages for CPTs.

Suggested name for the box: ""Content archives"" or ""Custom content archives""."	eclare
	63010	"Make ""Create a New Menu"" a Clear CTA link"		Menus		normal	normal	Future Release	enhancement	new	has-patch	2025-02-24T13:14:42Z	2025-07-22T15:23:33Z	"Hello WordPress Core Team,

I’d like to propose a small but impactful UI enhancement for the Menus section in WordPress. Currently, the ""create a new menu"" link appears as plain text within a line, making it easy to overlook—especially for new users.

**Issue:**
Many users, particularly beginners, find it difficult to locate the option to create a new menu because it blends into the surrounding text. This leads to confusion and unnecessary friction in setting up navigation menus.

**Proposed Enhancement:**
Instead of a simple text link, make ""Create a New Menu"" a clearly visible button (styled similarly to other call-to-action buttons in WordPress). This will significantly improve visibility and usability, ensuring a smoother experience for all users.

**Benefits:**

**Improved UX:** New users will quickly find the option to create a menu without confusion.

**Consistency:** WordPress follows a UI standard of using buttons for key actions, and this would align with that pattern.

**Accessibility:** A distinct button enhances accessibility and usability across different devices and user levels.

I’d love to hear thoughts from the team on this. Would this be a feasible UI update in a future release?

Thanks for your time and consideration!

Best regards,
Waleed Afzal"	waleed06
	58857	Menu class should be in BODY tag		Menus	6.2.2	normal	normal	Awaiting Review	enhancement	new		2023-07-20T03:57:48Z	2023-07-26T17:29:55Z	"Currently, if you assign a class to a menu item, the class is only usable to the menu link alone.  It would be 'very' beneficial to have the class in the BODY tag.  If you want to keep them separate, you could preface the class with 'body-'.

So I have a menu link for 'Sponsors' and I assign the class 'g-sponsor' to the menu link.

Right now, it would show similar to this:

<li class=""g-menu-item g-menu-item-648 g-menu-item-type-taxonomy g-sponsors"">
<a class=""g-menu-item-container"" href=""https://ochs.band/category/donations/sponsors/"">
<span class=""g-menu-item-content"">
<span class=""g-menu-item-title"">Sponsors</span>
</span>
</a>
</li>

It would be great to have it added to the body class like this:

<body class=""gantry g-offcanvas-left g-home g-sponsors g-style- home page-template-default page page-id-13 logged-in site outline-home dir-ltr"">

This the class can be use for 'any' element on the page instead of just the menu link.

FYI, I have a lot of experience in Joomla and they have had this functionality since the beginning.  Now that I am migrating all Joomla websites to WordPress, I no longer have this functionality.

It should be a core function of the menu class.

Just a suggestion.

Luke Douglas
Webbering.com"	LukeDouglas
	41583	Menus Administration screen, menu items are always loaded even when not needed		Menus	4.8.1	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-08-07T22:04:44Z	2024-05-28T20:00:17Z	On the Menus Administration screen menu items are always loaded. For performance, menu items should only be loaded when editing an existing menu and not on the locations tabs or when adding a new menu item. I've attached a patch that fixes this.	webgeekconsulting
	47983	Menus: Only send non-empty values on menu save on nav-menus.php		Menus		normal	normal	Awaiting Review	enhancement	new		2019-09-05T22:17:02Z	2019-09-06T15:04:17Z	"In an effort to do some admin navigation menu customization (adding additional metaboxes/properties to individual menu items), I noticed that all menu properties (even ones that may be hidden due to ""Screen Options"") are being submitted to the server. And it actually began to cause the following PHP warning:

{{{
[05-Sep-2019 21:48:58 UTC] PHP Warning:  Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0
}}}

Would it be better to make sure only menu properties that have been explicitly set are submitted to the server and saved to the database?


~~When building a nav-menu and utilizing custom links the entered value isn't trimmed.
Once you click 'Add to Menu':
If you have whitespace at the start: no url added to the custom link in the menu item
If you have whitespace at the end: %20 is added to the custom linkprevent PHP warning max_input_vars~~"	metalandcoffee
	43176	Nav Menu Search - add filters for query args		Menus		normal	normal	Awaiting Review	enhancement	new		2018-01-29T16:01:00Z	2019-01-16T06:50:09Z	"On sites that have lots of content with similar names, it can be almost impossible to find the correct page using the search tab. One way to fix this is described in #38224 (changing the number of posts returned, or providing a filter so developers can change it).

Another option would be to check if the search query is_numeric(), and if so, search for a page with that ID. This could either be implemented in core directly, or appropriate filters could be provided so a plugin could implement this functionality."	billerickson
	48133	Please add filter on wp walker li  element		Menus		normal	normal	Awaiting Review	enhancement	new		2019-09-25T11:12:48Z	2019-10-01T22:26:44Z	"Can you please add a filter in the menu li elements so we can add structured data to the li element?

http://schema.org/SiteNavigationElement"	BackuPs
	66608	Tests: Add unit tests for the setup of the Menus screen in nav-menu.php		Menus		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T11:27:55Z	2026-11-07T18:25:48Z	"The functions that set up the Menus screen (`nav-menus.php`) in `src/wp-admin/includes/nav-menu.php` have no tests.

This ticket adds tests that cover:

* `wp_nav_menu_setup()`: the meta boxes it registers, the advanced columns filter, and the advanced properties that are hidden the first time;
* `wp_nav_menu_post_type_meta_boxes()` and `wp_nav_menu_taxonomy_meta_boxes()`: a meta box for each post type and taxonomy that is shown in menus (and the priority of pages), and the `nav_menu_meta_box_object` filter;
* `_wp_nav_menu_meta_box_object()`: the default query of pages, posts, categories and other post types;
* `wp_initial_nav_menu_meta_boxes()`: the meta boxes that are hidden the first time;
* `wp_nav_menu_disabled_check()` and `wp_nav_menu_manage_columns()`."	hmbashar
	39862	Track the number of children for a walker element scope		Menus	4.7.2	normal	normal	Awaiting Review	enhancement	reopened	has-patch	2017-02-13T17:06:24Z	2017-08-02T20:24:05Z	"Unless this had been deliberately omitted for performance reasons?

A minor change to the {{{Walker}}} class would provide the total number of children {{{$this->total_children}}} for the current element scope from within the {{{display_element()}}} function.

Currently a custom walker must be used and include an extension of display_element() for each {{{X_Walker}}} class where this information is needed.

Patch attached.

This change; for example could provide information to display the number of replies to a comment in an extended template of {{{Comment_Walker::comment()}}}"	AlexGW
	40872	Add $item argument to start_lvl (nav menu walker)		Menus	4.7.5	normal	normal	Awaiting Review	feature request	new	close	2017-05-26T20:08:47Z	2025-09-29T16:37:20Z	"Would it be possible to add the $item argument inside the start_lvl function?

Other than the usual dropdown menu, I'd also like to build megamenus and to make that possible, I need to use different ul tags (along with some JavaScript components). These custom ul tags will be different based on the parent li ((array) $item->classes) and $depth. 



"	mireillesan
	44803	Add a page to a menu by its ID or slug		Menus	4.9.8	normal	normal	Awaiting Review	feature request	new	has-patch	2018-08-15T15:07:48Z	2026-10-11T14:23:17Z	"I'm ""porting"" a college's website from Joomla to WordPress.

Said website has +2000 pages, which span from ~2013 onwards. It's the biggest mess you can imagine. There are many repeated pages, repeated categories, empty categories and so on.

Building the main menu for this website has been a pain in the ass, too, because the ""adding pages to a menu"" in WordPress is meant for small websites:

For example, I was trying to add a page named ""Evaluación docente"". There are several pages called exactly the same, but typing ""Evaluación docente"", or ""Evaluacion docente"" (without accents), ""evaluacion docente"" or even """"Evaluación docente"""" (with the quotes, hoping them would help to do a exact match search) returned other pages that weren't the one I was looking for - nor even the other ""Evaluación docente"" pages! Seems like a very fuzzy search. Sometimes you're lucky and you get the page you're looking for, but sometimes you don't.

So I think it would be wonderful if there were some sort of way to add a page to a menu by typing its id or its slug."	milerm
	57453	Newly created sub-site in multisite not appearing immediately in My Sites list		Networks and Sites	6.1.1	normal	normal	Future Release	defect (bug)	new		2023-01-12T13:53:20Z	2025-06-03T15:16:21Z	"Hello:

**Issue**
When, as a super-admin, a sub-site is created while in a multisite environment, the newly created sub-site does not appear immediately in the toolbar's site list dropdown.

**Expected Behavior**
The expected result of adding a new sub-site is that while logged in as a super-admin, the super-admin would immediately see all sub-sites on the multisite.

**Findings**
New sub-sites will not appear to even a super-admin until the super-admin is manually added to the new site as a user.

**Question-Request**
Should WordPress require a super-admin to manually add themselves to a sub-site to include that sub-site in the super-admin's toolbar list of sites dropdown?
"	richardkrone
	58983	Old error message from 5.1 reappeared in 6.2.2		Networks and Sites	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-08-04T16:33:41Z	2023-08-08T16:29:04Z	"The following error message appears in multisite installations after upgrade to 6.2.2
Performing the network upgrade doesnt seem to get rid of the message

`Notice: Function wp_check_site_meta_support_prefilter was called incorrectly. The wp_blogmeta table is not installed. Please run the network database upgrade. Please see Debugging in WordPress for more information. (This message was added in version 5.1.0.) in .../wp-includes/functions.php on line 5865`

The table itself doesnt seem to exist in the database nor is it being created.  Its no affecting any multi site functionality though.

The hosting is Wp-Engine if that matters."	namith.jawahar
	57233	Send password reset action link not working on multisite		Networks and Sites	6.1.1	normal	normal	Future Release	defect (bug)	new	has-patch	2022-11-30T08:08:46Z	2026-08-10T14:40:06Z	"In a multisite installation while the quick action link ""Send password reset"" shows up when accessing users list (wp-admin/network/site-users.php), it doesn't send the email neither any admin notice appear when clicked. It simply redirects to the main multisite users screen (wp-admin/network/users.php)."	christopherplus
	47083	"Site Info Update Not Adjusting ""Last Updated"" Value"		Networks and Sites	5.1.1	normal	normal	Awaiting Review	defect (bug)	new		2019-04-30T14:30:27Z	2025-06-03T15:16:23Z	"
 + Navigate to `/wp-admin/network/site-info.php?id=XXX` where XXX is a valid Site ID.
 + Checkmark: Spam
 + Click: Save Changes

Expected: ""Last Updated"" changed to current time.
Actual: ""Last Updated"" not changed.

---

This is in contrast to `/wp-admin/network/sites.php` -> Bulk action -> Mark as Spam. 
Doing it bulk updates the Last Updated field to current time.

---

In fact, behaviour is broken since 5.1.0


`update_blog_details` function used to do:

{{{
	$details = array_merge($current_details, $details);
	$details['last_updated'] = current_time('mysql', true);
}}}
https://github.com/WordPress/wordpress-develop/blob/5.0/src/wp-includes/ms-blogs.php#L297

---

This is a problem because we use ""Last Updated"" field to purge spam. It gives users X days from the ""Last Updated"" value to dispute the spam. 

"	conner_bw
	19724	Sites with IDN domains can't be created (bug #15554 continuation)		Networks and Sites	3.3	normal	normal	Future Release	defect (bug)	new		2012-01-03T17:44:08Z	2026-11-06T18:18:50Z	"registration of new site with idn domain by unknown/new users themselves is not possible.
(though creation of new site in wp-admin/network/site-new.php page is possible, by patch given in bug #15554 , i have just now tested it.)

also let i mention that site domain is written (and would be requested to enter, if would be fixed without punycode to unicode conversion) in punicode form in wp-signup.php page, that is not acceptable for wordpress.

i have attached differences i made to wp 3.0.4 to make idn domains working and also to show and accept them in human readable format in wp-signup.php page . link to the differences file i attached to/in previous bug report on/to this topic: http://core.trac.wordpress.org/attachment/ticket/15554/diff304-blogo.txt ."	qdinar
	66477	"Upgrade Network: ""All done!"" is shown when a subsite's upgrade request returns an HTTP error status"		Networks and Sites	trunk	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-11-04T16:14:43Z	2026-11-06T19:48:20Z	"Network Admin > Updates > Upgrade Network (`wp-admin/network/upgrade.php`) requests `wp-admin/upgrade.php?step=upgrade_db` on each site in the network (main site included), five per page, highest ID first, with `wp_remote_get()`. The only check on the result is `is_wp_error( $response )`. A response with status 404, 403 or 500 isn't a `WP_Error`, so the loop fires `after_mu_upgrade` and `wpmu_upgrade_site` for that site, moves on, and ends with ""All done!"". The subsite stays on the old database version.

Related, not the same: #26056 (loopback blocked, which does reach the `WP_Error` branch and stops with a warning), #56236 (a site that doesn't resolve) and #37799 (progress indicator).

== Steps to reproduce ==

 1. Use a subdirectory multisite network with at least one subsite, upgraded to a newer WordPress version so Network Admin shows ""Database Update Required"".
 1. Make the per-site request return an error status, for example with a must-use plugin:
{{{
add_filter( 'pre_http_request', function ( $pre, $args, $url ) {
	if ( str_contains( $url, 'upgrade.php?step=upgrade_db' ) ) {
		return array(
			'headers'  => array(),
			'body'     => '',
			'response' => array( 'code' => 500, 'message' => 'Internal Server Error' ),
			'cookies'  => array(),
			'filename' => null,
		);
	}
	return $pre;
}, 10, 3 );
}}}
 1. Click ""Upgrade Network"".

== Actual ==

The first page lists every site with no warning, then redirects to `upgrade.php?action=upgrade&n=5`, which shows only ""All done!"". Each subsite's `db_version` option is unchanged. (The main site was already updated earlier by `admin.php`'s own loopback to `upgrade.php?step=1`, so only subsites are left behind.)

I first saw this on a local test network where the subsite admin path returned a 404 page (the local server didn't route `/subsite/wp-admin/`). On a real server the same would happen when a subsite upgrade request ends in a 500 (for example a plugin fatal during the upgrade) or a 403 from a firewall rule. Tested with a `pre_http_request` filter returning 500, 404 and 403, and with a real 404 from Apache: same result each time.

== Expected ==

A non-2xx response (checked with `wp_remote_retrieve_response_code()`) is reported for that site the same way a `WP_Error` is, or the site is listed as not upgraded, so the admin knows to visit that subsite's `wp-admin/upgrade.php`.

Environment: 7.2-beta4, PHP 8.5, local multisite (subdirectory), SQLite; also reproduced on MariaDB 10.11 with Apache (Docker). `wp-admin/network/upgrade.php` is byte-identical in 7.1.4 and 7.2-beta4, so this is not new in 7.2.

AI assistance: Yes. Tool: Claude Code. Used for: running the network upgrade, reading the source and drafting this report. I reviewed the results."	courane01
	64006	Usermeta not stored for super-admin		Networks and Sites		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-09-19T09:41:32Z	2026-08-10T14:31:59Z	"On a multisite context, a super-admin has access to all websites of the multisite but the user is not added as a user of the website.

As a result, in a block editor context, if we update a user_meta for a super admin, the route http://localhost:8888/sub-site/wp-json/wp/v2/users/me is returning a 404 error.

In Polylang Pro, we're updating a usermeta according to settings on a post edit page. This setting is not stored in the super-admin usermeta.

The workaround we have found is to manually add the super-admin as an existing user on the subsite to make the route available.

We think, a super-admin should be automatically added as Administrator on each website of the network."	sebastienserre
	59556	WordPress Multisite issue - Media files presenting on Google with wrong domain		Networks and Sites	6.3.1	normal	normal	Awaiting Review	defect (bug)	new		2023-10-06T07:32:22Z	2023-10-09T07:52:26Z	"Hi WordPress Team,

I have a WordPress Multisite set up with 6 sites. Each site has its own domain name.

I discovered on a google search, that an uploaded media file is incorrectly referenced and basically ""shared"" between domains. 

I have google showing a link to a file on site ''#''17, but it is referencing the domain  name for site ''#''20.

Google shows:
{{{
https://site20domain/wp-content/uploads/sites/17/filename.pdf
}}}

But it should be showing:
{{{
https://site17domain/wp-content/uploads/sites/17/filename.pdf
}}}

See also attached screenshots.

Thanks

Kind regards,

Regine
"	nutsonshells
	56909	pre_recurse_dirsize filter cannot be used to fill up dirsize_cache and thus breaks performance		Networks and Sites	5.6	normal	normal	Future Release	defect (bug)	new	dev-feedback	2022-10-26T06:09:29Z	2026-08-10T10:29:29Z	"In 5.6.0 a new filter was introduced to the dirsize calculation `pre_recurse_dirsize`. After that filter was introduced the dirsize cache was modified to store each folders size separately for a massive performance increase ( part of https://core.trac.wordpress.org/ticket/19879 ).

https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/functions.php#L8287

This second change lead to a state where the `pre_recurse_dirsize` filter is kind of useless. One cannot access or modify the dirsize cache within the filter as the `$dirsize_cache` variable is passed by reference to the recursive calls of `recurse_dirsize()`. 

https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/functions.php#L8300

Thus using the `pre_recurse_dirsize` filter renders it impossible to use the new, much more efficient dirsize cache based on single folders. I can only fill up the total for the top level folder.

If `pre_recurse_dirsize` is used the code would skip these recursive calls to `recurse_dirsize()`. And thus the reference passing of the `$dirsize_cache` and filling it with the subfolder sizes.

One would consider that the filter code could set the `$dirsize_cache` or the transient value on its own. This doesn't work as well, as the original code works on an in memory version of the `$dirsize_cache` and will overwrite any changes done within the filter at the end of its code.

https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/functions.php#L8323-L8328

This state leads to the bad situation that using the `pre_recurse_dirsize` filter will always lead to worse performance. Although the idea behind introducing it was to open up for performance improvements.

I am currently unsure how to fix this in a smart way and am open for any thoughts and suggestions.

(Maybe bad) Ideas I had:
- Pass the `$dirsize_cache` by the reference to the filter (technically impossible as far as I know)
- Add another filter to disable the dirsize cache saving in `recurse_dirsize` to handle everything on our own (would allow full backward compat)
- Move the `pre_recurse_dirsize` to another position (don't really know where...)
- Make `recurse_dirsize` a pluggable function to replace it completely


Thanks a lot!

"	janthiel
	65760	wp_delete_site() does not enforce the main-site protection that wpmu_delete_blog() does		Networks and Sites	5.1	low	normal	Future Release	defect (bug)	new	has-patch	2026-07-29T22:22:49Z	2026-07-30T02:12:16Z	"wp_delete_site() validates only that the site ID is non-empty and that the site exists. It then fires the wp_validate_site_deletion filter and proceeds. Core registers no callback on that filter, so a direct call to wp_delete_site( 1 ) uninitializes and removes a network's main site.

The main-site protection lives only in wpmu_delete_blog() in wp-admin/includes/ms.php, which blocks deletion for site ID 1, the main site, and the network domain/path root. Network Admin routes through that wrapper, so the admin UI is safe, and no default core caller bypasses it.

== Steps to reproduce ==

On a disposable multisite network:

{{{
site1_exists = yes   main = yes   total_sites = 10
has_filter( 'wp_validate_site_deletion' ) = false

wp_delete_site( 1 )  ->  returns WP_Site, not a WP_Error

network root  ->  HTTP 500
}}}

The main site's tables are dropped and its row is removed from wp_blogs, so the network no longer resolves.

== Why this is worth considering ==

This is not remotely reachable and is not a security issue. PHP has to already be executing inside WordPress, and on multisite that generally means Super Admin territory. It is an API footgun rather than a vulnerability.

The reason it seems worth raising is the direction of travel: wp_delete_site() is the modern API introduced in #41333, and it is the function plugin authors, migration scripts, and custom CLI tooling are pointed toward, while the safety check sits in the older wrapper. Someone reasonably calling the newer function directly gets no protection against destroying the primary site, and the failure is unrecoverable without a backup.

== Possible directions ==

Any of these would address it:

* Enforce the invariant inside wp_delete_site() itself, returning a WP_Error for the main site.
* Register a default callback on wp_validate_site_deletion that adds the error.
* Document the constraint prominently in the wp_delete_site() docblock, making clear that the guard is the caller's responsibility.

The first two would be behavior changes for anyone currently relying on the unguarded call, so documentation alone may be the safer option.

Related: #41333 introduced wp_initialize_site() and wp_uninitialize_site(). #48442 covers orphaned user options on site deletion.

Tested on 7.1-beta4, PHP 7.4, subdirectory multisite. The test network was rebuilt afterwards."	courane01
	51779	wpdb->get_blog_prefix() doesn't allow wp_1_tablename structures		Networks and Sites		normal	normal	Awaiting Review	defect (bug)	new		2020-11-15T15:42:46Z	2023-06-08T18:32:59Z	"Context: We have some OLD networks (10+ years, started as WPMU, etc)

In the process of dropping our Domain Mapping plugin for WordPress's native support, I encountered the following problem.  Some (probably very few) old networks have the root site's tables as wp_1_options (instead of wp_options).


{{{
if ( defined( 'MULTISITE' ) && ( 0 === $blog_id || 1 === $blog_id ) ) {
     return $this->base_prefix;
}
}}}


This logic explicitly prevents wp_1_options and friends as being queried, with requests to the root/base site going to wp_options (which doesn't exist).

Perhaps there could be some kind of sanity check that checks for the existence of tables with the prefix in this kind of situation?"	MadtownLems
	65521	wpmu_signup_blog_notification() hardcodes http:// in activation email URLs		Networks and Sites	7.1	normal	normal	Future Release	defect (bug)	new	has-patch	2026-06-23T13:49:09Z	2026-08-10T14:30:55Z	"## Environment

- WordPress: trunk (latest development version)
- Install type: Multisite, subdomain registration enabled
- HTTPS enabled (SSL termination or `FORCE_SSL_ADMIN`)

## Steps to reproduce

1. Set up a multisite network with **subdomain install** (`SUBDOMAIN_INSTALL` true).
2. Enable site registration so new users can sign up for a site.
3. Run the network over **HTTPS**.
4. Register a new site via the signup flow.
5. Check the activation email sent by `wpmu_signup_blog_notification()`.

## Expected result

Activation email links should use `https://`, e.g.:

`https://newsite.example.com/wp-activate.php?key=...`

## Actual result

Activation email links use hardcoded `http://`, e.g.:

`http://newsite.example.com/wp-activate.php?key=...`

## Notes

- Plugins/themes: N/A — bug is in core (`src/wp-includes/ms-functions.php`).
- The affected code path runs when `is_subdomain_install() && get_current_network_id() === 1`.
- The parallel function `wpmu_signup_user_notification()` already uses `site_url()`, which respects HTTPS.
- Three hardcoded `http://` strings exist in `wpmu_signup_blog_notification()` (activation URL, email body site URL, subject site URL).
- There is an existing `@todo Use *_url() API.` comment on the activation URL line.

## Proposed fix

Replace hardcoded `http://` with `set_url_scheme()`, matching the pattern used in `network_site_url()`.

## Test plan

Add PHPUnit coverage in `tests/phpunit/tests/multisite/wpmuSignupBlogNotification.php` for:

- Filter bypass (`wpmu_signup_blog_notification` returns false)
- Email is sent with activation key in body
- HTTPS scheme used when SSL is on (subdomain install)"	yaghoot
	43130	Add New Site: admin autocomplete search all users		Networks and Sites	4.9.2	normal	normal	Awaiting Review	enhancement	new		2018-01-19T09:01:27Z	2021-04-06T17:02:11Z	"When adding a new site on multisite WordPress, the ""Admin Email"" field's autocomplete will find only users attached to the first ""site"". If the user is in WordPress network user list but not in first site, it'll not be found."	julienlusson
	40821	Add filter to `wpmu_delete_blog()` to overwrite ability to drop tables		Networks and Sites	4.8	normal	normal	Future Release	enhancement	new		2017-05-19T16:53:57Z	2017-05-19T20:45:23Z	"The function `wpmu_delete_blog( $blog_id, $drop = false )`  includes a flag to add the ability to drop tables.  There are some cases where we may want to prevent accidental deletion of tables, even when that flag is set to true.

Adding a filter like: `$drop = apply_filters( 'wpmu_allow_drop_tables', $drop );` will allow manual overwriting of the passed value.

"	mermel
	58296	CSS coding standards issue in 'wp-activate.php'		Networks and Sites		normal	normal	Awaiting Review	enhancement	new	has-patch	2023-05-11T09:31:19Z	2023-05-11T12:24:52Z	"File path: src/wp-activate.php
Here [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/css CSS Coding Standards] don't follow in Line 110.
"	monzuralam
	53338	Determine when there is an error submitting the wp-signup.php form		Networks and Sites		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-06-05T15:07:19Z	2026-11-02T10:09:29Z	"For both the wp-signup.php user and blog forms there doesn't seem to be a way to determine if an error occurred in the form submission aside from error text being displayed above the form.

If a body class of something like `error` is added or something like `error=true` is appended to the query string then developers will be able to perform actions or style the page easier."	henry.wright
	52188	Move Multisite settings page into tabs		Networks and Sites		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2020-12-29T17:27:55Z	2022-02-26T10:25:17Z	"Hello all,

In a multisite, the network settings page (/wp-admin/network/settings.php) is quiet long as we can see in wp-ms-network-settings.png and may be difficult to find a setting. 

My idea should be to split each section into tabs.
"	sebastienserre
	47700	My Sites text is confusing		Networks and Sites	5.3	normal	normal	Awaiting Review	enhancement	new		2019-07-14T17:12:00Z	2019-07-19T00:51:30Z	"To me the ""My Sites"" wording indicates I own the lists of sites shown. This isn't the case. I just need to be able to ""read"" a site for it to be shown in the ""My Sites"" list"	henry.wright
	39334	Network administrators should be able to enable themes on the site level		Networks and Sites		normal	normal	Awaiting Review	enhancement	new	has-patch	2016-12-19T18:42:12Z	2026-02-04T06:28:38Z	"At the WordCamp USA, a suggested idea about themes in a multisite context was to allow network administrators (that have manage_network_themes cap) to network enable themes on the site level.

So I have made a patch to handle this. You can now activate a theme on a site on two actions (first network activate, then activate for the site) on the same page. Maybe it could be better to handle this in just one action, and just network activate the theme if it's not yet activated before site activation."	Mista-Flo
	59981	PHPUnit tests for is_main_network		Networks and Sites		normal	normal	Awaiting Review	enhancement	new	has-patch	2023-11-28T23:34:10Z	2025-02-12T15:53:21Z		pbearne
	47735	Separate sites I have created and sites I have joined in a network install		Networks and Sites		normal	normal	Awaiting Review	enhancement	new		2019-07-18T21:31:53Z	2019-07-19T00:51:13Z	"In a network install there doesn't seem to be a way to separate ""My Sites"". For example, ""My Sites"" in wp-admin/my-sites.php includes both sites I have created and sites I have joined. As a user I would like to see the sites I have created and manage in a different area to the sites I have joined.
"	henry.wright
	48192	get_blogs_of_user not setting public parameter		Networks and Sites		normal	normal	Awaiting Review	enhancement	new	has-patch	2019-10-01T13:04:23Z	2019-10-06T07:01:27Z	"Hello.

For multisite installations get_blogs_of_user uses get_sites to retrieve all multisite instances. This contains parameters such as archived, deleted, etc, and also the public parameter.

The get_blogs_of_user function iterates through the results of get_sites and sets the blogs array of blog objects. It matches and sets all parameters from get_sites, but omits the 'public' parameter, probably by oversight.

For example a blog from get_blogs_of_user:
{{{
 stdClass Object (
    [userblog_id] => 2
    [blogname] => Site 2
    [domain] => example.com
    [path] => /de/
    [site_id] => 1
    [siteurl] => http://example.com/de
    [archived] => 0
    [mature] => 0
    [spam] => 0
    [deleted] => 0
    [blog_id] => 2
    [description] => 2
    [language] => de_DE
) 
}}}
No way apart from using the 'get_blogs_of_user' filter to reiterate the sites and set the value.

Requires the public parameter to be set."	tifosi
	31573	wp_admin_bar_my_sites_menu should check for super admin capabilities		Networks and Sites	4.1.1	normal	normal	Future Release	enhancement	new		2015-03-09T15:36:35Z	2017-02-02T15:29:57Z	"Currently the ""Network Admin"" segment of the admin bar is only added for super admins. This could be done in a more granular way by using the corresponding super admin capabilities.

I am currently adding this myself with code similar to this:

{{{
if ( current_user_can( 'manage_network_users' ) ) {
    $groups[] = array(
	'parent' => 'network-admin',
	'id'     => 'network-admin-u',
	'title'  => __( 'Users' ),
	'href'   => network_admin_url( 'users.php' ),
    );
}
}}}

To make this useful the suggestions in #16860 would also have to be implemented. 

With BuddyPress now also using more granular checks for super admin capabilities this would allow for a much more refined access control to the network admin area. In my case I need the possibility to allow individual users the activate and edit user accounts, but have no access to other areas of the network admin in a multisite installation. 





"	thomaslhotta
	49564	Allow developers to set mail headers in wpmu_welcome_user_notification function		Networks and Sites		normal	minor	Awaiting Review	feature request	new	has-patch	2020-03-02T18:12:15Z	2026-08-05T03:22:51Z	"Hi,

with multisite, when using {{{update_welcome_user_email}}} hook to change the email content it's not possible to send the email in HTML format because the header is hardcoded, see line 1700 in ms-functions.php https://core.trac.wordpress.org/browser/tags/5.3/src/wp-includes/ms-functions.php#L1700

Maybe we can change the following:

{{{
 $message_headers = ""From: \""{$from_name}\"" <{$admin_email}>\n"" . 'Content-Type: text/plain; charset=""' . get_option( 'blog_charset' ) . ""\""\n"";
}}}

to 

{{{
$message_headers[] = ""From: \""{$from_name}\"" <{$admin_email}>\n"";
$message_headers[] = 'Content-Type: text/plain; charset=""' . get_option( 'blog_charset' ) . ""\""\n"";
$message_headers = apply_filters( 'update_welcome_user_headers', $message_headers );
}}}

which will allow developers to filter headers with {{{update_welcome_user_headers}}}

Let me know what you think about it.

Warm regards,
Ion"	ionvv
	54080	Dashboard > My Sites could use a list table for displaying the list of sites		Networks and Sites	3.0	normal	normal	Awaiting Review	feature request	new	dev-feedback	2021-09-07T07:59:55Z	2021-09-08T09:13:36Z	"Dashboard > My Sites uses an unfamiliar display when listing a user's sites if compared with the rest of the pages in the administration area such as Posts > All Posts.

For consistency, could My Sites make use of a [https://developer.wordpress.org/reference/classes/wp_list_table/ list table]?"	henry.wright
	52651	$option_group argument in settings_fields() function is misdescribed		Options, Meta APIs	2.7	normal	normal	Awaiting Review	defect (bug)	new		2021-02-25T10:59:49Z	2021-02-28T10:52:51Z	"The settings_fields() function in plugin.php takes a single argument described as $option_group. However this argument is then used to populate the 'option_page' hidden element.

The docBlock param description says ""This should match the group name used in register_setting()"" but if you follow this advice, your option group will not be included in $allowed_settings and you will get an error.


{{{#!php
/**
 * Output nonce, action, and option_page fields for a settings page.
 *
 * @since 2.7.0
 *
 * @param string $option_group A settings group name. This should match the group name
 *                             used in register_setting().
 */
function settings_fields( $option_group ) {
	echo ""<input type='hidden' name='option_page' value='"" . esc_attr( $option_group ) . ""' />"";
	echo '<input type=""hidden"" name=""action"" value=""update"" />';
	wp_nonce_field( ""$option_group-options"" );
}

}}}

It seems a common fix for this on the internet is to pass the 'option_page' value instead.

https://wordpress.stackexchange.com/questions/376785/wordpress-error-options-page-setting-not-found-in-the-allowed-options-list

if the argument name could be changed to $option_group and the docBlock updated accordingly, that would correct the issue without breaking existing implementations

{{{#!php
<?php
/**
 * Output nonce, action, and option_page fields for a settings page.
 *
 * @since 2.7.0
 *
 * @param string $option_page The slug-name of the settings page on which the section is shown.
 */
function settings_fields( $option_page ) {
	echo ""<input type='hidden' name='option_page' value='"" . esc_attr( $option_page ) . ""' />"";
	echo '<input type=""hidden"" name=""action"" value=""update"" />';
	wp_nonce_field( ""$option_page-options"" );
}
}}}

"	pe01b6
	56752	Add get_post_metadata filters by $meta_key		Options, Meta APIs		normal	normal	Awaiting Review	defect (bug)	new		2022-10-06T23:18:56Z	2022-10-12T18:24:06Z	"`get_metadata_raw()` applies `get_{$meta_type}_metadata` filters, which means that when trying to filter a single meta key, this function will be executed for EVERY meta key and require a condition that checks for the correct meta key to filter.

It would be a great idea to have `get_{$meta_key}_metadata` filters. Since `$meta_key` is some generic string, though, it cannot be used directly, and must be adapted first to suit a PHP function name by replacing any non-alphanumeric character with an underscore."	galbaras
	37635	BUG in get_option		Options, Meta APIs		normal	normal	Awaiting Review	defect (bug)	new		2016-08-11T08:11:58Z	2020-12-17T23:11:48Z	"in wp_options, i had saved this large serialized string:

http://pastebin.com/raw/hxwETuHX

however, when i run `get_option(""option_name"")` it returns false...
i have spent time and found out, that it's because that get_option tries to unserialize it and return the result, but it have problems while unserializing.

then i decided to manually grab the value and unserialize by hand.. and i succeeded!

{{{#!php

$raw_data=$wpdb->get_var(""Select option_value from wp_options Where option_name='option_name'"");

unserialize(Serialized_Fixer($raw_data));


function Serialized_Fixer($serialized_string){
    // securities
    if ( !preg_match('/^[aOs]:/', $serialized_string) ) return $serialized_string;
    if ( @unserialize($serialized_string) !== false ) return $serialized_string;
	
	return
	preg_replace_callback(
		'/s\:(\d+)\:\""(.*?)\"";/s', 
		function ($matches){	return 's:'.strlen($matches[2]).':""'.$matches[2].'"";';	},
		$serialized_string )
	;
}
}}}


and that worked!
this is seriously a bug of WP!
please fix it! thanks!"	tazotodua
	63594	Bug/Broken State possible in Multisite Caching Code: update_network_option		Options, Meta APIs	6.8	normal	normal	Awaiting Review	defect (bug)	new		2025-06-18T15:04:39Z	2025-06-18T15:04:39Z	"I ran into an issue at one point with the caching code and how the ""when to refresh from database"" logic is handled.

Here is how to reproduce:
1. Have WordPress running with a Cache backend of your choice
2. Create/Update a network option via update_network_option() or add_network_option()
3. Now, delete the network option directly from the database

It is now impossible to update the network option, via update_network_option() ... until the cache is also cleared because of how the login runs in the method.   Basically the following happens:

First, it attempts to get the option:
{{{#!php
	$old_value = get_network_option( $network_id, $option );
}}}

And it will only 'add' the option, if it didn't exist already:
{{{#!php
	if ( $value === $old_value || maybe_serialize( $value ) === maybe_serialize( $old_value ) ) {
		return false;
	}

	if ( false === $old_value ) {
		return add_network_option( $network_id, $option, $value );
	}
}}}

So far so good (in a way) ... but then the next section of the code is where a problem happens ... here's that section as a whole:

{{{#!php

	$notoptions_key = ""$network_id:notoptions"";
	$notoptions     = wp_cache_get( $notoptions_key, 'site-options' );

	if ( is_array( $notoptions ) && isset( $notoptions[ $option ] ) ) {
		unset( $notoptions[ $option ] );
		wp_cache_set( $notoptions_key, $notoptions, 'site-options' );
	}

	if ( ! is_multisite() ) {
		$result = update_option( $option, $value, false );
	} else {
		$value = sanitize_option( $option, $value );

		$serialized_value = maybe_serialize( $value );
		$result           = $wpdb->update(
			$wpdb->sitemeta,
			array( 'meta_value' => $serialized_value ),
			array(
				'site_id'  => $network_id,
				'meta_key' => $option,
			)
		);

		if ( $result ) {
			$cache_key = ""$network_id:$option"";
			wp_cache_set( $cache_key, $value, 'site-options' );
		}
	}
}}}

So the problem in above lies in this underlying condition ... following the logic for at this point (for multisite specifically).  If the cache entry was found (which it was) ... it's going to immediately drop into section that will be doing the {{{ $wpdb->update() }}} ... which is going to fail because there is no option/row to update.

Since it failed, the rest of the function just ends up being skipped, and it returns false.

So basically:
- update_network_option ... will in fact create the option if it didn't exist already
- BUT:  if an old/stale cached version of the data exists, it will still try to 'update' the option instead ... which will fail since it doesn't really exist in the database.

In my case this happened (and has happened) multiple times due to restoring/automating some database updates, that didn't also flush the cache.

There are a couple solutions to this.  One would be to update this code to use `wpdb->replace` instead of update ... but that's potentially a bigger change.

A very simple solution to this would simply be to change this code:
{{{#!php
		if ( $result ) {
			$cache_key = ""$network_id:$option"";
			wp_cache_set( $cache_key, $value, 'site-options' );
		}
}}}

To this:
{{{#!php
		if ( $result ) {
			$cache_key = ""$network_id:$option"";
			wp_cache_set( $cache_key, $value, 'site-options' );
		} else {
			return add_network_option( $network_id, $option, $value );
		}
}}}

Which would basically be one additional 'attempt'.   That if the code gets here, tries to 'update' the option and can't for some reason, it goes ""Huh, well, let's assume that failed because it didn't exist.  And so lets give a one-time chance at just adding this instead
"	EliW
	43069	Docs: improve documentation for register_meta() function		Options, Meta APIs	4.9.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-01-11T16:23:29Z	2018-01-11T16:33:40Z	"The documentation for the `register_meta()` function would benefit from additional clarity to help developers recognize that the `$object_type` parameter does not mean custom post type and the implications that registering the meta field applies to all objects of a type.

Within that method there are also missing default values and optional markers in the docblock as well as a backwards compatibility comment that could be more specific and useful in an inline comment.

https://developer.wordpress.org/reference/functions/register_meta/"	terriann
	40012	Only add_metadata if no matching value		Options, Meta APIs	2.9	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2017-03-02T02:04:43Z	2017-03-02T02:58:15Z	"`add_metadata()` has a `$unique` parameter, but it only looks for a unique `meta_key` for the given object ID. I have a need to add meta-data with the same `meta_key` but different values, and only if that `meta_value` isn't already present with the same key.

To do this now, requires:

* Getting all meta-data for the ID by `meta_key`
* Checking those array-values for my value
* Bailing if it's already present, or...
* Proceeding with `$unique` set to `false`

It'd be lovely if `add_metadata()` either:

* Accepted strings like `key`, `value` for the `$unique` parameter, to switch up the check
* Added a second parameter for unique value in addition to a unique key"	johnjamesjacoby
	49705	Sanitizing input for parameterized queries + update_meta_cache		Options, Meta APIs	5.3.2	normal	minor	Awaiting Review	defect (bug)	new		2020-03-26T13:52:36Z	2021-05-25T06:13:37Z	"**So, should we just pass anything we get straight to the database?**

There are definitely things you can check about user input, but this is highly context-dependent. Because sanitization is ill-defined and mis-used, I prefer to call this validation.

I checked the WordPress core function which is not sanitized even this is one of the most used function in across the WordPress.

In below code get_result with no prepare statement. I don;t know the reason why?
{{{
$meta_list = $wpdb->get_results( ""SELECT $column, meta_key, meta_value FROM $table WHERE $column IN ($id_list) ORDER BY $id_column ASC"", ARRAY_A );
}}}

This function should be something like this:


{{{
$id_list_sanity = implode( ', ', array_fill( 0, count( $id_list ), '%d' ) );
                $meta_list = $wpdb->get_results( $wpdb->prepare( ""
                   SELECT $column, meta_key, meta_value FROM $table WHERE $column IN ($id_list_sanity) ORDER BY $id_column DESC""
                ,$id_list),ARRAY_A );
}}}


Function Name: update_meta_cache
File: wp-includes/meta.php
Line: #825
"	classicalrehan
	50181	Second params of get_option() not used		Options, Meta APIs	5.4.1	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2020-05-15T15:50:44Z	2020-05-18T10:08:43Z	"Hello

In a develp=opment I have something like

{{{
$options = get_option( 'my_option', array() );
foreach ( $options as $option ) {
    // doing things
}
}}}

The option stored seems to be not unserializable.

So when going through https://github.com/WordPress/WordPress/blob/master/wp-includes/option.php#L152 + unserialize() which return false on error the second parameter is not used and we got a Warning.

We're not testing `$options` thinking with the second param setted to `array()` will allways return an array...


"	sebastienserre
	58269	Store attachment metadata in separate fields		Options, Meta APIs		normal	normal	Awaiting Review	defect (bug)	new		2023-05-08T17:05:42Z	2023-05-08T17:05:42Z	"At the moment as far as I can tell information like image dimensions is stored alongside a lot of other information in the _wp_attachment_metadata field

This is far from ideal as there are many times you may want to wp_query by individual attachment attributes. Such as all images larger than 1000*1000 pixels. This is not able to be done (as far as I know) in an efficient standard way at the moment.

I propose that certain key attributes are stored in their own meta fields going forward"	shawfactor
	50678	Transient: save object with protected attributes will fail		Options, Meta APIs	5.3	normal	normal	Awaiting Review	defect (bug)	new		2020-07-16T11:16:22Z	2020-07-16T11:16:22Z	"When I save a custom object with protected attributes no value is set into database.

I think it's because php's serialize function use null bytes (\0) when serializing protected properties. MySql does not complain so function returns true like everthing is normal.

See this stack overflow [https://stackoverflow.com/questions/62915246/wordpress-save-object-with-protected-attributes-to-transient-will-fail post].

I'm using:
- WordPress 5.3.4
- MySql Ver 15.1 Distrib 10.3.22-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2.
- PHP Version 7.3.19-1~deb10u1"	mxlq
	63797	Unexpected short‑circuit return values from add_metadata() and update_metadata()		Options, Meta APIs		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-08-07T17:55:51Z	2026-10-12T07:59:25Z	"==== Documented Behavior

WordPress documentation states that:

- `add_metadata()` returns `int|false` — the new meta ID or false on failure.
- `update_metadata()` returns `int|bool` — a new meta ID, true on update, or false on failure/no change.

==== Actual Behavior

However, both functions can be short‑circuited via their respective filter hooks (`add_{$meta_type}_metadata`, `update_{$meta_type}_metadata`) by returning any non‑null value. That value is cast to a boolean value before returning it by `update_metadata()` and returned directly by `add_metadata()`, possibly violating the documented return type and causing unexpected behaviors.

Specifically:

- If a filter hooked to `add_{$meta_type}_metadata` returns a non‑null value (also non‑boolean types including positive integers suggesting success), `add_metadata()` returns that value—even if the metadata was never added.

- If a filter hooked to `update_{$meta_type}_metadata` returns a non‑null value, `update_metadata()` casts it to `bool` and returns it—potentially returning `true` when no update occurred.

These behaviors do not align with the documented behaviors and introduce ambiguous and misleading return values.

==== Proposed Fix

In add_metadata(), change:

{{{#!php
<?php
if ( null !== $check ) {
    return $check;
}
}}}


to:

{{{#!php
<?php
if ( null !== $check ) {
    return false;
}
}}}


This ensures short‑circuiting always indicates failure and matches the documented return type.

In `update_metadata()`, similarly replace:

{{{#!php
<?php
if ( null !== $check ) {
    return (bool) $check;
}
}}}

with:

{{{#!php
<?php
if ( null !== $check ) {
    return false;
}
}}}

This avoids returning `true` in scenarios where metadata wasn't updated.

These changes ensure reliable, semantically clear return behavior that aligns with documentation and expected usage."	marian1
	48855	Updating transient to remove expiration fails		Options, Meta APIs	5.3	normal	normal	Awaiting Review	defect (bug)	new		2019-12-02T19:50:42Z	2019-12-03T14:09:21Z	"When updating a transient using the set_transient method, it fails to update the transient's expiration date. 

Looking at the code, it appears it's only looking for the expiration and deleting it if a new expiration date is specified. This renders it impossible to switch a transient from having an expiration date to not having one.

ex. code: 

{{{#!php
<?php
//new transient set to expire in one hour
set_transient('new_transient', 'data', 5000);

//Update transient and remove expiration
set_transient('new_transient', 'new_data', 0);

}}}

At this point, if you look in the options table for the _transient_new_transient_expiration you'll find the previous value of 1 hour for the expiration instead of the expiration having been removed.

One thing I recognize, that may render this from being a ""bug"" is the nature of transients would be if transient information isn't available, it shouldn't be relied upon, but rather rebuilt. In this use case above, a transient that's set to not expire, but actually still has an expiration date, would expire and in theory then be regenerated later if the data is requested after the expiration."	stndrdsnz
	51868	Using a SVG as featured image covers admin panel		Options, Meta APIs	5.5.3	normal	normal	Awaiting Review	defect (bug)	new		2020-11-24T18:39:22Z	2020-11-24T18:39:22Z	"Hello,
I'm using a SVG as featured image in a page. When I select it the image covers (overflows) the UI.
I'm attaching a screenshot for reference and a SVG file for testing.

Thank you,
Kostas"	gasmas75
	54805	When on the /wp-admin/network/site-settings.php network settings page, calling the update_option() always add the setting		Options, Meta APIs	5.8.3	normal	minor	Awaiting Review	defect (bug)	new		2022-01-13T00:03:48Z	2022-01-13T00:03:48Z	"When on the network settings (/wp-admin/network/site-settings.php), the udpate_option() used to update the changed settings always adds the settings whenever the form is submitted. So instead of firing the ""update_option"" action hook after the settings are updated, it still fires the **add_option** action hook every time!

Obviously, this should give an error but because there's a bailer when adding option using **ON DUPLICATE KEY UPDATE**, no error is shown."	zenithcity
	56326	get_metadata_raw doesn't unserialize when retrieving all meta_keys for a post_id		Options, Meta APIs	6.0	normal	major	Awaiting Review	defect (bug)	new		2022-08-02T22:43:42Z	2022-08-02T22:43:42Z	"(Preface: this is a bug report for WP Core, not BuddyPress - I'm just sharing the following details for context/reproducibility).

I'm working with BuddyPress and bbPress, which creates a meta_key ""_bbp_group_ids"" for the forum post when you associate that forum with a buddypress group. The meta_value for this key is an array, which gets serialized by update_post_meta(). 

When I retrieve all meta_keys for that forum post, it returns an array, but the _bbp_group_ids key has a value of something like ""a:1:{i:0;i:58;}""

When I use xdebug to step through the code, the problem seems to start here in [https://core.trac.wordpress.org/browser/tags/6.0/src/wp-includes/meta.php#L641 get_metadata_raw()].

If the data is in the wp_cache, it then just retrieves and returns that on  [https://core.trac.wordpress.org/browser/tags/6.0/src/wp-includes/meta.php#L653 line 653]

If it isn't in the cache (such as when I clear it manually in my code to test this), it goes through the motions, eventually ending up here in [https://core.trac.wordpress.org/browser/tags/6.0/src/wp-includes/meta.php#L1172 update_meta_cache()], where it retrieves the data from the database, but then doesn't run maybe_unserialize before setting the cache.

Then, we're back to where we were before - with [https://core.trac.wordpress.org/browser/tags/6.0/src/wp-includes/meta.php#L656 line 656 of get_metadata_raw()] just returning whatever is in the cache. It only runs maybe_unserialize if a single meta_key is being requested. 

So, some sort of looping, maybe_unserialize mechanism has to be either added to update_meta_cache() or to get_metadata_raw(). Of course, people are probably aware of this foible and have thus probably created workarounds to deal with receiving serialized post_meta data... So, I leave it to you guys to figure out how to best address this.

"	nickchomey
	59705	get_metadata_raw() will return false when unserialize() fails		Options, Meta APIs	5.8	normal	normal	Awaiting Review	defect (bug)	new		2023-10-23T11:16:15Z	2023-10-23T11:16:15Z	"The return value of get_metadata_raw() is documented as follows:
> *               False for an invalid `$object_id` (non-numeric, zero, or negative value),
> *               or if `$meta_type` is not specified.
Source: https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/meta.php#L596:L597

However, if your metadata contains serialized data that is incorrect for some reason, maybe_unserialize() will (also) return `false`.
Source: https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/meta.php#L661

E.g. `a:2:{s:3:""foo"";b:1;}` is invalid due to it expecting 2 entries, but only 1 is present.

History check; It seems to have been made a lot more precise (but missing this minor case):
* https://core.trac.wordpress.org/ticket/51797
* https://github.com/WordPress/wordpress-develop/commit/3bb06ce10b8ddac22091803b2e85832ed3ca3b1b"	igorsch
	56944	get_option does not return expected value		Options, Meta APIs	6.0.2	normal	normal	Awaiting Review	defect (bug)	new		2022-11-01T15:33:38Z	2022-11-04T15:33:26Z	"Hello,


I ran into the issue when `get_option` does not return any value:
`get_option( ""_wp_session_{$this->session_id}"", array() );`

It returns an empty value, but the value exists in DB and in cache.

I tested with 3 different methods one-by-one for option `_wp_session_5c1f3b8058ca4b6cf9e637c31300bc23`:

==== 1) `get_option`

`get_option( ""_wp_session_5c1f3b8058ca4b6cf9e637c31300bc23"", array() );`

It returns an empty value (but sometimes it works fine)

==== 2) `wp_cache_get`

`wp_cache_get( ""_wp_session_5c1f3b8058ca4b6cf9e637c31300bc23"", 'options' );`

It returns correct value
{{{
a:6:{s:8:""edd_cart"";s:40:""[{""id"":79377,""options"":[],""quantity"":1}]"";s:13:""edd_cart_fees"";s:0:"""";s:18:""edd_resume_payment"";s:0:"""";s:14:""cart_discounts"";s:0:"""";s:10:""edd_errors"";s:0:"""";s:12:""edd_purchase"";s:1072:""{""downloads"":[{""id"":147706,""options"":[],""quantity"":1}],""fees"":[],""subtotal"":0,""discount"":0,""tax"":""0.00"",""tax_rate"":0,""price"":0,""purchase_key"":""f7f8403a9d9edb93f9be9376d117c1f0"",""user_email"":"""",""date"":""2022-10-31 13:59:43"",""user_info"":{""id"":37847,""email"":"""",""first_name"":"""",""last_name"":"""",""discount"":""none"",""address"":[]},""post_data"":{""edd_email"":"""",""edd_first"":"""",""edd_last"":"""",""edd_agree_to_terms"":""1"",""edd-user-id"":"""",""edd_action"":""purchase"",""edd-gateway"":""manual"",""edd-process-checkout-nonce"":""911cf02037""},""cart_details"":[{""name"":"""",""id"":,""item_number"":{""id"":147706,""options"":[],""quantity"":1},""item_price"":0,""quantity"":1,""discount"":0,""subtotal"":0,""tax"":0,""fees"":[],""price"":0}],""gateway"":""manual"",""card_info"":{""card_name"":"""",""card_cvc"":"""",""card_exp_month"":"""",""card_exp_year"":"""",""card_address"":"""",""card_address_2"":"""",""card_city"":"""",""card_state"":"""",""card_country"":"""",""card_zip"":""""}}"";}
}}}
''I removed some private information here.''

==== 3) direct DB request

`$wpdb->get_results('SELECT * FROM wp_options WHERE option_name = ""_wp_session_5c1f3b8058ca4b6cf9e637c31300bc23""')`

It returns correct value

{{{
Array
(
    [edd_cart] => [{""id"":79377,""options"":[],""quantity"":1}]
    [edd_cart_fees] =>
    [edd_resume_payment] =>
    [cart_discounts] =>
    [edd_errors] =>
    [edd_purchase] => {""downloads"":[{""id"":147706,""options"":[],""quantity"":1}],""fees"":[],""subtotal"":0,""discount"":0,""tax"":""0.00"",""tax_rate"":0,""price"":0,""purchase_key"":""f7f8403a9d9edb93f9be9376d117c1f0"",""user_email"":"""",""date"":""2022-10-31 13:59:43"",""user_info"":{""id"":37847,""email"":"""",""first_name"":"""",""last_name"":"""",""discount"":""none"",""address"":[]},""post_data"":{""edd_email"":"""",""edd_first"":"""",""edd_last"":"""",""edd_agree_to_terms"":""1"",""edd-user-id"":""37847"",""edd_action"":""purchase"",""edd-gateway"":""manual"",""edd-process-checkout-nonce"":""911cf02037""},""cart_details"":[{""name"":"""",""id"":147706,""item_number"":{""id"":147706,""options"":[],""quantity"":1},""item_price"":0,""quantity"":1,""discount"":0,""subtotal"":0,""tax"":0,""fees"":[],""price"":0}],""gateway"":""manual"",""card_info"":{""card_name"":"""",""card_cvc"":"""",""card_exp_month"":"""",""card_exp_year"":"""",""card_address"":"""",""card_address_2"":"""",""card_city"":"""",""card_state"":"""",""card_country"":"""",""card_zip"":""""}}
)
}}}

''I removed some private information here.''

----

So the problem only with function `get_option`. I checked this function as well. It selects values for `notoptions`:
`$notoptions = wp_cache_get( 'notoptions', 'options' );`

And if current option exists in this array – it do return

{{{
if ( isset( $notoptions[ $option ] ) ) {
			/**
			 * Filters the default value for an option.
			 *
			 * The dynamic portion of the hook name, `$option`, refers to the option name.
			 *
			 * @since 3.4.0
			 * @since 4.4.0 The `$option` parameter was added.
			 * @since 4.7.0 The `$passed_default` parameter was added to distinguish between a `false` value and the default parameter value.
			 *
			 * @param mixed  $default The default value to return if the option does not exist
			 *                        in the database.
			 * @param string $option  Option name.
			 * @param bool   $passed_default Was `get_option()` passed a default value?
			 */
			return apply_filters( ""default_option_{$option}"", $default, $option, $passed_default );
		}
}}}

Current option exists in this array, so it applies filter ""default_option_{$option}"", function filter_default_option. But this function check `get_registered_settings`, and there is no information about this option, so it returns empty result.

That’s all information I have so far.

This problem exists at least for 1 year, for this time we always update WordPress core and Plugins for latest version, and it does not any effect."	planvova
	45273	get_postmeta: Inconsistent behavior of the 'single'-argument		Options, Meta APIs		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2018-11-03T19:29:48Z	2019-01-16T22:58:54Z	"The phpdoc of the ''get_postmeta''-function in meta.php mentions that the ''single''-argument has no effect if ''meta_key'' is not specified.

This is not true when the ''get_{$meta_type}_metadata''-filter is used. If this filter returns an array and ''single'' is true only the first item of the array is returned. This not the expected behavior when ''meta_key'' is empty.

In my opinion this part:

{{{#!php
	$check = apply_filters( ""get_{$meta_type}_metadata"", null, $object_id, $meta_key, $single );
	if ( null !== $check ) {
		if ( $single && is_array( $check ) ) {
			return $check[0];
		}
		else {
			return $check;
		}
	}
}}}
should be replace by:

{{{#!php
	$check = apply_filters( ""get_{$meta_type}_metadata"", null, $object_id, $meta_key, $single );
	if ( null !== $check ) {
		if ( $meta_key && $single && is_array( $check ) ) {
			return $check[0];
		}
		else {
			return $check;
		}
	}
}}}
(Notice how I added {{{$meta_key && }}})


NOTE: This is a breaking change in the rare occasion that ''get_{$meta_type}_metadata''-filter is used in combination with an empty ''meta_key'' and ''single'' == true. If a fix is not desired; phpdoc must be changed to document this inconsistent behavior.

"	josk79
	58993	"metadata_exists() returns incorrect value when ""get_{$meta_type}_metadata"" filter returns false."		Options, Meta APIs	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-08-07T14:58:38Z	2023-10-30T18:16:14Z	"metadata_exists() applies the ""get_{$meta_type}_metadata"" filter. If the $single metadata value is false, 0, an empty string, or an empty array (see https://www.php.net/manual/en/language.types.boolean.php), then metadata_exists() will return false instead of true (ie. the metadata exists).


{{{
function metadata_exists( $meta_type, $object_id, $meta_key ) {
.
.
.
        $check = apply_filters( ""get_{$meta_type}_metadata"", null, $object_id, $meta_key, true, $meta_type );
        if ( null !== $check ) {
                return (bool) $check;
        }
}}}

If any value is returned, then the metadata exists, so the code should be:

{{{
function metadata_exists( $meta_type, $object_id, $meta_key ) {
.
.
.
        $check = apply_filters( ""get_{$meta_type}_metadata"", null, $object_id, $meta_key, true, $meta_type );
        if ( null !== $check ) {
                return true;
        }
}}}

js."	jsmoriss
	61631	sanitize_option_{$option} inconsistencies		Options, Meta APIs	6.5.5	normal	normal	Awaiting Review	defect (bug)	new		2024-07-11T10:39:37Z	2024-07-11T13:54:26Z	"There are several inconsistencies with the sanitize_option_{$option} doc and code:

1) in the doc at https://developer.wordpress.org/reference/hooks/sanitize_option_option/ ==> the example  
{{{
add_filter('sanitize_option_contact_email', 'sanitize_email');
}}}
should be
{{{
add_filter('sanitize_option_contact_email', 'sanitize_email', 10, 2);
}}}

2) in the code wp-includes/option.php, the filter is created in the function ""register_setting"" but the option name is not passed, leaving people to jump through holes to create the correct filter.
{{{
add_filter( ""sanitize_option_{$option_name}"", $args['sanitize_callback'] );
}}}
should become
{{{
add_filter( ""sanitize_option_{$option_name}"", $args['sanitize_callback'], 10, 2 );
}}}
(or even ""10,3"" since the the call to apply the filter always uses 3 arguments). This doesn't affect any current usage of the filter (php ignores it if too many arguments are passed to a function) but would make the life of developers easier :-)"	liedekef
	56047	test for pre_option_{$option} filter	pbearne	Options, Meta APIs		normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2022-06-22T21:54:25Z	2026-05-07T16:20:44Z		pbearne
	54339	unique $keys array when add custom key from Several places with postmeta_form_keys		Options, Meta APIs	5.8.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-10-29T09:11:47Z	2026-11-11T06:12:57Z	"I added two similar custom key from my theme and a plugin with postmeta_form_keys filter.
but now display both of theme in custom-fields name's select box (custom-fields metabox - post.php or post-new.php)
I think is better to unique $keys before options are printed.

wp-admin/includes/template.php
line ~730

before:
foreach ( $keys as $key ) {

after:
$keys = array_unique($keys);
foreach ( $keys as $key ) {"	myousefi08
	59246	update_option returns true, even when the value didn't change, potentially adding back old data		Options, Meta APIs		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-08-30T07:44:20Z	2024-04-03T20:59:22Z	"`update_option` will inconsistently return true/false, depending on whether another update option call is made in the meantime.

While this isn't a problem per se, it creates inconsistent and unexpected behavior.

```
$a = get_option( 'a' );
$b = get_option( 'b' );

sleep( 5 ); // placeholder for code that takes some time
$b = '2';
update_option( 'b', $b );
update_option( 'a', $a ); // $a didn't change, so it shouldn't update but return false - but it will update and return true
```

Request 2:

```
$a = get_option( 'a' );
$b = get_option( 'b' );

$a = '7';
$b = '3';
update_option( 'b', $b );
update_option( 'a', $a );
```

Result:
Option 'a' will have a value of 1 instead of 7.

Why does this happen?
`update_option` uses `get_option` to get the $old_value - however the $old_value might in fact be a NEW value that was added in the meantime by another request.

This leads to unexpected behavior of `update_option` if called with unmodified data - since `update_option` sometimes behaves seemingly atomically, while in reality it doesn't - but most devs are not aware of this.

These are extremely hard to track down bugs for most developers.

Possible solution(s):
- ignore this issue, and improve documentation to make it clear that `update_option` might update an option even if the value didn't change - if the option was modified in the meantime
- add an additional parameter to `update_option` for `$old_value` to have people pass it in for comparison"	malthert
	63918	updated_..._meta meta_id is string not int - wrong docs		Options, Meta APIs		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-09-03T08:28:20Z	2025-09-03T13:04:37Z	"Documented as int (since it's an int in all other meta functions, e.g. ""add"" since it's typecast there)"	kkmuffme
	58693	wordpress posts custom-meta box issue		Options, Meta APIs	6.2.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-07-01T11:37:35Z	2023-07-02T06:30:37Z	"Hello to the WordPress development team!

im a wordpress plugin developer and I developed a Custom-Plugin for my customer (www.delbarbash.com) and I found a critical issue with post/products meta_box

when i disable custom_meta (checkbox) form the screen-options (top-page) and reload the admin posts page or products page But again, the field was taken by PHP rendered (I saw this from view-page-source)

Issue: and when i update some product meta value from database or by ajax or somewhere else and then update the post the post will send the old meta_keys and meta_values to the wpdb and it seems to be a bug or malfunction Of course I disabled entirely the meta_box with the aid of remove_meta_box function (in my plugin)

My suggestion: to get rid of this weird issue I suggest a new system that when a user disable this meta_box (or all other boxes) from screen option an JS Confirmation take effect and ask the user (if you dont have un-saved values on this page, we will reload the page again) After page reload the page must-not render that box with PHP again! (instead of hidden that box with just CSS)

Thanks a lot!

Thank you for considering and checking my request and believe that this can be a big problem!"	mdesignfa
	63685	"""pre_add_option"" hook missing"		Options, Meta APIs		normal	minor	Awaiting Review	enhancement	new	dev-feedback	2025-07-11T02:32:45Z	2025-07-11T07:00:09Z	"There's a ""pre_add_site_option_"" (and a ""pre_update_"") apply_filters, but no ""pre_add_option_"" hook

Since there recently was some discussion about adding one for ""delete"" too https://core.trac.wordpress.org/ticket/44042 I guess it would make sense to also add the hook for ""add"".

This would also ensure the commonly used ""workaround"" (where ""pre_update_"" is filtered) of using delete_option => add_option can be prevented."	kkmuffme
	48478	Allow omitting meta keys from the REST API response if they do not exist		Options, Meta APIs	4.7	normal	normal	Awaiting Review	enhancement	new	has-patch	2019-10-31T22:54:18Z	2026-11-02T18:35:40Z	"Currently, the REST API will include all `show_in_rest` registered meta keys in a response, even if that meta key has no value. When the meta key has no value, either the empty value or a custom default in `show_in_rest.schema.default` is used.

If an API client PUTs back this response, the meta key will be created with this default value. This may be undesirable if a user hasn't actually interacted with that meta key.

This could be addressed by allowing the user to specify that the meta key should not be included in the REST API if it does not exist. For instance, `show_in_rest.omit_if_not_exists`.

Related Gutenberg ticket: https://github.com/WordPress/gutenberg/issues/17864"	TimothyBlynJacobs
	62664	Automatically prepopulate registered meta keys in the Custom Fields meta box		Options, Meta APIs		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-12-08T10:40:21Z	2025-05-26T14:29:53Z	When the Custom fields meta box is enabled, it does not provide the option to select from any meta fields registered using either register_meta or register_post_meta. 	psykro
	42012	Do not switch roles and capabilities when accessing options through `*_blog_option()`		Options, Meta APIs		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-09-27T21:51:32Z	2021-08-03T11:42:38Z	"[41625] has outsourced the functionality to switch the current user's capabilities and available roles when sites are being switched, instead this now happens in `wp_switch_roles_and_user()` which is hooked into the `switch_blog` action.

When accessing `get_blog_option()`, `add_blog_option()`, `update_blog_option()` or `delete_blog_option()`, it should be safe to always unhook the function temporarily (see `WP_Roles::get_roles_data()` for an example where it already happens manually in core) to improve performance, in some cases significantly. Roles and capabilities are not needed when accessing options, however we need to be careful and think about what plugins are possibly doing here.

Let's discuss whether this can happen automatically in core or whether it should be left to developers."	flixos90
	52887	Docs: Clarify why register_meta is necessary	Shital Patel*	Options, Meta APIs		normal	minor	Future Release	enhancement	accepted		2021-03-22T19:46:18Z	2021-05-26T22:13:43Z	When I was reading register_meta documentation I was confused why register_meta is necessary and where it is used, so I added some clarification. 	ribaricplusplus
	41105	Fire action hook after updating option group.		Options, Meta APIs	4.9	normal	normal	Awaiting Review	enhancement	new	has-patch	2017-06-20T19:45:35Z	2017-06-20T19:50:52Z	"This suggestion affects the Settings API. There are hooks that fire after updating a single option, but not when a group of options is updated. Options updated via the Settings API are handled by /wp-admin/options.php, which after updating them does a redirection to the previous page, not firing any hook beside the shutdown action hook. In fact, the shutdown hook could be used for the same purpose but it would require some more extra checks.

Basically the hook would allow to perform some action that is required after all options in that group are updated."	mdifelice
	56548	Introduce `get_option` action		Options, Meta APIs		normal	normal	Awaiting Review	enhancement	new	needs-unit-tests	2022-09-11T19:00:11Z	2024-10-21T18:23:17Z	"There has been the `option_{$option}` filter for a long time, and it makes sense that this filter should be used to tweak options when reading them.

However, there is sometimes a need for running certain logic for when an option is being read. For example, the WordPress performance team is currently working on a feature to optimize the autoloaded options list.

For such purposes, we would like to add a new `get_option` action:
* The reasoning for making it an action is to not falsely encourage developers to think they could use this to filter an option value (which would be excessive since it would be running for every option read).
* The action would get parameters for the option name, the value, and whether the value is based on the default (rather than being looked up from the database).
* The action name would be aligned with the existing actions `add_option`, `update_option`, and `delete_option`.
* It would be documented so that it should only be used for special cases (similar to e.g. the `all` filter)."	flixos90
	65976	Pass $delete_all to the delete_{$meta_type}_meta and deleted_{$meta_type}_meta actions		Options, Meta APIs	2.9	normal	normal	Awaiting Review	enhancement	new	has-patch	2026-08-27T12:12:32Z	2026-08-27T12:22:46Z	"Follow-up to #39706, as suggested there in comment:1 by @barryceelen.


{{{delete_metadata()}}} accepts a {{{$delete_all}}} flag that significantly changes the semantics of the operation: when true, matching metadata is deleted for ''all'' objects and the given {{{$object_id}}} is ignored. The {{{delete_{$meta_type}_meta}}} and {{{deleted_{$meta_type}_meta}}} actions receive {{{$meta_ids}}}, {{{$object_id}}}, {{{$meta_key}}} and {{{$_meta_value}}}, but not {{{$delete_all}}}. So a callback cannot tell that the $object_id it received is meaningless for the operation.

The {{{delete_{$meta_type}_metadata}}} short-circuit filter already receives {{{$delete_all}}} this brings the actions in line with it, in the same way #39706 does for $unique on the add actions.

Note these actions also fire in {{{delete_metadata_by_mid()}}}, where false would be passed explicitly so that callbacks opting into the additional argument work on both code paths.

Like #39706, the change is backward compatible: existing callbacks keep receiving exactly the arguments they registered for."	brianboy
	65836	Provide a native API for generating and managing Schema.org JSON-LD structured data		Options, Meta APIs		normal	normal	Awaiting Review	enhancement	new		2026-08-08T15:39:09Z	2026-08-08T15:39:09Z	"Background
WordPress currently provides APIs for managing content, metadata, navigation, taxonomies, authors, and other semantic information, but there is no general-purpose Core API for generating Schema.org structured data in JSON-LD format.

As a result, site owners and developers often need to implement structured data manually through themes, plugins, or custom functions.php code.

This can lead to:

Duplicate Schema markup when multiple plugins or themes generate structured data.
Inconsistent entity relationships between WebSite, WebPage, Article, Person, BreadcrumbList, and other Schema.org entities.
Repeated custom implementations across WordPress websites.
Increased risk of invalid or incomplete structured data.
Difficulty maintaining structured data when WordPress content or site settings change.
Different implementations of the same WordPress content depending on the theme or plugin being used.
Current Workaround
Currently, developers who want to implement Schema.org JSON-LD without relying on an SEO or Schema plugin often have to create custom Schema markup manually in their theme's functions.php file.

For example, a developer may add a hard-coded implementation similar to:

{{{
function my_custom_schema_markup() {

	$schema = array(
		'@context' => 'https://schema.org',
		'@graph'   => array(
			array(
				'@type' => 'WebSite',
				'@id'   => home_url( '/#website' ),
				'url'   => home_url( '/' ),
				'name'  => get_bloginfo( 'name' ),
			),
			array(
				'@type' => 'WebPage',
				'@id'   => get_permalink() . '#webpage',
				'url'   => get_permalink(),
				'name'  => wp_get_document_title(),
			),
		),
	);

	echo '<script type=""application/ld+json"">';
	echo wp_json_encode( $schema );
	echo '</script>';
}

add_action( 'wp_head', 'my_custom_schema_markup' );
}}}

For more complex websites, developers then need to add additional conditional logic to functions.php to determine which Schema type should be generated for each type of WordPress content.

For example:

WebSite only on the homepage.
WebPage on applicable pages.
Article / BlogPosting only on individual blog posts.
Person / Author on individual blog posts and author archive pages.
BreadcrumbList on applicable pages except the homepage.
ImageObject when an appropriate image is available.
SearchAction where applicable.
SiteNavigationElement when navigation data is available.
Additional entity relationships using @id.

This approach requires developers to manually maintain the Schema implementation and page-specific conditions.

It can also result in different implementations across themes and websites, even when the underlying WordPress content structure is similar.

The proposed Core API would provide a standardized and extensible alternative to maintaining these Schema implementations manually in functions.php.


Proposed Enhancement
Consider introducing a native and extensible WordPress API for generating Schema.org JSON-LD structured data.

The API would provide developers with a standardized alternative to manually hard-coding Schema markup in functions.php, themes, or plugins.

The API could provide structured representations for commonly used WordPress entities, including:

WebSite (homepage)
WebPage
Article / BlogPosting (individual blog posts)
Person / Author (individual blog posts and author archive pages)
BreadcrumbList (applicable pages except the homepage)
ImageObject
SearchAction
SiteNavigationElement

The generated structured data could be exposed through the existing wp_head mechanism or another appropriate Core API.

The API should be extensible through WordPress filters and actions so that plugins and themes can add or modify supported Schema properties without duplicating the complete implementation.


Proposed Entity Relationships

The proposed API should support relationships between entities using stable @id values.

For example:

{{{
Organization
	|
	+-- publisher --> WebSite
	|
	+-- publisher --> Article
	|
	+-- worksFor <-- Person

WebSite
	|
	+-- hasPart --> WebPage

WebPage
	|
	+-- mainEntity --> Article
	|
	+-- breadcrumb --> BreadcrumbList
}}}

This would allow multiple Schema entities to reference the same underlying entity instead of creating duplicate representations of the same organization, website, or person.


== Example ==

A WordPress site could generate JSON-LD similar to:

{{{
{
	""@context"": ""https://schema.org"",
	""@graph"": [
		{
			""@type"": ""WebSite"",
			""@id"": ""https://example.com/#website"",
			""url"": ""https://example.com/"",
			""name"": ""Example Website""
		},
		{
			""@type"": ""WebPage"",
			""@id"": ""https://example.com/page/#webpage"",
			""url"": ""https://example.com/page/"",
			""name"": ""Example Page"",
			""isPartOf"": {
				""@id"": ""https://example.com/#website""
			}
		}
	]
}
}}}


Possible API

A possible Core API could provide functions similar to:

{{{
wp_schema_add_entity()
wp_schema_remove_entity()
wp_schema_get_entity()
wp_schema_get_entities()
wp_schema_get_graph()
wp_schema_print_jsonld()
}}}

For example:

{{{
wp_schema_add_entity(
	array(
		'@type' => 'WebSite',
		'@id'   => home_url( '/#website' ),
		'url'   => home_url( '/' ),
		'name'  => get_bloginfo( 'name' ),
	)
);
}}}

The exact API naming and architecture would be subject to review and discussion with WordPress Core maintainers.


Extensibility
The proposed API should provide appropriate filters and actions so that plugins and themes can extend the generated structured data.

For example:

{{{
add_filter(
	'wp_schema_entities',
	function ( $entities ) {

		$entities[] = array(
			'@type' => 'Organization',
			'@id'   => home_url( '/#organization' ),
			'name'  => get_bloginfo( 'name' ),
			'url'   => home_url( '/' ),
		);

		return $entities;
	}
);
}}}

This would allow plugins and themes to extend the Core-generated Schema without having to replace the complete JSON-LD implementation.

Content-Specific Generation

The implementation should generate Schema based on the actual WordPress content and context rather than generating every Schema type on every page.

For example:

WebSite should be generated for the homepage/site entity.
WebPage should represent applicable WordPress pages.
Article / BlogPosting should only be generated for individual blog posts where the content qualifies as an article.
Person / Author should be associated with applicable posts and author archive pages.
BreadcrumbList should be generated for applicable pages except the homepage.
ImageObject should be generated when a relevant image is available.
SearchAction should only be generated when an appropriate site-search implementation exists.
SiteNavigationElement should be generated from available WordPress navigation data where appropriate.

The API should avoid generating structured data that does not accurately represent the underlying WordPress content.
Compatibility
The proposed API should not automatically override or conflict with structured data generated by existing SEO or Schema plugins.

Existing plugins should be able to:

Detect Core-generated structured data.
Extend Core-generated entities.
Modify supported properties through documented filters.
Disable specific Core-generated entities where necessary.
Integrate their existing Schema implementation with the Core API.

Backward compatibility should be considered so that existing themes and plugins do not need to immediately migrate to the new API.
Goals

1. Provide a standardized Core API for Schema.org JSON-LD.
2. Reduce duplicate structured-data implementations.
3. Reduce the need for developers to maintain hard-coded Schema JSON-LD implementations in functions.php.
4. Allow plugins and themes to extend the generated schema.
5. Establish consistent entity relationships using @id.
6. Make structured data easier for WordPress developers to implement and maintain.
7. Provide content-aware Schema generation based on WordPress objects and context.
8. Reduce the need for developers to repeatedly implement page-specific Schema logic.
9. Avoid generating Schema markup that does not correspond to the actual page content.
Testing
The implementation should include automated PHPUnit tests covering:

Adding Schema entities.
Removing Schema entities.
Retrieving Schema entities.
Multiple entities using @graph.
Entity relationships using @id.
Extensibility through filters.
JSON-LD output.
Empty graph behavior.
Duplicate entity handling.
Content-specific Schema generation.
Homepage versus non-homepage behavior.
Individual post versus page behavior.
Author and author archive behavior.
Breadcrumb generation.
ImageObject generation when an image is available.
Navigation-related Schema generation where applicable.
Documentation
If implemented, the API should include inline documentation and developer documentation covering:

Available Core functions.
Supported Schema entity types.
How entities are registered.
How entities are referenced using @id.
Available filters and actions.
How themes can extend the generated Schema.
How plugins can integrate with the API.
How developers can disable or modify specific entities.
Examples of common implementations.
Expected Benefits
A native structured-data API could provide a consistent foundation for representing WordPress content as structured data while allowing the WordPress ecosystem to build more advanced SEO and semantic-search functionality on top of Core.

A Core API would also reduce the need for developers to maintain large, hard-coded Schema implementations in functions.php.

Instead of manually creating JSON-LD objects and page-specific conditional logic, developers could use a standardized Core API based on WordPress content, metadata, navigation, authors, and other available data.

This could make Schema implementations more consistent across WordPress installations while still allowing themes and plugins to extend or customize the generated structured data.

The proposal is not intended to guarantee improved search rankings.

The primary goal is to provide a standardized, extensible mechanism for representing structured information generated from WordPress content.
Scope
This proposal is focused on providing a Core API and framework for generating and managing Schema.org JSON-LD structured data.

It is not intended to replace existing SEO plugins or provide a complete SEO management system.

SEO plugins and other third-party integrations should be able to build on top of the proposed Core API.
"	aniketanandapatil
	43209	REST API should take settings errors into account		Options, Meta APIs		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2018-02-01T23:59:10Z	2018-02-01T23:59:10Z	"The `WP_REST_Settings_Controller` should notify the client when updating a setting fails due to an invalid value provided per the setting's `sanitize_callback` (should actually be validation, see related #43208). Currently this goes completely unnoticed.

While `update_option()` doesn't return any information like that, it may be possible to use the information passed to `add_settings_error()` in case of a validity issue, and forward that to the client by returning a `WP_Error` with the message."	flixos90
	38896	avatar_settings help text may not be accurate if avatar_defaults is filtered		Options, Meta APIs		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2016-11-21T22:04:36Z	2026-10-12T13:47:18Z	"The string says:

{{{
For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their email address.
}}}

But, I have a need to remove generated Gravatars entirely using the `avatar_defaults` filter, which makes this text misleading.

In addition, this text is not wrapped in any defining HTML, making it impossible to reliably target with CSS or JS even."	johnjamesjacoby
	56821	meta_query late row lookup for performance improvement		Options, Meta APIs		normal	normal	Awaiting Review	enhancement	new		2022-10-13T20:46:34Z	2022-10-14T11:59:24Z	"Is it possible to do a late row lookup for meta_query to make large postmeta sets run much faster?

In some benchmarking I've done with load testing, queries that would take 8s to load with the current meta_query ended up loading in 500ms after implementing late row lookup.

My suggestion would be to modify the get_posts function in the WP_Query class to have a flag pass through to use late lookup, like passing through `""meta_late_lookup""=>true`:

{{{#!php
<?php
if ( ! empty( $this->meta_query->queries ) ) {
	$clauses = $this->meta_query->get_sql( 'post', $wpdb->posts, 'ID', $this );
	if(isset($q['meta_query_late_lookup']) && $q['meta_query_late_lookup']){
                // perform a late lookup instead of a join
		$clauses['where'] = ' AND ID in (SELECT post_id FROM '.$wpdb->postmeta.' WHERE 1=1 '.$clauses['where'].')';
	} else {
		$join   .= $clauses['join'];
	}
	$where  .= $clauses['where'];
}
}}}


At the moment, this can be accomplished with a filter like so:

{{{#!php
<?php
add_filter('get_meta_sql', 'meta_sql_late_row_lookup', NULL, 6);
function meta_sql_late_row_lookup($sql, $queries, $type, $table, $column, $context){
	$meta_table = _get_meta_table( $type );
	$sql = array('where'=>' AND ID in (SELECT post_id FROM '.$meta_table.' WHERE 1=1 '.$sql['where'].')');
	return $sql;
}
}}}

"	brmoore252
	51730	update_metadata function: differentiate failure from no update		Options, Meta APIs		normal	normal	Awaiting Review	enhancement	new		2020-11-09T12:11:35Z	2020-11-10T00:50:13Z	"The WordPress function update_metadata, (as well as update_post_meta, and update_term_meta which call it) returns false on failure or if the value passed to the function is the same as the one that is already in the database. This behavior is documented by WordPress: https://developer.wordpress.org/reference/functions/update_metadata/.

However, I would like to be able to differentiate the failure case from the no update case. In my custom plugin I allow users to update post meta; I want to show them a failure message if their update failed and nothing if there was no update.

There is precedent for such a differentiation in wpdb::update which returns 0 if no rows are updated and false on failure. I can use this instead, but I would like the full functionality of update_metadata.

Is there a reason this differentiation is not made here? (either by default or with a passed in parameter). If not, this is a feature request to make that differentiation and return false on failure and 0 on no update."	msea55
	54212	Add hooks to get/update/add_option functions		Options, Meta APIs	5.8.1	normal	normal	Awaiting Review	feature request	new		2021-10-03T04:47:44Z	2023-10-29T06:11:44Z	"It would be great if there were hooks in option saving/updating functions so that it would be possible to override usage of `serialize` in favour of `json_encode` when storing option value in DB. `serialize` gives a lot of problems with site URL when moving from one domain to another.  

I spent about two days already trying to replace site URL after moving the website from local to prod environment. The problem is that my prod website's domain name has couple more characters than my local domain, thus when replaced, the PHP-serialized values in DB become invalid so it breaks the entire website for me. I tried many different tools already, as well as the official `wp search-replace` CLI tool, but it also breaks the website completely, I start getting a lot of SQL-related errors.

Please add away to replace that ugly serialize with json!"	nik7n
	43451	Disallow objects as meta values		Options, Meta APIs	4.9.2	normal	normal	Awaiting Review	feature request	new		2018-03-01T13:01:21Z	2018-03-01T14:13:31Z	"OK, I know this is probably going to be closed before anyone even reads it, but I recon it's worth to at least try and spark a discussion.

As probably many people know at this point meta functions do not like backslashes. For some reason (probably db related) meta and option add / update functions run all values through `stripslashes_deep`, which means they expect the input values to be slashed. Actually this ""requirement"" seems to be undocumented even though it's here since version 3.something, why, that's beyond me.

So, imagine you're a noobie WordPress developer and for some reason you have a backslash in a string you want to persist (happens more often than one might think), so you go ahead and run the following code:

{{{#!php
$value = 'hello \world';

update_user_meta(get_current_user_id(), '_test', $value);
$meta = get_user_meta(get_current_user_id(), '_test', true);

var_dump($value, $meta);
}}}

You save `hello \world` and expect to get `hello \world` back, but surprise surprise, the backslash is gone.

So you start scratching your head, dig through stackoverflow or the source and you discover `$meta_value = wp_unslash($meta_value);`.

You think this isn't right, but who are you to argue with software that's here for more than 10 years already. So, now, you are a bit more ""experienced"" and know you need to run all your values through `wp_slash` **before** you pass it to the meta functions.

Then one day you need to save an array, you read through the docs which doesn't seem to forbid it, so you glance at the source and see `$meta_value = maybe_serialize( $meta_value );` - YES! - you say, you can pass basically anything and WordPress will take care of the serialization, awesome!

So, now you run:

{{{#!php
$value = [
    'hello' => 'again \world'
];

update_user_meta(get_current_user_id(), '_test', wp_slash($value));
$meta = get_user_meta(get_current_user_id(), '_test', true);

var_dump($value, $meta);
}}}

Which results in the same input you gave it, now that you know you need to slash everything. You weren't sure `wp_slash` could actually handle arrays, but it does, so life's good!

Later on you mature even more and decide you want to save whole objects now. You know about serialization, so no worries here, right?

You adapt your previous code and try to run the following:

{{{#!php
$value = new \stdClass();
$value->hello = 'world \again';

update_user_meta(get_current_user_id(), '_test', wp_slash($value));
$meta = get_user_meta(get_current_user_id(), '_test', true);

var_dump($value, $meta);
}}}

...and you get `Warning: addslashes() expects parameter 1 to be string, object given in`. Turns out `wp_slash` can't handle objects :|

Alright, maybe you don't need it, so you remove it aaand the slash is gone.
Then you look at the code and realize now the slash is gone even from your original object! What the...

So trying to store an object as a meta value is not only not gonna work properly, but it's also going to mess with your original object!

So, what then?
Serialize it into a string before and after?

OK, you serialize the object so it's just a string now, then run it through `wp_slash` to fix the slashes issue and then give it to the meta function:

{{{#!php
$value = new \stdClass();
$value->hello = 'world \again';

update_user_meta(get_current_user_id(), '_test', wp_slash(serialize($value)));
$meta = unserialize(get_user_meta(get_current_user_id(), '_test', true));

var_dump($value, $meta);
}}}

Whew, finally everything works just fine, even though you're not absolutely sure you've covered all possible cases making sure nothing can ever go wrong again.

----

So, can anyone elaborate on this a bit more?

Why are slashes such a big problem when it comes to options and meta, shouldn't the value just be converted to a string and then treated as a black box all the way up to when it needs to go in the database?

Why does object serialization cause so much trouble?

You can't seriously expect users to be aware that their objects are going to be deepslashed to death, values of properties modified to god-knows how deep, and be okay with it.

If meta functions can't handle objects, just don't allow objects, shift the responsibility to the user, but be blunt about it. Don't say, //it's okay, we're gonna take care of serialization for you//, then strip the slashes off of properties of deep objects which might not even be part of WordPress whatsoever. This is a debugging nightmare.

Lastly I would like to apologize for my tone, but I've dealt with this issue for years now. There are bug reports opened 7 years ago that still haven't been resolved properly.

If nothing else it's really surprising to me that we're at 4.9.4 and such a mundane activity (persisting objects in meta) can cause so much trouble. Is it just me having these issues? Does no one else serialize stuff?"	tonybogdanov
	44659	Display custom fields		Options, Meta APIs		normal	normal	Awaiting Review	feature request	new		2018-07-27T23:10:34Z	2019-01-16T06:40:52Z	"There should be an option to display custom field data without having to acquire a plugin, rely on a theme supporting it, or hack a theme; surely this can be achieved in core, programmatically. Options could/should include (in order of importance):

Global Admin settings to:
1. Enable/disable the display of raw custom field data in a post
2. Option to rewrite outputted field data (add wrapper) that may include HTML
3. Specify where in a post, the field is output, depending of available hooks
4. Specify optional regex validation
5. Specify optional data regex replacement on output
6. Specify which options above, are returned via the API to other plugins
7. Specify optional CSS for any classes and IDs added in (2) above.
8. Specify whether a custom field should be a requirement/optional
9. Specify where the custom field box should appear on the post edit page
10. Option to rewrite outputted field data using PHP snippet

Even implementing only items 1-3 would provide a powerful and flexible way to manage meta data, and provide WP v5 with a significant improvement over earlier versions."	iantresman
	46266	Add auto-draft to list of statuses faked in get_sample_permalink()		Permalinks		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2019-02-17T15:07:12Z	2019-06-19T13:09:54Z	"In the new editor, we currently have to wait for a manual save or publish in order to edit the permalink. I'm working on resolving this in https://github.com/WordPress/gutenberg/pull/12009. To facilitate immediate editing of the permalink, we need to know the permalink structure at the time the editor is initialized. 

#45017 added added the `permalink_template` to the REST posts controller. The solution there uses `get_sample_permalink()` to generate the `permalink_template` value. This works for certain non-published post statuses by [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/post.php?rev=44670&marks=1339-1343#L1339 faking the post status] to `publish` when running `get_permalink()`. 

However, when we initialize a new post in the block editor, the status is `auto-draft`. So it returns a standard non-pretty permalink in the format `/?p=123`. We don't know the permalink structure until a draft is manually saved, or the post is published. 

By adding `auto-draft` to this list of statuses that are faked as published, it will return the proper `permalink_template` for `auto-draft` posts. "	earnjam
	56229	"Attempt to read property ""user_nicename"" on bool in link-template.php on line 265"		Permalinks	6.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-07-15T16:28:07Z	2022-08-27T22:41:31Z	"`PHP Warning:  Attempt to read property ""user_nicename"" on bool in .../wp-includes/link-template.php on line 265`

if the `$authordata == false` from `get_userdata()` then this will produce the error. If the current post object is not set, it will produce the error."	psimatrix
	59434	Changing permalink structure results in failure to save draft posts		Permalinks		normal	normal	Awaiting Review	defect (bug)	new		2023-09-23T21:07:44Z	2023-09-23T21:07:44Z	"Steps to reproduce:
1. On a fresh install change Permalink structure from plain to Month and date
2. Create new Blog Post
3. Click Save draft
EXPECTED: draft is saved
OBSERVED: Error ""Updating failed. The response is not a valid JSON response.""

Root cause:

POST https://abc.com/wp-json/wp/v2/posts/93?_locale=user
HTTP/1.1 404 Not Found
Date: Sat, 23 Sep 2023 21:05:16 GMT
Server: Apache/2.4.57 (CentOS Stream) OpenSSL/3.0.7
Content-Length: 196
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1"	omikheev
	58938	Custom permalink indexing issue		Permalinks	6.2.2	normal	critical	Awaiting Review	defect (bug)	new		2023-07-30T10:35:29Z	2025-07-11T02:55:04Z	"Good morning,

If we choose the personalized permalink and remove the ""/"" at the end.

The site will not index, except for the homepage.

No message will appear in the search console.

Bug found twice on sites that weren't indexed for more than 30 days.

This unblocked the situation in 24 hours.

Cordially,
LECLERC-WEB"	lavega45
	40176	Filter user_trailingslashit called with inconsistent $type_of_string for Post-Tags		Permalinks	4.7.3	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2017-03-16T22:32:05Z	2021-06-07T10:00:27Z	"It seems to be a general inconsistency issue with the handling of post-tags in combination with the user_trailingslashit function/filter. 

Assumption: `$type_of_string` should be consitent and of type **tag** or **post_tag**

== Testcase ==

Permalink Structure with Trailing-Slash: 
{{{
/%year%/%monthnum%/%day%/%postname%/
}}}

=== Testcode to produce debug output ===

{{{#!php
// disable canoncial redirects
add_action('redirect_canonical', '__return_false');

// show all events with tag/ urls
add_filter('user_trailingslashit', function($string, $type_of_url){
  if (strpos($string, 'tag/') !== false){

     echo 'Tag Link: ', $string, ' of type ', $type_of_url, PHP_EOL;
        
  }
}, 100, 2);
}}}

== Expected behaviour ==

Outputs like **Tag Link: /tag/mytag1/ of type post_tag** everytimes the url is of type **Tag**

== Current behaviour ==

On Post Pages: **Tag Link: /tag/mytag1/ of type category** for related post-tag links
On Canoncial Redirects: **Tag Link: /tag/mytag1/ of type category** AND **Tag Link: /tag/mytag1/ of type** (not set!)

== Identified Issues ==

**wp-includes/canoncial.php** line 425

its not checked if current page if of type **tag**

{{{#!php
foreach ( array('single', 'category', 'page', 'day', 'month', 'year', 'home') as $type ) {
}}}

**wp-includes/taxonomy.php** line 3882

the `$type_of_string` variable is set to **category** by default instead of `$taxonomy`

{{{#!php
$termlink = home_url( user_trailingslashit($termlink, 'category') );
}}}
"	Andi Dittrich
	50002	Hack in get_sample_permalink() can cause filters like post_link, and pre_post_link to have inaccurate post_status in admin		Permalinks	5.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-04-24T20:07:13Z	2026-08-23T08:31:03Z	"For context: https://github.com/aubreypwd/WordPress/issues/5

When editing a post (that is a draft) in the admin, add a filter to `post_link` you'll notice that the pass for `get_sample_permalink()` shows that `$post->post_status` is set incorrectly (un-truthfully) to `publish`.

This is because of a 12 year old block of code in `get_sample_permalink()`:

{{{
// Hack: get_permalink() would return ugly permalink for drafts, so we will fake that our post is published.
if ( in_array( $post->post_status, array( 'draft', 'pending', 'future' ) ) ) {
	$post->post_status = 'publish';
	$post->post_name   = sanitize_title( $post->post_name ? $post->post_name : $post->post_title, $post->ID );
}
}}}

In order for `post_link` and even `pre_post_link` filters to pass accurate info about a post, the patch I have attached is my first attempt at ensuring `get_sample_permalink()` still gets the same result, while not affecting `post_status`. Obviously I tested this, but I still feel some more testing will need to be done.

"	aubreypwd
	55066	Inconsistency in post URL when parent and child category assigned to the post and permalink structure includes category		Permalinks		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-02-03T19:41:05Z	2022-02-07T14:56:30Z	"This is the same issue fixed in WooCommerce https://github.com/woocommerce/woocommerce/pull/21299

Generally, we create parent category first and then child category. In this case, If we assign both the categories to the post then the URL will look like http://example.com/parent-category/post-name

Now if we create child category first and then the parent category and assign both the categories to the post then the URL will look like http://example.com/parent-category/child-category/post-name (Note the both categories in URL)

Reason for this we are sorting the categories by IDs in ascending order. In https://core.trac.wordpress.org/browser/tags/5.9/src/wp-includes/link-template.php?rev=52642#L228
{{{#!php
<?php
$cats = wp_list_sort(
	$cats,
	array(
		'term_id' => 'ASC',
	)
);
}}}

So the category created first is used to construct the URL.
This is causing issue with WPML. The translation of post have different URL structure due to the category IDs.

=== Test Steps
* Set the permalink structure to `/%category%/%postname%/`
* Create a parent category then a child category and assign to a post.
* Create another category e.g. Child2 and then a new category e.g. Parent2, Edit Child2 and choose Parent2 as parent category.
* Create another post and assign Child2 and Parent2 to the post.
* Compare the URLs of both post. Those are different due to category IDs."	5um17
	58764	Incorrect return type in `WP_Rewrite::using_index_permalinks()`.	costdev	Permalinks	2.7	normal	normal	Awaiting Review	defect (bug)	assigned	dev-feedback	2023-07-08T10:08:29Z	2026-05-22T08:47:30Z	"== Overview
In [8899], [https://github.com/WordPress/wordpress-develop/blob/6.2/src/wp-includes/class-wp-rewrite.php#L357-L373 WP_Rewrite::using_index_permalinks()] was documented to return `bool`. However, its actual return type is `int|false`.

A guard explicitly returns `false`, however the final return statement returns the result of a `preg_match()` call.

Per [https://www.php.net/manual/en/function.preg-match.php the PHP manual]:
> `preg_match()` returns 1 if the pattern matches given subject, 0 if it does not, or false on failure.
 
== Docs change, or `bool` cast?

=== Docs change
We could change the return type to:

{{{#!php
@return int|false 1 if permalink links are enabled and index.php is in the URL,
                  0 if permalinks are enabled but there was a failure,
                  false if permalinks are disabled.
}}}

However, I think this is an overly complicated return for a method called `using_index_permalinks()` that suggests, and is currently documented as, a simple `bool` return type.
 
=== `bool` cast: Is there a backward compatibility concern?
Yes, but a very small one.

WP Directory shows:
  - [https://wpdirectory.net/search/01H4T8ZA3EYAHNCJH57EKTSYH2 all 135 plugins] and [https://wpdirectory.net/search/01H4TEEJ598PDEK1WCRJ4C3SGW all 138 themes] that call this method use a loose check on the result, treating `0` and `false` as ""No, it does not use index permalinks"". These are safe from a `(bool)` cast.
  - It's possible that someone out there is using `1 === $wp_rewrite->using_index_permalinks()`, but as the method is documented to return `bool`, they're most likely using a loose check after an assumed attempt of `true ===` would have always failed, as the method currently ''never'' returns `true`.
 
=== When does `preg_match()` return `false`?

Per PHP-src, a call to [https://github.com/php/php-src/blob/c6b9db2131deda7ca0683a6006fe9ae8dd767f51/ext/pcre/php_pcre.c#L1465 preg_match] eventually leads to [https://github.com/php/php-src/blob/master/ext/pcre/php_pcre.c#L589C26-L589C58 pcre_get_compiled_regex_cache_ex].

The following failure conditions are listed:
- [https://github.com/php/php-src/blob/master/ext/pcre/php_pcre.c#L642 Empty regular expression]
- [https://github.com/php/php-src/blob/master/ext/pcre/php_pcre.c#L654 Delimiter must not be alphanumeric, backslash, or NUL]
- [https://github.com/php/php-src/blob/master/ext/pcre/php_pcre.c#L698 No ending delimiter '%c' found]
- [https://github.com/php/php-src/blob/master/ext/pcre/php_pcre.c#L700 No ending matching delimiter '%c' found]
- [https://github.com/php/php-src/blob/master/ext/pcre/php_pcre.c#L750 Unknown modifier '%c']
- [https://github.com/php/php-src/blob/master/ext/pcre/php_pcre.c#L752 NUL is not a valid modifier]
- [https://github.com/php/php-src/blob/master/ext/pcre/php_pcre.c#L764 The /e modifier is no longer supported, use preg_replace_callback instead]
- [https://github.com/php/php-src/blob/master/ext/pcre/php_pcre.c#L779 Failed to generate locale character tables]
- [https://github.com/php/php-src/blob/master/ext/pcre/php_pcre.c#L801 Compilation failed: %s at offset %zu]
- [https://github.com/php/php-src/blob/master/ext/pcre/php_pcre.c#L852 Internal pcre2_pattern_info() error %d]
- [https://github.com/php/php-src/blob/master/ext/pcre/php_pcre.c#L862 Internal pcre_pattern_info() error %d]
 
=== Which of these failures could happen here?
In the context of `WP_Rewrite::using_index_permalinks()`, there is only one possible failure: `WP_Rewrite::$index` contains the delimiter, `#`. [https://3v4l.org/M94EH 3v4l].

The `index` property is set to `'index.php'` by default. However, it's a `public` property and could therefore be directly overridden, or set in a subclass of `WP_Rewrite`.

WP Directory shows:
- [https://wpdirectory.net/search/01H4TBP4HXJZQ8G58BGB6A0QFE 0 plugins] directly assign a value to this property.
- [https://wpdirectory.net/search/01H4TBT9RAKWGY41CCPD320RBA 0 themes] directly assign a value to this property.
- [https://wpdirectory.net/search/01H4TBW9JQNVX9Q580Z0FPD6DH 1 plugin] extends the `WP_Rewrite` class, but does not set a value for the property.
- [https://wpdirectory.net/search/01H4TC0P3CYKZ27FK2KBGJQSP5 0 themes] extend the `WP_Rewrite` class.
 
=== Can we prevent the potential failure?
Yes, by using `preg_quote( $this->index, '#' )`. [https://3v4l.org/CYsS7 3v4l].
 
=== ''Should'' we prevent the potential failure?
As demonstrated by the failure, the regex is currently susceptible to special characters. When the default value of `$this->index` (`'index.php'`) is concatenated, the resulting pattern is `'#^/*index.php#'`.

See the `.`? The `preg_match()` call is currently vulnerable to `index[any character except newline]php`. [https://3v4l.org/LQSOG 3v4l].

Given this, it's possible that a developer out there has set a custom `$index` value that contains a regex pattern. However, I think that's very unlikely.

Contrarily, the flawed regex has the potential to cause false positives if, for example, the permalink structure starts with `/index2php`. While that's also unlikely, using `preg_quote()` here would prevent that false positive.

-----

== Call for opinions

1. Should we just change the documented return type and description? If so, what makes sense here?
2. OR should we cast the result to `bool`?
3. ADDITIONALLY should we use `preg_quote()` here to prevent the potential failure?"	costdev
	57804	"Missing word ""wordpress"" on the permalink that's why not opening a separate tour on the website"		Permalinks	6.1.1	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2023-02-24T17:17:03Z	2023-02-25T18:58:18Z	"Hi,
Maybe I found a bug coming from wordpress.
I bought a theme on Tour website and installed local host on xampp or wamp.
Could you please support me on the issue: when I click on a separate tour from the admin dashboard I could see the separate tour and the permalink is ok in that case,
but when I click from the main menu bar on the ""Tours"" and clicking on a separate tour it shows not found, errors like in the video I'm showing, besides the word ""wordpress"" is missing from the link, even I changed the permalinks to ""postname"" but it's showing again not found on the separate tour clicked from the main menu bar ""Tours"".
[https://youtu.be/Apl9UfkN12g]

So, how could you help me to solve that problem?"	artowpress
	48365	No 301 redirection for Numeric style permalink structure		Permalinks		normal	normal	Awaiting Review	defect (bug)	new		2019-10-18T02:43:11Z	2019-11-11T22:34:52Z	" 
Hi :)

If permalink structure is **Post name** style and I changed it to **Numeric**.

the post get a 301 redirect from 
http://newwp.local/hello-world/  to http://newwp.local/archives/1

but not so happen with permalink structure **Numeric**. 

when the current permalink structure is **Numeric** and I changed it to **Post name**  or anything else.
ideally, the post should get 301 redirection from 
http://newwp.local/archives/1  to http://newwp.local/hello-world/   but this is not happening. 

post giving 404 error instead of 301 redirecting to the correct URL format. when I try to access the post with http://newwp.local/archives/1 


Thanks
Naveen Giri

"	1naveengiri
	56359	Non-existent URLs show contents of homepage instead of 404 error		Permalinks	6.0	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-08-10T05:05:44Z	2023-05-18T15:28:40Z	"In a fresh install of WordPress, I noticed that non-existent URLs would show the contents of the homepage instead of returning 404 Not Found. For example, when WordPress is configured to use the “Plain” permalink structure (which is the default), going to `http://example.com/does-not-exist/` would display the homepage instead of returning 404. The only time a 404 might be shown is when trying to access a post by its ID. For example, `http://example.com/?p=9999`. Is there something wrong with the “Plain” permalink setting that causes it to display the contents of the homepage instead of returning 404?

"	softrain
	61824	Pages no longer allowed to have same permalink as images		Permalinks		normal	normal	Awaiting Review	defect (bug)	new		2024-08-05T16:04:51Z	2024-10-07T11:04:55Z	"In an existing website, if I have an image called sausages and I also already have a page called sausages, I get a 404 when attempting to visit the page. In addition, when looking at the page in the backend, it says the permalink will become sausages-2 when it is updated. I don't know but I wonder whether this is caused by both rows in wp_posts having a post_name of sausages. Previously this has not been an issue as the actual URL for the image would have wp-content/uploads/2024/08 (or similar added to it). Deleting the image results in the page working again (without the ""-2"")."	thommo
	56583	Permalinks in Multisite not working when Main Site is in a subdirectory		Permalinks	6.0.2	normal	normal	Awaiting Review	defect (bug)	new		2022-09-15T16:07:18Z	2022-11-25T07:05:15Z	"Hello
I have installed WP 6.0.2 on my Server in a subdirectory 
`/var/www/example.org/wp`
After install I activated Multisite.
I added a website ""example2"" to the main site and permalinks are working, e.g.:
`example.org/wp/example2`
Sites are found as e.g. `example.org/wp/example2/subsite`
Then I used an own domain `example2.org` instead of `example.org/wp/example2`
and now the subsites of `example2.org` are only accessable with Permalinks > Simple (e.g. `example2.org?p=123`) but not with subsite names (e.g. `example2.org/subsite`).
This seems to me a bug, as it should work since WP 3.5 as I read in doc.
Thank.frank"	francwalter
	50439	Post name permalinks htaccess directives do not consider subdirectory installation		Permalinks	5.4.2	normal	normal	Awaiting Review	defect (bug)	assigned		2020-06-20T12:40:36Z	2020-06-20T12:40:36Z	"Having wordpress installed in /wordpress/ subdirectory, and site address as root (following [https://wordpress.org/support/article/giving-wordpress-its-own-directory/#method-i-without-url-change method I in guide]), enabling post name permalinks gives 500 error on any page other than homepage or admin panel pages. This seems to be due to wordpress adding rewrite driectives to root .htaccess file, that seem to override the rewrite rules from method I. Changing permalinks to plain, making root .htaccess read-only (with no wp directives), or disabling them by putting an ifmodule with false condition around them fixes this.

I think that wordpress should consider subdirectory installation when writing htaccess directives."	filatovdanyl
	41272	Unattached media URLs broken for anything over 1000		Permalinks		normal	normal	Awaiting Review	defect (bug)	new		2017-07-07T23:09:21Z	2017-07-08T16:26:17Z	"'''Steps to reproduce'''

1. On your local computer, rename a file to {{{1180.jpg}}}
2. Upload the file to the Media Library
3. Visit {{{example.com/1180}}}

You will get a 404 broken link.

If you do the same for a 1, 2 or 3 digit filename, you won't see the issue.

{{{
example.com/31.jpg // Works
example.com/872.jpg // Works
}}}

The problem isn't just related to images.

{{{
example.com/1871.mp3 // 404
}}}
"	henry.wright
	35529	Updating to 4.4.1 causes new pretty permalinks for media to break existing permalinks	kraftbj	Permalinks	4.4	normal	normal	Awaiting Review	defect (bug)	assigned		2016-01-19T18:43:41Z	2022-08-01T19:36:30Z	"When updating a site from v4.0.9 to v4.4.1 at least one page (which is a top-level page for the site) is getting ""-2"" added on to its slug while an unattached image takes the original slug. This causes problems for SEO as well as breaking things that depend on results from functions like `is_page('slug')`."	nyodulf
	41008	WP_Error wrote instead of category name in wp_options table, category_base field		Permalinks	4.8	normal	normal	Awaiting Review	defect (bug)	new		2017-06-12T12:31:13Z	2020-09-08T21:18:17Z	"I just installed WordPress 4.8, yet I'm not sure it's a bug specific of this version or not. 

The issue is documented in the following post:

http://www.ryadel.com/en/catchable-fatal-error-object-of-class-wp_error-could-not-be-converted-to-string-wordpress-fix/

Long story short, it seems that sometimes (when some errors occurs, in my scenario was a I/O error) the category_base value of the wp_options table gets filled with a WP_Error json object instead of a category name. This raises an exception in the rewrite.php script (line 326) when the function tries to use that value against a regex, expecting a string.

Sadly enough, it doesn't seem easy to reproduce.
"	Neilgaiman
	50490	WordPress URL guessing cannot be stopped		Permalinks	5.4.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-06-27T17:03:02Z	2020-06-30T13:55:52Z	"Hello.  https://wordpress.org/support/topic/how-can-i-remove-redirect/

example:

https://www.ozgurbilgi.net/etiketler/aysegul-tecimer (There is no such link in the site.)

to https://www.ozgurbilgi.net/aysegul-tecimer-ustsuz-danscilar
**
I tried this**


{{{
function remove_redirect_guess_404_permalink( $redirect_url ) {
    if ( is_404() && !isset($_GET['p']) )
        return false;
    return $redirect_url;
}
add_filter( 'redirect_canonical', 'remove_redirect_guess_404_permalink' );
}}}


**I tried this**


{{{
DELETE FROM <code>wp_postmeta</code> WHERE <code>meta_key</code> = '_wp_old_slug'
}}}


**my htaccess**


{{{
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
}}}


**I tried this**


{{{
remove_action('template_redirect', 'wp_old_slug_redirect');
remove_filter('template_redirect', 'redirect_canonical');  
remove_action( 'post_updated',      'wp_check_for_changed_slugs',
}}}
 

I searched for it in the database but I couldn’t find it. I do not understand how it redirect.. I tried all this but these did not solve the problem. How can I stop this redirect? thanks

others examples

https://www.ozgurbilgi.net/etiketler/aysun-kayaci to ------> https://www.ozgurbilgi.net/aysun-kayaci-fatih-optu

https://www.ozgurbilgi.net/etiketler/seo  to -----> https://www.ozgurbilgi.net/icerik-pazarlamasinda-basarisiz-olmanizin-onemli-nedenleri


**I can stop guessing for the normal link but if it gets the prefix (etiketler like this) , the guessing cannot be stopped.**"	devrekli
	47565	WordPress permalinks flip in hebrew		Permalinks	4.9.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2019-06-19T20:13:06Z	2022-07-07T00:07:33Z	"I have a WordPress website in hebrew. My problem is when have a parent page and a child page, the child page url permalink is backward(the child page slug is after the parent page slug). I want first the parent slug then the child. When click Edit it shows it right, but when click ok it's not. The problem is only with this language, when it is english it is ok - Parent slug/Child slug.

Here is Child slug/Parent slug
[[Image(1.jpg)]]

If i click Edit:
Parent slug/Child slug
[[Image(2.jpg)]]"	alexstan92
	58125	WordPress post-name permalink is not compatible with Nginx server, working fine with Apache.		Permalinks	6.2	normal	normal	Awaiting Review	defect (bug)	new		2023-04-13T10:33:44Z	2023-05-04T14:36:56Z	"While I am setting up WordPress in my local environment, after setting up my WordPress I clicked on the sample page link from my home it redirected me to the sample page, and then I changed the permalink to the post-name nav link is not working properly and giving a 404 error.

I have provided an image link here.

[[Image(https://ibb.co/k84qkBV)]]"	lovesoni1999
	51953	"flush_rewrite_rules works not as the same as pressing ""save permalinks"" in backend (breaks system)"		Permalinks	5.5.3	normal	normal	Awaiting Review	defect (bug)	new		2020-12-07T08:23:09Z	2020-12-07T08:23:09Z	"Hello!

We got a strange issue in one of our production systems.

It has the latest WordPress version (5.5.e).
Deactivating all plugins is not possible on the production system.

If a plugin (e.g. after updating) is using flush_rewrite_rules, it breaks the permalinks for the woocommerce backend.

However, the fix to this issue is, to simply save the permalinks via the backend again and everything works fine.

Where does the implementation of the two functions differ?
Should both functions not work the same?"	rocket.works
	51715	get_permalink: stdClass treated as WP_Post causes bad behavour		Permalinks		normal	major	Awaiting Review	defect (bug)	new	has-patch	2020-11-05T18:59:20Z	2020-11-05T19:05:29Z	"Normally get_permalink() expects post as **int|WP_Post**
But actually, we can call get_permalink() with a custom stdClass who has needed properties to work (retrieve posts with custom query), but the hooks used in the function get_permalink()

- post_link_category
- pre_post_link
- post_link_category
- post_link

expects WP_Post object as parameter not a stdClass

example:
{{{#!php
<?php
		/**
	 * @param string $permalink
	 * @param WP_Post $post
	 * @param bool $leavename
	 */
	function custom_link( $permalink, $post, $leavename = false ) {
		my_first_function( $post );

		my_second_function( $post );
	}

	/**
	 * @param WP_Post $post
	 */
	function my_first_function( $post ) {
		if ( $post instanceof WP_Post ) {
		//FALSE
		}
	}

	/**
	 * @param WP_Post $post
	 */
	function my_second_function( WP_Post $post ) {
		//FATAL ERROR
	}


	add_filter( 'post_link', 'custom_link', 10, 3 );

	/**
	 * @var stdClass $my_custom_post
	 */
	get_permalink( $my_custom_post );
}}}
"	samiker
	41132	permalinks are broken when using PHP7.0-fpm with nginx		Permalinks	4.8	normal	normal	Awaiting Review	defect (bug)	new		2017-06-22T21:34:07Z	2024-04-10T23:12:16Z	"Setting permalinks to anything but plain causes a white screen of death with the nginx error message:

the error is ""2017/06/22 19:55:49 [error] 20482#20482: *28040 FastCGI sent in stderr: ""Primary script unknown"" while reading response header from upstream, client: MYIPHERE, server: MYSERVER, request: ""GET /apps/my-secret-drinks-android/ HTTP/1.1"", upstream: ""fastcgi://unix:/var/run/php/php7.0-fpm.sock:"", host: ""MYHOST"", referrer: ""https://MYDOMAIN/apps/""

This is my Nginx site configuration: https://paste.ngx.cc/7e

It was working when I was using php5-fpm and only started after upgrading php5-fpm to php7.0-fpm"	Towlieban
	47813	permalinks broken when article name is numeric(if the post id above 1000)		Permalinks	5.2.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-07-31T20:17:19Z	2019-08-01T01:32:07Z	"This is a follow-up to #5305.

The problem on ticket #5305 stil happens if the post have the id above 1000

Steps to reproduce:

Create a post without title(it shout have the id above 1000)
Change the permalink structure to post name (/%postname%/)
Click on the post permalink and try view it

it sends back to the archive page of the post_type instead of the single page of the post "	guigmonteiro
	39670	urlencoded non-alphanumeric permalink		Permalinks	4.8	normal	normal	Awaiting Review	defect (bug)	new		2017-01-23T16:47:15Z	2020-12-15T21:49:22Z	"I don't know it is the problem of wordpress or not. It may yes or it may other problem like server or php setting.

When I update new version of wordpress, some permalink that contains non-alphanumeric characters not working. Because $req_uri of WP::parse_request() in class-wp.php has urlencoded.

So I think it's better to urldecode to proceed parsing.
{{{#!php
                        list( $req_uri ) = explode( '?', $_SERVER['REQUEST_URI'] );
                        $req_uri = urldecode($req_uri); // added to fix urlencoded permalink
                        $self = $_SERVER['PHP_SELF'];
}}}
"	jeongsu
	60675	Add hook for wp_check_for_changed_slugs()		Permalinks	6.4.3	normal	normal	Awaiting Review	enhancement	new		2024-03-02T16:09:18Z	2025-11-19T16:59:41Z	"The wp_check_for_changed_slugs() function adds old post slug (post_name) to the list is post_name was changed. And it do it always without ""make sense"" check.

For example I just publish a new post and after a couple of minutes change the post_name (slug), because I forgot to change it before publishing. And the old slug is added to the list, but this make no sense, because this is new post - it newer indexed yet and newer pushed somewhere (if I don't have auto publish to some social network functionality), so the saved post slug meke no sense here.

I think there should be possibility to hook the function and disable it after custom checks.

I suggest to add the following hook:

{{{#!php
<?php
function wp_check_for_changed_slugs( $post_id, $post, $post_before ) {
	// Don't bother if it hasn't changed.
	if ( $post->post_name == $post_before->post_name ) {
		return;
	}

	// We're only concerned with published, non-hierarchical objects.
	if ( ! ( 'publish' === $post->post_status || ( 'attachment' === get_post_type( $post ) && 'inherit' === $post->post_status ) ) || is_post_type_hierarchical( $post->post_type ) ) {
		return;
	}

	/**
	 * Allowes to stop {@see wp_check_for_changed_slugs()} function functionality.
	 *
	 * @param bool    $is_skip      If true the {@see wp_check_for_changed_slugs()} will be stopped.
	 * @param WP_Post $post         The post object.
	 * @param WP_Post $post_before  The previous post object.
	 */
	if ( apply_filters( 'skip_wp_check_for_changed_slugs', false, $post, $post_before ) ) {
		return;
	}

	$old_slugs = (array) get_post_meta( $post_id, '_wp_old_slug' );

	//  The rest of the function code
}
}}}
"	Tkama
	61261	If redirect_guess_404_permalink returns a LIKE condition result, the redirect should have 302 code		Permalinks		normal	normal	Awaiting Review	enhancement	new		2024-05-21T12:44:53Z	2024-05-21T12:44:53Z	"Google Chrome is caching 301 redirect more persistent than ever and this become a problem for any redirects that are temporarily or guessed. The guess can be wrong.

Imagine you have a page /our-team-activities/ and made a wrong link to it /our-team/ — redirect is quick and no one is noticing. And then you added new /our-team/ page and have troubles to open it. You can use incognito and finally be satisfied that page exists, but your colleagues cannot open it too, and you have two options: make a different slug for this page or add get-parameter to a link — both solutions are no ideal."	oglekler
	50135	Proposal: Permalink structure tags grouping Mandatory and Available		Permalinks		normal	minor	Awaiting Review	enhancement	new		2020-05-08T23:53:49Z	2020-05-09T09:37:46Z	"Permalink structure setting page  wp-admin/options-permalink.php) allows custom structure.

Since Permalink should be unique, it needs %post_id% or %postname%.
[https://wordpress.org/support/article/using-permalinks/](Using Permalinks)

It might be helpful if the setting page notifies that %post_id% or %postname% is mandatory.
"	ounziw
	42148	url_to_postid plain permalinks for CPTs		Permalinks	1.0	normal	normal	Awaiting Review	enhancement	new	has-patch	2017-10-08T11:42:20Z	2026-10-16T07:26:30Z	"Would be nice to have {{{url_to_postid}}} working with plain permalinks for custom post types.

There's are currently some issues in {{{url_to_postid}}} where the wrong ID is returned for custom post type plain permalinks (query-based).

{{{
<?php
add_action( 'init', function() {
	/** Register a post type */
	register_post_type( 'findme', array(
		'public' => true
	) );

	/** Create a post */
	$post_id = wp_insert_post( array( 'post_type' => 'findme', 'post_status' => 'publish' ) );
	$findme = get_permalink( $post_id );
	$found = url_to_postid( $findme );

	/** Guess it */
	printf( ""%s (%s) == %s (%s)"", $post_id, $findme, $found, get_permalink( $found ) );
	exit;
} );
}}}

{{{30 (http://localhost:8080/?findme=30) == 0 ()}}} and {{{30 (http://localhost:8080/?findme=30) == 2 (http://localhost:8080/)}}} if the frontpage is setup to point ot a post.

Why is it not working? Why is the frontpage post being returned? Let's see how the {{url_to_postid}} function works:

{{{
// First, check to see if there is a 'p=N' or 'page_id=N' to match against
if ( preg_match('#[?&](p|page_id|attachment_id)=(\d+)#', $url, $values) ) {
  $id = absint($values[2]);
  if ( $id )
    return $id;
}
}}}

Then?

{{{
if ( trim( $url, '/' ) === home_url() && 'page' == get_option( 'show_on_front' ) ) {
  $page_on_front = get_option( 'page_on_front' );
  if ( $page_on_front && get_post( $page_on_front ) instanceof WP_Post ) {
    return (int) $page_on_front;
  }
}
}}}

Uh, wait what... already? So a short-circuit without checking the custom post types. And that's understandable, since there is inherently no support for custom post type ID mappings as pointed out by:

{{{
// Check to see if we are using rewrite rules
$rewrite = $wp_rewrite->wp_rewrite_rules();

// Not using rewrite rules, and 'p=N' and 'page_id=N' methods failed, so we're out of options
if ( empty($rewrite) )
  return 0;
}}}

What stands in our way to find the URL earlier?

1. The query var is not one of p, page_id, attachment_id
2. The query var value for CPTs is not necessarily, and most often not numeric (the post_title)

A proposed solution would be to look at the query parameters much higher, maybe by injecting the custom ones, ones that support slugs as well, since WordPress sets the {{{page_title}}} for a CPT itself, so that {{{\d+}}} check would fail.

Use case? Well, this was encountered when trying to paste plain oEmbed URLs for a custom post type (https://github.com/gravityview/GravityView/issues/927)."	soulseekah
	42702	"Most common issue inside post edit - ""Links Live search""."		Permalinks	4.9	normal	normal	Awaiting Review	feature request	new		2017-11-26T09:59:46Z	2017-11-26T09:59:46Z	"'''Most common issue in WP Back End Search''':

My original parmalink is not matching with Search URL and for that way i have trouble in interlinking of blog articles to 1 post to another one because of wrong category URL.

I have set Primary category (Messaging).
But in Search you will see wrong category (Linux).

For more details please view below 2 attach files carefully…

https://drive.google.com/file/d/1XoDVa_zMygIWs8bFfgaSag4-iou7BCl3/view?usp=sharing

https://drive.google.com/file/d/1u5ZlOXAA_5q30qo-HLnO8Qtz75tJkj3Q/view?usp=sharing

For more details:
This above issue is in 2-fold i will try to explane you below…

Our website permalinks are configured like so: /%category%/%postname%/

The first issue is that although a '''primary category is set for all of my posts''', when using the WordPress Link button, WordPress does not always insert the link using the primary category in the URL. I read that other people were having a similar issue where the categories where being inserted in alphabetical order. This does not seem to be the case for me as for the most part the permalink is working correctly, but not accross every post.

The second issue is that the post is not redirecting to the url which contains the primary category eg.

example.com/secondary/test-post
is not being redirected to the correct permalink as shown below
example.com/primary/test-post

Instead, the post is visable on both URL’s.

And for that way we have trouble in interlinking of blog articles to one post to another one because of wrong category URL

But if any fix in functions.php can help to resolved above issue and for that we need your help.

Your help would be appreciated.

Thank you."	Softfully
	61618	changing permalink structure		Permalinks		normal	normal	Awaiting Review	feature request	new		2024-07-10T06:14:27Z	2025-11-19T16:59:19Z	Hi Team, is there any way with which we can change permalink structure of all the media from old structure to plainname (new structure)?	beingbaban
	25582	Ping status always disabled when quick editing a post type that doesn't support trackbacks		Pings/Trackbacks		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2013-10-13T04:24:29Z	2022-08-04T20:03:51Z	"There isn't much useful documentation for the ""trackbacks"" post type feature. I expected it to function similar to the ""comments"" feature, however, it appears to be for enabling the ""Send Trackback"" meta box on the edit screens.

That being the case, it's currently being used to prevent the ""ping_status"" check box from displaying in quick edit and bulk edit if a post type doesn't have the trackback feature support, causing the ""ping_status"" to be closed whenever a page is edited in one of those modes.

Steps to reproduce:

1. Display the ""Discussion"" meta box on a page and allow trackbacks, but disable comments and update.
2. Go back to the page list table and quick edit the same page (only the comments checkbox is available). Enable comments and save.
3. Visit the edit screen again and trackbacks have been disabled.

Considering there aren't any instances in core where ""default_ping_status"" relies on a post type supporting the trackback feature, the ""ping_status"" checkbox should probably always be visible in quick edit and bulk edit modes."	bradyvercher
	56380	The pingback function does not work on internal or external links		Pings/Trackbacks	6.0	normal	normal	Awaiting Review	defect (bug)	assigned		2022-08-15T15:21:44Z	2022-08-15T15:35:18Z	"Whenever I publish an article, I add some internal and external links, but there is no pingback for internal and external links. 
I have published an article [https://freetestpractices.com/2022/08/15/short-essay-on-wordpress/] and added some external and internal links, but no pingback received (Internal link). I have also changed themes (Generatepress) and deactivated all the plugins. Unfortunately, it's still not working. How to get help in this matter, please help me.
"	awdhesh19
	38282	Trackbacks do not return proper XML on double entries and flood		Pings/Trackbacks		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2016-10-11T09:49:18Z	2019-04-01T15:10:22Z	"If an comment is double or part of a comment flood, `wp_new_comment()` tends to `wp_die()`. 

With #36901 we can now get a proper `WP_Error` instead and utilize this in ''wp_trackback.php''"	websupporter
	49703	do_all_pings brings race back		Pings/Trackbacks	5.4	normal	normal	Awaiting Review	defect (bug)	new		2020-03-26T02:54:21Z	2020-03-26T06:20:14Z	In ticket #2088, the patch changes if condition to while loop to fix race condition, but the current version uses if condition again, which brings race problem back. The patch is from ticket #36824.	caseqiu
	45389	trackback_url_list() trackback excerpt for multibyte correspondence	SergeyBiryukov	Pings/Trackbacks		normal	normal	Future Release	defect (bug)	reviewing	needs-unit-tests	2018-11-21T08:15:18Z	2019-01-16T02:57:17Z	In the case of multibyte, the last letter of the trackback excerpt may be garbled.	ishitaka
	61962	Admin: remove_menu_page throws PHP warning when $menu is null		Plugins		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-08-30T04:05:45Z	2025-05-21T13:45:59Z	"error.log:

{{{
[Thu Aug 29 21:48:07.078821 2024] [php:warn] [pid 16202] [client 172.69.58.130:44688] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/example.com/shop.example.com/wp-admin/includes/plugin.php on line 1853, referer: https://shop.example.com/wp-admin/plugins.php?plugin_status=all&paged=1&s

[Thu Aug 29 21:48:20.875148 2024] [php:warn] [pid 16197] [client 172.69.59.57:34548] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/example.com/www.example.com/wp-admin/includes/plugin.php on line 1853, referer: https://example.com/wp-admin/

[Thu Aug 29 21:49:08.193887 2024] [php:warn] [pid 16191] [client 172.69.58.29:63630] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/example.com/shop.example.com/wp-admin/includes/plugin.php on line 1853, referer: https://shop.example.com/wp-admin/index.php

[Thu Aug 29 21:50:08.131920 2024] [php:warn] [pid 16388] [client 172.69.58.223:63418] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/example.com/shop.example.com/wp-admin/includes/plugin.php on line 1853, referer: https://shop.example.com/wp-admin/plugins.php?plugin_status=all&paged=1&s

[Thu Aug 29 21:50:21.769929 2024] [php:warn] [pid 16193] [client 172.69.58.231:25962] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/example.com/www.example.com/wp-admin/includes/plugin.php on line 1853, referer: https://example.com/wp-admin/

[Thu Aug 29 21:51:08.308475 2024] [php:warn] [pid 16384] [client 172.69.58.183:64764] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/example.com/shop.example.com/wp-admin/includes/plugin.php on line 1853, referer: https://shop.example.com/wp-admin/index.php

[Thu Aug 29 21:52:22.795278 2024] [php:warn] [pid 16202] [client 172.69.58.24:28566] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/example.com/www.example.com/wp-admin/includes/plugin.php on line 1853, referer: https://example.com/wp-admin/

[Thu Aug 29 21:53:05.970841 2024] [php:warn] [pid 16197] [client 172.69.58.163:36022] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/example.com/shop.example.com/wp-admin/includes/plugin.php on line 1853, referer: https://shop.example.com/wp-admin/index.php

[Thu Aug 29 21:53:08.902748 2024] [php:warn] [pid 16197] [client 172.69.58.163:36022] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/example.com/shop.example.com/wp-admin/includes/plugin.php on line 1853, referer: https://shop.example.com/wp-admin/plugins.php?plugin_status=all&paged=1&s

[Thu Aug 29 21:53:23.836918 2024] [php:warn] [pid 16191] [client 172.69.59.91:51414] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/example.com/www.example.com/wp-admin/includes/plugin.php on line 1853, referer: https://example.com/wp-admin/
}}}
"	anonymized_15266067
	46982	Avoid loading dot files in the mu-plugins directory.		Plugins	2.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2019-04-18T19:08:07Z	2026-02-02T15:36:56Z	"In some circumstances, metadata files are generated in the `mu-plugins` directory. For example, editing a plugin file `my-mu-plugin.php` folder using a Mac via SMB can result in a metadata file `._my-mu-plugin.php` being created. Because of the way `wp_get_mu_plugins()` works, this metadata file will be loaded as a valid plugin and the contents of the file will be output in the page header.

I'm attaching a small patch to avoid loading `._` files in the unfortunate event that they are created."	dcavins
	57693	Browser is not recognizing font from WordPress export		Plugins		normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2023-02-10T18:37:29Z	2023-02-10T19:51:00Z	"I've used the 'Simple Static, plugin to export my site out as an HTML file, solely because that was the request of the client. The plugin also exports CSS fils, js, theme, pretty much everything needed for it to look the way I built it in WordPress. 

Now, when I export and test on my computer everything loads correctly (I've tried 3 different browsers). But for the client, the site won't load the correct font. I've even gone into the exported file and styled each individual instance where the font is used. Didn't think I would have to do that because it's a universal font. 

Has anybody run into a situation similar, and how did you work around it. "	jthomas2
	59022	Bulk Action Issue For Plugin  Component		Plugins		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-08-09T12:39:29Z	2023-08-10T05:31:03Z	"When a user chooses a bulk action to enable and disable an auto-update plugin in the plugin field, it doesn't operate as intended. Likewise, if all plugins are set to auto-update by default and the user chooses to enable auto-update in the bulk action selection, the action instead does an enable to deactivate auto-update.

https://www.awesomescreenshot.com/video/19806536?key=c795fd47ff5abdbfcb54f4499cebd0f0"	harsh175
	53384	"External plugins who can auto-update are always listed under ""auto-updates"" disabled"		Plugins	5.7.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-06-11T13:57:21Z	2024-08-27T11:47:29Z	"On my site, I have four plugins who can auto-update yet in the plugin screen they are shown under ""auto-updates disabled"". 

I think it would be better if those come under a list that has the name: ""external updating"" or something of that nature. OR a way for devs to tell WP their plugins can auto update so it doesn't appear on that list...? 

In it's current implementation, it can give the wrong idea to a site admin. "	NekoJonez
	52443	Extra networkwide param in activate_plugin function		Plugins		normal	normal	Awaiting Review	defect (bug)	new		2021-02-04T08:52:18Z	2021-02-04T08:52:18Z	"The issue is an extra $_GET parameter that is added in the `activate_plugin` function.

{{{#!php
<?PHP //wp-admin/includes/plugin.php:639
$_GET['networkwide'] = 1;
}}}

In my case, I had been using the  `activate_plugin` function in the `mu-plugins` directory to protect some plugins against deactivation.

As a result, this parameter had an impact on the OAuth authorization process in one of the plugins because this `networkwide` has been used to build the signature.

I know the size of the potential impact is really small but in my opinion, this parameter should be unset at the end of the function."	dam6pl
	47730	Function plugins_api is not triggered for non wp-marketplace plugins		Plugins	5.2.2	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2019-07-18T07:32:17Z	2019-08-23T07:28:43Z	"I currently try to setup a private-hosted repository for my own plugins / themes and tried to do that with the filter hooks in the plugin-install.php file - the documentation of it indicates that this should be possible, even on the latest version (5.2.2).

I activated my own plugin on my bedrock (https://roots.io/bedrock/) setup and following the tutorial https://rudrastyh.com/wordpress/self-hosted-plugin-update.html#comments i tried to implement the update mechanism. 

I think while doing that i stumbled upon a bug that causes wordpress to not trigger the plugins_api method at all - i can hook into the ""site_transient_update_plugins"" filter to display the update-badge next to the plugins navbar item but the update text / button and show-details button for my plugins wont show up."	marthm
	61215	Getting warning in Hello Dolly Plugin when checking with PHPCS		Plugins		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-05-15T06:51:36Z	2025-06-25T17:01:55Z	line no. 49 | WARNING | mt_rand() is discouraged. Use the far less predictable wp_rand() instead	narenin
	45861	Global variable in plugin main file		Plugins		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2019-01-08T10:51:14Z	2025-07-15T13:23:12Z	"In the main plugin file, if we declare a variable, it will be used as a global variable in WordPress.

This might lead to conflict for global variable names.

The code is in [https://core.trac.wordpress.org/browser/trunk/src/wp-settings.php#L342 wp-settings.php] file.

A simple fix is creating a function to load a plugin and include main plugin file inside that function. So the scope is function scope, not global scope."	rilwis
	65676	Hello Dolly Translation Bug (wp-content/plugins/hello.php)		Plugins		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-07-20T18:11:34Z	2026-10-18T08:21:09Z	"Problem: The plugin's only user-facing string wrapper call __( 'Quote from Hello Dolly song, by Jerry Herman:' ) was missing the 'hello-dolly' text domain argument.

**Impact:** The text fell back to the default core translation domain and failed to load translated text from Hello Dolly's localization file."	fahimmurshed
	55616	Helper function to unhook anonymous class methods		Plugins		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-04-25T13:12:13Z	2022-05-13T08:50:06Z	"Problem: it’s pretty common (even if it’s not polite) for plugins to use a class constructor to hook their own public methods into things, but doing so makes it ''near-impossible'' to unhook procedurally.

Solution: I just ran across the following function on StackExchange, and imagined something similar could be quite useful to have globally available:

https://wordpress.stackexchange.com/a/304861

It’s gnarly, but it works, and I think having WordPress core include this functionality makes more sense than having plugin authors all include their own version of it."	johnjamesjacoby
	60448	Iframe from `$errmsg` is now removed from error message in the plugins page		Plugins	6.3	normal	normal	Awaiting Review	defect (bug)	new		2024-02-06T21:27:23Z	2024-02-14T06:08:56Z	"We have a `die` with a message in case of a plugin activation failure here: https://github.com/Automattic/sensei/blob/1933acc544be8a98866bec1b8790a5b195d5b4c7/sensei-lms.php#L65.

The message used to work until WordPress 6.3, and it stopped working.

I think it was broken with this change: 
[https://github.com/WordPress/WordPress/commit/768f51f60c308a06492dcda163b80c1c3ff6ebb9#diff-2740240ae408614059218246dd59f4bea9590b6c3f78a2bba71b1afbf8315e7a changeset 56573, wp-admin/plugins.php]

The reason seems to be because the iframe is now concatenated in the `$errmsg` variable, which is sent to the `wp_admin_notice`, and later it goes through the `wp_kses_post`, being removed."	renathoc
	42656	Multisite Global $pagenow variable		Plugins	5.1	normal	normal	Awaiting Review	defect (bug)	reopened		2017-11-22T03:58:15Z	2019-03-22T13:35:45Z	"When the site is configured as multisite, plugins are loaded before ""vars.php"", causing plugin getting null value when trying to access the $pagenow variable.

Sample Plugin : Brightcove Video Connect
Defect : Setting page is empty
Caused by : In the setting page logic, it will check whether $pagenow is in the array of 'admin-ajax.php', 'admin.php', 'post-new.php', 'edit.php', 'post.php'. And since the $pagenow is not initialized yet, it will just display an empty page."	thorthecoder
	43716	"Not work ""option_active_plugins"" filter in front-end"		Plugins	4.9.5	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2018-04-07T07:46:22Z	2022-03-07T14:42:29Z	"The ""option_active_plugins"" filter work just in admin and not work in front-end.
i test wp_get_active_and_valid_plugins function in wp-includes/load.php#L598
the ""$active_plugins"" correct and work in front-end but related filter not work and i have to use ""alloptions"" filter for work"	hamedmoodi
	59413	PHP Warning:  Undefined property: stdClass::$plugin		Plugins	6.3.1	normal	normal	Awaiting Review	defect (bug)	new		2023-09-20T17:17:32Z	2023-10-27T22:06:50Z	"Just checking php www-error.log and saw that there was this error:

PHP Warning:  Undefined property: stdClass::$plugin in /var/www/html/my-website/wp-admin/includes/class-wp-automatic-updater.php on line 228

Site is working as usual but the log is full of these warnings.

PHP 8.0.27
Apache 2.4.37
WordPress 6.3.1"	zerofoolcoder
	55415	Pluggable.php file is causing Fatal Errors		Plugins		normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2022-03-17T17:46:55Z	2022-03-17T19:06:42Z	"I'm facing an issue with my WordPress install. I have two plugins getting a PHP Fatal Error due to the pluggable.php file on my site using PHP 8.0. My host is Closte (closte.com). The host doesn't allow changes to WP core files. The plugin developers are saying that the issue is WordPress and not the plugin. I'm using the latest versions of the plugins and the latest version of WP. Here is the error I'm seeing:

1. PHP Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /wp-content/plugins/updraftcentral/site-management.php:486

Would really prefer not to downgrade my PHP version so any help would be appreciated.
"	ceceet
	66346	"Plugin Dependencies: Undefined array key ""activateUrl"" for active plugins on multisite"		Plugins	6.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-20T08:13:06Z	2026-10-29T08:28:00Z	"On multisite, `WP_Plugin_Dependencies::check_plugin_dependencies_during_ajax()` reads `$status['activateUrl']` without checking that it is set.

The method sets `activateUrl` only when the current user can activate the plugin and the plugin is inactive:

{{{#!php
<?php
if ( current_user_can( 'activate_plugin', $plugin_file ) && is_plugin_inactive( $plugin_file ) ) {
        $status['activateUrl'] = add_query_arg( /* ... */ );
}

if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) {
        $status['activateUrl'] = add_query_arg( array( 'networkwide' => 1 ), $status['activateUrl'] );
}
}}}

The second block runs for every super admin. When the plugin is already active, on the current site or network-wide, `activateUrl` was never set.


== Steps to reproduce

1. Use a multisite install and log in as a super admin.
2. Network-activate any plugin, for example `hello-dolly/hello.php`.
3. Send a `check_plugin_dependencies` AJAX request with `slug=hello-dolly` and a valid `updates` nonce.
4. The PHP log shows `Undefined array key ""activateUrl""`, and the response contains `""activateUrl"":""?networkwide=1""`.

Expected: no warning, and no `activateUrl` in the response. Single-site already behaves this way for active plugins.


The code was introduced in [57545] with Plugin Dependencies. See #22316."	mukesh27
	50319	Plugin Page : Remove unnecessary space in table nav topbar in Plugin Page on a small device		Plugins	5.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-06-04T17:22:47Z	2020-06-05T14:28:08Z		pravinparmar2404
	58492	Plugin Search Issue: Trimming of Keywords with Ampersand (&) upon Page Refresh		Plugins	6.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-06-08T12:45:54Z	2023-07-14T15:41:28Z	"I have encountered a peculiar issue with the plugin search functionality in the WordPress backend. When performing a plugin search using keywords that contain an ampersand (&) character and refreshing the page twice, the keywords are getting trimmed, resulting in incomplete search results.

Steps to Reproduce:

1. Access the WordPress backend.
2. Navigate to the Plugins section.
3. In the search box, enter keywords that include an ampersand character, e.g., ""search & replace""
4. Press Enter or click the Search button.  
5. Note the search results.
6. Refresh the page twice by pressing F5 or using the browser's refresh button.
7. Observe that the search keywords are being trimmed to ""search"" only.
8. The search results are now incomplete, as the full keywords were not used for the search.

Expected Results:
The plugin search should retain the complete keywords, including the ampersand character, upon page refreshes. This would ensure accurate and consistent search results, even after multiple page refreshes.

Actual Results:
Upon refreshing the plugin search page twice, the keywords containing an ampersand (&) are trimmed, resulting in incomplete search results.

Reproducibility:
Consistently reproducible.
"	adhun
	50349	"Plugin Update deletes plugin and showing ""could not delete old plugin"" message."		Plugins	6.2	normal	normal	Awaiting Review	defect (bug)	new		2020-06-09T16:54:11Z	2023-04-21T14:06:08Z	"I just came across this on my local machine (Windows).

I had a plugin directory open in vscode editor. I had also previously edited one of the files in that plugin (added {{{error_log}}}s in one of the functions for testing). I may or may not have had same file open with further unsaved changes (I don't know at this point).

In the Plugins page I clicked the ""update now"" in the plugin row (directory was still open in vscode).
The update resolved with a ""Could not delete old plugin"" error notice. However the plugin was removed and directory is left empty."	apedog
	41141	Plugin edit: Missed message about making file writeable		Plugins		normal	normal	Awaiting Review	defect (bug)	new		2017-06-23T18:09:08Z	2017-06-23T18:25:28Z	"Again, the messages are easy to miss. This may get scooped up in one improving ticket, but worth reporting.

[[Image(https://cldup.com/zzF9FEjMvT.png)]]
"	karmatosed
	41139	Plugin editing: Should the 'browsing' stand out more?		Plugins		normal	normal	Awaiting Review	defect (bug)	new		2017-06-23T17:56:50Z	2017-06-23T18:25:28Z	"This message seems to get lost on the page:

[[Image(https://cldup.com/ZKUO4NfdPq.png)]]

While we are reviewing this making it not just say 'active' and making the message a bit more relatable could be good.
"	karmatosed
	44072	Plugin repository search error - cannot find plugin with Author's name		Plugins		normal	normal	Awaiting Review	defect (bug)	new	close	2018-05-14T13:02:45Z	2023-10-20T00:33:06Z	"If I search with Author option selected in plugin repository (/wp-admin/plugin-install.php), no plugin is found unless the author name is present in the Plugin name or may be somewhere in the description.

Example:

I searched with `Takayuki Miyoshi` as a Keyword and got a handful of result, but when I selected Author, it returned no result."	subrataemfluence
	49454	Plugins list page update available shows 3 plugin to update but actually have only 2 plugins to update		Plugins	5.3.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-02-17T12:15:11Z	2020-02-17T13:19:36Z		vivek5512
	37470	Shiny Updates: Erroneous Plugin Deactivation		Plugins	4.2.4	normal	normal	Future Release	defect (bug)	reopened	has-patch	2016-07-26T15:53:12Z	2017-08-08T21:40:31Z	"I recently noticed with a plugin of mine, that if you change the name of the main file in a version update, i.e.:

`plugin-name/plugin-name.php` => `plugin-name/different-name.php`

the plugin becomes inactive after the update. This was not the case prior to Shiny Updates and is still an issue in trunk. I installed 4.1.x just to be sure.

Steps to reproduce:
1. Put plugin on .org repo
2. Install/activate plugin on a site.
3. Change the name of the main file in svn and commit it with a version bump.
4. Update the plugin with Shiny Updates.

"	voldemortensen
	43489	Strengthen resilience of wp_register_plugin_realpath to support Gutenberg		Plugins		normal	normal	Awaiting Review	defect (bug)	new	needs-unit-tests	2018-03-07T18:25:25Z	2020-12-01T05:24:00Z	"For many years now I've been working in a Windows development environment with multiple subdirectory installs referencing plugins using symlinks. 

Every now and then I get problems due to plugin files apparently not being present when they quite clearly are. I have not been able to track it down. I think it's a bug in PHP associated with OpCache.  

Anyway, the bottom line is that sometimes this problem, or something similar, results in the `$wp_plugin_paths` array containing entries with a null value for `$realdir`.

This can lead to the following:

`Warning: strpos(): Empty needle in C:\apache\htdocs\hm\wp-includes\plugin.php on line 658.`

This message has the uncanny knack of happening at the most inappropriate times.

Now, with Gutenberg looming, the problem is further reducing my ability to create content locally; Gutenberg can't handle the unexpected Warnings and Notices from a development server and fails. See https://github.com/WordPress/gutenberg/issues/5439 

To reduce the likelihood of the problem I'd like to propose a change to `wp_register_plugin_path()` to cater for a false value being returned from the `realpath()` PHP function. 

The proposal being that if `$plugin_realpath` does appear to be null, then don't add an entry in `$wp_plugin_paths`. 

This change will prevent the warning message being issued from plugin_basename()'s test
{{{
if ( strpos( $file, $realdir ) === 0 ) {
}}}

and therefore increases the robustness of the system. 

Bottom line. 
- `realpath()` may return false. 
- This should be catered for.








"	bobbingwide
	41140	Theme/plugin editing: Long file list goes off page		Plugins		normal	normal	Awaiting Review	defect (bug)	new		2017-06-23T18:01:40Z	2017-06-23T18:25:28Z	"If you have a long list of files, the list goes a long way down. Could we paginate? Have a 'scrollbox' (probably bad idea)? Have some better way of showing these?

[[Image(https://cldup.com/91gj2sr2jz.png)]]
"	karmatosed
	60318	Update URI: false - sometimes not working		Plugins		normal	normal	Awaiting Review	defect (bug)	new		2024-01-22T14:21:01Z	2024-10-11T12:45:40Z	"I've recently copied and modified a small plugin from wp-org for my own need.
I've set the {{{Update URI: false}}} header. However on the Plugins page, the View Details link still leads to the original plugin and the Enable/Disable auto-updates button link is present.

I've changed the main plugin file name to something else, but not the directory name, however the View Details link is still present.

I've removed the {{{readme.txt}}} file and that seems to do the trick. 

To test this, I've then tried restoring the {{{readme.txt}}} file, removed the {{{Update URI: false}}} header and renamed the plugin file to its original wp-org name. The View Details link was NOT restored. 

However, changing the plugin file name to something new again DID restore the View Details link. The experience has been very inconsistent throughout.

I'm running a LocalWP installation on Windows 10.
WordPress 6.4.2
PHP 8.2
VSCode editor.

This is not a long-term problem for me as I intend to rename the plugin file AND directory name, but thought I'd report this bug for the record."	apedog
	54602	Update bug caused crash and removal of Jetpack		Plugins		normal	major	Awaiting Review	defect (bug)	new		2021-12-09T02:39:27Z	2021-12-09T14:50:31Z	"There's a bug in your latest update.
The plugin update failed to properly install on my wordpress, and it removed Jetpack from my site. I can't reinstall Jetpack because the system is still reading a destination folder.
I know this isn't a support section, but this is a bug issue, so I'm mentioning it here.
Please fix the problem, and hopefully, let me know how to reinstall Jetpack correctly on my site, which is: amberdaulton.com
Thanks!
Amber"	amberdaultonauthor
	49901	Updating plugins error messages for multiple plugins that error		Plugins	5.4	normal	normal	Awaiting Review	defect (bug)	new		2020-04-14T02:05:08Z	2020-04-14T06:46:37Z	"When updating plugins and more than 1 plugin causes an error the first error displays ok, but subsequent errors don't show correctly. They show the first plugin's error message not their own.
When I update both plugins separately they both show the correct error message.
When I update both plugins together, the first is correct but the second shows the same error message as 1st even its name....
"	scole01
	31183	"Users with ""update_plugins"" capability can not see update details"		Plugins	4.1	normal	normal	Future Release	defect (bug)	new	has-patch	2015-01-30T13:19:09Z	2017-12-05T20:14:19Z	"Users with the ""update_plugins"" capability can see available updates for plugins, but see the message ""You do not have sufficient permissions"" when clicking on ""View version x.y.z details"", because that page requires the ""install_plugins"" capability. The details page (with changelog, etc) should also be available with only the ""update_plugins"" capability."	michel.weimerskirch
	56729	Vulnerability in plugin update notification (impersonation of plugins with possible RCE)		Plugins		normal	normal	Awaiting Review	defect (bug)	new	close	2022-10-04T09:21:13Z	2022-10-04T09:32:00Z	"During the development of a private plugin (not uploaded to the WordPress market https://es.wordpress.org/plugins/) with our own metadata, we noticed that the WordPress plugin update notification system informs us that an update is available for our plugin, how is this possible?


Well, the only explanation for this is that the update review system is based solely on the plugin's folder name, ignoring any authorship metadata and project URIs.

To make sure that the update system is evidently ignoring any data in the plugin's metadata, we proceed to download it (the plugin). This confirms our suspicions, the update system is only governed by the name of a directory.

Due to this lack of security in the metadata check, the only solution so far is to never activate the auto-update and to manually check each update.

If you click on the ""update now"" link, the system will install the possible malicious plugin without any confirmation.


Criticality:
HIGH [8.8] - Exploitation of this vulnerability would affect the server in remote code execution (RCE) mode. It is downgraded from critical to high because it requires human action on plugin configuration.
CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected environments:
All installations with custom plugins that are not in the official WordPress marketplace.
Aggravated if the unattended updater is accidentally activated.
If a maintenance technician is unaware of the custom plugin development and hits the update button.

Conclusion:
As there is no signature checking system in the plugin update review system, there is a possibility of impersonation of our plugin if an attacker created a plugin in the official market with the same name as the directory of our custom plugin, being able to execute remote code on our server.

Temporary solution:
Disable the automatic update systems and generate plugin page with a <name X> so that no one can get to take that name to perform the impersonation.

Having today as a warning, process to request a CVE ID for the formal vulnerability write-up.

"	sylm87
	49729	Warning: fread() expects parameter 1 to be resource, bool given in \wp-includes\functions.php on line 5785		Plugins	5.3.2	normal	minor	Awaiting Review	defect (bug)	new	reporter-feedback	2020-03-30T12:47:43Z	2022-03-10T15:46:55Z	"Happens in dashboard and it goes coupled with:


{{{
Warning: fread() expects parameter 1 to be resource, bool given in ...\wp-includes\functions.php on line 5785

Warning: fclose() expects parameter 1 to be resource, bool given in ...\wp-includes\functions.php on line 5788
}}}

PHP 7.4

I think it occurs mostly when one loads the dashboard after a directory's previously active plugin has been deleted from the filesystem."	DrLightman
	60040	While installing a plugin using wordpress plugin installer, a directory seems to be missing		Plugins	6.3	normal	normal	Awaiting Review	defect (bug)	new	close	2023-12-09T00:52:09Z	2024-02-15T16:29:41Z	"**Description:**
When installing the Aiify Blocks plugin (slug: aiify) via the WordPress plugin installer at wp-admin/plugin-install.php, it appears that the directory created at wp-content/plugins/aiify is missing a crucial subdirectory named ""aiify."" This subdirectory typically contains the primary plugin block files. Consequently, this missing directory structure renders the plugin non-functional.

**Steps to Reproduce:**

- Access the WordPress dashboard (wp-admin).
- Navigate to the plugin installation section (wp-admin/plugin-install.php).
- Search for and install the Aiify Blocks plugin (slug: **aiify**).

**Expected Behavior:**
Upon installation via the WordPress plugin installer, the directory wp-content/plugins/aiify should contain a subdirectory named ""**aiify**"" housing the necessary plugin block files.

**Actual Behavior:**
The directory wp-content/plugins/aiify lacks the expected ""aiify"" subdirectory after installation using the WordPress plugin installer, causing the plugin to malfunction.

**Temporary Solution:**
Downloading the plugin directly from the URL https://downloads.wordpress.org/plugin/aiify.0.1.1.zip and unzipping it provides the correct directory structure with the necessary ""aiify"" subdirectory intact, resolving the issue temporarily.

**Additional Information:**

- WordPress Version: 6.3.2
- Plugin Version: Aiify Blocks 0.1.1
- Server Environment: The hosting environment is provided by app.getflywheel.com ( which seems to be based somehow on wp-engine )
- Disclaimer : I'm the plugin developper, a user contacted me for support as he couldn't use the provided blocks, that's how I noticed the issue and the missing directory.


This discrepancy in directory structure during installation impacts the functionality of the Aiify Blocks plugin ( and maybe other plugins ).

**Investigation and Update:**
While writing this ticket, I attempted to replicate the steps in wpsandbox.net (using WordPress 6.4), and the installation worked as expected. This suggests that the bug might be fixed or could be specific to the hosting environment.

While planning to update the plugin and rename the problematic directory, I'm keen to understand why this ""bug"" occurred in the first place and if this irregularity might be specific to the hosting environment or is due somehow to a wordpress bug."	rahal.aboulfeth
	61106	WordPress Plugin updates fail		Plugins	6.5	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2024-04-30T20:44:33Z	2024-05-01T18:20:37Z	"Hi, 

When trying to update plugins via the plugins page using the async method, the installation fails mostly for premium plugins but also for some plugins in the WP repository. This has happened for me across multiple servers running on multiple platforms. The error being shown mostly is ""Installation package not found"". I have noticed this error since v6.5 consistently.

I believe a bug was introduced in this system at some point which has rendered it unstable. "	taropaa
	49599	Wrong PHPDoc wp_get_active_and_valid_plugins		Plugins	5.3.2	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2020-03-08T14:08:07Z	2024-10-23T20:52:22Z	"I found a misleading error in the documentation of wp_get_active_and_valid_plugins (in wp-includes/load.php):
{{{#!php
<?php
* @return string[] $plugin_file Array of paths to plugin files relative to the plugins directory.
*/ 
function wp_get_active_and_valid_plugins() {
}}}

This is wrong, the plugin files are returned as **absolute path - not relative**. The files are returned as follows:
{{{#!php
<?php
$plugins[] = WP_PLUGIN_DIR . '/' . $plugin;
}}}

This is not very consistent with the rest of the API working rather with relative paths, but changing the code would break many plugins for sure. The documentation should be updated."	herrvigg
	51381	ZIP replacement asks to network activate even when activated		Plugins		normal	normal	Awaiting Review	defect (bug)	new		2020-09-23T15:12:09Z	2021-02-01T17:05:49Z	"If you replace the zip of a network activated plugin in a multisite install, it will give you the ""Network Activate"" button, which is confusing."	stormrockwell
	47882	[Plugins][Add new]:  Can't install plugin from More details pop-up		Plugins	5.2.2	normal	normal	Awaiting Review	defect (bug)	new		2019-08-15T08:39:51Z	2019-08-16T10:40:15Z	"1. Go to http://something/wordpress/wp-admin/plugin-install.php
2. Chose a plugin and click on More details.
3. Click on Install Now.

Current: The button is depressed, but nothing happens.
Expected: The plugin should be installed and the pop-up should disappear.

Chrome Version 76.0.3809.100 (Official Build) (64-bit)"	daniela1104
	66396	activate_plugin() triggers PHP warning on multisite for missing plugins before validate_plugin() runs		Plugins	3.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-28T13:31:46Z	2026-10-30T09:59:51Z	"Discovered while adding unit test coverage for `activate_plugin()` in PR https://github.com/WordPress/wordpress-develop/pull/14601, as noted during review by @mukesh27:
https://github.com/WordPress/wordpress-develop/pull/14601#pullrequestreview-5677758834

In `src/wp-admin/includes/plugin.php`, `activate_plugin()` checks whether a plugin is network-only on multisite before validating whether the plugin file actually exists:

{{{#!php
function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silent = false ) {
    $plugin = plugin_basename( trim( $plugin ) );

    if ( is_multisite() && ( $network_wide || is_network_only_plugin( $plugin ) ) ) {
        // ...
    }

    $valid = validate_plugin( $plugin );
    if ( is_wp_error( $valid ) ) {
        return $valid;
    }
}}}

If a missing or non-existent plugin (e.g. `'missing/missing.php'`) is passed on a multisite installation:
1. `is_network_only_plugin( $plugin )` is called.
2. `is_network_only_plugin()` invokes `get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin )`.
3. `get_plugin_data()` reads the non-existent file, emitting a PHP Warning:
   {{{
   file_get_contents(...): Failed to open stream: No such file or directory
   }}}
4. This warning is emitted prior to `validate_plugin()` returning the expected `WP_Error('plugin_not_found')`.

On single-site installations, this warning does not occur because `is_multisite()` is false, allowing `validate_plugin()` to handle the non-existent file gracefully.

== Steps to Reproduce ==
1. On a WordPress multisite install, run:
   {{{#!php
   activate_plugin( 'non-existent-plugin/plugin.php' );
   }}}
2. Observe PHP warning from `file_get_contents()` via `get_plugin_data()`.

== Expected Behavior ==
`activate_plugin()` should validate the plugin file existence first using `validate_plugin()` on all installations (both single-site and multisite) before attempting to read plugin headers via `is_network_only_plugin()`.

== Proposed Fix ==
Move the `validate_plugin( $plugin )` guard before the `if ( is_multisite() && ... )` block in `activate_plugin()`."	huzaifaalmesbah
	52405	activate_{$plugin} not passing $network_wide boolean to action handler		Plugins	3.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-01-31T07:19:07Z	2021-02-23T01:04:05Z	"When using {{{register_activation_hook}}}, the {{{""activate_{$plugin}""}}} action doesn't pass the {{{$network_wide}}} boolean as the parameter for the callback.

Instead, the parameter gets substituted with an empty string, breaking the page when using strict typing, as it expects a boolean.

Looking at how it's done when activating plugins, it uses {{{is_network_admin()}}} as the parameter
https://core.trac.wordpress.org/browser/trunk/src/wp-admin/plugins.php?rev=49683#L124

Same thing should happen here:
https://core.trac.wordpress.org/browser/trunk/src/wp-admin/plugins.php?rev=49683#L193
{{{do_action( ""activate_{$plugin}"", is_network_admin() );}}}
"	noplanman
	32422	add_menu_page() returns incorrect $hookname when using plugin filename as $menu_slug		Plugins	4.2.2	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2015-05-17T05:06:29Z	2026-01-30T05:22:13Z	"When using `add_menu_page()` and `add_submenu_page()` with filenames in the $menu_slug parameter, the resulting hookname does not match the expected `do_action('load-' …)` hookname. 

In the following examples the expected hookname from `do_action( 'load-' . $plugin_page );` (in ''wp-admin/admin.php'') is: '''load-myplugin/admin/resources.php'''. However, the hookname returned by `$hookname = get_plugin_page_hookname( $menu_slug, $parent_slug);` (from `add_submenu_page()` in ''wp-admin/includes/plugin.php'') is '''myplugin_page_myplugin/admin/resources'''.

The result is, this code does not work:

{{{
$hookname = add_submenu_page(""myplugin/dashboard.php"", 'Resources', 'Resources', 'edit_pages', ""myplugin/resources.php"");
add_action($hookname, 'add_resources_options' );
function add_resources_options() {
    add_screen_option('per_page', array(
        'label' => 'Resources',
        'default' => 10,
        'option' => 'resources_per_page'
    ));
}
}}}

However, the hooknames do match when using `add_menu_page()` and `add_submenu_page()` with a callback slugname. This code works (notice only the first line has been changed to use callback slugs instead of filename slugs): 

{{{
$hookname = add_submenu_page('dashboard', 'Resources', 'Resources', 'edit_pages', 'myresources', 'myresources');
add_action($hookname, 'add_resources_options' );
function add_resources_options() {
    add_screen_option('per_page', array(
        'label' => 'Resources',
        'default' => 10,
        'option' => 'resources_per_page'
    ));
}
}}}

The solution is either:

 * Modify `function get_plugin_page_hookname() …` to return a hookname that is caught by `do_action( 'load-' . $plugin_page );`.
 * Or modify `do_action( 'load-' . $plugin_page );` to use the hookname currently returned by `get_plugin_page_hookname()`.
"	quinncom
	43453	heartbeat_received filter requires data in order to execute		Plugins	3.6	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2018-03-01T15:38:38Z	2022-02-26T22:34:38Z	"With regards to the heartbeat api, the plugin developer handbook states:

    Not every feature will need all three of these steps. For example, if you don’t need to send any data to 
    the server, you can use just the latter two steps.

But this does not seem to be the case given this line of of [https://core.trac.wordpress.org/browser/tags/4.9/src/wp-admin/includes/ajax-actions.php#L2808 wp_ajax_heartbeat].

This makes it less useful if you just want to include some new data on an interval. It requires an approach like:

{{{
#!javascript
$( document ).on('heartbeat-send', (e, data) => {
  data.wouldLikeFilterToTrigger = true;
});

$(document).on('heartbeat-tick', (e, data) => {
  // do something with data generated by filter
  console.log(data);
});
}}}

If you omit the send event, the filter on the server never runs.

It seems like this constraint should be lifted, or at the very least the documentation should be updated."	brianscaturro
	57792	no way to find the plugin		Plugins	6.1.1	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2023-02-23T06:44:18Z	2023-05-10T17:10:55Z	In the add new plugins section there is a problem, which can be seen in the screenshot.	purisov
	60373	plugin activation errors are accidentally hidden		Plugins		normal	critical	Awaiting Review	defect (bug)	new		2024-01-29T15:25:08Z	2024-11-22T14:04:04Z	"in recent versions (can't tell exactly when) seems the admin_notice messages were being filtered by wp_kses_post, which caused breaking changes, which contradicts WP core itself.

to reproduce, add this to plugin:
{{{#!php
register_activation_hook(__FILE__, function($x){ die('plugin can not activate, because XYZ'); } );
}}}

then try to activate. it will show admin notice `Plugin could not be activated because it triggered a fatal error` and nothing more. however, it should have shown that XYZ message inside iframe, you can confirm that by looking : 
https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-admin/plugins.php#L685
(if you do `var_dump($errmsg)` before that `wp_admin_notice` line, you will see that iframe part is also included in `$errmsg`)

however, inside `wp_admin_notice` there is `wp_kses_post` which filters out the `iframe` that was added by core itself:
https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-includes/functions.php#L8891

so, that is contradiction in WP, and should be solved either way. I understand that stripping `iframe` might have been a security step, however, it was done incorrectly. that wp_kses_post should allow iframe, but itself the XYZ message itself (coming from plugin's activation) should be filtered, so that would achieve the security goal.

at this moment, that change/misbehavior (which we noticed too late) have broken dozens of our plugins on wp.org. please fix it."	ttodua
	58933	plugin-install.php search works incorrect		Plugins	6.2.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-07-29T11:41:02Z	2023-08-08T16:43:13Z	"i got 29 pages as result of search but after i go to last page 
more results coming 
also search very weak by default 
many irrelevant results coming after search with 2 keywords
"	AlexeyVertinsky
	45779	probable issue in Plugin activation hook		Plugins		normal	normal	Awaiting Review	defect (bug)	new		2018-12-27T13:38:13Z	2019-01-07T00:17:08Z	"i.e. if we have a simplest plugin:

{{{
<?php
/*
 * Plugin Name:	example-1
*/

register_activation_hook(__FILE__, ""my"" );
function my($network_wide)
{
    if($network_wide || is_network_admin())
    {
       die(""Activation from Network"");
    }

}
}}}


and you try to activate it from Network, you get such empty screen:
[[Image(https://i.imgur.com/Jhib3Pm.png)]]

Probably the reason, as far as I can understand, is that, as the plugin is activated within the external sandbox call, and if it sees an error, it returns with activation-failure and then in `iframe`, it tries to load the activated plugin in order to be able to see the error message. However, as I doubt, in the first call, the `$newtork_wide || is_network_admin()` is evaluated to true, causing the `die` to be triggered. however, while WP tries to show the `iframe`, then there is not seen the error, as i suspect that `$newtork_wide || is_network_admin()` is evaluated to false.
that makes some problems to plugin developers if they target activation from Network or Single-Site. Will be good if that will be addressed."	tazotodua
	55875	"""Add New"" plugin should be ""Add Plugin"" because it now allows updating an existing plugin as well"		Plugins		normal	normal	Awaiting Review	enhancement	new		2022-05-30T11:44:32Z	2022-05-30T16:29:19Z	"""Add New"" plugin should be called something else than ""new"" because it allows updating an existing plugin as well.

Sometimes I'm using the ""Add New"" plugin to upload an update of a plugin that is already installed. But it does not make sense because I don't add a new plugin. Instead, I update it. 

So the sidebar and the top button should be renamed to something else. 
Maybe ""Add plugin"" would be more accurate."	_smartik_
	43671	'Search installed plugins' on plugins page unneccesary and possibly misleading, possibly replace it for 'search new plugins'		Plugins	4.9	normal	normal	Awaiting Review	enhancement	new		2018-04-01T11:46:07Z	2019-05-07T22:12:30Z	"Hello!

I consider 'Search installed plugins' input on plugins page unneccesary and possibly misleading. Very often I use this input to search for plugin that I want to install.
Also I don't know whether there is any reason at all to have search for installed plugins, because usually user just scrolls window to check this and rarely can remember name of the plugin etc.
It would be cool to replace this input with input for searching for new plugins (or totally remove it).

Thanks!"	Vishnja1
	58055	Add a filter to get_plugins() and get_plugin_data()		Plugins	6.3	normal	normal	Awaiting Review	enhancement	new		2023-04-02T09:53:57Z	2023-04-05T12:17:26Z	"Hi I would like to suggest adding apply_filters to functions:
get_plugins()
get_plugin_data()
to edit and run triggers before the function returns.

The all_plugins filter can be used on the plugins.php page, but not on the update-core.php page. That's why I think it's worth adding the filter into the function"	yehi
	59525	Add filter for `get_mu_plugins()`		Plugins		normal	normal	Awaiting Review	enhancement	new		2023-10-03T16:33:45Z	2023-10-25T22:35:43Z	"In https://core.trac.wordpress.org/ticket/57278, there was a need to be able to filter MU-plugins on the UI. However, for WP-CLI, when we call `wp plugin list` for MU-plugins, it calls `get_mu_plugins()`. It'd be nice if it was filterable to match the changes on the UI end.

It does look like WP-CLI does have the filter `all_plugins` for the drop-in plugins at https://github.com/wp-cli/extension-command/blob/17b16548b5775616dcbbd92f7836e67bba02e8ba/src/WP_CLI/Fetchers/Plugin.php#L23 to match Core's at https://github.com/WordPress/WordPress/blob/2a2cbb3b497fa1b95f15b0d11a47a761fa2ccc21/wp-admin/includes/class-wp-plugins-list-table.php#L104, but that appears to only apply for the drop-ins."	rebasaurus
	54778	Adding Filters in UI (Plugins)		Plugins	5.8.3	normal	normal	Awaiting Review	enhancement	new		2022-01-10T10:50:03Z	2023-05-20T06:47:16Z	"**Problem:**
Searching for any particular plugins shows the related plugins based on the keywords, out of which some old and unmaintained plugins also appear in the results which might be a vulnerability issue for their users.

**Possible Solution:**
Adding Filters to categorize the results for searchers query:
1. Latest to Oldest
2. Oldest to Latest
3. Most Downloads
4. Least Downloads
5. Highest Rated
6. Lowest Rated

**Exception:**
Adding the filters, rather than completely changing the way the results appear (such as: showing the most updated results first, etc) would be more useful, and it would be more fair for all publishers/plugin-maintainers.

**Possible Improvements:**
Reducing the risk of downloading incompatible old, untrusted, unmaintained plugins leading to vulnerability or other risks in website (business :D)."	ritvikux
	56282	Automatic Updates: Counter counts plugins, which can't be updated automatically (and more..)		Plugins		normal	normal	Awaiting Review	enhancement	new		2022-07-24T14:37:30Z	2022-07-24T14:37:30Z	"Not every plugin offers to be auto updated. So for example I have 26 plugins but only 14 can be auto updated. On the 'plugins' page I can select 'Auto-updates Disabled' and there's a counter, showing (26). I'd expect it to show only 14.
Also I can choose plugins having no option to be auto updated and bulk select 'Enable Auto-updates'. After clicking 'Apply' i get a message 'Selected plugins will be auto-updated.'. No, they won't. You get the point.."	Presskopp
	60794	Central Payment Gateway API for WordPress and All Plugins		Plugins		normal	major	Awaiting Review	enhancement	new		2024-03-18T03:02:49Z	2024-03-18T18:13:30Z	"I think it's time to add a built-in payment gateway API to WordPress. Each plugin develops its own API and we develop custom plugins for each plugin. This is ridiculous.

Imagine if there was a centralized API and PayPal, Stripe or any payment gateway was integrated for that API. All other plugins will use that API."	beycanpress
	40971	Clicking More Details in Add Plugins page shows old version of Plugin Directory page		Plugins	4.8	normal	normal	Awaiting Review	enhancement	new		2017-06-09T11:09:29Z	2017-06-12T13:26:05Z	"If you click the More Details link below the Install/Activate button of any plugin listed on the Add Plugins page, it opens a modal with the corresponding page in the plugin directory. However, in 4.8 this still uses the old styling, not the new plugin directory theme that was launched recently.

If this was only a visual thing it wouldn't be much of an issue, but the old style also displays different statistics than the new design. It would be nice to bring this in line with what it looks like on wordpress.org/plugins."	hedgefield
	46571	Fix contributors list in plugin information + duplicate CSS		Plugins	5.2	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2019-03-20T08:28:07Z	2019-03-20T09:07:32Z	I think the contributions list can be better with this change.	mostafa.s1990
	64889	Include link to documentation for all plugins		Plugins		normal	normal	Awaiting Review	enhancement	new		2026-03-19T00:12:20Z	2026-03-19T05:56:12Z	"As a new WordPress user who just spent 3 months moving an OpenCart website to WordPress, one frustration I've often run into is installing a plugin that's recommended to fill a need, only to have a hard time finding clear instructions on how to use it. Sometimes it's even hard to find where it's hiding, under Tools or Users as a sub-menu item, or only as an added feature in Appearance>Customize.
The format in Admin Menu>Installed Plugins for each plugin usually lists the developer, settings, de-activate and auto-update links, and ""View Details"" which has tabs for Description, FAQ, Reviews and other info about the plugin but almost never how to use it.
6 out of my 24 plugins do have a ""Documentation"" link. Seems to me that should be a requirement for all plugins. Often there is a page somewhere with instructions, but it is not listed here, takes a while to find, and it's quicker for me to just ask Google Ai for instructions, which usually are quite good.
If we want WordPress to be user-friendly for average business owners or anyone else to create their own website, I'd say there's a long way to go in providing clear instructions. I've built 2 websites before and while this one will be faster, more secure, and work well with Google Shopping, I'm astounded at how complicated it has been."	hartzhomestead
	55107	List and Delete button to delete broken plugins		Plugins		normal	normal	Awaiting Review	enhancement	new		2022-02-07T21:53:35Z	2022-02-08T10:28:19Z	"Much like we have for themes, there should be a list of broken plugins with an option to delete them directly from the admin panel.

Along the lines of this ticket ( #28165 ) but for plugins."	gmariani405
	55522	Misleading method names plugin_dir_path and plugin_dir_url		Plugins	5.9.2	normal	normal	Awaiting Review	enhancement	new	has-patch	2022-04-04T05:43:45Z	2022-04-07T17:18:01Z	"The method names `plugin_dir_path` and `plugin_dir_url` names are very misleading. Both the methods, as their names suggest should either return the path and URL of the base plugin directory i.e. `wp-content/plugins` or a specific plugin directory based on plugin file path that is supplied in the methods.

But in practice, they are designed to reurn any path starting from application root to theme and everything. Logically this is fine but ideally the behaviour should match the method names!

The best option would be to have different method names for differnt purposes, e.g. `plugin_dir_path` and `file_path` although they are doing the same thing!

But adding two new methods, that too for doing the same thing might not be a good idea. So I would suggest the following so that at least the methods can return base plugin dierectory pth and URL with no or empty value `_FILE_` is passed.

{{{#!php
<?php
/**
 * Get the filesystem directory path (with trailing slash) for the plugin __FILE__ passed in.
 *
 * @since 5.9.2
 *
 * @param string $file The filename of the plugin (__FILE__). Default empty
 * @return string the filesystem path of the directory that contains the plugin if a filename is specified. Returns the base plugin directory path otherwise.
 */
function plugin_dir_path( $file = '' ) {
	return trim( $file ) !== ''
		? trailingslashit( dirname( $file ) )
		: trailingslashit( WP_CONTENT_DIR . '/plugins' );
}
}}}


{{{#!php
<?php
/**
 * Get the URL directory path (with trailing slash) for the plugin __FILE__ passed in.
 *
 * @since 5.9.2
 *
 * @param string $file The filename of the plugin (__FILE__). Default empty
 * @return string the filesystem path of the directory that contains the plugin if a filename is specified. Returns the base plugin directory path otherwise.
 */
function plugin_dir_url( $file = '' ) {
	return trim( $file ) !== ''
		? trailingslashit( plugins_url( '', $file ) )
		: trailingslashit( plugins_url() );
}
}}}
"	subrataemfluence
	61737	Naming the plugin which is doing a fatal error on plugin activation/resumption		Plugins		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2024-07-24T05:40:22Z	2024-08-24T14:20:38Z	"Hello

If on plugin is issuing a fatal error on bulk deactivation, then we receive the notice:
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/plugins.php#L669

I think we should add the plugin name which is doing the fatal error. It would help the user to understand what's wrong on its website.

This can also be done 2 lines higher at https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/plugins.php#L667"	sebastienserre
	61987	Removed Unused Arguments From _wp_filter_build_unique_id Function		Plugins		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-09-05T02:16:32Z	2024-09-19T00:15:03Z	"The function _wp_filter_build_unique_id($hook_name, $callback, $priority) has two unused arguments: $hook_name and $priority. 
I believe these arguments are unnecessary."	wpdebuglog
	60061	"Rename ""add new plugin"" button"		Plugins		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2023-12-13T16:26:01Z	2024-01-26T09:31:53Z	"Hello

For several versions now, we can update a plugin (and theme) by using the ""add new plugin"" feature.
I think we should find a better wording because the button is not only to add a new plugin, we can update one too.
At first, we could change the label button to ""Add new or update a plugin"" but it's quite long label"	sebastienserre
	65909	Show “Activate” after updating an inactive plugin from the Add Plugins screen		Plugins		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-08-19T07:53:54Z	2026-08-31T06:50:45Z	"When installing a new plugin from the Add Plugins screen, the “Install Now” button changes to “Activate” after installation completes.
However, when a plugin is already installed but inactive and has an update available in the Add Plugins screen:
  1. Go to Plugins → Add New.
  2. Search for an installed, inactive plugin with an available update.
  3. Click “Update Now.”
  4. After the update completes, the button does not change to “Activate.”
  5. The user must go to Plugins → Installed Plugins and activate it from there.
It would improve consistency and usability if the “Update Now” button changed to “Activate” after a successful update of an inactive plugin, matching the behavior after installing a new plugin.


Video Reference:- https://www.loom.com/share/cd0cfabf209f46d2b37559991e90a6b2"	nithi22
	64180	Simplify and improve performance in `WP_Hook::apply_filters()`		Plugins	6.8.3	normal	minor	Awaiting Review	enhancement	new		2025-11-01T22:14:49Z	2025-11-16T18:29:13Z	"Hi All!

I am thinking about filters and actions a lot, because it is something that every site uses and every page load goes trough thousands of, so any small improvements here can have a multiplied effect globally.

So as I'm looking at code responsible for the execution of filters and actions I noticed this part of the `WP_Hook::apply_filters()` method:

{{{#!php
<?php
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
	$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
	$value = call_user_func_array( $the_['function'], $args );
} else {
	$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}}}

I guess ""Avoid the array_slice() if possible."" was added for performance reasons, although I could not find a specific commit for it as it was added as part of the class.

I did some tests to see the performance impact of that `array_slice` to see if it is better to register hooks with all known arguments, even if those arguments are not used just to avoid the `array_slice` call, or is it better to use as few arguments as possible.

My tests were not conclusive, probably new versions of PHP have optimisations in place that make the difference negligible, although it may have been important at some point.

Anyway, while looking at it I figured that the best way to ""Avoid the array_slice()"" is to not use it at all. PHP supports passing more arguments to functions than what they declare, it is perfectly valid. So this code in fact works just the same:

{{{#!php
<?php
// Avoid the array_slice() if possible.
f ( 0 === $the_['accepted_args'] ) {
	$value = call_user_func( $the_['function'] );
} else {
	$value = call_user_func_array( $the_['function'], $args );
}
}}}

Now the question is this: Can the removal of `array_slice()` and the additional if branch save more CPU than what the passing of the extra arguments take?


Moreover, passing arguments in case of no arguments accepted by the called function is also fine, so the code below works also just identical:

{{{#!php
<?php
$value = call_user_func_array( $the_['function'], $args );
}}}

With this one the additional question is if the removal of the branching saves more than the loss on using the known-to-be-slower `call_user_func_array()` instead of the `call_user_func()`.


I did tests comparing these cases. In my test case I passed 5 arguments to `apply_filters()` calls, a random number (to prevent the engine optimising away the calls), a static number, a static string, the global `$wp_query` as an example of an object, and a large array with 1000 items, each consisting of 1000 bytes (1M bytes + overhead).

Here are my results over 1.000.000 `apply_filters` calls:

||Apply Filter call with argument count||Current implementation||No `array_slice()`||No branching||
||`apply_filter(...,0);`||2.038458s (100%)||2.062812s (101.19%)||2.062165s (101.16%)||
||`apply_filter(...,1);`||2.129430s (100%)||2.090761s ( 98.18%)||2.085732s ( 97.95%)||
||`apply_filter(...,2);`||2.078453s (100%)||2.085459s (100.34%)||2.049746s ( 98.62%)||
||`apply_filter(...,3);`||2.096780s (100%)||2.097050s (100.01%)||2.047824s ( 97.67%)||
||`apply_filter(...,4);`||2.106713s (100%)||2.088943s ( 99.16%)||2.073354s ( 98.42%)||
||`apply_filter(...,5);`||2.086291s (100%)||2.091264s (100.24%)||2.045195s ( 98.03%)||

As you can see the efforts around avoiding the `array_slice()` are kind of futile. In some cases it improves a bit, in some cases it is worse, it is between ~±2%.

But as you can also see the one liner clearly dominates the other two solutions, except for the 0 argument case. However I'd argue that since the default value for `$accepted_args` is `1` for both `add_action()` and `add_filter()`, and also a filter without any argument is probably extremely rare that first row is most likely an extremely rare occurrence on any site.

So at the end of the day the rare and little saving that `call_user_func()` provides is eaten up by the `if` branching and using a single line of `call_user_func_array()` for all 3 branches differentiated currently seems to be preferable.

I made a counting on an example site of mine, how many times a `call_user_func*` is fired in `WP_Hook::apply_filters()`, and it really seems 0 argument cases are extremely rare:

||Arguments accepted||Admin||Front page||
||0||62||43||
||1||2128||1317||
||2||1164||976||
||3||742||287||
||4||3147||1927||
||5||3||2||
||6+||0||0||

I know one example site is not conclusive at all, but still I think 0 argument calls are extremely rare in the whole ecosystem.


Now I know the differences are small, few percents only, and these are not at all going to convert to any meaningful speed-up of site loads, because the time spent by the calling of the hook functions on a real site I expect to be in the range of 10s of milliseconds (e.g. 7000 hook call * 2us = 14ms), and the savings we can expect is only about 2% of that, that is a few hundreds of microseconds per page load, but if someone originally thought it was worth (trying to) optimising the overhead of `call_user_func_array()` vs `call_user_func()` away, it may still worth to revisit the issue and switch as it seems on more modern PHP engines this optimisation no longer valid. (Here I assume it might have been valid in Sept 2016 (https://github.com/WordPress/wordpress-develop/commit/61abf68e6d6f7ba496928e70a77a3a7c538ac4f0) when the latest PHP version was v7.0).

I've done this benchmark on PHP v8.3.12. I'd be surprised if v8.4 or v8.5 would flip the conclusions, but I can imagine that e.g. v7.x could be different."	grapestain
	42536	Smoothen Plugin Updates		Plugins		normal	normal	Awaiting Review	enhancement	reopened		2017-11-14T02:55:30Z	2026-02-04T09:37:29Z	"When about to select plugins to be updated, there's the button 'Update Plugins' (2 times). Having selected nothing I can click on it and it will take a few seconds making requests ending up in an error message.

I propose to either:

1. Inactivate the button(s) whenever selected plugins count is 0
2. Change the button to ""Update all plugins"", making it ""auto-select"" all possible one's OR
 Add a new button to do so (eventually combined with 1.)
3. Something like that"	Presskopp
	66554	Tests: Add unit test coverage for WP_Plugin_Install_List_Table		Plugins		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T13:52:51Z	2026-11-06T18:51:50Z	"`src/wp-admin/includes/class-wp-plugin-install-list-table.php` contains 415 lines across 15 methods responsible for displaying plugins available for installation from the WordPress.org Plugin Directory on the Add Plugins screen (`wp-admin/plugin-install.php`).

According to local PHPUnit code coverage analysis, `WP_Plugin_Install_List_Table` currently has '''0.00% unit test coverage''' (0/15 methods and 0/415 lines covered). There are no dedicated test cases exercising its capability checks, installed plugin slug mapping, API response item preparation, or view rendering logic.

== Proposed Changes ==

Add a dedicated PHPUnit test suite for `WP_Plugin_Install_List_Table` in `tests/phpunit/tests/admin/wpPluginInstallListTable.php` to cover:

1. '''Capabilities and configuration:'''
 * `ajax_user_can()`: assert capability checks for `install_plugins`.
 * `get_table_classes()`: assert the expected table class names (`plugin-install`).
 * `get_columns()`: assert default table columns (`name`, `description`).

2. '''Installed plugin discovery and slug mapping:'''
 * `get_installed_plugins()`: verify array population and cache behavior.
 * `get_installed_plugin_slugs()`: assert extraction of plugin slugs from directory basenames and header metadata.

3. '''Item preparation and sorting:'''
 * `prepare_items()`: assert extraction of API response object into `$items`, pagination setup, and empty state handling.
 * `order_callback()`: test sorting comparator on plugin objects by ratings, updated dates, and name.

4. '''View tabs and table display:'''
 * `views()`: assert tab link generation for views (Featured, Popular, Recommended, Favorites, Beta).
 * `display()` and `display_rows()`: verify table markup and empty/error states."	huzaifaalmesbah
	66552	Tests: Add unit test coverage for WP_Plugins_List_Table		Plugins		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T13:48:15Z	2026-11-06T14:08:56Z	"`src/wp-admin/includes/class-wp-plugins-list-table.php` contains 822 lines across 22 methods responsible for managing and displaying installed plugins in the WordPress admin (`wp-admin/plugins.php`).

According to local PHPUnit code coverage analysis, `WP_Plugins_List_Table` currently has '''0.00% unit test coverage''' (0/22 methods and 0/822 lines covered). There are no dedicated test cases exercising its configuration, capability checks, search callbacks, or row display logic.

== Proposed Changes ==

Add a dedicated PHPUnit test suite for `WP_Plugins_List_Table` in `tests/phpunit/tests/admin/wpPluginsListTable.php` to cover:

1. '''Table initialization and configuration:'''
 * `ajax_user_can()`: verify capability checks for `activate_plugins`.
 * `get_table_classes()`: assert the expected table class names (`plugins`, `wp-list-table`, `widefat`).
 * `get_columns()` and `get_sortable_columns()`: assert default columns and sortable definitions.
 * `get_primary_column_name()`: verify primary column designation (`name`).

2. '''Search and filtering:'''
 * `_search_callback()`: assert filtering against plugin name, description, author, and tags.

3. '''Bulk actions and tablenav:'''
 * `bulk_actions()`: verify bulk action options for single-site and multisite contexts.
 * `extra_tablenav()` and `current_action()`: verify action resolution and markup output.

4. '''Row rendering:'''
 * `single_row()` and `display_rows()`: assert output formatting for active, inactive, and auto-update-enabled plugins."	huzaifaalmesbah
	66557	Tests: Add unit test coverage for admin menu registration functions in plugin.php		Plugins		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T14:00:08Z	2026-11-06T14:40:05Z	"`src/wp-admin/includes/plugin.php` defines the core functions used by plugins and WordPress admin to register top-level and submenu administration pages: `add_menu_page()`, `add_submenu_page()`, `menu_page_url()`, `wp_admin_page_exists()`, and their specialized wrapper functions (`add_options_page()`, `add_management_page()`, `add_plugins_page()`, etc.).

According to local PHPUnit code coverage analysis, these functions currently have '''0.00% unit test coverage''':
* `add_menu_page()` (0/33 lines covered)
* `add_submenu_page()` (0/45 lines covered)
* `menu_page_url()` (0/11 lines covered)
* `wp_admin_page_exists()` (0/13 lines covered)
* Wrapper functions: `add_options_page()`, `add_management_page()`, `add_theme_page()`, `add_plugins_page()`, `add_users_page()`, `add_dashboard_page()`, `add_posts_page()`, `add_media_page()`, `add_links_page()`, `add_pages_page()`, `add_comments_page()` (all 0% covered)

While `tests/phpunit/tests/admin/includes/plugin/removeMenuPage.php` covers menu removal, there is no dedicated test suite asserting global `$menu` and `$submenu` structure creation, slug sanitization, capability assignment, or URL resolution.

== Proposed Changes ==

Add a dedicated test suite in `tests/phpunit/tests/admin/includes/plugin/addMenuPage.php` and `tests/phpunit/tests/admin/includes/plugin/menuPageUrl.php` to cover:

1. '''Top-level menu registration (`add_menu_page`):'''
 * Assert population of global `$menu` array with expected keys (title, capability, slug, page title, classes, hookname, icon).
 * Assert custom menu positioning and collision handling when `$position` is specified.
 * Assert hook name generation for file-based slugs vs arbitrary query slugs.

2. '''Submenu registration (`add_submenu_page`):'''
 * Assert population of global `$submenu[$parent_slug]`.
 * Assert parent fallback and first submenu item behavior (inheriting parent title/slug).
 * Verify order preservation and custom position sorting.

3. '''Menu URL generation (`menu_page_url`):'''
 * Assert correct admin URL generated for a top-level page slug.
 * Assert URL generation when `$display = false` returns string vs echos markup.
 * Verify handling of non-existent menu slugs.

4. '''Admin page existence check (`wp_admin_page_exists`):'''
 * Assert returns `true` for registered top-level and submenu slugs.
 * Assert returns `false` for unregistered slugs."	huzaifaalmesbah
	66556	Tests: Add unit test coverage for get_plugin_data() and get_plugins()		Plugins		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T13:57:55Z	2026-11-06T14:32:54Z	"`src/wp-admin/includes/plugin.php` contains the central APIs for discovering installed plugins on the filesystem and parsing plugin file headers: `get_plugin_data()`, `get_plugins()`, and `get_plugin_files()`.

According to local PHPUnit code coverage analysis:
* `get_plugin_data()` currently has '''0.00% unit test coverage''' (0/31 lines covered). While `tests/phpunit/tests/admin/includes/plugin/getPluginDataMarkupTranslate.php` tests markup translation, direct header parsing logic for standard and modern headers (`RequiresPlugins`, `UpdateURI`, `RequiresWP`, `RequiresPHP`) and the `$markup = false` behavior have no unit tests.
* `get_plugins()` has '''0.00% unit test coverage''' (0/40 lines covered). Its filesystem scanning, subdirectory traversal, and internal cache integration (`wp_cache_get('plugins', 'plugins')`) are completely untested.
* `get_plugin_files()` has '''0.00% unit test coverage''' (0/10 lines covered).

== Proposed Changes ==

Add a dedicated test suite in `tests/phpunit/tests/admin/includes/plugin/getPluginData.php` and `tests/phpunit/tests/admin/includes/plugin/getPlugins.php` to cover:

1. '''Plugin header metadata parsing (`get_plugin_data`):'''
 * Assert accurate extraction of standard headers: Name, PluginURI, Version, Description, Author, AuthorURI, TextDomain, and DomainPath.
 * Assert parsing of modern requirements headers: `RequiresWP`, `RequiresPHP`, `RequiresPlugins`, and `UpdateURI`.
 * Assert behavior with `$markup = false` and `$translate = false`.
 * Verify error handling when passing non-existent or empty plugin files.

2. '''Plugin discovery and caching (`get_plugins`):'''
 * Assert discovery of single-file plugins in `WP_PLUGIN_DIR`.
 * Assert discovery of plugins located in subdirectories (`plugin-name/plugin-name.php`).
 * Assert files in nested subdirectories deeper than one level are ignored.
 * Verify cache population in `wp_cache_get()` and cache clearing behavior with `wp_clean_plugins_cache()`.

3. '''Plugin file listing (`get_plugin_files`):'''
 * Assert retrieval of all files in a plugin directory."	huzaifaalmesbah
	66555	Tests: Add unit test coverage for plugin status and activation functions		Plugins		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T13:55:37Z	2026-11-06T18:07:07Z	"`src/wp-admin/includes/plugin.php` contains the core functions for determining plugin activation states and handling bulk plugin activation in WordPress admin.

According to local PHPUnit code coverage analysis, several fundamental status and activation functions currently have '''0.00% unit test coverage''':
* `is_plugin_active()` (0/1 lines covered)
* `is_plugin_inactive()` (0/1 lines covered)
* `is_plugin_active_for_network()` (0/6 lines covered)
* `is_network_only_plugin()` (0/5 lines covered)
* `activate_plugins()` (0/12 lines covered)

While individual activation is exercised in `activatePlugin.php`, these underlying inspection helpers and the bulk `activate_plugins()` function have no dedicated unit tests asserting their return values, multisite behavior, or error responses.

== Proposed Changes ==

Add dedicated test methods in `tests/phpunit/tests/admin/includes/plugin/isPluginActive.php` and update `tests/phpunit/tests/admin/includes/plugin/activatePlugin.php` to cover:

1. '''Plugin active and inactive checks:'''
 * `is_plugin_active()`: assert `true` when a plugin file is listed in the `active_plugins` option, `false` otherwise.
 * `is_plugin_inactive()`: assert inverse result of `is_plugin_active()`.
 * Assert behavior with empty strings, null, and non-existent plugin paths.

2. '''Network-wide active checks:'''
 * `is_plugin_active_for_network()`: assert `false` on single-site; assert `true` on multisite when listed in `active_sitewide_plugins`.
 * `is_network_only_plugin()`: assert detection of the `Network: true` header in plugin metadata.

3. '''Bulk plugin activation:'''
 * `activate_plugins()`: assert successful activation of multiple plugins in an array.
 * Verify error handling when one of the plugins in the list is invalid or encounters an error during activation.
 * Assert redirect URL generation and silent activation parameters."	huzaifaalmesbah
	66560	Tests: Add unit tests for WP_Plugin_Dependencies::get_dependency_api_data() and get_plugin_dirnames()		Plugins		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T15:35:39Z	2026-11-06T15:36:10Z	"`WP_Plugin_Dependencies::get_dependency_api_data()` and `get_plugin_dirnames()` have lines that no test runs on Codecov: the data of a dependency that is not on WordPress.org, the dependencies whose data is already from the API, and the names of the plugin folders that were listed before.

This ticket adds tests for the screens that get the data, the data that was read before, the request to the Plugin Installation API and the time to ask again, a dependency that the API cannot find, the name of a dependency that is not on WordPress.org (installed or not), the removal of a slug that is no longer a dependency, the order and the empty data, and the folders of the plugins."	hmbashar
	66566	Tests: Add unit tests for install_plugin_information()		Plugins		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T17:34:50Z	2026-11-06T18:51:48Z	"`install_plugin_information()` in `wp-admin/includes/plugin-install.php` outputs the screen with the details of a plugin that opens in a modal on the Add Plugins screen. It has 247 lines and none of them is covered on Codecov, because the function ends the request.

This ticket adds tests for it, in several pull requests: the data and the sections (the request, the markup that is removed, the banner, the tabs and the section that is shown), the sidebar with the details of the plugin (version, author, installations, links, ratings and contributors), and the notices about the compatibility and the button in the footer. The tests stop the screen with an action of the footer, before it ends the request."	hmbashar
	66561	Tests: Add unit tests for plugin_dir_path(), plugin_dir_url(), plugin_basename(), wp_register_plugin_realpath() and remove_all_actions()		Plugins		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T15:45:07Z	2026-11-06T15:45:42Z	"`plugin_dir_path()`, `plugin_dir_url()`, `wp_register_plugin_realpath()` and `remove_all_actions()` in `wp-includes/plugin.php` have no unit tests, and `plugin_basename()` is only used by other tests.

This ticket adds tests for the trailing slash of the directory and the URL of a plugin file, the path relative to the plugins and Must-Use plugins directories (with backslashes, extra slashes and paths outside of them), the real path of a plugin that is a symbolic link and how `plugin_basename()` uses it, and removing all the actions of a hook, or of a priority."	hmbashar
	66553	Tests: Add unit tests for plugins_api()		Plugins		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T13:52:09Z	2026-11-06T13:52:33Z	"`plugins_api()` has no direct unit tests, and 17 of its lines are not covered on Codecov. It builds the arguments, asks WordPress.org for the plugin information and handles the errors.

This ticket adds tests for the default arguments, the `plugins_api_args`, `plugins_api` and `plugins_api_result` filters, the request to WordPress.org, a response that is not JSON, an error in the response, and the request that is made again without SSL when the secure request fails."	hmbashar
	66558	Tests: Add unit tests for the functions that output the Add Plugins screen		Plugins		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T15:01:19Z	2026-11-06T15:01:57Z	"`install_popular_tags()`, `install_dashboard()`, `install_search_form()`, `install_plugins_upload()`, `install_plugins_favorites_form()` and `display_plugins_table()` in `wp-admin/includes/plugin-install.php` have no unit tests, and none of their lines are covered on Codecov.

This ticket adds tests for the popular tags (the request, the cache and the error), the dashboard with its tag cloud, the search form (its defaults and the search of the request), the upload form, the form of the favorites, and the text above the table for each tab."	hmbashar
	48143	Unstyled error message when activating broken plugin		Plugins		normal	minor	Awaiting Review	enhancement	new		2019-09-26T01:52:43Z	2019-09-26T01:52:43Z	The font of the error message shown in the iframe when activating a broken plugin doesn't match that of the rest of the page. See the attached image for an example.	pierlo
	41910	Update plugin/theme maintenance message		Plugins		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2017-09-18T13:41:50Z	2019-06-20T21:06:25Z	"Hey

The message that shows up when updating plugins or themes should not remove the visible site. Instead it should keep the old plugin/theme until it has finished updating and then smoothly change over to the new without disrupting the frontend of the site.

On fatal error it should automatically revert to the old and just give a message in the backend that it could not update to the new plugin/theme because of whatever reason. Then a message saying let the author of the theme/plugin know about the error.

"	paaljoachim
	62788	Update request for 'Deleting...' string after failed Ajax attempt		Plugins	6.7.1	normal	trivial	Awaiting Review	enhancement	new	dev-feedback	2025-01-08T16:47:16Z	2025-06-04T13:25:42Z	please see attached image	ignatiusjeroe
	58037	Use a placeholder icon when an icon is unable to load/be found in the plugin directory		Plugins		normal	minor	Awaiting Review	enhancement	new	dev-feedback	2023-04-01T10:23:24Z	2025-08-20T12:57:58Z	"Like shown in the screenshot, sometimes when going through the plugin directory in your WP install... for some reason a plugin icon is unable to load since there isn't one/it's missing/it's too big/blocked by AV/... In that case, it would be nice that some placeholder art is shown like the WP logo or the one in ""second screen"". "	NekoJonez
	53385	"When adding a plugin/theme via ""add new plugin/theme"" it should show if the plugin/theme is translated or not"		Plugins	5.7.2	normal	normal	Awaiting Review	enhancement	new		2021-06-11T14:08:02Z	2021-09-27T14:18:56Z	"When you add a new plugin via the plugin menu and click on ""Add new plugin"" it should show if that plugin is translated to the site language. 

Eg: show the flag or something of that nature with a checkmark or a cross...? 

Of course, you could argue that if the explanation/plugin name is translated the translation is ""done"" but as a polygot for nl_BE and nl_NL myself, I can say that isn't the case. Since we have a TON of plugins where the readme isn't translated and even visa versa. "	NekoJonez
	55089	ajax `wp_ajax_update_plugin` show download failed when contain another update (eg: translations) with same process fail.		Plugins	5.9	normal	minor	Awaiting Review	enhancement	assigned	reporter-feedback	2022-02-05T15:02:59Z	2022-02-05T15:02:59Z	"I found that {{{wp_ajax_update_plugin}}} contain invalid response when trying to update plugin via ajax request.

This happend when {{{$upgrader->bulk_upgrade( array( $plugin ) );}}} called, and any other update progress run on same time.

Eg: there are translations update exists and when contain errors on translations update, the plugin update tell that the plugin fail to download, but the plugins successfully updated.
"	arrayiterator
	60194	Add Preview in Playground buttons to plugin install screens		Plugins	6.5	normal	normal	Awaiting Review	feature request	new	dev-feedback	2024-01-05T04:40:55Z	2026-09-04T04:56:04Z	"Proposal: add Preview buttons to plugin install screens within wp-admin.

Background:

The WordPress.org Plugin Directory now supports a Live Preview feature based on Playground; see https://meta.trac.wordpress.org/ticket/7251 for context.

You can see an example working on the https://wordpress.org/plugins/convert-to-blocks/ plugin. Previews are currently only enabled on plugins where the developer has opted in and provided a blueprint.json file (which provides setup and configuration info).

The preview button on the web site works simply by redirecting from `https://wordpress.org/plugins/PLUGIN-SLUG/?preview=1` to a `playground.wordpress.net` URL which loads the plugin's blueprint file. It opens the playground URL in a new window using `target=""_blank""`.

I'm proposing that we do essentially the same thing from within wp-admin, on screens with an Install button for plugins: add a Preview button, which opens `https://wordpress.org/plugins/PLUGIN-SLUG/?preview=1` in a new window.

The wordpress.org plugins API already returns a `preview_link` property containing the appropriate URL for plugins with a working preview.

I'll attach a diff with a minimal implementation; this is intended as a starting point for testing and discussion, not a finished patch in its current state."	tellyworth
	62780	Add ability to developers to add their own plugin statuses via a filter #1		Plugins		normal	normal	Awaiting Review	feature request	assigned	has-patch	2025-01-04T18:39:41Z	2025-01-05T21:02:20Z	"My suggestion is to add ability to developers to alter/filter the allowed plugin statuses .

So If you add a WP filter, this could be done more efficient and natively.

My code suggestion is this:
in file:
wp-admin/includes/class-wp-plugins-list-table.php
in construct method to add a filter after defining the $allowed_statuses variable like this:

{{{
/**
 * Filters the plugin allowed statuses.
 *
 * @param array $allowed_statuses The array of plugin allowed statuses.
 */
$allowed_statuses = apply_filters('plugin_allowed_statuses', $allowed_statuses);
}}}





For example, my case was to add plugin status fav_plugins, and I have written this work around to init the plugin_status as I need:


{{{#!php
<?php
// Workaround
add_filter('plugins_auto_update_enabled', function($enabled){
	if( !is_admin() ) return $enabled;

	global $pagenow;
	if( $pagenow != 'plugins.php' ) return $enabled;

	$plugin_status = $_GET['plugin_status'] ?? '';
	if( $plugin_status != 'fav_plugins' ) return $enabled;

	$GLOBALS['status'] = 'fav_plugins';

	return $enabled;
});
}}}


My purpose was to create a functionality to save all the active plugins to a newplugin status called fav_plugins. You can view the plugin I created here:


[https://github.com/pexlechris/pexlechris-save-active-plugins/blob/main/pexlechris-save-active-plugins.php]


"	pexlechris
	44073	Add functionality to search plugin with double quoted keyword		Plugins		normal	normal	Awaiting Review	feature request	new		2018-05-14T14:22:42Z	2018-05-23T14:24:28Z	"Is this possible to add a feature where plugins could be searched on `Add New Plugin` page either with:

- More than one keyword wrapped inside double quotes. Example: ""my plugin""
OR
- Add a filter like **Match Whole Phrase** (in existing filter dropdown)

In either case, it would be much easier to locate the desired plugin as the result will become more filtered and less items would appear on screen. This can avoid scrolling through ""relevant results""."	subrataemfluence
	57064	"Add individual ""Support"" links to the plugin list page / theme page"		Plugins		normal	normal	Awaiting Review	feature request	new		2022-11-10T15:23:38Z	2022-11-10T22:27:58Z	"Finding context-relevant support can be challenging for new users and many of them are not aware of the fact that each plugin has its own support forum.

One simple way to bridge this gap could be to include a ""Support"" link underneath the plugin description. This link would take to that plugin's forum."	mrfoxtalbot
	42981	Sorting plugins and themes		Plugins	4.9.1	normal	normal	Awaiting Review	feature request	new		2017-12-26T09:09:56Z	2019-04-02T18:51:39Z	"PLEASE - Sort themes and plugins into :

Premium
Fremium / Cripple ware
Free and fully functional
Not as described in the image (Pretty picture, preview looks nothing like it = Hours of work to make it look like the demo. I'd write a theme if I wanted the work)

Anything not updated in the last 12 months - ""Abandoned"" pile, not visible
Anything with ratings - Sort by rating - Under 3 - not visible
Not tested on latest WP version - not visible
Not tested on PhP 7 - not visible

Speed test rating - Google wants a 2 second load time for mobile. Let's have an apples for apples rating. 5 pages, 10 images, 1000 words and (say) Yoast, Wordfence, WooCommerce and 4 other common plugins.

I am sick to death of wasting hours on sifting this garbage - Make these 'Filters' and help everybody. 

You tell us to update things for security reasons and some of us professionals do that. 

Client sees a pretty picture then it turns into a nightmare for the above reasons and who has to fix it for free or spend hours looking for a replacement?

The login Username should not be the default Editor name. You've handed a hacker half the login.

Security - Set permissions to prevent malware spreading - in 2017, one client had malware uploaded to his site and it spread to all other sites and within site folders. WordPress should be containerised by default and SQL / Updates / changes should require 2 factor authentication to update anything (Just a 'secret password')

Yes, I know, experts can fix this. In reality, most people do not have the skills. I buy a tool and assume the manufacturer has designed it for Joe Public to use with inbuilt basic safety.

Last suggestion - A fork of WP for eCom with included carts, security etc. Google wants fast loading and WP struggles, so fork it to optimised versions :

Blogs
eCom
Membership
Versatile - Current version (as is)

and the revolutionary version - Offline. This is where the site is built offline and uploaded as a stripped down html5 flat file database version that is a speed demon static site. Lauyan.com looks promising.

Regards"	grumblenz
	61419	allow to disable plugin dependencies feature		Plugins		normal	normal	Awaiting Review	feature request	new		2024-06-12T15:02:24Z	2024-07-02T09:35:51Z	"Hi,
we are debuging quite a mix of plugins and some pages have 40 or more and multiple dependencies. With the plugin dependencies, it has become a chore to disable and enable a bunch of dependent plugins at once for debuging purposes. It would be a huge help, if there was an option to disable the plugin dependencies.
Thanks,
Karel"	pir1
	34670	Default Post Format option lists formats that are not available in the theme		Post Formats	4.3.1	normal	normal	Awaiting Review	defect (bug)	reopened	close	2015-11-12T18:35:08Z	2021-06-16T22:30:02Z	"The problem happens when you set a post format that it's not available on the theme. It actually happened with the Canard theme, that doesn't allow Video post formats. Below is the steps to reproduce:

1) Select the Canard theme

2) On Settings > Writing, change the Default Post Format to Video

3) Add a new post, it will show the Video format post selected (even if it's not allowed). Add a Featured Image and publish the post.

The Featured Image will not show on the front page. I've tested and reproduced this behavior with WP Admin and Calypso for WordPress.com and on a self hosted site. I tried different themes and post formats, but was able to reproduce only with Video format, and found only this theme that it's not allowed.

Let me know if you need any other information.

Thanks,
Carina Pilar
Happiness Engineer Trial"	carina.pilar
	43613	Default post format setting does not respect theme support		Post Formats		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-03-22T22:20:39Z	2025-06-24T13:14:53Z	"In `options-writing.php`, the `Default Post Format` setting does not check whether the current theme supports the built-in formats. Would it not be more intuitive if only the formats supported by the current theme were in the list to select? Then a description could be added underneath to say ""these are the formats supported by the currently selected theme"".

Alternatively, there could be a filter added to `get_post_format_strings` in `wp-includes/post-formats.php` to allow themes/plugins to remove available formats from this list.
"	seanleavey
	43482	Draft Posts Throw 404 on Preview when Supporting post_format		Post Formats	4.9.4	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2018-03-07T01:07:03Z	2025-05-09T06:27:55Z	"A client is reporting that they're not able to preview drafts of some of the custom post types we have running on their site. The issue is not occurring for all post types on their site. I believe I've traced the issue to the fact that the errant post types support ""post_format."" 

The preview URL that gets generated when I preview the ""ask-the-expert"" post is:

`https://www.sitename.com/?post_type=ask-the-expert&p=4063&preview_id=4063&preview_nonce=ebffa07dd9&post_format=standard&_thumbnail_id=-1 `

That above URL throws a 404 page.

When I pull out the 'post_format=standard' part of the query, so that the URL looks like: 

`https://www.sitename.com/?post_type=ask-the-expert&p=4063&preview_id=4063&preview_nonce=ebffa07dd9&_thumbnail_id=-1`

then the preview loads correctly. 

Interestingly, just for giggles I also tried: 

`https://www.sitename.com/?post_type=ask-the-expert&p=4063&preview_id=4063&preview_nonce=ebffa07dd9&_post_format=standard&_thumbnail_id=-1 `

and that also worked as it should. (notice the added underscore before 'post_format')

For now I think I'm just going to disable post formats for the offending post types, but methinks I found a bug. 
"	marklavin
	47675	No way to select Standard post format in Formats filter		Post Formats	5.2	normal	normal	Future Release	defect (bug)	new	has-patch	2019-07-10T17:04:09Z	2026-07-30T15:23:01Z	"Background: #35497, #46591, #47359.

[45136] removed post format icons from the posts list table.

For some users, as noted in comment:52:ticket:35497, these icons were a convenient way to quickly distinguish posts with a format from standard posts.

Use case: when most of the posts have a non-standard format, you'd like check if there are any posts where you accidentally forgot to assign a format.

Even with the new Formats filter introduced in [44961], that's no longer possible, as it does not have a Standard option. This seems a bit inconsistent with the Categories filter, where you can filter by Uncategorized.

Brought up by @dimalash on support forums."	SergeyBiryukov
	66140	Post Add Media Button Not Working		Post Formats		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2026-09-19T09:43:33Z	2026-09-21T18:10:29Z	"media-views.min.js:2 Uncaught TypeError: this.activateMode is not a function
    at media-views.min.js:2:59809
    at xt (injected.js:1:793347)
    at Dr.ma (injected.js:1:829431)
    at n._createModes (media-views.min.js:2:59769)
    at n.initialize (media-views.min.js:2:59178)
    at n.initialize (media-views.min.js:2:79978)
    at n.initialize (media-views.min.js:2:73630)
    at n.initialize (media-views.min.js:2:63330)
    at h.View (backbone.min.js:2:14879)
    at n.constructor (wp-backbone.min.js:2:2602)"	doctorlai
	62712	"""Edit image"" in Media Modal not work for PSD/SVG ( mime_type image/* )"		Post Thumbnails	6.7.1	normal	minor	Awaiting Review	defect (bug)	new		2024-12-18T23:54:41Z	2024-12-20T21:52:43Z	"in wp-includes/media-template.php #425
is a condition for showing ""Edit image"" button in Media modal attachment dialog.
{{{#!php
<?php
<# if ( 'image' === data.type && ! data.uploading && data.sizes && data.can.save ) { #>
<button type=""button"" class=""button edit-attachment""><?php _e( 'Edit Image' ); ?></button>
<# } else if ( 'pdf' === data.subtype && data.sizes ) { #>
<p><?php _e( 'Document Preview' ); ?></p>
?>
}}}

If we have file with metadata sizes, and has mimetype image/*, it will show ""Edit image"" button. So if I add metadata sizes for PSD files, or DOCX (like PDF does), it will show  button.


in wp-admin/includes/media.php #1682
is a condition for showing ""Edit image"" button in edit screen.
{{{#!php
<?php
if ( wp_attachment_is_image( $post->ID ) && wp_image_editor_supports( array( 'mime_type' => $post->post_mime_type ) ) ) {
?>
}}}

wp_attachment_is_image function check mime type of file. If is image/*, so SVG (image/svg+xml) or PSD (image/vnd.adobe.photoshop), it is true, which is ok.

wp_image_editor_supports check ImageMagick, it has support for mime_type of attachment. For PSD return false.

wp_get_image_editor function for PSD return ImageMagick. I can create jpg.






"	Hrohh
	43326	Delay when setting Featured Image		Post Thumbnails	4.9.4	normal	normal	Awaiting Review	defect (bug)	new		2018-02-15T00:09:47Z	2018-02-15T03:49:14Z	"When setting a Featured Image on a page/post, there's a delay of a few seconds after choosing the image. If you hit the page/post Update button before the Featured Image is displayed, it won't be saved.

Perhaps disable the Update button until the featured image has finished setting."	bluesix
	58402	Featured Image Preview breaks when an SVG image is uploaded.		Post Thumbnails		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2023-05-25T09:26:43Z	2025-05-12T01:38:08Z	"Steps to reproduce.

Add a new post - set a featured image. Use an **SVG** as the featured image.
The layout breaks inside **InspectorControls**

It seems to be because the image tag returns 0 as its naturalWidth/naturalHeight.

Reference for what seems to be the issue with SVG.
https://bugzilla.mozilla.org/show_bug.cgi?id=1607081

**Note**: This can only be reproduced if, SVG image upload is enabled via functions.php. Since by default, WordPress doesn’t allow SVG upload."	deepakvijayan
	45356	adding a featured image takes forever now, what's going on with that.		Post Thumbnails	5.0	normal	minor	Future Release	defect (bug)	assigned	close	2018-11-15T01:48:06Z	2025-10-23T15:25:30Z	"If I try to quickly add a featured image, and click publish the featured image won't save.

I have to wait until the thumbnail appears indicating that it's actually saved the featured image. The only problem with this is that it takes likes 5 seconds, whereas it used to be near instantly.

This could be improved, I may take a look into it myself and see if I can figure anything out to improve the performance there.

I experienced this issue on Ubuntu 16.04 LTS on Google Chrome"	coffeywebdev
	45688	admin_post_thumbnail_html filter no longer works in WordPress > 5.0		Post Thumbnails	5.0	normal	normal	Awaiting Review	defect (bug)	new		2018-12-18T15:35:21Z	2018-12-18T15:41:12Z	"Hello,

It seems the admin_post_thumbnail_html filter not longer working in latest WordPress ?"	nik00726
	55024	In wp-admin, show thumbnail of featured image		Post Thumbnails		normal	normal	Awaiting Review	enhancement	new		2022-02-01T11:39:26Z	2022-02-01T11:39:26Z	"Currently on wordpress.com in wp-admin in the area of posts and pages, the thumbnail of the featured image is shown if the option for this effect is selected.

This is a feature that would be useful to be present on wordpress.org without the need to install plugins.
"	ricjcs
	44542	Images: Option to control when to create different image dimensions		Post Thumbnails	4.9.7	normal	major	Awaiting Review	feature request	new		2018-07-08T16:17:33Z	2025-01-27T06:55:49Z	"Hello, I believe that wp miss the ability to control when to create different image dimensions.

Because i have see that wasting space from the disk of the server without reason.

Example: When we create a gallery with the native wp gallery create dozens of different image dimensions and in fact use only the thumbnail because shows the full size with the lightbox.

Its great if you add the ability to disable to create different image dimensions in any case that we want."	B_Dark
	49355	"""Publishing failed. Error message: Could not update post in the database"" caused by encoding"		Posts, Post Types	5.3.2	normal	normal	Awaiting Review	defect (bug)	new		2020-02-04T01:30:57Z	2023-07-02T14:44:32Z	"I have some text that I am copying into the title of a post. I get the following error:

""Publishing failed. Error message: Could not update post in the database""

The text is: 

𝐀 𝐖𝐢𝐧 𝐟𝐨𝐫 𝐚 𝐉𝐮𝐬𝐭𝐢𝐜𝐞 𝐂𝐞𝐧𝐭𝐫𝐞 𝐂𝐥𝐢𝐞𝐧𝐭!

I am having trouble understanding what encoding this text is. 

Why is this failing to save to the database? My database is set to utf8mb4. Why WordPress is choking on it?"	1000camels
	52389	Consistently check for non-empty post ID in attachment functions	SergeyBiryukov*	Posts, Post Types		normal	normal	Future Release	defect (bug)	accepted	has-patch	2021-01-28T10:53:31Z	2024-09-30T06:29:24Z	"Background: #50679, #52196.

As a result of the changes in  [49084] and [50039], `wp_get_attachment_metadata()` conditionally calls `get_post()` if the attachment ID is not passed:
{{{
$attachment_id = (int) $attachment_id;

if ( ! $attachment_id ) {
	$post = get_post();

	if ( ! $post ) {
		return false;
	}

	$attachment_id = $post->ID;
}
}}}

This is not really consistent with other attachment functions, which just always call `get_post()` unconditionally:
{{{
$attachment_id = (int) $attachment_id;

$post = get_post( $attachment_id );
}}}

Let's bring some consistency here, there is no reason for these minor differences.

This applies at least to:
* `wp_get_attachment_metadata()`
* `wp_get_attachment_url()`
* `wp_get_attachment_caption()`
* `wp_get_attachment_thumb_file()`
* `wp_get_attachment_thumb_url()`"	SergeyBiryukov
	47041	Custom Post type author empty		Posts, Post Types	5.1.1	normal	normal	Awaiting Review	defect (bug)	new		2019-04-25T11:30:05Z	2020-04-22T06:20:09Z	"If I created Custom post type with rest enabled [ for Gutenberg support  ] and I try to created/publish custom post type then Post author is empty instead of the current user

I checked with bbPress Post type forum, For enabled rest support, refer the following code

{{{#!php
function twentyseventeen_rest_support_bbpress() {
	global $wp_post_types;
	$forum_post_type = bbp_get_forum_post_type();
	if (isset($wp_post_types[$forum_post_type])) {
               $wp_post_types[ $forum_post_type ]->show_in_rest = true;
	}
}
add_action('init', 'twentyseventeen_rest_support_bbpress', 25);
}}}
"	dipesh.kakadiya
	63662	DateTimePicker in the post editor does not show posts that are published on midnight of first day of month		Posts, Post Types	6.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-07-03T10:32:43Z	2025-08-19T16:50:08Z	"In the post editor, there is a date/time picker to select the publication time. Day with a publication are marked with a blue dot.

The blue dot is missing if the post is scheduled for midnight of the first day of month.

The SQL query that is executed by the REST API contains this condition: wp_posts.post_date < '2025-08-31 23:59:59' AND wp_posts.post_date > '2025-08-01 00:00:00'

"	butesa
	41727	Draft page loses its hierarchy on save when other pages are drafts in hierarchy		Posts, Post Types	4.8.1	normal	normal	Awaiting Review	defect (bug)	new		2017-08-25T13:12:54Z	2020-12-15T22:48:25Z	"How to reproduce:

1. Create a set of pages with a status publish
2. Set hierarchy to pages
3. Change the status to of the aforementioned set to draft
4. Open draft for editing.
5. Save as draft.
6. Now you have lost the hierarchy.

I think you should retain the hierarchy, because it is quite common use case to build something as drafts before publishing them or taking pages to drafts if they are in need for editing and the user wants them out before edits are done. Tickets  possibly related #15541 and #12890.
"	stode
	59348	Excerpt block length is not full customizable any more		Posts, Post Types		normal	normal	Awaiting Review	defect (bug)	new		2023-09-14T11:40:32Z	2023-09-14T15:19:35Z	"Since the latest changes in /src/wp-includes/blocks/post-excerpt.php now the excerpt length is not fully customizable any more. The problem is that previously `$excerpt = get_the_excerpt();` was used, which was filterable with `get_the_excerpt`, but now this excerpt is just getting forcefully trimmed by `wp_trim_words` based on the `excerptLength` option. Which is: a) A number forced to be between 10-100 b) now can not be changed or overwritted with custom code in any way.

If I want to display the excerpt of a post on the post's page, now there is no way to correctly display an excerpt that is longer than 100 words. I think this is a loss in features and a bad practice to limit the excerpt's usage in this way. At least allow `$excerpt_length = $attributes['excerptLength'];` to be modified with the already existing `excerpt_length` filter.

Mentioned change:
https://core.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=56065%40trunk%2Fsrc%2Fwp-includes%2Fblocks%2Fpost-excerpt.php&old=55246%40trunk%2Fsrc%2Fwp-includes%2Fblocks%2Fpost-excerpt.php"	frzsombor
	63273	Fatal due to superglobal $_POST modification with invalid int type		Posts, Post Types		normal	major	Future Release	defect (bug)	assigned	has-patch	2025-04-13T08:27:00Z	2025-10-27T19:02:28Z	"By default PHP's $_POST and $_GET superglobals can only contain string and array types.

Unfortunately, WordPress overwrites the superglobals though and thereby sets keys with invalid int values. e.g. when updating a page/post /wp-admin/post.php?post=123&action=edit it will set `user_ID`, `post_author`,... see https://github.com/WordPress/wordpress-develop/blame/trunk/src/wp-admin/includes/post.php#L63

When using `strict_types=1` in a file and processing the $_POST data with a function that expects a string type, you'll get a fatal error.

If it's a non-WP form, which might use the same keys (e.g. ID or user_ID) means that extra handling needs to be added to plugin/theme code to ensure it works in both cases without fatal (and ignoring 1000s of errors from static analysis, which tells me that $_POST values cannot be int)"	kkmuffme
	65277	Gutenberg Gallery Flex Styles Missing		Posts, Post Types	6.9.4	normal	normal	Awaiting Review	defect (bug)	new		2026-05-20T04:29:46Z	2026-06-04T22:33:16Z	"## `display: flex` missing from `.wp-block-gallery.has-nested-images` stylesheet

**WordPress Version:** (please fill in)
**Block:** Gallery (nested images / `has-nested-images` format)

### Description

The gallery block's stylesheet (`style.min.css`) is missing `display: flex` on the `.wp-block-gallery.has-nested-images` selector. Every flex-dependent property in the `has-nested-images` ruleset — `flex-wrap`, `justify-content`, `align-items`, etc. — is silently ignored by the browser because the flex formatting context is never established.

### Steps to Reproduce

1. Create a page or post.
2. Add a Gallery block with two or more images (this produces the `has-nested-images` markup).
3. Inspect the outer `<figure>` element in browser devtools.
4. Observe that `justify-content: center` (from `.wp-block-gallery.has-nested-images.aligncenter`) and other flex properties have no effect.

### Expected Behavior

Images in the gallery lay out in a row, wrapping as expected, with alignment controls functioning correctly.

### Actual Behavior

The gallery images stack vertically (block layout). Flex properties such as `justify-content` and `flex-wrap` are ignored because `display: flex` is never set on the container.

### Root Cause

The legacy (non-nested) gallery format correctly sets `display: flex`:

```css
.wp-block-gallery:not(.has-nested-images) {
  display: flex;
  flex-wrap: wrap;
  ...
}
```

However, the `has-nested-images` ruleset never sets `display: flex` on the outer gallery container. The ruleset contains:

```css
.wp-block-gallery.has-nested-images.aligncenter {
  justify-content: center; /* has no effect — no flex context */
}
```

...among other flex-dependent rules, but the foundational `display: flex` declaration is absent.

### Suggested Fix

Add the following to the `has-nested-images` ruleset:

```css
.wp-block-gallery.has-nested-images {
  display: flex;
  flex-wrap: wrap;
}
```

### Workaround

Users can add the above CSS manually via their theme or a custom stylesheet until this is addressed in core."	carbondigitalus
	57634	"Hide ""view"" link from Post List Table if empty string passed to post_link"		Posts, Post Types	1.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-02-04T18:48:02Z	2023-02-04T19:05:57Z	"As in [https://core.trac.wordpress.org/ticket/54824 54824] also in Post List Tables an empty string passed to `post_link` should hide ""view"" link.

Actually link is just empty:

{{{
<span class=""view""><a href="""" rel=""bookmark"" aria-label=""View “Test”"">View</a></span>
}}}

In my opinion ""view"" link should be removed if permalink is empty."	uzumymw
	59664	I have tested beta 6.4 version and some issue on mobile device		Posts, Post Types		normal	normal	Awaiting Review	defect (bug)	new		2023-10-17T20:08:04Z	2023-10-27T20:57:00Z	"I have tested WordPress Beta 6.4 RC1 version and some issue. 

https://wordpress.slack.com/archives/C02RW657Q/p1697563998445079

Post listing page arrows is not doing anything. For more information see mentioned screenshots and recording. 


Also credit page on text color issue. 
"	sumitsingh
	62461	If a post has 2 term tags children's and kid+ and from all terms we have children's, kid and kid+, when the post/tags is saved, kid+ is saved as kid		Posts, Post Types	6.6	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-11-18T16:13:50Z	2026-10-20T17:18:51Z	There is an array compare for tags in wp-includes/post.php on line 4989 that will fail comparing the tags because children's will be escape as children\'s and as such the array comparison will be false, thus attaching tags to the post will be qureried by tag name on not buy slug, thus kid+ will be closer to kid, where the slug for kid+ is kid-plus while that for kid is kid.	frankakot1
	53044	Issue on mobile device when try to post QUICK EDIT.		Posts, Post Types	5.7.1	normal	normal	Awaiting Review	defect (bug)	new		2021-04-15T18:24:10Z	2021-05-13T16:00:24Z	"Hi,

I have setup updated WP latest version 5.7.1. and some UI issue on mobile device when i am trying to quick edit Post on mobile. More information you can see mentioned screenshot.


Thank you"	sumitsingh
	62049	Italics HTML tags in Post Titles are Being Converted to HTML Entities		Posts, Post Types	6.5.5	normal	major	Awaiting Review	defect (bug)	new		2024-09-13T19:21:43Z	2024-09-17T17:36:36Z	"When editors wrap words like publication titles and book titles within Post titles with HTML:
{{{
<em> or <i>
}}}

The opening tag ""<"" gets converted to the entity: &lt;

The only way we have found to fix it is to go into the 'quick edit' menu and change it back to ""<"". This is causing issues on our site. It has only been occurring since 6.5.5. We tested it with other themes using 6.5.5 and have confirmed that it still happens. It does not happen with earlier WordPress core versions."	ccwp24
	52101	Need to add trash option for Draft Reusable Blocks		Posts, Post Types	5.6	normal	normal	Awaiting Review	defect (bug)	new		2020-12-17T10:29:34Z	2020-12-31T01:07:58Z	"For Reusable Blocks, there is no option for Reusable Blocks draft to trash.
Please check and let me know.

Screenshot - https://www.screenpresso.com/=GpEBb"	rkradadiya
	63574	Post Options Divider Missing in Mobile View on Post List Page (WP-Admin) (Playground)		Posts, Post Types		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-06-16T09:16:21Z	2025-07-08T15:07:24Z	"On the Posts > All Posts admin screen in WordPress, the visual divider between post options (Edit, Quick Edit, Trash, View) is missing in the mobile view. This leads to a slightly cluttered UI and lack of clarity between available actions.

=== Steps to Reproduce:
* Open Playground (https://playground.wordpress.net/)
* Navigate to Posts > All Posts.
* Resize the browser window to simulate a mobile view (or open it on a mobile device).
* Observe the row containing post actions like Edit, Quick Edit, Trash, and View.

=== Expected Behavior:
A visible divider or spacing should clearly separate post options even in mobile view, maintaining the usability and aesthetics of the admin interface.

=== Actual Behavior:
There is no visible divider or spacing between the post options in mobile view, making the UI appear cluttered and harder to interact with.

=== Environment Details:
Wordpress Playground (https://playground.wordpress.net/)

"	dhrumilk
	58617	Post Status label inconsistency in get_post_statuses() and get_post_stati() functions		Posts, Post Types		normal	minor	Awaiting Review	defect (bug)	new	has-patch	2023-06-25T18:39:23Z	2023-06-25T20:22:27Z	"Functions {{{get_post_statuses()}}} and {{{get_post_stati()}}} are returning different labels for the same post status slug.

The {{{get_post_statuses()}}} function returns **Pending Review** as the label corresponding to the post status with the slug **pending**, whereas the {{{get_post_stati()}}} function returns the label **Pending** for the same post status slug.

Please make these labels consistent i.e. both the labels having the slug **pending** in each of the functions mentioned above, should be 'Pending Review'."	kaavyaiyer
	61969	Post guid for custom post type being modified		Posts, Post Types	3.2	normal	minor	Awaiting Review	defect (bug)	new	has-patch	2024-09-02T16:07:07Z	2024-10-08T21:38:12Z	"I understand that a post's guid should generally be invariant, i.e. once set it should not normally be changed. WordPress core seems to violate this for custom post types.

When creating a post for a custom post type the guid created is (now) of the form:
  <domain>/?post_type=<custom post type>&=p=<post id>
When that post is first updated the guid gets changed to
  <domain>/?post_type=<custom post type>&#038;p=<post id>
I think this is happening because of the filter added on post_guid calling esc_url (see wp-includes/default-filters.php) which is called when updating the post but not when originally creating it.

Note the creating logic sets guid using get_permalink which in turn calls get_post_permalink and does not include any use of esc_url.

You can recreate the problem, providing you have a custom post type available, by the following WP CLI commands:
  wp post create --post_title='Initial create' --post_type=<custom post type>
guid will be set as described above
  wp post update <post id> --post_title='Updated title'
guid will be revised as described above
And you can use ""wp post get <post id>"" to see the different guid values

Naively, I would suggest two ways of fixing this:
1) Remove the default filter on post_guid that calls esc_url
2) Wrap the call to get_permalink in wp_insert_post in a call to esc_url"	peter8nss
	63598	Post locking takeover dialogue shows when `show_post_locked_dialog` filter returns false		Posts, Post Types		normal	normal	Awaiting Review	defect (bug)	new		2025-06-19T10:20:53Z	2025-09-17T11:18:41Z	"Follow-up to #24830.

When you attempt to avoid the post locking dialogue via `show_post_locked_dialog` filter, you are initially allowed to view the post without the lock dialogue appearing, but after an autosave and the post lock is checked you are presented with the post takeover dialogue.

The first user into a post isn't presented with this, but a second user attempting to also edit will receive this.

When it was resolved in #24830, this was prior to the REST API being present, so unsure if it's related to the autosave REST API request and/or the post lock check, but the behaviour is unexpected. Hoping that someone with better knowledge of these working can help figure this out."	paulkevan
	46296	Posts set to 'private' and password protected should return a 403 HTTP header status		Posts, Post Types		normal	minor	Awaiting Review	defect (bug)	new	has-patch	2019-02-21T09:47:51Z	2023-07-10T16:17:33Z	"These currently output a 200 status, which may result in search engines and external agents indexing them.

If the user doesn't have access permissions, a 403 header status should be returned.

[[Image(https://ci3.googleusercontent.com/proxy/1s4a4RyK3Oxal9c6hENPJ8kBEsn7Dc3AnwjdTUsFPg-Yg2Eb5PSOTCZWzm6v6CM3Jb_F7Oerojh9MPVkkivaxGdsuITKENP-D7FbF8a9JDFDFH-D77zEKyKXnHM3nqHrtOgMFCrg68sS4j1HtnO5m3j3PQaA=s0-d-e1-ft#https://user-images.githubusercontent.com/487629/53154266-af22e680-35ba-11e9-9f4e-eb520634ffff.png)]]"	jonoaldersonwp
	62948	Posts tagged with complex Emoji can't be found		Posts, Post Types	6.7.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-02-11T23:21:24Z	2025-04-04T11:21:37Z	"If a post is tagged with `🏳️‍⚧️` - it cannot be found at `tag/%F0%9F%8F%B3%EF%B8%8F%E2%80%8D%E2%9A%A7%EF%B8%8F`

* I have several blog posts which have a tag of ""🏳️‍⚧️""
* The tag shows on the posts - for example https://shkspr.mobi/blog/2023/04/some-thoughts-on-hacking-the-cis-tem/
* If I visit the tag page, I'm told that no posts exist with that tag - for example https://shkspr.mobi/blog/tag/🏳️‍⚧️/ 

Some simpler emoji *do* work as tags.  For example https://shkspr.mobi/blog/tag/😊/

Moderately complex flag emoji also work. For example https://shkspr.mobi/blog/tag/🏴‍☠️/ and https://shkspr.mobi/blog/tag/%f0%9f%8f%b3%ef%b8%8f%f0%9f%8c%88/

My backend database has an encoding of utf8mb4_unicode_520_ci (10.6.20-MariaDB)."	edent
	54920	Problem with blog posts updating to WordPress 5.9	audrasjb	Posts, Post Types	5.9	normal	normal	Awaiting Review	defect (bug)	reviewing		2022-01-26T12:54:59Z	2022-02-01T13:53:40Z	Posts preview view are showing the same text for all of them order by categories. Titles and images are ok.	jorgemartineznb
	55665	Remove unused margin when post-body-content is empty		Posts, Post Types		normal	normal	Awaiting Review	defect (bug)	new		2022-05-03T14:06:18Z	2022-05-06T15:25:33Z	"I created a custom post type that does not support any fields (support argument in $args)
It's just a metabox inside
But on the page to add that post (add-new post in wp-admin), there is an unused margin in , which creates a space at the top of the page that is related to the tag with the post-body-content ID.
I suggest deleting this margin if this tag is empty.
thank you

[[Image(https://i.imgur.com/fFhFWiT.png)]]"	myousefi08
	48106	Revisit post GUID sanitization on `&`		Posts, Post Types	5.2.3	normal	normal	Awaiting Review	defect (bug)	new		2019-09-23T08:26:37Z	2019-09-28T13:40:16Z	"=== The source code of core which needs to be revisit

When a new post/attachment is inserted into the database, the post GUID is sanitized and the `&` character in GUID is converted to `&amp;`.

More specifically, in `wp-includes/default-filters.php`, function `wp_filter_kses` is added as a default `pre_post_guid` filter.

{{{#!php
// Save URL
foreach ( array( 'pre_comment_author_url', 'pre_user_url', 'pre_link_url', 'pre_link_image',
	'pre_link_rss', 'pre_post_guid' ) as $filter ) {
	add_filter( $filter, 'wp_strip_all_tags' );
	add_filter( $filter, 'esc_url_raw'       );
	add_filter( $filter, 'wp_filter_kses'    );
}
}}}

Before a post GUID is saved, function `wp_filter_kses` in `wp-includes/kses.php` is called, and eventually function `wp_kses_normalize_entities` does the real conversion, so that `&` is converted to `&amp;`.

=== The problem it causes

The plugin External Media without Import (https://wordpress.org/plugins/external-media-without-import/) inserts external image URLs as post GUIDs into database so that users can add external images into their media libraries without actually uploading the image files to their WordPress servers. If the image URL contains `&`, such as 

https://pbs.twimg.com/media/D_NKa3yWkAYwZwn?name=900x900&format=png

it is converted to 

https://pbs.twimg.com/media/D_NKa3yWkAYwZwn?name=900x900&amp;format=png

The result is that the image is not correctly displayed in some places, such as the media library page of the admin dashboard.

There're also other plugins, such as Imposer (https://github.com/dirtsimple/imposer/) and Postmark (https://github.com/dirtsimple/postmark/), encountering the same issue. Imposer fixes the issue by forcing to save post GUIDs again with the unsanitized version. I think it is equivalent to removing `wp_filter_kses` from the default `pre_post_guid` filters.

=== The reason of post GUID sanitization

Post GUID sanitization was added with a commit in 2011: https://github.com/WordPress/WordPress/commit/81a5f821fbfb63be6c5517d033b8e7a0a4172f07. The commit log message does not state why post GUIDs need to be sanitized on save and display. Also, the commit is so long time ago that seems that even the members of the core channel of WordPress Slack group can't tell the reason.

At first it was thought that it is because when exporting RSS feeds, `&` needs to be converted due to XML specification. But I did some experiments and inspected the core source code, and found that in fact WordPress core does convert `&` to `&#038;` while exporting RSS2 feed, even if I changed the `&amp;` back to `&` in the database via MySQL client. The convertion is done by function `wptexturize` in `wp-includes/formatting.php`. The function is added as a default `the_content` filter.

So I really don't understand why post GUIDs should be sanitized, especially for the `&` issue. This might be a core issue rather than a plugin issue. It might be fine to not add `wp_filter_kses` as a default `pre_post_guid`, i.e. not do the post GUID sanitization.

This issue has also been discussed here: https://github.com/zzxiang/external-media-without-import/issues/17"	zzxiang
	50467	Search results not displaying all entries in Admin > Posts in certain conditions		Posts, Post Types	5.4.2	normal	minor	Awaiting Review	defect (bug)	new		2020-06-24T20:54:20Z	2021-08-23T20:41:55Z	"**''Limitations of my bug report''**

I observed that bug in a live wordpress site, not even mine, so, my apologies, I cannot experiment with it as I would have liked otherwise. No deactivating plugins, no switching to another theme.

Thus: I report the issue, explain it the best I can, but I'm leaving it at that. 

Either (a) it's affecting all wordpress installs, I'm glad I could help by reporting it, or (b) for some reason, it's only the blog on which I've seen it that has it, and then I'm perfectly fine with it, it's just that, me, I cannot tell at all on my side.

**''Context of the bug report''**

A wordpress blog, latest stable, on which the admins are preparing a number of posts that will be posted while they're away on holidays, with a schedule of 2 posts a day.
Those blog posts are written in advance, their title starts with ""READY TO POST ++"" or ""READY TO POST --"" (that part will be removed in the final scheduling phase, when dates are assigned). 
Those blog posts are saved as Drafts for now.

**''Nature of the bug:''**

In blog administration > Posts > All Posts, I was reported there was an issue, and indeed, 
- if I type ""READY TO POST"" in the upper-right search box, run the search,
- it returns the text ""12 items"", and that's the right number of posts that are currently called ""READY TO POST"", currently in Draft state...
- however in the listing of posts below, only 7 posts are listed, and there is no ""next page"" navigation to browse to a second page of posts listing

Here's a screenshot: https://imgur.com/a/qG4Awo8

I think I may have found either the origin, or a factor in the problem: 
In Screen options (horizontal menu, in the admin, in the same Posts page), there is an entry called ""Number of items per page:"", with the value ""20"".
Screenshot: https://imgur.com/a/e3oDjBq

And that's wrong, it says ""20"", but there are only 7 posts listed in Admin > Posts > All Posts, be it the default listing, or a search.

I don't know if there's a relation, but the blog is configured to display 7 posts on the home page.

I tested something, in Admin > Posts > All Posts, I replaced that ""20"" by other numbers.
- If those numbers are above the number of search results, the current bug remains, telling there are 12 results, but only showing 7.
- If I replace ""Number of items per page"" by 11 or a smaller number, this time it still lists 7 posts only, but I get the missing pagination buttons, screenshot: https://imgur.com/a/fLBv7PL

Summary of what I tried: with a search, what I write on ""Number of items per page"" actually does NOT affect the number of displayed results, it's always 7, but depending on whether I choose a number lower, or above or equal to the expected number of results, I have, or haven't, the pagination buttons that allow to view the rest of the results posts.

*

I could partially reproduce the issue with another query.
Simply searching ""ready to"" returns 168 results among the posts.
- If I configure Number of items per page to 170, I get no navigation buttons: https://imgur.com/a/DKC70ZZ
- If I configure Number of items per page to 167, I get navigation buttons: https://imgur.com/a/HF3cLjN
... oh, damnit, I just realized. It's only a second page of results. No more. Even going into the URL of the page, trying replacing &paged=2 with something like &paged=3, did nothing, still listing the contents of &paged=2.
The only workaround is to choose to display 7 posts per page, screenshot: https://imgur.com/a/r2qwRqu

*

I forgot to list the plugins on the blog, namely: Add Browser Search, Akismet anti-spam, Antispam bee, Classic editor, Custom Smilies, Dave's wordpress live search, disable emojis (gdpr friendly), Display php version, Enhanced text widget, Inline spoilers, ManageWP- Worker, Nextscripts: social networks auto-poster, Php Code widget, Post-plugin library, Random Posts, Scheduled Post Trigger, Seemore, Shortcoder, Term Management Tools, ThreeWP Activity Monitor, User lLocker, WordPress editorial calender, Wp Editor (that one, with a community php fix to make it php7 compatible), Wp super cache, Wp-dbmanager, WP-pagenavi, Wp-polls, Wp-postratings, Wp-sweep, Wpdiscuz, WPS Hide Login, Yoast SEO, ZigWidgetClass

*

I checked the site's apache error log (I'm the host, it's on my dedi, and I help when there are issues), and I can tell there are zero events appearing in the error log while searching in the list of posts, or changing the number of display results.

*

I also helped last year, same period of time, and there wasn't that bug at that time.

*

Well, I don't see what else I could do here, hopefully it's only that blog that has that problem. 
Apologies, also, that it's not a standard bug report, I'm not used to doing it at all. Good evening!"	Sabinooo
	57438	Slug is not generated when saving posts as draft		Posts, Post Types		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2023-01-10T04:28:22Z	2025-05-12T01:38:03Z	"When saving posts as draft, the slug is empty. Only when publishing posts, the slug is generated.

Slug should be auto-generated even when saving posts as draft.

Steps to reproduce:

- Add a new post (in the classic editor or Gutenberg)
- Enter the post title
- Save the post as draft
- Reload the page (if in Gutenberg) and see the slug is empty"	rilwis
	58487	Text editor problem		Posts, Post Types	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-06-08T11:07:40Z	2023-06-08T14:02:19Z	"Hi, the < character causes corruption.

lines are concatenating and shortcodes don't work

1: https://ibb.co/yndnCP1

2: https://ibb.co/Rhd2r87


If there is no < character, everything will look normal.

3: https://ibb.co/1Xvvw7V"	burhi
	56241	The post category count according post data not showing on admin side.		Posts, Post Types		normal	normal	Awaiting Review	defect (bug)	new		2022-07-18T12:04:35Z	2026-10-30T21:01:46Z	"we are created category as parent and child relationship. This category shows on the category listing with count number. The clicking on the count show all post which are assigned category and redirect to post listing page. But the no of count shows for parent category with child category. I mean to say not show only parent category count.

Screenshots: [https://www.awesomescreenshot.com/image/30272055?key=d91d4077475e475448b781faf504be14 Categories screen] and [https://www.awesomescreenshot.com/image/30272057?key=b44d8d751e7f1ced24ae065b364a8c5a Posts listing]"	rima1889
	56590	TypeError error in get_the_content when $elements['page'] and $elements['pages'] are null		Posts, Post Types	6.0.2	normal	normal	Awaiting Review	defect (bug)	new	changes-requested	2022-09-16T21:24:27Z	2025-05-12T01:38:00Z	"`if ( $elements['page'] > count( $elements['pages'] ) )` in file `wp-includes/post-template.php` (currently on line 319) throws the following error when those array items are null:

`Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /wp-includes/post-template.php:319`

A case where they would be null is a search request with no results where a plugin like Timber is used to assign $post a non-WordPress-core value. Adding the condition `if ( ! is_null( $elements['page'] ) && ! is_null( $elements['pages'] ) )` solves the problem."	cantbelieveitsnotbutter
	49136	White screen in password protected posts, referrer policy		Posts, Post Types	5.3.2	normal	normal	Awaiting Review	defect (bug)	new		2020-01-05T17:19:32Z	2020-03-06T15:20:10Z	"**Background**

Under some circumstances WP is displaying a white screen refering to URL ..../wp-login.php?action=postpass after entering either correct or incorrect password into password protected posts. It turns out this behaviour occurs reproducably in case WP site is set to no-referrer policy e.g. by Nginx configuration. This behaviour was observed since about July last year.


**Steps to reproduce**

1. Force no-referrer policy in Nginx .conf file

 add_header Referrer-Policy no-referrer; 
 service nginx restart  

2. Protect any post by password

3. Verify no-referrer policy in e.g. Chrome F12->network

4. Enter password into your password protected post

5. /wp-login.php?action=postpass white screen pops up, no error message, no debugg hints.

These steps reproduce in any WP configuration (under ubuntu server 18.04 LTS, LEMP stack) with or without themes/plugins. Exception: Safari and Edge (as of August last year) do not show white screenn. Reason: These browsers do not support referrer policy.

**Work around**

Set referrer policy to any other policy than no-referrer. In my case strict-origin-when-cross-origin did the job.

**Suggestion**

This issue might not be too common but it might become more relevant due to GDPR in Europe.

It seems that wp-login.php requires a reference to the calling URL to be able to redirect to that URL after verifying the password. In case of no-referrer policy this reference is not disclosed, hence wp-login.php cannot return to its caller.

If that is the case in order to ensure stable operation of password protected posts WP must not allow no-referrer policy but should force any other secure policy."	derfuchs98
	61068	Wrong processing post_status for custom post_status		Posts, Post Types	6.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-04-24T12:51:27Z	2024-06-05T03:49:22Z	"I have added a custom post status with the register_post_status function with such args.
{{{#!php
<?php
            $args = array(
                'label'                     => _x( 'Processing', 'Status General Name', 'text_domain' ),
                'public'                    => true,
                'show_in_admin_all_list'    => true,
                'show_in_admin_status_list' => true,
                'exclude_from_search'       => false,
                '_builtin'                  => false,
                'internal'                  => false,
                'protected'                 => false,
                'private'                   => false,
                'publicly_queryable'        => true,
            );

            register_post_status( 'cm_processing', $args );


            $args = array(
                'label'                     => _x( 'Completed', 'Status General Name', 'text_domain' ),
                'public'                    => true,
                'show_in_admin_all_list'    => true,
                'show_in_admin_status_list' => true,
                'exclude_from_search'       => false,
                '_builtin'                  => false,
                'internal'                  => false,
                'protected'                 => false,
                'private'                   => false,
                'publicly_queryable'        => true,
            );

            register_post_status( 'cm_completed', $args );
}}}

But when I created a new post and set the status ""processing"" it saved as a draft. Same story if I edit already existing posts.
As far as I see main problem with post status processing happened in function 
{{{
_wp_translate_postdata
}}}
 in the file 
{{{
wp-admin/includes/post.php
}}}

Looks like resetting custom post status happened in this piece of code

{{{#!php
<?php
	// What to do based on which button they pressed.
	if ( isset( $post_data['saveasdraft'] ) && '' !== $post_data['saveasdraft'] ) {
		$post_data['post_status'] = 'draft';
	}
	if ( isset( $post_data['saveasprivate'] ) && '' !== $post_data['saveasprivate'] ) {
		$post_data['post_status'] = 'private';
	}
	if ( isset( $post_data['publish'] ) && ( '' !== $post_data['publish'] )
		&& ( ! isset( $post_data['post_status'] ) || 'private' !== $post_data['post_status'] )
	) {
		$post_data['post_status'] = 'publish';
	}
	if ( isset( $post_data['advanced'] ) && '' !== $post_data['advanced'] ) {
		$post_data['post_status'] = 'draft';
	}
	if ( isset( $post_data['pending'] ) && '' !== $post_data['pending'] ) {
		$post_data['post_status'] = 'pending';
	}
}}}

P.S. Any working workaround while waiting to fix it?


"	uNknownMark
	56480	_add_post_type_submenus doesn't use WP_Post_Type::$menu_position		Posts, Post Types		normal	normal	Awaiting Review	defect (bug)	new		2022-08-31T17:17:11Z	2023-04-12T19:26:37Z	"Although it's possible to add a post type as a submenu when registering by setting the property show_in_menu, it's not possible to set the position.

This is happening because in the function [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/post.php#L2071 _add_post_type_submenus] (wp-includes/post.php) the function add_submenu_page is called without passing the parameter $position.

{{{#!php
<?php
function _add_post_type_submenus() {
	foreach ( get_post_types( array( 'show_ui' => true ) ) as $ptype ) {
		$ptype_obj = get_post_type_object( $ptype );
		// Sub-menus only.
		if ( ! $ptype_obj->show_in_menu || true === $ptype_obj->show_in_menu ) {
			continue;
		}
		add_submenu_page( $ptype_obj->show_in_menu, $ptype_obj->labels->name, $ptype_obj->labels->all_items, $ptype_obj->cap->edit_posts, ""edit.php?post_type=$ptype"" );
	}
}
}}}

Steps to reproduce the issue:

1. Add the code snippet in the functions.php of the theme (notice the 'menu_position')

{{{#!php
<?php
register_post_type(
	'foo',
	array(
		'labels'        => array(
			'name' => 'Foo',
		),
		'show_in_menu'  => 'edit.php?post_type=page',
		'menu_position' => 20,
		'public'        => true,
	)
);

register_post_type(
	'bar',
	array(
		'labels'        => array(
			'name' => 'Bar',
		),
		'show_in_menu'  => 'edit.php?post_type=page',
		'menu_position' => 10,
		'public'        => true,
	)
);
}}}

2. Visit the Dashboard and check that under the menu Pages, ""Foo"" appears **before** ""Bar""

Expected behaviour: ""Foo"" appears **after** ""Bar"""	Rahmohn
	52950	add_meta_box issue in wordpress 5.7		Posts, Post Types	5.7	normal	major	Awaiting Review	defect (bug)	new		2021-03-31T13:09:44Z	2021-03-31T17:23:29Z	"I recently moved to the new WordPress version 5.7 and now I am facing an issue in the add_meta_box function in function.php. The issue I am facing is the custom post type ID which I added in the add_meta_box function is conflicts with my custom post slug. Whenever I add a new post or open an existing post it shows a pre-generated slug from that custom post type without saving. Please see my code below.

 {{{#!php
<?php
add_meta_box( 
        'cpt_1322', 
        'Productions', 
        'production_meta_post_callback', 
        'cpt_1322', 
        'side', 
        'default' 
    );
}}}


"	daniyalkrl
	35871	before_delete_post incorrectly triggered from edit.php to post.php		Posts, Post Types		normal	normal	Future Release	defect (bug)	new	has-patch	2016-02-19T10:44:18Z	2025-12-04T15:23:37Z	"It seems there's a bug where {{{before_delete_post}}} triggers when clicking the post name (on edit.php) to go to the post.php admin edit screen. I have this code 
{{{#!php
<?php
add_action('before_delete_post', $plugin_admin, 'prevent_club_deletion', 5);
public function prevent_club_deletion() {
	global $post_type;
    if ( $post_type != 'club' )
    	return;

	$redirect = ( isset($_SERVER[""HTTP_REFERER""]) ? $_SERVER[""HTTP_REFERER""] : get_admin_url(1, 'edit.php?post_type=club') );
    wp_redirect( $redirect );
    exit();
}
}}}


It randomly triggers the redirect when attempting to head into single edit screen for a post. It's a hierarchical CPT and the bug occurs for both parent and child pages. Tested with custom theme (no hooks really) and no plugins activated (except the one that creates the CPT and this hook). 
 "	Jonathandejong
	59241	get_the_posts_navigation wrong functions called for prev and next links		Posts, Post Types	6.3.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-08-29T18:38:27Z	2023-08-30T19:11:12Z	"wp-includes\link-template.php:2858
get_the_posts_navigation function

For next link called get_previous_posts_link functions and for previous link called get_next_posts_link function

$next_link = get_previous_posts_link( $args['next_text'] );
$prev_link = get_next_posts_link( $args['prev_text'] );"	valentinwebdev2019
	47742	sorting by date incorrect		Posts, Post Types		normal	normal	Awaiting Review	defect (bug)	new		2019-07-19T17:36:02Z	2019-07-20T20:34:46Z	Sorting pages by date should be doing date modified. It seems to be going off another date, possibly date published.	lamaan
	56700	wp_update_post function not support meta update		Posts, Post Types		normal	normal	Awaiting Review	defect (bug)	new		2022-09-30T15:04:23Z	2022-09-30T15:31:59Z	"Hi.
Seems like wp_update_post() function not support meta fields update.
I found post meta update only in wp_insert_post() function https://github.com/WordPress/wordpress-develop/blob/6.0.2/src/wp-includes/post.php#L4498-L4502

Is there are some reasons to not include meta fields update in wp_update_post() function? Or this can be fixed in the future?"	borisolhor
	55920	Ability to query by post author in post_exists()		Posts, Post Types	6.0	normal	normal	Awaiting Review	enhancement	new	changes-requested	2022-06-04T22:57:51Z	2022-06-07T18:42:04Z	"Needed the ability to determine if post exists by title && author when running wp_insert_post() in form submission.
I was using this to create a list of user saved favourite posts.

So this might be useful for others too

function post_exists( $title, $content = '', $date = '', $type = '', $status = '', $author = '' ) {...}

Pull Request #2783"	mcqTia
	41893	Add URL filter in posts list table get_edit_link()		Posts, Post Types	4.9	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-09-15T19:58:55Z	2020-02-15T13:02:42Z	"In `get_edit_link()` in the WP_Posts_List_Table class, the URL to edit.php is hard-coded and is not filterable.  I'm currently working on a project that has complex filtering and the client wants to maintain the filters as they click through to different statuses.

Currently, the only way to update just the URL to edit.php is to use the `""views_{$this->screen->id}""` filter, use regex to find the URL in the markup, then update the URL in the markup as-needed.  The proposed `wp_posts_list_table_edit_url` filter would allow filtering of the generated URL separate from the markup.
"	GunGeekATX
	61598	Add an interface option to let users set empty_trash_days		Posts, Post Types		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-07-09T06:25:12Z	2024-07-10T05:46:04Z	"Most users are unaware of the empty_trash_days settings or how to change it. This can sometimes make them lose their content if they trash their posts instead of setting them as drafts.


In #61511 I suggested we could display the value of empty_trash_days to minimize confusion but we could go further and introduce a setting to allow users to set this value via their dashboard."	mrfoxtalbot
	50546	Add better error notices when deleting things fail		Posts, Post Types		normal	normal	Future Release	enhancement	new	dev-feedback	2020-07-03T09:50:01Z	2020-07-07T13:48:56Z	"I've stumbled upon this when working with foreign key restraints and post deletion. Working on a project I've added some data to the custom DB table row that has a foreign key association with custom post type post.

So, when I try to delete the post it will fail, as it should 🎉.

But the error I got was: `Error in deleting`.

Hmmm, ok. Not a big deal. WordPress is pretty flexible in most cases, so there's bound to be a filter for that.

When searching for it, upon checking the above string I've found 5 matches in 3 files. So if some error happens when deleting a post, you'll get that message in `wp_die`. If it happens on attachment delete, the same message.

How are you supposed to know where that error came from, just from the message? You need to check the error log, etc. Which is ok when you're a developer, but what if you're not? A user could get this message on the screen from some plugin and then they'll open up a support question with this message.

Not really helping the debugging process.

I'm not saying the entire stack trace should be visible (that is advanced debugging), but even just adding `Error in deleting a post`, or `Error in deleting an attachment` would be an improvement IMO.

Having some extra details would be even better, but small steps first.

"	dingo_d
	64785	Add filter for redirect_to URL in get_the_password_form()		Posts, Post Types	2.7	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2026-03-03T10:44:59Z	2026-03-04T19:46:46Z	"**Description of the Problem:**
Currently, get_the_password_form() hardcodes the redirect_to hidden input value directly to get_permalink( $post->ID ). While there is a filter for the entire form HTML (the_password_form), changing only the redirect URL requires brittle string manipulation (like str_replace or regex) on the rendered HTML block.

**Use Case:**
When building custom features like ""Public Preview Links"" for draft or unpublished posts, or when working with custom routing/headless setups, the standard permalink is often not the correct URL to redirect the user back to after a successful password entry.

**Proposed Solution:**
Introduce a dedicated filter (e.g., the_password_form_redirect_url or password_form_redirect_to) to easily modify the redirect destination without parsing HTML.

I will link a GitHub Pull Request with the proposed code and a unit test shortly."	regnalf
	66225	Allow post_type_supports() to check for individual sub-features		Posts, Post Types		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-10-01T07:03:20Z	2026-10-01T07:04:18Z	"Follow-up to #64156 and #66224.

#64156 lets repeated `add_post_type_support()` calls merge their array arguments, and #66224 lets `remove_post_type_support()` remove individual sub-features. `post_type_supports()` still only answers whether the feature as a whole is supported.

To check whether a post type has `notes` enabled on the `editor` feature today, you have to reach into the raw arguments yourself:

{{{#!php
<?php
$supports = get_all_post_type_supports( 'custom' );
$has_notes = isset( $supports['editor'][0]['notes'] ) && $supports['editor'][0]['notes'];
}}}

This was suggested by @mamaduka on the #64156 PR.

== Proposal

Add an optional third parameter, `$sub_feature`:

{{{#!php
<?php
post_type_supports( 'custom', 'editor', 'notes' );
}}}

* For associative arguments, the sub-feature is supported when its key is set to a non-empty value, so `'notes' => false` counts as not supported.
* For list arguments (e.g. a `post-formats` style feature), the sub-feature is supported when the list contains it.
* If the feature isn't supported, or has no array arguments, the result is `false`.
* Without the third parameter, behavior is unchanged."	fabiankaegy
	52888	Docs: Update get_children function	SergeyBiryukov	Posts, Post Types		normal	minor	Future Release	enhancement	reviewing	dev-feedback	2021-03-23T01:38:42Z	2025-06-27T15:48:49Z	get_children documentation is very confusing to read, an entire essay for what could be said in a single paragraph, so I've rewritten it.	ribaricplusplus
	63729	Fix misleading summary in PHPDoc for wp_insert_post()		Posts, Post Types		normal	normal	Awaiting Review	enhancement	new	has-patch	2025-07-20T15:23:10Z	2025-11-20T20:56:58Z	This patch improves the inline documentation for the wp_insert_post() function by clarifying that it inserts or updates a post depending on the presence of an ID. Previously, the docblock implied it only inserts posts.	rutujaparamane2004
	66244	Improve display of post titles containing HTML in the admin.		Posts, Post Types		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-10-05T03:26:38Z	2026-10-06T04:17:10Z	"There was some discussion in #64748 that the display of post titles containing HTML was sub-optimal when viewed within the WordPress dashboard.

The post list table and selected other elements display the tags inline, for example ""The ''page'' title"" is displayed as ""The <em>page</em> title"".

There wsa some work done in [https://github.com/WordPress/wordpress-develop/pull/11088 PR#11088] but I requested it remain focused on the display of the privacy page link on the front end to allow for further work on the dashboard display in a follow up ticket (this one). 



"	peterwilsoncc
	65520	Improve type safety in get_the_ID() to prevent property access on non-WP_Post values		Posts, Post Types	0.71	normal	normal	Awaiting Review	enhancement	new	close	2026-06-23T09:25:02Z	2026-06-30T00:12:06Z	"get_the_ID() relies on get_post() and assumes that the returned value is always a valid WP_Post object. However, in certain edge cases (custom filters, early execution contexts, or when no global post is set), get_post() may return null, false, or a non-WP_Post value.

In such cases, the current implementation can lead to PHP warnings when attempting to access the ID property on a non-object.

**Current implementation:**

{{{
function get_the_ID() {
	$post = get_post();
	return ! empty( $post ) ? $post->ID : false;
}
}}}

**Problem:**

empty( $post ) does not guarantee $post is a valid WP_Post instance.
If $post is null or another falsy non-object value, accessing $post->ID may trigger a warning:
Attempt to read property ""ID"" on null

**Suggested improvement:**
Use strict type checking to ensure $post is a valid WP_Post object before accessing properties.


{{{
function get_the_ID() {
	$post = get_post();

	if ( ! ( $post instanceof WP_Post ) ) {
		return false;
	}

	return $post->ID;
}
}}}
"	salmanshafiq8630
	49644	Move logic from register_post_type() into WP_Post_Type->register()		Posts, Post Types	5.4	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2020-03-13T16:12:45Z	2020-03-13T17:16:54Z	"I have not looked at `register_post_type()` in several years, but was pleasantly surprised to find major improvements where most of the logic was refactored and moved to `WP_Post_Type`.  

Still though, it appears there are a few missing capabilities that a bit more refactoring would resolve. 

I propose we move most of the logic found in `register_post_type()` into `WP_Post_Type->register()` and a bit of the validation logic into `WP_Post_Type->__construct()` ''(see attached patch.)''

Similarly, it would make sense to also move the logic in `unregister_post_type()` to a `WP_Post_Type->unregister()`.

One of the benefits of this change is that currently `register_post_type()` has validation logic but `WP_Post_Type->__construct()` does not so someone can call `new WP_Post_Type('this-is-a-far-too-long-post-type-name')` and not get an error and allow a too-long post type name to be registered whereas `register_post_type('this-is-a-far-too-long-post-type-name')` currently throw an error and not let the name through.  With this change, but approaches would validate.

The benefit of adding `WP_Post_Type->register()` and `WP_Post_Type->unregister()` is simply that those wanting to use the object to create their post types do not need to duplicate the logic in `register_post_type()`.  The benefit of this is being able to write code like this and leverage PHP's validation of object property names:

{{{#!php
<?php
$post_type = new WP_Post_Type('my_widget');
$post_type->label = __( 'Widgets', 'my_app' );
$post_type->public = true;
$post_type->menu_icon = 'dashicons-admin-generic';
$post_type->register();
}}}

Notice I added a backward-compatible additional parameter to the `unregistered_post_type` hook to indicate if the post type existed in `$wp_post_types` before the attempt to unregister it.

AFAICT there will be no backward compatibility or documentation issues with this change, so this should be a slam-dunk, right?
"	MikeSchinkel
	39848	New filter 'the_title_wrap'		Posts, Post Types	4.7.2	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-02-11T20:46:21Z	2025-07-13T08:11:14Z	"== Problem:

In plugin I wish to add some markup after/before the post and page title so, naturally, I use `the_title` filter. However, this filter is applied on `get_the_title()` function which is used by all instances of post title all over the page (menus, edit links etc). On top of that, more and more themes are using `the_title()` with before and after params which makes all my custom markup wrapped inside this before and after. So when theme is using `the_title( '<h1 class=""entry-title"">', '</h1>' )`, and my markup in filter is, for example an image, then I get:

{{{
<h1 class=""entry-title"">The title <img src=""image.jpg"" ></h1>
}}}

Or something even worse if my custom markup is more complex.

== Proposal (possible solution):

I have tested another filter on `the_title()` function **(wp-includes/post-template.php)** and it gave me exactly what I needed:

{{{#!php

/**
 * Display or retrieve the current post title with optional markup.
 *
 * @since 0.71
 *
 * @param string $before Optional. Markup to prepend to the title. Default empty.
 * @param string $after  Optional. Markup to append to the title. Default empty.
 * @param bool   $echo   Optional. Whether to echo or return the title. Default true for echo.
 * @return string|void Current post title if $echo is false.
 */
function the_title( $before = '', $after = '', $echo = true ) {
	$title = get_the_title();

	if ( strlen($title) == 0 )
		return;

	$title = $before . $title . $after;

	/**
	 * Filters the post title after 'the_title' filter.
	 *
	 * @param string $title The post title.
	 */
	$title = apply_filters( 'the_title_wrap', $title );

	if ( $echo )
		echo $title;
	else
		return $title;
}

}}}

I named it `the_title_wrap` because it wraps everything that comes with `the_title` function and filter. This filter doesn't apply on menus, edit links etc. Tested on twenty* themes, it applies only on posts and pages title on singulars and on posts title inside the loop on archive pages. Also, my custom markup doesn't end up inside `<h1>` or `<a>` tags. Now it looks like this:

{{{
<h1 class=""entry-title"">The title</h1><img src=""image.jpg"" >
}}}

This is, of course, somewhat uncertain because I'm counting on theme author to use `the_title()` instead of `get_the_title()` but I think it's worth of effort as sometimes it becomes nearly impossible to target only entry title on singular or inside loop on archives etc.

Thank you."	milana_cap
	38067	New filter `wp_post_lock_status`		Posts, Post Types	2.5	normal	normal	Future Release	enhancement	new	has-patch	2016-09-15T13:23:37Z	2026-08-17T13:54:42Z	"I have wp with one account for 5 people, employees. We make websites so 5 accounts for each website -> waste of time and difficult to maintain. We have big problem - if somebody edit page and I start edit the same page we have conficts and overwrite own changes. I can't see notice about that somebody edit this page because we use one account. My best idea! When user is logged in i create new cookie: `wordpress_logged_in_unique_COOKIEHASH` with unique hash -> user agent + wp_generate_password().


I save user hash if `_edit_lock_hash` was saved.

So I can't check that post is locked or. So I write filter for return value of wp_check_post_lock() and... this work!

I suggest add this filter (idea) to core or show me other way to resolve my problem."	sebastian.pisula
	61695	Suggestion: Add a post_type column in the wp_postmeta table		Posts, Post Types		normal	normal	Awaiting Review	enhancement	new		2024-07-18T16:44:01Z	2024-07-18T19:23:29Z	"**An Enhancement:** I am wondering if we can add a post_type column in the wp_postmeta table. This would allow us to query for the mey keys using the post_type column, instead of querying each individually with post_ids.

A simple use case is, I was building a contact list plugin. There, I had a CPT of ""my_emails"". Now, in that CPT, there were multiple meta fields of ""email"", ""first_name"", ""last_name"" etc. Now to fetch all the meta fields of ""email"", I need to query through the whole wp_postmeta table to find instances of ""email"" meta_key. It would have been much easier and faster I believe if we could have a post_type column as well in the table, which tells the post_type that meta is of."	rajinsharwar
	66495	Tests: Add unit coverage for the post functions in post.php		Posts, Post Types		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-05T19:58:25Z	2026-11-05T20:24:25Z	"`src/wp-includes/post.php` has several functions that sanitize post data, detect changes of posts and keep related data in sync, but they have no direct PHPUnit coverage. A search of `tests/phpunit/tests` finds no references to:

 * `sanitize_post_field()`, `wp_get_recent_posts()` and `get_private_posts_cap_sql()`.
 * `wp_check_for_changed_slugs()`, `wp_check_for_changed_dates()`, `wp_transition_post_status()` and `is_local_attachment()`.
 * `wp_trash_post_comments()`, `wp_untrash_post_comments()`, `delete_post_thumbnail()`, `update_post_caches()`, `update_postmeta_cache()`, `clean_attachment_cache()` and `update_attached_file()`.

Some of these are only exercised indirectly through `wp_insert_post()` and `wp_update_post()`, so a change in their behavior is hard to spot and to attribute. Direct tests describe the current behavior of each function.

'''Proposed scope'''

This ticket is meant to be handled with several small patches, one for each group of related functions, so each one is easy to review. The tests go in `tests/phpunit/tests/post/`, one class per function, with data providers where it helps.

 1. '''Sanitizing and queries.''' `sanitize_post_field()` for each context (`raw`, `edit`, `db`, `display`, `attribute` and `js`), the integer fields and the filters. `wp_get_recent_posts()` for the defaults, the arguments and the output types. `get_private_posts_cap_sql()` for the users who can read private posts.
 1. '''Changes of a post.''' `wp_check_for_changed_slugs()` and `wp_check_for_changed_dates()`. `wp_transition_post_status()` for the actions that fire with and without a change, including the post type. `is_local_attachment()`.
 1. '''Comments, thumbnails and caches.''' `wp_trash_post_comments()` and `wp_untrash_post_comments()`. `delete_post_thumbnail()`. `update_post_caches()`, `update_postmeta_cache()` and `clean_attachment_cache()`. `update_attached_file()`.

'''Out of scope'''

This ticket only adds tests and does not change behavior. The following are left out on purpose because other tickets are working on them:

 * `get_post_statuses()` and `get_page_statuses()`, see #24722 and #58617.
 * `get_post_custom()`, `get_post_custom_keys()` and `get_post_custom_values()`, see #65044, #45505 and #20853.
 * `wp_match_mime_types()`, see #60003.
 * `wp_check_post_hierarchy_for_loops()`, which goes with the tests of `wp_find_hierarchy_loop()` in #59901.

Related: #65819, #59901."	hmbashar
	66543	Tests: Add unit tests for the Post Date and Post Excerpt blocks		Posts, Post Types		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T09:28:15Z	2026-11-06T10:24:28Z	"The render callbacks of the Post Date and Post Excerpt blocks are not referenced by any test: `render_block_core_post_date()` and `register_block_core_post_date()` (`post-date.php`), and `render_block_core_post_excerpt()`, `block_core_post_excerpt_excerpt_length()` and `register_block_core_post_excerpt()` (`post-excerpt.php`) in `src/wp-includes/blocks/`.

This ticket adds tests for the date (publish and modified dates, the format, the time difference, the link and the classes), and for the excerpt (the length, the link to read more, where it is placed and the filters that the block adds)."	hmbashar
	66547	Tests: Add unit tests for the Post Navigation Link block		Posts, Post Types		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T10:43:18Z	2026-11-06T10:55:47Z	"The `render_block_core_post_navigation_link()`, `block_core_post_navigation_link_get_support_styles()` and `register_block_core_post_navigation_link()` functions in `src/wp-includes/blocks/post-navigation-link.php` are not referenced by any test.

This ticket adds tests for the link to the next and the previous post (the label, the title, the arrows and the taxonomy), the wrapper and its classes, and the styles of the block supports."	hmbashar
	66544	Tests: Add unit tests for the Post Template block		Posts, Post Types		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T10:27:59Z	2026-11-06T10:38:21Z	"The `block_core_post_template_uses_featured_image()`, `render_block_core_post_template()` and `register_block_core_post_template()` functions in `src/wp-includes/blocks/post-template.php` are not referenced by any test.

This ticket adds tests for the search of the blocks that use the featured image, the list of the posts (the query, the order, the page of the request and the main query), the classes of the list and of each post, the context of the inner blocks, and the registration of the block."	hmbashar
	66542	Tests: Add unit tests for the Post Title and Post Content blocks		Posts, Post Types		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T09:28:05Z	2026-11-06T10:24:07Z	"The render callbacks of the Post Title and Post Content blocks are not referenced by any test: `render_block_core_post_title()` and `register_block_core_post_title()` (`post-title.php`), and `render_block_core_post_content()` and `register_block_core_post_content()` (`post-content.php`) in `src/wp-includes/blocks/`.

This ticket adds tests for the title (the tag of the level, the link with its target and rel, and the classes), and for the content (the wrapper tag, the filters of the content, the links of the pages, and the protection against a post that is rendered inside itself)."	hmbashar
	61249	The character count in the post_excerpt is fine instead of counting words.		Posts, Post Types	6.5.3	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2024-05-20T07:08:18Z	2026-02-06T23:36:12Z	"It is known that multiple words written without spaces are counted as a single word. This could lead to situations where an excerpt includes a string of characters (which should be separate words) that significantly exceeds the intended limit but is still accepted because it is counted as only one word due to the lack of spaces.

The ultimate goal of imposing a limit on the excerpt is to ensure that it remains concise and to the point. By not accurately counting characters, and thus potentially allowing excerpts to be longer than intended, the system fails to achieve its true purpose. This could affect how excerpts are displayed or how much space they take up on a website or in an admin interface.

Including a character count would provide a more precise and predictable way to limit the length of excerpts. It would ensure consistency regardless of how words are spaced and would give administrators a clear indication of how much text they can include."	sarkarripon
	18613	get_adjacent_post() doesn't find private posts		Posts, Post Types		normal	normal	Awaiting Review	enhancement	new	has-patch	2011-09-07T15:52:25Z	2025-11-27T15:55:39Z	The status is always 'publish'.	scribu
	65078	get_page_by_title should not be deprecated		Posts, Post Types	6.2	normal	normal	Awaiting Review	enhancement	new	close	2026-04-16T02:40:21Z	2026-05-02T10:56:05Z	"This ticket is in reference to #57041.

While the original ticket was resolved, I believe deprecating `get_page_by_title()` introduces a gap in the API that is not fully addressed by `WP_Query`.

The key issue is not convenience, but determinism.

`get_page_by_title()` performs a direct database lookup using an exact match on title. This approach:

- avoids global query filters such as `pre_get_posts` and `posts_clauses`
- guarantees more consistent results immune to external modifications
- provides a clear and narrowly scoped intent: retrieve a page/post by exact title

In contrast, using `WP_Query` for this purpose introduces variability. Even when attempting to replicate exact-match behavior, the query remains subject to global hooks and filters, which may alter the SQL in ways that are outside the caller’s control. This makes it difficult to guarantee equivalent behavior in plugin-heavy environments. Additionally, this can be subject to performance degradation when lots of logic-heavy filters are present. This could even result in queries where posts the user cannot access are returned. Which is one of the issues this commit was meant to resolve.

A previous attempt to migrate this function to `WP_Query` was reverted due to unintended side effects. While that specific issue related to ordering, it highlights a broader concern: `WP_Query` is not suitable as a drop-in replacement for this method.

Deprecating this function effectively requires developers to reimplement its logic. This leads to duplicated boilerplate and inconsistent implementations across codebases.

Finally, low level methods like this serve a specific purpose. They're not intended to catch edge cases. That responsibility is on the code that uses the method.

Given this, it may be worth reconsidering whether `get_page_by_title()` should remain as a low-level helper for exact, unfiltered lookups.


"	hybridwebdev
	64025	wp_die() status code posts component updates (parent ticket: #64009)		Posts, Post Types		normal	normal	Future Release	enhancement	new	has-patch	2025-09-22T16:46:04Z	2025-10-15T14:37:09Z	"If you have come here directly, please refer back to the parent ticket here: [https://core.trac.wordpress.org/ticket/64009 #64009]

This ticket is regarding the `wp_die()` function calls within the Media component and will cover the following locations. Please note links were correct at the time of testing and writing this up, but line numbers may have changed slightly:

|| **Filepath** || **Line Number** || **Context** || **Status Code** || **New Code** || **Code Meaning** ||
|| src/wp-admin/post-new.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/post-new.php#L24 24] || GET: Invalid post type passed || 500 || 400 || Bad Request ||
|| src/wp-admin/term.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/term.php#L31 31] || Missing: item for edit || 500 || 404 || Not Found ||
|| src/wp-admin/includes/post.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/post.php#L286 286] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/post.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/post.php#L288 288] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/post.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/post.php#L519 519] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/post.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/post.php#L521 521] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/post.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/post.php#L2084 2084] || Missing: post || 500 || 404 || Not Found ||
|| src/wp-admin/includes/post.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/post.php#L2088 2088] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/edit-tags.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/edit-tags.php#L13 13] || Error: Invalid taxonomy || 500 || 400 || Bad Request ||
|| src/wp-admin/edit-tags.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/edit-tags.php#L19 19] || Error: Invalid taxonomy || 500 || 400 || Bad Request ||
|| src/wp-admin/edit-tags.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/edit-tags.php#L23 23] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/edit-tags.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/edit-tags.php#L160 160] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/edit-tags.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/edit-tags.php#L180 180] || Missing: term || 500 || 404 || Not Found ||
|| src/wp-admin/comment.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L46 46] || Error: cannot edit as post is in trash || 500 || 409 || Conflict ||
|| src/wp-admin/comment.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L384 384] || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/edit.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/edit.php#L18 18] || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/edit.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/edit.php#L22 22] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/edit.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/edit.php#L41 41] || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/edit.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/edit.php#L123 123] || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/edit.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/edit.php#L156 156] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/edit.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/edit.php#L176 176] || User Permissions: does not have access || 500 || 403 || Forbidden ||

There are however the following function calls I have not touched as I felt they were already valid with their current status code:

|| **Filepath** || **Line Number** || **Status Code** ||
|| src/wp-admin/comment.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L364 364] || 500 ||
|| src/wp-admin/edit-comments.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L12 12] || 403 ||
|| src/wp-admin/edit-tags.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L23 23] || 500 ||
|| src/wp-admin/edit-tags.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L27 27] || 403 ||
|| src/wp-admin/edit-tags.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L84 84] || 403 ||
|| src/wp-admin/edit-tags.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L115 115] || 403 ||
|| src/wp-admin/edit-tags.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L135 135] || 403 ||
|| src/wp-admin/edit-tags.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L171 171] || 403 ||
|| src/wp-admin/edit.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L45 45] || 403 ||
|| src/wp-admin/edit.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L132 132] || 500 ||
|| src/wp-admin/edit.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L160 160] || 500 ||
|| src/wp-admin/edit.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L181 181] || 500 ||
|| src/wp-admin/edit.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L185 185] || 500 ||
|| src/wp-admin/includes/post.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L326 326] || 500 ||
|| src/wp-admin/includes/post.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L987 987] || 500 ||
|| src/wp-admin/includes/post.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L2108 2108] || 500 ||
|| src/wp-admin/post-new.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L59 59] || 403 ||
|| src/wp-admin/post.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L20 20] || 400 ||
|| src/wp-admin/post.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L47 47] || 400 ||
|| src/wp-admin/term.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L41 41] || 403 ||
|| src/wp-includes/comment.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L749 749] || 409 ||
|| src/wp-includes/comment.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/comment.php#L916 916] || 429 ||

Please note that my suggestions were made before @johnbillion's comment on the parent ticket made [https://core.trac.wordpress.org/ticket/64009#comment:2 here]."	callumbw95
	49708	Add a new function get_page_by_guid		Posts, Post Types		normal	normal	Awaiting Review	feature request	new		2020-03-27T09:20:31Z	2025-11-19T17:22:30Z	"We have two different functions to get a post base from another field rather than ID `get_page_by_path` and  `get_page_by_title`. When working with RESTful API working with unique identifier could be more handy than auto incremental or a path that could change.

I propose to build a function named `get_page_by_guid` and help developers to search a Post more accurate with guid."	killua99
	65511	Introduce has_content() helper function		Posts, Post Types	7.0	normal	normal	Awaiting Review	feature request	new	dev-feedback	2026-06-22T10:36:47Z	2026-06-29T23:43:55Z	"Currently, there is no dedicated helper function for determining whether a post contains content.

Developers typically check the post_content property directly:

{{{#!php
<?php
$post = get_post( $post );

if ( $post && '' !== trim( $post->post_content ) ) {
    // The post has content.
}
}}}


This proposal introduces a new has_content() helper function, similar to has_excerpt(), that provides a consistent API for checking whether a post contains non-empty content.

The function would:

- Accept a post ID, WP_Post object, or null.
- Return true if the post contains non-empty content after trimming whitespace.
- Return false if the post does not exist or its content is empty."	salmanshafiq8630
	43347	Introduction of 'has_single' register_post_type parameter		Posts, Post Types		normal	normal	Awaiting Review	feature request	new		2018-02-18T18:28:45Z	2022-07-19T09:48:55Z	"I have done some research but have not been able to find anything exactly on this issue. 

I frequently encounter use cases where I need to create a CPT with the following characteristics:

1) disable the slug display/editor from the admin post edit page (this is for usability. It is not used and having it available/displayed can confuse website editors)
2) maintain the archive page is viewable on the front end
3) disable the single page for the CPT on the front end

I have found some partial solutions like this https://wordpress.stackexchange.com/questions/128636/how-to-disable-the-single-view-for-a-custom-post-type but setting `'publicly_queryable'  => false` would disable the archive view. 

The `register_post_type` function includes the `has_archive` parameter. Is it possible to introduce a `has_single` parameter which will achieve the desired functionality stated above?

I feel this can be beneficial in many cases, to the extent it is worthwhile introducing as a core feature.  "	stevepuddick
	59680	Nextpage add pagination for page		Posts, Post Types		normal	normal	Awaiting Review	feature request	new	has-patch	2023-10-19T08:57:40Z	2025-06-05T12:43:13Z	"Add navigation in a Post using Pagebreak `<!--nextpage-->`

Currently, the function `wp_link_pages` give only previous page and next page back.

In this feature request, I add pagination in the list of arguments and extend the function `wp_link_pages`

Example:
`[<][1][2][...][5][...][8][9][>]`


"	printsachen1
	62853	Order posts and terms by drag and drop from administration		Posts, Post Types		normal	normal	Awaiting Review	feature request	new		2025-01-24T08:30:37Z	2025-01-24T09:37:32Z	"Would it be possible to order post types and taxonomy terms by drag and drop from the back office so that the WP_Query orderby could be directly modified? 
This would be the default orderby if no orderby is specified.
We could therefore order directly in post types 'post', 'page' and those created with register_post_type(), but also in taxonomy terms created with register_taxonomy().

This would natively reproduce the functionality added by these plugins, for example : 
https://wordpress.org/plugins/simple-custom-post-order/
https://fr.wordpress.org/plugins/post-types-order/"	dhenriet
	62302	Post deletion hooks are not fully consistent.		Posts, Post Types	6.7	normal	normal	Awaiting Review	feature request	new	has-patch	2024-10-25T11:53:34Z	2024-10-25T14:05:26Z	"We have hooks with a dynamic part like `` and `deleted_post_{$post->post_type}`, but there is no similar version for before_delete_post.


I suggest adding an equivalent hook `before_delete_post_{$post->post_type}`"	Cawa-93
	65735	"""Complete request"" on the Erase Personal Data screen is easily mistaken for an instruction to erase"		Privacy	5.6	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-07-27T15:30:18Z	2026-09-18T05:28:38Z	"On Tools → Erase Personal Data, a request row offers ""Complete request"" alongside ""Erase personal data"" / ""Force erase personal data"". ""Complete request"" only marks the request as completed (for manually-fulfilled requests) and runs no erasers — but the label reads equally naturally as ""go ahead and complete (execute) this request"". A site owner who chooses it believing they are executing the erasure gets a completed-looking request with nothing erased, and where requester notifications are configured, the data subject can be told their data was erased when it was not. The Tools-screen documentation (documentation/article/tools-erase-personal-data-screen/) does not document the action at all.

Suggested fixes (any of): rename the action to something unambiguous, e.g. ""Mark as completed (does not erase data)""; add a confirmation dialog stating no data will be erased; document the action on the Tools screen help and documentation page.

Steps to reproduce: create an erasure request for an address with erasable data → choose ""Complete request"" → request shows Completed; no eraser ran; registered erasers' data remains."	gavbain
	59479	'Erase Personal Data' simply doesn't work		Privacy	6.3.1	normal	critical	Awaiting Review	defect (bug)	new		2023-09-27T20:42:01Z	2023-09-27T20:42:01Z	"Here's the steps:

1. Set up a fresh WordPress install on my local machine
2. Add a new subscriber user to that WordPress install
3. Go to 'Export Personal Data'
4. Put in an export request without requiring email confirmation
5. Click on 'download personal data' on the new request entry
6. Open the downloaded content and confirm that there are fields that need to be deleted listed in 'export.json'. There are. These fields include: 'User Nice Name', 'User Email', 'User Display Name'
7. Go to 'Erase Personal Data'
8. Add a new erasure request without requiring confirmation
9. Click 'erase personal data' on the new erasure item
10. Get the message 'No personal data was found for this user'

Looking at the user's profile does show that nothing was erased or anonymized. 
Per https://wordpress.org/documentation/article/tools-erase-personal-data-screen/:

'To confirm what data will be erased by this tool, Go to Tools > Export Personal Data from Administration Screens, and export Personal data.'

None of the items that were in the export were erased. The line in that doc doesn't make sense, as the export includes the user's username, which will definitely not be erased.

I have replicated this behavior on other hosted sites. There's something wrong with either the tool, the docs, or the feedback from WordPress. Please let me know where I'm going wrong, or if this is actually something that needs fixing."	kingfisherwebdev
	57639	"Don't reveal and show admin email address in ""changed email address"" template to low permission user roles - Privacy issue"	joedolson*	Privacy	6.1.1	normal	normal	7.3	enhancement	accepted	has-patch	2023-02-06T08:25:04Z	2026-10-15T16:17:48Z	"## Description

When a WordPress user changes their password or email address, Core sends a notification informing them of the change. The default password-change and email-change notification templates currently include the site’s **Administration Email Address** through the `###ADMIN_EMAIL###` placeholder.

This value is taken from **Settings → General → Administration Email Address**. It is a site-level configuration value and is not necessarily associated with a WordPress administrator user account.

However, the address may still belong to an identifiable site owner, employee, developer, agency, or hosting administrator. It may also be the same address used by an administrator account. WordPress administrators are not clearly informed that this address can be included in notifications sent to ordinary account holders.

The recipient may be a Subscriber, customer, member, student, forum participant, or another low-privilege user. On sites that permit public registration, an unknown visitor can create such an account directly. E-commerce, membership, LMS, forum, and similar plugins may also provide customer-facing account registration even when the Core **“Anyone can register”** setting is disabled.

Consequently, the Administration Email Address may be disclosed to users who have no administrative relationship with the website and no need to receive its operational contact address.

## Why This Is Problematic

The original purpose of these notifications is valid: users should be informed when account credentials or contact details are changed so that an unauthorized change does not remain unnoticed.

The Administration Email Address is not required to achieve that purpose.

The notification already identifies the website and includes its URL. Users can return to the website and use its published contact form, support page, customer-support process, or another intentionally designated communication channel.

The Administration Email Address may not be an appropriate support contact. For example, it may belong to a technical administrator, hosting provider, freelance developer, or agency that is not responsible for end-user support.

The current default therefore creates an unnecessary disclosure of a potentially personal or operational email address. It may also make targeted spam, phishing, password spraying, credential stuffing, or social-engineering attempts easier when the disclosed address is associated with an administrator account.

Disclosure of the address alone does not grant access to the website and should not be described as direct account compromise, authentication bypass, or privilege escalation. This issue is more appropriately classified as a privacy-by-default problem and a limited information disclosure.

## Steps to Reproduce Using WordPress Core

1. Navigate to **Settings → General**.
2. Enable **“Anyone can register.”**
3. Ensure that the default role is **Subscriber**.
4. Register a Subscriber account.
5. Log in using that account.
6. Change the account’s password or email address.
7. Inspect the notification email sent by WordPress.

### Actual Result

The notification includes the site’s Administration Email Address in wording similar to:

> If you did not make this change, please contact the Site Administrator at [admin@example.com](mailto:admin@example.com).

### Expected Result

The notification should inform the user about the account change and identify the affected website without disclosing the site’s Administration Email Address.

For example:

> If you did not make this change, please visit ###SITEURL### and contact the site through its official support channel.

## Alternative Reproduction Through Customer Registration

1. Install a plugin that provides customer or member accounts, such as an e-commerce, membership, LMS, or forum plugin.
2. Create an account through its normal public registration or checkout process.
3. Log in using the resulting low-privilege account.
4. Change the account’s password or email address.
5. Inspect the notification sent by WordPress Core.

The notification may disclose the same Administration Email Address even though the user registered only as a customer or member.

## Recommended Implementation

Remove `###ADMIN_EMAIL###` from the default `password_change_email` and `email_change_email` notification messages.

The existing placeholder substitution should initially remain available for backward compatibility. Plugins and site-specific code can customize these messages through filters and may deliberately use `###ADMIN_EMAIL###`. Removing the substitution immediately could cause customized templates to send the literal placeholder text.

The recommended approach is therefore:

1. Remove `###ADMIN_EMAIL###` from the two Core default templates.
2. Retain its substitution temporarily for customized and filtered templates.
3. Document the placeholder as deprecated.
4. Remove the substitution only after an appropriate backward-compatibility period.
5. Add tests confirming that Core’s default notifications do not contain the `admin_email` value.

A future enhancement could introduce an explicitly configured public support URL or support email address. The site’s operational Administration Email Address and its public end-user support contact serve different purposes and should not be treated as interchangeable.

## Historical Context

The password-change and email-change notifications were introduced in WordPress 4.3 to prevent account changes from occurring silently. This ticket does not propose removing or weakening those notifications.

It proposes removing information that is not required for the notifications to fulfil their security purpose while preserving the account-change warning itself.

July 13, 2026: I have updated the ticket description to incorporate the points raised in the discussion and to describe the issue more accurately.

In particular, the revised description now clarifies that the disclosed value is the site-level Administration Email Address and not necessarily the email address of an administrator user account. It also reframes the issue primarily as an unnecessary information disclosure and privacy-by-default concern rather than a direct account-compromise vulnerability.

The updated description preserves the original reproduction scenario and proposed outcome while adding the security rationale behind the existing notifications, the practical impact, and the backward-compatibility considerations discussed above.
"	ReneHermi
	56542	"Should not allow to unregistered user be able to make a ""Export Personal Data"" Request"		Privacy	4.9.6	normal	normal	Awaiting Review	enhancement	new	has-patch	2022-09-10T05:25:01Z	2022-09-27T23:31:13Z	"Hello,

We should fix the condition of unregistered users allowed to ""Export Personal Data"" request when try with an email address"	hiren1094
	51852	"""any"" value in ""post_type"" param in ""get_posts"" by default ignore attachments"		Query		normal	normal	Future Release	defect (bug)	assigned	needs-unit-tests	2020-11-23T09:45:48Z	2021-02-18T00:24:52Z	"When creating a simple call to get all posts for all post types by default to the parameters are adding `post_status` parameter with `publish` value.

{{{#!php
<?php
get_posts(['post_type' => 'any']);
}}}

To the `WP_Query` instance are supplied followed arguments:

{{{#!php
<?php //wp-includes/post.php:2053
[ 
  ""numberposts"" => 5
  ""category"" => 0
  ""orderby"" => ""date""
  ""order"" => ""DESC""
  ""include"" => []
  ""exclude"" => []
  ""meta_key"" => """"
  ""meta_value"" => """"
  ""post_type"" => ""any""
  ""suppress_filters"" => true
  ""post_status"" => ""publish""
  ""posts_per_page"" => 5
  ""ignore_sticky_posts"" => true
  ""no_found_rows"" => true
]
}}}

All attachment posts have `inherit` post status so by default are ignored in this query.

To actually get all post types the first function parameters should be expended by `post_status` parameter with `['publish', 'inherit']` value.

{{{#!php
<?php
get_posts(['post_type' => 'any', 'post_status' => ['publish', 'inherit']]);
}}}"	dam6pl
	52732	'get_posts' has been waiting for so long to have a hook		Query		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-03-07T20:49:37Z	2024-02-13T15:33:33Z	"I reckon `get_posts` is the most (frequently) used function across many plugins or scripts. I know there are internal `WP_Query` hooks available, but that makes things harder to get into.
I think having hook on `get_posts` will be very useful and easy for people / developers to remind & amend things easier.
patch attached."	ttodua
	55649	Block Query with full post content do not display properly		Query	5.9.3	normal	normal	Awaiting Review	defect (bug)	new		2022-05-02T12:15:53Z	2022-05-02T12:15:53Z	"When i change the QueryBlock content from the post excerpt to full post content in block theme edditor i get the correct behaviour but on the website it will not display the correct post content

i think it's not inheriting the query from the queryBlock and it is taking the query parameters from the main page instead."	jawedzennaki
	56165	Bogus query parameters force WordPress to drop query limit and exhausts memory		Query	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-07-06T18:30:28Z	2022-07-06T18:33:37Z	"I noticed that a site was regularly getting out of memory errors at a URL that seems to be an attempt at ""hacking"" a Drupal site:

{{{
https://example.com/?q=user%2Fpassword&name[%23post_render][]=passthru&name[%23type]=markup&name[%23markup]=dir&debug
}}}

For some reason this causes WordPress to execute this query:

{{{
SELECT   wp_posts.* FROM wp_posts  WHERE 1=1  AND wp_posts.post_type = 'post' AND ((wp_posts.post_status = 'publish'))  ORDER BY wp_posts.post_date DESC 
}}}

You'll notice that there is no `LIMIT` set, even though the site has a limit set by default and there are no plugins/filters to alter this.

On a site with a large number of posts this can easily cause memory issues (I noticed it during the `update_meta_cache` function running after the query.

That URL is causing WordPress to execute this query:

{{{
WP_Query->query(Array ([name] => Array ([#post_render] => Array ([0] => passthru),[#type] => markup,[#markup] => dir)))
}}}

The `name` parameter is supposed to be a string, so I'm not sure why it's affecting the query at all (PHP 7.4 does throw warning because WP tries to `trim()` the value, PHP 8.1 throws error).

I haven't gotten far enough in to see why the query limit is dropped, but I imagine in any case this URL should result in either the homepage being displayed or a 404.

Here is a full backtrace:

{{{
#0  update_meta_cache(post, Array ([0] => 81102,[1] => 80934,[2] => 80927,...))
#1  update_postmeta_cache(Array ([0] => 81102,[1] => 80934,[2] => 80927,...))
#2  update_post_caches(Array ([0] => WP_Post Object ([ID] => 81102,[post_author] => 5,[post_date] => 2022-07-01 10:17:29,[post_date_gmt] => 2022-07-01 17:17:29,[post_content] => <!-- wp:paragraph -->
#3  WP_Query->get_posts() called at [/wp-includes/class-wp-query.php:3586]
#4  WP_Query->query(Array ([name] => Array ([#post_render] => Array ([0] => passthru),[#type] => markup,[#markup] => dir))) called at [/wp-includes/class-wp.php:648]
#5  WP->query_posts() called at [/wp-includes/class-wp.php:775]
#6  WP->main() called at [/wp-includes/functions.php:1330]
#7  wp() called at [/wp-blog-header.php:16]
#8  require(/wp-blog-header.php) called at [/index.php:4]
}}}"	coreyw
	60963	Custom query, inherit main query, show scheduled posts		Query		normal	major	Awaiting Review	defect (bug)	new		2024-04-08T21:13:40Z	2025-09-06T16:02:47Z	"Hi,
I created a custom query inheriting the main WP query, so my custom query has custom 'paged' args and others args are the same of the main query.
The problem is that the main query works fine, instead my WP query also show the Scheduled posts.
I debugged the args and are the same, I think there is a bug.

Here my code to explain better:

functions.php
{{{#!php
<?php
global $wp_query;
wp_localize_script( 'ajax-frontend', 'ajaxfrontendobject', array(
			'ajaxurl' => admin_url( 'admin-ajax.php' ),
			'query_vars' => json_encode( $wp_query->query_vars ),
			'security' => wp_create_nonce( 'get_posts_by_ajax' ),
                  ));

}}}
}}}

functions.php
{{{#!php
<?php
add_action( 'wp_ajax_nopriv_ajax_pagination_get_posts', 'luxuryconcept_get_posts_by_ajax' );
add_action( 'wp_ajax_ajax_pagination_get_posts', 'luxuryconcept_get_posts_by_ajax' );

if ( ! function_exists( 'luxuryconcept_get_posts_by_ajax' ) ) {
	function luxuryconcept_get_posts_by_ajax() {
		check_ajax_referer('get_posts_by_ajax', 'security');

		$args = json_decode( stripslashes( $_POST['query_vars'] ), true );
		$args['paged'] = $_POST['page'];
		query_posts( $args );


	    echo ""<br><br> ajax:"" . print_r($GLOBALS['wp_query']->query_vars);

		
		get_template_part( 'templates/loop', 'index' ); 

		die();
	}
}
}}}

JS

{{{
$.ajax({
			url: ajaxfrontendobject.ajaxurl,
			type: 'post',
			data: {
				action: 'ajax_pagination_get_posts',
                                security: ajaxfrontendobject.security,
				query_vars: ajaxfrontendobject.query_vars,
				page: page
			},
}}}


Thanks

"	stefacchio
	63315	Docs: Improve the `prepare()` function inline docs		Query		normal	normal	Awaiting Review	defect (bug)	new	close	2025-04-19T18:59:16Z	2025-04-21T00:30:27Z	"I've reviewed the `wpdb::prepare()` function and made the following improvements to its inline documentation:

- Removed the duplicate mention of the `$args` parameter.
- Cleaned up the description by removing an unnecessary hyphen from the `$query` parameter."	dilipbheda
	44848	Ensure that empty author profiles have proper 404 behaviour		Query		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2018-08-27T14:33:38Z	2019-09-17T19:09:53Z	"** Summary **

- WordPress 'creates' a ''profile posts archive'' (i.e., ""See all posts by [author name]"") for each user in the system. This can be reached by clicking 'view' from the Users table in wp-admin.

- It does so, ''even if they have no posts'' - and even if they lack the permission to publish posts entirely.

- Whilst the empty profile pages ''look'' like they serve a standard 404 error, in fact, they return a 200 HTTP header status, and just call the 404 template part for the main page body.

- This results in many 'soft 404' pages/errors, which can adversley impact the way in search engines and other systems (Facebook, Twitter, etc) crawl, extract information from, and value/evaluate websites (see Google's documentation on soft 404s at https://support.google.com/webmasters/answer/181708?hl=en).

It's important that we correct this behaviour in WordPress Core for numerous reasons; from compliance with basic web standards (error pages should return an appropriate HTTP header status), to adherence with the guidelines and preferences of external platforms (search engines, social networks, etc), to consistency with other page/template handling processes.

** Example ** 

A newly created `subscriber` user on a test site (called 'Test User 2') with no authored posts has an author archive accessible at https://yoast.jonoalderson.com/author/test-user-2/. Although this presents as a 404 error, the page returns meta data and behaviour consistent with a valid author request (see the tags contained in the `<head>` of the HTML source; particularly the `<meta>` tags). The body template then just calls the 404 template part.

** Solution **

We should ensure that these scenarios return proper/consistent 404 behaviour.

Specifically, requests to author profiles where the author has zero posts should trigger normal 404 behaviour (including headers, query behaviour, etc), as opposed to just calling the 404 template.

E.g., 
{{{
// If author archive has zero posts
global $wp_query;
$wp_query->set_404();
status_header(404);
include( get_query_template( '404' ) );
die();
}}}

As opposed to just:
{{{
// If author archive has zero posts
include( get_query_template( '404' ) );
die();
}}}

"	jonoaldersonwp
	47493	Meta Query Sorting with relation => OR not behaving as expected		Query	4.8.2	normal	normal	Awaiting Review	defect (bug)	new		2019-06-06T13:45:36Z	2019-06-06T14:18:32Z	"When sorting on multiple meta query clauses with the default AND relation the sorting works as expected. When sorting with an OR relation the sorting does not function as expected.

{{{
'meta_query' => array(
	//'relation' => 'OR',// when turning this on the sorting does not work..
	'cornerstone_clause' => array(
		'key' => '_yst_is_cornerstone',
		'compare' => 'EXISTS',
		'type' => 'BINARY',
	),
	'count_clause' => array(
		'key' => 'erp_post_views_count',
		'compare' => '>',
		'value' => 0,
		'type' => 'NUMERIC',
	),
),
'orderby' => array(
	'cornerstone_clause' => 'DESC',
	'count_clause' => 'DESC',
),
}}}
The idea of the query is to first show any posts that contain '_yst_is_cornerstone' and sort the remaining by 'erp_post_views_count'."	tcaneeaglepub
	63666	Multiple tags in URL broken in 6.8		Query	6.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-07-05T14:59:57Z	2025-07-08T18:09:01Z	"Hi gang, thanks for all the work y'all do. I've been a WordPress user for a looooong time, really appreciate the community's efforts over the years.

There's a new ""bug"" that got introduced into 6.8, and it's unfortunately broken a lot of my websites. (I say ""bug"", but maybe there was a reason this change was made.)

Short and sweet: the ability to filter tags via the URL has been incredibly useful. I run many asset library type websites, and being able to display certain posts by their tags is essential.

Example:

https://bagofhurt.com/tag/2025+test-tag-1/

In this example, this page lists all posts that have both of these two tags. All good so far. The kicker comes when you flip the tags:

https://bagofhurt.com/tag/test-tag-1+2025/

While you get the same post result, the listed tag in the H1 still says ""2025.""

----

To contrast, here's the same page in WP 6.7.2:

https://bagofhurt.com/old/tag/test-tag-1+2025/

The tag listed first in the query has always been used for the H1 display – until 6.8. It looks like it now uses the first tag alphabetically, regardless of the order.

----


I don't know the WP codebase well enough to tell someone where to look, but if this an easy fix, I would greatly appreciate a patch. Or if there's a better way for me to replicate the behavior I'm after?

It looks like this thread might be related: https://core.trac.wordpress.org/ticket/63255

"	frogsplash
	44903	Multisite - Archive Main Query Duplicate Paged Posts		Query	4.9.8	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2018-09-06T16:15:45Z	2018-09-13T08:23:59Z	"Hi there,

I noticed today, on my multisite, a post type archive such as posts, etc, while using the main query that wordpress sets, and pagination /page/2/ for example, this shows duplicate posts.

I tested this on a fresh multisite install of wordpress with a fresh database.

"	barryhanbury
	65412	Namespace collision in WP 7.0 Font Library query var overrides custom router page_slug		Query	7.0	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2026-06-04T14:12:08Z	2026-06-05T12:05:29Z	"After upgrading to WordPress 7.0, websites utilizing a custom routing system or custom rewrite rules that register and use the query variable `page_slug` experience breaking behavior. 

With the introduction of the new Font Library feature in WP 7.0, the core now internally claims and heavily uses the `page_slug` query/global variable. If a custom route is accessed where our custom `page_slug` is intended to be empty or null (e.g., viewing a main archive/overview page), WordPress 7.0 forcefully overwrites this empty variable with the string `'font-library'`.

=== Steps to Reproduce
1. Register a custom route via a routing system or standard `add_rewrite_rule()` that captures a variable named `page_slug`.
2. Navigate to a URL corresponding to the route where the `page_slug` parameter should remain empty/unset (e.g., `mysite.com/department/service/docs`).
3. Dump the variable inside the loaded template file using `get_query_var('page_slug')` or inspection of global arguments.

=== Expected Behavior
`get_query_var('page_slug')` should return `null`, `false`, or an empty string, allowing the template logic to process the page as a root/archive page.

=== Actual Behavior
The variable is hijacked by the WP 7.0 core. `get_query_var('page_slug')` unexpectedly returns the string `'font-library'`. 

This causes severe backward compatibility issues. Template logic checking `if ( !empty($page_slug) )` gets triggered falsely. Functions like `get_page_by_path('font-library')` are subsequently executed, returning 0 results and leading to blank pages (broken template loops) for existing custom implementations.

=== Suggested Fix
The Font Library core feature should use a more strictly namespaced query variable (e.g., `wp_font_page_slug` or `wp_font_library_slug`) instead of the generic `page_slug` to maintain backward compatibility with existing custom themes, routers, and plugins that have been using this common variable name for years."	sgovaerts
	52337	Non-numeric attachment_id and p query string params result in posts page		Query		normal	normal	Future Release	defect (bug)	new	has-patch	2021-01-21T12:16:54Z	2023-10-17T18:53:40Z	"We've had a very thorough security review done on our site and the reviewer flagged up that giving a non-numeric parameter to p or attachment_id parameters: e.g.

site.com/?p=c or
site.com/?attachment_id=c

returns the posts page of the site. I would expect the 404 page. This behaviour returns the posts page even when we don't want this page to be visible on the site i.e. when the front page is set to a static page and we show the posts in other ways.

I have tested it on a clean install of the latest version of WP with no plugins."	timbarkerse
	48524	Notice: Undefined variable: matches		Query	3.3	normal	minor	Awaiting Review	defect (bug)	new	reporter-feedback	2019-11-07T07:56:40Z	2019-11-09T11:24:17Z	"
{{{#!php
<?php
/wp-includes/class-wp.php in WP::parse_request at line 251

}}}


{{{#!php
<?php
// Substitute the substring matches into the query.
$query = addslashes( WP_MatchesMapRegex::apply( $query, $matches )
}}}
 "	kevinmrlw
	40984	Possible Bug with Named Orderby Meta Query SQL		Query	4.8	normal	normal	Awaiting Review	defect (bug)	new		2017-06-09T19:51:56Z	2017-06-09T20:10:26Z	"I don't know how easy this would be to replicate, but I can at least walk through the steps in identifying the bug, and how I was able to address it for my own use-case.

On the web application we're building, we've added a simple meta field called ""spotlight"" to basically drive a single post to the front of the list, and apply some extra styling.

To do this, I had built the following query:

{{{#!php
<?php
$news = new WP_Query([
    'post_type' => 'post',
    'posts_per_page' => 3,
    'orderby' => 'has_spotlight post_date',
    'meta_query' => [
        'relation' => 'OR',
        'has_spotlight' => [
            'key' => 'spotlight',
            'value' => '1'
        ],
        'standard' => [
            'key' => 'spotlight',
            'compare' => 'NOT EXISTS'
        ]
    ],
    'tax_query' => [
        [
            'taxonomy' => 'post_tag',
            'field'    => 'name',
            'terms'    => 'News'
        ]
    ]
]);
}}}

In other areas of the web application, similar queries appeared to function as expected - the ""spotlight"" post would appear first in the list, with remaining posts ordered by date.

However, for the above query, something interesting happened: A post with no spotlight metadata was appearing at the top of the list, and the actual spotlight post was appearing below it.

Using PHPStorm and Xdebug, I set a breakpoint for the query and examined the object. Under the request property, the following SQL was generated:

{{{
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts
LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id)
LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id )
LEFT JOIN wp_postmeta AS mt1 ON (wp_posts.ID = mt1.post_id AND mt1.meta_key = 'spotlight' )
WHERE 1=1
    AND ( 
        wp_term_relationships.term_taxonomy_id IN (724)
    )
    AND ( 
         ( wp_postmeta.meta_key = 'spotlight' AND wp_postmeta.meta_value = '1' ) 
         OR 
         mt1.post_id IS NULL
    )
    AND wp_posts.post_type = 'post'
    AND (
        wp_posts.post_status = 'publish'
        OR
        wp_posts.post_status = 'acf-disabled'
    )
GROUP BY wp_posts.ID
ORDER BY wp_posts.menu_order, CAST(wp_postmeta.meta_value AS CHAR) DESC, wp_posts.post_date DESC
LIMIT 0, 3
}}}

When running this SQL directly in SequelPro, the following IDs were returned, confirming the order that I was seeing:

1
227 <-- Spotlight Post ID
225

After looking through the SQL statement, I decided to check exactly what Wordpress was seeing. After modifying the query to include everything from the wp_postmeta query, something interesting happened:

{{{
SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID, wp_postmeta.* FROM wp_posts
...
}}}

I receive the following results:

{{{
ID	meta_id	post_id	meta_key	meta_value
1	51	1	_edit_lock	1496942377:1
227	20794	227	spotlight	1
225	3305	225	_yst_is_cornerstone	
}}}

It appears that the table that's being used to define the ordering - '''wp_postmeta''' - is not being filtered the same way as the other table alias '''mt1'''.

Upon changing the order clause to use the filtered meta table:

{{{
SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID, mt1.*
...
CAST(mt1.meta_value AS CHAR) DESC
}}}

I received the correct results:

{{{
ID	meta_id	post_id	meta_key	meta_value
227	20794	227	spotlight	1
225	NULL	NULL	NULL		NULL
1	NULL	NULL	NULL		NULL
}}}

This is strange to me, as this line should theoretically prevent other unrelated meta information from being included in the results:

{{{
WHERE
...
( wp_postmeta.meta_key = 'spotlight' AND wp_postmeta.meta_value = '1' ) 
OR 
mt1.post_id IS NULL
...
}}}

It should be noted that simply changing the ORDER BY clause in my case - while it ""fixes"" the issue - is not technically correct.

Instead, the primary meta query clause should also contain the same filtering that the second does. The complete query looks like so:

{{{
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts
LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id)
LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id AND wp_postmeta.meta_key = 'spotlight' )
LEFT JOIN wp_postmeta AS mt1 ON (wp_posts.ID = mt1.post_id AND mt1.meta_key = 'spotlight' )
WHERE 1=1
    AND ( 
        wp_term_relationships.term_taxonomy_id IN (724)
    )
    AND ( 
        ( wp_postmeta.meta_key = 'spotlight' AND wp_postmeta.meta_value = '1' ) 
        OR 
        mt1.post_id IS NULL
    )
    AND wp_posts.post_type = 'post'
    AND (
        wp_posts.post_status = 'publish'
        OR
        wp_posts.post_status = 'acf-disabled'
    )
GROUP BY wp_posts.ID
ORDER BY wp_posts.menu_order, CAST(wp_postmeta.meta_value AS CHAR) DESC, wp_posts.post_date DESC
LIMIT 0, 3
}}}

'''Notice that the first metadata left join contains the same filtering by meta_key as the second.'''

I'm not sure what far-reaching consequences this might have, or if this issue has come up in the past. I imagine it's a bit of an edge-case.

Let me know if this is something that you're able to reproduce on your end, or if you need more information in regards to this."	maiorano84
	60027	Post patterns show no posts		Query		normal	major	Awaiting Review	defect (bug)	new		2023-12-07T09:14:28Z	2024-08-24T21:05:47Z	Newly created patterns for posts give 'no post found error' and create 'one post' of their own.	bferonia
	52094	Queries with perm readable/editable will not work for multiple post types and status queries		Query		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-12-16T15:45:31Z	2022-06-15T13:03:10Z	"This ticket is a continuation of #48556, which fixes permission checks when querying for multiple post types.

If you make a query for multiple post types, and also specifying one or more post statuses, there will be a couple of problems in the results if your query also includes `perm=readable` or `perm=editable`.

`perm=readable` is supposed to do a check to see if the current user has permission to read the queried post statuses before adding it to the SQL statement. It works fine if you're querying for only one post type, but will fail for multiple post types.

The problem is the same we found in #48556. When multiple post types are queried, the permission checked will be `read_private_multiple_post_types`, instead of individually check for each post type's capabilities.

(The same happens for `perm=editable`, which will check for `edit_others_multiple_post_types`)

= Another problem: Custom post statuses =

When querying for multiple post types and `perm=readable`, WP_Query also will not handle custom post statuses properly.

Any custom post status will be treated as a `public` post status, ignoring how it was registered. You can see it happening here: https://github.com/WordPress/wordpress-develop/blob/master/src/wp-includes/class-wp-query.php#L2478

= Fix = 

The fix should be similar to what we are doing in #48556, and I think we should work on the patch after we finish #48556.

= Reproducing =

I'm going to attach a test file that reproduces all the bugs described here."	leogermani
	56081	Query Loop block with selection causes Sticky Posts setting to be ignored		Query	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-06-27T21:06:32Z	2022-06-27T21:06:32Z	"The Query Loop has an option to ""Inherit query from template"". There is another option to display Sticky posts - only, include, or exclude.  On an Archive page where a query has pre-selected taxonomy, the sticky selector is ignored. So, where Inherit Query is checked, it doesn't matter if Sticky Posts is set to Include, Exclude, or Only - stickies and non-stickies are both always shown. The correct selection is shown in the template editor, but not when rendering an archive page from the front-end.

**To test:** I am getting my stickies up top and everything following by using two query loops in the default Home page that displays all blog posts.

In the Home template: This page is <strong>not</strong> filtered. The first query loop has Inherit Query unchecked, and Sticky Posts set to Include. The second query loop has Inherit Query unchecked, and Sticky Posts set to EXclude. So there are two loops, one for stickies, and the next for all others. This results here are as expecteed.

To achieve the same results as above for the Archive template, which <strong>is</strong> filtered. The two query loops would be set the same as above, except with Inherit Query checked in both. But the result is not as expected.

Let's try a simpler version for the Archive. One Query Loop has Inherit Query checked, and Sticky Posts set to Exclude or Only. The Sticky setting is ignored and all pre-selected posts are rendered in the archive page with stickies and non-stickies mixed. Again, it looks OK on the back-end, not on the front-end.

**Desired behavior:** The Sticky setting and anything else that can be configured for a Query Loop should be included in the query at run-time.

**Notes:**

- This might be specific to the Twenty TwentyTwo theme.
- I have not checked to see if the behavior is the same with the classic loop, without blocks, with PHP templates rather than HTML templates."	Starbuck
	60274	Query loop showing too many posts		Query	6.4.2	normal	normal	Awaiting Review	defect (bug)	new		2024-01-17T14:26:37Z	2024-01-17T14:35:11Z	With recent updates, the query loop shows 4 posts while in editor (per the settings) but shows 5 in the site itself. (see mcld.org home page towards the bottom)	jcoonrod
	65072	Registering a query_var called 'preview_nonce' stops previews from working.	dsas	Query		normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2026-04-14T12:39:41Z	2026-04-14T12:52:51Z	"**Summary**

The static front page fallback in WP_Query::get_posts() [https://github.com/WordPress/wordpress-develop/blob/aa72dfed4432cfd875f77d2c475f772c6623cae5/src/wp-includes/class-wp-query.php#L2042 line ~2042] sets `is_page = true` and `is_home = false`, but does not update `is_singular`. This causes the query to generate incorrect SQL — using `post_type = 'post'` instead of `post_type = 'page'` — and return zero results.

The equivalent check in `parse_query()` ([https://github.com/WordPress/wordpress-develop/blob/aa72dfed4432cfd875f77d2c475f772c6623cae5/src/wp-includes/class-wp-query.php#L1057 line ~1057]) correctly maintains the invariant by [https://github.com/WordPress/wordpress-develop/blob/aa72dfed4432cfd875f77d2c475f772c6623cae5/src/wp-includes/class-wp-query.php#L1135 recalculating is_singular at line 1135]. The `get_posts()`  backstop does not.

**How to trigger**
The backstop fires when `parse_query()` fails to detect the static front page because $this->query contains unexpected public query vars (anything not in the allowlist of preview, page, paged, cpage). This can happen when a plugin registers a query var that collides with a parameter WordPress core uses in preview URLs — for example, registering preview_nonce as a public query var.

**Steps to reproduce**
 1. Register preview_nonce as a public query var: `add_filter( 'query_vars', function ( $vars ) { $vars[] = 'preview_nonce'; return $vars; } );`
 2. Set a static front page in Settings → Reading
 3. Visit /?preview_id=<page_id>&preview_nonce=<valid_nonce>&preview=true 

Expected: The static front page content is displayed.
Actual: The blog post index is displayed. The preview URL is redirected with preview=true stripped.

**What happens internally**

  1. `parse_query()` line ~1057: The `array_diff` check fails because `preview_nonce` is not in the allowlist. `is_home` stays `true`, `is_page` stays `false`, `is_singular` stays `false`.

  2. `get_posts()` line ~2046: The backstop fires because `is_home` is `true` and `$query_vars['preview']` is `'true'`. It sets `is_page = true`, `is_home = false`, and `page_id` to the front page ID. **But it does not set `is_singular = true`.**

  3. `get_posts()` line ~2618: `$post_type_where` is correctly set to `post_type = 'page'` based on `is_page = true`.

  4. `get_posts()` line ~2705: The `! $this->is_singular` branch is entered. This branch builds its own combined post_type + post_status clause. Since `$post_type` is empty (line ~2003), line ~2713 defaults to `array('post')`, overriding the correct `post_type_where` from step 3.

  5. The resulting SQL is `WHERE ID = <page_id> AND post_type = 'post'`, which returns zero rows because the front page is a `page`.

  6. With zero results, `redirect_canonical` strips `preview=true` from the URL and redirects. On the second request, neither `parse_query()` nor the backstop can identify the request as the static front page.

** Note **

I've fixed the plugin which exposed this issue, but the is_singular invariant violation in the backstop is a core issue."	dsas
	57767	SQL query error with multiple order specifications in pre_get_posts.		Query	6.1.1	normal	critical	Awaiting Review	defect (bug)	new		2023-02-20T03:09:37Z	2023-02-21T02:27:55Z	"https://ja.wordpress.org/support/topic/pre_get_posts%e3%81%a7%e8%a4%87%e6%95%b0%e3%81%ae%e4%b8%a6%e3%81%b3%e9%a0%86%e6%8c%87%e5%ae%9a%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc/#post-11682395

We have started a thread in the above forum but have not been able to resolve the issue.

You can refer to the URL for more details, but when I specify multiple sorting conditions based on the value of a custom field, the results are not displayed properly, and when I throw the query portion of the request in $query directly to SQL in the hook point of pre_get_posts, the following error is returned The following error is returned.


{{{
Expression #1 of ORDER BY clause is not in GROUP BY clause and contains non-aggregated column 'local.wp_postmeta.meta_value' which is not functionally dependent on columns in the GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
}}}

{{{

}}}


Is this part of a bug?"	kuroro111
	45376	Search not working as described in codex		Query		normal	normal	Awaiting Review	defect (bug)	new		2018-11-19T13:07:01Z	2018-12-07T01:56:14Z	"In the codex it says if I sort my search query results by relevance it should behave as follows: 

""Order by search terms in the following order: First, whether the entire sentence is matched. Second, if all the search terms are within the titles. Third, if any of the search terms appear in the titles. And, fourth, if the full sentence appears in the contents.""

That actually is not right, because the third case never happens! Example:

I have 3 Posts with titles:  ""Keyword"", ""Key"" and ""Word""

If I search for ""?s=key+word"" the result ist only ""Keyword"" but it should be ""Key"" and ""Word"" too!?"	totatari
	50885	Setting a pre_get_posts query post_type to array results in broken wp-admin filters		Query	5.4.2	normal	normal	Awaiting Review	defect (bug)	new		2020-08-10T12:46:14Z	2020-08-11T01:27:00Z	"I have a in-house plugin which creates a few extra alternate post types (eg. `post_custom`), and one of its requirements is that these post types are queried together with normal posts.

To do this, I've implemented a function which converts any queries for the `post` post type into `array( 'post', 'post_custom', ... )` and it works as it should, but when on wp-admin, if one tries to go into the default ""Posts"" menu and filter by author or even search for anything, it will return a message saying ""Invalid post type"".

Checking the URL, it will contain the `post_type` query string as ""Array"" instead of ""post"", and changing it manually to ""post"" fixes the issue. I guess the wp-admin interface is not handling the array of post types correctly?"	matpratta
	42256	Skip SQL_CALC_FOUND_ROWS when using post__in whose count matches posts_per_page		Query		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2017-10-18T03:46:58Z	2017-11-21T03:39:15Z	If a `post__in` array is passed to WP_Query whose length matches the `posts_per_page` value for the query, `SQL_CALC_FOUND_ROWS` is unnecessary.	ethitter
	54436	Sorting issue- when sorting via a custom meta key		Query	5.5.2	normal	normal	Awaiting Review	defect (bug)	new		2021-11-13T12:38:27Z	2021-11-14T18:01:55Z	"So, I created a new meta key with the name `_tstock` and stored numeric values in it, used the code below for sorting:
{{{
$args['orderby'] = 'meta_value_num';
$args['order'] = 'DESC';
$args['meta_key'] = '_tstock';
}}}
The products tend to repeat after switching the page if the value of `_tstock` of the last product is similar to first product on the next page.

Elaborating a bit more :-
Let's assume that there are 10 products with the `_tstock` value equal to one and 5 products are displayed on the first page while the rest 5 are displayed on second page.
The total number of the product will not change instead some of the products from the first page will be displayed on the second page replacing the ones that should be displayed."	prashantinfozion
	58553	Two query blocks on home template (FSE) breaks the second one		Query	6.2	normal	normal	Awaiting Review	defect (bug)	new		2023-06-16T06:47:30Z	2023-06-16T06:47:30Z	"On a site we have a home.html template where we display a custom query with sticky posts before the main query (inherited). We also filter the main query to do not display sticky posts again. Since we updated to 6.1.3 the second query skips the first post (that is the most recent non-sticky post).

After some debugging I realize that the `$wp_query->current_post` value is 0 after the first loop instead of -1, causing it to skip the first item (index 0) on the `$wp_query->posts array`. Following the logic in wp-includes I cannot find any obvious change introduced on 6.1.3 to produce this error.

I’ve reproduced the issue on a fresh new installation of wp (with 6.2 version):

* I have created several posts (duplications of Hello world)
* I have crated a new category.
* I have assigned three posts to the new category
* I have modified the home template (on the site editor) to add a custom query before the main one, where I display the three posts from the new category

[[Image(https://images2.imgbox.com/3d/5c/wfm9rpvl_o.png)]]
Result with wp 6.1.2

When I update to 6.1.3, the “last one” disapears:

[[Image(https://images2.imgbox.com/43/b0/OMZDY2ba_o.png)]]

I have found a quick fix that solves it:

{{{#!php
<?php
add_action('loop_end', function($query){
        if($query->is_home){
            global $wp_query;
            //sets the $wp_query->current_post to -1  
            $wp_query->current_post = -1;
        }
});
}}}

But I assume this may potentially affect more users and should be fixd on the core.

BTW: Using two custom queries doesn’t work for us because we want to keep the default pagination settings with the `/page/2` urls"	acaballerog
	57412	Uncaught TypeError: Cannot read properties of undefined (reading 'length'): jquery migrate		Query	6.1.1	normal	critical	Awaiting Review	defect (bug)	new		2023-01-03T01:14:50Z	2023-01-03T01:16:13Z	"Hi everyone!
I've been trying to fix this for days, but no change.
i tried to install different jquery migration plugins, but none solve the error on my site.
probably a plugin needed for the theme to work is in conflict. this plugin is helvig core.
if I go to the web page the problem does not exist, but when I enter the menu and try to go to one of the menu pages it doesn't work and gives me the following error:

Uncaught TypeError: Cannot read properties of undefined (reading 'length')
    at init.<anonymous> (jquery-migrate-3.4.0.min.js?ver=3.4.0:2:8491)
    at e.<computed> [as run] (jquery-migrate-3.4.0.min.js?ver=3.4.0:2:1566)
    at u (jquery-3.6.2.min.js?ver=3.6.2:2:59974)
    at E.fx.tick (jquery-3.6.2.min.js?ver=3.6.2:2:65017)
    at st (jquery-3.6.2.min.js?ver=3.6.2:2:59376)
(anonymous) @ jquery-migrate-3.4.0.min.js?ver=3.4.0:2
e.<computed> @ jquery-migrate-3.4.0.min.js?ver=3.4.0:2
u @ jquery-3.6.2.min.js?ver=3.6.2:2
E.fx.tick @ jquery-3.6.2.min.js?ver=3.6.2:2
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2
requestAnimationFrame (async)
st @ jquery-3.6.2.min.js?ver=3.6.2:2

I tried uninstalling themes and plugins. i downloaded the latest version directly on the theme forest purchase page, but no change.
i have tried different plugins to try to use other versions of jquery migrated, but the problem persists.
I also tried downgrading wordpress and completely uninstalled and reinstalled it.
the same problem of the site, I also find it locally.

how can i solve?"	russellperez399
	63998	Undefined variable warnings in WP Class		Query		lowest	trivial	Awaiting Review	defect (bug)	new	has-patch	2025-09-18T00:38:35Z	2025-09-18T00:39:18Z	"It's possible to hit these two PHP Warnings in the `WP` class:

> E_WARNING: Undefined variable $query in wp-includes/class-wp.php:270
> E_WARNING: Undefined variable $matches in wp-includes/class-wp.php:273

https://github.com/WordPress/wordpress-develop/blob/9b21204565430c1b22f29b5e57043adf8a71cfa5/src/wp-includes/class-wp.php#L268-L284

If you trace that around a bit, you'll think `how on earth can this be triggered`. Well, I'll tell you - Calling this late in a request (Such as within a rest-api endpoint)
{{{
        // Ugly, but this works..
        $_SERVER['REQUEST_URI'] = $url;
        wp( $_REQUEST );
}}}

In short: The WP::parse_request() method expects it'll be called exactly once, and doesn't pre-initialize the class properties / etc in the method.

The attached PR will pre-initialize them, but adding an additional `isset()` would be possible too, as would `Closed: wontfix, _doing_it_wrong( 'dd32 is doing unsupported things.' );` I'm mostly filing this for future searching of these specific warnings."	dd32
	54268	Using `author_name` in URL parameter gives unexpected results when logged into contributor account		Query	5.8.1	normal	minor	Awaiting Review	defect (bug)	new		2021-10-14T22:22:48Z	2021-10-14T22:22:48Z	"When logged into a contributor account, and trying to view the post listing on the dashboard of an administrator user, the query changes unexpectedly when the URL uses the `author_name` parameter rather than the default url.

Assuming a user ID of 1 for an administrator user, and a user ID of 2 for a contributor user:

When logged into the contributor account, and displaying the admin user's posts in the dashboard, the URL looks like this and works as expected:

`/wp-admin/edit.php?post_type=post&author=1`

The main query is:


{{{
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts
WHERE 1=1
AND wp_posts.post_author IN (1)
AND wp_posts.post_type = 'post'
AND (wp_posts.post_status = 'publish'
OR wp_posts.post_status = 'future'
OR wp_posts.post_status = 'draft'
OR wp_posts.post_status = 'pending'
OR wp_posts.post_author = 2
AND wp_posts.post_status = 'private')
ORDER BY wp_posts.post_date DESC
LIMIT 0, 20
}}}


But if the URL is switched to the username of the administrator user, example, admin, like this `/wp-admin/edit.php?post_type=post&author_name=admin` or even just `/wp-admin/edit.php?author_name=admin` I would expect the same results, but they are different:


{{{
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts
WHERE 1=1
AND wp_posts.post_author IN (2)
AND (wp_posts.post_author = 1)
AND wp_posts.post_type = 'post'
AND (wp_posts.post_status = 'publish'
OR wp_posts.post_status = 'future'
OR wp_posts.post_status = 'draft'
OR wp_posts.post_status = 'pending'
OR wp_posts.post_author = 2
AND wp_posts.post_status = 'private')
ORDER BY wp_posts.post_date DESC
LIMIT 0, 20
}}}

The `IN (2)` and the `OR wp_posts.post_author = 2` here is unexpected, because the 2 is the user ID of the contributor user that is logged in, and it isn't relevant to a query for the posts of user ID 1 (admin).


For comparison, when logged into the administrator's account, this query looks like this:


{{{
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts
WHERE 1=1
AND (wp_posts.post_author = 1)
AND wp_posts.post_type = 'post'
AND (wp_posts.post_status = 'publish'
OR wp_posts.post_status = 'future'
OR wp_posts.post_status = 'draft'
OR wp_posts.post_status = 'pending'
OR wp_posts.post_status = 'private')
ORDER BY wp_posts.post_date DESC
LIMIT 0, 20
}}}


To replicate:
1. Create two users, one with the administrator role, and another with a contributor role. 
2. Publish a post for the admin user.
3. While logged into the contributor user's account, view the administrator user's posts in the dashboard. The link will look like `/wp-admin/edit.php?post_type=post&author=1`. Take note of the main query and the search results.
4. Alter the url to look for the username of that administrator user, in this format: `/wp-admin/edit.php?post_type=post&author_name=admin`. Check the main query and search results again. 

This appears to be coming from the `get_posts` function in the wp-includes/class-wp-query.php file.

This is a low severity issue that I stumbled upon while investigating a Co Authors Plus [https://github.com/Automattic/Co-Authors-Plus/issues/820 issue], a plugin that uses the `author_name` in the URL. However, even when that plugin is not installed, the above described behavior is replicable."	lschuyler
	40521	Using a custom query var on a static front page results in wrong $post		Query	4.7.4	normal	normal	Future Release	defect (bug)	new	has-patch	2017-04-21T20:52:36Z	2026-05-07T09:28:37Z	"'''Steps to reproduce:'''

* Create a page and make it the static front page
* Add a new query var via filter in theme's functions.php: `add_filter( 'query_vars', function( $vars ) { array_push( $vars, 'buggy' ); return $vars; } );`
* Open the front page setting the newly added query var (e.g. ""https://example.com/?buggy=yep"")

'''Result:''' displays the latest blog post
'''Expected result:''' displays front page"	mechter
	62044	WP allows to inject random strings into archive page urls, still returning 200		Query		normal	critical	Awaiting Review	defect (bug)	new		2024-09-12T14:37:47Z	2025-05-12T01:38:40Z	"After checking back with @johnbillion from WordPress on (hackerone) i disclose this issue here.

**Preconditions**
Standard wp install. 
Some demo data containing at least 2 Blog categories. One Parent Category and a child of that category.

**Issue**
When working with archive pages the query for the right taxonomy is way to sparse. This allows me to access pages that don't exist and wp still returns a 200 response.

When for instance working with blog categories, as long as the last category term exists wp will return the last category, no matter what i typed as url before that.

To be clear a quick example:
Wordpress.org has a category called asides, if i access it:
[https://wordpress.org/news/category/releases/] => returns 200 a valid page.
BUT:
I can also type:
[https://wordpress.org/news/category/%20AND1=1/releases/] => returns 200 a valid page.

Ma.tt has a category called asides, if i access it:
[https://ma.tt/category/asides/] => returns 200 a valid page.
BUT:
I can also type:
[https://ma.tt/category/this_is_random_content_that_doesnt_exist/asides/] => returns 200 a valid page.

This is possible for all archive pages in wordpress, wocommerce and ecosystem, as long as the first and the last term match something existing a valid response is returned.

**Why is this a critical**
Just imagine what happens if i do this on a server using a page cache - like a lot of wordpress sites do.
Write a simple script that calls archive urls with an url pattern like https://wordpress.org/news/category/SOMETHING_I_WANT_TO_ADD/releases/ an make a couple of 1000 calls.


**Steps To Reproduce:**

1. Find any WordPress site with an archive page, a blog page for instance.
2. Find a matching term on 1st level of the archive category(term) hierarchy
3. Find a matching term on 2nd level of the archive category(term) hierarchy
4. Call the site with https://example.com/blog/KNOWN_CAT/SOMETHING_I_WANT_TO_ADD/KNOWN_CAT/ 


We need to somehow fix the terms query to make sure each term exists before returning a 200. if one of them is missing return a 404, or if needed a 301 to the parent term."	paulschiretz
	41224	"WP strips query vars if post contains ""wp-admin"""		Query	4.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-07-03T00:09:50Z	2017-07-03T10:48:55Z	"I'm running up against this rather obscure issue in the WP Query parser. 

If a post name contains ""wp-admin"", the query vars are emptied which results in loading the front page instead of the post.

Repro steps:
- Use built-in PHP web server to start a WP site.
- Create a post or CPT called ""test-wp-admin""
- View the post, you will be redirected to the frontpage. 

Here is the relevant code from class-wp.php

{{{
if ( isset($perma_query_vars) && strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false )
    unset( $perma_query_vars );
}}}


https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp.php#L276

If you inspect $_SERVER['PHP_SELF'], the resulting value is ""/index.php/test-wp-admin/"" which triggers the conditional.

It is not immediately clear to me why this is being done at all."	khromov
	62401	WP_Query add extra JOINs after calling get_posts() with category__in in query arguments		Query	6.6.2	normal	normal	Awaiting Review	defect (bug)	new		2024-11-13T09:33:24Z	2025-02-07T07:28:24Z	"I'm working with a custom query in WordPress to retrieve posts of a specific type and category. Here's the setup:


{{{#!php
<?php
$args = [
    'post_type'      => 'post',
    'post_status'    => 'publish',
    'posts_per_page' => -1
];

$args['category__in'] = array_map('intval', $selected_categories);

$articles_query = new WP_Query($args);

echo '<pre>';
// Dumping SQL query before calling get_posts()
var_dump($articles_query->request);

$posts = $articles_query->get_posts();

// Dumping SQL query after calling get_posts()
var_dump($articles_query->request);
echo '</pre>';
}}}


The `$selected_categories` array contains IDs of categories I want to filter by. My expectation was that the SQL query generated by WP_Query would be consistent. However, I noticed a difference in the SQL query output before and after calling `get_posts()`.

When calling get_posts() only the posts with the first category returns.

SQL Query before `get_posts()`:


{{{#!sql
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts
LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id)
WHERE 1=1
  AND (wp_term_relationships.term_taxonomy_id IN (1,17))
  AND wp_posts.post_type = 'post'
  AND ((wp_posts.post_status = 'publish'))
GROUP BY wp_posts.ID
ORDER BY wp_posts.post_date DESC
LIMIT 0, 10
}}}



SQL Query after `get_posts()`:

{{{#!sql
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts
LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id)
LEFT JOIN wp_term_relationships AS tt1 ON (wp_posts.ID = tt1.object_id)
LEFT JOIN wp_term_relationships AS tt2 ON (wp_posts.ID = tt2.object_id)
WHERE 1=1
  AND (wp_term_relationships.term_taxonomy_id IN (1,17)
  AND tt1.term_taxonomy_id IN (1)
  AND tt2.term_taxonomy_id IN (1))
  AND wp_posts.post_type = 'post'
  AND ((wp_posts.post_status = 'publish'))
GROUP BY wp_posts.ID
ORDER BY wp_posts.post_date DESC
LIMIT 0, 10
}}}

Why is WP_Query adding additional LEFT JOIN clauses (with aliases `tt1` and `tt2`) after calling `get_posts()`? I only expect it to filter by the categories provided in `$selected_categories`. I suspect it might be related to how `category__in` is handled, but I’m not sure why these extra joins are introduced.

I have disabled all plugins and I don't use any pre_get_posts filter or anything."	elancerteam
	47009	WP_Query bug with author=0		Query		normal	normal	Awaiting Review	defect (bug)	new		2019-04-22T07:10:12Z	2019-04-22T08:17:08Z	"Hi all,
I found a weird behaviour of WP_Query using the argument author.

If author is set to 0, the query returns all the posts and not an empty set.

Is this a wanted behaviour or a bug?"	mikylucky
	40387	WP_Query bug with product post type with search parameter on		Query	4.7.3	normal	normal	Awaiting Review	defect (bug)	reopened		2017-04-07T11:07:02Z	2017-04-18T21:09:16Z	"I am not sure if it is a WordPress core bug, but seems like it! I have 5 different custom post types along with 'product' post type from Woocommerce.

The following query gives (only) product result:

{{{
$args = array(
    'post_type' => array('product'),
    'posts_per_page' => 5,
    'post_status' => array('publish', 'future')
);
}}}

Actual query output:

{{{SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'product' AND ((wp_posts.post_status = 'publish' OR wp_posts.post_status = 'future')) ORDER BY wp_posts.post_date DESC LIMIT 0, 5}}}

But the following query:

{{{
$args = array(
    'post_type' => array('product'),
    's' => 'mobile',
    'posts_per_page' => 5,
    'post_status' => array('publish', 'future')
);
}}}

outputs this (even post_type is specified the query is generated to search all other post types and surprisingly not product):

{{{SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND (((wp_posts.post_title LIKE '%htc%') OR (wp_posts.post_excerpt LIKE '%htc%') OR (wp_posts.post_content LIKE '%htc%'))) AND wp_posts.post_type IN ('post', 'travelog', 'hotel-info', 'trips', 'package_tour') AND ((wp_posts.post_status = 'publish' OR wp_posts.post_status = 'future')) ORDER BY wp_posts.post_title LIKE '%htc%' DESC, wp_posts.post_date DESC LIMIT 0, 5}}}

and brings up results from all other post types and simply ignoring product.
"	subrataemfluence
	61621	WP_Query get_posts should be call its property not again execute all caculations		Query		normal	normal	Awaiting Review	defect (bug)	new		2024-07-10T15:29:00Z	2025-11-19T17:21:23Z	"Hello, 
I found out that there is a bug in core.
In class WP_Query the get_posts method, executes again all the calculations... It should to call the posts property if exist and then if not exist to executes all the calculations.
So when in my custom (or custom theme) code create an WP_Query instance and call the $WP_Query->get_posts(), the posts property is defined once in the constructor of the class and then again in the method get_posts.
I found out that this is a problem when my WP_Query has a Tax_Query and it does multiple joins with the same table!!! Again and again..."	pexlechris
	60984	WP_Query is returning the two same post instead of one		Query	6.5	normal	normal	Awaiting Review	defect (bug)	new		2024-04-10T19:36:44Z	2024-10-15T06:42:18Z	"WP_Query is returning two same posts when hooked into `pre_get_post` with a certain condition.

Steps to reproduce the issue

- Add a hook into the `pre_get_post` with a condition for a certain post type.
- Set the `post__in` query variable to a specific ID of the same post type.
- Set the `posts_per_page` to 1

I tested this using the `Query Loop` block, and it always rendered two same posts instead of one.

The query block settings

{{{
<!-- wp:query {""queryId"":148,""query"":{""perPage"":""1"",""pages"":0,""offset"":0,""postType"":""quote"",""order"":""desc"",""orderBy"":""date"",""author"":"""",""search"":"""",""exclude"":[],""sticky"":"""",""inherit"":false,""parents"":[]},""align"":""wide""} -->
}}}

The PHP `pre_get_posts` includes the hotfix for this issue.

{{{#!php
<?php
<?php
/**
 * Modifies the query for the Quote of the Day post type.
 *
 * @param WP_Query $query The WP_Query instance (passed by reference).
 *
 * @return void
 */
function wporg_modify_quote_of_the_day_query( WP_Query $query ): void {

	if ( ! $query->is_home() || 'quote' !== $query->get( 'post_type' ) ) {
		return;
	}

	// Prevent infinite loops.
	remove_action( 'pre_get_posts', __FUNCTION__ );

	$daily_quote    = wporg_get_daily_quote(); // Custom function that return a WP_Post (quote CPT) instance.
	$daily_quote_id = $daily_quote instanceof WP_Post ? $daily_quote->ID : null;
	$query->set( 'post__in', array( $daily_quote_id ) );
	$query->set( 'posts_per_page', 1 );

	// Hotfix: Two quote CPTs are being displayed.
	$query->set( 'ignore_sticky_posts', true );

	// Re-add the action.
	add_action( 'pre_get_posts', __FUNCTION__ );
}
add_action( 'pre_get_posts', 'wporg_modify_quote_of_the_day_query' );
}}}

The issues seem to be in the `class-wp-query.php` file where the [https://github.com/WordPress/wordpress-develop/blob/f525e665b6ea6e88289d82cad5fc1dfac57db109/src/wp-includes/class-wp-query.php#L3499-L3516 sticky post is being processed]. Thus, the `post__in` is being applied twice in the query.

"	tremidkhar
	60468	"WP_Query matches any post when query parameter ""name"" is an empty string"		Query		normal	minor	Awaiting Review	defect (bug)	new		2024-02-07T17:25:07Z	2024-02-07T17:25:07Z	"`WP_Query` matches any post when query parameter `name` is an empty string.

For example:

{{{
$query = new WP_Query([
  'name' => '',
  'post_type' => 'post',
  'posts_per_page' => 1,
]);

var_dump($query->posts);
}}}

The same is true for `get_posts()` which uses `WP_Query` internally.

This might be the intended behavior, but it's unintuitive and surprising. It can (did) cause a bug in user code that expects such a query to return no results."	miyarakira
	52971	WP_Query's meta_query With Multiple EXISTS keys and OR Relation Doesn't Work Properly		Query	5.7	normal	critical	Awaiting Review	defect (bug)	new		2021-04-05T12:31:53Z	2026-11-10T08:25:13Z	"Hi There!
Another Very Weird Issue :)

Using WP_Query's [meta_query] with **OR relation** and Multiple **EXISTS Keys** generates a very long unnecessary inner joins relation and **stuck in an infinite loop** and **consume the MySQL resources** with high load.

I'm trying to get all post IDs that have one of 50 meta keys to replace with new keys, So I collect all meta keys using foreach statement with **OR relation** and pass it to the [meta_query] in WP_Query .. Very simple but I noticed that there's no result and infinite page load and using high resources of MySQL.

I create the SQL statement with $wpdb and it works very fast, So I create a new WP_MetaQuery object to see the result and I noticed a huge unnecessary INNER JOINs relation.


**Here's a full example:**

1. Insert 100 Test Posts and 50 Metas For Each: Append [?action=insert] in the URL
2. Try to get posts using WP_Query: Append [?action=wp_query_and_meta_query] in URL - **RESULT: Infinite Loop**
3. Try to use $wpdb instead: Append [?action=wpdb_query_get_ids] in URL - **RESULT: Success, Takes few seconds**
4. See the SQL statement generated by WP_MetaQuery: add [?action=show_meta_query_clause] - **RESULT: a Huge unnecessary **INNER JOIN x AS x# ON y** relation**
5. [?action=wpdb_query_delete] to delete all added posts only.

{{{
add_action('wp', 'oxibug_trigger_action');

/**
 * Trigger Suitable Function
 * 
 * @return void
 */
function oxibug_trigger_action() {
    
    if( ! isset( $_GET['action'] ) ) {
        return;
    }


    $action = wp_strip_all_tags( $_GET['action'] );


    switch( strtolower( $action ) ) {
        
        case 'insert': {
                oxibug_insert_posts_and_metas();
            } break;


        case 'wp_query_and_meta_query': {
                oxibug_WP_Query_and_meta_query();
            } break;

        case 'show_meta_query_clause': {
                oxibug_show_meta_query_clause();
            } break;



        case 'wpdb_query_get_ids': {
                oxibug_wpdb_query_get_ids();
            } break;


        case 'wpdb_query_delete': {
                oxibug_wpdb_query_delete();
            } break;

    }

}


/**
 * Return New Meta Key
 * 
 * @param mixed $key 
 * @return string
 */
function oxibug_get_new_meta_key( $key ) {
    
    return sanitize_text_field( sprintf( 'oxibug_xyz%s', $key ) );

}


/**
 * Return Key-Value Pairs array with Old and New meta keys
 * 
 * @return array
 */
function oxibug_legacy_and_new_meta_keys() {

    return [
        'oxibug_abc_post_main_color'       => oxibug_get_new_meta_key('_page_main_color'),

        'oxibug_abc_page_layout'           => oxibug_get_new_meta_key('_page_layout'),

        'oxibug_abc_post_sbwide'           => oxibug_get_new_meta_key('_page_sb_wide'),
        'oxibug_abc_post_sbnarrow'         => oxibug_get_new_meta_key('_page_sb_narrow'),

        'oxibug_abc_page_sbwide'           => oxibug_get_new_meta_key('_page_sb_wide'),
        'oxibug_abc_page_sbnarrow'         => oxibug_get_new_meta_key('_page_sb_narrow'),
        
        'oxibug_abc_self_video_m4v_url'    => oxibug_get_new_meta_key('_format_video_selfhosted_mp4'),
        'oxibug_abc_self_video_ogv_url'    => oxibug_get_new_meta_key('_format_video_selfhosted_ogv'),
        'oxibug_abc_self_video_webmv_url'  => oxibug_get_new_meta_key('_format_video_selfhosted_webmv'),
        'oxibug_abc_self_video_poster_url' => oxibug_get_new_meta_key('_format_video_selfhosted_poster'),

        /* Audio */
        'oxibug_abc_soundcloud_url'        => oxibug_get_new_meta_key('_format_audio_oembed'),


        'oxibug_abc_self_audio_mp3_url'    => oxibug_get_new_meta_key('_format_audio_selfhosted_mp3'),
        'oxibug_abc_self_audio_oga_url'    => oxibug_get_new_meta_key('_format_audio_selfhosted_ogg'),
        'oxibug_abc_self_audio_m4a_url'    => oxibug_get_new_meta_key('_format_audio_selfhosted_m4a'),


        /* Post Formats: Image | Video */
        'oxibug_abc_lightbox_check'        => oxibug_get_new_meta_key('_format_image_lighbox_enable'),

        'oxibug_abc_post_banner_caption'   => oxibug_get_new_meta_key('_format_status_banner_caption'),


        'oxibug_abc_quote_text'            => oxibug_get_new_meta_key('_format_quote_text'),
        'oxibug_abc_quote_author'          => oxibug_get_new_meta_key('_format_quote_author_name'),

        'oxibug_abc_url_text'              => oxibug_get_new_meta_key('_format_link_text'),
        'oxibug_abc_url_destination'       => oxibug_get_new_meta_key('_format_link_url'),

        /*
            * Layout Settings - if Old = [hide] turn ON the new option
            *
            * */
        'oxibug_abc_post_breadcrumb'       => oxibug_get_new_meta_key('_hide_breadcrumb'),
        'oxibug_abc_post_meta_info'        => oxibug_get_new_meta_key('_hide_metas'),
        'oxibug_abc_post_share_box'        => oxibug_get_new_meta_key('_hide_share_icons'),
        'oxibug_abc_post_tags'             => oxibug_get_new_meta_key('_hide_tags_box'),
        'oxibug_abc_post_author_box'       => oxibug_get_new_meta_key('_hide_author_box'),
        'oxibug_abc_related_posts'         => oxibug_get_new_meta_key('_hide_related_posts_box'),
        'oxibug_abc_posts_navigation'      => oxibug_get_new_meta_key('_hide_nav_box'),



        /* Review Items */
        'oxibug_abc_post_review_types'         => oxibug_get_new_meta_key('_review_type'),    /* [disabled] => Add 0 to the new meta [_review_show]  */

        'oxibug_abc_post_review_position'      => oxibug_get_new_meta_key('_review_position'),
        'oxibug_abc_post_reviews_summation'    => oxibug_get_new_meta_key('_review_items_avg'),   /* This field is Dynamic - SUM of all review items */
        'oxibug_abc_review_item'               => oxibug_get_new_meta_key('_review_items'),

        'oxibug_abc_post_review_title'         => oxibug_get_new_meta_key('_review_title'),
        'oxibug_abc_post_review_desc'          => oxibug_get_new_meta_key('_review_desc'),
        'oxibug_abc_post_review_summary_title' => oxibug_get_new_meta_key('_review_summary_title'),
        'oxibug_abc_post_review_summary_desc'  => oxibug_get_new_meta_key('_review_summary_desc'),

        'oxibug_abc_post_review_user_rates'            => oxibug_get_new_meta_key('_review_user_ratings_status'),
        'oxibug_abc_post_review_user_rates_bgcolor'    => oxibug_get_new_meta_key('_review_user_ratings_result_bgcolor'),

        'oxibug_abc_post_review_btn_text'      => oxibug_get_new_meta_key('_review_add_btn_text'),
        'oxibug_abc_post_review_btn_icon'      => oxibug_get_new_meta_key('_review_add_btn_icon'),
        'oxibug_abc_post_review_btn_url'       => oxibug_get_new_meta_key('_review_add_btn_url'),
        'oxibug_abc_post_review_btn_bgcolor'   => oxibug_get_new_meta_key('_review_add_btn_bgcolor'),

        'oxibug_abc_post_review_pros_word'     => oxibug_get_new_meta_key('_review_pros_word'),
        'oxibug_abc_post_review_pros_icon'     => oxibug_get_new_meta_key('_review_pros_icon'),
        'oxibug_abc_post_review_pros_list'     => oxibug_get_new_meta_key('_review_pros_list'),

        'oxibug_abc_post_review_cons_word'     => oxibug_get_new_meta_key('_review_cons_word'),
        'oxibug_abc_post_review_cons_icon'     => oxibug_get_new_meta_key('_review_cons_icon'),
        'oxibug_abc_post_review_cons_list'     => oxibug_get_new_meta_key('_review_cons_list'),

        /* Post Views */
        'oxibug_abc_post_views_count'          => oxibug_get_new_meta_key('_post_views'),
    ];

}




/**
 * Insert 100 Test Posts and some Meta Keys
 * 
 */
function oxibug_insert_posts_and_metas() {
    

    $legacy_and_new_keys = oxibug_legacy_and_new_meta_keys();

    $result = [];

    for( $i=0; $i<100; $i++ ) {
        
        $post_id = wp_insert_post( [

            'post_type'     => 'post',
            'post_title'    => wp_strip_all_tags( sprintf( 'Test Meta Query Post #:%s', $i ) ),
            'post_content'  => sprintf( 'Test Meta Query Post Content #:%s', $i ),
            'post_content_filtered' => '',
            'post_excerpt'          => '',
            'post_status'   => 'publish',
            // 'post_author'   => 1,
            // 'post_category' => [],

            'comment_status'        => '',
            'ping_status'           => '',
            'post_password'         => '',
            'to_ping'               => '',
            'pinged'                => '',
            'post_parent'           => 0,
            'menu_order'            => 0,
            'guid'                  => '',
            'import_id'             => 0,
            'context'               => '',
            'post_date'             => '',
            'post_date_gmt'         => '',

        ], TRUE, TRUE );


        if( ! is_wp_error( $post_id ) ) {

            $result[ $post_id ] = [];

            foreach( (array) array_keys( $legacy_and_new_keys ) as $_legacy_key ) {

                $upstatus = update_post_meta( $post_id, $_legacy_key, '' );

                $result[ $post_id ][ $_legacy_key ] = $upstatus ? 'Added' : 'Failed';

            }

            /* Clean Cache */
            clean_post_cache( $post_id );

        }
        else {
            
            echo 'ERROR: Insert Post Failed!';

        }

    }


    /* DEBUG */
    echo sprintf( '%d Posts Inserted', count( $result ) );
    // echo print_r( $result );
    
}



/**
 * --- DEBUG ---
 * Show the Meta Query SQL Statement
 * 
 */
function oxibug_show_meta_query_clause() {

    /**
     * 
     * @var wpdb
     * */
    global $wpdb;
    
    $legacy_meta_keys = oxibug_legacy_and_new_meta_keys();
    
    $meta_query = [
        'relation'  => 'OR'
    ];

    foreach( (array) array_keys( $legacy_meta_keys ) as $_legacy_key ) {
        
        $meta_query[] = [
            'key' => $_legacy_key,
            'compare' => 'EXISTS'
        ];

    }


    $objMetaQuery = new WP_Meta_Query( $meta_query );


    echo print_r( $objMetaQuery->get_sql( 'post', $wpdb->posts, 'ID', NULL ) );

}



/**
 * Query using WP_Query and meta_query key inside it
 * 
 */
function oxibug_WP_Query_and_meta_query() {
    
    /**
     * 
     * @var wpdb
     * */
    global $wpdb;

    $legacy_meta_keys = oxibug_legacy_and_new_meta_keys();

    $meta_query = [
        'relation'  => 'OR'
    ];

    foreach( (array) array_keys( $legacy_meta_keys ) as $_legacy_key ) {
        
        $meta_query[] = [
            'key' => $_legacy_key,
            'compare' => 'EXISTS'
        ];

    }

    $obj_WP_Query = new WP_Query( [

        'numberposts'   => -1,
        'paged'         => null,
        'post_type'     => 'post',
        'post_status'   => 'publish',

        'meta_query'    => $meta_query,

        'fields'        => 'ids',

        'cache_results' => false,

    ] );


    /* 
     * Stuck in an Infinite Loop Because of the Huge SQL Statement
     * generated by [meta_query]
     * 
     * */
    if( $obj_WP_Query->have_posts() ) {
        
        echo sprintf( '%d Posts Found', $obj_WP_Query->found_posts );

        /* DEBUG - NOT Working - */
        // echo print_r( $obj_WP_Query->meta_query->get_sql( 'post', $wpdb->posts, 'ID', NULL ) );

    }
    else {
        
        echo 'No Posts Found';

    }

    $obj_WP_Query->reset_postdata();

    wp_cache_flush();

}



/**
 * Get Posts IDs by one of the meta_key(s) provided
 * 
 */
function oxibug_wpdb_query_get_ids() {
    
    global $wpdb;

    $legacy_meta_keys = oxibug_legacy_and_new_meta_keys();
    

    $qry = ""SELECT DISTINCT tbl_posts.ID FROM {$wpdb->posts} tbl_posts INNER JOIN {$wpdb->postmeta} tbl_metas ON ( tbl_posts.ID = tbl_metas.post_id ) WHERE"";

    /* Add [OR] in the second condition */
    $where_clause = 0;

    foreach( (array) array_keys( $legacy_meta_keys ) as $_legacy_key ) {

        $where_clause++;

        $qry .= ( $where_clause === 1 ) ?
            $wpdb->prepare( ' tbl_metas.meta_key = %s', esc_sql( $_legacy_key ) ) :
            $wpdb->prepare( ' OR tbl_metas.meta_key = %s', esc_sql( $_legacy_key ) );

    }


    $result = $wpdb->get_results( $qry );

    $wpdb->flush();

    echo print_r( wp_list_pluck( $result, 'ID' ) );

}



/**
 * --- DEBUG ---
 * 
 * DELETE all added Posts by meta_key(s)
 * 
 */
function oxibug_wpdb_query_delete() {
    
    global $wpdb;

    $legacy_meta_keys = oxibug_legacy_and_new_meta_keys();
    

    $qry = ""DELETE tbl_posts, tbl_metas FROM {$wpdb->posts} tbl_posts INNER JOIN {$wpdb->postmeta} tbl_metas ON ( tbl_posts.ID = tbl_metas.post_id ) WHERE"";

    $where_clause = 0;

    foreach( (array) array_keys( $legacy_meta_keys ) as $_legacy_key ) {

        $where_clause++;

        $qry .= ( $where_clause === 1 ) ?
            $wpdb->prepare( ' tbl_metas.meta_key = %s', esc_sql( $_legacy_key ) ) :
            $wpdb->prepare( ' OR tbl_metas.meta_key = %s', esc_sql( $_legacy_key ) );

    }


    $result = $wpdb->get_results( $qry );

    $wpdb->flush();

}

}}}
"	oxibug
	48029	WP_Query::query only using a single post_status		Query		normal	normal	Awaiting Review	defect (bug)	new		2019-09-12T18:27:51Z	2020-05-12T05:01:09Z	"While investigating why `bbp_forum_get_subforums()` was not returning private forums while being a keymaster, I found that WP_Query::query() will only use the first post_status of a given array.

E.g: 

{{{
 WP_Query Object
        (
            [query] => Array
                (
                    [post_parent] => 5420
                    [post_type] => forum
                    [post_status] => Array
                        (
                            [0] => publish
                            [1] => private
                            [2] => hidden
                        )

                    [posts_per_page] => 50
                    [orderby] => menu_order title
                    [order] => ASC
                    [ignore_sticky_posts] => 1
                    [no_found_rows] => 1
                )
...
            [request] => SELECT   wpp_posts.ID FROM wpp_posts  WHERE 1=1  AND wpp_posts.post_parent = 5420  AND wpp_posts.post_type = 'forum' AND ((wpp_posts.post_status = 'publish'))  ORDER BY wpp_posts.menu_order ASC, wpp_posts.post_title ASC LIMIT 0, 50
}}}

The same thing applies if you pass it a comma-separated string of statuses:

{{{
WP_Query Object
        (
            [query] => Array
                (
                    [post_parent] => 5420
                    [post_type] => forum
                    [post_status] => publish,private,hidden
                    [posts_per_page] => 50
                    [orderby] => menu_order title
                    [order] => ASC
                    [ignore_sticky_posts] => 1
                    [no_found_rows] => 1
                )
...
            [request] => SELECT   wpp_posts.ID FROM wpp_posts  WHERE 1=1  AND wpp_posts.post_parent = 5420  AND wpp_posts.post_type = 'forum' AND ((wpp_posts.post_status = 'publish'))  ORDER BY wpp_posts.menu_order ASC, wpp_posts.post_title ASC LIMIT 0, 50
}}}

Steps to replicate (taken from bbpress/includes/forums/template.php):

{{{
$r = bbp_parse_args( $args, array(
                'post_parent'         => 0,
                'post_type'           => bbp_get_forum_post_type(),
                 'post_status'         => implode( ',', $post_stati ),
                // 'post_status'         => $post_stati,
                'posts_per_page'      => get_option( '_bbp_forums_per_page', 50 ),
                'orderby'             => 'menu_order title',
                'order'               => 'ASC',
                'ignore_sticky_posts' => true,
                'no_found_rows'       => true
        ), 'forum_get_subforums' );
        $r['post_parent'] = bbp_get_forum_id( $r['post_parent'] );

        // Create a new query for the subforums
        $get_posts = new WP_Query();

        // No forum passed
        $sub_forums = !empty( $r['post_parent'] ) ? $get_posts->query( $r ) : array();
}}}"	useStrict
	49911	WP_Tax_Query generates incorrect SQL		Query		normal	normal	Awaiting Review	defect (bug)	new		2020-04-15T16:25:44Z	2020-04-15T19:33:57Z	"When calling WP_Query($arguments)::get_posts() like:
{{{
$arguments = [
  'category__in' = ['7','31','704'],
  'post_type' => array('post', 'page'),
  'post_status' => array('publish'),
  'nopaging' => true
];
}}}
704 is the category for posts and 7, 31 for pages. The following query will be produced: 

SELECT bct_posts.* FROM bct_posts LEFT JOIN bct_term_relationships ON (bct_posts.ID = bct_term_relationships.object_id) LEFT JOIN bct_term_relationships AS tt1 ON (bct_posts.ID = tt1.object_id) LEFT JOIN bct_term_relationships AS tt2 ON (bct_posts.ID = tt2.object_id) WHERE 1=1 AND ( bct_term_relationships.term_taxonomy_id IN (704) AND tt1.term_taxonomy_id IN (704) AND tt2.term_taxonomy_id IN (7,31,704) ) AND bct_posts.post_type IN ('post', 'page') AND ((bct_posts.post_status = 'publish')) GROUP BY bct_posts.ID ORDER BY bct_posts.post_date DESC

instead of 

SELECT bct_posts.* FROM bct_posts LEFT JOIN bct_term_relationships ON (bct_posts.ID = bct_term_relationships.object_id) WHERE 1=1 AND ( bct_term_relationships.term_taxonomy_id IN (7,31,704) ) AND bct_posts.post_type IN ('post', 'page') AND ((bct_posts.post_status = 'publish')) GROUP BY bct_posts.ID ORDER BY bct_posts.post_date DESC


The first query returns only posts, second one posts, and pages. Please note that categories and tags are enabled for pages.
"	janznordman
	46347	WP_Term_Query where sql_clauses oddity		Query		normal	normal	Awaiting Review	defect (bug)	new		2019-02-26T02:37:08Z	2019-02-26T03:03:52Z	"Hello, I was messing around with a customized version of the WP_Term_Query and noticed something odd.

In the function get_terms, there are a lot of places where {{{$this->sql_clauses['where'][somekey]}}} variables are created.

However, on line [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-term-query.php#L642 643], this code :
{{{#!php
$where = implode( ' AND ', $this->sql_clauses['where'] );
}}}
only uses the first sub array value found and ignores all the other keys.

Shouldn't this be:
{{{#!php
$where = implode( ' AND ', array_values($this->sql_clauses['where']));
}}}
so that all array elements are included in the where?"	vrandom
	50871	When exact is true and orderby set to relevance, there is a DB error on search results page		Query		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2020-08-06T20:21:56Z	2026-10-29T00:19:01Z	"In search query, when `exact` is set to `true` and `orderby` set to `relevance` there is DB error 

 WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DESC, wp_posts.post_date DESC LIMIT 0, 10' at line 1]

 `SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND (((wp_posts.post_title LIKE 'hello') OR (wp_posts.post_excerpt LIKE 'hello') OR (wp_posts.post_content LIKE 'hello'))) AND wp_posts.post_type IN ('post', 'page', 'attachment') AND (wp_posts.post_status = 'publish' OR wp_posts.post_author = 1 AND wp_posts.post_status = 'private') ORDER BY DESC, wp_posts.post_date DESC LIMIT 0, 10`

It is clear that both options together has no meaning. But it is compatibility issue between [https://wordpress.org/plugins/wp-extended-search/ WP Extended Search] and [https://wordpress.org/plugins/woocommerce/ WooCommerce]

WP Extended search has a feature to match exact sentence so it sets `exact` to `true` and later WooCommerce adds `orderby => relevance` causing this SQL error.

=== How to reproduce with just WP
* Add this code to theme or plugin 
{{{#!php
<?php
add_action('pre_get_posts', function ( $query ){
	$query->set( 'exact', true );
	$query->set( 'orderby', 'relevance' );
	$query->set( 'order', 'DESC' );
});
}}}
* Go to front-end and make a search, you will see the error.

=== Proposed fix
Here https://core.trac.wordpress.org/browser/tags/5.4.2/src/wp-includes/class-wp-query.php#L2357
We checking if `! empty( $q['search_orderby_title'] )` is not empty but we allow to call `parse_search_order()` when `'relevance' === $q['orderby']` causing `ORDER BY DESC` in SQL query without column name.
IMHO, we should not call `parse_search_order()` when `search_orderby_title` is empty regardless of `orderby`."	5um17
	44519	Where are the pages of the headings added with the + add-on (any) ala https://wp-kama.ru/cat/wordpress/codex+xxx		Query		normal	normal	Awaiting Review	defect (bug)	new		2018-07-05T10:00:29Z	2018-07-05T14:39:16Z	"Here is the page for this blog (kama) - https://wp-kama.ru/cat/wordpress/codex+xxx

This is a page of the rubric with the added + add-on (any)

She does not give out the content, but her response code is 200 - http://joxi.ru/vAWplvLi13bNqr

It's just that Kama banned the headings for indexing through

meta name = ""robots"" content = ""noindex""

I have the same headings for indexing are allowed.So somehow finding such pages the search drags them to the index.

This is exactly what happens to me and Yandex joyfully informs me that I have dragged another pack of such pages into the index.

How to make sure that an error 404 would appear on the page https://wp-kama.ru/cat/wordpress/codex+xxx

As an option - how to add them

meta name = ""robots"" content = ""noindex""

Thank you."	Dmitriy1973
	48768	WordPress 5.3 ajax bug with Elementor 2.7.5		Query	5.3	normal	critical	Awaiting Review	defect (bug)	new		2019-11-22T15:17:38Z	2019-11-22T15:17:38Z	"To whom it may concern,
I was working on my WordPress site and updated it to the latest version available (5.3), before had the 5.2.4 version, i also updated the plugin Elementors to the latest version 2.7.5 . 
I noticed that when i was trying to access their build in option, build query, for the elements, it would give and ajax error of type : **core-query uncaught TypeError: Cannot read property 'ajax' of undefined** .

I tried to downgrade the Elementor to a previous version but it didn't work, than i downgraded the WordPress one version older and it worked normally. 
"	argentum95
	40327	Wrong SQL request for 'EXIST' OR 'NOT EXIST' on same post meta		Query	4.7	normal	normal	Awaiting Review	defect (bug)	new		2017-03-31T19:57:27Z	2017-03-31T19:57:27Z	"Hi,

I want to make a query on a custom post type (event post type) with custom post status (on air, forthcoming...) joining optional meta (event rating) then order by decreasing rating, defaulting to increasing title.

I'm using 'new WP_Query()' way as secondary loop with the following WP query parameters:

{{{#!php
[
// Valid events only
'post_type'	=> My_Post_Type::POST_TYPE_EVENT,
'post_status'	=> [
	My_Post_Type::EVENT_STATUS_ON_AIR, 
	My_Post_Type::EVENT_STATUS_FORTHCOMING,
],
// Join optional rating
'meta_query'	=> [
	'relation'=> 'OR',
	[
		'key' => My_Post_Type::EVENT_ATTR_RATING,
		'compare'=> 'EXISTS',
	], 
 	[
		'key' => My_Post_Type::EVENT_ATTR_RATING,
		'compare' => 'NOT EXISTS',
	],
],
// Order by rating then title
'orderby'	=> [
	My_Post_Type::EVENT_ATTR_RATING	=> 'DESC',
	'post_title' => 'ASC',
		],
// Limit number
'posts_per_page' => self::NB_HOME_COMING_EVENTS,
]
}}}

Resulting SQL query is:

{{{#!php
SELECT SQL_CALC_FOUND_ROWS  cq_posts.* FROM cq_posts
LEFT JOIN cq_postmeta ON ( cq_posts.ID = cq_postmeta.post_id )
LEFT JOIN cq_postmeta AS mt1 ON (cq_posts.ID = mt1.post_id AND mt1.meta_key = 'ev_rating' )
WHERE 1=1  AND ( 
  cq_postmeta.meta_key = 'ev_rating' 
  OR 
  mt1.post_id IS NULL
) AND cq_posts.post_type = 'event' AND ((cq_posts.post_status = 'ev_on_air' OR cq_posts.post_status = 'ev_coming'))
GROUP BY cq_posts.ID
ORDER BY cq_postmeta.meta_value+0 DESC, cq_posts.post_title ASC
LIMIT 0, 6
}}}

The result set is not what I was looking for (in fact has no sense at all for me)

The right SQL query should be something like this:

{{{#!php
SELECT SQL_CALC_FOUND_ROWS  cq_posts.* FROM cq_posts
LEFT JOIN cq_postmeta ON ( cq_posts.ID = cq_postmeta.post_id AND cq_postmeta.meta_key = 'ev_rating' )
WHERE 1=1  AND cq_posts.post_type = 'event' AND ((cq_posts.post_status = 'ev_on_air' OR cq_posts.post_status = 'ev_coming'))
GROUP BY cq_posts.ID
ORDER BY cq_postmeta.meta_value+0 DESC, cq_posts.post_title ASC
LIMIT 0, 6
}}}

Only one LEFT JOIN is required.

Can anyone confirm it is a bug or tell me what WP query parameters I must use instead ?

Thanks in advance.

"	solo14000
	35913	`is_()` conditional methods should share their logic		Query		normal	normal	Future Release	defect (bug)	new	dev-feedback	2016-02-23T02:54:55Z	2026-07-23T23:41:08Z	"Many of the `is_()` methods in `WP_Query` share the nearly the exact same logic. As such, they share the exact same bugs, and fixing those bugs requires many parallel changes and huge numbers of tests. See #35902 and #24674 for some recent examples.

It's possible to move all the shared logic to a single `protected` utility method. It's a bit more abstract, but is much easier to maintain and test."	boonebgorges
	44964	`redirect_guess_404_permalink` doesn't support array in `post_type` var		Query	4.9	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2018-09-19T09:35:59Z	2026-10-31T18:38:34Z	`redirect_guess_404_permalink`  doesn't support array in post_type var, but other core WordPress parts support it.	viliamkopecky
	40300	`title` parameter causes `WP_Query` to return sticky posts.		Query	4.7.3	normal	normal	Awaiting Review	defect (bug)	new		2017-03-29T14:24:28Z	2017-03-29T14:24:28Z	"When a `title` parameter is present in the WP_Query arguments array then sticky posts are included in the `$query->posts` array. 

I'm not sure is it a bug, or is it just an incomplete documentation. The same happens with `post__in` parameter but in this case, I'm sure that it's not a bug because the documentation mentions that sticky posts are returned when using the `post__in` parameter."	wujek_bogdan
	45666	"adding ""order"" as query arg to the homepage url you are redirected to the last posts page"		Query		normal	normal	Awaiting Review	defect (bug)	new		2018-12-16T19:30:08Z	2018-12-18T11:38:25Z	"I've tested it on many sites, with different plugins, no plugins, different themes, default WordPress themes. If you add ?order=something to the home page url you have a redirection to the last posts page.
"	giuse
	57505	"category archive url ending with ""/0"" should be 404"		Query		normal	normal	Awaiting Review	defect (bug)	new		2023-01-19T09:33:54Z	2023-05-14T13:17:29Z	"First, if URL is ""/category/cat1/0"", first, it is recognized as `category_name=""cat1/0""`,
then ""is_category=true"" and category archive template should be selected.

But for really query, `category_name=""0""` and `empty($q[""category_name""])==true`,
so it is recognized as ""category is not specified"", then `tax_query` will be empty, and `queried_object==null`. 

Finally, category template will be confused.
No category is selected, any category related information are broken (maybe rise warnings or errors).
Any recent posts of any public post types will be displayed even if its post_type dose not belong to core 'category' taxonomy."	obache
	57766	filter query_loop_block_query_vars repeater 4 times		Query	6.1.1	normal	normal	Awaiting Review	defect (bug)	new		2023-02-18T21:20:51Z	2023-02-18T21:40:51Z	"Hello! I think that filter query_loop_block_query_vars be repeated 4 times foreach query.

Tried to use this simple code in functions.php(theme Twenty Twenty-Two, no plugins):

add_filter( 'query_loop_block_query_vars', function( $query, $block ){
echo '1<br>';
return $query;
		
}, 21, 2 );

You can notice 4 times 1 on top of the page."	gigito78
	61763	"get_posts($args) returns ""auto-drafts"" even when ""post_status=>publish"""		Query		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-07-26T01:19:18Z	2024-07-26T02:04:43Z	"Frustrating bug this one is - had this for a while so not related to the current version.

Wordpress: 6.6.1
PHP: 8.2.21 

When I use the following code
{{{
  $args = array( 'post_type'=>'post', 'post_status'=>'publish', 'numberposts'=>5 );
  error_log(""ARGS -> \n"".print_r($args,1),3,""/var/log/php"");
  $posts = get_posts($args);
  foreach($posts as $k  => $v)
  {
    error_log(""--------------------------------\n"",3,""/var/log/php"");
    error_log(""PT "".$v->post_title.""\n"",3,""/var/log/php"");
    error_log(""PS "".$v->post_status.""\n"",3,""/var/log/php"");
    error_log(""PY "".$v->post_type.""\n"",3,""/var/log/php"");
  }
}}}

It will print out
{{{
ARGS ->
Array
(
    [post_type] => post
    [post_status] => publish
    [numberposts] => 5
)
--------------------------------
PT Auto Draft
PS auto-draft
PY post
--------------------------------
PT Stuck in the Valley of Indecision?
PS draft
PY post
--------------------------------
PT Game Over: How Fair Play Can Rebuild the Construction Industry
PS publish
PY post
--------------------------------
PT The Power of Reflection for Sales Success
PS publish
PY post
--------------------------------
PT Trend 5 - Process AND Agency
PS publish
PY post
}}}

basically **completely ignoring** my request for 5 **published** posts.

Wordpress' manual for get-posts (https://developer.wordpress.org/reference/functions/get_posts/) clearly states that the allowed passed parameter for ""$args"" can be found in WP_Query::parse_query (https://developer.wordpress.org/reference/classes/WP_Query/parse_query/) which ""post_status"" is one of them.

I consider this a bug as get_query does not listen to my request ONLY to hand over ""published"" posts.
"	jobst
	47068	get_queried_object() returns null date archives and on homepage with blog on front settings		Query	4.7	normal	normal	Awaiting Review	defect (bug)	reopened	has-patch	2019-04-29T12:12:22Z	2025-12-03T15:35:39Z	get_queried_object() returns null if permalink is plain.	bplv
	53495	incorrect (and confusing) DocBlock for get_page_by_title()		Query	5.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-06-24T00:41:14Z	2026-06-03T17:16:08Z	"The DocBlock of [https://developer.wordpress.org/reference/functions/get_page_by_title/ get_page_by_title()] says:

> If more than one post uses the same title, the post with the smallest ID will be returned. Be careful: in case of more than one post having the same title, it will check the oldest publication date, not the smallest ID.

That description was added in [45779].

Besides the fact that the text after `Be careful:` seems to contradict that the statement that `the post with the smallest ID will be returned`, there actually is no guarentee that if there is more than 1 post with the same title that the one with the smallest ID will be returned.

The query performed by [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/post.php#L5534 get_page_by_title()] is:

{{{#!php
$sql = $wpdb->prepare(
	""
	SELECT ID
	FROM $wpdb->posts
	WHERE post_title = %s
	AND post_type = %s
"",
	$page_title,
	$post_type
);
}}}

(with a slight mod if an array of post types is passed).

Since there is no `ORDER BY` clause in that query, if there are more than 1 posts with the same title the order in which they are returned is not defined by SQL (i.e., is implemented dependent).

The SQL-92 spec [http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt explicitly states]:

> General Rules
>
> 1) All General Rules of Subclause 7.10, ""<query expression>"", apply
> to the <direct select statement: multiple rows>.
>
> 2) Let Q be the result of the <query expression>.
>
> 3) If Q is empty, then a completion condition is raised: no data.
>
> 4) If an <order by clause> is not specified, then the ordering of
> the rows of Q is implementation-dependent.

As far as I can tell, no later revisions of the SQL spec are available for free on the web, so I don't know if anything has changed in the what the language says happens in the absense of an `ORDER BY` clause

I've looked through the MySQL and Maria DB docs for an explicit statement that says as much and haven't been able to find one.

But I think the DocBlock should be changed to say something like:

> If more than one post uses the same title, which of the multiple posts is returned is not defined.

though I'm not completely happy with that wording, and welcome other suggestions.
"	pbiron
	65671	is_page() and is_single() do not match a path that begins with a slash		Query		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-07-20T13:46:06Z	2026-07-20T13:55:01Z	"`WP_Query::is_page()` and `WP_Query::is_single()` document their parameter as accepting a path:

{{{#!php
@param int|string|int[]|string[] $page Optional. Page ID, title, slug, path, or array of such
}}}

Both guard the path branch with:

{{{#!php
if ( ! strpos( $pagepath, '/' ) ) {
	continue;
}
}}}

`strpos()` returns `0` when the slash is the first character, so `! strpos()` evaluates to `true` for a path such as `/foo/bar`, and the path is skipped without ever being checked.

`get_page_by_path()`, which performs the actual lookup, explicitly trims leading and trailing slashes:

{{{#!php
$parts = explode( '/', trim( $page_path, '/' ) );
}}}

So a leading-slash path is input the lookup already supports. The guard is inconsistent with the function it guards, and the result is that `is_page( '/foo/bar' )` returns `false` on the very page it names, with no notice or warning.

== Steps to reproduce ==

1. Create a page `foo` with a child page `bar`.
2. Visit the child page.
3. `is_page( 'foo/bar' )` returns `true`.
4. `is_page( '/foo/bar' )` returns `false`.

`is_single()` has the same guard at the equivalent spot, so a post path behaves the same way.

== Proposed fix ==

Use `str_contains()` instead of `! strpos()`. It is polyfilled in core for PHP < 8.0 and is already used elsewhere in `class-wp-query.php`.

Behaviour is identical for every other input. Only a path whose first character is a slash changes, from silently skipped to correctly checked:

|| '''Input''' || '''Current''' || '''With fix''' ||
|| `about` || skipped || skipped ||
|| `foo/bar` || checked || checked ||
|| `foo/bar/` || checked || checked ||
|| `/foo/bar` || '''skipped''' || '''checked''' ||

I have a patch and a regression test ready, and will open a PR once this ticket has a number."	thisismyurl
	45400	last of query_vars contains anchor		Query	4.9.8	normal	normal	Awaiting Review	defect (bug)	new		2018-11-22T16:23:44Z	2018-12-05T17:17:29Z	"Anchor links (at least individual comment links) are generated basically by appending ""/#Comment-XX"" to the end of URL.

In which case $wp_query->$query_vars returns last variable with appended ""/"" in it.
"	visnevskis
	47211	using amp in search show all post / pages with the &		Query		normal	normal	Awaiting Review	defect (bug)	new		2019-05-10T08:50:16Z	2019-05-10T13:19:59Z	"as the & is a &amp; i get all pages in the search result with a &, when searching for an amp. this happens on various wordpress page where a & is in the name. but as a result, this is wrong.

i found this bug, as i'm building a page for a lending company, lending amp (amplifiers)."	paolo_wp
	57083	wp_list_authors and WP Search Users		Query	6.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-11-11T22:47:31Z	2022-11-16T13:24:41Z	"Apparently `wp_list_authors` is loading a deprecated WordPress class called WP Search Users, this class has now been replaced with WP Query Users but `wp_list_authors` keeps using WP Search Users.

However the case wp list authors is only accepting some parameters, neither through array or through post accepted more parameter, meaning that something like this worked:

{{{
wp_list_authors('orderby=name&order=DESC');
}}}

but something like this did not:

{{{
wp_list_authors('orderby=name&order=ASC');
}}}

or even 
{{{
wp_list_authors('orderby=name&order=DESC&optioncount=1');
}}}


My original code wasn’t working because it was stated as follows:

{{{
$authors = str_replace( ', ', '<br>', wp_list_authors([
			'style' 		=> 'none',
			'optioncount' 	=> 1,
			'echo' 			=> 0
		]) );
		echo $authors;
}}}"	pabloeduardo
	55748	wp_query post_type taxonomies doesn't accept array in url if hierarchical		Query	5.9.3	normal	minor	Awaiting Review	defect (bug)	new		2022-05-17T13:53:10Z	2022-05-17T13:53:10Z	"if you put the custom taxonomy in the url with an array value 
i.e. ?custom_tax[]=term-1&custom_tax[]=term-2
it should filter by those terms

however if you look at the code for wp_query if the taxonomy is hierarchical it is put through  wp_basename which cannot process arrays and so the input is completely lost

https://github.com/WordPress/WordPress/blob/102004b50565c767390328aef2357a235d60b026/wp-includes/class-wp-query.php#L1131-L1151

to resolve either we need to move the if(is_array()) above the wp_basename if or make wp_basename accept arrays


"	dg12345
	60154	Add filter hook to either get_post_stati or WP_List_Util::filter		Query	6.5	normal	normal	Awaiting Review	enhancement	new		2023-12-27T03:18:36Z	2024-02-15T16:26:15Z	"In the WP_Query class, around line 2649 at this time
there is a condition if a post_type is selected
{{{#!php
<?php
if ( ! empty( $queried_post_types ) ) {
....
$public_statuses = get_post_stati( array( 'public' => true ) );
$status_clauses  = array();
foreach ( $public_statuses as $public_status ) {
	$status_clauses[] = ""{$wpdb->posts}.post_status = '$public_status'"";
}
...
}}}

This code does not allow to filter statuses depending on other query vars, since neither get_post_stati or wp_filter_object_list (used by get_post_stati) have any hookable filter.

User scenario : I need to filter shop_order posts by a custom taxonomy. 
I need to be able to select shop_order without any assigned term from this taxonomy, but only if they're ""live"" ( processing, completed, etc. but not refunded, failed or cancelled), as I don't care if a cancelled Order has no assigned term from this taxonomy.

So if 

{{{
$WP_Query->query_vars['post_type'] == 'shop_order'
&& $_GET['taxonomy'] == -1
}}}
( -1 being the value I put in the admin select field to select orders without relationship to the taxonomy )

I want to be able to filter $public_statuses = get_post_stati( array( 'public' => true ) ); to remove 'dead' statuses from the list 

current where clause =
AND wp_posts.post_type = 'shop_order' AND ((wp_posts.post_status = 'wc-pending' OR wp_posts.post_status = 'wc-processing' OR wp_posts.post_status = 'wc-on-hold' OR wp_posts.post_status = 'wc-completed' OR wp_posts.post_status = 'wc-cancelled' OR wp_posts.post_status = 'wc-refunded' OR wp_posts.post_status = 'wc-failed' OR wp_posts.post_status = 'wc-partially-paid')) 

expected where clause =
AND wp_posts.post_type = 'shop_order' AND ((wp_posts.post_status = 'wc-pending' OR wp_posts.post_status = 'wc-processing' OR wp_posts.post_status = 'wc-on-hold' OR wp_posts.post_status = 'wc-completed' OR wp_posts.post_status = 'wc-partially-paid')) 

My own hook hooks on 'posts_where' and add the filter 
{{{#!php
<?php
$where .= $wpdb->prepare( 
					"" AND ID IN (
				        SELECT object_id
				        FROM "". $wpdb->term_relationships . ""
				        WHERE term_taxonomy_id = %d
					)
				    "", $term_taxonomy_id
				);
}}}
and since I'm filtering the $where string of the SQL query, I _could_ remove the 'dead' statuses by str_replace on the where clause, but that's really ugly

I propose this code
{{{#!php
<?php
function get_post_stati( $args = array(), $output = 'names', $operator = 'and' ) {
	global $wp_post_statuses;

	$field = ( 'names' === $output ) ? 'name' : false;

	return wp_filter_object_list( $wp_post_statuses, $args, $output, $operator );
}
}}}

to be replaced by this code :
{{{#!php
<?php
function get_post_stati( $args = array(), $output = 'names', $operator = 'and' ) {
	global $wp_post_statuses;

	$field = ( 'names' === $output ) ? 'name' : false;

	$statuses = wp_filter_object_list( $wp_post_statuses, $args, $operator, $field );
	return apply_filters( 'get_post_stati', $statuses, $args, $operator, $field);
}
}}}

as I would then be able to 
{{{#!php
<?php
add_filter('get_post_stati', 'custom_get_post_stati', 10, 4);
function custom_get_post_stati( $statuses, $args, $operator, $field ) {
	if( is_admin() && isset( $_GET['taxonomy'] && $_GET['taxonomy'] == -1 ) {
		// remove the 'dead' statuses
	}
	return $statuses;
}
}}}
"	Malaiac
	47694	Adding a filter for $searchand variable		Query		normal	normal	Awaiting Review	enhancement	new		2019-07-13T11:38:03Z	2019-07-13T11:55:05Z	"Hi,
I wish to know if we can add a filter to the $searchand variable in parse_search method to give the developer the option to modify the logic to OR instead of AND. I believe it will help a lot as it happens in some websites where people search for many words will not be accurate. In these cases OR may be better."	bebro
	61632	Allow ordering of posts by `status`		Query		normal	normal	Awaiting Review	enhancement	new		2024-07-11T11:44:27Z	2024-07-11T12:35:46Z	"Currently it's not possible to order posts by `status` in the REST API: https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php#L2899.

This is useful though with the new views (Data Views and pages list) in site editor and the advancing of redesigning of WP admin, which will utilize way more the REST API. 


"	ntsekouras
	51155	Default Order and Order By for Post Types and Taxonomies		Query		normal	normal	Awaiting Review	enhancement	new		2020-08-27T04:27:23Z	2020-08-27T12:09:36Z	"Inspired by #49912.

When you register a custom post type, or a taxonomy, you should be able to set the default order(ASC or DESC) and order by parameter for that post type or taxonomy archive. 



"	dshanske
	42907	Meta Queries: support ordering by meta_value but still including items without that key		Query		normal	normal	Awaiting Review	enhancement	new		2017-12-14T21:54:48Z	2019-01-16T06:50:09Z	"Consider this scenario:

- You want to order a query's results by `meta_value` of a particular `meta_key`.
- Not all items have that key/value pair set.
- You want to still include those items in the results.
- You want them to be ordered as if the `meta_value` is `NULL` (or `0` if using `meta_value_num`).

There is currently no way to do this. (But it is a desired feature, see [https://wordpress.stackexchange.com/questions/28409/way-to-include-posts-both-with-without-certain-meta-key-in-args-for-wp-query 1] [https://wordpress.stackexchange.com/questions/102447/sort-on-meta-value-but-include-posts-that-dont-have-one?noredirect=1&lq=1 2] [https://stackoverflow.com/questions/17016770/wordpress-order-by-meta-value-if-it-exists-else-date 3].)

If you don't care about the items that don't have the meta key set being included, then you can use `compare` => `EXISTS`.
{{{#!php
<?php
		$query = new WP_Query(
			array(
				'orderby' => 'meta_value',
				'meta_query' => array(
					array(
						'key' => 'test',
						'compare' => 'EXISTS',
					),
				),
			)
		);
}}}

However, that won't work if we want to include results where the key/value pair doesn't exist.

A workaround is to do something like this:

{{{#!php
<?php
		$query = new WP_Query(
			array(
				'orderby' => 'meta_value',
				'meta_query' => array(
					'relation' => 'OR',
					array(
						'key' => 'test',
						'compare' => 'EXISTS',
					),
					array(
						'key' => 'test',
						'compare' => 'NOT EXISTS',
					),
				),
			)
		);
}}}


This approach solves the problem of the items with no key/value pair not being included. However, it does not order those items in the results reliably. Instead of the `meta_value` being interpreted as `null` (which we might expect), the database will choose another `meta_value` entry for that item to order that item based on.

My proposal is to add a `NONE` option for `compare`, so that it would be possible to achieve the desired ordering with a query like this:

{{{#!php
<?php
		$query = new WP_Query(
			array(
				'orderby' => 'meta_value',
				'meta_query' => array(
					'relation' => 'OR',
					array(
						'key' => 'test',
						'compare' => 'NONE',
					),
				),
			)
		);
}}}

This would result in a query that included a `LEFT JOIN` on the meta table for that `meta_key`, but did not include any conditions in the query. (This is basically a `NOT EXISTS` query but without the `ID = NULL` requirement, so that it is just a left join and not a left outer join.)

When using `meta_value_num` in particular though, ordering by `NULL` may not be desirable (those results will be after all other results); `0` may be preferred as the imputed value (consider a case when negative values are present). To make this possible, I suggest allowing the clause to also specify a `default` value, which will be used in the `ORDER BY` clause with `COALESCE`.

Initial patch forthcoming."	jdgrimes
	62484	Multiple selection of post type in Query loop block		Query		normal	normal	Awaiting Review	enhancement	new	close	2024-11-20T10:29:37Z	2025-05-26T14:29:53Z	In the drop-down selection of the Query loop block, let the possibilities select multiple post types. We sometimes need to show different posts from different post types in one publication list.	stacesbe
	49555	Reorder WP_Query methods for a more logical placement		Query		normal	trivial	Future Release	enhancement	new		2020-03-01T18:03:01Z	2020-03-01T18:22:05Z	"Conditional tag functions were initially ordered alphabetically in the source files. With some changes over the years, new functions were introduced and placed next to the closest related function. Now the order is mixed, and the placement of some individual functions like `is_month()` makes no sense in the overall structure.

It would be helpful if the methods were ordered in a more logical manner, perhaps based on the [https://developer.wordpress.org/reference/classes/wp_query/#parameters Parameters] section of the DevHub reference, though that could also use some improvement.

For the record, the current order is as follows:

||=In `wp-includes/query.php`=||=In `wp-includes/class-wp-query.php`=||
||`is_archive()`||`::is_archive()`||
||`is_post_type_archive()`||`::is_post_type_archive()`||
||`is_attachment()`||`::is_attachment()`||
||`is_author()`||`::is_author()`||
||`is_category()`||`::is_category()`||
||`is_tag()`||`::is_tag()`||
||`is_tax()`||`::is_tax()`||
||(moved to `deprecated.php`)||`::is_comments_popup()`||
||`is_date()`||`::is_date()`||
||`is_day()`||`::is_day()`||
||`is_feed()`||`::is_feed()`||
||`is_comment_feed()`||`::is_comment_feed()`||
||`is_front_page()`||`::is_front_page()`||
||`is_home()`||`::is_home()`||
||`is_privacy_policy()`||`::is_privacy_policy()`||
||`is_month()`||`::is_month()`||
||`is_page()`||`::is_page()`||
||`is_paged()`||`::is_paged()`||
||`is_preview()`||`::is_preview()`||
||`is_robots()`||`::is_robots()`||
||`is_favicon()`||`::is_favicon()`||
||`is_search()`||`::is_search()`||
||`is_single()`||`::is_single()`||
||`is_singular()`||`::is_singular()`||
||`is_time()`||`::is_time()`||
||`is_trackback()`||`::is_trackback()`||
||`is_year()`||`::is_year()`||
||`is_404()`||`::is_404()`||
||`is_embed()`||`::is_embed()`||
||`is_main_query()`||`::is_main_query()`||"	SergeyBiryukov
	58593	Slow list of posts in the admin panel (with a large wp_posts table)		Query	6.2.2	normal	normal	Awaiting Review	enhancement	new	has-patch	2023-06-21T17:23:18Z	2026-10-25T18:09:55Z	"Hello. With a large wp_posts table (more than 1 GB, more than 100k published posts), the list of posts in the admin panel may open for several seconds. Slow SQL query that calculates the number of ""my"" posts:
				SELECT COUNT( 1 )
				FROM wp_posts
				WHERE post_type = '<post_type>'
				AND post_status NOT IN ( 'trash','auto-draft','inherit','request-pending','request-confirmed','request-failed','request-completed' )
				AND post_author = 1

Solution:

  ALTER TABLE `wp_posts`
  ADD KEY `type_status_author` (
  `post_type`,
  `post_status`,
  `post_author`
  );"	Shoorf
	49296	Split up WP_Query into more manageable classes		Query	5.3.2	normal	normal	Awaiting Review	enhancement	new		2020-01-26T15:04:24Z	2020-01-26T22:16:29Z	"as it stands the WP_query class file is over 4000 lines
and with a single function that get_posts that on its own is over 1200 lines.


Suggestion
-------------------------------------------------------------------------
Split the class into its own folder with 
""vars"",""get"",""set"",""deprecated"",""process"",""comments"",""posts"",""get_posts""
as abstract classes 

example
{{{#!php
<?php 
abstract class wp_query_vars { ..... } 
abstract class wp_query_get extends wp_query_vars { ..... } 
?>
}}}


and then adjust the class-wp-query.php to load the split class

{{{#!php
<?php
/**
 * Query API: WP_Query class
 *
 * @package WordPress
 * @subpackage Query
 * @since 4.7.0
 */
 $loader = array(""vars"",""get"",""set"",""deprecated"",""process"",""comments"",""posts"",""get_posts"");
 foreach($loader as $loadclass)
 {
	 require_once(""wp-query/wp_query_"".$loadclass."".php"");
 }

class WP_Query extends wp_query_get_posts
{
	/**
	 * Constructor.
	 *
	 * Sets up the WordPress query, if parameter is not empty.
	 *
	 * @since 1.5.0
	 *
	 * @param string|array $query URL query string or array of vars.
	 */
	public function __construct( $query = '' ) {
		if ( ! empty( $query ) ) {
			$this->query( $query );
		}
	}
}
}}


after this is done other improvements should be made to the get_posts function."	madpeter
	41819	Support the paged argument in WP_Site_Query and WP_Network_Query	spacedmonkey	Query	4.6	normal	normal	Future Release	enhancement	assigned	dev-feedback	2017-09-06T18:21:04Z	2017-11-01T17:47:07Z	"The {{{WP_Site_Query}}} and {{{WP_Network_Query}}} both support the {{{offset}}} and {{{number}}} arguments.

It would be handy to be able to use the {{{paged}}} argument, to make the pagination easier.

"	birgire
	49429	There seems to be no way to check query value for NULL		Query	5.3.2	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2020-02-14T04:56:53Z	2020-02-14T12:29:13Z	"NOT EXISTS and EXISTS both don't do what I want

I want to check `WHERE meta_value IS NOT NULL`



exists does this, applied to meta field

related_post_id2:

`
""where""	""mt5.meta_key = 'related_post_id2'""
""join""	"" INNER JOIN wp_2_postmeta AS mt5 ON ( wp_2_posts.ID = mt5.post_id )""
`

that is not what I want

NOT EXISTS does:

`
""where""	""mt5.post_id IS NULL""
""join""	"" LEFT JOIN wp_2_postmeta AS mt5 ON (wp_2_posts.ID = mt5.post_id AND mt5.meta_key = 'related_post_id2' )""
`

well, thats not what I want either, because now it checks ""if there is a row with related_post_id2"".


I want

""A row where the meta_value is not null""


in reality what I want is

Any entry, that has:
No value for related_post_id2
empty string for related_post_id2
or 
null for related_post_id2


does that make sense?
"	Jossnaz
	52167	WP_Query: always convert `any` post type values to public values.		Query		normal	normal	Awaiting Review	enhancement	new	has-patch	2020-12-24T01:01:27Z	2020-12-24T02:08:37Z	"Instantiating a WP_Query with each of the following parameters will return all public post types (post, pages and attachments by default):


{{{#!php
<?php
new WP_Query( [ 'post_type' => 'any' ] );
new WP_Query( [ 'post_type' => [ 'any' ] ] );
/*
WHERE 1=1
  AND wp_posts.post_type IN ('post', 'page', 'attachment')
  AND ((wp_posts.post_status <> 'trash' AND wp_posts.post_status <> 'auto-draft'))
 */
}}}

However, manually adding another post type to an array containing `any` will result in a query searching for the post types `any` and the subsequent post types. This is the case regardless as to whether the included types are public or private.

{{{#!php
<?php
new WP_Query( [ 'post_type' => [ 'any', 'post' ] ] );
/*
WHERE 1=1 
  AND wp_posts.post_type IN ('any', 'post')
  AND ((wp_posts.post_status <> 'trash' AND wp_posts.post_status <> 'auto-draft'))
*/

new WP_Query( [ 'post_type' => [ 'any', 'revision' ] ] );
/*
WHERE 1=1 
  AND wp_posts.post_type IN ('any', 'revision')
  AND ((wp_posts.post_status <> 'trash' AND wp_posts.post_status <> 'auto-draft'))
*/
}}}


I am writing up some basic tests and create a pull request on GH to demonstrate the unexpected queries."	peterwilsoncc
	55630	add array input to meta_query key		Query	5.9.3	normal	normal	Awaiting Review	enhancement	new	has-patch	2022-04-27T14:55:34Z	2022-04-27T15:06:37Z	"use :
{{{
'meta_query' => array(
 'relation' => 'OR',
 array(
	 'key' => ['meta_key_1' , 'meta_key_2', 'meta_key_3'],
	 'value' => 23,
 ),
);

}}}

Instead of this :


{{{
'meta_query' => array(
 'relation' => 'OR',

 array(
	 'key' => 'meta_key_1',
	 'value' => 23,

 ), 
 array(
	 'key' => 'meta_key_2',
	 'value' => 23,

 ), 
 array(
	 'key' => 'meta_key_3',
	 'value' => 23,
 ), 
);
}}}
"	hossin277
	43842	get_children() function enhancement.		Query		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2018-04-24T12:06:31Z	2026-02-01T06:49:02Z	This `get_children` function can be rewritten this way. And I think this is cleaner and better.	rnaby
	41797	max_num_pages for WP_User_Query		Query		normal	normal	Awaiting Review	enhancement	new	has-patch	2017-09-04T22:19:56Z	2017-09-05T08:13:21Z	"The {{{WP_User_Query}}} class supports pagination but doesn't have the public {{{max_num_pages}}} property, like most of the other query classes do.

This can be useful when using e.g. {{{paginate_links()}}} and also for better consistency.

"	birgire
	44602	meta_query to support FIND_IN_SET		Query		normal	normal	Awaiting Review	enhancement	new	has-patch	2018-07-18T17:22:08Z	2018-07-18T17:29:14Z	I got `FIND_IN_SET` working in meta_query. 	donjajo
	43324	query_vars is not necessarely representative of the final query_vars used to build the SQL query		Query		normal	normal	Awaiting Review	enhancement	new		2018-02-14T23:53:57Z	2019-01-16T06:50:09Z	"I've recently stumbled upon a case here where the post_type query_var changes over the process of the query building process, and the change is not reflected in the query_vars variable of the query.

On the section highlighted [https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-query.php#L2067-L2088 here] (sorry for pasting a GitHub link, i just wanted to use the section highlighting feature), you can see that if there's no post_type set in the query, but you're querying taxonomies (eg a tax archive query), the post_type is set (using a separate variable), and then used on the [https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-query.php#L2345-L2366 following section] to build up the where statement.

In my opinion all of the query_vars modified during the process should be reflected in the query_vars variable, so you can after see the actual value being used for querying (on the {{{posts_request}}} filter for example). 

You can see [https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-query.php#L2152-L2160 here] a section where the {{{$q['author']}}, {{{$q['author__in']}}} and {{{$q['author__not_in']}}}. These is an example of changes that are not reflected in the query_vars (since there's no call to fill_query_vars after all this extra parsing, sanitizing, and defaulting process is made).

Let me know your thoughts."	msaggiorato
	57303	"wp_get_posts() for post_type=""any"" + post__in creates not optimized database query"		Query	6.2	normal	normal	Awaiting Review	enhancement	new	has-patch	2022-12-09T20:42:21Z	2025-09-10T11:25:27Z	"Hi all.

I have a case where the database query is not very optimal and (probably) needs to be improved.

Case: I have a list of post ids that belong to several different post types. Now I need to get the WP_Post objects for this list of posts. So I do the following:

{{{#!php
<?php
get_posts([
  'post_type' => 'any',
  'post__in' => [10,20,30,40,50]
]);
}}}

This code works well, however I have a lot of different post types (15+) on my site and as a result the database query looks like this:

{{{
SELECT wp_posts.*
FROM wp_posts  
WHERE 1=1  
AND ((wp_posts.post_type = ? AND (wp_posts.post_status = ? 
OR wp_posts.post_status = ?)) OR (wp_posts.post_type = ? AND (wp_posts.post_status = ? 
OR wp_posts.post_status = ?)) OR (wp_posts.post_type = ? AND (wp_posts.post_status = ? 
OR wp_posts.post_status = ?)) OR (wp_posts.post_type = ? AND (wp_posts.post_status = ? 
OR wp_posts.post_status = ?)) OR (wp_posts.post_type = ? AND (wp_posts.post_status = ? 
OR wp_posts.post_status = ?)) OR (wp_posts.post_type = ? AND (wp_posts.post_status = ? 
OR wp_posts.post_status = ?)) OR (wp_posts.post_type = ? AND (wp_posts.post_status = ? 
OR wp_posts.post_status = ?)) OR (wp_posts.post_type = ? AND (wp_posts.post_status = ? 
OR wp_posts.post_status = ?)) OR (wp_posts.post_type = ? AND (wp_posts.post_status = ? 
OR wp_posts.post_status = ?)) OR (wp_posts.post_type = ? AND (wp_posts.post_status = ? 
OR wp_posts.post_status = ?)) OR (wp_posts.post_type = ? AND (wp_posts.post_status = ? 
OR wp_posts.post_status = ?)) OR (wp_posts.post_type = ? AND (wp_posts.post_status = ? 
OR wp_posts.post_status = ?)) OR (wp_posts.post_type = ? AND (wp_posts.post_status = ? 
OR wp_posts.post_status = ?)) OR (wp_posts.post_type = ? AND (wp_posts.post_status = ? 
OR wp_posts.post_status = ?)) OR (wp_posts.post_type = ? AND (wp_posts.post_status = ? 
OR wp_posts.post_status = ?)) OR (wp_posts.post_type = ? AND (wp_posts.post_status = ? 
OR wp_posts.post_status = ?)))
WHERE wp_posts.ID IN (?)
GROUP BY wp_posts.ID
ORDER BY FIELD(wp_posts.ID,?,?)
}}}

As you can see, it checks post_type + post_status for every public post type on my site. But the wp_get_posts() attributes explicitly declare a list of ids and that the post type can simply be ignored in this case (because the post_type is set to ""any"").

The relevant query should be like this (because it covers all requirements):

{{{
SELECT wp_posts.*
FROM wp_posts  
WHERE 1=1  
AND (wp_posts.post_status = ?)
WHERE wp_posts.ID IN (?)
GROUP BY wp_posts.ID
ORDER BY FIELD(wp_posts.ID,?,?)
}}}

I checked class-wp-query.php and didn't find a solution without making changes to the WordPress code. There may already be a workaround implemented - it would be nice to know it. But this can be easily implemented by adding something like post_type=""all"" (similar to ""any""). The implementation of the idea has been added to the patch file (attached).

Thanks in advance!"	madeinua
	50154	About date and time request of version 5.4.1		Query	5.4.1	normal	normal	Awaiting Review	feature request	new		2020-05-13T08:33:12Z	2020-05-13T13:07:05Z	"In version 5.4.1, a single page template no longer applies if the year, month, day, hour, minute, and second are all specified as query parameters.

I understand that this is the effect of fixing a glitch that caused unauthenticated users to see private posts.

At the same time, it is disappointing that the traditional compatibility could not be maintained.

The following is the modified portion of the case, but I believe there is a fix that maintains traditional compatibility.

[47641]

The patch file is attached, so please check it."	tmatsuur
	49057	Add tag for any WP_Query for simple access in pre_get_post action		Query		normal	normal	Awaiting Review	feature request	new		2019-12-21T04:54:24Z	2019-12-21T04:54:24Z	"At current time it is difficult for find out which query is running at pre_get_post action
I offer add extra property to WP_Query as tag-name.
by this way i simply find out which query is running just by custom tag that added in any WP_Query object"	hamedmoodi
	58447	Posts with ‘Stick to the top of the blog’ should also stick to the top of the categories it belongs to		Query		normal	normal	Awaiting Review	feature request	new		2023-06-02T18:38:43Z	2025-09-09T23:48:22Z	"According to the WordPress documentation ‘Stick to the top of the blog’ seems to be designed to only stick to the top of the front page. 
I don't think that makes sense. It should also stick to the top of the categories it belongs to! At least the main category. "	hero2
	43356	create is_403 function		Query	4.9.3	normal	normal	Awaiting Review	feature request	new		2018-02-19T13:48:04Z	2018-02-19T16:04:07Z	Create is_403() function and the ability to create a 403.php file in template to customize the page that visitors see when there try to access to a private content when there not loged in.	fabienlege
	48496	Filters post_row_actions and page_row_actions not apply at AJAX inline-save action		Quick/Bulk Edit	5.2.4	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-11-05T04:23:05Z	2025-05-12T01:35:44Z	"At page /wp-admin/edit.php
after inline post/page edit and save
updated table row loads by AJAX
with default actions -
without apply post/page_row_actions filter"	andrejovdienko
	61409	JQMIGRATE warnings for bulk edit		Quick/Bulk Edit	6.5.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-06-10T23:56:25Z	2024-06-18T11:17:11Z	"When using the ""bulk edit"" functionality for posts (or pages), I'm seeing two warnings in the browser console:

{{{
JQMIGRATE: jQuery.fn.click() event shorthand is deprecated
JQMIGRATE: jQuery.fn.focus() event shorthand is deprecated
}}}

(You may need to define `SCRIPT_DEBUG` to `true` to see these.)

Also, when I remove one of the posts/pages from the bulk edit form (by clicking on the [https://developer.wordpress.org/resource/dashicons/#dismiss circular ""x"" icon]), I get another focus warning."	siliconforks
	61833	Post titles in Bulk Edit should show decoded HTML		Quick/Bulk Edit		normal	normal	Future Release	defect (bug)	new	has-patch	2024-08-06T19:48:58Z	2025-02-13T20:56:58Z	"It seems that when a post title contains HTML character references (entities) that the list of posts in the //Bulk Edit// screen shows the raw HTML markup in its non-decoded form. Instead, it ought to show the decoded form.

|| [[Image(https://cldup.com/RNH1LGEjg7.png)]] || [[Image(https://cldup.com/cTnfJAgODG.png)]] ||

The JavaScript is escaping the raw HTML, preserving the character references as syntax instead of decoding them as text.

{{{
[Log] {theTitle: ""&amp;hellip; is &amp;Lambda;""} (inline-edit-post.js, line 210)
[Log] {theTitle: ""x &amp;lt; 2 &amp;amp; y &gt; 3…""} (inline-edit-post.js, line 210)
}}}

WordPress is double-encoding the post titles when sending them to the admin page, causing the display error. The raw value in the database is proper, e.g. `&hellip; is &Lambda;`.

[[Image(https://cldup.com/HJEjFMJ5uA.png)]]"	dmsnell
	59971	Publishing a post in QuickEdit forces Date to NOW		Quick/Bulk Edit	6.4	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2023-11-27T17:32:22Z	2023-12-05T09:13:21Z	"I use to give post-drafts a particular publishing date in the past (for ordering reasons when i publish them later on).

When I publish a post with a given date in Editing Mode, the publishing date stays my inserted day.
When I publish a post with a given date in Quick-Edit, the publishing date always gets forced to NOW.
(This also happens when I bulk-edit several posts)

I checked that with older versions: Until WordPress 6.2.3 it was possible to publish a post with Quick-Edit and keep my given publishing date. It also worked when bulk-editing several posts.

I think this might be a bug, maybe somehow related to the fixed ticket #59125? 
"	snoffel
	38507	Quick Edit: Parent label without input when editing page		Quick/Bulk Edit		normal	normal	Future Release	defect (bug)	new	has-patch	2016-10-26T07:53:42Z	2025-07-07T08:00:49Z	"Noticed while working on #18375.

To reproduce:

1. Delete all pages
2. Create a new page, save as Draft
3. Click Quick Edit or Bulk Edit
4. Notice a 'Parent' label without any dropdown

It might make sense to always use 'show_option_none' in `wp_dropdown_pages()`, even when there are no pages. However, that might lead to data loss when a parent ID is set but the page does not exist anymore. Instead, the 'Parent' label could be hidden.

Screenshot:

[[Image(https://cldup.com/tUquX3xYvS.png)]]
"	swissspidy
	15981	Quick edit (and other actions) need to cancel AJAX actions	garyc40	Quick/Bulk Edit	3.1	low	normal	Future Release	defect (bug)	assigned	has-patch	2010-12-26T05:17:36Z	2026-04-10T12:18:10Z	"Right after you click to paginate, sort or try to search something, you may be inclined to click another link on the page. This happens often when I'm browsing, and on a server with a relatively slow AJAX round trip, it can happen quite commonly.

Problem: If you open Quick Edit, then the ajax results should noop. There might be other actions, but this one in particular does not lead to another page (which obviously would kill the ajax).

The reverse is also an issue. You can search, paginate, or sort when Quick Edit is open, and you lose your edit. This might be bad when quick editing a comment, as you could be losing actual content. Searching and paginating might be explicit actions, but it's not difficult to accidentally click a th and trigger a sort, especially if the first row's quick edit (or bulk edit) is open.

I'm not sure what to do here, other than a JS popup for any time a Quick/Bulk Edit is open, asking you if you want to lose your changes.

So again, two things:

 - Kill the AJAX action if Quick Edit is opened. I would consider this lower priority.

 - 'Lose your changes' confirmation for quick edit and bulk edit before an AJAX action. (We can probably fire the AJAX action and trigger the alert simultaneously, but delay processing the results until the confirm() is true.)"	nacin
	57753	Quickedit characters on date fields		Quick/Bulk Edit	6.1.1	normal	trivial	Awaiting Review	defect (bug)	new		2023-02-17T09:45:45Z	2023-02-22T20:51:17Z	"I know this isn't a massive issue as content editors should use their common sense, but it seems like a user can enter random characters into the date/times via quick edits

- Select a post
- Press ‘Quick Edit’
- Try to insert letters, special characters in the ‘year’, ‘month’, ‘hour’, ‘minutes’ fields 
- Press ‘Enter’

"	garbagedisco
	54720	WP_List_Table Inside Metabox With Bulk Actions Not Working on Submit		Quick/Bulk Edit	5.8.2	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-01-03T11:40:53Z	2025-09-13T10:04:21Z	"I'm trying to display a WP_List_table inside a metabox. The metabox is for questions which are from assessment_question custom post type.The metabox is being displayed on an other custom post type 'cs_questionnaire'. The table columns display some data taken from questions. Also I am using bulk actions to link questions to a questionnaire.

What's happening is that it all looks fine until I click the Publish/Update button on the custom post type edit screen. If the WP_List_Table has bulk actions it will redirect back to the /wp-admin/edit.php page, if I remove the bulk actions then it Works fine. And in both cases, the nonce stays the same and no extra nonce is created.

I've whole code below. I have already overridden the display_tablenav function by commenting the nonce generating code. It stops working when I provide bulk actions else it works fine with the following code.

{{{#!php
<?php
/**
 * Generates The User Grade Listing for Admin
 */
if ( ! class_exists( 'WP_List_Table' ) ) {
    require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
}


class Class_Conditional_Shortcode_Questions_Listing extends WP_List_Table {
    // define dataset for WP_List_Table => data

    /** Class constructor */
    public function __construct() {

        parent::__construct(
            array(
                'singular' => __( 'Question', 'conditional-shortcode' ), // singular name of the listed records
                'plural'   => __( 'Questions', 'conditional-shortcode' ), // plural name of the listed records
                'ajax'     => false, // does this table support ajax?
            )
        );
    }


    /**
     * Function to filter data based on order , order_by & searched items
     *
     * @param string $orderby
     * @param string $order
     * @param string $search_term
     * @return array $users_array()
     */
    public function list_table_data_fun( $orderby = '', $order = '', $search_term = '' ) {

        $args            = array();
        $questions_array = array();
        $questions       = '';
        $flag            = false;
        if ( ! empty( $search_term ) ) {

            $args = array(
                'fields'         => 'ids',
                'orderby'        => $orderby,
                'order'          => $order,
                'search'         => intval( sanitize_text_field( $_REQUEST['s'] ) ),
                'post_type'      => 'assessment_question',
                'posts_per_page' => -1,
            );
        } else {
            if ( $order == 'asc' && $orderby == 'id' ) {
                $args = array(

                    'orderby'        => 'ID',
                    'order'          => 'ASC',
                    'fields'         => 'ids',
                    'post_type'      => 'assessment_question',
                    'posts_per_page' => -1,
                );
            } elseif ( $order == 'desc' && $orderby == 'id' ) {
                    $args = array(
                        'orderby'        => 'ID',
                        'order'          => 'DESC',
                        'fields'         => 'ids',
                        'post_type'      => 'assessment_question',
                        'posts_per_page' => -1,
                    );

            } elseif ( $order == 'desc' && $orderby == 'title' ) {
                    $args = array(
                        'orderby'        => 'name',
                        'order'          => 'DESC',
                        'fields'         => 'ids',
                        'post_type'      => 'assessment_question',
                        'posts_per_page' => -1,
                    );
            } elseif ( $order == 'asc' && $orderby == 'title' ) {
                $args = array(
                    'orderby'        => 'name',
                    'order'          => 'ASC',
                    'fields'         => 'ids',
                    'post_type'      => 'assessment_question',
                    'posts_per_page' => -1,
                );
            } else {
                $args = array(
                    'orderby'        => 'ID',
                    'order'          => 'DESC',
                    'fields'         => 'ids',
                    'post_type'      => 'assessment_question',
                    'posts_per_page' => -1,
                );
                $flag = true;
            }
        }
        $questions = get_transient( 'pd_questions' );
        if ( $flag == false ) {
            $questions = get_posts( $args );
        } elseif ( $flag == true && ! $questions ) {
            $questions = get_posts( $args );
            set_transient( 'pd_questions', $questions, 1 * DAY_IN_SECONDS );
        }
        if ( count( $questions ) > 0 ) {
            foreach ( $questions as $question_id ) {
                $question          = get_post_meta( $question_id ?? 0, CONDITIONAL_SHORTCODE_ASSESSMENT_QUESTION_META, true )['question'] ?? 'NA';
                $questions_array[] = array(
                    'id'       => $question_id,
                    'title'    => '<b>' . get_the_title( $question_id ) . '</b>',
                    'question' => $question,
                );

            }
        }

        return $questions_array;
    }
    // prepare_items
    public function prepare_items() {

        $orderby = sanitize_text_field( isset( $_GET['orderby'] ) ? trim( $_GET['orderby'] ) : '' );
        $order   = sanitize_text_field( isset( $_GET['order'] ) ? trim( $_GET['order'] ) : '' );

        $search_term = sanitize_text_field( isset( $_POST['s'] ) ? trim( $_POST['s'] ) : '' );
        if ( $search_term == '' ) {

            $search_term = sanitize_text_field( isset( $_GET['s'] ) ? trim( $_GET['s'] ) : '' );
        }

        $datas = $this->list_table_data_fun( $orderby, $order, $search_term );

        $per_page     = 30;
        $current_page = $this->get_pagenum();
        $total_items  = count( $datas );

        $this->set_pagination_args(
            array(
                'total_items' => $total_items,
                'per_page'    => $per_page,
            )
        );

        $this->items = array_slice( $datas, ( ( $current_page - 1 ) * $per_page ), $per_page );

        $columns  = $this->get_columns();
        $hidden   = $this->get_hidden_columns();
        $sortable = $this->get_sortable_columns();

        $this->_column_headers = array( $columns, $hidden, $sortable );
        $this->process_bulk_action();
    }

    public function get_bulk_actions() {

        return array(
            'add_questions'    => __( 'Add Questions', 'conditional-shortcode' ),
            'remove_questions' => __( 'Remove Questions', 'conditional-shortcode' ),
        );

    }
        // get_columns
    public function get_columns() {

        $columns = array(
            'cb'       => '<input type=""checkbox"" />',
            'id'       => __( 'ID', 'conditional-shortcode' ),
            'title'    => __( 'Title', 'conditional-shortcode' ),
            'question' => __( 'Questions', 'conditional-shortcode' ),
            'action'   => __( 'Action', 'conditional-shortcode' ),
        );

        return $columns;
    }

    public function get_hidden_columns() {
        return array( '' );
    }

    public function get_sortable_columns() {
        return array(
            'title' => array( 'title', true ),
            'id'    => array( 'id', true ),
        );

    }

    /**
     * Generate the table navigation above or below the table.
     *
     * @since 3.1.0
     * @access protected
     *
     * @param string $which
     */
    protected function display_tablenav( $which ) {

        // REMOVED NONCE -- INTERFERING WITH SAVING POSTS ON METABOXES
        // Add better detection if this class is used on meta box or not.
        /*
        if ( 'top' == $which ) {
            wp_nonce_field( 'bulk-' . $this->_args['plural'] );
        }
        */
    
        ?>
        <div class=""tablenav <?php echo esc_attr( $which ); ?>"">
    
            <div class=""alignleft actions bulkactions"">
                <?php $this->bulk_actions( $which ); ?>
            </div>
            <?php
            $this->extra_tablenav( $which );
            $this->pagination( $which );
            ?>
    
            <br class=""clear""/>
        </div>
        <?php
    }

    // column_default
    public function column_default( $item, $column_name ) {
        $post_id = get_the_ID();
        switch ( $column_name ) {
            case 'cb':
            case 'id':
            case 'title':
            case 'question':
                return $item[ $column_name ];
            case 'action':
                return '<a href=""?post=' . $post_id . '&action=edit&action1=add_question&question_id=' . $item['id'] . '&questionnaire_id=' . $post_id . '"">Add Question</a>';
            default:
                return 'no value';

        }

    }

    public function column_title( $item ) {
        $post_id = get_the_ID();
        $action  = array(
            'edit' => sprintf( '<a href=""?post=%d&action=%s&action1=%s&question_id=%d&questionnaire_id=%d"">Add Question</a>', $post_id, 'edit', 'add_question', $item['id'], $post_id ),
        );
        return sprintf( '%1$s %2$s', $item['title'], $this->row_actions( $action ) );
    }

    function column_cb( $item ) {
        return sprintf(
            '<input type=""checkbox"" name=""add-questions[]"" value=""%d"" />',
            $item['id']
        );
    }

    function no_items() {
        esc_html_e( 'No Questions Found.', 'conditional-shortcode' );
    }

    public function process_bulk_action() {
        
        // security check!
        if ( isset( $_POST['_wpnonce'] ) && ! empty( $_POST['_wpnonce'] ) ) {

            $nonce  = filter_input( INPUT_POST, '_wpnonce', FILTER_SANITIZE_STRING );
            $action = 'bulk-' . $this->_args['plural'];

            if ( ! wp_verify_nonce( $nonce, $action ) ) {
                wp_die( 'Nope! Security check failed!' );
            }
        }

        $action = $this->current_action();

        switch ( $action ) {

            case 'delete_questions':
                wp_die( 'Delete something' );
                break;

            case 'add_questions':
                wp_die( 'Save something' );
                break;

            default:
                // do nothing or something else
                return;
                break;
        }
        wp_redirect( esc_url( add_query_arg() ) );
        exit;
        return;
    }

}

/**
 * Shows the List table for all questions.
 *
 * @return void
 */
function conditional_shortcode_questions_list_table_layout() {
    $table = new Class_Conditional_Shortcode_Questions_Listing();

    printf( '<div class=""wrap"" id=""wpse-list-table""><h2>%s</h2>', __( '', 'conditional-shortcode' ) );

    echo '<form id=""wpse-list-table-form"" method=""post"">';

    $page  = filter_input( INPUT_GET, 'page', FILTER_SANITIZE_STRIPPED );
    $paged = filter_input( INPUT_GET, 'paged', FILTER_SANITIZE_NUMBER_INT );

    printf( '<input type=""hidden"" name=""page"" value=""%s"" />', $page );
    printf( '<input type=""hidden"" name=""paged"" value=""%d"" />', $paged );

    $table->prepare_items(); // this will prepare the items AND process the bulk actions
    $table->search_box( __( 'Search question by id' ), 'conditional-shortcode' ); // Needs To be called after $myRequestTable->prepare_items()
    $table->display();

    echo '</form>';

    echo '</div>';

}

conditional_shortcode_questions_list_table_layout();
}}}
I was able to resolve this issue by changing the value of name attribute of bulk actions select field. Like from name to names. What I think the issue could be is when here the name=""action"" for this select and it has some value xyz on the other side WordPress save post looks for action to be equal to edit.
Can we provide a way of changing this name attributes value either by providing a filter or by changing it. But I think changing name attribute would require a lot of other code changes so its better to provide a filter for custom use. Or add a comment on top so someone else using WP LIST Table in a metabox must override this function with custom value to name attribute.
For clarity I changed 
This echo '<select name=""action' . $two . '"" id=""bulk-action-selector-' . esc_attr( $which ) . ""\"">\n"";

To this echo '<select name=""actions' . $two . '"" id=""bulk-action-selector-' . esc_attr( $which ) . ""\"">\n"";
Thanks!

"	muhammadfaizanhaidar
	63198	Post Quick Edit section Date and Author Stylings	audrasjb	Quick/Bulk Edit		normal	normal	Awaiting Review	enhancement	reviewing	has-patch	2025-03-29T15:22:03Z	2025-08-31T10:39:17Z	"In the Post list page, and inside the quick edit, the time in the date part doesn't have the appropriate space in responsive.

Also when we hover even outside part of the Author part still the dropdown get focused."	levinbaria
	64541	In GET requests, interfaces containing the `search` parameter can be vulnerable to logic errors triggered by the input `%2500`.		REST API	6.9	normal	major	Awaiting Review	defect (bug)	new		2026-01-22T13:57:31Z	2026-01-22T15:33:46Z	"The returned result is incorrect.

=== Detailed Interaction Log ===
{{{
Operation ID: GET_/tags

--- API Operation ---
Endpoint: /tags
Method: GET

--- API Parameters ---
Path Parameters:
  <none>
Query Parameters:
  - page =  (type: integer)
  - slug =  (type: string)
  - order =  (type: string)
  - exclude =  (type: array)
  - hide_empty =  (type: boolean)
  - post =  (type: integer)
  - context =  (type: string)
  - per_page = per_page=100 (type: integer)
  - search = search=%2500 (type: string)
  - orderby =  (type: string)
  - include =  (type: array)
Request Body Parameters:
  <none>

--- API Request ---
Headers: Accept: application/json
Authorization: ██

Body: <null>

--- API Response ---
Status Code: 200
Headers: Date: Thu, 22 Jan 2026 12:08:04 GMT
Server: Apache/2.4.62 (Debian)
X-Powered-By: PHP/8.2.27
X-Robots-Tag: noindex
Link: <http://localhost/wp-json/>; rel=""https://api.w.org/""
X-Content-Type-Options: nosniff
Access-Control-Expose-Headers: X-WP-Total, X-WP-TotalPages, Link
Access-Control-Allow-Headers: Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type
X-WP-Total: 1
X-WP-TotalPages: 1
Allow: GET, POST
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0, no-store, private
Content-Length: 685
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/json; charset=UTF-8

Body:
[{""id"":259,""count"":0,""description"":"""",""link"":""http:\/\/localhost\/tag\/misconceptions-tetranitromethane-overbears-nanga-n\/"",""name"":""0012 4819961"",""slug"":""misconceptions-tetranitromethane-overbears-nanga-n"",""taxonomy"":""post_tag"",""meta"":[],""_links"":{""self"":[{""href"":""http:\/\/localhost\/wp-json\/wp\/v2\/tags\/259"",""targetHints"":{""allow"":[""GET"",""POST"",""PUT"",""PATCH"",""DELETE""]}}],""collection"":[{""href"":""http:\/\/localhost\/wp-json\/wp\/v2\/tags""}],""about"":[{""href"":""http:\/\/localhost\/wp-json\/wp\/v2\/taxonomies\/post_tag""}],""wp:post_type"":[{""href"":""http:\/\/localhost\/wp-json\/wp\/v2\/posts?tags=259""}],""curies"":[{""name"":""wp"",""href"":""https:\/\/api.w.org\/{rel}"",""templated"":true}]}}]
}}}"	nefelibata
	64168	Inaccurate JSON schema for template-parts endpoint		REST API	5.8	normal	normal	Future Release	defect (bug)	new	has-patch	2025-10-29T12:59:11Z	2026-08-28T04:51:47Z	"The schema provided by the `wp/v2/template-parts` REST API endpoint has some inaccuracies:

1. The `origin` property can be `null` as well as a string. This property maps directly to `WP_Block_Template::origin` which is `string|null`.
2. The `modified` property can be `false` as well as a date-time string.


Both of these properties can be seen with null/false values by performing an authenticated request to `/wp/v2/template-parts` on a freshly installed vanilla WordPress site.

Any updates will need unit test coverage.

Here's an untested update to the `modified` property to replace its type and format.

{{{
'oneOf' => array(
	array(
		'type'   => 'string',
		'format' => 'date-time'
	),
	array(
		'type' => 'boolean',
		'enum' => array( false ),
	)
),
}}}
"	johnbillion
	66652	Lack of type checking in posts API can trigger fatal error		REST API	7.1.4	normal	normal	Awaiting Review	defect (bug)	new		2026-11-10T16:48:54Z	2026-11-10T16:48:54Z	"An attacker is triggering fatal errors on one of our sites using a mechanism that can be reproduced with:

{{{
curl -v -X POST -d ""template[]="" ""http://localhost/wp-json/wp/v2/posts""
}}}

{{{
PHP Fatal error:  Uncaught TypeError: Cannot access offset of type array in isset or empty in /var/www/html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1663
 Stack trace:
 #0 /var/www/html/wp-includes/rest-api/class-wp-rest-request.php(948): WP_REST_Posts_Controller->check_template()
 #1 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1115): WP_REST_Request->has_valid_params()
 #2 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(441): WP_REST_Server->dispatch()
 #3 /var/www/html/wp-includes/rest-api.php(488): WP_REST_Server->serve_request()
 #4 /var/www/html/wp-includes/class-wp-hook.php(353): rest_api_loaded()
 #5 /var/www/html/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters()
 #6 /var/www/html/wp-includes/plugin.php(571): WP_Hook->do_action()
 #7 /var/www/html/wp-includes/class-wp.php(418): do_action_ref_array()
 #8 /var/www/html/wp-includes/class-wp.php(822): WP->parse_request()
 #9 /var/www/html/wp-includes/functions.php(1352): WP->main()
 #10 /var/www/html/wp-blog-header.php(16): wp()
 #11 /var/www/html/index.php(17): require('...')
 #12 {main}
   thrown in /var/www/html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php on line 1663
}}}


A possible fix is to use is_string()

{{{
--- wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php.dist      2026-11-10 10:26:33.000000000 +0000
+++ wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php   2026-11-10 16:43:27.490236201 +0000
@@ -1660,7 +1660,7 @@
                // If this is a create request, get_post() will return null and wp theme will fallback to the passed post type.
                $allowed_templates = wp_get_theme()->get_page_templates( $post, $this->post_type );

-               if ( isset( $allowed_templates[ $template ] ) ) {
+               if ( is_string( $template ) && isset( $allowed_templates[ $template ] ) ) {
                        return true;
                }
}}}

"	leedxw
	53372	Loose type check against dates in rest_validate_value_from_schema causes invalidation for valid timestamp		REST API		normal	minor	Future Release	defect (bug)	new	close	2021-06-09T18:51:41Z	2025-02-25T15:47:47Z	"When validating dates, `rest_validate_value_from_schema` assumes a falsy return value from `rest_parse_date` always means that the date is invalid (see [wp-includes/rest-api.php@L2138](https://github.com/WordPress/wordpress-develop/blob/5.7/src/wp-includes/rest-api.php#L2138). This is correct in all but one case (to my knowledge). 

A perfectly valid date would be `1970-01-01 00:00:00`. However, since that date would produce a return value from `rest_parse_date` of `0`, `rest_validate_value_from_schema` assumes it is invalid.

Since `rest_parse_date` returns the return value of `strtotime`, checking that the return value is `false` — rather than falsy — would be sufficient to resolve."	jonmcpartland
	66374	Media endpoint returns 500 when an upload is rejected for a client reason		REST API	4.7	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-23T23:00:48Z	2026-10-29T08:25:07Z	"When `wp_handle_upload()` or `wp_handle_sideload()` rejects a file, `WP_REST_Attachments_Controller` returns status 500 whatever the reason:

 * `upload_from_file()`: `rest_upload_unknown_error`, 500
 * `upload_from_data()`: `rest_upload_sideload_error`, 500

Most of these rejections are caused by the request, not the server:

 * a file type the site does not allow,
 * an empty or partial file,
 * a file over `upload_max_filesize`,
 * a file a plugin rejected in `wp_handle_upload_prefilter` (size, dimension and naming policy plugins do this).

Other request checks in the same controller already return 400 (`rest_upload_no_data`, the multisite checks in `check_upload_size()`). The URL sideload path added in 7.2 also returns 400 for a disallowed type, by comparing the translated message string.

'''Why this matters more in 7.2:''' since [64588], uploads from the Media Library grid, Add New Media File and the media modal go through `POST /wp/v2/media` instead of `async-upload.php`. So every upload a plugin refuses, and every disallowed type, now shows up as an HTTP 500:

 * in server access logs,
 * in APM and uptime error rates,
 * in the browser console (""Failed to load resource: the server responded with a status of 500"").

On 7.1 the same refusal from `async-upload.php` was a 200 with an error message.

=== Steps to reproduce (7.2-beta1-64675) ===

 1. Add this mu-plugin:
{{{#!php
<?php
add_filter( 'wp_handle_upload_prefilter', function ( $file ) {
	if ( false !== strpos( $file['name'], 'reject' ) ) {
		$file['error'] = 'Rejected by a plugin.';
	}
	return $file;
} );
}}}
 2. Go to Media > Add New Media File and upload `reject-me.jpg`. The UI shows ""Rejected by a plugin."", but the request returns 500.

The same with an application password and curl:

||= Upload =||= Before =||= After =||
|| valid JPEG || 201 || 201 ||
|| `reject-me.jpg` (prefilter), multipart || 500 || 400 ||
|| `vector.svg` (type not allowed), multipart || 500 || 400 ||
|| `shell.php` (type not allowed), multipart || 500 || 400 ||
|| empty file, multipart || 500 || 400 ||
|| `reject-me.jpg`, raw body (sideload) || 500 || 400 ||
|| `vector.svg`, raw body (sideload) || 500 || 400 ||

Error codes and messages stay the same; only the status changes.

=== Patch ===

The controller cannot tell the reasons apart today: every failure reaches it as `array( 'error' => $message )`. The patch:

 1. `_wp_handle_upload()` passes an error code as a third argument to the upload error handler. The default `wp_handle_upload_error()` returns it as `error_code`. The codes:
   * `upload_prefilter_error`
   * `upload_invalid_form`
   * `upload_err_ini_size`, `upload_err_form_size`, `upload_err_partial`, `upload_err_no_file`, `upload_err_no_tmp_dir`, `upload_err_cant_write`, `upload_err_extension`, `upload_php_error`
   * `upload_failed_test`
   * `upload_empty_file`
   * `upload_invalid_file_type`
   * `upload_dir_error`
   * `upload_move_failed`
 2. A new `WP_REST_Attachments_Controller::get_upload_error_status()` returns 400 for the client errors and 500 for everything else, including no tmp dir, can't write, an uploads directory that can't be created, a file that can't be moved, and any error without a code.
 3. The URL sideload path checks `upload_invalid_file_type` instead of comparing the translated message.

=== Backward compatibility ===

 * The `error` key and every REST error code are unchanged. `error_code` is a new, optional key.
 * A custom `upload_error_handler` now receives a third argument. Userland functions ignore extra arguments. Only an internal PHP function used as the handler with a fixed argument count would complain, which seems unlikely.
 * A plugin that defines its own `wp_handle_upload_error()` before core does returns no `error_code`, so its errors keep the 500 status. Nothing changes for it.
 * Clients that treat 5xx as ""retry"" will no longer retry rejected uploads, which is the point. The media upload queue in `@wordpress/upload-media` decides retries from the error message, not the status, so it is unaffected. The Media Library chooses its text from the error code and message, so the UI is unchanged.

=== Open questions ===

 * Should the size errors (`upload_err_ini_size`, `upload_err_form_size`) be 413 instead of 400?
 * Should the type error use `rest_upload_invalid_file_type` everywhere, like the URL sideload path? I left the codes alone to keep the change small.

=== Tests ===

 * REST: a prefilter rejection, a disallowed type and a raw-body prefilter rejection return 400. An uploads directory that can't be created and a destination that can't be written return 500.
 * `wp_handle_sideload()` returns the right `error_code` for prefilter, empty file, type, uploads dir and move failures.
 * Eight of the ten new tests fail without the change. The two 500 tests guard the existing behavior.
 * `WP_Test_REST_Attachments_Controller`, `Tests_Admin_IncludesFile`, `Tests_Media` and `Tests_File`: 966 tests pass. The 20 warnings come from `Tests_Filesystem_WpOpcacheInvalidateDirectory` and are the same on trunk.
 * phpcs and PHPStan are clean on the changed files.

Use of AI tools: I used Claude Code to write the patch and tests, and draft this ticket. I reviewed the code and ran the tests and the reproduction myself."	aryanjasala
	66351	Notes: A reply or status change to a deleted note is saved and lost		REST API	6.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-20T14:44:35Z	2026-10-20T16:37:28Z	"Originally reported in Gutenberg: https://github.com/WordPress/gutenberg/issues/80678 | Reported by @mcliwanow

=== Problem ===

Two editor sessions can disagree about whether a note still exists. When one session deletes a note while another still has it open, the second session can keep changing it, and the REST API accepts every change:

 * '''Replying''' to the deleted note succeeds and the editor announces ""Reply added."", but the reply is stored under the trashed note and is no longer shown anywhere in the editor.
 * '''Reopen & Reply''' on a resolved note sets the note's status, which moves it out of the trash without the replies that were trashed along with it, so the thread comes back with only the new reply.
 * Resolving or editing a deleted note is accepted in the same way.

This is distinct from #64240, which trashes the replies that already exist when a top-level note is trashed. Here, the change arrives after the delete has completed.

`WP_REST_Comments_Controller::create_item()` already rejects a reaction whose parent note is trashed or spam (""A reaction cannot be added to a trashed or spam note.""), but not a note reply. `update_item()` changes the status or content of a trashed note like any other comment.

=== Steps to reproduce ===

In the editor:

 1. Sign the same administrator into two browser sessions, A and B (for example a normal and a private window).
 2. In A, create a post, add a Paragraph, add a note to it, and save the draft.
 3. Open the same post in B and open the note.
 4. In A, select the note and type a reply, but don't submit it.
 5. In B, delete the note from its Actions menu and wait for ""Note deleted."".
 6. In A, without reloading, click Reply.

Result: ""Reply added."" After a reload, the reply is not shown, but it is stored with the deleted note as its parent.

For Reopen & Reply, resolve the note in A before step 4. The button then reads ""Reopen & Reply"", and clicking it brings back the deleted note as open, while its earlier replies stay in the trash.

The same thing from the browser console, in a single session, on a saved draft in the editor:

{{{#!js
( async () => {
	const post = wp.data.select( 'core/editor' ).getCurrentPostId();
	const api = ( path, method, data ) => wp.apiFetch( { path, method, data } );

	const note = await api( '/wp/v2/comments', 'POST', { post, content: 'Note', status: 'hold', type: 'note' } );
	await api( `/wp/v2/comments/${ note.id }`, 'DELETE' ); // Moves the note to the trash.

	// 1. A reply to the deleted note is accepted.
	const reply = await api( '/wp/v2/comments', 'POST', { post, content: 'Reply', status: 'hold', type: 'note', parent: note.id } );
	console.log( 'Reply stored under trashed note:', reply.id, 'parent', reply.parent );

	// 2. Reopening the deleted note moves it out of the trash.
	const reopened = await api( `/wp/v2/comments/${ note.id }`, 'POST', { status: 'hold' } );
	console.log( 'Deleted note is now:', reopened.status );
} )();
}}}

=== Expected ===

 * Creating a note reply whose parent is trashed, spam, or no longer exists returns an error (for example `400 rest_comment_invalid_parent`), as it already does for reactions.
 * Any change to a trashed or spam note other than restoring it (`status: untrash` or `unspam`) returns an error, so the editor can tell the user instead of losing their change. Undo in the editor uses `untrash`, so it keeps working.

The editor already shows REST error messages in a snackbar and keeps the typed text when a save fails, so no client changes are needed.

=== Fix ===

A fix for the Gutenberg plugin's WordPress 7.2 compat controller, with tests, is in https://github.com/WordPress/gutenberg/pull/85202. A Core patch with the same changes and PHPUnit tests will follow on this ticket. Suggesting the 7.2 milestone, since 7.2 also adds emoji reactions to notes in the same controller.
"	pranjalpratapsingh
	65680	Permission Check Mismatch Due to Unnormalized Ability Input		REST API	6.9	normal	normal	Future Release	defect (bug)	new		2026-07-21T10:29:49Z	2026-08-11T14:39:54Z	"While reviewing the WP_REST_Abilities_V1_Run_Controller code, I noticed that the request input is handled differently during the permission check and the actual execution.

The check_ability_permissions() method normalizes the input before validating it and checking permissions. However, execute_ability() reads the request input again and passes it directly to execute() without normalizing it first.

Because of this, both methods can end up working with different input values. 
For example, if an ability has default values defined in its input schema and the request does not include any input, the permission check uses the normalized default values, while execute() receives null.

I believe both permission checking and execution should use the same normalized input to ensure consistent behavior and avoid unexpected issues during execution."	utsav72640
	53242	Potential private information leak in REST API doing it wrong		REST API		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-05-21T01:40:07Z	2021-05-21T15:58:16Z	"In the REST API, when I set `show_in_index` to false, I expect that endpoint to not be shown to people without knowledge of it.

The problem is, if that endpoint does not have `permission_callback` setup, then `\rest_handle_doing_it_wrong` can leak the existence of that endpoint in the header if WP_DEBUG has been set.

I would expect one of two things to happen, either:

A) I only receive the `X-WP-DoingItWrong` header for the endpoint that I'm accessing; or
B) I only receive the `X-WP-DoingItWrong` header for endpoints that are visible in `show_in_index`, or accessed directly.

I'm partial to the former."	anubisthejackle
	55128	REST API /media leaves holes in the result, making it virtually impossible to paginate through them		REST API	5.9	normal	normal	Awaiting Review	defect (bug)	new		2022-02-09T18:09:03Z	2022-02-09T18:09:03Z	"A request to the REST API for say /media?per_page=20 can unexpectedly return any number of results up to 20, including an empty array when there are more pages to follow.

This happens when some of the media library entries are attached to unpublished posts, and the media were added in the post, not directly to the media library. 

Now it may be reasonable to omit these when not authenticated, but not by post-processing the array after it has been fetched from the database, as seems to be happening currently.

Doing that makes it extremely difficult to paginate through them, or to choose an appropriate page size. This is compounded by the fact that it is more likely the missing images will be near the beginning, as those are the ones less likely to have been published yet.

Consider just displaying a matrix of the thumbnails, as obtained from the API, 20 at a time. So you ask for a page of 20 and get 5. OK, let's get another page before returning it to the client: you get 18 this time, so you take the first 15 of those and along with the first 5 give those to the client. The user clicks ""show more"". Where do I start? I can't start on page 3 because there were some left over on page 2. But I have no idea where the gaps are so I can't set an appropriate offset - offset apparently _includes_ the missing entries! And there is no information about where the missing entries might be. Basically using offset is not possible. 

The only solution is to start from the beginning every time, and then omit the first however many results already delivered to the client. This defeats the point of pagination, and gets slower and slower as they ask for more.

I could provide randomly more than they requested, up to some maximum (set as per_page), and work entirely in pages, noting the page number highwater mark on each request, each time fetching as many pages as needed to get some minimum number of images. This doesn't require starting again each time, but can also result in hundreds of API requests retrieving empty arrays each time if there are many unpublished images, which is also very slow. It also makes it impossible to work to a UI where the user specifies how many to retrieve at once.

Or I could work with page_size = 1, which means I can use page number where I would have liked to have used offset, but that is also very slow: at least 20 requests, probably many more to skip unpublished images, where I would expect only to need one request.

And it makes it much harder to implement either way, as the obviously intended implementation is to set offset to the currently retrieved images, and a number up to 100 as the page size, and just fetch that page.

"	frankieandshadow
	62671	REST API Plugins Endpoint: Plugins are activated before language packages are installed		REST API	6.7	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-12-10T03:21:57Z	2026-03-03T03:45:19Z	"**Problem**

When using the REST API endpoint to install a plugin and activate it, the plugin is activated before the plugin's languages are installed. This causes that if the plugin is creating some content during activation (i.e., WooCommerce creates a series of pages), this content is created in English instead of following the language setting from WordPress.

**Expected behavior**

When installing and activating a plugin via REST API, the content created by the plugin (i.e. WooCommerce) should be created in the same language as WordPress.

**Request example**


{{{
POST /wp/v2/plugins
{
  ""slug"": ""woocommerce"",
  ""status"": ""active""
}
}}}


**Related code**

https://github.com/WordPress/wordpress-develop/blob/b6f639737c5fa722dd5a80f0ad94e48c67c37ffd/src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php#L364-L402

**Possible solution**

Invert the order of the operations in the highlighted code so languages are installed first and the plugin is activated after."	orballo
	56668	REST API calls are failed when cookies are cleared from the site		REST API	6.0.2	normal	normal	Awaiting Review	defect (bug)	new		2022-09-27T14:46:34Z	2022-09-27T14:46:34Z	"Hi,
REST API calls are failed when the site cookies are cleared from browser console. Manually logging out and Logging in again will fix the issue but WordPress should automatically prompt for login in such cases right ? Please Ignore if I am wrong.

Response from API: 
{{{
{""code"":""rest_cookie_invalid_nonce"",""message"":""Cookie check failed"",""data"":{""status"":403}}
}}}
"	sarathgp
	51909	REST API inconsistencies		REST API	4.8	normal	normal	Awaiting Review	defect (bug)	new		2020-12-01T18:23:49Z	2020-12-01T18:27:23Z	"Changeset [39967] introduced a new behavior in parts of the API.  A request for posts with a page parameter that is out of range results in a status 400 and rest_post_invalid_page_number error response.

This is different behavior than the class-wp-rest-users-controller, which happily returns a status 200 with an empty array, and it always has. Status 200 with an empty array is the more correct behavior, in my opinion.  

A status 400 would be for bad requests, not for valid requests that result in empty results.  Would you return a status 400 for a search filter with no results?  That's conceptually similar to an out-of-range page in the parameters.  Regardless, the most important for developer experience, I think, is stability and consistency.  Unfortunately this change introduced instability (when people upgrade from old versions) and inconsistency (when new developers write clients for the rest api and get different behavior from posts than from users)."	icameron
	56919	REST API term embed 401 - not allowed to view terms for this post		REST API	6.0.3	normal	blocker	Awaiting Review	defect (bug)	new	dev-feedback	2022-10-27T10:30:13Z	2023-10-29T05:52:08Z	"Setup

1. WP 6.0.3
2. CPT attached with multiple taxonomies all of them registered as `show_in_rest` `true`

When calling `GET` at CPT rest endpoint with `&embed=1` the path `_embedded.wp:term` returns 401 json object with error message `Sorry, you are not allowed to view terms for this post`.

This issue is breaking my applications and I had to rollback to `6.0.2`"	prionkor
	56494	REST API: Fix and test rest_default_additional_properties_to_false		REST API	6.0.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-09-02T07:50:35Z	2023-08-09T15:52:23Z	"Currently the rest_default_additional_properties_to_false
- does not support the ""allOf"", ""anyOf"", ""oneOf"" keywords from meta-schema v4, v6, v7
- has no tests

The patch provides both of these.


"	anna.bansaghi
	66409	REST API: Raw-body media upload leaves its temporary file behind when the multisite size check fails		REST API	4.9.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-29T03:12:27Z	2026-10-29T18:32:18Z	"`WP_REST_Attachments_Controller::upload_from_data()` writes the request body to a file created by `wp_tempnam()` and then calls `check_upload_size()`. When that check fails (file too big, not enough upload space, or the user is over quota), the method returns the error without deleting the file:

{{{#!php
$size_check = self::check_upload_size( $file_data );
if ( is_wp_error( $size_check ) ) {
	return $size_check;
}
}}}

So on a multisite network with upload limits enabled, every rejected raw-body upload (`POST /wp/v2/media` with the file as the request body) leaves a copy of its body in the temporary directory. A user who can upload files can repeat this to fill the disk, which is what the quota is meant to prevent.

The same method already deletes the file when `wp_handle_sideload()` fails, and the URL sideload path deletes it after the same `check_upload_size()` failure.

=== Steps to reproduce ===

1. Multisite, Network Settings: enable the upload space check and set ""Max upload file size"" to 1 KB (`fileupload_maxk = 1`, `upload_space_check_disabled = 0`).
2. As a user who can upload files, send a raw-body upload larger than 1 KB:
{{{
curl -u user:application-password -X POST https://example.com/wp-json/wp/v2/media \
  -H 'Content-Type: image/png' \
  -H 'Content-Disposition: attachment; filename=""test.png""' \
  --data-binary @five-kb-file.png
}}}
3. The response is `400 rest_upload_file_too_big`, and `get_temp_dir()` now holds `test-XXXXXX.tmp` with the full body. Each request adds one more.

Reproduced on 7.1.4 (multisite, subdirectory, PHP 8.2); trunk has the same code.

=== Patch ===

Delete the temporary file before returning the size error, plus a test that the file is gone after a rejected upload. PR to follow.

Found with code-intruder, my own static analysis tool, which flags temporary files left behind on an exit path. AI tools (Claude Code) helped confirm and reproduce it; I reviewed and tested the change myself."	ExtremsX
	66377	REST API: Sending null for an unset meta key fails with rest_invalid_stored_value	maxdevagency	REST API		normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2026-10-25T11:39:56Z	2026-10-26T00:02:53Z	"When a single meta key has nothing stored, sending `null` for it (which means ""reset"") fails with a 500 `rest_invalid_stored_value` error if the key's type or schema doesn't accept an empty string. This affects `boolean`, `integer` and `enum` keys. Nothing is stored, so there is nothing to protect, but the request is rejected as if the stored value were invalid.

This also affects a core key: `_wp_note_status` on comments (enum `resolved`/`reopen`, no default) is returned as `null` when unset. Any client that sends the comment's meta back as it received it gets a 500.

=== Cause

In `WP_REST_Meta_Fields::update_value()`, a `null` value for a single key first validates the current value, so that invalid stored data isn't silently deleted:

{{{#!php
$current = get_metadata( $this->get_meta_type(), $object_id, $meta_key, true );

if ( is_wp_error( rest_validate_value_from_schema( $current, $args['schema'] ) ) ) {
        // rest_invalid_stored_value, 500
}
}}}

When no row exists, `get_metadata()` returns `''`, which fails validation for `boolean`, `integer` and `enum` schemas. So the check treats ""nothing stored"" as ""invalid value stored"".

=== Steps to reproduce

Tested on trunk (7.2-beta1), as an administrator, with no `auth_callback`.

 1. Register the keys:
{{{#!php
add_action( 'init', function () {
        register_post_meta( 'post', 'repro_flag', array( 'type' => 'boolean', 'single' => true, 'show_in_rest' => true ) );
        register_post_meta( 'post', 'repro_count', array( 'type' => 'integer', 'single' => true, 'show_in_rest' => true ) );
        register_post_meta( 'post', 'repro_choice', array(
                'type'         => 'string',
                'single'       => true,
                'show_in_rest' => array( 'schema' => array( 'type' => 'string', 'enum' => array( 'a', 'b' ) ) ),
        ) );
        register_post_meta( 'post', 'repro_text', array( 'type' => 'string', 'single' => true, 'show_in_rest' => true ) );
} );
}}}
 2. Create a post without setting any of these keys.
 3. For each key, `POST /wp/v2/posts/<id>` with `{""meta"":{""<key>"":null}}`.

|| Key (nothing stored) || GET returns || POST `null` ||
|| `repro_flag` (boolean) || `false` || 500 `rest_invalid_stored_value` ||
|| `repro_count` (integer) || `0` || 500 `rest_invalid_stored_value` ||
|| `repro_choice` (enum) || `null` || 500 `rest_invalid_stored_value` ||
|| `repro_text` (string) || `""""` || 200 ||

Comments, with only core meta registered:

 1. Create a comment.
 2. `GET /wp/v2/comments/<id>?context=edit` returns `""meta"": {""_wp_note_status"": null}`.
 3. `POST /wp/v2/comments/<id>` with an edited `content` and the `meta` exactly as returned.
 4. The response is 500 `rest_invalid_stored_value` for `_wp_note_status`, but the edited content has already been saved.

=== Expected

If nothing is stored, a `null` reset is a no-op and should succeed. The `rest_invalid_stored_value` protection only makes sense when there is a stored value.

=== Possible fix

Check for a stored row before validating, for example with `get_metadata_raw()`, which returns `null` when no row exists:

{{{#!php
$current = get_metadata_raw( $this->get_meta_type(), $object_id, $meta_key, true );

if ( null !== $current && is_wp_error( rest_validate_value_from_schema( $current, $args['schema'] ) ) ) {
}}}

A stored empty string that fails the schema would still be protected.

=== Related

 * #66329 fixes one way to hit this (revisions returning non-revisioned meta, e.g. `wp_pattern_sync_status`), but not the underlying check.
 * #48426 / PR 14328 moves the ""nothing stored"" early return in `delete_meta_value()` before the authorization check. With this fix, a `null` for an unset protected key would reach that path.
 * #64019 rewords the `rest_invalid_stored_value` messages."	maxdevagency
	65855	REST API: Taxonomy REST bases can overwrite existing post item properties despite conflict warning		REST API		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-12T07:10:13Z	2026-08-12T08:26:46Z	"This is a follow-up to #48401.

#48401 added detection and a `_doing_it_wrong()` warning when a taxonomy REST base conflicts with an existing property of `WP_REST_Posts_Controller`. However, after detecting the conflict, the controller continues processing the taxonomy.

As a result, the conflicting taxonomy can still overwrite an existing post property in the item schema and response, and can also participate in item-level term assignment and REST action links.

== Steps to reproduce ==

Register a taxonomy whose REST base conflicts with an existing post item property:

{{{
register_taxonomy(
'type',
'post',
array(
'show_in_rest' => true,
'show_ui'      => true,
)
);
}}}

Because no explicit `rest_base` is specified, the taxonomy REST base is also `type`.

The posts REST resource already contains a built-in `type` property representing the post type. For a normal post this should be:

{{{
{
""type"": ""post""
}
}}}

The schema for that property is a read-only string.

When `WP_REST_Posts_Controller::get_item_schema()` processes the taxonomy, it detects that `type` already exists and emits the existing `_doing_it_wrong()` warning. Processing nevertheless continues, and the taxonomy schema subsequently replaces the existing `type` property.

The same issue occurs while preparing an item response: the controller first assigns the post type to `type`, but taxonomy processing can subsequently replace that value with taxonomy term IDs.

== Actual behavior ==

The conflict produces a developer warning, but the conflicting taxonomy can still be exposed as if it were a valid post item REST property.

For example, the schema can contain:

{{{
schema.properties.type.type === ""array""
}}}

instead of:

{{{
schema.properties.type.type === ""string""
}}}

and the response can contain:

{{{
post.type === []
}}}

instead of:

{{{
post.type === ""post""
}}}

The conflicting taxonomy may also participate in:

* item-level term assignment;
* term assignment permission checks;
* schema links; and
* `wp:action-assign-*` / `wp:action-create-*` links.

This means the warning added in #48401 detects the collision, but does not prevent the collision from affecting the REST item resource.

== Expected behavior ==

When a taxonomy REST base conflicts with an existing post item property:

* The existing REST property should remain unchanged.
* The conflicting taxonomy should not be exposed as an item property for that controller.
* The taxonomy should not expose assignment/create action links for the conflicting item property.
* The conflicting field should not participate in REST item term writes.
* The existing `_doing_it_wrong()` warning should remain so developers are informed that they need to register a non-conflicting REST base.

The taxonomy itself should remain registered and otherwise usable.

Developers can resolve the REST collision by specifying a safe REST base, for example:

{{{
register_taxonomy(
'type',
'post',
array(
'show_in_rest' => true,
'rest_base'    => 'type_terms',
)
);
}}}

In that case the REST representation can safely contain both properties:

{{{
{
""type"": ""post"",
""type_terms"": []
}
}}}

== Proposed fix ==

Centralize the set of taxonomies that can safely be exposed as properties on the REST item resource.

While the item schema is being built, compare each taxonomy REST base with the existing schema properties.

If a conflict exists:

* Keep the existing `_doing_it_wrong()` warning.
* Exclude the conflicting taxonomy from the set of taxonomies exposed on the item resource.
* Reuse that conflict-free taxonomy set consistently for item schema generation, responses, term writes, assignment permission checks, action links, and schema links.

The conflict-free list should be initialized from the existing schema properties rather than lazily calling `get_item_schema()` from the helper. This is important for subclasses such as `WP_REST_Menu_Items_Controller`, where a lazy schema lookup can introduce recursion through the schema/link call path.

Collection-level taxonomy query behavior is intentionally unchanged.

== Regression testing ==

The issue is reproducible on WordPress development trunk.

Regression coverage verifies that a conflicting taxonomy does not overwrite:

* the existing `type` schema property; and
* the existing `type` response property.

Before the fix, the regression tests fail with:

{{{
Expected: string
Actual: array
}}}

and:

{{{
Expected: post
Actual: array()
}}}

With the proposed fix applied:

{{{
npm run test:php -- --filter taxonomy_name_conflicts
}}}

passes with:

{{{
OK (2 tests, 5 assertions)
}}}

The complete `WP_Test_REST_Posts_Controller` test suite also passes.

The complete `Tests_REST_WpRestMenuItemsController` test suite also passes.

`git diff --check` reports no whitespace errors.

== Related ==

Follow-up to #48401.

That ticket added conflict detection and the `_doing_it_wrong()` warning. This ticket addresses the remaining behavior where the conflicting taxonomy continues to participate in and overwrite parts of the REST item resource after that warning has been issued.
"	wteam
	66136	REST API: batch/v1 fires rest_pre_dispatch with a WP_REST_Request whose route is null		REST API	5.6	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-09-18T07:29:13Z	2026-10-02T19:53:24Z	"`WP_REST_Server::serve_batch_request_v1()` builds each sub-request as

{{{#!php
$parsed_url = wp_parse_url( $args['path'] );

if ( false === $parsed_url ) {
	$requests[] = new WP_Error( 'parse_path_failed', ... );
	continue;
}

$single_request = new WP_REST_Request( $args['method'] ?? 'POST', $parsed_url['path'] );
}}}

`wp_parse_url()` only returns `false` for a URL it cannot parse at all. For a value that parses but has no path component it returns an array **without a `path` key**, e.g.

{{{#!php
wp_parse_url( 'http://host' ); // [ 'scheme' => 'http', 'host' => 'host' ]
wp_parse_url( '?x=1' );        // [ 'query' => 'x=1' ]
}}}

so `$parsed_url['path']` is `null` (with an ""Undefined array key"" warning) and the sub-request is constructed with `$route = null`.

The sub-request then fails `match_request_to_handler()` as expected, but before core rejects it the dispatch loop still runs

{{{#!php
$result = apply_filters( 'rest_pre_dispatch', null, $this, $clean_request );
}}}

on it. Every `rest_pre_dispatch` listener now receives a request whose `get_route()` returns `null`, although the method is documented as `@return string` and the constructor's `$route` as `string`. Any listener that trusts that contract fatals:

 * WooCommerce 11.1.0: `Automattic\WooCommerce\Utilities\RestApiUtil::attach_lazy_loaded_namespace(): Argument #3 ($rest_route) must be of type string, null given`
 * WP-ImmoMakler 5.68.0: `strpos(): Argument #1 ($haystack) must be of type string, null given`

Without such a plugin the request still logs `Warning: Undefined array key ""path""` from `serve_batch_request_v1()`, and the sub-request is rejected with `rest_no_route` (404) instead of the `parse_path_failed` (400) that an unparseable path gets — the two cases are the same thing to the caller and should be reported the same way.

== Steps to reproduce ==

 1. WordPress 7.1, PHP 8.x, WooCommerce active (or any plugin with a typed `rest_pre_dispatch` callback).
 2. Unauthenticated:
{{{
curl -X POST 'https://example.test/?rest_route=/batch/v1' \
     -H 'Content-Type: application/json' \
     -d '{""requests"":[{""path"":""?x=1""}]}'
}}}
 3. Expected: `207 Multi-Status` with a `parse_path_failed` / `rest_no_route` body for the sub-request.
 4. Actual: `500` with `Uncaught TypeError` from the first `rest_pre_dispatch` listener that type-hints the route.

== Proposed fix ==

Treat a path that parses without a path component the same as one that does not parse at all — it can never match a route anyway (patch attached):

{{{#!diff
--- a/src/wp-includes/rest-api/class-wp-rest-server.php
+++ b/src/wp-includes/rest-api/class-wp-rest-server.php
@@ -1809,7 +1809,7 @@ class WP_REST_Server {
 		foreach ( $batch_request['requests'] as $args ) {
 			$parsed_url = wp_parse_url( $args['path'] );
 
-			if ( false === $parsed_url ) {
+			if ( false === $parsed_url || ! isset( $parsed_url['path'] ) ) {
 				$requests[] = new WP_Error( 'parse_path_failed', __( 'Could not parse the path.' ), array( 'status' => 400 ) );
 
 				continue;
}}}

Verified against 7.1: with the patch, `{""path"":""http://host""}`, `{""path"":""?x=1""}` and `{""path"":""http://:""}` all return `207` with a `parse_path_failed` (400) sub-response; a valid path is unaffected. The `$matches`/`$validation` alignment introduced in 6.9.5 / 7.0.2 is preserved because the error is pushed to `$requests` at the same point the existing `false` case is.

A second, independent hardening would be for `rest_pre_dispatch` not to fire for a sub-request that has already failed matching — but that is a behaviour change for listeners, so the patch above is the minimal fix.

For context on why this surfaced now: `/batch/v1` is currently being probed at scale with malformed `path` values, and the variants that parse without a path component produce the 500 above on plugins that trust `get_route()`'s documented type — we saw it on 20+ unrelated, fully patched 7.1 sites in one night. The batch endpoint itself behaves correctly on those requests; this is purely a robustness issue in how the rejected sub-request is handed to filters.

== Tests ==

The attached patch adds `test_batch_v1_path_without_path_component_is_rejected()` to `Tests_REST_Server` with a data provider for `http://host`, `?x=1` and `#top`. It asserts a `207` batch response whose sub-response is `parse_path_failed` (400), and that `rest_pre_dispatch` did not run for the rejected sub-request.

On unpatched trunk (`7.2-alpha-63166`) all three data sets error out with `Undefined array key ""path""` at `class-wp-rest-server.php:1818`; with the patch they pass, and the full `Tests_REST_Server` suite stays green (132 tests).
"	hinnerk
	60599	REST API: rest_filter_response_fields fails with a PHP fatal when a custom API endpoint returns a scalar value.		REST API		normal	normal	Future Release	defect (bug)	new		2024-02-22T09:45:54Z	2026-10-26T16:35:25Z	"The code in `rest_filter_response_fields` seems to only work with arrays. Thus if a given API endpoint returns a scalar value, then querying this endpoint by adding the `_fields` GET parameter will throw a PHP fatal in PHP >= 8.x.

Steps to reproduce it:
Add the following dummy plugin and enable it to a test WP
{{{
alex@wayra time % cat time.php
<?php

/**
 * Plugin Name: Datetime
 */

function my_awesome_func() {
	return date( 'c' );
}
add_action( 'rest_api_init', function () {
	register_rest_route( 'myplugin/v1', '/datetime', array(
		'methods' => 'GET',
		'callback' => 'my_awesome_func',
	) );
} );
{
	""plugins"": [
		"".""
	]
}

alex@wayra time % cat .wp-env.json
{
	""plugins"": [
		"".""
	]
}

alex@wayra time % wp-env start
WordPress development site started at http://localhost:8888/
WordPress test site started at http://localhost:8889/
MySQL is listening on port 32768
MySQL for automated testing is listening on port 32769

 ✔ Done! (in 77s 181ms)

alex@wayra time % curl 'http://localhost:8888/?rest_route=/myplugin/v1/datetime'
""2024-02-22T09:38:36+00:00""%


alex@wayra time % curl 'http://localhost:8888/?rest_route=/myplugin/v1/datetime&_fields=foo'

Fatal error: Uncaught TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, string given in /var/www/html/wp-includes/rest-api.php:869
Stack trace:
#0 /var/www/html/wp-includes/rest-api.php(869): array_intersect_key('2024-02-22T09:3...', Array)
#1 /var/www/html/wp-includes/rest-api.php(928): _rest_array_intersect_key_recursive('2024-02-22T09:3...', Array)
#2 /var/www/html/wp-includes/class-wp-hook.php(324): rest_filter_response_fields(Object(WP_REST_Response), Object(WP_REST_Server), Object(WP_REST_Request))
#3 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Object(WP_REST_Response), Array)
#4 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(454): apply_filters('rest_post_dispa...', Object(WP_REST_Response), Object(WP_REST_Server), Object(WP_REST_Request))
#5 /var/www/html/wp-includes/rest-api.php(424): WP_REST_Server->serve_request('/myplugin/v1/da...')
#6 /var/www/html/wp-includes/class-wp-hook.php(324): rest_api_loaded(Object(WP))
#7 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#8 /var/www/html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#9 /var/www/html/wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array)
#10 /var/www/html/wp-includes/class-wp.php(813): WP->parse_request('')
#11 /var/www/html/wp-includes/functions.php(1336): WP->main('')
#12 /var/www/html/wp-blog-header.php(16): wp()
#13 /var/www/html/index.php(17): require('/var/www/html/w...')
#14 {main}
  thrown in /var/www/html/wp-includes/rest-api.php on line 869
}}}"	xknown
	58710	REST: media (images) deleted or replaced are returned by their new id when requested by their old id		REST API	6.2.2	normal	major	Awaiting Review	defect (bug)	new		2023-07-04T12:08:44Z	2023-10-16T14:53:56Z	"An article has got a featured image assigned (id X).

The featured image is replaced* using Media library (id Y).

REST API for article delivers old image id (X).

Upon requesting fields (id, src) for old image id (X) from REST API media endpoint, the field id returned is the new image id (Y).

I expect the requested id and the returned id to match.

Alternatively I like to be able to get to know which id returned correlates to which id requested.

Example: https://deananddavid.com/wp-json/wp/v2/media/?include=77793&_fields=id,source_url&per_page=100

""include"" as per documentation requests certain ids. Notice the returned id is 77795 (5 instead 3 at last digit).


'* the replacement was done by an editor. I don't know the exact procedure she/he took."	vialars
	57088	Rest API improve time response with cache		REST API		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-11-12T12:29:53Z	2022-11-15T11:36:11Z	"Hi, again :)

I'm developing wordpress websites but only using the rest api, as Headless CMS.

I've blocked the frontend, and created custom endpoints to be consumed by a React application.

So, more than a year pass and I'm consumed by an issue on my websites, the rest api it's little slow like 300ms-1000ms of time response this is a lot.

As I know, I can cache the responses using transient api, I've tried that, but without success.

What is the best solution to avoid database access? 

1. Should I create a wp-content/object-cache.php and cache the responses of endpoint?

2.Advanced-cache.php can help me to improve the response time of rest api?

3. do we have a method/hook/filter to check if cache exist before WordPress load everything /plugins/themes etc...? For example on https://developer.wordpress.org/reference/hooks/request/ and this hook, returns the response from cache without having to load every file from WordPress.

I tried some cache plugins, but doesn't improve the speed?


Any example to do this correctly, to improve the rest api time and database overload.


Thanks  
"	emanuelx
	60349	Rest API media upload utf8 urlencoded filename not decoded on server		REST API	6.4.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-01-25T18:34:50Z	2024-01-25T18:34:50Z	"Files uploaded with the rest api media endpoint, containing utf8 characters in the filename, does not get urldecoded if the filename is urlencoded.

Example:

{{{
Content-Disposition: attachment; filename=\""My-nice-filename.jpg\""
}}}


The file is correctly called My-nice-filename.jpg on the server.

{{{
Content-Disposition: attachment; filename=\""%D1%82%D0%B0%D1%82%D0%B0%D1%82%D0%B0.jpg\""
}}}

File named татата.jpg ends incorrectly up as D182D0B0D182D0B0D182D0B0.jpg on the server.

Under is a POC patch allowing urlencoded filenames to be urldecoded on the server.

{{{
Content-Disposition: attachment; filename*=UTF-8''%D1%82%D0%B0%D1%82%D0%B0%D1%82%D0%B0.jpg
}}}

The file is correctly named татата.jpg on the server.


A number of http clients, example winhttp, doesn't support utf8 characters in the headers, and the files end up with wrong names on the server.



{{{
--- class-wp-rest-attachments-controller.php.orig       2024-01-25 13:43:43.898485027 +0100
+++ class-wp-rest-attachments-controller.php    2024-01-25 13:44:02.206740466 +0100
@@ -1139,16 +1139,26 @@
                                $attributes[ trim( $key ) ] = trim( $value );
                        }

-                       if ( empty( $attributes['filename'] ) ) {
-                               continue;
-                       }
+                        if ( ! empty( $attributes['filename'] ) ) {
+                               $filename = trim( $attributes['filename'] );

-                       $filename = trim( $attributes['filename'] );
+                               // Unquote quoted filename, but after trimming.
+                               if ( str_starts_with( $filename, '""' ) && str_ends_with( $filename, '""' ) ) {
+                                       $filename = substr( $filename, 1, -1 );
+                               }
+                        } else if ( ! empty( $attributes['filename*'] ) ) {
+
+                               if ( str_contains( $attributes['filename*'], '\'\'') ) {
+                                       list( $key, $value ) = explode( '\'\'', $attributes['filename*'], 2);
+                                       // key is encoding
+                                       $filename = trim( urldecode( $value ) );
+                               } else {
+                                       continue;
+                               }
+                        } else {
+                               continue;
+                        }

-                       // Unquote quoted filename, but after trimming.
-                       if ( str_starts_with( $filename, '""' ) && str_ends_with( $filename, '""' ) ) {
-                               $filename = substr( $filename, 1, -1 );
-                       }
                }

                return $filename;
}}}

"	ypjzjn
	63635	Tests: rest-posts-controller hooks blow under certain circumstances		REST API	4.8	normal	blocker	Awaiting Review	defect (bug)	reviewing	dev-feedback	2025-06-30T00:28:42Z	2026-02-06T23:22:09Z	"In this revision [39079] it was introduced some code

In this file `tests/phpunit/tests/rest-api/rest-posts-controller.php`:


{{{#!php
<?php
        add_filter( 'rest_pre_dispatch', array( $this, 'wpSetUpBeforeRequest' ), 10, 3 );
	add_filter( 'posts_clauses', array( $this, 'save_posts_clauses' ), 10, 2 );
}

public function wpSetUpBeforeRequest( $result, $server, $request ) {
	$this->posts_clauses = array();
	return $result;
}
public function save_posts_clauses( $orderby, $query ) {
	if ( 'revision' !== $query->query_vars['post_type'] ) {
		array_push( $this->posts_clauses, $orderby );
	}
	return $orderby;
}
}}}


If we introduce the following test in this file, it will blow:

{{{#!php
public function test_blowing_example() {
	$this->go_to( get_permalink( self::$post_id ) );
}
}}}

The reason is that `rest_pre_dispatch` is running after `posts_clauses`, `$this->posts_clauses = array();` is not being set on time and the `array_push` blows because `$this->posts_clauses` is `null`

Why severity `blocker`? Because I cannot continue working on another report until this is solved, so technically is a blocker report.

Possible solutions that come to my mind:

1. Changing the filter to another that runs earlier for `wpSetUpBeforeRequest` (or later `save_posts_clauses`). I can't think of which filter would be the most adequate
2. Adding a `$this->posts_clauses` `empty()` conditional check in `save_posts_clauses` to ignore `array_push` in case it's empty (a possible safe option)"	SirLouen
	52640	The rest_prepare_attachment filter runs twice during REST request		REST API	5.7	normal	normal	Future Release	defect (bug)	new	has-patch	2021-02-24T14:41:39Z	2021-02-24T18:36:02Z	"Hi,

For each `/wp/v2/media` call the `rest_prepare_attachment` filter is being run twice. Once by `WP_REST_Posts_Controller` and then a second time by `WP_REST_Attachments_Controller`.

This is due to `WP_REST_Attachments_Controller::prepare_item_for_response` calling its class parent method, which calls apply_filters on `""rest_prepare_{$this->post_type}""`

This may cause issues with code that expects the attachment to only be prepared once, particularly where the response payload is different between the two filter callbacks (eg doesn't include media sizes the first time)."	chrisl27
	61838	Uncaught TypeError in multiple REST API endpoints from a single bug		REST API	6.2.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-08-07T16:27:56Z	2024-08-14T01:30:43Z	"Upon creating a fresh instance of WordPress and setting up the REST API a
malformed requests to REST API endpoints results
in an exception multiple endpoints:

Request body:
'{""namespace"": [""core/offset-text-with-a-brutalist-design-vibe"", ""core/offset-text-with-a-brutalist-design-vibe""]}'


=== Command to reproduce 
  curl -X GET ""[WORDPRESSDOMAIN]/wp-json/wp-block-editor/v1?namespace=core/large-header-with-text-and-a-button&context=""  -H 'Authorization: Basic [ACCESS_TOKEN]' -H 'Content-Type: application/json' -d '{""namespace"": [""core/offset-text-with-a-brutalist-design-vibe"", ""core/offset-text-with-a-brutalist-design-vibe""]}'

 curl -X  PUT [""WORDPRESSDOMAIN]/wp-json/wp/v2/blocks/1"" -d '{""date"": ""E1VFG9QQ"", ""date_gmt"": ""447E5S8V"", ""slug"": """", ""status"": ""IKQHKNFP"", ""password"": ""TX0QAG2M"", ""template"": [""template is not one of hello-world, blank."", ""template is not one of hello-world, blank.""]}' -H 'Authorization: Basic [ACCESS_TOKEN]' -H 'Content-Type: application/json'

=== Stacktrace
{{{
Fatal error:  Uncaught TypeError: Illegal offset type in isset or empty in /var/www/html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1529
Stack trace:
#0 /var/www/html/wp-includes/rest-api/class-wp-rest-request.php(911): WP_REST_Posts_Controller->check_template(Array, Object(WP_REST_Request), 'template')
#1 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1018): WP_REST_Request->has_valid_params()
#2 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(443): WP_REST_Server->dispatch(Object(WP_REST_Request))
#3 /var/www/html/wp-includes/rest-api.php(410): WP_REST_Server->serve_request('/wp/v2/blocks/3...')
#4 /var/www/html/wp-includes/class-wp-hook.php(308): rest_api_loaded(Object(WP))
#5 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#6 /var/www/html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#7 /var/www/html/wp-includes/class-wp.php(399): do_action_ref_array('parse_request', Array)
#8 /var/www/html/wp-includes/class-wp.php(780): WP->parse_request('')
#9 /var/www/html/wp-includes/functions.php(1334): WP->main('')
#10 /var/www/html/wp-blog-header.php(16): wp()
#11 /var/www/html/index.php(17): require('/var/www/html/w...')
#12 {main}
  thrown in /var/www/html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php on line 529
{""code"":""internal_server_error"",""message"":""<p>There has been a critical error on this website.</p><p><a href=""https://wordpress.org/documentation/article/faq-troubleshooting/"">Learn more about troubleshooting WordPress.</a></p>"",""data"":{""status"":500},""additional_errors"":[]}'
}}}"	mlf20
	54240	WP REST API Users Endpoint Search		REST API	5.8.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-10-11T03:31:11Z	2021-10-14T11:16:28Z	"The WP REST API Users endpoint doesn't support plus addresses when searching using the search parameter - /wp-json/wp/v2/users/?search=example+label@example.com

Plus addressing is a handy Google Workspace and Office 365 feature that I'm noticing adoption of more and more."	damianem
	62232	WordPress Application Password CORS error when Headless WordPress URL and Site URL are different		REST API	6.6.2	normal	critical	Awaiting Review	defect (bug)	new	reporter-feedback	2024-10-15T18:47:09Z	2024-10-29T13:55:07Z	"I'm working on a headless websites locally. The WordPress ( Back-end ) Url and the Site ( Front-end ) are different...

Ex:
Back-end url: http://wordpress.local
Front-end url: http://mysite.local

When I go to my main admin user, and try and generate a password, the UI shows a slim red/error bar & metabox under the 'Add New Application Password' ui field, w/ no text. There's also no PHP error logs. However, in the devtools issues panel, i am seeing a CORS error. Instead of WordPress calling http://wordpress.local/wp-json/wp/v2 rest endpoint to generate the password, it's wrongfully trying to call the front-end http://mysite.local instead. 

"	archoda
	50964	WordPress view/preview links + post editor don't get along with SPA frontend		REST API	5.3	normal	major	Awaiting Review	defect (bug)	new		2020-08-12T21:25:29Z	2021-04-20T05:56:43Z	"Hi,

I've built a separated frontend (SPA) using WordPress as headless CMS. I managed to allow writers to view/preview posts on the frontend by setting the ''home_url'' accordingly.

I also used the ''preview_post_link'' filter to rewrite the preview URL and adding a generated nonce I then pass to the API to fetch the post content. Here is the function :

{{{#!php
<?php
add_filter( 'preview_post_link', 'my_filter_function', 10, 2 );
function my_filter_function($preview_link, $post)
{
	$nonce = wp_create_nonce('wp_rest');

	return FRONTEND_DOMAIN . '/preview?type=' . $post->post_type . '&id=' . $post->ID . '&nonce=' . $nonce;
}

}}}


Everything worked just fine until I met the new post editor (must be version 5.3 or 5.4 - working with the REST API).

I now have 2 issues :

1. **Saving a post** (or cusotm post). It seems the ''home_url'' needs to be the same as the site_url (wordpress) overwise it fails to update any post (it makes multiple REST API calls to the ''home_url''). Settings the same URL works but now we can't view a post on the frontend using view links.

2. **Previewing a post** (or custom post). In the new block editor, the ''preview_post_link'' filter doesn't seem to be called. URL aren't changed so I can't preview my post on the frontend.

I couldn't find anything about similar issues. Could you please help me ?

Cheers,

Fabrice"	fdouchant
	55946	`post_tag` is not supporting in rest api for custom meta		REST API	5.9.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-06-08T07:41:59Z	2022-09-16T22:01:22Z	"Hello,

Recently I have encountered with this issue. I have registered a custom meta for `post_tag` and `category` taxonomy. and then I register in the rest api for this field. In rest api for `category` the custom meta key is showing where in the `post_tag` rest api it's not showing. I have added proper object types in the `register_rest_field`. In `Tags` rest api it is showing if I add the object type as `tag`. Which is pretty confusing.

Reproduce Steps:
1. Register Custom Meta for Category and Post Tag (You may add it through cmb2 or ACF)
2. Enable the custom meta field in rest api.
3. Update your terms on category and Tags.
4. Check both the rest api endpoint with the ID/slug"	kapilpaul
	62903	permission_callback should be called before validate_callback in REST API		REST API	6.9	normal	normal	Awaiting Review	defect (bug)	new	close	2025-02-03T21:02:10Z	2025-02-05T01:20:07Z	"I am building a REST endpoint that goes like this `users/articles/{article_id}` while `{article_id}` can be validated with validate_callback on the $args parameter level.

In my validation, I check for author of the article to match the current logged in user. If not, it should return WP_Error of 404 status, assuming the user is logged in.

I expect 403 permission error to come up for guest, from `permission_callback`, but it does not. Rather, it throws 404 from `validate_callback` since the user is not logged in, and the ID does not match the author. Hence, `permission_callback` is not run.
Most of the `validate_callback` on the endpoint does some user authentication validations which expects `permission_callback` to already have handled.

I believe a better design will be permission_callback called first on each route before even running validations."	donjajo
	64032	wp_die() status code Rest API component updates (parent ticket: #64009)		REST API		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-09-23T17:29:26Z	2025-11-22T03:43:16Z	"If you have come here directly, please refer back to the parent ticket here:  #64009

This ticket is regarding the `wp_die()` function calls within the Media component and will cover the following locations. Please note links were correct at the time of testing and writing this up, but line numbers may have changed slightly:

|| **Filepath** || **Line Number** || **Context** || **Status Code** || **New Code** || **Code Meaning** ||
|| [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/admin-ajax.php src/wp-admin/admin-ajax.php] || 211 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/includes/ajax-actions.php src/wp-admin/includes/ajax-actions.php] || 93 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 98 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 108 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 119 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 152 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 177 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 187 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 197 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 210 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 213 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 223 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 227 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 247 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 258 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 269 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 281 || Die: After ajax request	|| 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 291 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 296 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 360 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 433 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 442 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 596 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 732 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 758 || Error: cannot update post status to already set status || 500 || 409 || Conflict ||
|| src/wp-admin/includes/ajax-actions.php || 764 || Error: cannot update post status to already set status || 500 || 409 || Conflict ||
|| src/wp-admin/includes/ajax-actions.php || 776 || Error: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 784 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 797 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 808 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 822 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 833 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 856 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 860 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 882 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 890 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 912 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 923 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 963 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 971 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 1001 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1004 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1007 || Error: cannot update post status to already set status || 500 || 409 || Conflict ||
|| src/wp-admin/includes/ajax-actions.php || 1030 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 1050 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1098 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1185 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1192 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1196 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1235 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 1264 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1270 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1323 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1327 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1329 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1354 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1360 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1393 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1473 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1477 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1530 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1593 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1608 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 1624 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1628 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1662 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1665 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1670 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1693 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1707 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1753 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1759 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1809 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1814 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1827 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 1840 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1845 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1851 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 1863 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1868 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 1878 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1919 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 1955 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 1965 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 1971 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 1975 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 1995 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 2000 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 2021 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 2028 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 2039 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 2052 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 2068 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 2075 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 2079 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 2097 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 2167 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 2186 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 2190 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 2196 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 2231 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 2312 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 2339 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 2342 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 2356 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 2396 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 2408 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 2439 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 2443 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 2451 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 2475 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 2500 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 2588 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 2601 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 2605 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 2632 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 2664 || Error: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 2674 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 2686 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 2742 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 2758 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 2767 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 2781 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 2856 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 2865 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 2919 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 2932 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 2938 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ajax-actions.php || 2951 || Die: After ajax request || 500 || 200 || OK ||
|| src/wp-admin/includes/ajax-actions.php || 2963 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 2967 || Error: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/includes/ajax-actions.php || 2978 || Die: After ajax request || 500 || 200 || OK ||
|| [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-includes/rest-api.php src/wp-includes/rest-api.php] || 440 || 500 || Error: invalid params || 400 || Bad Request ||

I have also put in a PR with these changes so it’s easier to see where in the code each lies, and the surrounding code.

There are however the following function calls I have not touched as I felt they were already valid with their current status code:

|| **Filepath** || **Line Number** || **Status Code** ||
|| [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/includes/ajax-actions.php src/wp-admin/includes/ajax-actions.php] || 89 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 115 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 266 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 725 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 738 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 744 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 804 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 810 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 827 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 831 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 849 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 863 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 886 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 892 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 916 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 926 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 967 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 973 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 1209 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 1213 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 1231 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 1276 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 1319 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 1405 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 1411 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 1486 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 1500 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 1573 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 1695 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 1713 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 1949 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 2210 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 2212 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 2216 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 2218 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 2649 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 2756 || 500 ||
|| src/wp-admin/includes/ajax-actions.php || 2926 || 500 ||
|| [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-includes/class-wp-ajax-response.php src/wp-includes/class-wp-ajax-response.php] || 160 || 500 ||"	callumbw95
	63056	Add Missing rest_prepare_ Filters to Several REST API Controllers	vipulpatil	REST API		normal	normal	Awaiting Review	enhancement	assigned	changes-requested	2025-03-05T08:18:13Z	2025-05-26T14:29:53Z	"**Issue**
Several WordPress REST API controllers lack rest_prepare_ filters, creating inconsistent extensibility across different resource types. The affected controllers do not provide a standard mechanism for developers to modify API responses, limiting the ability to customize or extend REST API outputs.

**Proposed Solution**
Implement rest_prepare_ filters for the following controllers:


{{{
class-wp-rest-block-patterns-controller
class-wp-rest-block-pattern-categories-controller
class-wp-rest-global-styles-controller
class-wp-rest-templates-controller
class-wp-rest-template-revisions-controller
class-wp-rest-template-autosaves-controller
class-wp-rest-search-controller
}}}


Add a standard filter implementation in each controller's prepare_item_for_response() method:"	vipulpatil
	46267	Add generated_slug to REST API autosaves endpoint		REST API		normal	normal	Awaiting Review	enhancement	new		2019-02-17T15:24:09Z	2020-10-25T03:28:33Z	"#45017 led to adding `generated_slug` and `permalink_template` to the posts controller. 

In order to facilitate more timely and accurate editing of permalinks in the new block editor, it would also be helpful to know about any unique slug conflicts by returning the `generated_slug` value on the autosaves endpoint as well. Otherwise we have to wait until a manual save or publish in order to check the true `generated_slug` value.

See https://github.com/WordPress/gutenberg/pull/12009 for work on this and [https://wordpress.slack.com/archives/C02RQC26G/p1550404177056100 this Slack comment] for more details."	earnjam
	62855	Add object_id to WP_REST_Meta_Fields::prepare_value_for_response()		REST API		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2025-01-24T08:42:41Z	2025-05-26T14:29:53Z	"The method `WP_REST_Meta_Fields::prepare_value_for_response()` accepts 3 parameters: `$value`, `$request` and `$args`. It doesn't include the info about the current item (post or term) that being retrieved data. This makes it impossible to get the value for the current **term** if we use `prepare_callback`:

{{{#!php
<?php
protected function prepare_value_for_response( $value, $request, $args ) {
	if ( ! empty( $args['prepare_callback'] ) ) {
		$value = call_user_func( $args['prepare_callback'], $value, $request, $args );
	}

	return $value;
}
}}}

So, if you register a meta for **terms** like this:

{{{#!php
<?php
$args = [
	'type'         => 'string',
	'single'       => true,
	'show_in_rest' => [
		'prepare_callback' => 'my_callback_function',
	],
];

register_meta( 'term', 'my_meta', $args );
}}}

Then inside `my_callback_function`, you can't get the value for the current term, especially when you request the data via `/wp-json/v2/wp/categories` for example.

This issue doesn't happen for **posts**, since WordPress sets the global `$post` object, so we can get it with `get_post()`. But there are no equivalents for **terms**.

Solution: I'd suggest setting the `object_id` inside `$args` to pass to the `prepare_value_for_response`. This way, developers can get the current term and thus, can get the correct data."	rilwis
	59903	Add user pattern categories to the pattern categories API response		REST API	6.5	normal	normal	Awaiting Review	enhancement	new	has-patch	2023-11-13T23:27:04Z	2023-12-21T23:23:33Z	"Currently user pattern categories and block pattern categories are merged in a number of places in the editor front end. It makes sense to do tis in a single place and the block-patterns/categories endpoint seems the obvious place to do that.

There is a Gutenberg PR (https://github.com/WordPress/gutenberg/pull/55822) that adds the user pattern categories only if the `source` query param is specified and includes `user`.

Also added is a new `id` field as this is needed to map the user categories back to the taxonomy terms in certain parts of the UI. This field is only returned if `id` is explicitly requeste in the _fields param.

To see the added data the endpoint has to be called with `params _fields: 'name,label,description, id'` and `source: [ 'core', 'user' ]`.

There is a related core PR (https://github.com/WordPress/wordpress-develop/pull/5621) but this should only be merged once the GB PR is finalised and approved."	glendaviesnz
	57223	Comments Controller : Should max/total be pre- or post- filtering? It is pre-. Reconsider?		REST API	6.2	normal	normal	Awaiting Review	enhancement	new		2022-11-28T23:03:39Z	2022-11-28T23:25:59Z	"Ref get_items for the REST Comments Controller: https://core.trac.wordpress.org/browser/tags/6.1.1/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php?rev=54846#L186

Skip down to line 277. The query is run. Read permissions are checked, and at 284 protected comments are removed from the result.

Now at 291, $total_comments and $max_pages come from the **original** query result, not the whittled-down list. So there might be 100 original results, maybe 10 that this user can see, but the $response still shows 100.

The question here is, should the returned value be a count of the records/pages that are potentially available to all, or the count that's available to this user.

I'm thinking the latter. Consider #57221 : With this scenario the client can get an invalid TotalPages response and then come back to request the last page, which isn't actually a valid page number. Many of us have seen anomalies like this before and it can be frustrating. Some developers will setup a loop from 1 to count(x), and error out with fewer records. There's a lesson to be learned there, but perhaps we can improve it.

A comments response includes headers with totals and with links to previous/next pages - all of these values can be invalid.

As [https://wordpress.slack.com/archives/C02RQC26G/p1669387892298079?thread_ts=1669320024.362229&cid=C02RQC26G noted] by @spacedmonkey, it would be a breaking change to return post-filter totals where existing apps may expect pre-filter totals. For example, it's legitimate to display ""X available comments of Y total"". So I'll not request a change to existing behaviour, but options to modify it.

**The Suggestion**

Document a new argument that can be passed into the [https://developer.wordpress.org/reference/hooks/rest_comment_query/ rest_comment_query filter], `total_after_filter`. Obtain and remove this arg from $prepared_args [https://core.trac.wordpress.org/browser/tags/6.1.1/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php?rev=54846#L275 here at line 275] to avoid passing to WP_Comment_Query.

If that argument is present, use the post-filter numbers for totals at line 291.

Whether or not that argument is present, add two new response headers after line 307, X-WP-TotalAvailable and X-WP-TotalAvailablePages, which may have values different from the others.

If the above is valid, I'd suggest a similar enhancement to return additional or different prev/next header links, but this would not be as easy and I'll defer discussion for later (or maybe another ticket).

**And now, the proverbial can of worms...**

Comments are not the only data type subject to this scenario, and it's not unique to the REST API either. I have not yet done a deep enquiry to see if pre- or post-filter totals are returned by various interfaces. I am curious if anyone believes there is justification to expand the scope of this to new tickets for other classes and APIs."	Starbuck
	52590	Consider increasing the limit of the perPage argument in paginated requests.		REST API		normal	normal	Awaiting Review	enhancement	new		2021-02-22T07:57:02Z	2021-02-22T07:57:02Z	"In some situations where we fetch a small number of fields, clients might want to fetch a big number of items  at once. For instance in Gutenberg, while selecting parent pages or selecting authors, ideally we should be able to fetch  more than 100 elements at once.

I understand that the current limits  are there to avoid memory issues but clients can make informed decisions by fetching a small number of fields instead to avoid said memory issues. Most issues seems to happen when you fetch the ""content"" field in the posts end point.

After some discussion on slack. it was suggested that we could consider increasing that limit depending on a the requested fields.

Another option that was shared was to rely on the ""embed"" context.

https://wordpress.slack.com/archives/C02RQC26G/p1613382691029000"	youknowriad
	41735	Include titles for JSON Schema properties		REST API	4.7	normal	normal	Awaiting Review	enhancement	new	has-patch	2017-08-27T00:38:41Z	2017-12-03T21:03:30Z	JSON Schema supports a `title` property that can hold a user-readable label for the property. This would be incredibly helpful in building generated documentation and user interfaces.	TimothyBlynJacobs
	48822	Indicate partial success/error of a REST API request		REST API	4.7	normal	normal	Awaiting Review	enhancement	new		2019-11-28T03:24:50Z	2020-10-24T05:14:31Z	"Currently, when the REST API encounters an error, that error is typically immediately returned and any context about what processing has occurred is lost. A good example of this is creating a post.

After the post is created an error can be returned after inserting terms, meta, and additional fields. The response does not provide a way to determine the ID of the post so updates could be made to the existing post, instead you must create a new post.

As a first step, it'd be great if we could return a `Link` to the single item route. This is similar to the post-process link in the media endpoint except that we know there is a `WP_Error` instance, we don't have to always send the header. I think we'd do this by adding link support to `WP_Error`.

A further step might be to add a way to allow returning a partial response. For instance, if I successfully inserted a post, but just inserting some meta values failed, it'd be ideal if I could receive back the prepared item as well as the errors that were encountered. This would probably require changing the output format. We could only return the different format if the client indicated that it could process it, possibly via the `Accept` header."	TimothyBlynJacobs
	55672	Media endpoint allows multiple media types on request, but only returns image in response		REST API	6.0	normal	minor	Awaiting Review	enhancement	new		2022-05-04T08:40:46Z	2022-05-04T08:40:46Z	"The REST API for attachments (`/wp-json/wp/v2/media/`) allows to search for specific types based on `get_allowed_mime_types()`, giving a full range of types to be used.
However the response of the same endpoint only returns 'image' or 'file' (aka everything else).

This causes issues when requesting multiple types, since it won't be possible to differentiate them by type anymore (mime type is still correct). It's an issue I found while building a custom editor (Gutenberg) block which can handle multiple types (image, video, audio and pdf)


Code which causes the issue:
{{{
if ( in_array( 'media_type', $fields, true ) ) {
   $data['media_type'] = wp_attachment_is_image( $post->ID ) ? 'image' : 'file';
}
}}}
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php#L756-L758


**Workaround:**
At the moment I use a workaround which modifies the REST response.
{{{
function get_real_media_type($post_id)
{
    switch (true) {
        case wp_attachment_is('image', $post_id):
            return 'image';
        case wp_attachment_is('video', $post_id):
            return 'video';
        case wp_attachment_is('audio', $post_id):
            return 'audio';
        case wp_attachment_is('pdf', $post_id):
            return 'pdf';
        // add more types?

        // when no predefined type, return 'file'
        default:
            return 'file';
    }
}

add_filter('rest_prepare_attachment', function ($response, $post, $request) {
    if (
        is_object($response)
        && property_exists($response, 'data')
        && array_key_exists('media_type', $response->data)
    ) {
        $response->data['media_type'] = get_real_media_type($response->data['id']);
    }

    return $response;
}, 10, 3);
}}}


**Solution:**
Extend the response code for media files to include more different media types, instead of only 'image' and 'file'.
This **shouldn't** cause any backwards compatibility issues, since 'image' will still work and 'file' will still be there in case it's a non-standard type."	grezvany13nl
	60608	Missing REST API users endpoint orderby parameters		REST API		normal	normal	Awaiting Review	enhancement	new		2024-02-22T17:27:54Z	2024-02-22T17:46:52Z	"[https://github.com/WordPress/wordpress-develop/blob/4a3240eb8f4be840ad495302d66f2329d0827179/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php#L1548-L1555 Allowed orderby params in users endpoint]

compared to 

[https://github.com/WordPress/wordpress-develop/blob/4a3240eb8f4be840ad495302d66f2329d0827179/src/wp-includes/class-wp-user-query.php#L194-L209 Supported orderby params in `WP_Users_Query`]

The rest endpoint is missing support for ordering by
- 'user_login' (or 'login')
- 'post_count'
- 'meta_value',
- 'meta_value_num'
- 'login__in'

I don't know how complex the meta would be, nor do I fully understand what `login__in` actually does, but for sure the endpoint is missing the ability to order by the user's login/username which can be different from the nicename."	helgatheviking
	57221	Opportunity for optimization on invalid query to REST API Search Controller		REST API	6.2	normal	minor	Awaiting Review	enhancement	new		2022-11-28T21:17:25Z	2022-11-28T21:27:09Z	"Ref: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php#L119

Here we see get_items executes a query and gets a list of $ids. Then it loops through all $ids to prepare the response. And **then** it checks the total number of records to see if the requested page is larger than the number of pages available.

This is a proposal to check $max_pages before the response preparation, to avoid the loop if the request is pre-destined to return an error anyway.

This would only provide a performance benefit on invalid queries. But looking up at line 115, function get_items_permission_check always returns true. I can imagine a DOS where a large number of search queries are queued up just to keep a system busy."	Starbuck
	53836	Option to additionally format API response		REST API	5.8	normal	normal	Awaiting Review	enhancement	new		2021-07-30T09:37:29Z	2021-07-30T09:37:29Z	"Hello,

I have a request for new feature described in this forum post:

https://wordpress.org/support/topic/expansion-of-wp_json_encode-method-with-hooks/

I was told to submit ticket instead of writing a forum post so here we are.

Let me know if I can help with anything else.

Best,
Bruno"	bkrnetic
	62604	Prevent false-positive in validate_callback() in REST API		REST API		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-11-28T16:19:05Z	2025-05-26T14:29:53Z	"Related: https://github.com/WP-API/docs/issues/194

{{{#!php
'type' => 'string',
'validate_callback' => function( $should_be_date ) {
     return preg_match( '/^\d{4}-\d{2}-\d{2}$/u', $should_be_date );
}
}}}

Above validation expects the parameter should be 'YYYY-MM-DD' format, but actually any string as ""valid"" because `preg_match()` returns 0(falsy value) for mismatch.

So, validation priority should be `is_wp_error()` -> ""is true?"" -> ""else, invalid.""

Concerns:

`strpos()` return 0 for match."	Takahashi_Fumiki
	39061	REST API pagination: Large INT passed to `paged` query arg doesn't fail properly	joehoyle	REST API	4.7	normal	normal	Future Release	enhancement	reopened	needs-unit-tests	2016-12-04T18:43:51Z	2017-10-04T20:46:33Z	"When an absurdly large value is passed to the REST API (e.g. `/wp/v2/pages?page=23924321212413345333`), it returns the first page of results instead of an error. The problem is during validation and sanitization of the value, where the passed value is run through `absint`, which returns another absurdly large value, which then gets nullified by PHP, which becomes `1`.


{{{
wp> print_r( rest_sanitize_value_from_schema( 23452345346346345456567356, array( 'type' => 'integer' ), 'page' ) );
3481259413623275520
=> bool(true)
wp> print_r( rest_validate_value_from_schema( 23452345346346345456567356, array( 'type' => 'integer' ), 'page' ) );
1
=> bool(true)

wp> absint(23924321212413345333);
=> int(5477577138703794176)
}}}

Edge case, but worth noting since smaller values that are larger than the number of pages return an empty array (like if there are only 2 pages of posts, but 3 are requested).

Related: #19728."	morganestes
	56587	REST API sanitize and validate order / priority		REST API	6.0.1	normal	normal	Awaiting Review	enhancement	new		2022-09-16T11:49:30Z	2022-09-16T11:49:30Z	"wp-rest-server has this snippet
{{{#!php
<?php
$check_required = $request->has_valid_params();
if ( is_wp_error( $check_required ) ) {
	$error = $check_required;
} else {
        $check_sanitized = $request->sanitize_params();
        if ( is_wp_error( $check_sanitized ) ) {
		$error = $check_sanitized;
	}
}
}}}


questions / need clarifications :
1. `validate` and `sanitize` here stands on its own, other than integrated. Which in result causing `rest_sanitize_value_from_schema` called twice. Example in array `enum`
  - `has_valid_params` calls 
    - `rest_validate_request_arg` calls
    - `rest_validate_enum` calls
    - `rest_sanitize_value_from_schema` ( first call )
  - `sanitize_params` calls
    - `rest_sanitize_value_from_schema` ( second call )
When sanitize required DB, e.g. enum values are from table, calling it twice would be inefficient, so developers would need to come out with solution to memoize things around sanitize routine.
 
2. Shouldn't we prioritize `sanitize`, so when `validate` called, it can safely assume data are sanitized already ? otherwise if custom `validate_callback` function is not calling sanitize explicitly it would end up validate function processing a string `a,b,c` when its expected an array `[a,b,c]`, but by doing this, it would resulting #1 inefficiency."	pentatonicfunk
	54247	REST API: Add block editor settings endpoint		REST API		normal	normal	Future Release	enhancement	new	has-patch	2021-10-12T17:21:11Z	2021-10-21T16:58:47Z	"This is a tracking ticket for merging the block editor settings endpoints from Gutenberg.

https://github.com/WordPress/gutenberg/blob/trunk/lib/class-wp-rest-block-editor-settings-controller.php"	enej
	66362	REST API: Add item counts to the page view list in the view config endpoint		REST API		normal	normal	7.3	enhancement	new	has-patch	2026-10-22T10:10:12Z	2026-10-28T12:06:17Z	"Adds a count to each status view in the `page` view list of the view config endpoint, so the Pages screen in the site editor can show item counts on its status tabs, like the classic Pages screen does.

Views narrowed by more than their status get no count.

Gutenberg PR: https://github.com/WordPress/gutenberg/pull/82247
Core PR: https://github.com/WordPress/wordpress-develop/pull/14070
"	im3dabasia1
	66317	REST API: Add search_columns parameter to the search endpoint		REST API		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-10-15T06:15:00Z	2026-10-15T06:22:59Z	"The posts endpoints support search_columns (since 6.2), but /wp/v2/search doesn't, so a search there always matches titles, content and excerpts. The editor's link suggestions only want title matches.

This adds search_columns to WP_REST_Search_Controller::get_collection_params() and passes it to WP_Query in WP_REST_Post_Search_Handler. Term searches are unaffected.

Gutenberg issue: https://github.com/WordPress/gutenberg/issues/83372
Gutenberg PR: https://github.com/WordPress/gutenberg/pull/84803
"	dhananjaykuber
	63092	REST API: Support preloading 'HEAD' requests	Mamaduka	REST API		normal	normal	Awaiting Review	enhancement	assigned	has-patch	2025-03-13T06:26:08Z	2025-03-13T06:32:05Z	"Related #45194, #56481.

Update the `rest_preload_api_request` method and support preloading requests using the `HEAD` method."	Mamaduka
	66381	REST API: Template and template part collections fetch every template again to build its links		REST API	6.4	normal	normal	Awaiting Review	enhancement	new	has-patch	2026-10-25T18:04:40Z	2026-10-25T18:06:00Z	"`WP_REST_Templates_Controller::prepare_item_for_response()` passes only the template ID to `prepare_links()`. When the post type supports revisions, `prepare_links()` calls `get_block_template()` for every item, only to read `wp_id` for the revision links (added in [56819], #56922). That is another `WP_Query` per item, and for theme file templates another file read and Block Hooks pass, and the result is discarded.

Measured on 7.2-beta1 with Ipsum, as admin, `rest_do_request()`, median of 5:

|| '''Endpoint''' || '''Queries''' || '''Time''' ||
|| `/wp/v2/template-parts` (8 items) || 9 to 1 || 12.7 to 6.5 ms ||
|| `/wp/v2/templates` (11 items) || 17 to 6 || 23.3 to 17.2 ms ||

The patch hands the template that is being prepared to `prepare_links()` through a private property, so the `prepare_links( $id )` signature stays the same for subclasses, and falls back to `get_block_template()` otherwise. The response is unchanged; a test checks that the revision links are still there. PR: https://github.com/WordPress/wordpress-develop/pull/14849

AI assistance: Claude Code (Claude Opus 5.5) for finding this, drafting the patch and tests, and measuring. I reviewed the patch."	nofearinc
	38641	Support partial ISO8601 dates in queries		REST API	4.7	normal	normal	Future Release	enhancement	new		2016-11-03T01:17:39Z	2022-01-18T13:48:52Z	"Right now, we support sending `date` or `modified` with a full ISO 8601 date (`yyyy-mm-ddThh:ii:ssZ`), and we also support `before` and `after`. However, there's no easy way to get posts for a certain month, without building the `before` and `after` yourself.

[https://en.wikipedia.org/wiki/ISO_8601 ISO 8601] gives us a way to specify partial dates: `yyyy` and `yyyy-mm` are both valid, and we could totally support them. This avoids the need for a separate `year` or `month` query parameter. Internally, this can map to `before` and `after` values."	rmccue
	66562	Tests: Add unit tests for the failures of WP_REST_Plugins_Controller		REST API		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T15:58:21Z	2026-11-06T15:58:58Z	"`WP_REST_Plugins_Controller` has tests for its routes, but the paths where installing or deleting a plugin fails have none: the errors of an installation that failed, an error of the Plugin Installation API, and a filesystem that is not available when a plugin is installed or deleted. `validate_plugin_param()` and `sanitize_plugin_param()` have no tests either.

This ticket adds tests for these paths."	hmbashar
	63253	"Theme REST API: expose ""has_theme_json"" field"		REST API		normal	normal	Awaiting Review	enhancement	new	has-patch	2025-04-08T12:41:47Z	2025-05-05T01:51:48Z	"Currently, there is no official way to detect whether the active theme has `theme.json` or not via REST API.

We needed to check for the existence of theme.json to conditionally expose Stylebook for the classic theme. As a temporary approach, we used the `supportsLayout` setting, which is the equivalent of the `wp_theme_has_theme_json()` function:

https://github.com/WordPress/gutenberg/blob/a4a5b07b4432d28ad4eb3646435bbaf9a8f9796e/packages/edit-site/src/components/site-editor-routes/utils.js#L11-L12

However, there is no guarantee that this setting will remain equivalent to `wp_theme_has_theme_json()` in the future.

We should expose the new ""has_theme_json"" field via the theme REST API."	wildworks
	56368	Unable to use enum with array data type - REST API		REST API		normal	normal	Awaiting Review	enhancement	new		2022-08-12T08:16:14Z	2022-09-04T19:08:23Z	"I would like to be able to specify enums when creating a REST schema property that accepts an array of values.

**For example:**

{{{#!php
<?PHP
   $query_schema['orderby'] = array(
	'description'       => __( 'Sort collection by object attribute.' ),
	 'type'             => array( 'string', 'array' ),
	 'default'          => 'id',
	 'items'            => array(
	      'type' => 'string',
	 ),
	 'enum'              => array( 'id', 'title', 'date', 'include' ),
	 'validate_callback' => 'rest_validate_request_arg',
   );		
}}}
"	picocodes
	48816	Use get_bloginfo in the REST API index		REST API	4.4	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2019-11-27T19:35:39Z	2019-11-29T18:39:35Z	"The REST API provides data in the site ""index"" when making a request to `https://example.org/wp-json`. This  describes the site and the APIs available. In particular it returns the name of the website, and the tagline. These values are retrieved using `get_option` directly instead of `get_bloginfo`. 

Because this data would be used presentationally, it seems like it'd be more useful if it returned the ""presentation"" version of these strings.

As far as I could tell, the index has more or less worked the same since the GSOC version of the REST API, so I wasn't able to find any description of why it was built that way.

I opened this because of [https://github.com/WordPress/gutenberg/pull/18760 a Gutenberg PR] which would display the site title."	TimothyBlynJacobs
	57361	WP_REST_Attachments_Controller::get_media_types not returning existing mime types, but the ones allowed for upload		REST API	4.7	normal	normal	Awaiting Review	enhancement	new		2022-12-20T14:04:31Z	2022-12-20T16:18:55Z	"While debugging an [https://github.com/WordPress/gutenberg/issues/46658 issue in Gutenberg's new media tab], it has been [https://github.com/WordPress/gutenberg/pull/46676 pointed out] that the REST API does not actually allows to list items which are already in media library, but can no longer be uploaded (eg.: the list of allowed mime types changed over time).

That's different from what the wp-admin does, as it lists all items in the media library, no matter what their (mime)type is, and whether it can be uploaded or not.

The `WP_REST_Attachments_Controller::get_media_types` method [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php#L1253 uses the `get_allowed_mime_types()` function], which is upload oriented (returns a list of mime types which can be uploaded), while the [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-wp-media-list-table.php#L137 listing in wp-admin uses a logic based on existing mime types in the library].

Thus I wonder, if the same logic as used in wp-admin should be used in the REST API, allowing users and developers to get a listing of all existing items in the media library, no matter whether new ones can be uploaded or not."	david.binda
	66644	WP_REST_Blocks_Controller renders pattern content that it then removes from the response		REST API		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-10T14:20:26Z	2026-11-10T17:28:58Z	"`WP_REST_Blocks_Controller` removes `title.rendered` and `content.rendered` from its schema and from every response, because a pattern has no rendered content on its own - only when it's within a post, page, or template on output. The rendering still happens, though and can be slow depending what hooks into `the_content` filter.

`get_fields_for_response()` only lists top-level fields, so it returns `content`. `rest_is_field_included( 'content.rendered', $fields )` then returns true because its parent is included. So `WP_REST_Posts_Controller::prepare_item_for_response()` runs `the_content` on every pattern, and `filter_response_by_context()` throws the result away. The same happens with `title.rendered` and `the_title`.

The block editor requests `/wp/v2/blocks?context=edit&per_page=100` without `_fields` each time it loads. That runs every block render callback and content filter for up to 100 patterns per page. On a site with image-heavy patterns, this was most of the request time.

=== Steps to reproduce

 1. Create a few synced patterns that contain blocks.
 2. Hook a counter onto `the_content`.
 3. Request `/wp/v2/blocks?context=edit`.
 4. `the_content` runs once for each pattern, but the response has no `content.rendered`.

=== Suggested fix

Override `get_fields_for_response()` in `WP_REST_Blocks_Controller`. Replace `title` and `content` with the sub-fields left in the controller's schema: `title.raw`, `content.raw`, `content.protected` and `content.block_version`. The response doesn't change, because `rest_is_field_included()` still treats a parent field as included when one of its children is listed.

{{{#!php
<?php
public function get_fields_for_response( $request ) {
	$fields = parent::get_fields_for_response( $request );
	$schema = $this->get_item_schema();

	foreach ( array( 'title', 'content' ) as $field ) {
		$index = array_search( $field, $fields, true );
		if ( false === $index || empty( $schema['properties'][ $field ]['properties'] ) ) {
			continue;
		}

		unset( $fields[ $index ] );
		foreach ( array_keys( $schema['properties'][ $field ]['properties'] ) as $sub_field ) {
			$fields[] = ""{$field}.{$sub_field}"";
		}
	}

	return array_values( $fields );
}
}}}

Props to @rayhatron for the initial find here.
"	sanchothefat
	66436	rest_validate_value_from_schema() should be able to report every validation error, not only the first	gziolo	REST API		normal	normal	7.3	enhancement	assigned	has-patch	2026-11-01T23:16:36Z	2026-11-10T10:54:41Z	"`rest_validate_value_from_schema()` stops at the first property that fails. In `rest_validate_object_value_from_schema()` the loop over `properties` returns the first `WP_Error` it meets (`wp-includes/rest-api.php:2444-2449` in 7.1.4), and the same happens for pattern properties and for array items. A request with three bad fields produces one error, the client fixes it, sends again, and learns about the next one.

This was acceptable when a person read the error. It is costly for a program that talks to WordPress through the REST API or the Abilities API: each round trip is a full request, and an AI agent that calls an ability retries the same call once per bad field. The Abilities API validates ability input with this function (`WP_Ability::validate_input()`, `wp-includes/abilities-api/class-wp-ability.php:536`), so every ability on a site has this behavior and no plugin can change it without re-implementing the validator.

I propose that the validator can collect every error. A `WP_Error` already carries several codes and messages, so the result shape exists. Two options:

1. A new argument or a filterable flag, off by default, that makes `rest_validate_value_from_schema()` continue after a failure and return one `WP_Error` with every failing property, each with its own message and `data.param`.
2. A separate function, such as `rest_validate_value_from_schema_all()`, that returns every error, with `rest_validate_value_from_schema()` unchanged.

Either way, the Abilities API could use it in `validate_input()` so an ability reports every invalid field in one response. I am happy to work on a patch once the direction is agreed."	zaguiini
	61205	Add support for relative paths to theme assets in theme.json		REST API		normal	normal	Awaiting Review	feature request	new		2024-05-13T06:30:34Z	2024-09-08T17:49:50Z	"The end goal is to allow theme devs to add relative paths to assets in theme.json. 

For example, 


{{{
{
	""$schema"": ""https://schemas.wp.org/trunk/theme.json"",
	""version"": 2,
	""settings"": {
		""appearanceTools"": true
	},
	""styles"": {
		""background"": {
			""backgroundImage"": {
				""url"": ""img/untitled.png""
			}
		}
	}
}
}}}


This is advantageous in that themes can remain portable across WordPress instances.

These paths must be resolved, preferably by [https://developer.wordpress.org/reference/functions/get_theme_file_uri/, get_theme_file_uri] so that child themes can inherit and or overwrite asset paths.

The resolved, absolute paths would be used in the CSS output.

To preserve the theme.json object across states, so that the resolved path is not saved to the WordPress database (for example as a user style or style revisions) the resolved path should only be used when outputting CSS.

This is true for the frontend as well as the editor.

In the frontend, file resolution could occur in `wp_get_global_stylesheet`. 

However in the editor, there is no equivalent to `get_theme_file_uri` in the clientside JS code.

Therefore, to keep things performant in the editor, I'm thinking it would be useful to resolve the relative paths in PHP and send them to the frontend as part of the Global styles REST API controllers: `WP_REST_Global_Styles_Controller_Gutenberg` and `WP_REST_Global_Styles_Revisions_Controller`, via a public static method in `WP_Theme_JSON_Resolver` to handle the file resolution.


This Gutenberg PR:
[https://github.com/WordPress/gutenberg/pull/61561 Background image: add support for relative theme path URLs in top-level theme.json styles #61271]

demonstrates a proof of concept.

It would be helpful to get advice on that approach or alternative paths to reach the goal.

Thank you!

"	ramonopoly
	56593	Post meta validation error messages are not helpful to end users		REST API	6.0.2	normal	normal	Awaiting Review	feature request	new	dev-feedback	2022-09-17T07:06:47Z	2022-09-17T07:06:47Z	"The meta error messages generated by the validate callback are not helpful to the end user.

For example, if we register a meta field with the following:
{{{
register_post_meta(
	$post_type,
	'author_url',
	array(
			'type'             => 'string',
			'show_in_rest'     => array(
		   	     'single'           => true,
			     'schema'           => array(
			     'type'             => 'string',
			     'pattern'          => 'https:\/\/.+',
			),
		)
	)
);
}}}

An incorrectly formatted field would yield the following error message in the Gutenberg editor:


{{{
Updating failed. meta.author_url does not match pattern https:\/\/.+.
}}}

As far as I can tell, the only way I can see currently to filter the message is to crudely hook into `rest_post_dispatch` and string replace the error message.

I may be wrong. Perhaps there is some way to conveniently do this on the client side with the notice date store selectors / actions, but since the meta fields are registered server side, it seems like it would be more convenient to filter the output of `rest_validate_value_from_schema` to customize the error messages

I'd like to request a `rest_validate_value_from_schema` filter.
"	andrewleap
	63402	Query Posts without URL parameters to avoid running into character limit with many filters		REST API		normal	normal	Awaiting Review	feature request	new		2025-05-06T19:02:09Z	2025-05-06T19:02:09Z	"Hey,

currently, the REST API only supports GET requests to query posts. This is fine as long as the query including all filters (e.g. category filters) don't exceed the 2048 char URL character limit. Some servers will report an 500 Internal Server Error if exceeding the limit.

This is problematic, especially when using the exclude category filter which can't be replaced by multiple smaller requests.

There should be an API route to filter posts by body parameters.

Best
anghenfil"	anghenfil
	50239	REST API Debug/Dev Mode		REST API	4.4	normal	normal	Awaiting Review	feature request	new		2020-05-24T19:39:55Z	2020-05-24T19:39:55Z	"I think we should consider adding some additional debug/dev helpers for the REST API when `WP_DEBUG` is active. When in this mode we'd provide additional validation that the developer is following the REST API paradigms correctly, validation that would be too intrusive or slow in production.

Some things that come to mind.

1. Verify that a developer is not calling `die()` in a response handler instead of using a `WP_REST_Response` object. This would be on top of #36271. I still see this in the wild.
2. Validating that the schemas themselves are valid."	TimothyBlynJacobs
	39972	REST API: Allow querying posts by post format		REST API	4.7	normal	normal	Awaiting Review	feature request	new		2017-02-27T00:30:29Z	2017-05-07T05:48:09Z	"Although it is listed in the REST API reference, 
{{{
posts?format=video
}}}

shows all posts."	sba7elfol
	52384	WordPress API - Add Limit / Block API Access Features		REST API		normal	normal	Awaiting Review	feature request	new		2021-01-27T15:36:19Z	2021-01-27T15:53:27Z	"Hi,

WordPress API is powerful tool, but many users don't actually need or want it. While we can disable it using 3rd party plugins, I believe that basic features to limit access to API via specific/custom tokens, custom users, logged-in (authenticated) users, IP address(es) or CIDR ranges and so on -- should be provided in-core. Yes, yes I know we can achieve it via plugins, but they are not always best way to do it, and sometimes they have bugs, do not pass other internal plugins that actually use API (e.g. CF7) which may create problems, and so on.

What do you think?
Thanks"	Darko A7
	60142	wordpress api not returns category descriptions in embedded data of post		REST API		normal	normal	Awaiting Review	feature request	new		2023-12-22T19:40:07Z	2024-07-26T16:21:15Z	Hello. Can you please add a feature to rest api,which allow return not only category id and name,but also description. Because for now for each category of post it not returns description (i mean when we using embedded feature),so to get it we should do additional request using id of category,but i want to have description of each category of post immediately. If it exists,can you please send example of query,which returns not only category id and name,but description too. If this not implemented,can you please implement this in new versions of wordpress. Thank you very much for your help.	sashakozlovskiy
	60099	Fix revisions system	adamsilverstein	Revisions	6.4.2	normal	minor	Awaiting Review	defect (bug)	assigned	reporter-feedback	2023-12-18T20:22:50Z	2025-08-26T22:40:24Z	"After upgrading to 6.4, the added section of the last revision of every post is empty, instead of showing the latest changes. 
[[Image(revisions-issue.jpg)]]"	aulivur
	66095	Opening the revisions screen for a page with very long lines may cuase an execution timeout crash		Revisions	7.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-09-11T09:10:31Z	2026-10-20T08:03:30Z	"We have a certain page with very long lines that crashes with a 30 second timeout when using the revisions screen, specifically on lines 212 or 225 on wp-includes/Text/Diff/Engine/native.php, in the _diag method. For very long lines this method will not complete in a reasonable time. 

The very long lines are caused by a/several static blocks. Specifically, we discovered this with the 'wp:getbowtied/products-carousel' block of the product-blocks-for-woocommerce plugin but it could occur with any content producing long lines. The lines in question were 245KB and 226KB long.

The major issue with this bug is that the revisions screen is used as an error handling tool. If a user has used static blocks or otherwise have problematically long lines in a page, this tool will instead cause a crash, possibly leaving the user no way to recover.

We worked around this issue with a filter on '_wp_post_revision_field_post_content' were we replaced the specific static block code with a hash of the contents; not a general solution.
"	iverok
	44684	Page/Post revisions don't seem to load into preview		Revisions	4.9.7	normal	normal	Awaiting Review	defect (bug)	new		2018-07-31T14:27:24Z	2026-01-18T18:23:11Z	"Two different websites had this problem, but it now seems only the one I look after has it. Video attached. It seems that whenever you use the slider on the revisions page of a page/post, it fails to load. Instead it spits out an error in relation to ""admin-ajax.php"" file.

This is with initial install, default theme, no plugins.

Chrome / Firefox / Safari."	ckhatton
	43189	Restoring page revision doesn't restore page template previously used		Revisions	4.9.2	normal	normal	Awaiting Review	defect (bug)	new		2018-01-31T13:23:15Z	2018-01-31T15:09:27Z	"I noticed this when one of the editors made a change in a page and also changed page template.
We reverted the change by restoring a previous revision, but this didn't restore the previous page template.
"	bugnumber9
	41029	The changed author is not making the coming revisons	adamsilverstein	Revisions	4.8	normal	normal	Awaiting Review	defect (bug)	assigned		2017-06-13T14:02:03Z	2021-04-30T18:28:07Z	"Hi 
In WordPress 4.8 the changed author won't be changed in the new revisions (and autosave)."	elisa-demonki
	61849	Improve performance and memory usage of wp_list_post_revisions() / wp_get_post_revisions()		Revisions		normal	normal	Future Release	enhancement	new	reporter-feedback	2024-08-09T10:47:41Z	2026-01-20T16:24:54Z	"I came across an issue where opening a Page in editor causing Fatal error of `Allowed memory size of 268435456 bytes exhausted`.  Trouble shooting has lead me to find that there were over 4000 revisions (!) for this Page, causing slow query and high memory usage. However, xhprofiling revealed that higher memory usage was actually `update_meta_cache()`. 

Putting aside why on earth there were over 4000 revisions...

After studying [wp_post_revisions()](https://developer.wordpress.org/reference/functions/wp_list_post_revisions/), I think it is unnecessary to do cache priming here. We can improve the performance, and try to lower the possibility of exhausting memory.

`wp_list_post_revisions()` calls `wp_get_post_revisions()`, which calls `get_children()`. WP_Post object returned by `wp_get_post_revisions()` is substituted into `$revisions`, but post meta data are not needed to create the list of revision links. Term data are also not needed. 

So for [defaults args here](https://github.com/WordPress/WordPress/blob/ddab80be2c0623cc8971a75180de40343f839f71/wp-includes/revision.php#L667-L671)



{{{
	$defaults = array(
		'order'         => 'DESC',
		'orderby'       => 'date ID',
		'check_enabled' => true,
	);
}}}



adding 



{{{
'update_post_meta_cache' => false,
'update_post_term_cache' => false,
}}}



should improve performance. On my local testing of above mentioned client site, this haved the memory usage."	Toru
	57395	Improve wp_die message when previewing post revision with expired nonce and unauthenticated requests		Revisions	6.1.1	normal	normal	Awaiting Review	enhancement	new	has-patch	2022-12-29T11:53:51Z	2022-12-29T11:53:51Z	"For example, when viewing a revision with an expired nonce, http://localhost/sample-page/?preview_id=2&preview_nonce=07cb875d46&preview=true, a message ""Sorry, you are not allowed to preview drafts"". This works okay. However, the same message with the same status code (403) is being sent when viewing as an unauthenticated user (logged out).

Would it be a good enhancement if we revised the status code and message a bit for a logged-out user?

Thanks"	dunhakdis
	66513	Tests: Add unit tests for WP_Text_Diff_Renderer_inline::_splitOnWords()		Revisions		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T05:07:09Z	2026-11-06T05:08:54Z	"`WP_Text_Diff_Renderer_inline::_splitOnWords()` splits text into words and single separator characters when two versions of a text are compared inline, for example on the revisions screen. It has no direct unit tests.

This ticket adds tests for the splitting of words and separators, the removal of null bytes, the replacement of newlines with the escape string, and the handling of multibyte characters."	hmbashar
	66607	Tests: Add unit tests for wp_prepare_revisions_for_js()		Revisions		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-07T09:40:20Z	2026-11-07T09:47:25Z	"`wp_prepare_revisions_for_js()` in `src/wp-admin/includes/revision.php` prepares the data of the revisions screen for JavaScript. It has no tests.

This ticket adds tests that cover:

* the data it returns: the post, the nonce, the revisions in order, the selected revision and the one it is compared with (also in the mode that compares two revisions), the diff, the base URL and the IDs of the revisions;
* each revision: the title, the author (with the avatar, or without it when avatars are turned off), the dates, the restore link (only for a user who can edit the post), the autosaves, and the current revision;
* a post with one revision, a post whose revisions are turned off (only the autosaves and the current post), and the `wp_prepare_revision_for_js` filter."	hmbashar
	56576	When post is switched from published to draft, create revision		Revisions		normal	normal	Awaiting Review	enhancement	new		2022-09-15T08:35:32Z	2025-09-10T11:26:43Z	"Hello,

I was thinking if it's possible to create a revision also when a post is switched from published to draft. At the moment, I was unable to see when someone switched the post status.

Looking forward to your answers.

Kind regards,"	denisflorin197
	59419	"Revisions page: how to support varying ""Go to editor"" link templates"		Revisions		normal	normal	Awaiting Review	feature request	new		2023-09-21T03:26:10Z	2023-11-21T01:46:00Z	"For various post types, the Block Editor redirects to admin/revision.php. 

The page admin/revision.php has a couple of ""Go to editor"" links, which open the the current post in the editor.

admin/revision.php builds the link by calling `get_edit_post_link()`, which uses the link template from `post_object->_edit_link`.

For most post types, including pages and posts, the `_edit_link` template looks something like this: post.php?post=%d.

get_edit_post_link() replaces the placeholder %d with the correct post id to build the edit post link.

Each page under Site Editor sidebar contains a link to admin/revision.php for page revisions.

However since the ""Go to editor"" links are constructed using `page_object->_edit_link`, they will always link to post editor.

I would expect the links to return me to the editor from which I last came.

The upshot is that we want the `_edit_link` template to vary depending on the origin of the referring URL. For pages, that means if we're coming from the Site Editor, the return template should be something similar to what the wp_template post object uses, which is site-editor.php?postType=%s&postId=%d&canvas=edit.

The question is ""what would be the best way to do this?""

Challenges:

1. admin/revision.php does not know where the revision is coming from, that is Post Editor vs Site Editor, but we could use some sort of `$_GET` query param on `revisions.php` to solve that. E.g., let's call it editor: `revision.php?revision=150&editor=site`. That is very specific and might be too narrow.
2. If 1, what then? Whether we grab the query param on the revision page and pass it to `get_edit_post_link` (thereby changing the function signature), or modify `get_edit_post_link` to do the lot internally, we'd still have to build the link accordingly to some pattern.
3. If 2, where would we store that pattern? `_edit_link` is taken. Maybe a new property on the post object? `_edit_site_link` or something.


It can be done I think without great fuss using the `get_edit_post_link` filter. With it we can return whatever we want.

We would just have to come up with migration approach for Core and I'm not sure what the best option would be. 

Thank you for considering this issue!




For discussion and context see: https://github.com/WordPress/gutenberg/issues/51343#issuecomment-1724580879"	ramonopoly
	43676	.htaccess rules don't work with Plain		Rewrite Rules		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-04-02T21:03:48Z	2022-01-05T12:08:54Z	"If I use ""Plain Url Style"" in Permalink Settings then I can't add custom rules .htaccess from mod_rewrite_rules filter. I think that this is bug.

For example:

{{{#!php
<?php
function uploads_from_remote_server( $rules ) {
	$rules = ""<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule wp-content/uploads/(.*) http://example.com/wp-content/uploads/$1 [NC,L]
</IfModule>\n\n"" . $rules;

	return $rules;
}

add_filter( 'mod_rewrite_rules', 'uploads_from_remote_server' );
}}}

This filter not working in Plain Url Style but should."	sebastian.pisula
	41891	Bug when changing $(comments_)pagination_base of WP_Rewite instance to string with non-ASCII characters		Rewrite Rules		normal	normal	Awaiting Review	defect (bug)	new		2017-09-15T13:05:55Z	2017-09-15T13:05:55Z	"When you change `$pagination_base`/`$comments_pagination_base` for `WP_Rewrite` instance to string with ASCII characters, it works as expected. But when you change to non-ASCII string, it doesn't work because it redirects from `/<pagination_base>/2` to `/<pagination_base>/2/<pagination_base>/2` which returns 404.  If you use `rawurlencode()` on that string, it again works as expected.

So, in short:
`$GLOBALS['wp_rewrite']->pagination_base = 'something';` - works
`$GLOBALS['wp_rewrite']->pagination_base = 'чџш';` - doesn't work
`$GLOBALS['wp_rewrite']->pagination_base = rawurlencode( 'чџш' );` - works

This doesn't apply to other bases, they work without `rawurlencode()`, for example:
`$GLOBALS['wp_rewrite']->author_base = 'гдђ';`"	dimadin
	54654	Can flush_rewrite_rules() be called automatically after changing the site URL?		Rewrite Rules		normal	normal	Awaiting Review	defect (bug)	new		2021-12-18T08:52:09Z	2021-12-18T14:50:04Z	"A common issue that users run into after changing the WordPress Address and/or Site Address (such as when migrating to a new domain) is that some of their links stop working correctly after a site change.

The most common fix/workaround is to go to the wp-admin > Settings > Permalinks page and click ""Save"" once or twice, which usually does the trick.

Examples of this problem and workaround can be found all over Google:

https://www.google.com/search?q=wordpress+links+not+working+after+migration

https://wordpress.stackexchange.com/questions/221108/wordpress-links-not-working-after-migration

https://wordpress.stackexchange.com/questions/14685/after-server-migration-only-the-homepage-works

https://wordpress.stackexchange.com/questions/253245/wordpress-migration-getting-404-errors-only-home-page-works

https://stackoverflow.com/questions/42162570/wordpress-issue-after-migration-only-homepage-works

https://stackoverflow.com/questions/39514343/wordpress-migration-broken-links

I'm not sure if there's already a ticket for this anywhere, but surely there's some way to do this automatically? The view counters on the various Stack Exchange questions suggest that it has affected hundreds of thousands or even millions of users, so fixing it would be a fantastic QOL improvement, especially for non-technical users and users who don't notice the broken links until they start getting complaints.

Would it be possible to automatically flush_rewrite_rules() in the core function that handles the address change? I haven't looked into what happens when the permalink settings are resaved, but I would imagine that it does something similar there."	pikamander2
	40339	If $home_path=='wp' then WP::parse_request() will remove 'wp' from 'wp-json/wc/v1/products' in $pathinfo		Rewrite Rules	4.7.3	high	critical	Awaiting Review	defect (bug)	new	has-patch	2017-04-02T13:32:06Z	2026-10-06T03:45:20Z	"I have installed WordPress in a subdirectory 'wp' so $home_path is 'wp'. The statement 

{{{#!php
pathinfo = preg_replace( $home_path_regex, '', $pathinfo );
}}}

is called with arguments

{{{
$home_path_regex = '|^wp|i'
$pathinfo = 'wp-json/wc/v1/products'
}}}

 and returns

{{{
$pathinfo = '-json/wc/v1/products'
}}}


Since, $_SERVER[ 'PATH_INFO' ] is the trailing part of the path wouldn't the leading home path be already removed?

Here is the $_SERVER variable:

{{{
$_SERVER=Array
(
    [SERVER_SOFTWARE] => PHP 5.6.30 Development Server
    [REQUEST_URI] => /wp/wp-json/wc/v1/products
    [DOCUMENT_ROOT] => C:\\WWW
    [REMOTE_ADDR] => 192.168.1.113
    [REMOTE_PORT] => 54207
    [SERVER_PROTOCOL] => HTTP/1.1
    [SERVER_NAME] => me.local.com
    [SERVER_PORT] => 80
    [REQUEST_METHOD] => GET
    [SCRIPT_NAME] => /wp/index.php
    [SCRIPT_FILENAME] => C:\\WWW\\wp\\index.php
    [PATH_INFO] => /wp-json/wc/v1/products
    [PHP_SELF] => /wp/index.php/wp-json/wc/v1/products
    [HTTP_HOST] => me.local.com
    [HTTP_CONNECTION] => keep-alive
    [HTTP_CACHE_CONTROL] => max-age=0
    [HTTP_UPGRADE_INSECURE_REQUESTS] => 1
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    [HTTP_ACCEPT_ENCODING] => gzip, deflate, sdch
    [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.8,en-AU;q=0.6
    [HTTP_COOKIE] => wp-settings-1=libraryContent%3Dbrowse%26mfold%3Do%26editor%3Dhtml%26posts_list_mode%3Dexcerpt%26widgets_access%3Don%26post_dfw%3Don%26hidetb%3D1; wp-settings-time-1=1489742056; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_82a92e8b6fd4f1e7bd35e69acfebe645=mc%7C1491295996%7ClSYWOrX5ljiNvjMUuOsdx3Hqd3B4PsyM6sdhaHx3VHB%7C0f85cc8928c44377d339344bd93f970151fb018ad0623b09964e252bc6104127
    [REQUEST_TIME_FLOAT] => 1491131923.8711
    [REQUEST_TIME] => 1491131923
)
}}}


"	Magenta Cuda
	63353	Invalid type false for permalink_structure property		Rewrite Rules		normal	trivial	Awaiting Review	defect (bug)	new	has-patch	2025-04-25T21:55:37Z	2025-04-28T07:17:55Z	"[https://github.com/WordPress/wordpress-develop/blob/c38f581f03f44e7f4bea7824973e1669a77226ab/src/wp-includes/class-wp-rewrite.php#L1923 class-wp-rewrite.php, line 1923]

If the option is not set (e.g. when installing WP), `get_option` returns false, which will subsequently pass false to `substr`/`str_ends_with` which is invalid
(if `strict_type` were used, would be a fatal `TypeError`)"	kkmuffme
	28517	Logic error in WP_Rewrite flush_rules		Rewrite Rules	3.7	normal	normal	Future Release	defect (bug)	new	dev-feedback	2014-06-12T20:42:02Z	2017-05-18T15:06:04Z	"The current logic in flush_rules of WP_Rewrite is flawed:

{{{
if ( ! $hard || ! apply_filters( 'flush_rewrite_rules_hard', true ) ) {
    return;
}
}}}

Given the four possible scenarios:

$hard has two unique values:
* true (by default)
* false

Casting apply_filters( 'flush_rewrite_rules_hard', true ) to a boolean also has two unique values:
* true (by default)
* true (a filter returns a value that evaluates to true)
* false (a filter returns a value that evaluates to false)

=============================================

If $hard is true and either no filters are added, or a filter is added that returns true:
{{{
! true  || ! true = false || false = false
}}}
{{{
#!html
<span style=""color: red; font-weight: strong;"" >UNINTENTIONAL FAILURE</span>
}}}

=============================================

If $hard is true and a filter is added that returns false:
{{{
! true || ! false = false || true = true
}}}
{{{
#!html
<span style=""color: orange; font-weight: strong;"" >UNINTENTIONAL SUCCESS</span>
}}}

=============================================

If $hard is false and either no filters are added, or a filter is added that returns true:
{{{
! false || ! true = true || false = true
}}}
{{{
#!html
<span style=""color: orange; font-weight: strong;"" >UNINTENTIONAL SUCCESS</span>
}}}

=============================================

If $hard is false and a filter is added that returns false:
{{{
! false || ! false = true || true = true
}}}
{{{
#!html
<span style=""color: red; font-weight: strong;"" >UNINTENTIONAL FAILURE</span>
}}}

=============================================

As seen above, 50% of the unique scenarios give an unexpected response.  While the other 50% of the scenarios give the expected response, but for the wrong reason."	numis
	52419	Pagination adds trailing slash when it shouldn't		Rewrite Rules	5.6	normal	minor	Awaiting Review	defect (bug)	new		2021-02-02T09:24:13Z	2021-02-02T09:24:13Z	"When the WordPress site has been set-up to not use trailing slashes, the 1st page of the pagination still adds a trailing slash to the URL.
Tested with WordPress 5.6 and 5.5 in Nginx 1.16.0 with Twentytwenty, no active plugins.

----

For example:
The archive page is https://playground.local/category/classic, when using the pagination to go to page 2, the url changes to https://playground.local/category/classic/page/2. Now, when I try to navigate back to page 1 of the archive, the URL is https://playground.local/category/classic/. Adding a trailing slash, even though the WordPress installation has been set up so that it doesn't use trailing slashes."	DhrRob
	52969	Permalink for /wp-includes falls back to blog post		Rewrite Rules	5.6.1	normal	normal	Awaiting Review	defect (bug)	new		2021-04-05T09:39:45Z	2021-04-05T10:11:00Z	"After setting up WordPress, and enabling pretty looking permalinks, I found something odd happening.

The Apache rewrite rules have been also set up in the VHost config:

{{{
ServerName example.com

DocumentRoot /usr/share/wordpress
Alias /wp-content /var/www/example.com/wp-content

RewriteEngine On

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

RewriteRule ^index\.php$ - [L]
RewriteCond /usr/share/wordpress%{REQUEST_URI} !-f
RewriteCond /usr/share/wordpress%{REQUEST_URI} !-d
RewriteCond /var/www/example.com%{REQUEST_URI} !-f
RewriteCond /var/www/example.com%{REQUEST_URI} !-d
RewriteRule . /index.php [L]

# Directory permissions omitted
}}}

'''Note''': I have the (shared) code in `/usr/share/wordpress` and the actual ''site-specific'' content in `/var/www/<domain-name>` so I can host several sites with the same WP installation.

So, everything seems fine and dandy, until Chrome tries to load some `.js.map` files, which will raise a warning in the browser console:
    DevTools failed to load SourceMap: Could not parse content for https://example.com/wp-includes/js/underscore.min.js.map: Unexpected token < in JSON at position 0

Having a look into the issue, I found, that most of the non-existent files will correctly return a 404 (as before the permalinks), however anything below `/wp-includes/js/` will fall back to my first blog post. (So `https://7c00.io/wp-includes/js/foo/` will also show my ""hello-world"" test post)

As due the rewrite rules everything is essentially handled by PHP, I suspect this is an issue with the WP permalinks business logic."	fancsali
	41791	Unicode + add_permastruct breaks rewrite rules		Rewrite Rules	4.9	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2017-09-04T11:15:57Z	2026-08-21T12:42:59Z	"This was reported here https://github.com/woocommerce/woocommerce/issues/16673

To recreate the issue, create a taxonomy with a cyrillic name such as Сертификат. View the taxonomy archive. You'll see no results; it will go to the homepage rather than an archive.

In WooCommerce you can recreate this by creating an attribute (Product > Attributes) with a cyrillic name, and enabling the 'archive', assigning a term from this taxonomy to a product, and trying to view products by that term.

I managed to trace it back to the `add_permastruct`. The `struct` is added with unicode % encoded characters. When the rewrite rules are processed, it thinks these are placeholders so the `matches` variables do not align. See this screenshot for clarity:

https://www.dropbox.com/s/5vztnfm6895488a/query%20is%20wrong.png?dl=0

Notice all the $matches? Compare to a working taxonomy:

https://www.dropbox.com/s/24zyr5v7taw7b60/correct.png?dl=0

This can be fixed by using `urldecode` when adding the permastruct. I don't know if this has side effects but it worked in testing.

Patch to follow.


"	mikejolley
	49155	WP_HOME constant will force-redirect static front page but not posts on front page		Rewrite Rules	5.3.2	normal	normal	Awaiting Review	defect (bug)	new		2020-01-09T03:42:32Z	2020-01-09T03:42:32Z	"When a static front page is set and I have an HTTPS URL configured with the `WP_HOME` constant (such as `https://example.org`) and I try to navigate to `http://example.org`, I'll be redirected to `https://example.org`.

When the front page is set to show latest posts and I do the same thing, WP will respond successfully to `http://example.org` with no redirect.

I imagine this isn't specific to http/https. If my server is configured to respond to other URLs with the WP app, I ''think'' it would respond to anything. 

This behavior seems like it ought to be consistent. The code in `wp-includes/canonical.php` around line 192 is responsible, and perhaps another case should be added?"	eclev91
	54161	"WordPress destroy iis web.config when using ""location"" config."		Rewrite Rules	5.8.1	normal	critical	Awaiting Review	defect (bug)	new		2021-09-22T15:53:05Z	2021-09-22T15:53:05Z	"When wordpress doesn't find rewrite rulres, it tries to add them, and it works correctly.

BUT

If we use the ""location"" in web.config, that allow config to NOT inherit in sub applications, it crashes web.config.

When web.config looks like this: 


{{{
<?xml version=""1.0"" encoding=""UTF-8""?>
<configuration>
  <location path=""."" inheritInChildApplications=""false"">
    <system.webServer>
      <rewrite>
        <rules>

}}}
...

wordpress thinks that the ""system.webserver"" is not present, so it append it at the end of the web.config.  And, we get a ""500 error"" because that new edited web.config is invalid.

We fixed it temporary by disabling ""write"" access to web.config for our app pool, but you should fix it, and correctly find the ""rewrite rule"" even if it's under the <location> xml path."	foxontherock
	44039	attachment rewrite rule redirects to posts instead of showing 404		Rewrite Rules		normal	minor	Awaiting Review	defect (bug)	new		2018-05-10T17:04:23Z	2018-05-10T19:33:26Z	"Instead of showing 404 for an invalid attachment slug, you will be redirected to a valid post slug.

The blog is set to permalink structure `%postname%`

The attachment rule for this is `[^/]+/([^/]+)/?$`

And the rewrite is `index.php?attachment=$matches[1]`

Tested on a clean WordPress-installation running twentyseventeen if you visit /hello-world/sample-page/
you will be redirected to /sample-page.

Is this really how it should be?

"	swedish boy
	57507	function wp_unique_post_slug inconsistent for numerical page slugs, e.g. 404		Rewrite Rules	6.1.1	normal	minor	Awaiting Review	defect (bug)	new	close	2023-01-19T11:03:36Z	2025-09-03T17:11:22Z	"
{{{
if ( $post_name_check
                        || in_array( $slug, $feeds, true ) || 'embed' === $slug
                        || preg_match( ""@^($wp_rewrite->pagination_base)?\d+$@"", $slug )
                        || $is_bad_hierarchical_slug
                )
}}}

Will always return true for preg_match as long as 'page' is optional and it is a numerical slug, e.g. 404


{{{
preg_match( ""@^($wp_rewrite->pagination_base)?\d+$@"", $slug )
preg_match( ""@^(page)?\d+$, 404"") => 1
}}}


Assuming pagination is the point for this check, a possible solution could be to check if post pagination navigation exists first.


{{{#!php
$pagination_based = get_the_post_navigation() ? preg_match( ""@^($wp_rewrite->pagination_base)?\d+$@"", $slug ) : false;
if ( $post_name_check
                        || in_array( $slug, $feeds, true ) || 'embed' === $slug
                        || pagination_based
                        || $is_bad_hierarchical_slug
                )

}}}


Suggestion: Either allow numerical slugs if it does not interfere with paginations, or disallow it with a warning.







 "	arve5
	40719	iis7_add_rewrite_rule and iis7_delete_rewrite_rule create malformed web.config		Rewrite Rules	4.7.4	normal	normal	Awaiting Review	defect (bug)	new		2017-05-10T19:14:11Z	2020-02-15T21:56:04Z	"Running wordpress in azure on version 4.7.4 and i have a custom web config utilizing the location directive. The methods iis7_add_rewrite_rule and iis7_delete_rewrite_rule do not take into account when these directives exist and create a new system.webserver line in the web.config at the bottom causing the server to 500 error. This seems to happen even when simply deleting a post using the admin console, wp is thinking the web.config is wrong and trying to add lines. As an immediate work around i have disabled these methods, is there a configuration that will allow me to stop wordpress from ever doing this? I dont have the ability to change the web.config permissions because its a PAAS implementation. Example config:

<configuration>
    <location path=""wp-admin"">
        <system.webServer>
            <security>
                <ipSecurity allowUnlisted=""false"">
                    <add ipAddress=""x.x.x.x"" allowed=""true"" />
                </ipSecurity>
            </security>
        </system.webServer>
    </location>
    <location>
	    <system.webServer>
	        <security>
                     <requestFiltering removeServerHeader=""true"" />
                 </security>
	    </system.webServer>
	 </location>
</configuration>

This is only a partial sample of the file. "	jaendres
	46000	non empty post object in case of error 404		Rewrite Rules	5.0.3	normal	normal	Awaiting Review	defect (bug)	new		2019-01-16T09:21:09Z	2019-01-16T09:21:09Z	"In case of an 404 error the Posts Object is not empty if permalink setting is something like 
{{{
/blog/%postname%/
}}}

The attached plugin can be used to debug this issue.

== How to reproduce the problem

**Step 1**

Change permalink setting to 
{{{
/%postname%/
}}}

Request a non existing URL like example.com/non-existent.

Result: the Posts Object is empty

**Step 2**

Change permalink setting to 
{{{
/blog/%year%/%monthnum%/%postname%/
}}}

Request a non existing URL like example.com/non-existent.

Result: the Posts Object is empty

**Step 3**

Change permalink setting to 
{{{
/blog/%postname%/
}}}

Request a non existing URL like example.com/**blog**/non-existent.

Result: the Posts Object is empty

**Step 4**

permalink setting is still
{{{
/blog/%postname%/
}}}

Request a non existing URL like example.com/non-existent.

Result: **the Posts Objec is NOT empty**

== Impact ==

Plugins that use **the_posts** filter may produce wrong results.

I've tested it with 5.0.3 but I'm pretty sure, previous versions are affected also."	petersplugins
	58516	url_to_postid does not return post id for static Posts page		Rewrite Rules		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-06-12T13:29:36Z	2023-06-12T13:38:13Z	"Steps to reproduce:
- Create a page called ""Blog"", slug: blog. ID: 10 permalink: https://a.com/blog/
- Go to WordPress->Settings->Reading-> Your homepage displays -> A static page -> Posts page -> set the previously created ""Blog"" page.
- Call ->

{{{#!php
<?php
var_dump(url_to_postid('https://a.com/blog/'));

}}}

**Result:** 0
**Expected result:** 10


The cause is that this query is not for a singular page, so $query->is_singular will return false. 

The following code would solve this issue:
{{{#!php
<?php
// Do the query.
// Do the query.
$query = new \WP_Query($query);
if (!empty($query->posts) && $query->is_singular) {
	return $query->post->ID;
} else {
	if ($query->get_queried_object() instanceof WP_POST) {
		return $query->queried_object_id;
	}

	return 0;
}
}}}


"	nextendweb
	58536	url_to_postid does not work at MS install in context of another blog when $wp_rewrite->use_verbose_page_rules differs		Rewrite Rules		normal	normal	Awaiting Review	defect (bug)	new		2023-06-14T11:18:44Z	2023-10-29T06:02:12Z	"In a multisite installation, where there are blogs with mixed permastruct of some have the `$wp_rewrite->use_verbose_page_rules` set to `true` and some to `false`, the `url_to_postid` fails to find a post, since it's queried as a page, [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/rewrite.php?rev=54364#L609 due to a falsey check].

As the rewrites rules are untouched upon `switch_to_blog` action and as the `url_to_postid` function works directly with the `rewrite_rules` option ([https://core.trac.wordpress.org/browser/trunk/src/wp-includes/rewrite.php?rev=54364#L563 via `WP_Rewrite::wp_rewrite_rules()` function] ), IMHO the best way to fix such a case would be to not rely on the property, but perform the same check as when the `use_verbose_page_rules` property is being set (see the attached patch)."	david.binda
	56592	Add filter to wp_redirect_admin_locations()		Rewrite Rules	6.0.2	normal	normal	Awaiting Review	enhancement	new		2022-09-17T01:00:52Z	2022-09-17T01:00:52Z	"Changing the default admin redirections currently requires removing the `template_redirect` action that calls this function and replacing it with a different function.

A more consistent way to do it would be to provide a filter hook for `$admins` and another for `$logins`."	galbaras
	43678	Add indents to default .htaccess rules		Rewrite Rules		normal	normal	Awaiting Review	enhancement	new	has-patch	2018-04-02T21:27:13Z	2018-04-02T21:27:50Z	"I think that should be:

{{{
# BEGIN WordPress
<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteBase /wordpress.dev/
	RewriteRule ^index\.php$ - [L]
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule . /wordpress.dev/index.php [L]
</IfModule>
# END WordPress
}}}

instead

{{{
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress.dev/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress.dev/index.php [L]
</IfModule>


# END WordPress
}}}"	sebastian.pisula
	34776	Introduced the `$site_root` and `$home_root` parameter in `mod_rewrite_rules`		Rewrite Rules		normal	normal	Awaiting Review	enhancement	new	has-patch	2015-11-24T07:51:30Z	2018-04-01T18:34:16Z	"if I want make custom rewrite rule I must use in filter this script:

{{{#!php
<?php
$home_root = parse_url(home_url());
		if ( isset( $home_root['path'] ) )
			$home_root = trailingslashit($home_root['path']);
		else
			$home_root = '/';
}}}

So I think that this is good idea with new params in filter"	sebastian.pisula
	64037	New filters for managing rewrite rules		Rewrite Rules		normal	normal	Awaiting Review	enhancement	new		2025-09-24T12:37:35Z	2025-09-24T12:37:35Z	"
Hello,

Almost two years ago, I developed a rewrite rules system to enable our beloved WordPress to manage “sub-sites.”
They take the form *''host*''/my-sub-site/*''classic-rewriting''*/.
It works perfectly.

To do this, I had to divert the “parse_request” function to add two filters.
''(Managing the “page” post type is really confusing in “parse_request” and does not follow the logic of custom post types).''

To help other developers and ensure the longevity of this tool, could you add the following two lines to the code (apply_filters) ?

{{{#!php
<?php
wp-includes/class-wp.php
class WP {

	function parse_request {

		...

		// Look for matches.
		$request_match = $requested_path;
		
		$request_match = apply_filters('wp_filter_request_match', $request_match, $this);
		$requested_path = apply_filters('wp_filter_requested_path', $requested_path, $this);
		...		
		if (empty($request_match)) {
		
		...
		}
		...
	}
}
}}}


Thank you in advance.

Stephan Renault"	StephanR
	41946	Option to delete_with_markers		Rewrite Rules	4.8.2	normal	normal	Awaiting Review	enhancement	new		2017-09-21T18:14:48Z	2017-09-21T18:14:48Z	"I was trying to develop a plugin for adding speed optimisation code to htaccess using builtin functions . I happened to find options to insert_with_markers and extract_with_markers. But I found there was not a direct option to delete_with_markers. I tried searching as much as possible and finally came out with delete_with_markers myself which I have used in my plugin (which I will be submitting in a day for review).I have refered the insert_with_markers and extract_with_markers to retain the WP style. I thought to share , if this could be integrated in WP as well for it could be of use to many.

function delete_with_markers( $filename, $marker ) {
	        if ( ! file_exists( $filename ) ) {
	                if ( ! is_writable( dirname( $filename ) ) ) {
	                        return false;
	                }
	                if ( ! touch( $filename ) ) {
	                        return false;
	                }
	        } elseif ( ! is_writeable( $filename ) ) {
	                return false;
	        }
	
	
	        $start_marker = ""# BEGIN {$marker}"";
	        $end_marker   = ""# END {$marker}"";
	
	        $fp = fopen( $filename, 'r+' );
	        if ( ! $fp ) {
	                return false;
	        }
	
	        // Attempt to get a lock. If the filesystem supports locking, this will block until the lock is acquired.

	        flock( $fp, LOCK_EX );
	
	        $lines = array();
	        while ( ! feof( $fp ) ) {
	                $lines[] = rtrim( fgets( $fp ), ""\r\n"" );
	        }
	
	      if ( $markerdata = explode( ""\n"", implode( '', file( $filename ) ) ));
	        {
	                $state = false;
	                foreach ( $markerdata as $markerline ) {
	                        if (strpos($markerline, '# BEGIN ' . $marker) !== false)
	                                $state = true;
	                        if (! $state )
                                $result[] = $markerline;
                            if (strpos($markerline, '# END ' . $marker) !== false)
	                                $state = false;
	                        
	                }
	        }
	
	     	        	
	        // Generate the new file data
        $new_file_data = implode( ""\n"", array_merge(
                $result
	        ) );
	
	        // Write to the start of the file, and truncate it to that length

	        fseek( $fp, 0 );
	        $bytes = fwrite( $fp, $new_file_data );
	        if ( $bytes ) {
	                ftruncate( $fp, ftell( $fp ) );
        }
	        fflush( $fp );
        flock( $fp, LOCK_UN );
	        fclose( $fp );
	
	        return (bool) $bytes;
}"	shivi66
	46087	Short-circuit `page_on_front` check during site creation		Rewrite Rules		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2019-01-23T22:58:45Z	2019-01-23T22:58:45Z	"During site initialization, `wp_installing()` is set to `true`. Among other things, this toggle disables all caching from `get_option()`. While I think that this behavior could use a general review (it's legacy behavior from MU that may have been an overly-broad fix for a narrow `alloptions` problem), there's one specific offender I'd like to consider addressing: `page_on_front`. `generate_rewrite_rules()` calls `get_option( 'page_on_front' )` several times for each rewrite rule, and each of these calls requires a database read.

Since `page_on_front` is set to 0 in the default schema, I propose that we short-circuit the check during site initialization (`wp_install_defaults()`). Something like:

{{{
add_filter( 'pre_option_page_on_front', '__return_empty_string' );
$wp_rewrite->init();
$wp_rewrite->flush_rules();
remove_filter( 'pre_option_page_on_front', '__return_empty_string' );
}}}

Not terribly elegant, but it can reduce DB I/O by many dozens of reads."	boonebgorges
	66496	Tests: Add unit coverage for the permalink methods of WP_Rewrite		Rewrite Rules		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-05T20:30:24Z	2026-11-05T20:48:17Z	"`WP_Rewrite` in `src/wp-includes/class-wp-rewrite.php` builds the permalink structures of the site, but several of its methods have no direct PHPUnit coverage. A search of `tests/phpunit/tests` finds no references to:

 * `using_permalinks()`, `using_mod_rewrite_permalinks()`, `preg_index()`, `set_category_base()` and `set_tag_base()`.
 * `get_date_permastruct()`, `get_year_permastruct()`, `get_month_permastruct()`, `get_day_permastruct()`, `get_extra_permastruct()`, `get_category_permastruct()` and `get_tag_permastruct()`.
 * `get_author_permastruct()`, `get_search_permastruct()`, `get_page_permastruct()`, `get_feed_permastruct()` and `get_comment_feed_permastruct()`.
 * `add_external_rule()` and `add_endpoint()`.

They are exercised indirectly through the rewrite and query tests, so a change in the structure of a permalink is hard to spot and to attribute. Direct tests describe the current behavior of each method.

'''Proposed scope'''

This ticket is meant to be handled with several small patches, one for each group of related methods, so each one is easy to review. The tests go in `tests/phpunit/tests/rewrite/`, one class per method or per small group of methods.

 1. '''Permalink checks and bases.''' `using_permalinks()` and `using_mod_rewrite_permalinks()` with plain, pretty and `index.php` structures. `preg_index()` with and without a prefix for the matches. `set_category_base()` and `set_tag_base()`: the option is updated and the rules are initialized again only when the base changes.
 1. '''Date and taxonomy structures.''' `get_date_permastruct()` for each order of the year, month and day, and with `%post_id%` near the start. `get_year_permastruct()`, `get_month_permastruct()` and `get_day_permastruct()` derived from it, and `false` without permalinks. `get_extra_permastruct()`, `get_category_permastruct()` and `get_tag_permastruct()`.
 1. '''Other structures, external rules and endpoints.''' `get_author_permastruct()`, `get_search_permastruct()`, `get_page_permastruct()`, `get_feed_permastruct()` and `get_comment_feed_permastruct()` with the front and the root, and the custom bases. `add_external_rule()` and `add_endpoint()`, including the query variable.

'''Out of scope'''

This ticket only adds tests and does not change behavior. The following are left out on purpose because other tickets are working on them:

 * `using_index_permalinks()`, see #58764.
 * `generate_rewrite_rules()`, `generate_rewrite_rule()` and `page_rewrite_rules()`, see #35916 and #36812.
 * `mod_rewrite_rules()` and `iis7_url_rewrite_rules()`, which build server configuration, see #34776 and #40719.

Related: #65819."	hmbashar
	40340	"""Attach to existing content"" modal shows posts and pages of other users"		Role/Capability		normal	normal	Awaiting Review	defect (bug)	reopened	has-patch	2017-04-02T15:19:15Z	2026-10-30T17:27:50Z	"From the Media library, a user can attach media (through the Attach link) that were uploaded by himself only. The first image shows the Attach links appearing for certain media only.

In the same way, the ""Attach to existing content"" should also list only those posts/pages for which the user has the permissions to attach.

Instead it lists all posts (including private) and pages of all users, and then, upon selection, gives the message ""Sorry, you are not allowed to edit this post."" 

"	menakas
	63440	6.8.1 Multisite: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, string given in wp-includes/class-wp-roles.php:291		Role/Capability		normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2025-05-13T12:20:47Z	2025-05-15T10:20:46Z	"I held off upgrading to 6.8 because of the multisite issue with older sites. I saw that bug was fixed in 6.8.1, but on upgrading I saw this error:

{{{
Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, string given in /.../wp-includes/class-wp-roles.php:291
Stack trace:
#0 /.../wp-includes/class-wp-roles.php(291): array_keys()
#1 /.../wp-includes/class-wp-roles.php(332): WP_Roles->init_roles()
#2 /.../wp-includes/ms-blogs.php(707): WP_Roles->for_site()
#3 /.../wp-includes/class-wp-hook.php(326): wp_switch_roles_and_user()
#4 /.../wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#5 /.../wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /.../wp-includes/ms-blogs.php(587): do_action()
#7 /.../wp-includes/admin-bar.php(685): switch_to_blog()
#8 /.../wp-includes/class-wp-hook.php(324): wp_admin_bar_my_sites_menu()
#9 /.../wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#10 /.../wp-includes/plugin.php(565): WP_Hook->do_action()
#11 /.../wp-includes/admin-bar.php(97): do_action_ref_array()
#12 /.../wp-includes/class-wp-hook.php(324): wp_admin_bar_render()
#13 /.../wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#14 /.../wp-includes/plugin.php(517): WP_Hook->do_action()
#15 /.../wp-admin/admin-header.php(277): do_action()
#16 /.../wp-admin/edit-form-blocks.php(376): require_once('...')
#17 /.../wp-admin/post.php(187): require('...')
#18 {main} thrown in /.../wp-includes/class-wp-roles.php on line 291
}}}

Strangely, the side admin bar renders, but the top admin bar doesn't."	thejasonator
	47897	Introduce method to introduce new roles and caps independently of db upgrades.		Role/Capability		normal	normal	Awaiting Review	defect (bug)	new		2019-08-18T22:42:27Z	2019-08-18T22:42:27Z	"Presently adding new roles and caps is avoided to guarantee backward compatibility with sites that don't update the database schema. This has resulted in:

* a bunch of capabilities being used for purposes other than their original purpose
* abuse of meta caps of faux primitives
* filters added to the `user_has_cap` to introduce faux capabilities (three and counting)

It's a little confusing and these hard coded capabilities make it more complex for sites with custom roles to manage granular capabilities.

Additionally, it has lead to problems in which custom roles that should be given the capability are not. For example a custom role with page editing permissions but no post editing permissions should probably be allowed to add shared blocks.

For the majority of sites which run database upgrade routines, it would be helpful to upgrade the roles and capabilities in the database.

For sites which do not, faux capabilities can be added to the `user_has_cap` filter in a single function, based on the database version. 

For sites with hard coded arrays, the presence of the new capability can be detected and added as a faux capability if it is not.

As an initial construct, a faux capabilities function can be added:

{{{#!php
<?php
function wp_update_capabilities( $user_caps ) {
  if ( /* database version < block editors */ ) {
    // Add caps matching user's `*_posts` cap
  }

  if ( /* database version < site health upgrade */ ) {
    // Add caps for users wiht `install_plugins` 
  }

  // etc
  return $user_caps;
}
add_filter( 'user_has_cap', 'wp_update_capabilities' );
}}}

Additional design decisions to be made:

* how to use the same function for db updates
* to filter or not to filter faux capabilities
* handling the hard coded arrays"	peterwilsoncc
	49673	Mass select change of role is bugged.		Role/Capability		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-03-21T22:38:18Z	2020-03-22T07:55:11Z	"Hello there. I've notice that when you change the role of user using the fast select and apply, doesn't really gives him those permissions.

https://prnt.sc/rkdsic

CHeck picture. If i select the test user like that as ADministrator, he will get the Title, but not the permission. I wouldn't be administrator. I need to open the user's profile and click Update user. That's the only way it will work:

https://prnt.sc/rkdtyx


I've tested that on 2 wordpress sites, last verison. Both are with the same bug. "	qnkov
	50260	Multisite - Getting actual user capabilities with get_role_caps() different with current_user_can()		Role/Capability	5.4.1	normal	normal	Awaiting Review	defect (bug)	new	needs-docs	2020-05-27T08:33:02Z	2023-08-04T07:46:39Z	"If I check below user capabilities for **Administrator** then I get both capabilities as `false`.


{{{
current_user_can( 'install_plugins' )
current_user_can( 'activate_plugins' )
}}}

But, If I check the same capabilities by login to the **Super Administrator** then both return `true`. 

The **administrator** user role has no such capabilities but, If we check the current user capabilities with: 

{{{
$current_user = wp_get_current_user();
print_r( $current_user->allcaps );
print_r( $current_user->get_role_caps() );
}}}

Then for the **administrator** user role, I get below a list of capabilities:
{{{
// Array
// (
//     [switch_themes] => 1
//     [edit_themes] => 1
//     [activate_plugins] => 1
//     [edit_plugins] => 1
//     [edit_users] => 1
//     [edit_files] => 1
//     [manage_options] => 1
//     [moderate_comments] => 1
//     [manage_categories] => 1
//     [manage_links] => 1
//     [upload_files] => 1
//     [import] => 1
//     [unfiltered_html] => 1
//     [edit_posts] => 1
//     [edit_others_posts] => 1
//     [edit_published_posts] => 1
//     [publish_posts] => 1
//     [edit_pages] => 1
//     [read] => 1
//     [level_10] => 1
//     [level_9] => 1
//     [level_8] => 1
//     [level_7] => 1
//     [level_6] => 1
//     [level_5] => 1
//     [level_4] => 1
//     [level_3] => 1
//     [level_2] => 1
//     [level_1] => 1
//     [level_0] => 1
//     [edit_others_pages] => 1
//     [edit_published_pages] => 1
//     [publish_pages] => 1
//     [delete_pages] => 1
//     [delete_others_pages] => 1
//     [delete_published_pages] => 1
//     [delete_posts] => 1
//     [delete_others_posts] => 1
//     [delete_published_posts] => 1
//     [delete_private_posts] => 1
//     [edit_private_posts] => 1
//     [read_private_posts] => 1
//     [delete_private_pages] => 1
//     [edit_private_pages] => 1
//     [read_private_pages] => 1
//     [delete_users] => 1
//     [create_users] => 1
//     [unfiltered_upload] => 1
//     [edit_dashboard] => 1
//     [update_plugins] => 1
//     [delete_plugins] => 1
//     [install_plugins] => 1
//     [update_themes] => 1
//     [install_themes] => 1
//     [update_core] => 1
//     [list_users] => 1
//     [remove_users] => 1
//     [promote_users] => 1
//     [edit_theme_options] => 1
//     [delete_themes] => 1
//     [export] => 1
//     [restrict_content] => 1
//     [list_roles] => 1
//     [administrator] => 1
// )
}}}

Here we can see the Administrator user has the capability:

{{{
//     [install_plugins] => 1
//     [activate_plugins] => 1
}}}


But, When we check them with `current_user_can()` then both return false.

After debugging in dept I found that the `do_not_allow` is set for the Non-super admin users for install_plugins capability.

{{{
case 'update_plugins':
case 'delete_plugins':
case 'install_plugins':
case 'upload_plugins':
case 'update_themes':
case 'delete_themes':
case 'install_themes':
case 'upload_themes':
case 'update_core':
	...
	} elseif ( is_multisite() && ! is_super_admin( $user_id ) ) {
		$caps[] = 'do_not_allow';
	....
	break;
}}}

Same for the activate_plugins the capabilities are set as `[""activate_plugins"",""manage_network_plugins""]`

{{{
case 'activate_plugins':
case 'deactivate_plugins':
case 'activate_plugin':
case 'deactivate_plugin':
	$caps[] = 'activate_plugins';
	if ( is_multisite() ) {
		// update_, install_, and delete_ are handled above with is_super_admin().
		$menu_perms = get_site_option( 'menu_items', array() );
		if ( empty( $menu_perms['plugins'] ) ) {
			$caps[] = 'manage_network_plugins';
		}
	}
	break;
}}}

So, Ideally only those capabilities need to return by `$current_user->get_role_caps()`.

Those capabilities need to exclude from the list which current user cant perform. E.g.  `do_not_allow`. "	Mahesh901122
	40214	Some WP instances  prematurelly try to do capability tests, before the user object is loaded		Role/Capability	4.7.3	normal	normal	Awaiting Review	defect (bug)	new		2017-03-21T08:22:29Z	2017-03-21T08:22:29Z	"What happens is that an empty deserialized stdObject is passed (probably too early) to the WP_user object and the _wp_get_current_user function mistakenly presumes the WP_user object to be properly initialized, thus it prevents the administrators (in fact anyone from doing anything that need capability checking) from accesing the protected page.

A quick fix for the solution was this:
users.php 2487
changed from:
	if ( ! empty( $current_user )) {
changed to:
        if ( ! empty( $current_user ) && isset($current_user->data->id)) {

This is a strange bug... it didn't effect my staging boxes running on 7.0.8 but it did effect all my boxes running 7.0.15+
It seems to me very unbeliavable that such little change can do harm, but I can reproduce it everytime I try to move the project to a box.
Sorry I'm not a WP boy but do move sites requllary and I haven't experienced such behavior with 4.6 or earlier."	dffnbfee
	60026	Strange behavior WordPress in multisite environment wicustomizer		Role/Capability	6.4.2	normal	normal	Awaiting Review	defect (bug)	new	close	2023-12-07T08:34:37Z	2025-11-19T20:52:38Z	"I am stuck with implementing customization abilities to the WordPress login page as it is a part of my plugin.
I managed to make it work on a single site, and all things are flawlessly functional. but with multisite, I am stuck with two things.

If you open this URL on a single site or a multisite,
http://localhost/wptest2/wp-admin/customize.php?url=http://localhost/wptest2/wp-login.php

The first problem arises:

Single Site: The customizer will load the login page of your site in the customizer iframe.
But on multisite, load the dashboard of the current site.

The second problem is:
*On a single site, it works. if you try to change any customizer settings and press publish.
*But on Multisite, when you publish any change, it says, ""You need a higher level of permission.""
Note: With Customizer, if there is no URL redirection (http://localhost/wptest2/wp-admin/customize.php), I am able to publish any change without any problem on any site.

Any help?"	fkfaisalkhan007
	51651	The `read_post` meta capability returns an incorrect result for the inherit post status.		Role/Capability	3.4	normal	normal	Awaiting Review	defect (bug)	new		2020-10-27T23:29:33Z	2021-02-02T23:51:03Z	"When an attachment is uploaded via an edit post screen, it is given the inherit post status to determine whether it is published, private, etc.

The key definition within the post object are as follows:

{{{
post_type: attachment
post_status: inherit
post_parent: 1
}}}

The `inherit` post status is registered as `internal`, and is therefore not considered `public`. 

As the `read_post` meta capability gets the post status object without checking if it is inherited, it returns the incorrect result for logged in users able to read the post:


{{{#!php
<?php
// $post: attachment attached to a post/page.
$status_obj = get_post_status_object( $post->post_status /* 'inherit' */ );
}}}

To correctly determine if a user can read the post, the post status string ought to use `get_post_status()`:

{{{#!php
<?php
// $post: attachment attached to a post/page.
$status_obj = get_post_status_object( get_post_status( $post ) );
}}}

This potentially applies to other meta capabilities too."	peterwilsoncc
	59585	Unchecked variable creates fatal error in wp-includes/class-wp-user-query.php		Role/Capability	6.3.2	normal	normal	Awaiting Review	defect (bug)	new	needs-unit-tests	2023-10-10T13:32:17Z	2023-10-10T21:12:27Z	"Hello!

I've ran into a bug that had me need to modify core.

I have no clue why this bug happens in this setup in particular, i've got other WP websites running on the same server with no problem, but this one crashes with no plugins and twenty twenty two active.

Here is what I found; at line 483 there is an array_filter that passes a variable to the function... without verifying the variable is actually what is expected.

Bug is present in 6.3.2

{{{#!php
<?php
[...]
foreach ( $available_roles as $role => $role_data ) {
			$role_caps = array_keys( array_filter( $role_data['capabilities'] ) );

			foreach ( $capabilities as $cap ) { [...]
}}}

I fixed it by checking the variable is something before doing the array_filter

{{{#!php
<?php
foreach ( $available_roles as $role => $role_data ) {
			$role_caps = '';
			if(isset($role_data['capabilities'])){
				$role_caps = array_keys( array_filter( $role_data['capabilities'] ) );
			}else{
				return false;
			}

			foreach ( $capabilities as $cap ) {
}}}

I would like this to be added to core, so it doesnt crash anymore and wont crash when I update WordPress next time."	Frederic Pilon
	46440	WP_Roles data doesn't load correctly when 'switch_to_blog' is called in a multisite.		Role/Capability	5.1	normal	normal	Awaiting Review	defect (bug)	new		2019-03-08T03:07:08Z	2019-03-08T16:35:38Z	On `switch_to_blog` call, eventually it will come to `get_roles_data` method of `WP_Roles` through `switch_blog` hook. Then this method checks `is_multisite() && $this->site_id != get_current_blog_id()`, but `$this->site_id != get_current_blog_id()` will always be false, because the current blog id is already set in `switch_to_blog`, hence it fails to load the data.	syammohanm
	62600	fatal error on capabilities.		Role/Capability		normal	normal	Future Release	defect (bug)	new	has-patch	2024-11-28T11:16:36Z	2026-08-10T13:59:04Z	"I ran in to a weird issue in a client website claiming it was the theme causing it.  I got a fatal error in every page on the author meta box when using the classic editor layout. 

{{{
Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in /home/wp-includes/class-wp-user-query.php:485 Stack trace: 
#0 /home/wp-includes/class-wp-user-query.php(485): array_filter(NULL) 
#1 /home/wp-includes/class-wp-user-query.php(79): WP_User_Query->prepare_query(Array) 
#2 /home/wp-includes/user.php(807): WP_User_Query->__construct(Array) 
#3 /home/wp-includes/user.php(1715): get_users(Array) 
#4 /home/wp-admin/includes/meta-boxes.php(976): wp_dropdown_users(Array) 
#5 /home/wp-admin/includes/template.php(1456): post_author_meta_box(Object(WP_Post), Array) 
#6 /home/wp-admin/edit-form-advanced.php(722): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post)) 
#7 /home/wp-admin/post.php(206): require('/home/...') 
#8 {main} thrown in /home/wp-includes/class-wp-user-query.php on line 485
}}}

It appeared that he some how in the past had a plugin that created user roles with capabilties, but also some without.

He stopped using the plugin.  And now he updated to the latest wp version he got fatals in every page.

My request is to change class-wp-user-query.php on line 485  and check if the capabilities  key isset to avoid fatal errors.

Please change class-wp-user-query.php  line 485  from

{{{#!php
<?php
$role_caps = array_keys( array_filter( $role_data['capabilities'] ) );
}}}


to

{{{#!php
<?php
$role_caps = array();
if ( isset( $role_data['capabilities'] ) ) $role_caps = array_keys( array_filter( $role_data['capabilities'] ) );
}}}


That would have prevented the fatal error on missing capabilty array key

Thank you"	neo2k23
	42136	manage_links should be a custom capability not a default		Role/Capability	4.8.2	normal	minor	Awaiting Review	defect (bug)	new		2017-10-07T19:36:23Z	2017-10-07T20:05:55Z	"I just noticed the capability manage_links still gets added to the default administrator capabilities upon a clean install.

If you check that with current_user_can it returns as false, even when a user has this capability, like an administrator. This is when the plugin link manager is not installed.

If you have the plugin link manager installed, it returns as true (as expected).

So I think it should be removed out of the core and inserted into the https://wordpress.org/plugins/link-manager/."	Beee
	52350	Add documentation about meta capabilities		Role/Capability		normal	normal	Awaiting Review	enhancement	new	needs-docs	2021-01-23T11:17:20Z	2021-01-23T11:17:20Z	"While working on a capabilities bug at the REST-API and also while working on custom  access-management-plugin I noticed there are no docs about Meta Capabilities.

WordPress has primitive capabilities and meta capabilities but the docs do not describe how they are related wich each other.
The ""Roles and Capabilities"" support article dos not even mention the ""meta capabilities"". The existence of meta capabilities is more or less concealed. 
https://wordpress.org/support/article/roles-and-capabilities/

Furthermore I noticed there is a special ""do_not_allow"" Keyword which can be used to prevent the user to execute the current action. 
This is also not mentioned in the docs.

The missing docs about the (meta-) capabilities topic makes it difficult for developers to deal with capabilities. It also potentially causes capabilities to be used incorrectly in core since there is no official guidance on how to use them."	derweili
	42589	"Add missing ""third argument"" documentation to user_can()"		Role/Capability		normal	normal	Future Release	enhancement	new	dev-feedback	2017-11-16T20:28:54Z	2019-01-08T10:11:37Z	"There is an undocumented, third argument, '''$args''', into [https://developer.wordpress.org/reference/functions/user_can/ user_can()] function as written in [https://developer.wordpress.org/plugins/users/roles-and-capabilities/#user-can Roles and Capabilities] section of Plugin Handbook.

It's the same of [https://developer.wordpress.org/reference/functions/current_user_can/ current_user_can()] (already documented)."	mariovalney
	54554	Allow returning content for wp_dropdown_roles()		Role/Capability		normal	normal	Future Release	enhancement	new	dev-feedback	2021-12-02T07:19:01Z	2022-09-19T21:29:10Z	Currently wp_dropdown_roles() function is set to echo the content instead of the option to echo or return the content. Similar wp_dropdown_* functions allows to echo or not the content. 	nithi22
	41701	Introduce singular capabilities for further management of individual plugins		Role/Capability		normal	normal	Future Release	enhancement	new	needs-unit-tests	2017-08-22T14:14:11Z	2017-08-22T14:14:28Z	"This is a follow-up to #38652 which introduced singular capabilities for activating and deactivating individual plugins.

Singular capabilities should be added for controlling the ability to do the following:

* Edit an individual plugin.
* Delete an individual plugin.
* Update an individual plugin.

Low priority stretch goals which might end up in another follow-up ticket:

* Edit an individual file in a plugin.
* Install an individual new plugin.
* Upload an individual new plugin.

Network activation and deactivation for Multisite will be handled in a separate ticket."	johnbillion
	41703	Introduce singular capabilities for network activation and deactivation of individual plugins		Role/Capability		normal	normal	Future Release	enhancement	new	needs-unit-tests	2017-08-22T14:16:06Z	2020-09-20T12:12:58Z	"This is a follow-up to #38652 which introduced singular capabilities for activating and deactivating individual plugins.

Singular capabilities should be added for controlling the ability to network activate and network deactivate individual plugins on Multisite.

See also #41701."	johnbillion
	56373	La EDICION de Contenidos y los ROLES de Usuario		Role/Capability		normal	normal	Awaiting Review	enhancement	new		2022-08-14T01:54:28Z	2022-08-14T01:58:01Z	"CHANGES IN BUSINESS MODEL

Congratulations to the entire WordPress team for the constant improvements to the interface and functionality.
With the home office, for reasons of Covid, the editorial work using WordPress has revealed a pertinent change in the Relationship: User Role / type of interface, I explain:

************

The ADMINISTRATOR {Editor General} Role is the only level that has attribution / permissions to manage and make changes in all DASHBOARD segments: Home, Themes, All Posts, Media, Pages...

************

The EDITOR {Posts Content Editor} Role should only have POST {all Post}. Its Editorial Role is to manage the Contents to apply the ""Editorial Line"" {informative bias, journalistic style}.
The Editor has the ROLE of assigning CATEGORIES for AUTHOR and Contributor type users.
For that reason you should ONLY access: ALL POST, all Media/Library and USERS. Nothing more.

The Toolbar {under the TITLE / h1}, for the Editor, Author and Contributor, should ONLY have:
-- Add Media / NO Contact Form
-- The Menu Paragraph should be changed to ""Sub Head"" {h3}
-- Bold + Italic + Blockquote + Link + Clear Format + Special Character
-- View: Visual / Text

Side Bar Right:
--Featured Images
-- Tags
-- Category
-- Publish
NOTHING ELSE. Important to guarantee the integrity of the Style and Graphic Design, established by the Theme.

**********

Role AUTHOR
Inherits all accesses from the Editor, except the CATEGORY Menu {only for the Editor}
The Author has access to all own previous Post.
When you publish a Post, you send an ALERT to the Administrator and the Editor

**********

COLLABORATOR role
It inherits all access from the Author, but... when you press PUBLISH, it publishes in DRAFT State.
The Contributor has access to all of their own previous Posts.
When you publish a Post, you send an ALERT to the Editor

**********

It is pertinent, necessary these changes, to turn WordPress into an EDITORIAL SYSTEM.
Next step: Integration with Adobe InDesign, Adobe InCopy

I hope you can accept this suggestion.

Cheers

José Fuertes Ortega
[https://www.linkedin.com/in/limanorte/]
ppfuertes@gmail.com
limanorte28@gmail.com"	LimaNorte.com
	23391	User in contributor role can add images to post only via the text editor		Role/Capability		normal	normal	Awaiting Review	enhancement	new		2013-02-05T07:34:26Z	2018-10-03T12:18:01Z	"1. Create a user with contributor role
2. start new post with it
3. notice there is no ""add media"" button anywhere
4. switch to text editing
5. use the img button to insert a URL to a valid img on the web
6. request approval for the post
7. let admin/editor approve it
8. go the the post's URL and notice that the image is shown

So, it is not that contributors are not allowed to use images, it is just that WP makes it hard to do so.

Either HTML needs to be sanitized and have all img tags removes for contributors, or access to the media library should be allowed for contributors denying only access to uploading. I vote for the second option."	mark-k
	41778	Archive page for user roles		Role/Capability	4.8.1	normal	normal	Awaiting Review	feature request	new		2017-09-01T17:22:55Z	2017-09-02T21:23:07Z	"If possible, implement userroles in the author archive page or create a seperate user archive for it. Along with an option to modify the base/slug.

For example, subscribers should have their own archive page. While subscribers don't hold any rights inside wordpress, in themes such as an ecommerce website or membership website, these subscriber roles are quite important as they are considered as 'customers'.
"	mireillesan
	44476	Backend section Access based on Role/User		Role/Capability	4.9.6	normal	normal	Awaiting Review	feature request	new	dev-feedback	2018-06-28T06:33:37Z	2018-08-02T16:52:43Z	"Hello Team,

I would like to suggest a Feature which we can plan in the current/Newer Version of WordPress.

In WordPress backend, we can give a setting to Administrator that he can set restriction or give access only to the limited section.

For example, if Admin wants that Subscriber can only Add Posts and can only view the pages. We can do that with Access Management.

I understand there are certain plugins available for this, but we can have such feature by default in wordpress it will be really helpful as nowadays Admin Panel is being operated by multiple Admins/Roles.

Let me know your thoughts on this and if this is no a good idea or suggestion, please feel free to share your opinion
"	kartiks16
	51334	Implement enhanced post_status transition capabilities		Role/Capability		normal	normal	Awaiting Review	feature request	new	dev-feedback	2020-09-17T22:32:34Z	2020-09-18T11:49:05Z	"WordPress has some publishing related capabilities for post types including:

`publish_posts`, `edit_published_posts`


While working on multiple project with some custom user roles and while working on #47443 I noticed there could be some use cases that require more capabilities based on posts-status-changes.

== Example use case

When a user has the `edit_published_posts` but not `publish_posts` capability they can edit an already published posts but not publish a new posts/draft post.

By editing a published post they can (accidentally) unpublish a post. If they did this by mistake, they don't have the possibility to revert this change.

In most scenarios this is not intended.

I can think about two ways how to solve this problem.

== Solving this problem with an additional post type capability

So I think an additional capability could be added which is responsible from switching from a published post_status to an unpublished status.

== Solving this problem using filter hooks

Because the solution is a bit unflexible I could also think about implementing a similar functionality by introducing one or more filter hooks like:

- `can_transition_post_status` with a boolean value and the current and new status as additional arguments
- `can_transition_{old_status}_to_{new_status}` with a boolean value and the post id as an additional argument

Those filter hooks could be similar to the post transition action hook https://codex.wordpress.org/Post_Status_Transitions
But those filters would run before updating the post."	derweili
	59780	Add functionality to dequeue a block style added via wp_enqueue_block_style		Script Loader		normal	normal	Awaiting Review	defect (bug)	new		2023-10-31T19:53:29Z	2023-10-31T19:53:29Z	"Currently there is no API to remove a block style that has been enqueued with `wp_enqueue_block_style`. This makes it harder than neccessary for a child theme to override a blockstyle from a theme. 

See the discussion in this core thread: https://wordpress.slack.com/archives/C02RQBWTW/p1698774094584149"	jorbin
	45106	Concerns related to moving mce_external_plugins filter to WP_Scripts::__construct		Script Loader	5.0	normal	normal	Awaiting Review	defect (bug)	new		2018-10-17T13:19:26Z	2019-01-16T22:59:17Z	"In r43723 the `mce_external_plugins` filter was moved to a function called via `wp_default_scripts` which, in turn, is called from `WP_Scripts::__construct` (via `WP_Scripts::init`).

While the `wp_default_packages_inline_scripts` function calling the `apply_filters( 'mce_external_plugins'` is only triggered in case the `did_action( 'init' )` returns true, there might be cases when the `WP_Scripts` object is being reinitialised after the `init` and thus code hooked to `mce_external_plugins` trying to enqueue or register a script causes an infinite loop, since the constructor of the `WP_Scripts` class is calling the filter, which calls the constructor again.

This does not feel like something what would matter in 99% of time, but, for instance, this breaks core unit tests which are reinitialising the WP_Scripts object, eg.: `Test_WP_Customize_Selective_Refresh::test_register_scripts`. in case such a piece of code is being used.

An example of a code used in a mu-plugin and breaking the mentioned test:

{{{#!php
<?php
add_filter( 'mce_external_plugins', function( $plugins ) {
	wp_enqueue_script( 'somescript', plugins_url( 'someplugin/somescript.js' ), array(), false, true );
	return $plugins;
}
}}}

I think it should be easy to change the plugin in question, but this used to work perfectly fine up to recent changes to the script loading in r43723 and thus it might be considered being a regression."	david.binda
	61828	Global Styles: Refactor wp_add_inline_style() to use HTML API		Script Loader	6.7	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-08-06T05:46:52Z	2024-08-08T04:29:28Z	"The current implementation of `wp_add_inline_style` strips matching `<style />` tags in the incoming data, and removes them, preserving the nested content.

The function's `preg_replace` regex assumes balanced tags, e.g., `<style>...content</style>`. 

It cannot however detect when incoming data contains a closing style tag `</style>`.

The consequence is that the style tag generated by WordPress in `WP_Styles()` can be short circuited.

Furthermore:

- the `stripos` won't detect closing style tags with attributes (which is allowed)


Example:


{{{
<?php

function like_wp_add_inline_style( $data ) {
    if ( false !== stripos( $data, '</style>' ) ) {
        return trim( preg_replace( '#<style[^>]*>(.*)</style>#is', '$1', $data ) );
    }
    return 'yay';
}

//  ## Do what wp_add_inline_style expects:
$result = like_wp_add_inline_style( "".captain {<style><p>Do it to me one more time...</p></style>}"");

/*
Output in frontend:
<style id='my-inline-css' type='text/css'>
.captain {<p>Do it to me one more time...</p>}
</style>
*/

// -------------------------------------------------

// ## Do what wp_add_inline_style doesn't expect:
$result = like_wp_add_inline_style( "".captain {</style><p>Do it to me one more time...</p><style>}"");


/*
Output in frontend:
<style id='my-inline-css' type='text/css'>
.captain {</style><p>Do it to me one more time...</p><style>}
</style>
*/

}}}

`wp_add_inline_style` should be updated to escape closing style tags, except in the case of balanced tags, where it should match existing functionality.

Props to @dmsnell, @peterwilsoncc and @costdev for helping diagnose and address this issue
"	ramonopoly
	60850	Localize script not working in WordPress 6.5-RC3-57856		Script Loader	6.5	normal	normal	Awaiting Review	defect (bug)	assigned	close	2024-03-27T08:40:18Z	2024-03-27T08:54:21Z	"During my testing of the plugin, I encountered an issue with the localized script while using the 6.5 beta version. Specifically, I noticed a JavaScript error that prevented the script from working as intended. However, I would like to clarify that this issue is not present in the current version, and the localized script works flawlessly without any errors.

https://prnt.sc/zFevup7B2iU4

https://prnt.sc/YR0FXm_l__D9


**System info:
**
`
### wp-core ###

version: 6.5-RC3-57856
site_language: en_US
user_language: en_US
timezone: +05:00
permalink: /%postname%/
https_status: false
multisite: false
user_registration: 0
blog_public: 0
default_comment_status: open
environment_type: production
user_count: 1
dotorg_communication: true

### wp-paths-sizes ###

wordpress_path: /home/worldwebusers/phpdev3/public_html/wordpressbeta
wordpress_size: 54.67 MB (57325890 bytes)
uploads_path: /home/worldwebusers/phpdev3/public_html/wordpressbeta/wp-content/uploads
uploads_size: 1.35 MB (1419920 bytes)
themes_path: /home/worldwebusers/phpdev3/public_html/wordpressbeta/wp-content/themes
themes_size: 36.91 MB (38701146 bytes)
plugins_path: /home/worldwebusers/phpdev3/public_html/wordpressbeta/wp-content/plugins
plugins_size: 6.99 MB (7332893 bytes)
database_size: 2.75 MB (2883584 bytes)
total_size: 102.68 MB (107663433 bytes)

### wp-active-theme ###

name: Twenty Twenty-Four (twentytwentyfour)
version: 1.0
author: the WordPress team
author_website: https://wordpress.org
parent_theme: none
theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, widgets-block-editor, block-templates
theme_path: /home/worldwebusers/phpdev3/public_html/wordpressbeta/wp-content/themes/twentytwentyfour
auto_update: Disabled

### wp-themes-inactive (13) ###

Twenty Eleven: version: 4.5, author: the WordPress team, Auto-updates disabled
Twenty Fifteen: version: 3.6, author: the WordPress team, Auto-updates disabled
Twenty Fourteen: version: 3.8, author: the WordPress team, Auto-updates disabled
Twenty Nineteen: version: 2.7, author: the WordPress team, Auto-updates disabled
Twenty Seventeen: version: 3.5, author: the WordPress team, Auto-updates disabled
Twenty Sixteen: version: 3.1, author: the WordPress team, Auto-updates disabled
Twenty Ten: version: 4.0, author: the WordPress team, Auto-updates disabled
Twenty Thirteen: version: 4.0, author: the WordPress team, Auto-updates disabled
Twenty Twelve: version: 4.1, author: the WordPress team, Auto-updates disabled
Twenty Twenty: version: 2.5, author: the WordPress team, Auto-updates disabled
Twenty Twenty-One: version: 2.1, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Three: version: 1.3, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Two: version: 1.6, author: the WordPress team, Auto-updates disabled

### wp-plugins-active (2) ###

Loan Calculator WP: version: 1.2.3, author: World Web Technology, Auto-updates disabled
Loan Calculator WP Pro: version: 1.0.0, author: World Web Technology, Auto-updates disabled

### wp-plugins-inactive (5) ###

Akismet Anti-spam: Spam Protection: version: 5.3.2, author: Automattic - Anti-spam Team, Auto-updates disabled
Classic Editor: version: 1.6.3, author: WordPress Contributors, Auto-updates disabled
Hello Dolly: version: 1.7.2, author: Matt Mullenweg, Auto-updates disabled
Reviews Sorted: version: 2.3.10, author: Reviews Sorted, Auto-updates disabled
WP Custom Post Type Filter: version: 1.0.0, author: WWT, Auto-updates disabled

### wp-media ###

image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1809
imagemagick_version: ImageMagick 7.1.1-29 Q16-HDRI x86_64 21991 https://imagemagick.org
imagick_version: 3.7.0
file_uploads: 1
post_max_size: 512M
upload_max_filesize: 512M
max_effective_size: 512 MB
max_file_uploads: 20
imagick_limits: 
	imagick::RESOURCETYPE_AREA: 62 GB
	imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
	imagick::RESOURCETYPE_FILE: 768
	imagick::RESOURCETYPE_MAP: 31 GB
	imagick::RESOURCETYPE_MEMORY: 16 GB
	imagick::RESOURCETYPE_THREAD: 1
	imagick::RESOURCETYPE_TIME: 0
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVI, AVS, BAYER, BAYERA, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, FTXT, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, KERNEL, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MPO, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, QOI, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RSVG, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, STRIMG, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YAML, YCbCr, YCbCrA, YUV
gd_version: 2.3.3
gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
ghostscript_version: 9.25

### wp-server ###

server_architecture: Linux 3.10.0-1160.114.2.el7.x86_64 x86_64
httpd_software: Apache/2.4.6
php_version: 8.1.27 64bit
php_sapi: cgi-fcgi
max_input_variables: 1500
time_limit: 300
memory_limit: -1
max_input_time: 600
upload_max_filesize: 512M
php_post_max_size: 512M
curl_version: 7.29.0 NSS/3.90
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: false
current: 2024-03-27T08:25:43+00:00
utc-time: Wednesday, 27-Mar-24 08:25:43 UTC
server-time: 2024-03-27T13:25:38+05:00

### wp-database ###

extension: mysqli
server_version: 5.7.36
client_version: mysqlnd 8.1.27
max_allowed_packet: 1073741824
max_connections: 151

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /home/worldwebusers/phpdev3/public_html/wordpressbeta/wp-content
WP_PLUGIN_DIR: /home/worldwebusers/phpdev3/public_html/wordpressbeta/wp-content/plugins
WP_MEMORY_LIMIT: 2048M
WP_MAX_MEMORY_LIMIT: -1
WP_DEBUG: false
WP_DEBUG_DISPLAY: false
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Undefined
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8
DB_COLLATE: undefined

### wp-filesystem ###

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable

`"	dev28
	66435	Remove obsolete pr attribute from resource hints and allow spec-defined link attributes	westonruter	Script Loader	4.7	normal	normal	7.3	defect (bug)	assigned	has-patch	2026-11-01T21:21:55Z	2026-11-06T05:49:37Z	"In r38826 (#38121), `wp_resource_hints()` was extended to print the `as`, `crossorigin`, `pr`, and `type` attributes on resource hint links. At the time, `pr` (""hint probability,"" a float between 0.0 and 1.0) was defined in the [https://www.w3.org/TR/2016/WD-resource-hints-20160527/ W3C Resource Hints working draft].

The `pr` attribute was never implemented by any browser, and it was [https://github.com/w3c/resource-hints/pull/76 removed from the spec in 2018] for that reason. Resource hints are now defined in the [https://html.spec.whatwg.org/multipage/semantics.html#the-link-element HTML Living Standard], which has no `pr` attribute on the `link` element. Supplying it via the `wp_resource_hints` filter therefore produces invalid markup that browsers ignore, and the filter documentation still advertises it.

Meanwhile, attributes the spec does allow on these link types are dropped, most notably `fetchpriority`, which fills the role `pr` was meant to: signaling how important a hint's fetch is.

=== Proposed changes ===

 * Stop printing `pr`, and remove it from the `wp_resource_hints` filter documentation.
 * Move the inline attribute allowlist into an `$allowed_attributes` map from each attribute name to whether it may be printed without a value. Only `crossorigin` can be valueless.
 * Allow `fetchpriority`, `hreflang`, `media`, `referrerpolicy`, and `title`. These are the remaining `link` attributes the spec permits with `dns-prefetch`, `preconnect`, `prefetch`, and `prerender`. The rest stay disallowed because the spec restricts them to other link types: `blocking` (stylesheet, expect), `color` (mask-icon), `disabled` (stylesheet), `imagesizes` and `imagesrcset` (image preload), `integrity` (stylesheet, preload, modulepreload), and `sizes` (icons).

=== Behavior changes for valueless attributes ===

 * `'crossorigin' => true` prints a bare `crossorigin` instead of `crossorigin='1'`, and `false` omits it instead of printing `crossorigin=''`.
 * A list item, as in `array( 'crossorigin', 'href' => … )`, is printed only when it names an allowed attribute that may be valueless. Previously, any string list item was printed as a bare attribute, which let arbitrary attribute names bypass the allowlist.
 * `true` or `false` supplied for an attribute that requires a value is skipped instead of being printed as `'1'` or `''`.

Related: #38121

🤖 ''Research and drafting assisted by [https://claude.com/claude-code Claude Code] using Claude Opus 5.5 (medium effort).''"	westonruter
	66100	Script Modules and Interactivity API hooks should use global instances		Script Loader	6.5	normal	normal	Future Release	defect (bug)	new	has-patch	2026-09-14T07:15:34Z	2026-11-10T15:45:09Z	"`WP_Script_Modules::add_hooks()` and `WP_Interactivity_API::add_hooks()` register their callbacks as `array( $this, 'method' )`. `wp-settings.php` calls both on `after_setup_theme` with the instance that is the global at that moment. The callbacks stay bound to that object.

Both instances live in globals so they can be replaced. r57503 made `$wp_script_modules` a global for that reason. Once the hooks are registered, replacing the global changes what `wp_enqueue_script_module()`, `wp_interactivity_state()`, and `wp_interactivity_config()` write to, but not what prints.

This is different from the behavior with classic scripts.

-----

This was discovered while working on a fix for #64484 in [https://github.com/WordPress/wordpress-develop/pull/13507 this PR] where updating the script modules global had no impact.


-----

Related: r57503 and #56313"	jonsurrell
	49470	Script loader: simplify maintenance		Script Loader	5.0	normal	normal	Future Release	defect (bug)	new		2020-02-18T22:11:18Z	2020-07-21T19:03:13Z	"The main functionality of script-loader is to provide a list of all WordPress scripts and stylesheets together with their dependencies, translation objects and extra/inline code.

During the WP 5.0 development a few (shorthand) functions were introduced that output hard-coded data used to ""construct"" that list by running several loops instead of the simpler, one-line definitions like in the pre-existing list. This makes it harder to ""see"" and maintain the entries in the list, and doesn't bring any benefits (all data is still hard-coded, but is now in separate places). It also makes it harder to ""dynamically"" extract and construct the scripts list like in #48154.

For best results and easier maintenance the ""helper functions"" introduced in WP 5.0 should be removed and the list of scripts in `wp_default_scripts ()` should include all entries."	azaozz
	42440	Uncaught TypeError: $(...).wpColorPicker is not a function		Script Loader	4.8.3	normal	normal	Awaiting Review	defect (bug)	new		2017-11-05T23:30:56Z	2017-11-06T00:56:47Z	"I can't edit my page using Page Builder because the next Error


{{{
gdlr-admin-panel-html.js?ver=f63693efb5b9a5e10ac3abbd57323a6b:192 Uncaught TypeError: $(...).wpColorPicker is not a function
    at HTMLDocument.<anonymous> (gdlr-admin-panel-html.js?ver=f63693efb5b9a5e10ac3abbd57323a6b:192)
    at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload&ver=f63693efb5b9a5e10ac3abbd57323a6b:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload&ver=f63693efb5b9a5e10ac3abbd57323a6b:2)
    at Function.ready (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload&ver=f63693efb5b9a5e10ac3abbd57323a6b:2)
    at HTMLDocument.K (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload&ver=f63693efb5b9a5e10ac3abbd57323a6b:2)
}}}

Can you help please?"	shamstarek
	61755	Use WPINC constant in script-loader.php		Script Loader		normal	normal	Awaiting Review	defect (bug)	new	close	2024-07-25T16:30:12Z	2025-08-14T06:11:18Z	"https://github.com/WordPress/wordpress-develop/blame/trunk/src/wp-includes/script-loader.php#L135 and various others in this file

These should be changed to use WPINC to keep it consistent"	kkmuffme
	66156	W3C Error : Element style not allowed as child of element body in this context.		Script Loader		normal	minor	Awaiting Review	defect (bug)	new		2026-09-22T08:30:05Z	2026-09-23T06:41:47Z	"Hi, 
Whenever I run a W3C check on WordPress sites, this error always pops up. How can I avoid it?


{{{
Element style not allowed as child of element body in this context.
<style id=""core-block-supports-inline-css"">
}}}
"	gaet
	55695	error on script_loader.php		Script Loader	5.9.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-05-07T13:29:41Z	2022-05-07T16:22:55Z	"i'm have problem in wp-includes/script_loader.php and  placed this
{{{
	if (!is_null( $wp_styles) and !is_null( $wp_styles->queue)) {
}}}
in line 2740 (and closed after block) and solved this error
Maycon
"	maycon3
	54777	passing empty object to wp_localize_script will convert it to empty array instead of empty object		Script Loader		normal	normal	Awaiting Review	defect (bug)	new		2022-01-10T10:44:36Z	2022-01-10T12:56:47Z	"This will correctly converted to js object:

{{{
wp_localize_script( $handle, $object_name, array(

    ""foo"" => ""Foo value"",
    ""bar"" => ""Bar value""

) );
}}}

the value will be: 

{{{
{""foo"":""Foo value"",""bar"":""Bar value""}
}}}



But passing empty array will be converted to js empty array:

{{{
wp_localize_script( $handle, $object_name, array() );
}}}

the value will be: 

{{{
[]
}}}


We want to pass empty array because we want to prepare the global js variable to be used later. But because of the inconsistency it can cause problem if we want to loop it for later use. since we use different method to loop object and array in javascript."	erikdemarco
	41990	wp_add_inline_script() does not print if the handler has already processed		Script Loader	4.5	normal	normal	Future Release	defect (bug)	new	dev-feedback	2017-09-26T06:05:37Z	2023-04-12T04:51:08Z	"If the wp_add_inline_script() function (with 'after' position set) is called after the head scripts have already been printed and the handler specified on wp_add_inline_script() is part of the head printed scripts, the code is not added later in the footer.

Probably it should. Example a plugin which implements a shortcode needs to add some jquery inline statement only when the shortcode is executed (to add the js code only on relevant pages). It enqueues jquery to be added in the footer and a piece of inline script.

But another plugin or the theme enqueues jquery in the header (as many do): the above inline code is not printed but it actually does not need to be exactly after the jquery inclusion.

Stefano."	satollo
	59539	wp_register_style and wp_register_script adds ver incorrectly		Script Loader	6.3.1	normal	major	Awaiting Review	defect (bug)	assigned		2023-10-04T11:57:47Z	2023-10-04T11:57:47Z	"Hello,

I'm sorry to report but it seems that function wp_enqueue_style adds ver incorrectly in case of existence some url parameters in src.

**For example:**

**Style example:**

{{{#!php
<?php
add_action( 'wp_enqueue_scripts', function() {
wp_enqueue_style( 'my-custom-font', 'https://fonts.googleapis.com/css?family=Roboto+Condensed');
});
}}}


adds:

{{{
<link rel='stylesheet' id='my-custom-font-css' href='https://fonts.googleapis.com/css?family=Roboto+Condensed&#038;ver=6.3.1' type='text/css' media='all' />
}}}


(you see '&#038;' instead of just '&')

**Script example (from contact-form-7):**

{{{#!php
<?php
wp_register_script( 'google-recaptcha',
    add_query_arg(
        array(
            'render' => $service->get_sitekey(),
        ),
        $url
    ),
    array(),
    '3.0',
    true
);
}}}

adds:

{{{
<script type='text/javascript' src='https://www.google.com/recaptcha/api.js?render=6LfrGhQlAAAAAD6sCXSbihhcAwBHfR25-huvzmtQ&#038;ver=3.0' id='google-recaptcha-js'></script>
}}}


(again, you see ‘&#038;‘ instead of just ‘&’)


You can find these issues on: https://forcesail.ru/"	forcesail
	61356	Add $is_module as an extra strategy argument when enqueueing js script.		Script Loader	6.6	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2024-06-03T11:07:47Z	2024-06-03T11:17:10Z	"With [https://core.trac.wordpress.org/ticket/56313 Modules API] not able to utilize `wp_localize_script`, would it make sense to add an `is_module` option as another argument for `wp_enqueue_script` or `wp_register_script`? When set to true, `type=""module""` is added in the script tag.

I have created my own Script Module class so that I can use JavaScript modules and localize scripts. See [https://gist.github.com/itumulak/9d0341036feaf156d89694bb9a007fcc here]. 

First time here. Feedback is very welcome.
"	itumulak
	65607	Add font-display: swap option when enqueuing/loading Google or local fonts on the frontend		Script Loader	6.5	normal	normal	Awaiting Review	enhancement	new		2026-07-10T12:17:31Z	2026-07-10T12:17:31Z	"== Problem ==
When WordPress loads fonts (Google Fonts via wp_enqueue_style or
locally via the Font Library introduced in 6.5), there is no built-in
way for theme/plugin authors to set the `font-display` CSS descriptor
without manually filtering the generated @font-face output.
`font-display: swap` is a widely recommended performance best practice
(required by Google PageSpeed / Lighthouse for a passing score) that
prevents invisible text during font load (FOIT) by showing a fallback
font immediately.
== Proposed Solution ==
1. **wp_register_font_face() / wp_enqueue_style()** — Add a
   `font_display` argument (default: `fallback` to preserve existing
   behaviour; allow `auto | block | swap | fallback | optional`).
2. **Font Library UI (Gutenberg / Site Editor)** — Add a
   ""Font display"" checkbox or select (e.g. ☑ Use font-display: swap)
   per font family in the Font Library settings panel so non-developer
   users can opt in without code.
3. The selected value should be written into the generated @font-face
   rule, e.g.:
   @font-face {
     font-family: 'Open Sans';
     src: url('...') format('woff2');
     font-display: swap;   /* <-- new */
   }
== Why core, not a plugin? ==
- Lighthouse/CLS scores penalise missing font-display; themes cannot
  reliably fix this without core support.
- Google has already deprecated the `&display=swap` query parameter
  approach for self-hosted fonts.
- All major font plugins (e.g. OMGF, Fonts Plugin) implement this
  individually — a standard API would eliminate the duplication.
== Backward Compatibility ==
Default value of `fallback` (or leaving the descriptor absent) keeps
existing behaviour unchanged.
== References ==
- MDN font-display: https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display
- Lighthouse font-display audit: https://developer.chrome.com/docs/lighthouse/performance/font-display/
"	kavaiyanirmal
	52465	Allow a relation type in resource hints to be used multiple times		Script Loader		normal	normal	Future Release	enhancement	new	has-patch	2021-02-07T17:37:27Z	2021-11-10T01:58:25Z	"`wp_resource_hints` function restricts to one time the usage of a relation type for a resource hint. 

This can be a problem for `preconnect` which can be used with and without `crossorigin` attribute at the same time for performance reason.

As an example, a CDN should have two preconnect like this:


{{{
<link href='//mycdn.test' rel='preconnect' />
<link href='//mycdn.test' rel='preconnect' crossorigin />
}}}


Please check this post as reference:
[https://crenshaw.dev/preconnect-resource-hint-crossorigin-attribute/#:~:text=Summary,be%20downloaded%20from%20that%20origin.&text=If%20CORS%20won't%20be,two%20resource%20hints%20are%20necessary]

I attached a patch which will allow to use multiple times a resource with different configurations. This patch also avoid a resource to be printed multiple times if all attrs are the same.

e.g:

{{{#!php
<?php
function preconnect_mycdn( $hints, $relation_type ) {
	$domains = [
		[
			'href'        => '//mycdn.test/',
		],
		[
			'href'        => '//mycdn.test/',
			'crossorigin' => 'use-credentials',
		],
		[
			'href'        => '//mycdn.test/',
		],
		[
			'href'        => '//mycdn.test/',
			'crossorigin' => 'anonymous',
		],
	];

	foreach ( $domains as $domain ) {
		if ( 'preconnect' === $relation_type ) {
			$hints[] = $domain;
		}
	}

	return $hints;
}
add_filter( 'wp_resource_hints', 'preconnect_mycdn', 10, 2 );
}}}


will print:

{{{
<link href='//mycdn.test' rel='preconnect' />
<link href='//mycdn.test' crossorigin='anonymous' rel='preconnect' />
}}}
"	GeekPress
	59132	Create two filters in wp_scripts() and wp_styles().		Script Loader	4.2	normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2023-08-17T18:19:00Z	2023-11-27T21:00:48Z	"I'd like to know if it's possibile to change this:

{{{#!php
<?php
function wp_scripts() {
	global $wp_scripts;

	if ( ! ( $wp_scripts instanceof WP_Scripts ) ) {
           $wp_scripts = new WP_Scripts();
	}

	return $wp_scripts;
}
}}}

into:

{{{#!php
<?php
function wp_scripts() {
	global $wp_scripts;

	if ( ! ( $wp_scripts instanceof WP_Scripts ) ) {
            $wp_scripts = apply_filters( 'wp_scripts_instance', new WP_Scripts() );
	}

	return $wp_scripts;
}
}}}

To extend WP_Scripts and WP_Styles, for example:

{{{#!php
<?php
add_filter( 'wp_scripts_instance', function ($wp_scripts) {
	if( !class_exists('ScriptEnqueuer') )
	{
		return $wp_scripts;
	}
	return new ScriptEnqueuer();
});
}}}

Is this possible?"	salvio
	60734	Deregistering Open Sans		Script Loader	6.4.3	normal	normal	Awaiting Review	enhancement	new		2024-03-09T02:15:43Z	2024-03-09T10:31:21Z	"I have wasted an entire day trying to figure out why my Open Sans styles were not applying. This is counterproductive/suboptimal.

As it turns out, Open Sans was packed in WP back in 2014, which is fine by me. More info: #28478

However it is **not** immediately **obvious** one needs to `wp_deregister_style('open-sans');` before he can register his own style.

Please, consider making an exception and make `wp_register_style()` automatically `wp_deregister_style(X)` if X equals 'open-sans'. Otherwise consider other courses of action that may prevent others from incurring in the same problem I did.

Thanks.

"	ecv80
	59076	Proposal for removing the version numbers of the JS and CSS files when SCRIPT_DEBUG is set to true		Script Loader		normal	normal	Awaiting Review	enhancement	new	close	2023-08-11T18:14:26Z	2025-08-12T15:26:30Z	I am proposing to remove the version numbers of the JS and CSS files when SCRIPT_DEBUG is set to true. As SCRIPT DEBUG is generally used for developers, in development environments, it's evident that the version numbers can make the changes to the files not reflect on the front end. So, I would suggest adding the functionality of removing the version tags of the scripts, and styles as well when using this constant.	rajinsharwar
	38800	add WP_ADMIN_URL and WP_INCLUDES_URL constants		Script Loader		normal	normal	Awaiting Review	enhancement	new		2016-11-15T17:20:25Z	2017-09-29T06:27:09Z	"If WP is installed in a sub directory we can use a subdomain pointing to wp-content directory and set the {{{WP_CONTENT_URL}}} in wp-config.php to hide the path WP is installed in.

But the HTML code still yields information about the path because the WP default scripts and styles are loaded from wp-includes resp. wp-admin directory. Of course those URLs can be changed using the {{{script_loader_src}}} filter.

But to obviate the need for using this filter and to remove this lack of consistency it should be possible to define {{{WP_ADMIN_URL}}} and {{{WP_INCLUDES_URL}}} in wp-config.php

'''Sample Code'''

For testing I've added two functions

{{{#!php
function wp_get_admin_url() {
  if ( defined( 'WP_ADMIN_URL' ) ) {
    return trailingslashit( WP_ADMIN_URL );
  }
  return '/wp-admin/';
}

function wp_get_includes_url() {
  if ( defined( 'WP_INCLUDES_URL' ) ) {
    return trailingslashit( WP_INCLUDES_URL );
  }
  return '/wp-includes/';
}
}}}

Also I've made changes to wp-includes/script-loader.php. I've added the following lines to functions {{{wp_default_scripts()}}} and {{{wp_default_styles()}}}

{{{#!php
$admin_src = wp_get_admin_url();
$includes_src = wp_get_includes_url();
}}}

Then I've changed every occurrence of {{{$scripts->add()}}} and {{{$styles->add()}}} to use those variables instead of the fixed path.

This works as expected to hide the directory WP is installed in from the WP default scripts and styles.

I'm pretty sure there's a lot more to change but I wanted to bring this up for discussion first and I'm eagerly waiting for feedback.

Notes: I'm a newbie here so please excuse if I did't follow the usual procedure and let me know how to do better. And second please be bear with me that I'm not a native english speaker.

Peter
"	petersplugins
	56425	wp_localize_script assign to const and freeze instead of var to avoid reassignments		Script Loader		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2022-08-23T23:59:48Z	2022-11-08T07:36:06Z	"wp_localize_script adds elements as ""var"".

To avoid accidental, silent overwrites by other plugins or malicious code, it would be better if we used a const and freeze the object, to disable reassignments.

"	malthert
	44211	Add cookie domain to `userSettings` script localize		Script Loader		normal	normal	Awaiting Review	feature request	new	close	2018-05-24T08:30:04Z	2025-08-14T09:11:10Z	I have cookie path and secure status but I need have `domain` param in array too. I think that this will helpful.	sebastian.pisula
	60864	URL sanitizing strips valid characters instead of encoding, documented use is invalid		Security		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-03-30T01:36:07Z	2026-01-04T08:16:01Z	"- wp_sanitize_redirect creates different URL instead of correctly percent-encoding e.g. for URLs that contain ""<"" - followup to https://core.trac.wordpress.org/ticket/31486 where this was partially fixed

- sanitize_url is documented to sanitize for redirect usage but the URI is not valid for redirects since it's not percent-encoded - followup to https://core.trac.wordpress.org/ticket/56160

- esc_url and sanitize_url strip characters that don't need to be stripped but can be HTML encoded to make them safe, e.g. ""<"" causing some URLs to be broken.
"	kkmuffme
	65572	Unsafe usage of href attribute in wp-admin/js/post.js		Security	7.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-07-01T19:06:01Z	2026-10-23T06:15:20Z	"(This was initially reported privately as a security issue but it was considered not a core vulnerability.
I still think it is worth hardening so I am reporting it as a bug.)

wp-admin/js/post.js passes the value of the href attribute to {{{$()}}} without sanitizing it.
This is dangerous because {{{$()}}} accepts both a selector or raw HTML.
In theory, this could be exploited if an attacker can inject basic HTML on the post edit page. (But core does not provide a way to exploit this, it would need to be chained with an HTML injection vulnerability).

For example this payload would trigger the problem if it can be inserted on /wp-admin/post-new.php:
{{{
<div class=""categorydiv"" id=""taxonomy-foo""></div>
<div id=""foo-tabs""><a href=""&lt;img src=x onerror=alert()&gt;"">Click me!</a></div>
}}}

Using document.querySelectorAll() would ensure the input is always interpreted as a selector:
{{{
$(document.querySelectorAll(t)).show();
}}}
"	Rudloff
	63457	WordPress 6.8 will fail creating bcrypt when entropy sources are not available		Security	6.8	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2025-05-17T15:17:27Z	2025-05-18T12:57:53Z	"Regarding to: https://make.wordpress.org/core/2025/02/17/wordpress-6-8-will-use-bcrypt-for-password-hashing/

If /dev/urandom is not available (for example) the database field will be set to ""$wp"", making impossible for users to login.

This may happen in chroots or other container/vm/jail systems.

The error generates is:

[Sat May 17 XXX 2025] [proxy_fcgi:error] [pid XXX] [client XXX] AH01071: Got error 'PHP message: PHP Warning:  password_hash(): Unable to generate salt in /wp-includes/pluggable.php on line 2709'

But the application does not fail and simply puts ""$wp"" in the ""user_pass"" column.

This happens every time wp_hash_password() is used (user creation, change password, etc)."	isgroup
	62693	check if chmod is available to prevent Fatal Errors		Security		normal	normal	Awaiting Review	defect (bug)	new		2024-12-14T20:04:36Z	2024-12-14T21:22:50Z	"There is a bug in wordpress that prevents users from uploading media if their PHP server was hardened following common best-practices

{{{
chmod( $new_file, $perms );
}}}


This line causes a PHP Fatal error on hardened systems with the chmod function disabled.

{{{
PHP Fatal error:  Uncaught Error: Call to undefined function chmod() in /var/www/html/store.opensourceecology.org/htdocs/wp-admin/includes/file.php:1043\nStack trace:\n#0 /var/www/html/store.opensourceecology.org/htdocs/wp-admin/includes/file.php(1105): _wp_handle_upload()\n#1 /var/www/html/store.opensourceecology.org/htdocs/wp-admin/includes/media.php(306): wp_handle_upload()\n#2 /var/www/html/store.opensourceecology.org/htdocs/wp-admin/includes/ajax-actions.php(2632): media_handle_upload()\n#3 /var/www/html/store.opensourceecology.org/htdocs/wp-admin/async-upload.php(33): wp_ajax_upload_attachment()\n#4 {main}\n  thrown in /var/www/html/store.opensourceecology.org/htdocs/wp-admin/includes/file.php on line 1043', referer: https://store.opensourceecology.org/wp-admin/upload.php  
}}}

== Why this matters

For security reasons, orgs frequently configure `php.ini` to be hardened by adding many dangerous functions to the disable_functions variable in the `php.ini` file. For example, it's common to disable the `exec` function

{{{
disable_functions = exec
}}}

And, for security reasons, it's also common to disable functions like `chmod`.

== Solution

To fix the PHP Fatal error, wordpress should always check to see if the `chmod` function exists before attempting to call it


{{{
if( function_exists( 'chmod') ){
   chmod( $new_file, $perms );
}
}}}
"	maltfield
	57447	"wp_ajax_inline_save function does not check if post has ""public"" or ""show_ui"" enabled"		Security		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-01-11T17:45:20Z	2026-11-05T15:19:51Z	"The Security Team has already reviewed this report on the WordPress HackerOne Program, and I was requested to create the ticket here as well.

Both the `public` and `show_ui` aren't checked by the `wp_ajax_inline_save` function, which is a UI-intended function.

The documentation for both params explains that having them as ""false"" should prevent the UI management for the custom post type:

  show_ui bool
  Whether to generate and allow a UI for managing this post type in the admin. 
  Default is value of $public.

  public (boolean) (optional)
  Controls how the type is visible to authors (show_in_nav_menus, show_ui) and 
  readers (exclude_from_search, publicly_queryable).

For the ""public"" param, the docs also say that it hides the CPT from authors, which can be bypassed, as seen below in the proof-of-concept. Since the ""_inline_edit"" nonce value is valid for all inline edits, regardless of the post type, it's possible to get this nonce on any post listing page and exploit this function to access a CPT that was not intended to be accessible.

PoC:


{{{#!php
<?php
$args = array(
	'label'               => __( 'Example' ),
	'description'         => __( 'Example' ),
	'labels'              => $labels,
	'supports'            => array( 'title', 'editor' ),
	'taxonomies'          => array(),
	'hierarchical'        => false,
	'public'              => false, // <-- False
	'show_ui'             => false, // <-- False
	'show_in_menu'        => false,
	'show_in_admin_bar'   => false,
	'show_in_nav_menus'   => false,
	'can_export'          => false,
	'has_archive'         => false,
	'exclude_from_search' => true,
	'publicly_queryable'  => false,
	'rewrite'             => false,
	'show_in_rest'        => false,
);
register_post_type( '...', $args );
}}}

What looks like a ""protected"" and ""hidden"" CPT can actually be accessed and edited by using this security issue on ""wp_ajax_inline_save"":

{{{
curl 'http://SITE_URL/wp-admin/admin-ajax.php' \
  -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
  -H 'Cookie: COOKIES_HERE' \
  -H 'Origin: SITE_URL' \
  --data-raw 'post_title=Something&_inline_edit=NONCE_HERE&post_view=list&screen=edit-page&action=inline-save&post_type=POST_TYPE&post_ID=POST_ID&edit_date=true&post_status=all' \
  --compressed
}}}

The ""show_ui"" parameter has been enforced in the core's past versions when accessing **some** places, but the ""wp_ajax_inline_save"" function was not affected:

  4.4.0 The show_ui argument is now enforced on the post type listing screen and post editing screen.
  3.0.0 The show_ui argument is now enforced on the new post screen.


"	lucius0101
	31686	wp_authenticate_username_password() should check for a WP_Error object		Security	3.7	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2015-03-18T16:29:08Z	2019-08-06T09:19:25Z	"This is a follow-up to #19714 and #22516

These were closed, but IMHO, the bug as such is not resolved.
wp_authenticate_username_password() does only check whether $user is a WP_Error object when either password or username are empty:


{{{
75 if ( empty($username) || empty($password) ) {
76	if ( is_wp_error( $user ) )
77            return $user;
78 …
}}}
	                       
However, another plugin that hooks into authenticate might pass a WP_Error even if $username and $password were provided, but the specific authentication mechanism failed.
The current implementation completely ignores this.

The result is that users who exist locally can log in using a local, possibly older password, bypassing the plugins' additional authentication mechanisms completely.

I'd advocate to check for is_wp_error($user) much earlier in wp_authenticate_username_password(), so that the authentication process will fail as soon as one ""authenticate"" filter returns a WP_Error object."	kwisatz
	62384	.htaccess lacks		Security		normal	normal	Awaiting Review	enhancement	new		2024-11-11T20:59:39Z	2024-12-09T11:34:42Z	"Hello,
I'm suggesting an improvement in WP security by upgrading and adding .htaccess files into some folders.
As some hosts don't always allow to edit Apache conf files, those .htaccess will prevent script uploads and executions, prevent directory listings, and so much more.
Files I use on all my websites can be downloaded here: https://bienetreinfo.fr/wp-content/uploads/wp-security.zip
Hope it can help.
All my best,"	amigainc
	51611	Escape echoing Core functions		Security		normal	normal	Awaiting Review	enhancement	new		2020-10-23T05:32:40Z	2020-10-24T04:43:18Z	"Hi,

Is there a reason, why core functions like the_archive_title() and the_archive_description() echo output without escaping?

In wp-admin/profile.php the display_name and the author_meta('description') are stored from user input – which will be output in archive.php if is_author(), by these functions (e.g.  Twenty Seventeen, Twenty Nineteen) – without escaping.

Wouldn't it be better to escape the output within these functions?

Best regards
Max"	lolamax
	63329	Use check_ajax_referer() instead of check_admin_referer() for AJAX requests in media form handling.		Security	6.8	normal	normal	Awaiting Review	enhancement	new	has-patch	2025-04-22T07:07:56Z	2025-04-22T07:58:11Z	"This patch replaces the use of check_admin_referer( 'media-form' ) with check_ajax_referer( 'media-form' ) in the relevant media-handling code to better align with AJAX request security practices in WordPress.

The check_ajax_referer() function is specifically intended for verifying nonces on AJAX requests and provides a more appropriate response structure for such scenarios. It also ensures compatibility with how WordPress handles wp_die() in AJAX contexts, where it returns a -1 response instead of rendering an HTML error page.

"	khushipatel15
	58174	A shortcode block that evaluates to nothing, renders as a space in the HTML		Shortcodes		normal	normal	Awaiting Review	defect (bug)	new		2023-04-22T13:07:07Z	2023-10-26T17:53:33Z	"A shortcode block that evaluates to nothing renders as a space in the HTML.

A screenshot:

https://drive.google.com/file/d/1wjDAXVgrqE5L5pzTJDKuTo606XzuTZ4k/view?usp=drivesdk

I've noticed it while using an [acf] shortcode referencing an empty field, but it also happens with an empty [audio] core shortcode.

This makes styling with CSS cumbersome. For example, the :empty selector can't be used.

When I remove the shortcode block, leaving the column block completely empty, the redundant space isn't being rendered (so it isn't a browser issue).

I've tried to reverse-engineer it really hard, even trying to catch the HTML at the last minute in the get_the_block_template_html() function, but I couldn't find the culprit spaces."	asafm7
	58469	Changeset 55832 broke shortcodes saved in block attributes and rendered serverside		Shortcodes	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-06-06T21:31:53Z	2023-06-07T16:29:15Z	"simply put, if a shortcode is saved to a block attribute and rendered as part of its `render_callback`, it no longer parses the shortcode as `do_shortcode` is now called before `do_blocks`

see [55832]"	brumack
	49877	Content enclosed by (content enclosing) shortcode gets stripped from excerpt		Shortcodes	5.4	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2020-04-11T13:36:57Z	2020-07-24T17:32:51Z	"Hi,
I’m using a plugin to create popups with information from Wikipedia by enclosing a term in shortcode. Like this

“Terwijl voormalig [wiki]Goldman Sachs[/wiki] bankier” (text in Gutenberg Paragraph Block, bold by me)

On a Blog Page and in a Latest Posts Block with non-manual excerpts the following output is rendered:

“Terwijl voormalig bankier”

Both the shortcode and the enclosed content are gone (due to wp_trim_excerpt? as called by the_excerpt() ). Whereas content enclosed in HTML tags stays in place.

The excerpt would preferably read:
“Terwijl voormalig Goldman Sachs bankier”

Is there a way to keep the content enclosed by (content enclosing) shortcode tags in the excerpt?

Using Wp 5.4 PHP 7.4 Theme Twenty-twenty (and Blocksy, Astra)

Imho I don’t see why you would want to loose your content (in enclosing shortcode tags) once an excerpt is created containing that content"	mmwbadmin
	59509	Shortcode attributes named 0 are ignored		Shortcodes	6.3.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-09-30T12:14:06Z	2026-10-13T11:04:21Z	"Shortcode attributes in the form `0=...` are not picked up during parsing.
This is because the parser checks for an empty name with `empty(..)`, which also returns true for the string `'0'`."	ourous
	49955	Shortcode escaping not correctly handled when followed by enclosing shortcodes		Shortcodes		normal	normal	Awaiting Review	defect (bug)	new		2020-04-19T17:44:36Z	2020-07-16T17:48:56Z	"There are some special situations when shortcode escaping is not correctly handled.

This code will reproduce the error:
{{{#!php
<?php
function ucase_shortcode($atts, $content) {
    return strtoupper($content);
}
add_shortcode('ucase', 'ucase_shortcode');
}}}

The following content:
{{{
This [[ucase]] shortcode [ucase]demonstrates[/ucase] the usage of enclosing shortcodes.
}}}
will produce this output:
{{{
This [] SHORTCODE [UCASE]DEMONSTRATES the usage of enclosing shortcodes.
}}}
but this would be expected:
{{{
This [ucase] shortcode DEMONSTRATES the usage of enclosing shortcodes.
}}}

It seems the escaped shortcode does not detect its ending double bracket, but just moves on until it finds an enclosing shortcode of same type."	arildur
	38713	Shortcodes and utf-8 no-break whitespace (\xc2\xa0)		Shortcodes	4.6.1	normal	normal	Awaiting Review	defect (bug)	new		2016-11-08T16:27:46Z	2019-03-25T23:52:31Z	"Recently I encountered a problem with one of my posts where Wordpress failed to process some of the shortcodes. After hours of digging I found that one shortcode contains no-breaking space as separator between shortcode name and parameters.

{{{
[myshortcode\xc2\xa0param=""...
}}}

Seems like somebody used external editor to edit post content and then pasted it into wp's editor.

I used following quick fix to permit this problem in future :

{{{
add_filter( 'the_content', function( $text ) {
	return str_replace( ""\xc2\xa0"", "" "", $text );
}, 0, 1);
}}}

I think, it's not very good approach. Thus the question to core developers to fix this in shortcode parsing functions."	mazursv
	43686	Shortcodes containing asterisks may create invalid regex breaking the editor		Shortcodes		normal	normal	Future Release	defect (bug)	new	dev-feedback	2018-04-03T21:31:40Z	2019-01-16T02:41:00Z	"Despite not being a reserved character an asterisk in a shortcode followed by another character will generate invalid regex which breaks the editor.

This code reproduces the issue:


{{{#!php
<?php
foreach (['*one', '*two'] as $bullet) {
    add_shortcode('*' . $bullet, function () use ($bullet) {
        return 'oh no ' . $bullet;
    });
}
}}}

Attached is a gif showing the editor tabs not working correctly along with the error in the console in Chrome 65 and Firefox 59.

I know it's unconventional to use an asterisk in a shortcode, but my use case is porting a legacy CMS that used BBCode into WordPress while trying to keep as much of the original formatting possible for old content.

This is an issue with all plugins deactivated (except for the above code) using the Twenty Seventeen theme."	Vusys
	55406	Shortcodes don't work inside srcset attribute		Shortcodes	5.8.3	normal	normal	Awaiting Review	defect (bug)	new		2022-03-16T21:54:43Z	2022-04-08T10:11:09Z	"Hello,
I have a simple shortcodes which replaces [uploads_directory] with the actual path.
It doesn't work if I put it in a srcset attribute, while it works fine in a src attribute.

{{{
<!-- this doesn't work -->
<img srcset=""[uploads_directory]/2022/03/image.webp 1x, [uploads_directory]/2022/03/image@2x.webp 2x"" />

<!-- this is ok -->
<img src=""[uploads_directory]/2022/03/image.svg"" />
}}}


This is the code of the shortcode function
{{{#!php
<?php
function insert_get_uploads_directory() {
	$directory = wp_upload_dir();
	return $directory['baseurl'];
}
add_shortcode( 'uploads_directory', 'insert_get_uploads_directory' );
}}}
"	XXVII
	45377	Video Shortcode Ajax Issue		Shortcodes	5.0	normal	minor	Future Release	defect (bug)	new		2018-11-19T13:34:23Z	2018-12-06T10:59:35Z	"Hi guys,

I have the problem with wp_video_shortcode element settings on ajax trigger, where defaults_atts variable override settings I forward to shortcode. Because is_admin() conditional inside shortcode function return true on ajax calling.

Example code

{{{
<div class=""video-player-element"">
	<?php
	// Get video meta src
	$video_meta = get_post_meta( get_the_ID(), 'video_player_src', true );

	// Video player settings
	$settings = apply_filters( 'video_player_settings', array(
		'width'  => 1300, // Aspect ration is 16:9
		'height' => 731,
		'loop'   => true
	) );
	
	// Init video player
	echo wp_video_shortcode( array_merge( array( 'src' => esc_url( $video_meta ) ), $settings ) ); ?>
</div>
}}}

When I call ajax to load the new content on frontend, video player element is loaded with my settings but on rendering video, wp_video_shortcode function override my settings with default because function enters inside this conditional


{{{
if ( is_admin() ) {
	// shrink the video so it isn't huge in the admin
	if ( $atts['width'] > $defaults_atts['width'] ) {
		$atts['height'] = round( ( $atts['height'] * $defaults_atts['width'] ) / $atts['width'] );
		$atts['width'] = $defaults_atts['width'];
	}
}
}}}

Is there any solutions to skip this check, or if you add some filter around defaults_atts so I can be able to change that values? Thanks for your solutions

Best regards,
Nenad
"	Nenad Obradovic
	57267	wp_enqueue_style is not working under shortcode		Shortcodes	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-12-03T07:41:09Z	2022-12-15T13:08:25Z	"we have tested in older version wp_enqueue_style('some-id'); is working fine on 5.7.8

but it's not working on 6.1.1
even its not working on ""wp_head"", ""wp_footer"""	hasanrang05
	60200	Search functionality does not search shortcodes		Shortcodes		normal	normal	Awaiting Review	enhancement	new		2024-01-06T07:05:05Z	2024-01-06T16:26:38Z	"My site is heavily using shortcodes, which load texts from the child theme. I noticed ALL pages which use such shortcodes are not properly searchable. 

Imagine you have a shortcode which is loading a text file which contains the word ""dog"". If you now search for ""dog"", the WordPress file containing this word is not found. I think this is a big problem as search on a website is increasingly important in a world where users do not have time to browse through pages.

Please make the contents of shortcodes appear in the search."	jackstron
	66523	Tests: Add unit tests for the server-side rendering of the Shortcode block		Shortcodes		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T06:57:22Z	2026-11-06T06:57:47Z	"The `render_block_core_shortcode()` and `register_block_core_shortcode()` functions in `src/wp-includes/blocks/shortcode.php` are not referenced by any test.

This ticket adds tests for the paragraphs that `wpautop()` adds, the shortcodes that are not run by the callback, and the registration of the block."	hmbashar
	62454	[ wp-includes/shortcodes.php - do_shortcode() ] - fallback in case content is not a string		Shortcodes		normal	trivial	Awaiting Review	enhancement	new	dev-feedback	2024-11-17T10:30:17Z	2024-11-19T11:16:40Z	"Good morning everyone, while working on a project on php 8, I found that a plugin was passing content to do_shortcode() that was not a string and this led to an error. 

In my opinion, it would therefore be better to add a check, like 
{{{
if(! is_string($content) ) { return $content; }
}}}
, in order to check what is then passed str_contains(). 

Thanks in advance."	riccardodicurti
	41086	Conditional loading of CSS files from (for example) shortcodes		Shortcodes	4.8	normal	normal	Awaiting Review	feature request	new		2017-06-16T19:51:47Z	2017-06-16T19:53:27Z	"The nature of HTTP/2 is such that loading several smaller CSS files instead of one monolithic CSS file is best practice now. Great!

However. I have found several cases where loading css files as required via `wp_enqueue_style()` doesn't work because I won't know what CSS file I need until I start rendering the page, which is well past when that function is called. 

For example, with shortcodes. I have a plugin installed and active that provides a `[shortcode]`. But this `[shortcode]` is not used on every page; or even most pages (such as a goldilock pricing table). So: how do I prevent the CSS for that shortcode from being loaded when `[shortcode]` is not used? Or from the other direction: how do you load the CSS for `[shortcode]` only when that shortcode is used, and only once if the shortcode is used multiple times?

If I understand `wp_enqueue_styles()` correctly, anything enqueued after that action is run is sent to `print_late_styles()` but those go into the footer, leading to jank.

The only solution I have found is to write the HTML to load the css file directly into the output stream. To that end I wrote this to avoid dupes:

https://gist.github.com/th…/f002f696f365aff7c8252f6365cc7d5e

It works but it feels hacky. To my way of thinking a better solution would be either a mod to `wp_enqueue_style()` or a new function that allows for the enqueueing of styles but their output on demand, and once per page, similar to what I wrote above.

If the answer is just, ""don't do that,"" (which is what I've heard at least once while trying to find a solution) so be it. But the shortcode in question is loading 63k of CSS on every page and, caching be damned, I don't want it to."	theMikeD
	58819	Critical error on this website		Site Health	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-07-17T08:48:21Z	2023-07-18T08:28:00Z	"Hi,

recently we (and our clients) are receiving more and more ""critical error"" messages. 

Looking at the message in detail we see, that the message (and the whole error detection) refers to an outdated PHP version (e.g. 7.0). Yet the monitored WP implementation works with PHP version 8.0

Question: why does the routine use an outdated and unused PHP version for the monitoring?

It would be fine if the error detection routine would use the same PHP version for its monitoring as the website uses.

Or if these particular messages could be stopped, as they are not only useless but confusing. "	ewerkstatt
	50895	False information about writable files in Site Health Info		Site Health	5.4.2	normal	normal	Awaiting Review	defect (bug)	new		2020-08-11T15:06:18Z	2022-05-27T11:04:54Z	"If you set the file permissions to 777 (FTP/Server) and if you have the wrong user (www-/ftp-run issue) the site health info shows all files as writable.

In my opinion this is ""not true/false"" and sets a wrong signal for the users.

It is not possible for me to reproduce this because I do not have this server environment at the moment. I refer to https://de.wordpress.org/support/topic/wordpress-installations-fehler/#post-88589 [this thread in the support forum] and trust here completely in the long lasting experience of @pixolin."	La Geek
	63058	Site Health: Directory size stuck in loading state		Site Health		normal	normal	Awaiting Review	defect (bug)	reopened		2025-03-05T10:31:45Z	2025-05-02T02:31:17Z	"I am testing WordPress Core. But I got this critical error in site health. 

Here is the screenshot and my test server information. 
https://prnt.sc/Wsyo9PpljQGV
https://prnt.sc/Ld2nhOw9SyEi

The Directories and Category sizing keep loading. 
https://prnt.sc/DHG4tOF5K_ju

`
### wp-core ###

version: 6.8-beta1
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /%year%/%monthnum%/%day%/%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 1
dotorg_communication: Missing header/body separator

### wp-paths-sizes ###

wordpress_path: /wordpress
wordpress_size: loading...
uploads_path: /wordpress/wp-content/uploads
uploads_size: loading...
themes_path: /wordpress/wp-content/themes
themes_size: loading...
plugins_path: /wordpress/wp-content/plugins
plugins_size: loading...
fonts_path: /wordpress/wp-content/uploads/fonts
fonts_size: loading...
database_size: loading...
total_size: loading...

### wp-active-theme ###

name: Twenty Twenty-Five (twentytwentyfive)
version: 1.1
author: the WordPress team
author_website: https://wordpress.org
parent_theme: none
theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, widgets-block-editor, block-templates, post-formats, editor-style
theme_path: /wordpress/wp-content/themes/twentytwentyfive
auto_update: Disabled

### wp-media ###

image_editor: WP_Image_Editor_GD
imagick_module_version: Not available
imagemagick_version: Not available
imagick_version: Not available
file_uploads: 1
post_max_size: 2000M
upload_max_filesize: 2000M
max_effective_size: 2 GB
max_file_uploads: 20
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP
ghostscript_version: not available

### wp-server ###

server_architecture: Emscripten 3.1.61 wasm32
httpd_software: PHP.wasm
php_version: 8.0.30-dev
php_sapi: cli
max_input_variables: 1000
time_limit: 0
memory_limit: 256M
max_input_time: -1
upload_max_filesize: 2000M
php_post_max_size: 2000M
curl_version: 7.69.1 OpenSSL/1.1.0h
suhosin: false
imagick_availability: false
pretty_permalinks: true
static_robotstxt_file: false
current: 2025-03-05T10:29:09+00:00
utc-time: Wednesday, 05-Mar-25 10:29:09 UTC
server-time: 2025-03-05T10:29:08+00:00

### wp-database ###

extension: WP_SQLite_Translator
server_version: 5.5
client_version: 3.40.1
max_allowed_packet: undefined
max_connections: undefined

### wp-constants ###

WP_HOME: https://playground.wordpress.net/scope:loyal-cozy-mountain
WP_SITEURL: https://playground.wordpress.net/scope:loyal-cozy-mountain
WP_CONTENT_DIR: /wordpress/wp-content
WP_PLUGIN_DIR: /wordpress/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: true
WP_DEBUG_DISPLAY: false
WP_DEBUG_LOG: true
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: false
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: undefined
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8
DB_COLLATE: undefined

### wp-filesystem ###

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
fonts: does not exist

`"	shsajalchowdhury
	47428	Site Health: Remove duplicate code in VCS test		Site Health	5.2	normal	normal	Future Release	defect (bug)	new	has-patch	2019-05-29T14:05:53Z	2026-04-09T06:01:46Z	"In `WP_Site_Health_Auto_Updates::test_vcs_abspath()`, almost the entire `WP_Upgrader::is_vcs_checkout()` function is duplicated. This test should be updated to use `WP_Upgrader::is_vcs_checkout()` instead. There are a few issues with this that would need to be solved, though.

In the message to the user, the directory under version control and the type of version control used are specified. This currently can't be determined without duplicating the logic. Also, in order to determine if the `automatic_updates_is_vcs_checkout` filter is overriding the function's result to allow updates, the filter would need to be run twice.

Props @johnbillion for the suggestion in #47388."	desrosj
	53204	This means any errors on the site will be written to a file which is potentially available to normal users		Site Health	5.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-05-13T21:52:49Z	2022-09-01T16:48:25Z	"""The value, WP_DEBUG_LOG, has been added to this website’s configuration file. This means any errors on the site will be written to a file which is potentially available to normal users.""

You are writing a plugin for users who do not know what to do here.
We need clarity of the security issue in an clear concise paragraph.
Several suggestions on how to fix.

I am a Linux programmer with over 20 years of experience, and I found this vague recommendation to be completely useless.

""potentially"" It either is or is not.
""available""  How?  How do I make it not available?

What is the point of writing a health plugin for normal users and refusing to educate them on what do about poor health?"	kal123
	60388	WordPress Core error message in my Website		Site Health		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-01-30T22:00:14Z	2024-05-10T18:50:50Z	"Hello,

Can you help me to fix this problem (see below). I tried several fixes but none worked...
Thanks
JP Fernandes

{{{
Fatal error: Uncaught TypeError: Unsupported operand types: string - int in /.../wp-admin/includes/class-wp-site-health.php:2985
Stack trace: #0 /.../wp-admin/includes/class-wp-site-health.php(1764): WP_Site_Health->has_missed_cron()
#1 /.../wp-admin/includes/class-wp-site-health.php(194): WP_Site_Health->get_test_scheduled_events()
#2 /.../wp-admin/includes/class-wp-site-health.php(139): WP_Site_Health->perform_test()
#3 /.../wp-includes/class-wp-hook.php(324): WP_Site_Health->enqueue_scripts()
#4 /.../wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#5 /.../public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /.../wp-admin/admin-header.php(118): do_action()
#7 /.../wp-admin/site-health.php(96): require_once('/.../...')
#8 {main} thrown in /.../wp-admin/includes/class-wp-site-health.php on line 2985
}}}"	JPTF
	61534	if debug mode is true and go to the site-heath page showing extra margin top at admin-menu		Site Health		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2024-06-28T22:49:52Z	2024-10-02T21:06:27Z	when WP_DEBUG is true and we go to the site-health page there is an extra margin-top showing in the admin menu bar 	fahem
	54505	"Add ""Temp Directory"" to site health info"		Site Health		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-11-24T15:11:04Z	2021-11-24T16:18:20Z	"There are troubleshooting situations where it's helpful to  know where WP thinks the temp directory is located.  Add the tmp directory to the ""directories and sizes"" section of the site health info."	sterndata
	62994	Add a site health check for global table schemas		Site Health		normal	normal	Awaiting Review	enhancement	new		2025-02-20T16:26:38Z	2025-02-20T16:30:44Z	"The intention of the `DO_NOT_UPGRADE_GLOBAL_TABLES` constant is to allow a site owner to defer potentially expensive schema or value updates to tables that are considered global to a network (although this doesn't only affect Multisite networks).

Quoting [https://developer.wordpress.org/advanced-administration/wordpress/wp-config/#do-not-upgrade-global-tables the developer.wordpress.org page on this topic]:

> Since an ALTER, or an unbounded DELETE or UPDATE, can take a long time to complete, large sites usually want to avoid these being run as part of the upgrade so they can handle it themselves.

During [https://core.trac.wordpress.org/ticket/21022#comment:223 recent discussion on #21022] it was discovered that wordpress.org has never applied the `wp_users` table schema upgrade made in WordPress 4.4 over nine years ago. This is definitely a situation we want to avoid happening in the future as it risks delaying future enhancements both to schemas themselves and to data stored in the database.

The `DO_NOT_UPGRADE_GLOBAL_TABLES` constant should facilitate deferring a schema change rather than never making it, so let's introduce a site health check which flags outdated table schemas as critical issues.

Some schema changes can be found by looking for calls to `wp_should_upgrade_global_tables()` but others will need to be found by looking at the svn/git history of the `wp_get_db_schema()` function."	johnbillion
	57440	"Add filter to customize the ""rest_availability"" test URL"		Site Health	5.2	normal	normal	Awaiting Review	enhancement	new	has-patch	2023-01-10T20:55:14Z	2023-01-10T20:55:14Z	"The `rest_availability` test checks if the `post` post type is editable via the `wp/v2/types/post` endpoint.

If ever the `post` post type is excluded from the REST API, this test will fail:

{{{
{
  ""code"": ""rest_cannot_read_type"",
  ""message"": ""Cannot view post type."",
  ""data"": {
    ""status"": 401
  }
}
}}}

{{{
When testing the REST API, an unexpected result was returned:
    
REST API Endpoint: https://example.test/wp-json/wp/v2/types/post?context=edit
REST API Response: (403) Forbidden
}}}

This scenario occurs on sites that disable the post type.

Currently, this can be resolved either by replacing the test or filtering its results.

Ideally, I believe a filter to customize the REST URL to test would be the best option."	mcaskill
	62631	Add plugin dependencies to Site Health		Site Health	6.7.1	normal	normal	Awaiting Review	enhancement	new	has-patch	2024-12-02T14:42:59Z	2024-12-03T06:18:28Z	It would be beneficial to add information about a plugin's dependencies. See attached image 	ignatiusjeroe
	66109	Add site health check for utf8mb3 tables and columns		Site Health		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-09-14T20:14:23Z	2026-09-15T00:23:45Z	"The `utf8mb3` character set is only supporting 3-byte characters and therefore missing some emojis and other characters.

It is officially deprecated and will be removed in a future version of MySQL.
See: https://dev.mysql.com/doc/refman/8.4/en/charset-unicode-utf8mb3.html

MariaDB has no deprecation info ATM.

If the `post_content` column is on `utfmb3` this could lead to stripped-out emojis, which is not easy to understand for the non-tech-savvy user why this happens.

My recommendation would be to add a new site health check to find this tables/columns, so that people can act on this.

A proof-of-concept plugin can be found here:
https://github.com/Zodiac1978/utf8mb3-site-health

Related: #59868, #60002, #65700, #66072"	zodiac1978
	66506	Add unit tests for wp_is_home_url_using_https(), wp_is_site_url_using_https() and wp_get_https_detection_errors()		Site Health		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T02:16:28Z	2026-11-06T02:19:25Z	"`src/wp-includes/https-detection.php` has tests in `tests/phpunit/tests/https-detection.php`, but these functions are not referenced by any test:

 * `wp_is_home_url_using_https()`
 * `wp_is_site_url_using_https()`
 * `wp_get_https_detection_errors()`

This ticket adds unit tests for them, each in its own test class:

 * `wp_is_home_url_using_https()` and `wp_is_site_url_using_https()` are true for an HTTPS URL and false for an HTTP one. The second one also uses the `site_url` filter.
 * `wp_get_https_detection_errors()` returns the errors of the `pre_wp_get_https_detection_errors` filter when it returns a `WP_Error`, and otherwise makes a request to the HTTPS URL of the home page, which is mocked in the tests. It returns no errors for a valid response, `ssl_verification_failed` when only the request without the verification of the certificate works, `https_request_failed` when both requests fail, `bad_response_code` for a response other than 200 and `bad_response_source` when the response does not come from the site.

I checked that no existing ticket or open pull request adds tests for these functions."	hmbashar
	51527	Debugging in Multisite context: list of plugins		Site Health		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2020-10-15T06:41:03Z	2020-10-19T16:24:15Z	"Hello,

On site Health in Multisite context, it could be cool to know if a plugin is site activated or network activated.
I'm currently debugging a conflict and I've deactivated all plugins. I'm  reactivating one by one with the Site Health Active plugin list, but now I have activated all site plugin, several are network only and I have to re-check all one by one because it's not in the report.

Should be good to add in the plugin line ""network activated"" by example as it is in the plugin list"	sebastienserre
	63661	Display admin error message if AUTO_INCREMENT attribute is missing on WP core tables		Site Health		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2025-07-03T09:48:29Z	2025-07-03T20:31:00Z	"WordPress relies on the AUTO_INCREMENT attribute on core database tables to function correctly. When this attribute is missing, it can lead to issues with data integrity and data creation.

For example:
DB Migration - by default AWS DMS’s Basic Schema Copy will not preserve the AUTO_INCREMENT (identity) property on your target tables. It only creates the tables and primary-key definitions; things like secondary indexes, foreign-key constraints and auto-increment attributes are skipped during the load

To improve user experience and prevent potential issues, it would be beneficial to add an admin notice that detects and alerts site administrators if any core tables are missing the AUTO_INCREMENT attribute. This proactive warning would guide administrators to correct their database schema, ensuring WordPress operates smoothly"	bangelov
	52799	Easy HTTPS Redirects in WordPress Dashboard		Site Health		normal	normal	Awaiting Review	enhancement	new		2021-03-12T21:58:54Z	2021-04-02T04:45:07Z	"In 5.7 we introduced a way to automatically update database URLs in the Tools > Site Health section. Great work everybody!

**In addition to updating URLs, I propose that 5.8 adds a button to force HTTPS redirects in the .htaccess file at the site root.** This feature would add the following code to the # BEGIN WordPress / # END WordPress block in the .htaccess file:

{{{
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
}}}

**Why do this?** Adding this enhancement can make securing a WordPress site much easier for users who don't want to fuss with code to keep their site from returning pages with http://."	sarmstead
	57826	Either core themes should not be automatically installed OR their presence should not be a site health issue		Site Health		normal	minor	Awaiting Review	enhancement	new	dev-feedback	2023-02-28T21:12:33Z	2023-03-01T20:28:34Z	WordPress automatically installs new core themes over time. The inactive presence of these core themes is then detected as a site health issue. One or the other of these things should not be true.	zergling81
	56035	Error logging improvements		Site Health		normal	normal	Awaiting Review	enhancement	new		2022-06-22T08:22:23Z	2022-08-03T00:28:14Z	"The current error logging isn't always as helpful as it could be. Here are some things that can be improved:

1. Consolidation of all messages to one log file. I sometimes see the same message in error_log and wp-admin/error_log. Sometimes, I see admin messages only in error_log, and it's often a hassle cross-referencing issues that may occur on the front-end, but are an effect of some admin issue.

When factoring in things like WooCommerce logs and other special cases, it gets even worse.

Therefore, I suggest having one file where all messages are written, whether they are written somewhere else as well or not.

Since `error_log()` is a PHP function, this can be done via a wrapper function and/or communication with plugin and theme developers, unless someone has a better idea.

2. All database query failures should be logged along with the context in which they occurred (the call stack).

3. Site Health recovery messages should be written to the log file, not just sent by email.

When changing code, it's important to fix errors quickly, and email can take a few minutes to arrive in some cases, e.g. when the email goes via some external spam filtering service.

4. Ideally, the default log file should be named `error.log` or `error_log.txt` to make it easier to open it on computers that associate text editors with file name extensions."	galbaras
	50272	Move current admin footer reminder when running development version to Site Health		Site Health	5.2	normal	normal	Awaiting Review	enhancement	new		2020-05-28T03:00:24Z	2022-05-06T10:50:58Z	"When running a development version, there is a text in the right admin footer like this: ""You are using a development version %(version)s. Cool! Please stay updated.""

This is really information that fits Site Health. It's also in the line of de-emphasizing version in the admin.

Site Health could also need a ""cool"" category, but going along with a gentle warning that such is not safe for production."	knutsp
	47426	Site Health should check for incompatible plugins and plugins no longer maintained		Site Health	5.2.1	normal	normal	Awaiting Review	enhancement	new		2019-05-29T10:24:01Z	2020-12-29T06:21:04Z	"WordPress no longer supports installing plugins from the repository that have not been tested with the respective core version. However, site health doesn't report such plugins when core has been updated beyond what the plugins have been tested for.

I think this should be added and reported with low severity.

When a plugin has not been tested with the 3 releases prior to the respective core version, the severity should be higher to match the current standard on the plugin repository.

The severity should be higher again when the plugin has been discontinued.

This is relevant for wp.org plugins, but can be extended to plugins from other sources using standards for compatibility statements and/or programming hooks.

Themes should be checked and reported in a similar manner."	galbaras
	54584	Site Health should flag PHP versions in the dev-stable branch		Site Health		normal	normal	Awaiting Review	enhancement	new		2021-12-06T02:32:05Z	2022-01-21T16:53:35Z	"PHP always maintains two active branches, one called production-stable and one called development-stable (aka ""bleeding edge"").

Site Health should focus on getting sites to use the latest version of PHP in the production-stable branch, and flag sites using PHP versions in the bleeding edge branch. Some text could be displayed to the effect that WordPress may not be compatible with PHP versions in the “bleeding edge” branch, but WordPress will always be compatible with PHP versions in the production-stable branch.

This would also have the benefit of fewer PHP compatibility issues with plugins and themes.
"	DionDesigns
	56987	Site Health: add visual placeholder for checks that are still loading		Site Health		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2022-11-03T16:26:43Z	2023-10-23T18:41:50Z	"I love the Site Health feature, and I think it can improved in a few small ways to potentially impact user experience in one big way 💙

Right now, there is some helpful text that says ""Results are still loading"" and – when at least 1 recommendation can be made – another piece of text becomes a counter for the increasing number of possible Site improvements.

This is great to have, but in my experience, the longer running in-progress checks are easily overlooked because there is not a big obvious visual indicator that background processing is happening.

It wasn't until I started writing this description and looking for clues, that I zoomed in to see that the thin grey circle next to the top text (id: `#site-health-progress`) has animation connected to it. (I recall this previously had a percentage; I think it's OK that number is omitted.)

When a recommendation finishes, it appears in either the top list for ""recommended improvements"" or the bottom list for ""items with no issues detected"". This is where I have ideas for UX tweaks:

* ""items with no issues detected"" is hidden by default behind a button shaped toggle, so users are never presented with what work is being done
* ""items with no issues detected"" toggle state is not persistent between page refreshes (using a screen option) so curious users cannot opt-in to seeing progress
* longer running checks give the impression that checks have completed or the page may be stuck

----

In my imagination, a few things should happen in conjunction:

* Add visual placeholders for in-progress checks
  * perhaps as its own separate list with an item for each one, with a spinner where the open/close toggle is
    * maybe some new creative UI if there is visual noise from elements jumping around
* ""items with no issues detected"" should be open by default
  * when the user toggles it closed, it should stay closed until opened, etc..
  * ""Screen Options"" could be added to use an existing API (or something more Gutenbergy?)
* More explicit and intentional verbiage - are these checks, items, issues, recommendations, improvements, or tests?
  * Fewer words to give users less to read
  * Narrow the scope of these adjectives into a familiar Type/State/Status pattern?
* More precise counts & labels:
  * Simple: `All (24) | Pending (2) | Running (5) | Finished (17)`
  * Wordy: `All (24) | Needs Attention (2) | In Progress (5) | Satisfactory (17)`
* Checks should be dismissible so users can hide ones they are comfortable with
  * Screen Options to the rescue again!
  * Add ""Dismissed (1)"" to the above counts
* Save state of checks in a transient, run as cron every 24 hours
  * Add some text about ""checks running periodically""
  * Allow this to be disabled with filters and/or multisite installs
  * Debounce for some number of seconds so navigating between ""Status"" and ""Info"" does not always rerun every check
  * Show a (2) count bubble in the admin menu
  * Send an email when new recommendations are discovered
  * Add some ""Rerun"" or ""Check Now"" button to flush the transient & run the job

----

I think these iterations change Site Health from being the very useful tool that it currently is (when discovered organically) to an interface that feels trustworthy and remarkable enough for users to feel compelled to take action on, and plugins & WordPress core to pull users into when issues come up."	johnjamesjacoby
	50018	Site Health: is_writable() check when there are more than 1 theme directories		Site Health	5.2	normal	normal	Future Release	enhancement	new		2020-04-27T16:53:27Z	2022-09-19T13:45:46Z	"While working on the patch to #48199, I discovered the existence of [https://developer.wordpress.org/reference/functions/register_theme_directory/ register_theme_directory()].  Using `register_theme_directory()` it seems to be possible to have a setup such as:

* `WP_CONTENT_DIR/parent-themes/some-parent-theme`
* `WP_CONTENT_DIR/child-themes/current-theme`

where `current-theme` is a child of `some-parent-theme`.  In such a setup, the current behavior (and that in the patch for #48199) actually checks whether `WP_CONTENT_DIR/parent-themes` is writable.

2 questions:

1. should the `is_writable()` actually be checking whether `get_theme_root( get_stylesheet() )` is writable?
2. should there be additional checks whether **all** registered theme directories are writable?"	pbiron
	51336	Support php-error.php outside of WP_CONTENT_DIR		Site Health	5.2	normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2020-09-18T04:34:48Z	2020-09-18T13:13:11Z	"Since 5.2 WordPress has supported a `php-error.php` drop-in which overwrites the error template:
https://make.wordpress.org/core/2019/04/16/fatal-error-recovery-mode-in-5-2/

This is happening in `class-wp-fatal-error-handler.php` on 143
https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-fatal-error-handler.php#L141



{{{#!php
...
// Load custom PHP error template, if present.
$php_error_pluggable = WP_CONTENT_DIR . '/php-error.php';
...
}}}

In some cases, `WP_CONTENT_DIR` is read-only which means that this file cannot be used to customize the message. I'm open to other solutions but at the moment, I would like to propose we add an additional constant here instead.

{{{#!php
if ( defined( 'WP_CONTENT_DIR' ) ) {
	// Load custom PHP error template, if present.
	if ( defined( WP_ERROR_TEMPLATE_DIR ) {
		$php_error_pluggable_dir = WP_ERROR_TEMPLATE_DIR;
	} else {
		$php_error_pluggable_dir = WP_CONTENT_DIR;
	}
	$php_error_pluggable = $php_error_pluggable_dir . '/php-error.php';
	if ( is_readable( $php_error_pluggable ) ) {
		require_once $php_error_pluggable;
		return;
	}
}
}}}

That conditional could probably be simplified too :)"	brookedot
	62214	Update Site Health to use `do_accordion_sections()`		Site Health	5.2	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2024-10-13T19:20:31Z	2024-10-13T19:20:31Z	"Currently, the `do_accordion_sections()` function is used in only one place - the navigation menus. However, the same pattern and JS is used in Site Health, as well. 

This has a lot to do with how the function is set up, which is limiting to its effective use. It's completely dependent on the presence of meta boxes, and has no flexibility for other usage.

Site Health, on the other hand, uses a combination of Underscore JS templates to render the content.

This ticket is to explore the possibility of using the same codebase to output these two accordion patterns and reduce code duplication. 

See #42002."	joedolson
	50745	Visualisation of site health could be better		Site Health		normal	normal	Awaiting Review	enhancement	new		2020-07-23T19:41:18Z	2020-09-21T19:34:04Z	"Currently the colored circle in the dashboard widget and in the top of the Site Health-page is quite vague in my opinion. Why is it so small, and what does the thin color border communicate? It does not communicate the grade of health for me. 

Just an idea: could we use a more direct way to communicate the health with better graphics? I tried a thermomether/scale with an arrow and three colors exposed all the time. With it you get an idea of where your are, and where you could be.

Thanks!
"	kebbet
	65891	When WordPress PHP email fails, the user often doesn't know		Site Health	7.1	normal	normal	Awaiting Review	enhancement	new	has-patch	2026-08-16T20:34:59Z	2026-08-17T07:25:24Z	WordPress PHP email sometimes fails to send, depending on the host. There currently is no built-in way for a user to test whether the email works on a particular installation. A tool in Site Health to help verify whether PHP email is working would help.	chadbush
	57059	add complete phpinfo() to site health		Site Health		normal	minor	Awaiting Review	enhancement	new	close	2022-11-10T13:23:26Z	2024-03-07T10:14:03Z	"We regularely run into situations where we need detailed information from the `phpinfo()` page.

Currently the site health page is pretty nice when trying to get a quick overview of what is working and what is missing.

But it would be nice if there is a link inside the Site Health page to a complete render of the `phpinfo()` method (similar to other CMS like Drupal).

This page/link/tab (e.g. https://mysite.at/wp-admin/phpinfo.php) or whatever should only be accessible to logged in WordPress admins so no potentially critical information is leaked for not logged in users."	beardcat
	52916	can_perform_loopback() should not rely on wp-cron.php check		Site Health	5.7	normal	minor	Awaiting Review	enhancement	new		2021-03-26T05:21:18Z	2021-04-06T18:13:32Z	"It is quite often that users would want to prevent/hide access to /wp-cron.php.

For example, they want to use the real Linux cron scheduler, and invoke /wp-cron.php only interactively; all while returning ""404"" on purpose when /wp-cron.php is requested.

[https://www.getpagespeed.com/server-setup/nginx/best-practice-secure-nginx-configuration-for-wordpress Here] you can find an NGINX config that purposely does not list /wp-cron.php as an allowed endpoint, and thus returning 404 when wp-cron.php is accessed via web, which is fine. The WP Cron is suggested there to be run via CLI only. 

So while the site is still fully functional, WP Admin shows a false-positive error for the health check: ""Your site could not complete a loopback request"".

I propose to:

* use a different endpoint for loopback requests check, something that is less likely to be disabled by users. wp-json? 
* check wp cron being valid using other means, like last run time of a task.

At the very least, not use /wp-cron.php for any checks when DISABLE_WP_CRON constant is true.
"	dvershinin
	59070	child theme should not be counted as additional theme		Site Health	6.3	normal	normal	Awaiting Review	enhancement	new	has-patch	2023-08-11T10:45:27Z	2025-06-20T15:58:20Z	"Child theme should be notified as sub-theme, and not additional theme. If you have installed 2 theme, like Twenty Twenty-Three and Beelove+Beelove child, WP notified it is 3 theme and in notification is:

👉Your website has 3 themes installed, in the latest versions. Your website has 1 inactive theme besides Twenty Twenty-Three, the original WordPress theme, and Beelove_Custom, your active theme."	MMZx
	54039	site health can probably do better job at detecting if imagick supports PDF		Site Health		normal	normal	Awaiting Review	enhancement	new		2021-08-30T15:20:21Z	2021-09-09T14:54:57Z	"The current code is


{{{
if ( function_exists( 'exec' ) ) {
    $gs = exec( 'gs --version' );
    if ( empty( $gs ) ) {
.....
}}}

`exec` is probably disabled on many hosts which means the test will not run at all.

From looking at https://www.drupal.org/project/media_thumbnails/issues/3207465 it seems that imagick reports whether it supports PDF format as part of its phpinfo output. Maybe there is a direct API to get th information as well.

If this is not robust enough, maybe the test should try to generate an image from a test pdf file.
"	mark-k
	61967	Allow site health managment		Site Health		normal	normal	Awaiting Review	feature request	new		2024-08-31T12:37:57Z	2025-11-19T16:59:50Z	"Currently Site Health does't allow the administrator to exclude some checks added by WordPress or third part plugin. This can be annoying as no always a notification who indicate a critical problem is real and the admin want disable the alert.

There is a great old abandoned plugin that does do the job but is no more updated since 4 years and soon since more: https://wordpress.org/plugins/site-health-tool-manager/

I would suggest to introduce the same but with an update code."	peopleinside
	66407	Site Health: support custom cron interval		Site Health	7.1.4	normal	normal	Awaiting Review	feature request	new	has-patch	2026-10-29T01:43:36Z	2026-10-30T11:10:11Z	"When the system cron is used and if {{{DISABLE_WP_CRON}}} is true, the Site Health report can be too aggressive about reporting late or missed tasks. I am echoing this report:

https://wordpress.org/support/topic/timeout-late-cron-override/

Of course ""too aggressive"" is subjective. The warning arises from the following code in ''wp-admin/includes/class-wp-site-health.php'':

{{{#!php
<?php
if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) {
    $this->timeout_late_cron   = - 15 * MINUTE_IN_SECONDS;
    $this->timeout_missed_cron = - 1 * HOUR_IN_SECONDS;
} 
}}}

As an anecdote, around 97% of our sites are happy with one cron run a day, and I would rather not hear about the tasks that ''were'' run, but were run when I wanted to run them rather than when they were scheduled. (I would also rather not hit the database 24x more often than is necessary to hide a warning that does not indicate a problem.)

It is possible to disable these warnings via hooks, but I don't necessarily want to disable them. What I really want to know is, if I am (say) running cron every 24 hours, what jobs have not run within the past 24 hours? Those are what indicate a problem.

The administrator is the only one who can know how often cron is scheduled, though, so my suggestion is to allow the admin to define a new constant like

{{{#!php
<?php
define('WP_SYSTEM_CRON_INTERVAL', DAY_IN_SECONDS);
}}}

The ""late"" and ""missed"" timeouts would then take this into consideration, for example (untested):

{{{#!php
<?php
if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) {
    // if WP_SYSTEM_CRON_INTERVAL is not defined, feel free to use 0
    // for backwards compatibility
    $this->timeout_late_cron   = - WP_SYSTEM_CRON_INTERVAL - 15 * MINUTE_IN_SECONDS;
    $this->timeout_missed_cron = - WP_SYSTEM_CRON_INTERVAL - 1 * HOUR_IN_SECONDS;
}
}}}
"	michael.orlitzky
	65375	Paginated XML sitemap sub-pages return 404 once paged exceeds the blog post page count		Sitemaps	5.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-05-30T16:50:28Z	2026-06-10T23:49:40Z	"A paginated core XML sitemap sub-page — e.g. `wp-sitemap-posts-<post_type>-N.xml` or `wp-sitemap-taxonomies-<tax>-N.xml` — is served with an HTTP '''404''' status once the page number `N` exceeds the number of pages in the '''blog (`post`) sitemap''', even though `WP_Sitemaps` renders a full, valid `<urlset>` body for that page.

The 404 boundary tracks the site's regular `post` count and `posts_per_page`, '''not''' the post type or taxonomy actually being requested. On a site with many CPT/taxonomy URLs but few regular posts, the sitemap index advertises (say) 40 sub-sitemaps but only the first few return `200`; the rest return `404` with valid XML in the body. Search engines discard the 404'd pages, so most of the advertised URLs never get indexed.

== Environment ==

 * WordPress 5.5 through 7.0 (reproduced unchanged across versions in clean WordPress Playground instances — no third-party plugins). See ""Affected versions"" below.
 * Pretty permalinks enabled; core XML sitemaps enabled (default).
 * A public custom post type, OR a custom taxonomy registered on both `post` and a CPT.

== Steps to reproduce ==

Run the self-contained script below in any clean WordPress with pretty permalinks + core sitemaps enabled (no third-party plugins), via `wp eval-file sitemap-paged-404-repro.php`. It registers a public CPT and a taxonomy shared on both `post` and the CPT, seeds a boundary condition where the blog sitemap has fewer pages than the CPT sitemap, drives the real core request lifecycle (`WP::query_posts()` -> `WP::handle_404()`) for each sitemap sub-page URL, and prints the resulting HTTP status. Proven on WP 7.0: prints `bug_reproduced: true` with the beyond-boundary CPT page at `status_header: 404` while the renderer holds valid URLs.

{{{#!php
<?php
/**
 * Standalone reproduction for: paginated XML sitemap sub-pages 404 once `paged`
 * exceeds the blog (`post`) sitemap page count.
 *
 * Runs in any clean WordPress with pretty permalinks + core sitemaps enabled.
 * No third-party plugins required.
 *
 *   wp eval-file sitemap-paged-404-repro.php
 *
 * It registers a public CPT and a taxonomy shared on both `post` and the CPT,
 * seeds a boundary condition where the blog sitemap has FEWER pages than the
 * CPT sitemap, drives the real core request lifecycle (WP::query_posts() ->
 * WP::handle_404()) for each sitemap sub-page URL, and prints the resulting
 * HTTP status + is_404. A reproducing run prints `bug_reproduced: true` with
 * the beyond-boundary CPT page at status 404 while the renderer holds valid URLs.
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit( 1 );
}

// 1. Public CPT + a taxonomy shared on BOTH `post` and the CPT. No 404 hooks.
register_post_type( 'repro_event', array(
	'public'      => true,
	'has_archive' => true,
	'rewrite'     => array( 'slug' => 'repro-event' ),
	'taxonomies'  => array( 'repro_artist' ),
) );
register_taxonomy( 'repro_artist', array( 'post', 'repro_event' ), array(
	'public'       => true,
	'hierarchical' => false,
	'rewrite'      => array( 'slug' => 'repro-artist' ),
) );

// Small sitemap page size so the CPT sitemap advertises multiple pages cheaply.
// Does NOT change the mechanism: the 404 boundary is the MAIN query's
// posts_per_page (blog page count), not this value.
add_filter( 'wp_sitemaps_max_urls', static function () { return 50; } );

// 2. Pretty permalinks + tiny blog page size, then flush rewrites.
update_option( 'permalink_structure', '/%postname%/' );
update_option( 'posts_per_page', 5 );
global $wp_rewrite;
$wp_rewrite->init();
$wp_rewrite->set_permalink_structure( '/%postname%/' );
$wp_rewrite->flush_rules( false );

// 3. Seed: blog 6 posts / 5 per page = 2 main-query pages -> 404 boundary at page 3.
//          CPT 120 posts / 50 max_urls = 3 CPT sitemap pages. Page 3 > boundary 2.
$term    = wp_insert_term( 'Test Artist', 'repro_artist', array( 'slug' => 'test-artist' ) );
$term_id = is_wp_error( $term )
	? (int) get_term_by( 'slug', 'test-artist', 'repro_artist' )->term_id
	: (int) $term['term_id'];

for ( $i = 1; $i <= 6; $i++ ) {
	wp_insert_post( array( 'post_type' => 'post', 'post_status' => 'publish', 'post_title' => ""Blog Post $i"", 'post_name' => ""blog-post-$i"" ) );
}
for ( $i = 1; $i <= 120; $i++ ) {
	$pid = wp_insert_post( array( 'post_type' => 'repro_event', 'post_status' => 'publish', 'post_title' => ""Repro Event $i"", 'post_name' => ""repro-event-$i"" ) );
	if ( $pid && ! is_wp_error( $pid ) ) {
		wp_set_object_terms( $pid, array( $term_id ), 'repro_artist' );
	}
}

$ppp                   = (int) get_option( 'posts_per_page' );
$blog_main_query_pages = (int) ceil( (int) wp_count_posts( 'post' )->publish / $ppp );

// 4. Drive the real core request lifecycle for each sitemap sub-page URL.
$probe = static function ( $query_vars_string ) {
	global $wp, $wp_query, $wp_the_query;

	$captured = array( 'status' => null );
	$cb = static function ( $header ) use ( &$captured ) {
		if ( preg_match( '#\s(\d{3})\s#', ' ' . $header . ' ', $m ) ) {
			$captured['status'] = (int) $m[1];
		}
		return $header;
	};
	add_filter( 'status_header', $cb, 10, 1 );

	$wp                  = new WP();
	$wp_query            = new WP_Query();
	$wp_the_query        = $wp_query;
	$GLOBALS['wp_query'] = $wp_query;

	parse_str( $query_vars_string, $qv );
	$wp->query_vars = $qv;
	$wp->query_posts();   // class-wp.php:824
	$wp->handle_404();    // class-wp.php:825 — sets the status

	$is_404 = $wp_query->is_404();

	// What WP_Sitemaps would actually render for this page.
	$server    = wp_sitemaps_get_server();
	$sitemap   = $qv['sitemap'] ?? '';
	$subtype   = $qv['sitemap-subtype'] ?? '';
	$paged     = isset( $qv['paged'] ) ? (int) $qv['paged'] : 1;
	$url_count = null;
	if ( $sitemap && 'index' !== $sitemap ) {
		$provider = $server->registry->get_provider( $sitemap );
		if ( $provider ) {
			$url_list  = $provider->get_url_list( $paged ?: 1, $subtype );
			$url_count = is_array( $url_list ) ? count( $url_list ) : 0;
		}
	}
	remove_filter( 'status_header', $cb, 10 );

	return array(
		'query'                      => $query_vars_string,
		'main_query_post_type'       => $wp_query->get( 'post_type' ),
		'main_query_posts'           => count( $wp_query->posts ),
		'handle_404_set_is_404'      => $is_404,
		'status_header'              => $captured['status'],
		'sitemap_renderer_url_count' => $url_count,
	);
};

$probes = array(
	'cpt_page_1'    => $probe( 'sitemap=posts&sitemap-subtype=repro_event&paged=1' ),
	'cpt_page_3'    => $probe( 'sitemap=posts&sitemap-subtype=repro_event&paged=3' ),
	'artist_page_3' => $probe( 'sitemap=taxonomies&sitemap-subtype=repro_artist&paged=3' ),
);

$bug_reproduced = ( true === $probes['cpt_page_3']['handle_404_set_is_404'] )
	&& ( $probes['cpt_page_3']['sitemap_renderer_url_count'] > 0 );

echo wp_json_encode( array(
	'wp_version'            => get_bloginfo( 'version' ),
	'blog_main_query_pages' => $blog_main_query_pages,
	'probes'               => $probes,
	'bug_reproduced'       => $bug_reproduced,
), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ) . ""\n"";
}}}

== Expected vs actual ==

'''Expected:''' `200 OK` with the page's `<urlset>` (the renderer produces valid URLs for that page).

'''Actual:''' `404 Not Found`, but the response body is a complete, valid `<urlset>`. The status header and the body disagree.

Captured output (clean WP 7.0, no plugins):

|| '''request''' || '''paged''' || '''main query post_type''' || '''main query posts''' || '''status''' || '''renderer URL count''' ||
|| wp-sitemap-posts-repro_event-1.xml || 1 || """" (defaults to post) || 5 || '''200''' || 50 ||
|| wp-sitemap-posts-repro_event-3.xml || 3 || """" (defaults to post) || 0 || '''404''' || '''20''' ||
|| wp-sitemap-taxonomies-repro_artist-3.xml || 3 || """" (defaults to post) || 0 || '''404''' || valid ||

Blog main-query pages = 2 (7 posts / 5 per page); CPT sitemap pages = 3. The 404 appears at page 3 because 3 > 2 — i.e. the boundary is the '''blog''' page count, irrespective of the requested subtype.

== Root cause ==

The core sitemap rewrite rule maps a paginated sitemap URL to query vars '''without a `post_type`''':

{{{
^wp-sitemap-([a-z]+?)-([a-z\d_-]+?)-(\d+?)\.xml$
  => index.php?sitemap=$1&sitemap-subtype=$2&paged=$3
}}}

So `wp-sitemap-posts-repro_event-3.xml` becomes `index.php?sitemap=posts&sitemap-subtype=repro_event&paged=3`. There is no `post_type` query var, so the '''dummy main `WP_Query`''' built for the request defaults to the `post` post type at the site's `posts_per_page`.

`WP::main()` (source:tags/7.0/src/wp-includes/class-wp.php#L818) runs, in order:

 * `query_posts()` — source:tags/7.0/src/wp-includes/class-wp.php#L824 — runs the dummy main query (post type = post)
 * `handle_404()` — source:tags/7.0/src/wp-includes/class-wp.php#L825 — '''decides the status BEFORE the renderer runs'''
 * `register_globals()` — L826
 * `send_headers()` — L829
 * `do_action( 'wp' )` — L838

In `WP::handle_404()` (source:tags/7.0/src/wp-includes/class-wp.php#L724), for `paged=3` the main query returns zero `post`s:

 * L754 `elseif ( $wp_query->posts )` — false (no posts).
 * L783 `elseif ( ! is_paged() )` / L789 (`is_tag()`/`is_category()`/`is_tax()`/`is_post_type_archive()` + `get_queried_object()`, `is_home()`, `is_search()`, `is_feed()`) — none of these exemptions match a sitemap query.
 * `$set_404` stays true -> L797–L801: `$wp_query->set_404(); status_header( 404 ); nocache_headers();`.

Then, later in the request, `WP_Sitemaps::render_sitemaps()` (source:tags/7.0/src/wp-includes/sitemaps/class-wp-sitemaps.php#L163), hooked on '''`template_redirect`''' (registered in `WP_Sitemaps::init()` at source:tags/7.0/src/wp-includes/sitemaps/class-wp-sitemaps.php#L69), runs '''after''' `WP::main()` has already returned and already set the 404. It queries its '''own''' provider (`$provider->get_url_list( $paged, $object_subtype )`, L208), gets a valid non-empty URL list, and renders it (L217 `render_sitemap()`, L218 `exit`). It only sets its own 404 when the page is genuinely empty (L211–L214) — and it '''never resets''' the status header back to `200` for a populated page.

Net: `handle_404()` (main query, defaults to `post`) and `render_sitemaps()` (provider query, correct subtype) disagree about whether the page exists, and `handle_404()` wins the status header because it runs first and the renderer never corrects it.

== Why there is no existing guard ==

Sitemaps originally routed through `WP_Sitemaps::redirect_sitemapxml()`, which '''was''' a `pre_handle_404` filter and short-circuited 404 handling for sitemap requests. That method was '''deprecated in 6.7.0''' (source:tags/7.0/src/wp-includes/sitemaps/class-wp-sitemaps.php#L231, `_deprecated_function( __FUNCTION__, '6.7.0' )`) when sitemap routing moved to rewrite rules — but nothing replaced its `pre_handle_404` bypass. So the move to rewrite rules left the main-query 404 path unguarded for sitemap routes.

== Proposed fix ==

Have `WP_Sitemaps` short-circuit 404 handling for its own routes, restoring the guarantee the deprecated `redirect_sitemapxml()` used to provide — the renderer already owns the legitimate empty-page 404 (L211–L214):

{{{#!php
<?php
// In WP_Sitemaps::init(), alongside the template_redirect registration:
add_filter( 'pre_handle_404', array( $this, 'pre_handle_404' ), 10, 2 );

/**
 * Short-circuit core 404 handling for sitemap routes so the dummy main query
 * (which defaults to the `post` post type) cannot 404 a sitemap response.
 * WP_Sitemaps::render_sitemaps() remains responsible for the response and
 * still issues its own 404 when a page genuinely has no URLs.
 */
public function pre_handle_404( $bypass, $wp_query ) {
    if ( $bypass ) {
        return $bypass;
    }
    if ( $wp_query->get( 'sitemap' ) || $wp_query->get( 'sitemap-stylesheet' ) ) {
        return true;
    }
    return $bypass;
}
}}}

Alternatively, exempt sitemap query vars inside `WP::handle_404()` itself, but the `pre_handle_404` approach keeps the sitemap-specific knowledge in `WP_Sitemaps`.

== Affected versions (verified) ==

Not a regression — present since core XML sitemaps shipped in 5.5. The same repro script was run unchanged across multiple major versions in clean Playground instances; the paginated sub-page is flagged `is_404` (and served 404) in every one:

|| '''WordPress''' || '''cpt_page_3 handle_404 set is_404''' || '''renderer URL count''' ||
|| 5.5.18 || true || 20 ||
|| 6.6.5 || true || 20 ||
|| 6.7.5 || true || 20 ||
|| 7.0 || true || 20 ||

(The deprecation of `WP_Sitemaps::redirect_sitemapxml()` in 6.7.0 is unrelated: that method only performed a `wp_safe_redirect()` for the legacy `pagename=sitemap-xml` permalink case and never guarded paginated sub-sitemap requests against the main-query 404. The bug reproduces identically on 6.6, before that deprecation.)

== Related ==

Surfaced while investigating a related virtual-route status bug in feeds (`get_feed_build_date()` / `WP_Query` `fields => ids`, see [https://github.com/WordPress/wordpress-develop/pull/11387 wordpress-develop#11387], where the same ""is the virtual route masking a lower-level main-query issue?"" question applies). This sitemap ticket is the sitemap-route analogue: a virtual route whose status is being decided by the unrelated dummy main query."	extrachill
	54010	Redirect from /sitemap.xml to /wp-sitemap.xml needs to be 301 and not 302		Sitemaps	5.5	normal	normal	Awaiting Review	defect (bug)	new		2021-08-25T21:05:27Z	2022-03-01T15:29:35Z	"/sitemap.xml is the standard naming nomenclature for XML sitemaps submitted to search engines. It is widely accepted in the search community and is the defacto default for most automated sitemap tools. Because of the term's popularity when a user accesses this file off of the WordPress root they are automatically redirected via 302 to WordPress' builtin XML site map at /wp-sitemap.xml

This redirect should be a 301 not a 302, because 302's are ignored by search engines as they are meant to only be temporary. This issue is causing confusion for users that aren't familiar with the WordPress default and submitting /sitemap.xml instead to search engines who then ignore the redirect because it is a 302. "	RedBMedia
	56671	Sitemaps not working with almost pretty permalinks		Sitemaps	5.5	normal	normal	Awaiting Review	defect (bug)	new		2022-09-27T21:21:54Z	2022-09-27T21:21:54Z	"As the documentation states, WordPress supports 3 types of permalinks: https://wordpress.org/support/article/using-permalinks/#permalink-types-1.

- Plain per(malinks: `https://example.org/?sitemap=index`
- Pretty permalinks: `https://example.org/wp-sitemap.xml`
- Almost pretty permalinks: `https://example.org/index.php/wp-sitemap.xml`

The 3rd solution is provided for servers with rewrite engine off.

The first 2 options are working as expected, not the third one.

To reproduce:

Tested on an Apache server:
- Select `index.php/%postname%/` in permalinks settings.
- Delete the file `.htaccess` (this deactivates rewrite engine).
- Check that you can navigate on frontend, visiting posts, pages, categories, etc... with urls all including `index.php`.
- Attempt to visit `https://example.org/index.php/wp-sitemap.xml` (which I expect to be the sitemap index).
=> You are redirected to `https://example.org/wp-sitemap.xml` which is a server 404 page.

You are also redirected to the same 404 if you attempt to visit `https://example.org/?sitemap=index`"	Chouby
	55848	wp-sitemap.xml fails to load with large number of URLs		Sitemaps		normal	normal	Awaiting Review	defect (bug)	new		2022-05-26T18:30:36Z	2022-11-05T04:56:06Z	"benim site de wp-sitemap.xml 50000 den fazla url var fantaziescort.com site haritasına ulaşamıyorum ayarlayamıyorum resim haritasında resimleri ekleyebiliyorum yada kapada biliyorum diyer gönderileri nereden ayarlayabilirim site 50000 den fazla url alıyormu bunun ayarlarını nereden yapabilirim başka url olduğunda site hata verirmi wp-sitemap.xml kontrol yapabilecek ne yapabilirim bana yardım edermisiniz

my site also has wp-sitemap.xml there are more than 50000 urls I can't access fantaziescort.com sitemap I can't set it I can add images in the image map or it's closed
I know, where can I set the posts? Does the site get more than 50000 urls, where can I set it up, will the site give an error when there is another url, what can I do to check wp-sitemap.xml, can you help me?"	bakiyisite
	52434	Add a way to inject alternate links for entries in wp-sitemap.xml		Sitemaps	5.6	low	normal	Future Release	enhancement	new		2021-02-03T11:57:00Z	2023-03-16T15:40:35Z	"Hi there! Loving the new built-in feature to let WordPress generate sitemaps! Today I tried to add alternate links to my sitemap (for translated posts), but with no luck. Looking at the core and documentation, only `lastmod` and some other tags are supported, but I would need tags of type `xhtml:link` as described here: https://translatepress.com/multilingual-sitemap-wordpress-site/

Any chance there will soon be a way to inject more complex tags to sitemap entries?"	nonverbla
	64458	Add ability to set different renders based on sitemap type		Sitemaps		normal	normal	Awaiting Review	enhancement	new		2025-12-30T00:54:04Z	2025-12-30T00:54:04Z	"I'm working on a plugin that extends the core sitemaps functionality to add a News Sitemap. One area that got a little hacky was overriding the core Renderer. Ideally, this would work exactly like how the Providers work, extending `WP_Sitemaps_Registry` to also manage renderers. They could similarly be keyed by a name, and if `WP_Sitemaps::render_sitemaps()` has no renderer for the sitemap type, the current renderer could be used as a fallback.

This would facilitate adding other sitemap types as discussed in #51016 and offers an alternative approach to what was discussed [https://github.com/GoogleChromeLabs/wp-sitemaps/issues/151 in GitHub].

Adding a new Renderer would then look something like:

{{{#!php
add_action(
    'wp_sitemaps_init',
    function ( $wp_sitemaps ) {
        $wp_sitemaps->registry->add_renderer( 'video', new My_Video_Sitemap_Renderer() );
    }
);
}}}
"	mboynes
	64044	Request to change the limit of each sitemap to 1000 urls instead of 2000 urls as current		Sitemaps		normal	normal	Awaiting Review	enhancement	reopened	dev-feedback	2025-09-25T18:12:57Z	2025-09-28T09:10:50Z	Google Search Console standard is always 1000 urls, so please request to change the default sitemap limit from 2000 to 1000 urls to match Google Search Console standard. Request to apply this standard on WordPress version 6.9	phanduynam
	51318	WP_Sitemaps_Provider protected $name property		Sitemaps	5.5.1	normal	major	Awaiting Review	enhancement	new		2020-09-16T01:05:45Z	2020-09-30T08:56:29Z	"See: https://developer.wordpress.org/reference/classes/wp_sitemaps_provider/

Why We need $name property to be protected? It is just name. This is inconvenient and can cause bugs. For example I create my Sitemaps Provider like this:
{{{#!php
<?php
add_filter( 'init', 'wpkama_register_sitemap_providers' )
function wpkama_register_sitemap_providers(){

	require_once __DIR__ .'/class-Similar_Posts_Sitemaps_Provider.php';

	$provider = new Similar_Posts_Sitemaps_Provider();

	wp_register_sitemap_provider( 'similarposts', $provider );
}
}}}

And I can't get the value of $name property like this:
{{{#!php
<?php

	$provider = new Similar_Posts_Sitemaps_Provider();

	wp_register_sitemap_provider( $provider->name, $provider );
}}}

But if first argument of `wp_register_sitemap_provider()` function and the `$name` prop are different the Sitemap Provider won't run at all! 

So all I can to do is copy $name prop value and past it as parameter. And if I will change the name I need to remember to copy because they must be the same (and code itself doesn't tell me this dependency).
"	Tkama
	60076	200 tags maximum		Taxonomy	6.4.2	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2023-12-14T19:33:46Z	2023-12-17T16:38:33Z	"A customer is trying to add more than 200 tags to a specific post. However if she tries to add the 201. tag, the complete tag list disappears. I was able to recreate the problem.

I didn't even know there was a limited number of keywords. But if there is a limit, shouldn't a message appear? Instead in this case the whole list disappears."	motk88
	52975	"Add ""states"" to terms list table (for WP_Taxonomy::$default_term)"		Taxonomy		normal	normal	Awaiting Review	defect (bug)	new		2021-04-05T22:26:56Z	2021-04-05T22:26:56Z	"The Terms list table (`WP_Terms_List_Table`) should include support for the ""states"" concept that currently also exists for Posts, Media, and Sites.

Specifically, I'd like to see ""– Default"" added to the default term.

I want this because WordPress Admin does not offer any explanation why the ""Uncategorized"" Category has no ""Delete"" link in the list-table UI and also has no checkbox for bulk-actions.

See: `_post_states()`, `_media_states()`, and `WP_MS_Sites_List_Table::site_states()`

Mock-up screenshot imminent."	johnjamesjacoby
	54819	"Adding Taxonomy with word ""media"" not showing list in Edit/Create Post"		Taxonomy		normal	normal	Awaiting Review	defect (bug)	new		2022-01-14T11:53:43Z	2023-03-20T16:37:08Z	"Wordpress Version 5.8.3
PHP version 7.4.27 (Supports 64bit values)



{{{
<?php
add_action( 'init', 'your_prefix_register_taxonomy' );
function your_prefix_register_taxonomy() {
	$labels = [
		'name'                       => esc_html__( 'Media Classes', 'your-textdomain' ),
		'singular_name'              => esc_html__( 'Media Class', 'your-textdomain' ),
		'menu_name'                  => esc_html__( 'Media Classes', 'your-textdomain' ),
		'search_items'               => esc_html__( 'Search Media Classes', 'your-textdomain' ),
		'popular_items'              => esc_html__( 'Popular Media Classes', 'your-textdomain' ),
		'all_items'                  => esc_html__( 'All Media Classes', 'your-textdomain' ),
		'parent_item'                => esc_html__( 'Parent Media Class', 'your-textdomain' ),
		'parent_item_colon'          => esc_html__( 'Parent Media Class', 'your-textdomain' ),
		'edit_item'                  => esc_html__( 'Edit Media Class', 'your-textdomain' ),
		'view_item'                  => esc_html__( 'View Media Class', 'your-textdomain' ),
		'update_item'                => esc_html__( 'Update Media Class', 'your-textdomain' ),
		'add_new_item'               => esc_html__( 'Add new media class', 'your-textdomain' ),
		'new_item_name'              => esc_html__( 'New media class name', 'your-textdomain' ),
		'separate_items_with_commas' => esc_html__( 'Separate media classes with commas', 'your-textdomain' ),
		'add_or_remove_items'        => esc_html__( 'Add or remove media classes', 'your-textdomain' ),
		'choose_from_most_used'      => esc_html__( 'Choose most used media classes', 'your-textdomain' ),
		'not_found'                  => esc_html__( 'No media classes found', 'your-textdomain' ),
		'no_terms'                   => esc_html__( 'No Media Classes', 'your-textdomain' ),
		'filter_by_item'             => esc_html__( 'Filter by media class', 'your-textdomain' ),
		'items_list_navigation'      => esc_html__( 'Media classes list pagination', 'your-textdomain' ),
		'items_list'                 => esc_html__( 'Media Classes list', 'your-textdomain' ),
		'most_used'                  => esc_html__( 'Most Used', 'your-textdomain' ),
		'back_to_items'              => esc_html__( 'Back to media classes', 'your-textdomain' ),
	];
	$args = [
		'label'              => esc_html__( 'Media Classes', 'your-textdomain' ),
		'labels'             => $labels,
		'description'        => '',
		'public'             => true,
		'publicly_queryable' => true,
		'hierarchical'       => true,
		'show_ui'            => true,
		'show_in_menu'       => true,
		'show_in_nav_menus'  => true,
		'show_in_rest'       => true,
		'show_tagcloud'      => true,
		'show_in_quick_edit' => true,
		'show_admin_column'  => true,
		'query_var'          => true,
		'sort'               => true,
		'meta_box_cb'        => 'post_tags_meta_box',
		'rest_base'          => '',
		'rewrite'            => [
			'with_front'   => true,
			'hierarchical' => true,
		],
	];
	register_taxonomy( 'media-class', ['post', 'comunidad'], $args );
}
}}}
"	auriel2017
	59215	Bug in wp_set_post_categories function		Taxonomy	6.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-08-27T07:58:34Z	2023-08-31T04:49:17Z	`wp_set_post_terms( $post_id, $post_categories, 'category', $append );` category is being passed staticky. so `wp_set_post_categories` is not working to map custom category with custom post type. it is not making any entry for custom post type in the table `wp_term_relationships`.	faaiq
	42572	Can't delete custom taxonomy tags from a post		Taxonomy	4.9	normal	normal	Awaiting Review	defect (bug)	new		2017-11-16T07:17:40Z	2017-11-16T07:17:40Z	"Symptoms are the same as #39388: I can add terms in my custom taxonomy to a post, but I can't remove them. I'm not using any of the filters mentioned in that ticket. Based on logging all SQL queries on saving a post, it looks like removing a category triggers a query like:

{{{
DELETE FROM wp_term_relationships WHERE object_id = 1470 AND term_taxonomy_id IN ('7')
}}}

No DELETE query at all is running when I try to remove the custom taxonomy, so it's not a malformed query. Same problem whether I'm using the classic editor, the quick editor, or Gutenberg.

As a further wrinkle, in the classic editor, my terms don't even show up in the checkboxes in the sidebar (all of them are unchecked), though they do show up on the front end, in the quick editor, and in Gutenberg.

This didn't always happen, but I don't recall the version it started with. Disabling all plugins doesn't fix it, neither does clearing out my functions.php entirely, and neither does changing 'hierarchical' to false.

My arguments for registering the taxonomy are as follows:
{{{
$args = [
	'labels' => [ /* a bunch of strings */ ],
	'public' => true,
	'hierarchical' => true,
	'show_in_rest' => true,
	'rewrite' => ['hierarchical' => true],
	'query_var' => 'idea'
];
}}}"	thrica
	51666	Cannot unselect terms for a taxonomy with a default_term		Taxonomy		normal	normal	Awaiting Review	defect (bug)	new		2020-10-29T17:54:51Z	2020-11-24T18:10:24Z	"I've created a custom post type and assigned a custom taxonomy. When registering the taxonomy I have defined the new `default_term` parameter. 

I see the default term I've defined in the taxonomy metabox [[Image(https://p119.p3.n0.cdn.getcloudapp.com/items/NQu15w0W/Image%202020-10-29%20at%2011.44.17%20AM.png?v=3163339b0d409341ca55c50a8c06282d)]]

If I save a term, and then next time decide to remove that term, it cannot be removed. Whatever term was checked stays checked after save. 

Here is a video:

https://share.getcloudapp.com/rRuom70d

Here's my test code for setting up a CPT and a taxonomy.

{{{#!php
/**
 * Register a custom post type called ""book"".
 *
 * @see get_post_type_labels() for label keys.
 */
function kia_codex_book_init() {
    $args = array(
        'public' => true,
        'label'  => __( 'Books', 'textdomain' ),
		'supports'           => array( 'title', 'editor', 'author', 'thumbnail' ),
	);
 
    register_post_type( 'book', $args );
}
 
add_action( 'init', 'kia_codex_book_init' );


/**
 * Book Taxonomies
 */
function kia_create_book_taxonomies() {
	$args = array(
		'hierarchical'      => false,
		'label'  			=> __( 'Genres', 'textdomain' ),
		'show_ui'           => true,
		'show_in_rest'		=> true,
		'show_admin_column' => true,
		'query_var'         => true,
		'rewrite'           => array( 'slug' => 'genre' ),
		'default_term' => array( 'name' => 'My default genre', 'slug' => 'default-genre' ),
	);

	register_taxonomy( 'genre', array( 'book' ), $args );

}
add_action( 'init', 'kia_create_book_taxonomies' );

}}}

"	helgatheviking
	48220	Category Dropdown Layout Issue		Taxonomy	5.2.3	normal	major	Awaiting Review	defect (bug)	new		2019-10-05T09:17:39Z	2019-10-05T09:17:39Z	"I have 2 websites. One is using WordPress 5.2.3 and another one is WordPress 4.9.10.

So now problem is with category Dropdown layout.

If you will check below code on both versions with nested subcategories you will see the difference.
{{{#!php
<?php
wp_dropdown_categories( 'show_count=1&hierarchical=1&child_of=2' );
}}}
 

Nested Category Example :

Home 
  Landscape & Urbanism
    Campus
    Masterplan
    .......

Issue :
On latest version of WordPress dropdown not showing subcategories name (Example : Landscape & Urbanism)

Please help me to sort out this issue.
Thanks



"	anjalimdn
	66279	Category Search Fails When Search Term Contains an Ampersand Followed by a Space, Admin Page/Post Editor		Taxonomy	7.1.2	high	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-09T11:26:18Z	2026-10-16T12:32:02Z	"Bug Report: 

Product: WordPress  
Version: 7.1.2, 7.1.3 and others  
Component: Posts / Categories / Editor  
Issue Type: Bug

**Summary**

When adding or editing a post in the WordPress admin dashboard, searching for a category whose name contains an ampersand (`&`) followed by a space does not return the expected search result.

For example, a category named **“Tour & Travel”** cannot be found when searching for `Tour & ` (including the trailing space).

## Steps to Reproduce

1. Create a category named `Tour & Travel`.
2. Navigate to **Posts → Add New** or edit an existing post.
3. Open the Categories panel in the post editor.
4. Search for `Tour & `, including the space after the ampersand.
5. Observe the search results.

## Expected Behavior

The category **“Tour & Travel”** should appear in the search results when searching for `Tour & `, since the entered text matches the beginning of the category name.

## Actual Behavior

The category does not appear in the search results when the search term contains an ampersand followed by a space.

## Additional Information

- The issue occurs in the WordPress admin post editor while adding or editing a post.
- The affected category contains an ampersand followed by a space in its name.
- The issue appears to involve partial category-name matching when special characters and whitespace are present.

**Suggested investigation:** Check how the category search filters and processes search terms containing ampersands and trailing whitespace, including any differences in query tokenization or sanitization.

## Impact

This behavior makes it harder for users to find and assign categories containing ampersands when searching by partial category name.

## Environment

- WordPress version: 7.1.2 and others
- Editor: [Gutenberg / Classic Editor — specify which applies]
- Browser: Tested in Chrome & Safari 
- Active plugins: No, Tested in PlayGround
"	chhapoliya
	47029	Custom Taxonomies, with no post_type association and custom submenu location, UX experience is broken when on Taxonomy management page		Taxonomy	5.1.1	normal	normal	Awaiting Review	defect (bug)	new		2019-04-24T14:52:15Z	2019-04-24T14:52:15Z	"When creating a custom taxonomy with no `post_type` association, then adding a `add_submenu_page` option for it under any specific menu, the link will show in the proper location. The problem is when you view the taxonomy management page, the UX is not as expected. 

One would expect the main menu location to be open and the submenu to be bolded (normal nav UX). 

e.g.
 - Posts
 - Custom Main Menu Item
  - Add New
  - **Custom Taxonomy**

What actually happens is that the Posts main menu is open and nothing is highlighted.

e.g.
 - Posts
  - All Posts
  - Add New
  - Categories
 - Custom Main Menu Item

When you do go to the main menu location that the taxonomy is assigned to, you do see what is expected. Meaning, the submenu option is bolded, the main menu just is closed and not opened. Only the Posts main menu item is open.


The issue appears to be that when there is no post_type association, the Posts main menu is always the open main menu item. 

I provided an example below.

This example adds a new taxonomy to the plugin: [https://wordpress.org/plugins/query-wrangler/]
(This was a quick way to duplicate the issue but to be honest, I have this exact issue on every custom taxonomy with no `post_type` association. )

It creates the menus structure:

 - Query Wrangler
  - Add New
  - Import
  - Settings
  - Content Groups

When I click on the Content Groups taxonomy, I am taken to the taxonomy management page as expected. The issue is the admin nav now shows:

 - Posts
  - All Posts
  - Add New
  - Categories
 - Custom Main Menu Item

Instead of:

 - Query Wrangler
  - Add New
  - Import
  - Settings
  - **Content Groups**


{{{
<?php

/**
 * Class Content_Groups
 * Allows building content groups by associating Query Wrangler and Custom queries
 */
class Content_Groups {

    /**
     * Taxonomy identifier
     */
    const TAX_NAME = 'content-groups';

    /**
     * Query Wrangler page slug
     */
    const MENU_SLUG = 'query-wrangler';


    public function __construct() {
        \add_action('init', array($this, 'register'));
        \add_action('admin_menu', [$this, 'add_sub_menu'], 99999); // Must be lower than Query Wrangler's value: 9999
    }

    /**
     * Registers Taxonomy
     * @link https://codex.wordpress.org/Function_Reference/register_taxonomy
     * @link https://core.trac.wordpress.org/ticket/28033
     */
    public function register() {
        $capability_type = str_replace('-', '_', self::TAX_NAME);
        $args           = array(
            'hierarchical' => false,
            'labels'       => [
                'name'                       => _x('Content Groups', 'taxonomy general name', 'text-domain'),
                'singular_name'              => _x('Content Group', 'taxonomy singular name', 'text-domain'),
                'menu_name'                  => _x('Content Groups', 'menu_name', 'text-domain'),
                'all_items'                  => _x('All Content Groups', 'all_items', 'text-domain'),
                'edit_item'                  => _x('Edit Content Group', 'edit_item', 'text-domain'),
                'view_item'                  => _x('View Content Group', 'view_item', 'text-domain'),
                'update_item'                => _x('Update Content Group', 'update_item', 'text-domain'),
                'add_new_item'               => _x('Add New Content Group', 'add_new_item', 'text-domain'),
                'new_item_name'              => _x('New Content Group Name', 'new_item_name', 'text-domain'),
                'parent_item'                => _x('Parent Content Group', 'new_item_name', 'text-domain'),
                'parent_item_colon'          => _x('Parent Content Group:', 'parent_item_colon', 'text-domain'),
                'search_items'               => _x('Search Content Groups', 'search_items', 'text-domain'),
                'popular_items'              => _x('Popular Content Groups', 'popular_items', 'text-domain'),
                'separate_items_with_commas' => _x('Separate content groups with commas', 'separate_items_with_commas', 'text-domain'),
                'add_or_remove_items'        => _x('Add or Remove Content Groups', 'add_or_remove_items', 'text-domain'),
                'choose_from_most_used'      => _x('Choose from the most used content groups', 'choose_from_most_used', 'text-domain'),
                'not_found'                  => _x('No content groups found', 'not_found', 'text-domain'),
            ],
            'capabilities' => [
                'manage_terms' => ""manage_{$capability_type}"",
                'edit_terms'   => ""edit_{$capability_type}"",
                'delete_terms' => ""delete_{$capability_type}"",
                'assign_terms' => ""assign_{$capability_type}"",
            ],
            'show_ui'      => true,
            'show_menu_ui' => true,
            'query_var'    => true
        );

        // Register the taxonomy
        \register_taxonomy(self::TAX_NAME, NULL, $args);
    }

    /**
     * Builds the menu
     */
    public function add_sub_menu() {
        $capability_type = str_replace('-', '_', self::TAX_NAME);
        \add_submenu_page(
            self::MENU_SLUG,
            _x('Content Groups', 'menu_name', 'text-domain'),
            _x('Content Groups', 'menu_name', 'text-domain'),
            ""manage_{$capability_type}"",
            'edit-tags.php?taxonomy=' . self::TAX_NAME
        );
    }

}
}}}
"	son9ne
	38424	Custom form taxonomy field doesn't clear after added...		Taxonomy	2.9	normal	normal	Future Release	defect (bug)	new	has-patch	2016-10-20T21:41:06Z	2019-02-17T11:13:34Z	"Hi,

I was adding a new taxonomy field via the action {$taxonomy}_add_form_fields.
Anyway if the input type is 'url', after added the new taxonomy the form field doesn't clear itself, and in the url field will remain the inserted value.

This doesn't happen if the input type = text.

Thanks."	SGr33n
	41035	Don't return if WP_Error object return by wp_insert_term() from foreach() loop in wp_set_object_terms()		Taxonomy	4.7	normal	normal	Awaiting Review	defect (bug)	new		2017-06-13T20:57:30Z	2018-05-02T14:32:39Z	"Recently, I'm trying to restrict tag creation for some user roles. I tried with using roles and capabilities but it's not possible. So I hook function to `pre_insert_term` filter which returns WP_Error object if condition match.
{{{
add_action( 'pre_insert_term', 'prevent_terms', 1, 2 );

function prevent_terms ( $term, $taxonomy ) {

	if ( 'post_tag' !== $taxonomy ) {
		return $term;
	}
        
         // Only administrator can create tag.
	$allowed_roles = array( 'administrator' );

	$user = wp_get_current_user();

	if ( ! empty( $user->roles ) && empty( array_intersect( $allowed_roles, $user->roles ) ) ) {

		return new WP_Error( 'term_addition_blocked', 'You are not allowed to create new tags.' );

	}

	return $term;

}
}}}


Now, a restricted user goes to the edit post and trying to assign existing tags to the post and its work fine. But when a user adds a tag which does not exist along with existing tags then existing tags also not assigned to that post. Because `wp_set_object_terms()` function will create new tag if it's not exists and I've return WP_Error object using `pre_insert_term` hook. So once it get WP_Error object then it returns from the `wp_set_object_terms()` function and it's also not execute for other terms.

See https://core.trac.wordpress.org/browser/tags/4.8/src/wp-includes/taxonomy.php#L2237

To complete my functionality I hook into `admin_init` action and remove new tags from $_POST so that remaining existing tags can assign to the post.

I believe, instead of returning, it should continue execution for other terms. Also, I'm not sure whether it's valid use case or not.

So main question is, do we need to return if there is WP_Error while creating term or don't return and continue execution for other terms.

I hope, I'm able to explain it properly. :)



"	chandrapatel
	53591	Firts <ul> missing in wp_list_categories()		Taxonomy		normal	normal	Awaiting Review	defect (bug)	new		2021-07-05T14:20:09Z	2021-07-05T19:28:46Z	"Hello,

When using the [wp_list_categories()] function it provides an HTML list starting right by an `<li>` without the `<ul>`.

"	sebastienserre
	51905	Issue with 'is_object_in_term' when terms assigned in increseing order		Taxonomy		normal	major	Awaiting Review	defect (bug)	assigned		2020-12-01T13:50:58Z	2020-12-01T13:50:58Z	"Hello Team, 

Today I have encountered one issue in the 'is_object_in_term' function. 

Scenario: 
I have two terms 'A' and 'B', which have Ids 1 and 2. The logic on my page to show those posts which have term 'A'. I was checking that with the below code.

has_term($term_object, 'taxonomy-name')

But the above code making condition true for term B posts also and to overcome this I have to forcefully change the code with the below one.

has_term($term_id, 'taxonomy-name')

When I looked into it more then I found that $term_object contains 2 integer values in the array i.e. term_id and term_taxonomy_id. For term 'A' the term_id is 1 and term_taxonomy_id is 2 and for term 'B' (2 & 3). So when code flow to 'is_object_in_term' function from 'has_term' and reach the following line of code: 

$terms = (array) $terms;
 
$ints = array_filter( $terms, 'is_int' );
if ( $ints ) {
  $strs = array_diff( $terms, $ints );
} else {
  $strs =& $terms;
}

So, for term A the value of $ints is array(1, 2) and for term B array(2, 3). 

Now when term 'B'  set on a post and we check 'has_term' for the term 'A' with 'term_object', the 'has_term' function returns true because of the below code. 

// If term is an int, check against term_ids only.
if ( $ints && in_array( $object_term->term_id, $ints, true ) ) {
   return true;
}

As term 'B' has id 2 and value of $ints for term 'B' is array(2, 3) so, condition true for the term 'B' also.

Please see the attachment for code reference. I hope this makes sense and I am able to point out the issue.

Thanks
Harshad

http://prntscr.com/vtmb35
http://prntscr.com/vtmbo6"	hmishra080
	50082	Item count is not increasing after adding category		Taxonomy	5.5	normal	normal	Future Release	defect (bug)	new	dev-feedback	2020-05-04T18:13:01Z	2026-04-09T11:34:12Z	"I found the number of categories count is not increasing after adding a category for any post types.
Please review this issue.
Screenshot: https://prntscr.com/saugwy"	askaryabbas
	48284	MIsleading behavior and documentation in include argument of WP_Term_Query		Taxonomy		normal	normal	Awaiting Review	defect (bug)	new		2019-10-10T23:19:46Z	2019-10-12T02:06:49Z	"The documentation for the `include` argument of the WP_Term_Query class states:

''Array or comma/space-separated string of term ids to include.''

(https://core.trac.wordpress.org/browser/tags/5.2/src/wp-includes/class-wp-term-query.php#L111)

This, and also the argument name, gives the impression that these are IDs that will be included in the results, adding terms on the top of the list retrieved by other query arguments.

However, what `include` actually does is to restrict the results to terms with the informed IDs.

We can see how the class parses this argument here:
{{{#!php
	                $inclusions = '';
	                if ( ! empty( $include ) ) {
	                        $exclude      = '';
	                        $exclude_tree = '';
	                        $inclusions   = implode( ',', wp_parse_id_list( $include ) );
	                }
	
	                if ( ! empty( $inclusions ) ) {
	                        $this->sql_clauses['where']['inclusions'] = 't.term_id IN ( ' . $inclusions . ' )';
	                }

}}}
https://core.trac.wordpress.org/browser/tags/5.2/src/wp-includes/class-wp-term-query.php#L412

And, later, it implodes everything using `AND` as glue, thus reducing the results:

{{{#!php
	                $where = implode( ' AND ', $this->sql_clauses['where'] );
}}}
https://core.trac.wordpress.org/browser/tags/5.2/src/wp-includes/class-wp-term-query.php#L643

This can also be tested with a simple test like this:

{{{#!php
	function test_include() {
		
		$term1 = wp_insert_term('black', 'category');
		$term2 = wp_insert_term('blue', 'category');
		$term3 = wp_insert_term('green', 'category');
		
		$query = new \WP_Term_Query(['search' => 'bl', 'hide_empty' => false]);
		$found_ids = array_map(function($el) { return $el->term_id; }, $query->terms);
		
		$this->assertEquals(2, sizeof($query->terms));
		$this->assertContains($term1['term_id'], $found_ids);
		$this->assertContains($term2['term_id'], $found_ids);
		
		$new_query = new \WP_Term_Query(['search' => 'bl', 'hide_empty' => false, 'include' => $term3['term_id']]); // returns empty results
		$found_ids = is_array($new_query->terms) ? array_map(function($el) { return $el->term_id; }, $new_query->terms): [];
		
		// All tests fail
		$this->assertEquals(3, sizeof($query->terms)); 
		$this->assertContains($term1['term_id'], $found_ids);
		$this->assertContains($term2['term_id'], $found_ids);
		$this->assertContains($term3['term_id'], $found_ids); 
	}

}}}

= Proposal =

Change this behavior is not recommended because there might be many people relying on this, especially because **there is no other argument to get terms by term_id** (!!!), so this is the one to use in these cases.

However, we should:

* Change the documentation, and explain it better what this argument does 

= Suggestion = 

We could also:

* Change the argument name for something more straight forward, such as `include_only` (or simply `term_ids`), deprecating but keeping the old `include` for backward compatibility
* Implement another argument that does this include"	leogermani
	46482	Non-hierarchical taxonomies using checkbox display are not saving in quick edit		Taxonomy	5.1	normal	normal	Awaiting Review	defect (bug)	new		2019-03-13T15:52:28Z	2023-03-16T13:00:16Z	"**What steps should be taken to consistently reproduce the problem?**
1) Register a custom taxonomy with these arguments to make a non-hierarchical taxonomy use checkbox display***:

{{{
'meta_box_cb' => 'post_categories_meta_box',			
'meta_box_sanitize_cb' => 'taxonomy_meta_box_sanitize_cb_checkboxes'
}}}

*** ''I am aware it does not display this way with Gutenburg, but not everyone uses Gutenburg and CPTs do not use Gutenburg''

2) Quick Edit a post of a post type that uses the custom taxonomy

3) Add terms to the custom taxonomy

4) Click Update


**What is the expected output or result? What did you see instead?**

The terms entered into taxonomy field should be added to the post. Instead, all terms are removed from the post for this taxonomy.

"	mooberrydreams
	44849	Post type parameter not preserved when editing/deleting custom taxonomy term		Taxonomy	4.9.8	normal	normal	Awaiting Review	defect (bug)	reopened		2018-08-27T15:54:23Z	2018-09-04T16:51:29Z	"I get linked or redirected back to the Posts area in the admin menu after editing or deleting a custom taxonomy rather to the custom post type for which I registered the taxonomy.

Steps:
1. Plugin registers custom post type then custom taxonomy
1. Visit custom taxonomy page via automatically generated link in admin menu: https://foo.example/wp-admin/edit-tags.php?taxonomy=CUSTOMTAX&post_type=CUSTOMPOST (custom post type section of admin menu is highlighted and open)
1. Add a term (term is added to the table at right)
1. Click term's name to open full edit page; delete link and form have no reference to the `post_type` that is in the URL of the current edit page.
1. Editing/deleting the term works, but afterwards I'm back at the terms list page in the context of Posts, not my custom post type.

I can maintain the context, when editing, with this code:

{{{
add_action(
    CUSTOMTAX . '_term_edit_form_top'
    , function() {
        ?><input type=hidden name=post_type value=<?= CUSTOMPOST ?>><?php
    }
);
}}}

I tried correcting the delete URL, and it got the parameter but the final redirect was missing it, thus the Posts submenu was open again:

{{{
add_filter(
    'admin_url'
    , function($url) {
        return preg_replace(
            '#/edit-tags\\.php\\?action=delete&(?:amp;)?taxonomy='. CUSTOMTAX . '(?=&)#'
            , '$0&post_type=' . CUSTOMPOST
            , $url
        );
    }
);
}}}
"	wallfur
	41631	Same Term Not Added		Taxonomy	4.8	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2017-08-13T20:24:40Z	2025-06-26T10:19:14Z	"Using latest version of WordPress, default theme, all plugins disabled. Problem first appeared in version 4.8 and continues with 4.8.1.

To recreate the issue:
1. Create regular post (“Posts”)
2. Add a new term to the Categories meta box
3. Save the term (it will appear on top of the list with a check mark next to it)
4. Add the same term again. Nothing happens and the term is not added

Version 4.7.5 and below would activate the term and put to the top of list.  This was helpful when adding a string of terms and some of them were already in the database. "	vaprak
	43626	Searching for tags using slugs work for English but does not work for Arabic		Taxonomy	4.9.4	normal	normal	Awaiting Review	defect (bug)	new		2018-03-24T07:37:41Z	2018-03-26T06:55:22Z	"If i have created a tag with name: tag1 and slug: slug1 then searching for slug1 will return tag1 in the results, if i do the same thing but with Arabic then tag1 will not be returned.

Which means that searching for tags using slugs work for English but not for Arabic - probably for all other languages that don't use English characters 

Here is how to reproduce the bug
1) create a new tag: name: tag1, slug: slug1
2) create a new tag: name: تاج1, slug:سلج1
3) search for tags using ""slug1"" phrase => tag1 will be in the results
4)search for tags using ""سلج1"" phrase => تاج1 will '''not''' be in the results

I have done the previous steps in a fresh installation of WordPress.

"	ehabsan
	47339	Tags S and Š		Taxonomy	5.2	normal	normal	Awaiting Review	defect (bug)	new		2019-05-21T14:57:16Z	2023-07-09T16:43:46Z	"I've made tags with initial letters ...
So i have two tags ""S"" and ""Š"" (slug ""s"" and ""s-2"").
When I try to add the tag ""Š"" in the post, after I save the post WP, I tag ""S"" instead of ""Š""?
Is this a mistake or how can I fix my problem by adding the tag I want?

The same problem is with letters
- C, Č and Ć
- Z and Ž"	Colics
	54810	Terms management screen: Bulk actions dropdown overlaps search field on small screens		Taxonomy	5.8.3	normal	normal	Awaiting Review	defect (bug)	new		2022-01-13T13:25:06Z	2022-01-13T18:56:27Z	"Hi, 


Tag listing page on button design issue on mobile devices when empty tag list. 

More information see SS. 
"	sumitsingh
	56518	"Terms with ""0"" slug do not work"		Taxonomy	6.0.2	normal	normal	Awaiting Review	defect (bug)	new		2022-09-06T08:33:42Z	2023-08-27T13:48:48Z	"How to reproduce:

1. Create tag with name ""0"" and slug ""0""
2. Assign it to a post
3. Open archive page for the tag, e.g. https://example.com/tag/0/

You will get ""not found"" error. Same happens to another taxonomies as well, e.g. Post Categories.

That happens because array_filter() removes the ""0"" slug from $query['terms'] in \WP_Tax_Query::transform_query() method. 

Problem is here:
https://github.com/WordPress/WordPress/blob/6b1cabaea14273b59645714cb3aa4be00e6c9dbb/wp-includes/class-wp-tax-query.php#L609"	serge.k
	60269	URL parameter filtering with 'tag' parameter		Taxonomy		normal	normal	Awaiting Review	defect (bug)	new		2024-01-16T18:00:42Z	2025-11-19T20:51:38Z	"Specifically why is the tag url filtering locked behind this check for $this->query_vars_changed. Seems like this could be removed from the condition to me.
This means post archive filtering using the tag url parameter doesn't work by default.
But if for example any query_var is changed in the 'pre_get_posts' filter it suddenly does work. Even if the query_var changed is entirely unrelated.


wp-includes/class-wp-query.php


{{{
class WP_Query {
  ...
  public function parse_tax_query( &$q ) {
    ...
    if ( '' !== $q['tag'] && ! $this->is_singular && $this->query_vars_changed ) {
       ...
    }
    ...
  }
  ...
}
}}}


"	harolair
	44630	WP_Term_Query does not return all terms when 'number' and 'object_ids' are specified		Taxonomy		normal	critical	Awaiting Review	defect (bug)	new	has-patch	2018-07-24T09:03:10Z	2019-01-17T00:24:34Z	"When querying for taxonomy terms assigned to certain objects, WP_Term_Query's query is LIMIT'ed if the 'number' argument is specified. This introduces a problem similar to hierarchical taxonomies where results must not be limited in order to retrieve children. In particular, the issue arises because each term_taxonomy_id, or ""(term, taxonomy) couple"", has more than one relationship in wp_term_relationships thus more than 1 row could be returned for the same term_taxonomy_id.

It is worth to notice that in order to replicate the problem in the attached test, the 'order' argument must be set to DESC which is the opposite of WP_Term_Query's default."	ettoredn
	41882	Walker_CategoryDropdown does not wrap options inside HTML select element with wp_list_categories		Taxonomy	4.8.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-09-14T14:57:49Z	2017-09-14T15:25:32Z	"If I use `Walker_CategoryDropdown()` class to build a dropdown list with `wp_list_categories` function, the output does not get wrapped inside `<select>...</select>` element. The rendered output is like this:


{{{
<option class=""level-0"" value=""16"">Comedy</option>
<option class=""level-0"" value=""17"">Sci-Fi</option>
}}}


when it should be like


{{{
<select>
   <option class=""level-0"" value=""16"">Comedy</option>
   <option class=""level-0"" value=""17"">Sci-Fi</option>
</select>
}}}

In order to achieve this we can add an additional parameter `html_wrapper_element` in `wp_list_categories` function and pass a value `dorpdown` in the argument like:

{{{#!php
<?php
<?php
/* Template Name: Movie List */
require_once ABSPATH . 'wp-admin/includes/template.php';
$args = array(
    'taxonomy' => 'movies_taxonomy',
    'walker' => new Walker_CategoryDropdown(),
    'hide_empty' => false,
    'html_wrapper_element' => 'dropdown'
);

wp_list_categories($args);
?>
}}}


and in `wp_list_categories` we add this before the $html gets returned from the function.

{{{#!php
<?php
$html = apply_filters( 'wp_list_categories', $output, $args );
if( isset($r['html_wrapper_element'])  && $r['html_wrapper_element'] === 'dropdown') {
  $html = '<select>' . $html . '</select>';
}

if ( $r['echo'] ) {
  echo $html;
} else {
  return $html;
}
}}}


"	subrataemfluence
	48068	Weird behavior when setting hierarchical to false on the built-in taxonomy category		Taxonomy	5.2.3	normal	normal	Awaiting Review	defect (bug)	new		2019-09-18T19:00:29Z	2019-09-20T17:39:10Z	"When altering the taxonomy args of the built-in taxonomy category and setting hierarchical to false unexpected things started to happen - tested on a fresh install of WordPress.

{{{#!php
<?php
add_filter('register_taxonomy_args', function($args, $taxonomy) {
    if ($taxonomy == 'category') {
        $args['hierarchical'] = false;
    }

    return $args;
}, 10, 2);
}}}

After adding the code above as a simple plugin and activating it:
When moving the default post 'Hello world!' into trash the category changes from 'Uncategorized' to '1'.
Restoring it changes the category again. This time to '2'. Looking at the edit-tags.php?taxonomy=category page there are now two additional terms ('1'  and '2') which have been automatically created.

When creating a new post it gets the newly created term '1' assigned instead of 'Uncategorized'.

When creating a new term with the name 'Test' and assigning it to my newly created post another term is automatically created ('5') which seems to replace term '2' since it is gone.

The 'new' term names seem to be generated based on the ID from a previous term.

On a side note:
On the edit-tags.php?taxonomy=category page everything is now labeled with 'Tag' instead of 'Category'."	kwellmann
	51759	WordPress the_tags() before not working at the loop		Taxonomy	5.5.2	normal	normal	Awaiting Review	defect (bug)	new		2020-11-12T09:17:32Z	2020-11-12T12:28:26Z	"I am using WP 5.5.3
The code is

**<?php the_tags(""My tags:"", "",""); ?>**

On a single post I get what I supposed to get

**My tags: tag1, tag2 etc...**

But on the loop I get the before string plus the default wordpress title

**My tags: Tags: tag1, tag2 etc...**"	dagmanolis
	63488	Wrong return value for get_category_by_path()		Taxonomy		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-05-27T09:56:48Z	2025-05-28T09:59:40Z	"The function `get_category_by_path()`,  [https://developer.wordpress.org/reference/functions/get_category_by_path/] claims to return `WP_Term|array|WP_Error|null` but it does not return the `WP_Error`. 

Testing:

{{{#!php
<?php
$category = get_category_by_path( 'wrongpath' );
if ( ! is_wp_error( $category ) ) { 
   echo 'not an error'; 
}
}}}

I've got the string echoed for the non-existent category.

I created a PR with a patch, but @harishtewari has reported it.

Report: https://github.com/WordPress/Documentation-Issue-Tracker/issues/1908
PR: https://github.com/WordPress/wordpress-develop/pull/8844
"	milana_cap
	39754	`_post_format_get_terms()` can overwrite names of terms in other taxonomies		Taxonomy		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-02-01T03:19:35Z	2017-02-22T02:05:56Z	"`_post_format_get_terms()` filters `'get_terms'` and includes this logic:

{{{
if ( in_array( 'post_format', (array) $taxonomies ) ) {
	if ( isset( $args['fields'] ) && 'names' == $args['fields'] ) {
		foreach ( $terms as $order => $name ) {
			$terms[$order] = get_post_format_string( str_replace( 'post-format-', '', $name ) );
		}
	}
...
}}}

which affects the names of all `$terms`, as long as `post_format` was one of the queried taxonomies. Many terms are replaced with an empty string from `get_post_format_string()`.

The attached patch includes a test to demonstrate the issue, and it would check before changing a value that the value begins with `post-format-` and that `get_post_format_string()` returns a name for the value.
"	dlh
	44279	`get_terms()` with `child_of` and `childless` combined		Taxonomy	4.9.6	normal	normal	Future Release	defect (bug)	reopened		2018-05-30T15:30:32Z	2024-02-28T23:30:40Z	"Hi there! I'm not sure if I found a bug or this is intended behaviour: If  I use a combination of `childless` and `child_of` in a `get_terms` call, I get zero results.
My taxonomy's structure:
{{{
- Genre
-- Hip Hop
-- Trap
-- Rap
- Location
-- Europe
--- Germany
--- Sweden
--- Austria
-- Asia
--- China
--- Japan
--- Taiwan
}}}
My code:
{{{#!php
<?php
$location_parent = get_term(123, 'my_custom_taxonomy');

$countries = get_terms(array(
  'taxonomy' => $location_parent->taxonomy,
  'hide_empty' => false,
  'child_of' => $location_parent->term_id, 
  'childless' => true
));
}}}
I'm trying to only list countries, basically children of 'location' that don't have children of their own."	nonverbla
	45457	get_terms returns incorrect terms set for indirect children		Taxonomy	4.9.8	normal	normal	Awaiting Review	defect (bug)	new		2018-12-01T13:07:15Z	2018-12-02T21:00:37Z	"I created categories as below.

未分類(term_id=1) has two children, C1(term_id=2) and C2(term_id=3).\\
C1 has three children, C3(term_id=4), C4(term_id=5) and C5(term_id=6).\\
C2 has two children, C6(term_id=7) and C7(term_id=8).

If I query as below, it returns correct answer.
{{{#!php
<?php
get_terms(array('taxonomy' => 'category', 'hide_empty' => false, 'name' => 'C1', 'child_of' => 1));
}}}
This query returns C1 term.

But I query as below, it returns no terms. I think this behavior is incorrect.
{{{#!php
<?php
get_terms(array('taxonomy' => 'category', 'hide_empty' => false, 'name' => 'C4', 'child_of' => 1));
}}}
"	mh35
	50046	lack table selector in `_update_post_term_count`		Taxonomy	5.4	normal	normal	Awaiting Review	defect (bug)	new		2020-05-01T15:18:52Z	2020-05-01T16:46:34Z	"
The function `_update_post_term_count` in `wp-includes/taxonomy.php` query the db without table selector.

{{{#!php
<?php
$count += (int) $wpdb->get_var( $wpdb->prepare( ""SELECT COUNT(*) FROM $wpdb->term_relationships, $wpdb->posts WHERE $wpdb->posts.ID = $wpdb->term_relationships.object_id AND post_status = 'publish' AND post_type IN ('"" . implode( ""', '"", $object_types ) . ""') AND term_taxonomy_id = %d"", $term ) );
}}}

This cause problem if who added a column named `post_type` in the `$wpdb->term_relationships` table, because the table `$wpdb->posts` has a column called `post_type` too.

Please quantify the column with the table name like `$wpdb->posts.post_type`."	yaquawa
	61859	meta_value_num order calse in WP_Term_Query cannot work as meta_query is evaluated after setting up the order		Taxonomy	6.6.1	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2024-08-12T10:23:36Z	2025-02-20T10:46:11Z	"Hello, 

Wordpress : 6.6.1.
Plugins : none.
Theme : any
Gutenberg : irrevelant

As the title says, when setting up orderby clause in a WP_Term_Query to ""meta_num_value"", the order always falls back on ""name"".

Thats cames from the ""parse_orderby"", that tries to evaluate if there is any meta query clauses, to check if the meta_value_num should be effective or not.

In the WP_Term_Query::get_terms; things are called in this order : 

- checks the meta_order conditions
  - check if there is some meta query clauses
  - if not, fallback to order by title
- later on, parse the meta_query and initiate the clauses (on WP_Term_Query::meta_query->parse_query_vars)

So, as the meta_query is parses after checking the orderby, than the orderby is never setup to meta_value_num.

Thanks a lot,
Best regards"	gaelwanaka
	60710	save_post_{$post->post_type} hook returns inconsistent $_POST['tax_input'] format		Taxonomy	6.4.3	normal	normal	Awaiting Review	defect (bug)	new		2024-03-06T19:55:52Z	2024-03-06T19:55:52Z	"In the save_post_{$post->post_type} hook:

**Case 1**: If we do not make any changes to the taxonomy `$_POST['tax_input'][$term]` returns a comma delimited string WITH a space. 

Output Example: ''Maple, Spring, Summer, Winter''

**Case 2**: If we modify the taxonomy (adding or removing), it eliminates the space: 

Output Example: ''Spring,Summer,Winter''

Proposed solution, eliminate the space in the first case for consistency. "	jenUnderscore_
	51864	set_object_terms hook $tt_ids arg issue		Taxonomy	5.5.3	normal	normal	Awaiting Review	defect (bug)	new		2020-11-24T13:57:28Z	2020-11-24T13:57:28Z	"$tt_ids arg passed to set_object_terms hook contains ids as strings not ints like $old_tt_ids arg, is it intended behaviour? 

Without this:

{{{
$tt_ids = array_map('absint', $tt_ids);
}}}
calling for example:

{{{
$terms = get_terms(array('term_taxonomy_id' => $tt_ids));
}}}

in set_object_terms hook without mapping those ids to ints, gives unexpected results.
"	szaqal21
	40291	subcategory pagination no run		Taxonomy	4.7.3	normal	normal	Awaiting Review	defect (bug)	new		2017-03-29T02:55:51Z	2017-03-29T21:46:18Z	"I can use the subcategory as directory in the url:
example.com/sub-category/

But example.com/sub-category/page/2/

Give me error 404

But example.com/Category/sub-category/page/2/
Run OK"	Guillermo77
	50080	wp_set_post_tags() adds terms to post types that don't support the term's taxonomy		Taxonomy	2.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-05-04T16:23:52Z	2020-05-04T16:46:30Z	"Setup: 

(1) Register a custom post type without taxonomy support
{{{#!php
add_action( 'init', function() {
	register_post_type(
		'foobar',
		[
			'labels'        => [
				'name'          => __( 'foobars' ),
				'singular_name' => __( 'foobar' ),
			],
			'public'             => false,
			'publicly_queryable' => true,
			'has_archive'        => false,
			'hierarchical'       => false,
		]
	);
} );
}}}

(2) Create a tag
{{{#!php
wp_insert_term( 'green', 'post_tag' );
=> array(2) {
  [""term_id""]=>
  int(4)
  [""term_taxonomy_id""]=>
  int(4)
}
}}}

(3) Create a post
{{{#!php
wp_insert_post( [ 'post_type' => 'foobar' ] );
=> int(8)
}}}

(4) Assign the term to the post
{{{#!php
wp> wp_set_post_tags( 8, 'green' );
=> array(1) {
  [0]=>
  string(1) ""4""
}
}}}

Expected behaviour is a `WP_Error` object, since the CPT `foobar` does not support the `post_tag` taxonomy.

(5) Get the tags for the post
{{{#!php
wp> wp_get_post_tags(8)
=> array(1) {
  [0]=>
  object(WP_Term)#1955 (10) {
    [""term_id""]=>
    int(4)
    [""name""]=>
    string(5) ""green""
    [""slug""]=>
    string(5) ""green""
    [""term_group""]=>
    int(0)
    [""term_taxonomy_id""]=>
    int(4)
    [""taxonomy""]=>
    string(8) ""post_tag""
    [""description""]=>
    string(0) """"
    [""parent""]=>
    int(0)
    [""count""]=>
    int(1)
    [""filter""]=>
    string(3) ""raw""
  }
}
}}}

Expected behaviour is an empty array."	paulschreiber
	46166	wp_update_term sanitizes the description, removing all html		Taxonomy	4.9.8	normal	normal	Awaiting Review	defect (bug)	new		2019-02-01T13:56:53Z	2019-02-01T13:56:53Z	"The function wp_update_term automatically sanitizes the description of the term, thereby removing all html tags added to it. This happens even when no description is passed via the $args parameter.

This does not seem intended, as the description field is basically the content of the term and should be able to hold html information (which is in fact the case if I edit it within the WordPress backend and save it).

"	sighan
	56892	wp_xx_categories() doesn't pad counts correctly when a sub-category exists		Taxonomy		normal	normal	Awaiting Review	defect (bug)	new		2022-10-23T10:15:34Z	2022-10-23T12:12:54Z	"I  fond this issue while researching gutenberg [#37319](https://github.com/WordPress/gutenberg/issues/37319).

If I set the `hierarchical` and `show_count` of `wp_list_categories` or `wp_dropdown_categories` to `true`, the counts for some categories aren't displayed correctly when there are posts that have grandchild categories.

Example:

----
{{{
wp_list_categories( array( 'show_count' => true, 'hierarchical' => true ) );
}}}

* Parent (4)
    * Child 1 (3)
        * Grandchild 1 (1)
    * Child 2 (1)
----
{{{
wp_list_categories( array( 'show_count' => true, 'hierarchical' => false ) );
}}}


* Child 1 (2)
* Child 2 (1)
* Grandchild 1 (1)
----

""Child 1"" category counts are different, but the second data (`hierarchical` is `false`) is correct in my test data.
For some reason, I think the number of grandchild categories is counted as well.

This problem is the same when I output with `wp_dropdown_categories`."	wildworks
	49169	Action Hook 'edited_terms' in function 'wp_update_term()' needs the Form POST Parameters		Taxonomy		normal	normal	Awaiting Review	enhancement	new		2020-01-11T14:40:44Z	2020-01-12T09:46:32Z	"Hello,

In order to implement the Term Meta Data Form as documented in #48000
I found that the Edit Form POST Parameters are not passed the Action Hook `edited_terms` in the function `wp_update_term()`.

The Filter `wp_update_term_data` does receive the POST Parameters in the `$args` Variable but the later Action `edited_terms` does not.

According to the Relationship between the Term Meta Data and the Term it is required that the Term is a valid Database Entry in order to insert savely the Term Meta Data.
So only AFTER checking that the Term is correct and exists the Term Meta Data can be inserted.

So I would love to change the Action Function Call accordingly."	bodohugobarwich
	53613	Add filter to prevent term deletion		Taxonomy		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2021-07-06T21:32:40Z	2021-07-17T05:17:33Z	"Currently, the developer UX for `wp_delete_term` is not ideal when attempting to prevent term deletion.

In order to prevent a term from being deleted e.g. to implement ""protected"" terms, you must essentially throw a `wp_die()` call from within a `pre_delete_term` action callback.

This isn't ideal, and isn't consistent with other, similar implementations such as the `pre_delete_post` filter in `wp_delete_post`.

I propose that a filter should be introduced that fires before `pre_delete_term` and offers like-for-like functionality.

Unfortunately, `pre_delete_term` -- the most appropriate name for this filter -- is already used by the action, therefore I propose `pre_term_deletion` or similar.

I have a patch ready which will be attached shortly.

Thanks,
Dave"	anonymized_18703099
	43798	Add multiple parent ids in get_terms function		Taxonomy		normal	normal	Awaiting Review	enhancement	new		2018-04-18T12:15:40Z	2020-10-14T22:20:14Z	"Please let uns use get_term parent arg as an array with multiple ids:

{{{#!php
<?php
$args = [
    'parent' => [164, 1411]
];
$child_regions = get_terms( 'region', $args );
}}}
"	anonymized_8711240
	57933	Add query object for taxonomy terms (not posts)		Taxonomy		normal	normal	Awaiting Review	enhancement	new		2023-03-16T02:01:55Z	2023-03-17T21:44:47Z	"With permalinks set to ""post name"", if I go to a category's URL, the value in $wp_query->get_query_object is a query of posts. 

An example of that URL might be:
https://mysite.com/category/uncategorized/

However, if I go to this URL, its a 404:
https://mysite.com/category/

I'm wondering if it's been considered that the query object should be set to contain the list of categories (or ""terms"") in that taxonomy. 

This would allow ""the loop"" in a theme to render a page with the terms in that taxonomy, with links to view each. 

Is it too late in the game to make a change like this to core?"	johnstonphilip
	53319	"Add support for a ""reverse"" argument in get_term_parents_list() function"		Taxonomy		normal	normal	Future Release	enhancement	new	needs-unit-tests	2021-06-02T10:36:36Z	2023-07-26T02:14:13Z	"Please bare with me, I probably do everything wrong since it is my first Trac Ticket involving code.

---

Recently I used `get_term_parents_list()` to create a list of hierarchical terms.
I noticed that by default the function outputs the terms like so:
`Parent Category/Child Category/Grandchild Category`

I could not find any argument or way to invert that order, with the goal to display the terms like so:
`Grandchild Category/Child Category/Parent Category`

This is useful for example if we have Geographic zones and the utmost parent is a Country, the utmost child an area. In that case we may want to display Area/Region/Country which looks like an address structure rather than the opposed which is the default

I don't think it should be too hard adding this new argument to the function.
I have uploaded a file with the modified function and updated code comment to the ticket.

I also tested my changes on a existing install and can confirm this introduced no unexpected issues. 

It would be awesome to see if we can add this tiny change in future release."	anonymized_14808221
	40047	Add term_meta to WP_Term class getter method		Taxonomy	4.8	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-03-06T17:28:27Z	2017-03-13T14:22:20Z	The `WP_Post` and `WP_User` classes allow getting a meta value by calling its getter function, eg. `$post->my_meta_key`. This functionality was omitted when introducing the `WP_Term` class.	barryceelen
	59804	Can we implement a manage status of taxonomy term ?		Taxonomy		normal	normal	Awaiting Review	enhancement	new		2023-11-03T11:57:30Z	2024-08-13T07:13:25Z	"Currently, within WordPress, there exists no built-in functionality to manage the publish/unpublish status of taxonomy terms. The implementation of this feature in a future WordPress version would greatly benefit users, as it would provide a more flexible solution. At times, there are specific taxonomy terms that should not be displayed on listing pages, and without this feature, the only recourse is to delete the term or category, which may not always be the most practical option.

The migration of categories from other technologies to WordPress can often pose significant challenges due to the absence of a built-in publish/unpublish feature within WordPress. This disparity can result in compatibility issues and disrupt the seamless transfer of content and taxonomies.
"	maheshpatel
	64631	Categories can't be restored after deletion		Taxonomy		normal	normal	Awaiting Review	enhancement	new		2026-02-12T13:02:50Z	2026-02-12T15:02:36Z	There is currently no restore option available for post categories. When we delete a post, it goes to the Trash and we have the option to restore it. However, when we delete a category, there is no similar restore option available. Could you please check and consider adding this feature in WordPress 7.0?	bipinrawat
	39835	Category slug could be auto-generated with ability to update manually		Taxonomy	4.7.2	normal	normal	Awaiting Review	enhancement	new		2017-02-10T14:10:59Z	2017-02-10T14:13:09Z	Like adding a post, when category is created from Post > Category, if a default slug could be auto generated from title here as well with the ability to edit that would be time saving and helpful.	subrataemfluence
	59667	Edit Category Screen: Improve error message when trying to update a category with an existing slug		Taxonomy	6.3.2	normal	minor	Awaiting Review	enhancement	new	has-patch	2023-10-18T00:02:37Z	2026-10-03T16:24:29Z	"**Request:** improve the error message shown on the Category Edit screen when trying to set an already-used slug.

**Why:**

If I edit a category and try to give it a slug that is already used on another category, I encounter the vague error `Category not updated.`

This error is not very informative.

By comparison, if I Quick-Edit to make this change, though, I am told: `The slug “example-slug” is already in use by another term.`, which is much clearer and I understand the problem right away."	plari
	61303	Increase taxonomy name character limit		Taxonomy	2.3	normal	normal	Awaiting Review	enhancement	new		2024-05-28T01:56:48Z	2024-06-11T00:22:42Z	"Currently I’m using Woocommerce 8.9.1 and WordPress 6.5.3. This makes importing from my old site to my new site problematic. I created a new site and exported the products from the old site and imported it into the new site. So how can we increase the current limit on maximum product attribute path length from 28 characters to more? I asked Woocommerce about this issue and they said it was an issue in WordPress core.
Link to my question about WooCommerce: [https://github.com/woocommerce/woocommerce/issues/47840]"	phanduynam
	54567	Introduce specific item_link and and item_link_description labels for post formats		Taxonomy	5.9	normal	normal	Awaiting Review	enhancement	new	has-patch	2021-12-03T12:40:22Z	2022-04-29T14:50:39Z	"The function `build_variation_for_navigation_link()` needs to overwrite the `item_link` and `item_link_description` labels for post formats. This is currently done directly in the function. This is inefficient as, the function being called several times, these translations are done several times too.

I propose to handle these translations when the taxonomy is registered as done for tag and categories."	Chouby
	59503	Multiple Parent Term Id parameter in get_terms	< plugindevs>	Taxonomy		normal	normal	Awaiting Review	enhancement	assigned	has-patch	2023-09-29T14:49:59Z	2023-09-29T15:01:44Z	"Currently, there is no option to get child terms of multiple parent terms. There is a 
'**parent**' parameter that returns child terms of only one parent term. 

There is a '**post parent in**' parameter for '**WP_Query**' and '**get_posts()**' to get child posts of multiple parent posts, but there is no similar parameter for '**WP_Term_Query**', and '**get_terms()**'.

So, I suggest a new parameter '**parents in**' to get child terms from multiple parent terms IDs. The parameter on get_terms() will be like below:
{{{#!php
<?php
    /**
     *
     *  @type int[] $parents__in 
     *  Array of comma-separated parent terms ID to retrieve child terms of given array.
     *  Default empty array.
     *
     */
    get_terms( array(
        'taxonomy'    => 'category',
        'parents__in' => array( 2, 3, 4 )
    ) );
}}}
"	plugindevs
	41878	No way to change the order of fields for taxonomy meta		Taxonomy	4.8.1	normal	normal	Awaiting Review	enhancement	new		2017-09-13T22:27:26Z	2017-09-13T22:27:26Z	There is currently no way to position any fields inserted with {$taxonomy}_add_form_fields or {$taxonomy}_edit_form_fields.  Any fields added always appear after the description field with no way to insert them anywhere else in the form.	ralphonz
	55956	Pass $maybe_orderby_meta into 'get_terms_orderby' filter		Taxonomy	2.8	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2022-06-09T15:56:19Z	2022-06-09T15:56:19Z	"The `get_terms_orderby` filter in `get_terms()` doesn't get passed the `$maybe_orderby_meta` parameter.

If a plugin wants to use the `$maybe_orderby_meta` parameter when filtering the terms order, it must also filter `get_terms_args` and add the`$maybe_orderby_meta` argument to the `$args` array, so it can subsequently use it in the `get_terms_orderby` filter.

----

It would be additionally helpful to also pass `$orderby_raw` into the same filter, which would help plugin authors identify if `$orderby` had already been filtered or overridden.

----

Tangentially, the location of this filter is such that ordering by meta will always override it. A code comment says:

{{{
// Run after the 'get_terms_orderby' filter for backward compatibility.
}}}

...and I am sure that is the case, but I wonder if a back-compat break here would be fine, or whether maybe a newer, better filter at the end of that method would be best?"	johnjamesjacoby
	60159	Performance Issues with Large Number of Categories in WordPress Admin Panel		Taxonomy	6.4.2	normal	minor	Awaiting Review	enhancement	new		2023-12-28T04:07:06Z	2024-07-24T20:58:55Z	"I am currently using WordPress version 6.4.2 on an Apache2 server with Ubuntu. My site has a large number of taxonomies, specifically over 200,000 categories. I've noticed significant performance issues in the WordPress admin panel, particularly when interacting with categories (adding, deleting, or loading in /wp-admin/edit.php).

Through observation and testing, it seems that the issue is specifically related to categories and their association with posts. When all categories are removed, but a similar number of tags is present, the performance of WordPress improves dramatically, leading me to believe that the problem lies in the way categories are handled, particularly in their association with posts.

Here's an example of the SQL query that seems to be causing performance issues while in admin panel:

{{{
SELECT t.*, tt.*
FROM notwplol_terms AS t
INNER JOIN notwplol_term_taxonomy AS tt
ON t.term_id = tt.term_id
WHERE t.term_id IN (475407,201837,531747,396102,14876,609708, ..., 211701,211702,211703,211704)
_prime_term_caches
}}}
(Note: The list of term IDs in the query is significantly truncated for brevity.)

Steps to Reproduce:
Have a WordPress instance with over 200k categories & 200k posts.
Attempt to add or delete categories, or navigate to /wp-admin/edit.php.
Observe the high server resource usage and slow performance.


Expected Result:
The admin panel should handle a large number of categories efficiently without significant performance degradation, especially when adding or deleting categories or navigating the admin pages.


Actual Result:
High server resource usage and slow performance are observed when managing categories, indicating a potential issue with how categories and their post associations are handled.


Additional Information:
This issue is critical for the management of my site, as it significantly impacts the ability to efficiently manage categories. Insights into optimizing WordPress for handling a large number of categories, or any updates that could mitigate this issue, would be highly appreciated."	rangedpenguin
	49559	Post Category Restoration		Taxonomy	5.3.2	normal	normal	Awaiting Review	enhancement	new		2020-03-02T08:09:46Z	2020-03-02T08:36:54Z	"Hi,

It is quite expecting nowdays that Post Category can be restored after we delete. Something like Trash Options should be there for it. 

Thanks to Core Team. 
Tristup"	tristup
	44762	Suggested changes to get_cat_name and get_cat_link to provide support for custom taxonomies		Taxonomy		normal	minor	Awaiting Review	enhancement	new		2018-08-09T10:53:19Z	2018-08-09T11:31:32Z	"I discovered today that these functions only support the taxonomy 'category'. Can I suggest something along the following lines so that a custom taxonomy can easily be used?:
{{{#!php
<?php
	function get_cat_name( $cat_id, $tax_type ) {
		$cat_id = (int) $cat_id;
		if ( isset($tax_type) )	$tax_type = $tax_type;
	 		else $tax_type = 'category';
		$category = get_term( $cat_id, $tax_type );
		if ( ! $category || is_wp_error( $category ) )
			return '';
		return $category->name;
	}
}}}

{{{#!php
<?php
	function get_cat_link( $category, $tax_type ) {
		if ( ! is_object( $category ) )
			$category = (int) $category;
		if ( isset($tax_type) )	$tax_type = $tax_type;
	 		else $tax_type = 'category';
		$category = get_term_link( $category, $tax_type );					 
		if ( is_wp_error( $category ) )
			return '';			 
		return $category;
	}
}}}
"	geoffcourtauld
	66281	Taxonomy: Add description to the fields searched by WP_Term_Query / admin term search		Taxonomy		normal	normal	7.3	enhancement	new	has-patch	2026-10-09T16:54:19Z	2026-10-22T17:34:57Z	"`WP_Term_Query::get_search_sql()` hardcodes its `search` matching to
just two columns:

{{{
return $wpdb->prepare( '((t.name LIKE %s) OR (t.slug LIKE %s))', $like, $like );
}}}

A term's `description` (stored on `wp_term_taxonomy`) is never
considered, even though:

- `wp_term_taxonomy` is already unconditionally `INNER JOIN`ed into
  every term query (it's where `taxonomy`, `parent`, and `count` come
  from too), so no new join is required to reach `description`.
- A `description__like` arg already exists for exact-field LIKE
  matching — it's just never combined with `search`.

Because `edit-tags.php?taxonomy=X` is the single shared admin screen
for every taxonomy (Categories, Tags, Link Categories, and any custom
taxonomy with an admin UI all use the same `WP_Terms_List_Table`
class), this affects all of them identically: searching the admin
term list only matches name/slug, never description, with no way to
opt in short of hooking `terms_clauses` and hand-building a `tt.description
LIKE` clause in a plugin.

Steps to reproduce:

1. Create a category (or tag) with a short, generic name but a
   distinctive description, e.g. name ""Misc"", description containing
   the word ""pineapple"".
2. Go to Posts > Categories (or Posts > Tags) in wp-admin.
3. Search for ""pineapple"".

Expected: the term is found, since ""pineapple"" appears in its
description.

Actual: no results — only `name`/`slug` are searched.

Suggested fix: add an opt-in `search_columns` query var to
`WP_Term_Query` (accepting `'name'`, `'slug'`, `'description'`;
default empty array, preserving today's name+slug-only behavior for
every existing caller), and have `get_search_sql()` build its `OR`'d
`LIKE` clause from the configured columns instead of the hardcoded
pair — mirroring the existing `user_search_columns` pattern already
used by `WP_User_Query`. `WP_Terms_List_Table::prepare_items()` then
opts in to all three columns for the admin search box (both the
`get_terms()` call and the `wp_count_terms()` pagination count, so the
displayed total stays consistent with the actual results)."	abditsori
	51366	Taxonomy:post_format show_in_nav_menus has no effect		Taxonomy	3.4	normal	normal	Awaiting Review	enhancement	new		2020-09-21T07:21:33Z	2020-09-24T03:41:29Z	"In `wp-includes/taxonomy.php`, the definition for `post_format` taxonomy looks like this:
{{{#!php
<?php
register_taxonomy(
    'post_format',
    'post',
    array(
        'public'            => true,
        'hierarchical'      => false,
        'labels'            => array(
            'name'          => _x( 'Formats', 'post format' ),
            'singular_name' => _x( 'Format', 'post format' ),
        ),
        'query_var'         => true,
        'rewrite'           => $rewrite['post_format'],
        'show_ui'           => false,
        '_builtin'          => true,
        'show_in_nav_menus' => current_theme_supports( 'post-formats' ),
    )
);
}}}

It looks like `current_theme_supports( 'post-formats' )` has no effect as at this point the Theme's functions.php not loaded at this time. So I think `show_in_nav_menus` can be set to `false`."	nextendweb
	66497	Tests: Add unit coverage for Walker_Category		Taxonomy		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-05T20:50:53Z	2026-11-05T21:24:11Z	"`Walker_Category` in `src/wp-includes/class-walker-category.php` builds the output of `wp_list_categories()`. The existing tests cover it through `wp_list_categories()` (`tests/phpunit/tests/category/wpListCategories.php`), and test `start_el()` with empty link attributes (`tests/phpunit/tests/category/walkerCategory.php`), but a search of `tests/phpunit/tests` finds no direct tests for these behaviors:

 * The `category_css_class` filter, which has no test, and the arguments that the `list_cats`, `category_description` and `category_list_link_attributes` filters get.
 * The `title` attribute that is built from the description of the category (`use_desc_for_title`), with the tags removed.
 * The link to the feed of the category: the text, the image, the alternative text and the feed type.
 * The post count (`show_count`).
 * The output of the styles that are not a list: with a `separator` and with a line break.
 * `start_lvl()`, `end_lvl()` and `end_el()` for the list style and for the other styles.

They are exercised indirectly, so a change in the markup of the list is hard to spot and to attribute. Direct tests describe the current behavior of each method.

'''Proposed scope'''

This ticket is meant to be handled with two small patches, so each one is easy to review. The tests go in `tests/phpunit/tests/category/`.

 1. '''The element.''' `start_el()`: the filters and their arguments, the `title` attribute, the feed link, the post count, the styles that are not a list, and a category with an empty name.
 1. '''The levels and the end of an element.''' `start_lvl()`, `end_lvl()` and `end_el()` for the list style and for the other styles, and the classes and the `aria-current` attribute of the current category, the parent and the ancestors, called directly on the walker.

The tests check the markup that matters (the elements, their classes and attributes), and not the whitespace between them.

'''Out of scope'''

This ticket only adds tests and does not change behavior. The following are left out on purpose because other tickets are working on them:

 * New filters for the class names of the level in `start_lvl()`, see #40761.
 * The `item_spacing` argument, see #48498.
 * `Walker_CategoryDropdown`, see #41882.

Related: #65819."	hmbashar
	66481	Tests: Add unit coverage for get_term_to_edit()		Taxonomy		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-04T16:34:24Z	2026-11-04T16:35:16Z	"Previously, `get_term_to_edit()` had no direct `PHPUnit` coverage with `@covers`.

This change adds a dedicated test class covering edit-context sanitization via the `edit_term_name` filter, using a local category fixture."	shailu25
	66545	Tests: Add unit tests for the Post Time To Read and Post Terms blocks		Taxonomy		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T10:28:09Z	2026-11-06T10:38:39Z	"The functions of the Post Time To Read and Post Terms blocks are not referenced by any test: `block_core_post_time_to_read_word_count()`, `render_block_core_post_time_to_read()` and `register_block_core_post_time_to_read()` (`post-time-to-read.php`), and `render_block_core_post_terms()`, `block_core_post_terms_build_variations()` and `register_block_core_post_terms()` (`post-terms.php`) in `src/wp-includes/blocks/`.

This ticket adds tests for the count of words and characters, the minutes to read (also as a range) and the number of words, the list of terms with its separator, prefix, suffix and classes, the variations of the taxonomies, and the registration of the blocks."	hmbashar
	66524	Tests: Add unit tests for the server-side rendering of the Tag Cloud block		Taxonomy		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T07:02:15Z	2026-11-06T07:02:36Z	"The `render_block_core_tag_cloud()` function in `src/wp-includes/blocks/tag-cloud.php` is not referenced by any test.

This ticket adds tests for the tags that are rendered, the limit, the counts, the font sizes and their unit, the taxonomy, and the placeholder that is rendered without tags in a REST request."	hmbashar
	66522	Tests: Add unit tests for the server-side rendering of the Term Count block		Taxonomy		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T06:55:26Z	2026-11-06T06:55:52Z	"The `render_block_core_term_count()` function in `src/wp-includes/blocks/term-count.php` is not referenced by any test.

This ticket adds tests for the term that is used (the term data of the context, the ID and the taxonomy, and the queried term), the missing terms, and the brackets around the count."	hmbashar
	66521	Tests: Add unit tests for the server-side rendering of the Term Description block		Taxonomy		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T06:52:38Z	2026-11-06T06:53:00Z	"The `render_block_core_term_description()` function in `src/wp-includes/blocks/term-description.php` is not referenced by any test.

This ticket adds tests for the description of the term of the context and of the archive (categories, tags and custom taxonomies), the missing and empty descriptions, and the classes of the attributes."	hmbashar
	66520	Tests: Add unit tests for the server-side rendering of the Term Name block		Taxonomy		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T06:48:50Z	2026-11-06T06:49:10Z	"The `render_block_core_term_name()` function in `src/wp-includes/blocks/term-name.php` is not referenced by any test.

This ticket adds tests for the term of the context and the queried term, the missing terms, the tag of the level, the classes of the attributes, and the link to the archive of the term."	hmbashar
	66516	Tests: Add unit tests for the server-side rendering of the Term Template block		Taxonomy		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T06:19:19Z	2026-11-06T06:19:48Z	"The `render_block_core_term_template()` function in `src/wp-includes/blocks/term-template.php` is not referenced by any test.

This ticket adds tests for the query that is built from the block context (the number, the order, hiding the empty terms, the included terms, the nested terms and the inherited archive), the markup of the list and of each term, the context that is passed to the inner blocks, and the link color class."	hmbashar
	45092	WP_Query->is_category wrongly calculate current category when WP_Term is passed		Taxonomy	4.9.8	normal	normal	Awaiting Review	enhancement	new		2018-10-15T12:45:06Z	2018-10-15T12:45:06Z	"Let's analyze this piece of code, part of class WP_Query, file wp-includes/class-wp-query.php ...

{{{#!php
<?php
        public function is_category( $category = '' ) {
		if ( !$this->is_category )
			return false;

		if ( empty($category) )
			return true;

		$cat_obj = $this->get_queried_object();

		$category = array_map( 'strval', (array) $category );

		if ( in_array( (string) $cat_obj->term_id, $category ) )
			return true;
		elseif ( in_array( $cat_obj->name, $category ) )
			return true;
		elseif ( in_array( $cat_obj->slug, $category ) )
			return true;

		return false;
	}
}}}

now, trying to pass 2 WP_Term, something really funny happens (i know specifications want the $category variable as a single id or slug or term_name, and not as class, but there was nothing blocking the thing to work, so i tried, and i wanted to report results).

$cat_obj value was
{{{#!php
<?php
object(WP_Term)#9010 (16) {
  [""term_id""]=>
  int(7)
  [""name""]=>
  string(8) ""Consigli""
  [""slug""]=>
  string(8) ""consigli""
  [""term_group""]=>
  int(0)
  [""term_taxonomy_id""]=>
  int(7)
  [""taxonomy""]=>
  string(8) ""category""
  [""description""]=>
  string(0) """"
  [""parent""]=>
  int(0)
  [""count""]=>
  int(4)
  [""filter""]=>
  string(3) ""raw""
  [""cat_ID""]=>
  int(7)
  [""category_count""]=>
  int(4)
  [""category_description""]=>
  string(0) """"
  [""cat_name""]=>
  string(8) ""Consigli""
  [""category_nicename""]=>
  string(8) ""consigli""
  [""category_parent""]=>
  int(0)
}
}}}


the first WP_Term was

{{{#!php
<?php
object(WP_Term)#9123 (16) {
  [""term_id""]=>
  int(7)
  [""name""]=>
  string(8) ""Consigli""
  [""slug""]=>
  string(8) ""consigli""
  [""term_group""]=>
  int(0)
  [""term_taxonomy_id""]=>
  int(7)
  [""taxonomy""]=>
  string(8) ""category""
  [""description""]=>
  string(0) """"
  [""parent""]=>
  int(0)
  [""count""]=>
  int(4)
  [""filter""]=>
  string(3) ""raw""
  [""cat_ID""]=>
  int(7)
  [""category_count""]=>
  int(4)
  [""category_description""]=>
  string(0) """"
  [""cat_name""]=>
  string(8) ""Consigli""
  [""category_nicename""]=>
  string(8) ""consigli""
  [""category_parent""]=>
  int(0)
}
}}}

The second term was instead: 

{{{#!php
<?php
object(WP_Term)#9154 (16) {
  [""term_id""]=>
  int(5)
  [""name""]=>
  string(4) ""News""
  [""slug""]=>
  string(4) ""news""
  [""term_group""]=>
  int(0)
  [""term_taxonomy_id""]=>
  int(5)
  [""taxonomy""]=>
  string(8) ""category""
  [""description""]=>
  string(0) """"
  [""parent""]=>
  int(0)
  [""count""]=>
  int(7)
  [""filter""]=>
  string(3) ""raw""
  [""cat_ID""]=>
  int(5)
  [""category_count""]=>
  int(7)
  [""category_description""]=>
  string(0) """"
  [""cat_name""]=>
  string(4) ""News""
  [""category_nicename""]=>
  string(4) ""news""
  [""category_parent""]=>
  int(0)
}
}}}

Please be aware that $cat_obj->term_id is 7, first term term_id is 7, and second term category_count is 7.

When the WP_Term object passes into this 
{{{#!php
<?php
$category = array_map( 'strval', (array) $category );
}}}
it becomes an array of value, as it's converted in array, so method
{{{#!php
<?php
if ( in_array( (string) $cat_obj->term_id, $category ) )
    return true;
}}}
will return true for both searched terms.

More generally, if {{{$cat_obj->term_id}}} or {{{$cat_obj->name}}} or {{{$cat_obj->slug}}} are in some ways contained in searched WP_Term, this method will always return true. I know you need to respect old styled code, but nowadays we're best working with objects, so i'm wondering if you could do a more pointed and precise logging of these kind of errors. For example, you could hook a logger in each is_something method of class WP_Query, when you can check if we passed an instanceof the correct class (WP_Term for is_tag, is_category, is_tax etc) and warn if we passed a wrong class. Or if you have a better way to solve this, my ears are opened :)"	matteowebsolution
	62863	_make_cat_compat() - dynamic properties deprecated in PHP 8.2		Taxonomy	4.4	normal	normal	Awaiting Review	enhancement	new	has-patch	2025-01-25T10:03:38Z	2025-01-25T10:42:03Z	"Follow up to #62842

As mentioned, in PHP 8.2, the definition of dynamic properties will throw a deprecation error. While `WP_Term` has `#[AllowDynamicProperties]` allowed, I still propose to enhance this.
 
https://php.watch/versions/8.2/dynamic-properties-deprecated

The function is used a total of 16 times throughout core. 

Since `_make_cat_compat()` just dynamically defines copies existing properties of `WP_Term`, I think instead of adding dynamic properties, the use

By enhancing `WP_Term` with `__get()` and `__set()` object we could make full aliases instead of copies.

I'll open a PR with a proposal.

cc @audrasjb"	apermo
	61761	`wp_term_insert` inconsistent validation logic for `name` and `slug`		Taxonomy		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2024-07-25T23:30:30Z	2025-07-10T21:18:43Z	"Right now the way a term is inserted is inconsistent with cases that render the same `($name, $slug)` pair as either an error or a success.

**Considerations**
Inferred from the code logic:
- The `$name` is treated as a sort of logically enforced primary key
- The `$slug` is enforced as unique

**Inconsistencies**
The following examples are only indicated as `($name, $slug)` pairs for simplicity, but they represent `wp_insert_term` operations.


{{{
('A', 'a') // Success
('A', null) // Error: term name exists
('A', 'a') // Success (term slug is changed to ""a-2"")
}}}

Exploring a little more on the second insert we can have the following.


{{{
('A', 'b') // Success
('A', null) // Error: term name exists
('A', 'a') // Success (no term slug change)
}}}


**Documentation**
In the documentation it is stated that:

> If the term already exists on the same hierarchical level, or the term slug and name are not unique, a `WP_Error` object will be returned.

The documentation is not clear on what ""exists"" means in the context of hierarchical terms, but it indicates that the pair `($name, $slug)` should be the logically enforced primary key. If this is the case, which is not apparent from the code, than the same issues apply, although a different solution is required.

**Proposal**
Considering what a term is, a relationship (see https://wordpress.org/documentation/article/taxonomies/):
1. always return `WP_Error( 'duplicate name' )` when the `$name` is a duplicate (inside the same hierarchical level), preventing duplicate visual references. (__Example:__ A term ""Vegetarian"" with `$slug = 'vegetarian'` would be indistinguishable from another ""Vegetarian"" with `$slug = 'vegetarian-2'`.)
2. make the `('A', null)` examples behave as `('A', 'a')`."	xipasduarte
	39969	add filter to end of post_categories_meta_box()		Taxonomy		normal	normal	Awaiting Review	enhancement	new		2017-02-26T17:09:46Z	2017-02-26T17:09:46Z	"I have a need to output short ""instructional"" text below taxonomy metaboxes on the post{,-new}.php screens.  This text is to help admin users decide when/if to assign terms to a given (custom) post.

I currently do something similar in the featured image metabox, i.e., I hook into 'admin_post_thumbnail_html' (which is applied at the end of _wp_post_thumbnail_html()) to add text to tell admin users what image dimensions the featured image for a particular (custom) post should have.

Thus, it would be helpful if there were a similar filter applied at the end of post_categories_meta_box().

My current workaround is to add a

{{{#!php
'meta_box_cb' => 'custom_tax_meta_box'
}}}

to the args when I register the taxonomy, and my custom_tax_meta_box() function just calls post_categories_meta_box() and then adds the text.  Of course, this works, but is not very elegant and not very ""future proof"" (i.e., if WP core changes how taxonomy metaboxes are created them this workaround will break)."	pbiron
	57131	get_the_terms(): Parameter #1 ($post) of type is nullable.		Taxonomy	3.6	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2022-11-17T04:26:34Z	2022-11-18T01:23:45Z	"Follow-up to [24616].

From documentation on the return value of `get_the_terms()`, and the usage of `get_the_category()`, it may be assumed that this function may be used in the following manner.

{{{#!php
<?php
$term = get_the_terms( null, 'category' );
}}}"	omaeyusuke
	41776	wp_list_category array element 'exclude' better be called 'exclude_id'		Taxonomy	4.8.1	normal	normal	Awaiting Review	enhancement	new		2017-09-01T14:30:12Z	2017-09-01T14:31:21Z	"Could the default array element `exclude` of `wp_list_category` function be renamed as `exclude_id`?
I think only `exclude` is not that self explanatory and ""what to exclude"" could easily be a reasonable question for a developer to ask!

Instead `exclude_id` is easily understandable, even `exclude_ids` could be used as well because we can pass an array to it.

Please give it a thought.

Source file: wp-includes/category-template.php
Line no: 508"	subrataemfluence
	58924	Add a small precision on the documentation of the register_taxonomy function		Taxonomy	6.2.2	normal	minor	Awaiting Review	feature request	new		2023-07-27T13:57:55Z	2023-07-27T14:15:27Z	"Hello,

I was wondering if it wouldn't be interesting to add a little clarification here https://github.com/WordPress/wordpress-develop/blob/12a0205829c1411f16b4e216a713a153bcc62e2f/src/wp-includes/taxonomy.php#L410 .

Indeed, I searched for a while why when editing a CPT I did not have the categories in the form of a checkbox. By searching on https://developer.wordpress.org/reference/functions/register_taxonomy/ I found no indication about the change of UI of the choice of categories on the edition of a post.

I would find it interesting to add a very small precision to indicate that the `hierarchical` parameter changes the way of choosing its categories on a post: checkboxes if it is true, input text if false.

I hope I wrote and classified my ticket correctly, sorry if not, this is my first ticket / first contribution."	ltrihan
	56894	"Add new param for ""register_taxonomy"" for required taxonomy"		Taxonomy	2.3	normal	normal	Awaiting Review	feature request	new	reporter-feedback	2022-10-24T10:22:46Z	2023-03-20T13:47:07Z	"Hi,

It would be great if we have the possibility to set new param in ""register_taxonomy"" function to force user set term for post type.

Currently, we did the trick with some Javascript but if this was the default setting, it would probably be cleaner

My patch is coming ;-)"	Spidlace
	49912	Global setting to show tag content in ascending/chronological order		Taxonomy	5.5	normal	normal	Awaiting Review	feature request	new	dev-feedback	2020-04-15T17:55:30Z	2020-08-26T19:49:18Z	"WordPress tags can be used to group content together into small groups that are very good at showing the history of a topic and how it evolved over time. For example, you could use a tag to group together a 10 part series of articles that all belong to a category shared with other topics, and use that tag to allow a visitor to see all of those topics at once.

Unfortunately, because WordPress defaults showing content with the most recent content first (descending order), it requires the user to scroll down to the bottom of a list in order to go through that content chronologically. There are plugins that allow you view categories in ascending (chronological) order, but they don't extend to tags. And you can add ?order=asc to any individual tag link to switch the order, but there's no built-in way to make this default behavior.

Having a radio button that, when checked, would append ""?order=asc"" to the end of any tag link would allow the site owner to show all tags chronologically, allowing them to be used as mini-archives within a category. Also adding it to the individual tag pages would further allow the site owner to set specific tags as chronological and others as ""standard,"" depending on need.

This could also be added to categories, though there are plugins out there that already do this."	cbwright
	56895	SEO tools can't differ from Tag and Categories		Taxonomy		normal	normal	Awaiting Review	feature request	new		2022-10-24T14:59:08Z	2022-10-24T15:39:05Z	"To avoid duplicate titles, we need to make it possible to differ between the tag archive and the category archive.

Today we need a plugin like Yoast to fix it.

If we change general-template.php line 1208-1217

From:

{{{#!php
<?php
elseif ( is_category() || is_tag() ) {
		$title['title'] = single_term_title( '', false );

		// If on an author archive, use the author's display name.
	}
}}}
 

To:

	{{{#!php
<?php
// If on a category archive, use the term title.
	} elseif ( is_category()) {
		$title['title'] = single_term_title( __('Category archive'), false );

		//  If on a tag archive, use the term title.
	} elseif ( is_tag() ) {
		$title['title'] = single_term_title( __('Tag archive'), false );

		// If on an author archive, use the author's display name.
	}
}}}
 

We will get the freedom to change it our self."	jakobkjoller
	49488	WP-ADMIN > Add New Post Tags section - Issue		Taxonomy	5.3.2	normal	normal	Awaiting Review	feature request	new		2020-02-21T17:25:34Z	2020-02-21T17:30:12Z	"**Suggestion : WP-ADMIN > Add New Post Page > Right Hand side ""Tags"" Section**

On Tags section we can add new tag by just typing text and after press enter key. ""We should remove this feature"" Because of this feature, many times accidentally add unwanted tags and it would be submitted to google by auto sitemap submit plugin.

i aware that, This issue are fetching all of wordpress users who use wordpress TAGS.

So please consider this issue on next update.
"	gadhiyaravi
	45722	add markup to highlight the active tag		Taxonomy		normal	normal	Awaiting Review	feature request	assigned		2018-12-20T06:22:51Z	2018-12-20T06:22:51Z	"I would like to use the tag cloud in a prominent way, and have the tag highlighted when a visitor is viewing its archive, the way the current page is highlighted in the navigation menu. 
 any suggestions? "	probablepossible
	57569	Cannot Click Theme Details if there is an Update to the Theme		Themes	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	close	2023-01-27T15:22:08Z	2025-10-06T14:06:29Z	"When on the page /wp-admin/themes.php I cannot click the 'Theme Details' button if the theme has an update available. I get a console error in Chrome:

Uncaught TypeError: Cannot read properties of null (reading 'theme_update_strings')"	bgnicolepaschen
	57337	Docs: WP Theme class reference properties don't match code		Themes		normal	normal	Awaiting Review	defect (bug)	new		2022-12-16T04:31:00Z	2022-12-19T01:48:47Z	I was developing a plugin based on the information on https://developer.wordpress.org/reference/classes/wp_theme/ . This page implies that I should be able to get the theme author using the Author property and the URI of the Author's website using the AuthorURI property. However, in reality the AuthorURI property is always NULL and the Author property contains the author embedded inside an <a> tag with the AuthorURI. The docs should more clearly reflect this, and ideally mention a way to get the bare Author and URI (I ended up not finding a way to even do this, so I'm parsing the HTML now, really silly).	bertvandepoel
	57127	Don't show links to the Customizer when installing themes		Themes	6.1.1	normal	normal	Awaiting Review	defect (bug)	new		2022-11-16T12:13:20Z	2025-01-20T08:50:50Z	"This is a follow-up to #54878. I think that issue solves the case when installing from the theme list, but not from the theme preview.

When installing a block theme I get a Live Preview link which opens the Customizer. The Customizer then has a link to Use Site Editor which opens the site editor with my current theme, not the one I just installed.

Repro steps
 1. Go to /wp-admin/theme-install.php?browse=block-themes
 2. Click one of the themes to launch the info/preview
 3. Click Install and wait for the installation to work
 4. Press the X at the top left to close the info/preview screen
 5. Click Live Preview on the recently installed theme
"	dsas
	63411	Enhance PHPDoc for add_editor_style function		Themes		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-05-08T01:56:19Z	2025-05-08T04:13:03Z	"Document: https://developer.wordpress.org/reference/functions/add_editor_style/

The PHPdDoc describes this function as if it were for TinyMCE, but in fact, it is also available in the block editor, block themes, etc.

"	wildworks
	59702	Excerpt filters does not work in Ajax calls		Themes	6.3.2	normal	critical	Awaiting Review	defect (bug)	new	reporter-feedback	2023-10-21T17:07:31Z	2023-11-14T18:42:05Z	"I'm creating a new WordPress theme, and using filters to format excerpts in Ajax calls, I found when the page loads at the first time, it works correctly, but, when I use the Ajax call to load posts progressively, the ""the_excerpt()"" method does not apply the filters to the excerpts.

I'm implementing the lazy load method for the posts, and I'm using the following three files for that propose.

**functions.php**

{{{#!php
<?php
function custom_excerpt_length($length) {
    return 25;
}

function custom_excerpt_more($more) {
    return '...';
}

function load_more_posts() {
    $offset = $_POST[""offset""];
    $limit = 5;

    $args = array(
        'post_type' => 'post',
        'posts_per_page' => $limit,
        'offset' => $offset
    );

    $query = new WP_Query($args);

    if($query->have_posts()) :
        while($query->have_posts()) :
            $query->the_post();
            get_template_part('content', get_post_format());
        endwhile;
    endif;
    
    wp_die();
}

add_filter( 'excerpt_length', 'custom_excerpt_length', 9999 );
add_filter('excerpt_more', 'custom_excerpt_more', 25);
add_action('wp_ajax_load_more_posts', 'load_more_posts');
add_action('wp_ajax_nopriv_load_more_posts', 'load_more_posts');
}}}

**content.php**

{{{#!php
<?php
<div class=""post-card"">
    <?php if ( has_post_thumbnail() ): ?>
        <div class=""post-image"">
            <?php the_post_thumbnail('medium', array('loading' => 'lazy')); ?>
        </div>
    <?php endif; ?>
    <div class=""post-content"">
        <div class=""post-title"">
            <h2><a href=""<?php the_permalink(); ?>""><?php the_title(); ?></a></h2>
        </div>
        <div class=""author-info"">
            <?php echo get_avatar( get_the_author_meta( 'ID' ), 40 );?>
            <a href=""<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"" title=""<?php the_author(); ?>"">
                <span class=""author-name""><?php the_author(); ?></span>
            </a>
            <a href=""<?php echo get_day_link(get_the_time('Y'), get_the_time('m'), get_the_time('d')); ?>"">
                <i class=""fas fa-calendar""></i>
                <span class=""post-date""><?php the_date(); ?></span>
            </a>
        </div>
        <div class=""post-excerpt"">
            <?php the_excerpt(); ?>
        </div>
        <div class=""post-tags"">
            <?php
                $tags = get_the_tags();
                if ($tags):
                    foreach($tags as $tag):
            ?>
                    <a href=""<?php echo get_tag_link($tag->term_id); ?>"" class=""tags tags-<?php echo $tag->slug; ?>"">
                        <?php echo $tag->name; ?>
                    </a>
            <?php
                    endforeach;
                endif;
            ?>
        </div>
    </div>
</div>
}}}


**main.js**


{{{
jQuery(document).ready(function($) {
  let offset = 5;
  let limit = 5;

  $(window).scroll(function() {
      if ($(window).scrollTop() + $(window).height() >= $('#load-more-posts').offset().top) {
          $.ajax({
              url: villamzr_localize.ajax_url,
              type: 'POST',
              data: {
                  action: 'load_more_posts',
                  offset: offset,
              },
              success: function(data) {
                  if (data) {
                    let $data = $(data);
                      $data.find('.post-excerpt p').each(function() {
                          let text = $(this).text();
                          $(this).text(text.substr(0, 150));
                      });
                      $('#post-container').append(data);
                  } else {
                      $('#load-more-posts').remove();
                  }
              }
          });
          offset += limit;     
      }
  });
});
}}}

Those are the files that I'm using to implement that. The code is correct and normal, but researching I found that the problem is the post-excerpt.php file, belonging to the WordPress core, it has an error in the logic in the following part:

**post-excerpt.php**

{{{#!php
/** ... 
other code
*/

<?php
if ( is_admin() ||
	defined( 'REST_REQUEST' ) && REST_REQUEST ) {
	add_filter(
		'excerpt_length',
		static function() {
			return 100;
		},
		PHP_INT_MAX
	);
}

}}}

For the filters to be applied to the Excerpt, the logic must be with {{{&&}}} and not with {{{||}}}. It is already tested and works. That is:

{{{#!php
<?php
if ( is_admin() &&
	defined( 'REST_REQUEST' ) && REST_REQUEST ) {
	add_filter(
		'excerpt_length',
		static function() {
			return 100;
		},
		PHP_INT_MAX
	);
}}}
"	villamzr
	38557	Format for registering a default header image is ambiguous	joemcgill*	Themes		normal	normal	Future Release	defect (bug)	accepted	dev-feedback	2016-10-28T23:33:02Z	2019-03-26T13:16:14Z	"When registering a custom header with a default image, most resources seem to recommend using an absolute URL ([https://developer.wordpress.org/themes/functionality/custom-headers/ Handbook], [https://codex.wordpress.org/Custom_Headers Codex], [https://make.wordpress.org/themes/2012/04/06/updating-custom-backgrounds-and-custom-headers-for-wordpress-3-4/ Make post]). However, it can be registered with `sprintf` placeholders, which is what the old `HEADER_IMAGE` [https://themes.trac.wordpress.org/browser/twentyten/1.0.3/functions.php#L106 constant accepted]. It's registered that way in [https://themes.trac.wordpress.org/browser/twentythirteen/2.0/inc/custom-header.php#L27 Twenty Thirteen] as well.

Any time core references the default image URL, it needs to account for the replacements. The problem is it doesn't take this into consideration in at least a couple places and obscures the replacement a bit by passing the default string through `get_theme_mod()` in some cases, which handles the replacement itself.

Here are a couple of places where the replacement isn't handled in core:
* [https://github.com/WordPress/WordPress/blob/f7552bbf53c183753eb8ac0e723f79e0d98260ae/wp-includes/class-wp-customize-manager.php#L3438 wp-includes/class-wp-customize-manager.php]
* [https://github.com/WordPress/WordPress/blob/f7552bbf53c183753eb8ac0e723f79e0d98260ae/wp-admin/custom-header.php#L642-L643 wp-admin/custom-header.php]

To see how this manifests itself:
1. Switch to Twenty Ten or Twenty Thirteen
2. Delete the `header_image` and `header_image_data` theme mods
3. Access the Customizer
4. Open the Header Image section

In either theme, the default image that was visible on the front end is missing in the Customizer preview and the ""Current header"" control doesn't show an image as being set.

If you access the old Custom Header screen in the admin panel (wp-admin/themes.php?page=custom-header), the option to reset the image is visible when it shouldn't be.

I imagine this also affects default images for the custom background feature as well."	bradyvercher
	51688	Issue With Theme Installation and Default Listing.		Themes		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-10-31T13:04:08Z	2020-11-03T05:14:31Z	"I uploaded new theme by using Hosting But It is not display in new version WordPress 5.5.3. I can not see ""Add new button"" and theme listing etc. please check screenshot."	Shital Patel
	60072	No upper limit restriction for number of posts set via Site Editor and the value entered by the user chang		Themes		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-12-14T12:41:07Z	2024-07-08T21:06:49Z	"=== Description
No upper limit restriction for number of posts set via Site Editor and the value entered by the user changes
=== Environment
- WordPress: 6.4.2
- PHP: 7.4.33
- Server: Apache/2.4.54 (Unix) OpenSSL/1.0.2u PHP/7.4.33 mod_wsgi/3.5 Python/2.7.18 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1
- Database: mysqli (Server: 5.7.39 / Client: mysqlnd 7.4.33)
- Browser: Chrome 118.0.0.0 (macOS)
- Theme: Twenty Twenty-Four 1.0
- MU-Plugins: None activated
- Plugins: 
  * WordPress Beta Tester 3.5.5

=== Steps to Reproduce
1. Goto Site Editor 
2. In the No.  of posts per page option give a huge number and save the changes

x. 🐞 Bug occurs.

=== Expected Results
1.  ✅ It should show the maximum number of posts allowed per page exceeded validation message or the value added by the user

=== Actual Results
1.  ❌ Goto Site Editor again and we can see the number changed to 9223372036854776000 
2. There is no upper limit validation and the value entered by the user changed to some random values

[[Image('https://ibb.co/gygWt9N')]]
[[Image('https://ibb.co/RywQtrH')]]
"	jomonthomaslobo1
	50165	Synchronize get_theme_feature_list() with the Theme Directory		Themes	4.9	normal	normal	Future Release	defect (bug)	new		2020-05-14T11:40:33Z	2021-07-22T13:06:26Z	"[41648] removed a bunch of theme features from `get_theme_feature_list()`:

* BuddyPress
* Custom Menu
* Flexible Header
* Front Page Posting
* Microformats
* RTL Language Support
* Threaded Comments
* Translation Ready

This resulted in the core list being out of sync with the Theme Directory, and in these strings not being translated when returned from the Theme Directory API.

[42003] then disabled the API call on Add Themes screen ""due to inconsistencies and to ensure tags are translated"".

With that change, every instance of `get_theme_feature_list()` as of WordPress 4.9 no longer calls the API and just returns the hardcoded list. One exception is the instance in `install_themes_dashboard()`, however that function is not used anywhere.

It's not quite clear whether the removing was intentional, as I could not find any justification in the linked tickets. These features are still displayed in Theme Directory filters and are returned in the API response.

If it was indeed intentional, let's update the Theme Directory to match.

If not, let's update the core list to match the Theme Directory."	SergeyBiryukov
	39238	The active handler for a video header isn't accessible	joemcgill*	Themes	4.7	normal	normal	Future Release	defect (bug)	accepted	has-patch	2016-12-11T19:56:56Z	2017-05-23T20:05:48Z	"In `wp-custom-header.js`, the handler used for displaying the video should be assigned to `wp.customHeader.activeHandler` for other scripts to access. However, with the way it's currently being assigned, that property is always undefined.

For reference, [https://github.com/WordPress/WordPress/blob/9669c60397c8c4056ac76bf93603f299e597fdad/wp-includes/js/wp-custom-header.js#L57 this is where] the assignment currently happens."	bradyvercher
	62138	The theme count in theme-install should use a thousand separator		Themes	6.7	normal	minor	Awaiting Review	defect (bug)	new	has-patch	2024-09-30T15:46:25Z	2024-09-30T17:25:03Z	"The count of themes is currently set as a hardcoded number like ""6915"", when it should (locale dependant) display using a thousands separator like ""6,915"" to make it easier to read.

"	dsas
	43153	Theme Preview doesn't work		Themes	4.9.2	normal	normal	Awaiting Review	defect (bug)	new		2018-01-24T12:53:53Z	2020-12-18T18:23:54Z	"Hi 

in WordPress 4.9.2  when i go to Appearance-> Themes and want to add new theme from WordPress library. i'm click on Preview button to see details about any themes but it's blank page happen. i test it on 3 different WordPress site but it's happen again."	CG-TEAM
	46988	Theme dir hardcode		Themes	5.1.1	normal	normal	Awaiting Review	defect (bug)	new		2019-04-19T07:19:34Z	2019-05-03T18:50:03Z	"This is about the get_raw_theme_root() function in wp-includes/theme.php

When the $wp_theme_directories global has only one theme directory in it, the functions returns a hardcoded path of /themes which will be treated later as relative to the content folder. The correct behaviour would be to return the actual string from the $wp_theme_directories global. 

This is a problem when a user is using a custom theme directory and has deleted the themes directory in the content folder. Then his global $wp_theme_directories will contain only one path - the one to his themes directory, but WP will be looking in the content/themes directory instead in the Themes admin page. 

I had this issue on multisite, but should be the same on single sites I think.

"	studioreforma
	57779	Theme editor changes not saving in multi site		Themes	6.1.1	normal	major	Awaiting Review	defect (bug)	new		2023-02-21T11:14:48Z	2023-10-25T21:53:44Z	I Have using multi site for last 1 year with 3 different sites with 3 different themes. but I encountered some issues with it. If a site is enabled with multi site, we can't use theme editor to make a theme code changes it will shows error while click save theme button.	rajdharshini1430
	44892	Theme install button showing again		Themes	4.9.8	normal	normal	Awaiting Review	defect (bug)	new		2018-09-05T06:44:56Z	2019-03-13T18:39:28Z	"How to get bug:-

First go on
Appearance - > Theme -> add new

Click on install button and same time click on Preview button.
on theme preview window again showing install button.

and one more thing if again i am click on install button error massage will appear. 

"	anilhada
	38563	Theme installed state does not persist after installation and refined search		Themes		normal	normal	Future Release	defect (bug)	reviewing	close	2016-10-30T00:16:26Z	2026-02-04T16:48:09Z	"After installing a theme an 'Installed' flag is displayed above the theme.

If you refine the search results, and the same theme is in the results the theme does not display the 'Installed' flag.

'''Steps to reproduce:'''

(Exact steps assumes the WordPress installation does not have the theme Twenty Twelve installed)

1. In the WordPress Administration, go to Appearance -> Themes -> Add New
2. Search for 'Twenty'
3. Install theme 'Twenty Twelve' and wait for installation to complete. The 'Installed' flag will appear above the installed theme.
4. Refine search results by changing search term to 'Twenty T'
5. The theme 'Twenty Twelve' will appear in the search results but will not have the 'Installed' flag.

If you attempt to install the theme again you receive an error message stating 'Installation failed: Destination folder already exists.'

'''The specifics ...'''

Installed themes are stored in a JavaScript array - _wpThemeSettings.installedThemes

The array is being created when the page loads and needs to be updated when a theme is installed so that new search results (which use Ajax and do not reload the page) have the complete list of installed themes.

'''The solution ...'''

Once the installed theme is successfully installed, push the theme slug into the array.

e.g.


{{{
_wpThemeSettings.installedThemes.push( response.slug );
}}}

Attached patch with how I would see this being done."	ovann86
	44897	Theme installed success message not showing when installing multiple themes		Themes	4.9.8	normal	normal	Future Release	defect (bug)	new		2018-09-05T09:39:35Z	2021-04-17T08:35:03Z	"How to get bug:-

First go on Appearance - > Theme -> add new

1. Click on uninstall theme Preview button. after that preview page will open.
2. Click on install button and same time click on next button near by install button.
3. Next theme preview page open again click on install button and click on close button.

In this case we are install two theme but install massage will appear on only one theme. 
"	anilhada
	66256	Theme installer: Themes can be previewed even when the Preview button is disabled		Themes		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-06T12:40:56Z	2026-10-09T07:56:07Z	"In the Theme installer at `wp-admin/theme-install.php` the action buttons for the themes that can't be previewed, for example because they are incompatible with the current WP version or the current PHP version, are disabled.

This is intentional to prevent users from installing / activating / previewing an incompatible theme.

However, clicking on any part of the Theme card outside of the buttons still gives access to the Theme preview (note that the Preview and the Live Preview are two different things).

This is unexpected and should be fixed.

To reproduce, the quick way:
- In `src/wp-includes/functions.php` make the two functions `is_wp_version_compatible()` and `is_php_version_compatible()` return `false` early.
- Go to the Theme installer.
- Observe the theme cards have their buttons disabled. The button labels are for example: Cannot Install / Preview, Cannot Activate / Live Preview.
- For a non-installed theme (one that shows the Cannot Install / Preview buttons) click on any part of the theme's card outside of the buttons.
- Observe it brings you to the Theme preview.
- For an installed theme (one that has the Cannot Activate / Live Preview buttons), click on any part of the theme's card outside of the buttons.
- Observe it brings you to the Theme preview.

So for both installed and non-installed theme shown in the Theme installer, clicking the theme's card still gives access to the theme's Preview."	afercia
	61937	WP_Theme_JSON_Schema::migrate removes data when version is missing		Themes		normal	normal	Awaiting Review	defect (bug)	new		2024-08-27T15:00:00Z	2024-08-29T20:15:56Z	"I want to override a theme.json, therefore I can use the `wp_theme_json_data_theme ` filter.
 
I tried it with this code:
{{{#!php
<?php
add_filter(
	'wp_theme_json_data_theme',
	function ( \WP_Theme_JSON_Data $theme_json_data ): \WP_Theme_JSON_Data {

		return $theme_json_data->update_with(
			[
				// 'version'  => 3, // only works with the version parameter
				'settings' => [
					'color' => [
						'palette' => [
							'slug'  => 'some-color',
							'color' => '#01579b',
							'name'  => 'Some Color',
						],
					],
				],
			]
		);
	}
);
}}}


This only works when I add the `version`, because the `WP_Theme_JSON_Data` constructor calls `WP_Theme_JSON_Schema::migrate()`. 

I found out, that I need to add a `version` to my array, otherwise this function overrides my data. See 
- https://github.com/WordPress/wordpress-develop/blob/6.6.1/src/wp-includes/class-wp-theme-json-schema.php#L46-L50
- https://developer.wordpress.org/reference/classes/wp_theme_json_schema/migrate/
{{{#!php
<?php
if ( ! isset( $theme_json['version'] ) ) {
	$theme_json = array(
		'version' => WP_Theme_JSON::LATEST_SCHEMA,
	);
}
...
}}}


We can fix it, if we only set the version parameter and don't override the array:

{{{#!php
<?php
if ( ! isset( $theme_json['version'] ) ) {
	$theme_json['version'] = WP_Theme_JSON::LATEST_SCHEMA;
}
...
}}}
"	Soean
	66489	Weekly archive pages show the year as the archive title and document title		Themes	trunk	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-11-05T12:45:50Z	2026-11-05T12:49:59Z	"On a weekly archive (e.g. `/?m=2025&w=39`), `get_the_archive_title()` returns **Year: 2025** and `wp_get_document_title()` returns **2025 – Site name**, even though only the posts of one week are listed.

Weekly archive links built by `wp_get_archives( 'type=weekly' )` contain both `m` (the year) and `w` (the week). Because `m` has 4 digits, `WP_Query` sets `is_year()` to true. `get_the_archive_title()` and `wp_get_document_title()` have branches for year, month and day, but none for the week, so the year branch wins. A URL with only `?w=39` falls back to the generic ""Archives"" title.

=== Steps to reproduce ===

1. Use a block theme (e.g. Twenty Twenty-Five) and publish some posts.
2. Add an Archives block with ""Group by: Week"" (or the legacy Archives widget with weekly archives via `wp_get_archives( 'type=weekly' )`).
3. Click a week link, e.g. `/?m=2025&w=39`.

Expected: the archive title shows the week, using the same date range as the archive link, e.g. **Week: September 22, 2025 – September 28, 2025**; the browser tab shows **September 22, 2025 – September 28, 2025 – Site name**.

Actual: **Year: 2025**, and **2025 – Site name** in the browser tab.

=== Proposed fix ===

Add a week branch before the `is_year()` check in both functions. It builds the range with `get_weekstartend()` from the first post's date and the `start_of_week` option, formatted with the `date_format` option, the same way `wp_get_archives()` builds the weekly link text. The title prefix is `Week:`.

Related: #59027 (weekly archive links), #52220 (week 53 across a year change)."	Kometschuh
	57390	[ wp-includes/template.php - get_archive_template() ] - archive for post doesn't load the correct template		Themes	1.5	normal	normal	Awaiting Review	defect (bug)	new		2022-12-28T09:41:31Z	2022-12-28T10:10:02Z	"Good morning everyone, while making templates for the post-type 'post' I discovered that: 

The get_archive_template() function ( in wp-includes/template.php line 150 ) for a post archive returns archive.php instead of archive-post.php while the get_single_template() function for a post returns single-post.php. 

In my opinion, the two results don't agree each other and the first function should  work for posts as well. 

Thanks in advance. 
"	riccardodicurti
	51755	editor-styles theme feature naming with or without trailing s		Themes	5.5.2	normal	normal	Awaiting Review	defect (bug)	new		2020-11-11T18:00:49Z	2023-05-30T22:29:32Z	"I tried in vain to follow the documentation about [https://codex.wordpress.org/Editor_Style editor styles]:

  There is no need to explicitly [https://codex.wordpress.org/Function_Reference/add_theme_support add theme support] for this feature since support is added automatically when calling: 
  {{{#!php
  add_editor_style();
  }}}

But I can't make it work.

The only way to do it is to use both functions:
{{{#!php
// in after_setup_theme action:
add_theme_support( 'editor-styles' ); // without that call, the editor-style.css
add_editor_style();
}}}


After tried all combinations, I found that the function [https://core.trac.wordpress.org/browser/tags/5.5.3/src/wp-includes/theme.php#L2037 add_editor_style], [https://core.trac.wordpress.org/browser/tags/5.5.3/src/wp-includes/theme.php#L2062 remove_editor_styles] and [https://core.trac.wordpress.org/browser/tags/5.5.3/src/wp-includes/theme.php#L2843 remove_theme_support] use the theme feature name `editor-style` (without the trailing `s`) where the feature is called `editor-styles` in [https://core.trac.wordpress.org/browser/tags/5.5.3/src/wp-includes/theme.php#L3951 wp-includes/theme.php].
Note the default file name used in [https://core.trac.wordpress.org/browser/tags/5.5.3/src/wp-includes/theme.php#L2037 add_editor_style] is `editor-style.css` (filename without `s`)

Note also that, this name also used (without `s`) in [https://core.trac.wordpress.org/browser/tags/5.5.3/src/wp-admin/includes/theme.php#L310 wp-admin/includes/theme.php].

Also it exist an [https://developer.wordpress.org/block-editor/developers/themes/theme-support/#dark-backgrounds other theme feature] called `dark-editor-style` (without `s`) which is related to `editor-styles` theme feature.

There is a ways to simplify that, like using the name `editor-style`, and `editor-styles` as an alias (or vice versa)?
To be consistant, use (with or) without the trailing `s` everywhere?"	mmems
	64778	get_block_editor_theme_styles() doesn't load editor styles of parent theme		Themes	5.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-03-02T13:36:30Z	2026-10-05T06:39:10Z	"If a parent block theme uses `add_editor_style( 'style-editor.css' );` and the child theme too, the `style-editor.css` of the parent theme is no longer loaded. This is unexpected and different from classic themes.

`get_editor_stylesheets()` looks in the parent theme as well while `get_block_editor_theme_styles()` uses `get_theme_file_path()` which searches in the stylesheet directory before the template directory.

The current workaround is to use a different file name in the child theme."	ocean90
	65689	register_block_template(): PHP warnings when a plugin-registered template is assigned to an individual post		Themes	7.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-07-22T11:50:06Z	2026-07-22T12:09:34Z	"When a template registered with the Plugin Template Registration API is assigned to an individual post, several PHP warnings and deprecation notices are triggered in the editor.


**Step-by-step reproduction instructions**

Register a block template from a plugin.

```
add_action(
	'init',
	function () {
		register_block_template(
			'gutenberg//author-admin',
			array(
				'title'       => 'Enhanced Author Admin template',
				'description' => 'An enhanced version of the Author Admin template.',
				'content'     => '<!-- wp:template-part {""slug"":""header"",""tagName"":""header""} /--><!-- wp:group {""tagName"":""main"",""layout"":{""inherit"":true}} --><main class=""wp-block-group""><!-- wp:paragraph --><p>This is an enhanced author template.</p><!-- /wp:paragraph --></main><!-- /wp:group --><!-- wp:template-part {""slug"":""footer"",""tagName"":""footer""} /-->',
				'post_types'  => array( 'post' ),
			)
		);
	}
);
```


Open a post in the editor.
Assign the registered plugin template to that post.
Reload or reopen the editor.


**Expected behavior**
The assigned template should load without any PHP warnings or deprecation notices.

**Actual behavior**
The following warnings are generated:

Warning: Undefined array key 0 in wp-includes/block-editor.php on line 469
Warning: Attempt to read property ""content"" on null in wp-includes/block-editor.php on line 469
Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in wp-includes/class-wp-block-parser.php on line 247
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in wp-includes/class-wp-block-parser.php on line 324


**Additional information**
The template is registered using the plugin-slug//template-slug naming convention introduced in https://github.com/WordPress/gutenberg/pull/61577.

The same warnings also occur in WordPress 7.0, so this issue is not specific to WordPress 7.1.

If I open the assigned template in the Site Editor and save it (even without making any changes), the warnings no longer occur.
"	nendeb55
	63572	theme.json file variable could be a directory, add check to prevent notices		Themes		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-06-16T08:34:14Z	2025-12-01T03:31:07Z	"In class-wp-theme-json-resolver.php

https://github.com/WordPress/wordpress-develop/blob/6.8.1/src/wp-includes/class-wp-theme-json-resolver.php#L254

is the line
{{{#!php
if ( is_readable( $theme_json_file ) ) {
}}}

However if the $theme_json_file is a directory that will return true, even if it expects a .json local file path.

In this patch I propose adding is_file ( and perhaps even removing is_readable, as is_readable will also return true for directories ).
"	ramon fincken
	63499	wp-signup and wp-activate page ui looking broken		Themes		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-05-28T13:36:41Z	2025-05-29T06:39:04Z	"I visited the pages for registration and activation. There is no left-side gap between the header and footer. It doesn't appear promising. We can add the distance between the header and footer and the left side of the screen.

This issue is coming for 2022,2023,2024 and 2025 theme, FSE themes. for the themes 2021 and before it looks fine."	umesh.nevase
	64057	wp_die() status code Themes component updates (parent ticket: #64009)		Themes		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-09-30T16:33:33Z	2025-11-22T03:43:21Z	"If you have come here directly, please refer back to the parent ticket here: [https://core.trac.wordpress.org/ticket/64009 #64009]

This ticket is regarding the `wp_die()` function calls within the Media component and will cover the following locations. Please note links were correct at the time of testing and writing this up, but line numbers may have changed slightly:

|| **Filepath** || **Line Number** || **Context** || **Status Code** || **New Code** || **Code Meaning** ||
|| src/wp-admin/themes.php	|| [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/themes.php#L86 86] ||	User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/themes.php	|| [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/themes.php#L106 106] ||	User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/theme-editor.php	|| [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/theme-editor.php#L18 18] ||	User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/theme-editor.php	|| [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/theme-editor.php#L73 73] ||	Missing: theme || 500 || 404 || Not Found ||
|| src/wp-admin/theme-install.php	|| [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/theme-install.php#L16 16] ||	User Permissions: does not have access || 500 || 403 || Forbidden ||


There are however the following function calls I have not touched as I felt they were already valid with their current status code:

|| **Filepath** || **Line Number** || **Status Code** ||
|| src/wp-admin/includes/theme-install.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/includes/theme-install.php#L261 261] || 500 ||
|| src/wp-admin/themes.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/themes.php#L13 13] || 403 ||
|| src/wp-admin/themes.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/themes.php#L26 26] || 403 ||
|| src/wp-admin/themes.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/themes.php#L41 41] || 403 ||
|| src/wp-admin/themes.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/themes.php#L51 51] || 500 ||
|| src/wp-admin/themes.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/themes.php#L61 61] || 403 ||
|| src/wp-admin/themes.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/themes.php#L69 69] || 403 ||
|| src/wp-content/themes/twentyfifteen/inc/back-compat.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-content/themes/twentyfifteen/inc/back-compat.php#L53 53] || 500 ||
|| src/wp-content/themes/twentyfifteen/inc/back-compat.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-content/themes/twentyfifteen/inc/back-compat.php#L74 74] || 500 ||
|| src/wp-content/themes/twentyfourteen/inc/back-compat.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-content/themes/twentyfourteen/inc/back-compat.php#L53 53] || 500 ||
|| src/wp-content/themes/twentyfourteen/inc/back-compat.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-content/themes/twentyfourteen/inc/back-compat.php#L74 74] || 500 ||
|| src/wp-content/themes/twentynineteen/inc/back-compat.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-content/themes/twentynineteen/inc/back-compat.php#L57 57] || 500 ||
|| src/wp-content/themes/twentynineteen/inc/back-compat.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-content/themes/twentynineteen/inc/back-compat.php#L80 80] || 500 ||
|| src/wp-content/themes/twentyseventeen/inc/back-compat.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-content/themes/twentyseventeen/inc/back-compat.php#L57 57] || 500 ||
|| src/wp-content/themes/twentyseventeen/inc/back-compat.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-content/themes/twentyseventeen/inc/back-compat.php#L80 80] || 500 ||
|| src/wp-content/themes/twentysixteen/inc/back-compat.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-content/themes/twentysixteen/inc/back-compat.php#L59 59] || 500 ||
|| src/wp-content/themes/twentysixteen/inc/back-compat.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-content/themes/twentysixteen/inc/back-compat.php#L82 82] || 500 ||
|| src/wp-content/themes/twentythirteen/inc/back-compat.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-content/themes/twentythirteen/inc/back-compat.php#L53 53] || 500 ||
|| src/wp-content/themes/twentythirteen/inc/back-compat.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-content/themes/twentythirteen/inc/back-compat.php#L74 74] || 500 ||
|| src/wp-content/themes/twentytwentyone/inc/back-compat.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-content/themes/twentytwentyone/inc/back-compat.php#L58 58] || 500 ||
|| src/wp-content/themes/twentytwentyone/inc/back-compat.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-content/themes/twentytwentyone/inc/back-compat.php#L83 83] || 500 ||
|| src/wp-includes/theme.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-includes/theme.php#L765 765] || 500 ||

Please have a look through the suggested changes documented here, and any/all feedback is appreciated. 😃"	callumbw95
	49351	wp_theme_editor_filetypes filter can not remove php and css file types		Themes	5.3.2	normal	normal	Awaiting Review	defect (bug)	new		2020-02-03T08:17:10Z	2020-02-03T08:43:06Z	"I don't know why  {{{wp_get_theme_file_editable_extensions}}} this method need to ensure that default types will still there. 

Sometimes just won't let people modify php files or other file types to avoid an unexpected issue. (including plugin editor)

btw, this {{{wp_get_plugin_file_editable_extensions}}} method do not have that restrict.

Maybe it's a bug!?"	mxp
	62590	"""Live Preview"" on mobile open customizer by default"		Themes	6.7.1	normal	minor	Awaiting Review	enhancement	new		2024-11-27T17:37:16Z	2024-11-28T12:59:18Z	"On mobile devices, when clicking the ""Live Preview"" button for an installed theme in the Themes section, the Customizer opens by default, showing the settings panel. To see the actual theme preview, users must manually click the ""Preview"" tab.

This adds an unnecessary step, making the experience less seamless for mobile users.

Proposed Solution:
On mobile devices, when clicking the ""Live Preview"" button:
- The theme preview should open directly in the ""Preview"" tab.
- Users can toggle back to the Customizer settings panel if needed.
This change would improve usability and match the expected behavior of previewing a theme.

Steps to Reproduce:

- Open the WordPress Themes section on a mobile device or in a browser's mobile view.
- Click the ""Live Preview"" button for any installed theme.
- Observe that the Customizer settings panel opens by default, and you must manually switch to the ""Preview"" tab to see the theme preview.
"	sukhendu2002
	51532	$tag_templates should be customizable (instead of local array)		Themes	1.5	normal	normal	Awaiting Review	enhancement	new	has-patch	2020-10-15T10:54:18Z	2022-12-11T21:22:26Z	"In file wp-includes/template-loader.php (lines 57 - 75), a local associative array is defined: $tag_templates and it is used immediatly after at line 79 in a foreach loop.

The problem: 
So there's no way for a plugin or theme to customize the value of this local variable.

Proposed enhancement: 

* create a new public property in class WP_Query called $router_templates 
  (with same initial value as local variable $tag_templates)

{{{#!php
<?php

// wp-includes/class-wp-query.php
class WP_Query {

    // ...
    public $router_templates = array(
		'is_embed'             => 'get_embed_template',
		'is_404'               => 'get_404_template',
		'is_search'            => 'get_search_template',
		'is_front_page'        => 'get_front_page_template',
		'is_home'              => 'get_home_template',
		'is_privacy_policy'    => 'get_privacy_policy_template',
		'is_post_type_archive' => 'get_post_type_archive_template',
		'is_tax'               => 'get_taxonomy_template',
		'is_attachment'        => 'get_attachment_template',
		'is_single'            => 'get_single_template',
		'is_page'              => 'get_page_template',
		'is_singular'          => 'get_singular_template',
		'is_category'          => 'get_category_template',
		'is_tag'               => 'get_tag_template',
		'is_author'            => 'get_author_template',
		'is_date'              => 'get_date_template',
		'is_archive'           => 'get_archive_template',
	);


}

}}}

* add a new function in wp-includes/template.php called get_router_templates

{{{#!php
<?php

// ...
function get_router_templates ()
{
    global $wp_query;
    return apply_filters('router_templates', $wp_query->router_templates);
}

}}}

* upgrade the code in wp-includes/template-loader.php

{{{#!php
<?php

// line 55
if ( wp_using_themes() ) {

    // line 57: Only modification: call function instead of defining local array    
    $tag_templates = get_router_templates();

    $template      = false;

    // Loop through each of the template conditionals, and find the appropriate template file.
    foreach ( $tag_templates as $tag => $template_getter ) {
            // ...
    }

}}}


* Impacts: 
- There's no compatibility problem
- Perfomance impact is really light
- This will add more possibilities to the theme workflow.

* I can provide diff patch if needed

If you have questions, don't hesitate to ask.

Cheers."	xoomcoder
	33600	Add `theme_mods_{$stylesheet}` option during `populate_options()`		Themes		normal	normal	Future Release	enhancement	new	has-patch	2015-08-29T20:04:59Z	2025-05-07T14:21:11Z	"After `switch_theme()`, a `theme_mods_{$stylesheet}` option is created if one doesn't exist to avoid extra database queries (if I understand #14828 correctly).

No similar option is currently created during installation, so a fresh install can includes those queries if the default theme looks for the mods before the option is added. 

The attached patch would add the option during `populate_options()`.

I included a unit test, although I'm not sure where the best location for it would be."	dlh
	56556	Add a link to go to the thema wordpress.org page.		Themes		normal	normal	Awaiting Review	enhancement	new		2022-09-12T09:17:44Z	2022-09-12T09:17:44Z	"When you click on details on a plugin, you get a link to the WP.org page. 
With theme's, this link can't be found."	NekoJonez
	61555	Add deprecation notice to wp_title()		Themes		normal	normal	Awaiting Review	enhancement	new	needs-docs	2024-07-03T08:24:19Z	2024-07-04T06:34:30Z	"The function `wp_title()` simply never considers `is_front_page` to be true, and as such is broken.

''Legacy themes for example use wp_title'', see #57778, and the [https://codex.wordpress.org/Theme_Development#Document_Head_.28header.php.29 Codex itself still says you must use it], **although I know that is not true anymore, in fact nowadays you must use `add_theme_support` instead.**

---

I suggest to add a deprecation notice to this function, because afaik it is not used in wp-core and as such, since broken anyway, shouldn't be possible to be used in new code, and old code should be warned, if using it.

"	anonymized_14808221
	58952	Add search to get_the_archive_title()		Themes		normal	normal	Awaiting Review	enhancement	new		2023-08-01T09:40:07Z	2023-10-27T22:09:16Z	"Add search archive title to get_the_archive_title():

{{{#!php
<?php
if ( is_search()) {
	$title = __( 'Search results' );
} elseif( is_category() ) { ...
}}}
"	huubl
	66503	Add unit tests for get_theme_mods(), remove_theme_mods(), get_header_textcolor(), display_header_text() and get_background_color()		Themes		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T02:01:16Z	2026-11-06T02:05:47Z	"The theme modification functions of `src/wp-includes/theme.php` have tests in `tests/phpunit/tests/option/themeMods.php` for `get_theme_mod()`, `set_theme_mod()` and `remove_theme_mod()`, but these functions are not referenced by any test:

 * `get_theme_mods()`
 * `remove_theme_mods()`
 * `get_header_textcolor()` and `header_textcolor()`
 * `display_header_text()`
 * `get_background_color()` and `background_color()`

This ticket adds unit tests for them, each in its own test class in `tests/phpunit/tests/theme/`:

 * `get_theme_mods()` returns the modifications of the current theme, an empty array when they are not saved or are not an array, and migrates the modifications that are saved in the deprecated `mods_{$theme_name}` option when it is called in the admin.
 * `remove_theme_mods()` deletes the modifications of the current theme and the deprecated option, and does not touch other themes.
 * `get_header_textcolor()` and `header_textcolor()` return and print the saved value, or the default text color of the theme support.
 * `display_header_text()` is false when the theme does not support the header text, and when the text color is `blank`.
 * `get_background_color()` and `background_color()` return and print the saved value, or the default color of the theme support.

The tests restore the theme support and the options that they change.

I checked that no existing ticket or open pull request adds tests for these functions."	hmbashar
	54734	Allow get_file_path_from_theme filterable like get_theme_file_path		Themes		normal	normal	Awaiting Review	enhancement	new		2022-01-04T09:38:52Z	2023-10-30T16:36:40Z	"Hello,

I've noticed that `get_theme_file_path` is not used into `WP_Theme_JSON_Resolver` but `WP_Theme_JSON_Resolver::get_file_path_from_theme method`.

Since the function `get_theme_file_path` is filterable and to be consistent with it, I think this can be a good idea to add a filter to this method.
"	Rahe
	53406	Custom css		Themes		normal	normal	Awaiting Review	enhancement	new		2021-06-15T09:18:45Z	2021-06-15T13:06:15Z	"Hi, I am relatively new to WP development and am helping out on styling a couple sites. I see WP has a text box for adding in custom CSS. this isn't ideal as that css is then written into the page. Changing the theme css is risky as when the theme updates then all the changes are lost.

It would be great if there was a custom css file independent of the theme and added into the header after the theme and plugin css files. I am currently adding in these files manually however am not sure if the theme will overwrite them. It means requires gaining access to the server in order to create the css files which is not ideal.

Ideally It would be great to have 4 css files that form part of WP and are independent of the theme. 1 for the home page, 1 for pages, 1 for posts and one for all. That way it is easy to customise theme and plugin css for different parts of the site."	lupussolaris
	53351	Delete Theme Files in Database When Using Delete Option		Themes	5.7.2	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2021-06-07T14:38:28Z	2022-01-28T14:59:14Z	"Right now, when a user deletes a theme, the theme files still remain in the database. This can cause future security issues as well as slowdown a site in the future as the database of the website grows. 

This also makes it difficult for end-users to troubleshoot issues with a theme because it is impossible to install a brand new version of the theme without deleting multiple files the database.

When deleting plugins, the plugin data is automatically removed from the database if the plugin developers follow the plugin development standards. The same standard should be applicable to themes downloaded through the theme repository.

Users expect a theme to be fully deleted when using the delete option."	deborah86
	55756	Deletion of broken themes		Themes		normal	normal	Awaiting Review	enhancement	new		2022-05-18T07:27:00Z	2022-05-18T14:55:50Z	"When themes fail during installation, they severally appear on the theme installation page.    A user cannot mass delete these broken themes. They will need to be deleted one by one. 

If they had check boxes like posts, it would be quicker to delete many orall at once."	martiniwebb
	51518	Enhancement: Show list of previously active themes		Themes		normal	normal	Awaiting Review	enhancement	new		2020-10-14T03:28:05Z	2020-10-14T13:33:31Z	"When someone is trying out new themes - it is possible they would activate a number of them to see what they like. This can make it hard to go back to a previous theme if they don't remember the name specifically.

Would it be possible to somehow have a log of previously active themes - so user's could reactivate them?"	jordesign
	53899	Escaping strings and screenshot URL on Themes screen		Themes		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-08-09T08:40:49Z	2021-08-09T11:48:43Z	"
"	vishitshah
	41690	Fix missing assignment of page templates on theme switch		Themes		normal	normal	Future Release	enhancement	new		2017-08-21T17:32:54Z	2017-08-21T20:14:56Z	"Following up on #39692 and #39693, let's see if we can also save page template mapping when someone switches themes.

For example:
- Variations on ""homepage"" or ""front page""
- Variations on ""fullwidth"""	melchoyce
	43728	Implements site_enable_theme and site_disable_theme functions in WP_Theme class		Themes		normal	normal	Awaiting Review	enhancement	new	changes-requested	2018-04-10T08:21:34Z	2025-06-14T17:23:08Z	"In Multisite,

Themes can also be enabled per site, via the Edit Site > Themes area. They are stored in an allowedthemes option (see https://github.com/WordPress/wordpress-develop/blob/master/src/wp-includes/class-wp-theme.php#L1414 for more). When you set a theme for a site, you wouldn't expect it to suddenly work for every network - it only implies you want to have it for the one site.

I think we need to implement methods WP_Theme::site_enable_theme( $stylesheets, $site_id ) and WP_Theme::site_disable_theme( $stylesheets, $site_id ).

We need this enhancement in this ticket : #39318"	Mista-Flo
	49958	Improve paginator in general-template.php		Themes		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2020-04-20T10:21:34Z	2025-09-11T13:50:07Z	"I would like to add custom classes to the default paginator in the `general-template.php` file. For that I would suggest the following change:

{{{#!php
<?php
$page_links[] = sprintf(
	'<a class=""page-numbers %s"" href=""%s"">%s</a>',
	/** This filter is documented in wp-includes/general-template.php */
	esc_attr( apply_filters( 'paginate_classes' ) ),
	esc_url( apply_filters( 'paginate_links', $link ) ),
	$args['before_page_number'] . number_format_i18n( $n ) . $args['after_page_number']
);
}}}

That needs to be applied to every `page-numbers` element and would be very helpful."	lolitsjohnnyboy
	37825	Introduce functions to check whether there are multiple taxonomy terms		Themes		normal	normal	Future Release	enhancement	new	needs-unit-tests	2016-08-25T12:33:10Z	2018-06-14T18:04:43Z	"We've had a function `is_multi_author()` since version 3.2.0, which is regularly used by themes to check if a site has multiple authors with published posts.

A similar function is often needed by themes for taxonomies (mostly categories), for example the latest default themes have contained a function `*_categorized_blog()`. I think this functionality is essential for several themes, and we can make their lifes easier by providing these functions to them (especially since several theme authors don't really wanna mess with hooks for invalidating transients).

Of course, for backward compatibility a theme should check whether that function exists, and if not, it still needs to take care of things by itself. However, I think this will still be a good solution long-term to include this functionality in WordPress Core."	flixos90
	51479	Notifications in case of a broken theme		Themes		normal	normal	Awaiting Review	enhancement	new		2020-10-08T10:13:10Z	2021-01-22T11:49:37Z	"1. If the current theme is broken or does not exist, WordPress doesn’t apply automatically another theme until someone will visit “Themes” in admin and are not sending the notification to Administration Email Address either. So, the site owner could have no idea that something is wrong.

2. If someone is visiting the Dashboard, there is no information that something is wrong with the theme, even if the frontend isn’t working normally already.

3. The message “The active theme is broken. Reverting to the default theme.” is marked green. Possibly it needs to be splitted into two messages - error and warning.

4. If there is an Error “Stylesheet is missing.”, the message “The active theme is broken. Reverting to the default theme.” is also present above the error, but actually is nothing happening (it’s good behaviour in comparison to what was previously when a site could have been working fine without style.css and was deactivating a theme after you visit Themes in the admin). https://yadi.sk/i/FtWLhEyBLx2qSQ So, the second message is misleading and needs to be removed in the case where the reverting isn't happening. 

"	oglekler
	56247	Page editor for the page assigned as Front Page does not indicate this status		Themes		normal	normal	Awaiting Review	enhancement	new		2022-07-19T00:42:55Z	2022-07-19T00:42:55Z	"This is an issue that has existed in WordPress prior to FSE, when a front page PHP template or widget based homepages were used in themes.

The issue appears more egregious however, now that FSE is intended to allow editing of all portions of the site.

If I have a static page set to the front page of the site, my expectation is that clicking ""Edit Page"" in the admin bar would take me to the page that displays that content. Instead, when a theme has a front page template, I am seeing content that will not display on the actual site frontend.

My suggestion is some form of notice to the user that they are not editing in the actual place that content is displayed. They could also be taken directly to the front page template of the ""Edit Site"" portion of the dashboard.

I imagine that there would be a variety of edge cases to work around here, as well as related issues such as opening the editor to the proper template, as suggested in #56246"	wolfpaw
	39239	Persist the video header state between requests		Themes	4.8	normal	normal	Future Release	enhancement	new	has-patch	2016-12-11T20:13:46Z	2025-10-31T23:38:22Z	"If a visitor pauses the video header, they most likely expect it to remain paused through the duration of their visit. Whether it's paused for accessibility reasons or they just find it distracting, it can be annoying to have it restart on refresh or when returning to the homepage. It can be especially troublesome when the video header is activated for every page on a site.

I've seen it mentioned in a few places, but it would be nice if the paused state was remembered between requests."	bradyvercher
	41204	Placement of wp_redirect() in template		Themes		normal	normal	Awaiting Review	enhancement	new		2017-06-29T13:15:03Z	2017-07-12T18:32:02Z	"It doesn't say on [https://developer.wordpress.org/reference/functions/wp_redirect/ | this page] where in template file should wp_redirect() function be called. If placed in wrong place, there could be created confusion and impression that function doesn't work.

So, it should be placed '''before''' get_header();

In case page is redirected only under certain condition, it would be something like:
{{{
/**
 * Redirect only if this condition is met
 */
if ( certain_condition ) {
	wp_redirect( $location );
	exit;
}
/**
 * Otherwise render the page
 */
get_header();
}}}


"	milana_cap
	50556	"Special characters in Theme Name in ""Add Themes"" page"		Themes		normal	trivial	Awaiting Review	enhancement	new	has-patch	2020-07-04T08:02:13Z	2020-07-07T04:31:50Z	"A lot of themes has special characters e.g. `&` in their name. It doesn't look good when those are being replaced in the ""Add Themes"" page with their Character Reference counterpart like `&amp;`.

[[Image(https://i.imgur.com/Weatfga.png)]]
 
This patch aims to fix the issue."	itowhid06
	54533	State more clearly that an active theme can't be deleted		Themes		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-11-29T16:18:19Z	2025-04-27T07:38:49Z	"A post in the forums https://wordpress.org/support/topic/theres-no-delete-button/ by @dmcohen pointed out a thing that should be better shown:

In wp-admnin/themes.php when a user with capability delete/install themes (i.e. usually an administrator) hits the ""Theme details"" button that is visible on hover and opens the theme details pop-up, they'll see the ""Delete theme"" link in the pop-up. But for the currently active theme (and its parent theme, where applicable) that link is ""missing"".

Suggestion: Instead of nothing, show a short message ""This theme is currently active and therefore cannot be deleted."""	tobifjellner
	41792	Suggested Enhancement to WordPress' Handling of Authors and Author URL's		Themes		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-09-04T11:36:02Z	2017-09-06T07:59:42Z	"Hi, everyone, my first post here, but I have some concerns.

*WordPress' Handling of Authors*
I feel it's not the right UX when, say on a single author blog, the url ""blog.com/author"" goes to 404.

I'd like for WordPress to programmatically direct/redirect a blog.com/author to the archive of this single author if single author. I mean, say I, Kabolobari, am an author on a single author blog and the url to my posts is blog.com/author/kabolobari. So, WordPress automatically creates that based on my name choice. 

Now, since WordPress can also tell a multi-author blog once there's more than one author, I'd like if WordPress then automatically builds the url for such as blog.com/authors/kabolobar, Kabolobari being one author on this blog. 

Then if a user/browser were to backspace the url, of course, their intention would be to see all authors at blog.com/authors, right? Thus, WordPress shouldn't send them to a 404. WordPress should intelligently default that to a list of all the authors on the multi-author blog.

Is my explanation clear?

Then, WordPress can, as with other archives, leave a way for admins or theme developers to customize how they'd like this `authors.php`, as an example, template to be.

To summarize,

Single Author Blogs = blog.com/author/single-author
Then, blog.com/author = This Single Author and a list of their posts

Multi Author Blogs = blog.com/authors/multi-author
Then, blog.com/authors = These authors list and a list of their posts

Then leave all of these to be customizable by theme devs.

I'm having a hard time hacking my way around this because of this feature which I see is unavailable. If I'm wrong and there's actually a straightforward way about this, kindly direct me.

*As an Example*
Kindly, study the website kincommunity.com. Because what I’m building is very similar to that. Now, you should notice that when you hit Creators on the navigation at this site, Kin Community’s developers chose a custom post type route to display their Creators.

Thus, Creators takes you to kincommunity.com/our-community/. Then a single creator is at kincommunity.com/creators/rosanna-pansino/, for example. But when you try kincommunity.com/creators/, as a user you expect to see a list of all creators, right? But you get a 404.

I figure if WordPress allowed for a native way to flex around this, so that say you added a role of Creator (coding it yourself or with a plugin such as Members by Justin Tadblock) and you give this new role about same level of cap as Author.

Then one wouldn’t need to use CPT for this purpose and then the logic as I’ve explained above would take hold automatically with allowance for customization to look like the theme’s overall feel.

Could we examine these concerns? Thanks."	kbooshco
	55878	The Manage Themes Screen Needs to Indicate Clear User Actions		Themes		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2022-05-30T19:34:11Z	2022-05-31T23:13:04Z	"**What problem does this address?**

A new user might not understand the difference between uploading a theme and browsing the theme repository. To make it easier for new users to use WordPress, user actions should be clearer.

**What is your proposed solution?**

[[Image(the-problem_add-new-theme.png)]]

- The Add New isn't descriptive of the action the user should it. The text on the button should be changed to ""Browse WordPress Themes"".
- Manage Themes should be changed to My Themes to indicate to the user these are the themes they have installed on their website.
- A button should be added that allows the user to upload a theme. It should say ""Upload Theme"".
- The button that says ""Add New Theme"" should be changed to ""Browse WordPress Themes"" so the user understands the button is not for uploading WordPress themes but to browse themes.

Originally posted here: https://github.com/WordPress/gutenberg/issues/41244"	deborah86
	55823	The Theme Details Page Options Need to be Streamlined		Themes	6.0	normal	normal	Awaiting Review	enhancement	new		2022-05-25T11:41:59Z	2022-05-25T17:59:01Z	"What problem does this address?
It is difficult for new users to spot all the options available to manage a theme on the theme details page.

What is your proposed solution?
See the [https://core.trac.wordpress.org/attachment/ticket/55823/55823-proposal.png attached image].

Put all theme management options in a single location in the UI instead of having them multiple locations. This will help users locate the option they are looking for quicker. The suggested area of placement for the options is the blue area in the image.

Reference:
First proposed in [https://github.com/WordPress/gutenberg/issues/41247 Gutenberg] but suggested to move to Trac for Core consideration."	deborah86
	62224	The class class-wp-theme-json.php methods compute_theme_vars and to_ruleset need to be hardened		Themes	6.6.2	normal	normal	Awaiting Review	enhancement	new	has-patch	2024-10-15T04:25:04Z	2026-01-13T19:46:20Z	"I first reported the issue on HackerOne and was told this can be a public hardening ticket. (https://hackerone.com/bugs?subject=user&report_id=2623479)

The compute_theme_vars (https://core.trac.wordpress.org/browser/tags/6.6.2/src/wp-includes/class-wp-theme-json.php#L2208) and to_ruleset (https://core.trac.wordpress.org/browser/tags/6.6.2/src/wp-includes/class-wp-theme-json.php#L1900) need to be hardened and the theme.json, should be considered as user supplied content. Thus the before-mentioned methods need to adjust for that and use proper sanitization"	villu164
	39831	Theme Tag Translation Ready		Themes		normal	normal	Future Release	enhancement	new	has-patch	2017-02-10T09:25:09Z	2022-09-13T05:02:00Z	"As i read, All theme text strings are to be translatable. > https://make.wordpress.org/themes/handbook/review/required/#language

In that case, seems it is compulsory and there is not any use of 'translation-ready' theme tag. Because all themes on directory should be translation ready. if we apply filter with 'translation-ready' checkbox, it will return all themes."	rinkuyadav999
	49920	Theme directory uri on multisite website		Themes	5.2.5	normal	normal	Awaiting Review	enhancement	new		2020-04-16T13:15:21Z	2020-05-27T17:58:26Z	I've noticed that on a subsite in the multisite the url to files in the current theme directory all start with the url of the mainsite (blog 1). I would like to request that the function `get_template_directory_uri` updates the url to the current subsite. Since the same files are also accessible from the path that starts with the current subsite subdomain. 	ReHo20
	53523	Themes can't be bulk edited.		Themes		normal	normal	Awaiting Review	enhancement	new		2021-06-26T16:37:48Z	2022-06-06T13:29:53Z	"On the plugin screen, you have a nice list of every plugin with a handy checkbox to put them all on auto-update or delete them in bulk. 
This isn't possible in on the themes page while both of these things would be kind of handy. Especially for dev sites. "	NekoJonez
	63299	"WP_Theme: Add ""has_theme_json"" method"	wildworks	Themes		normal	normal	Awaiting Review	enhancement	assigned		2025-04-17T04:27:22Z	2025-05-05T01:46:09Z	"We plan to expose the `has_theme_json` field in the Theme Rest API in #63253. However, because the `wp_theme_has_theme_json()` function is based on the active theme, the `has_theme_json` field is not correct when fetching the theme collection with the following code, for example:

{{{
wp.data.select( 'core' ).getEntityRecords( 'root', 'theme', { per_page: -1, _fields: [ 'stylesheet', 'has_theme_json', 'is_block_theme' ] } );
}}}

To solve this, I think we need a `has_theme_json()` method, similar to the `block_theme()` method."	wildworks
	62191	`WP_Theme_JSON::get_blocks_metadata()`: Check registered styles only upon change		Themes		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-10-08T19:22:37Z	2024-11-06T16:47:30Z	"== Description ==
`WP_Theme_JSON::get_blocks_metadata()` is called frequently during page load. For example, my test site with the twentytwentyfour theme and WooCommerce installed calls it 121 times on a logged out homepage view.

The first time it runs, its computed data is stored on the static variable `$blocks_metadata`, allowing it to use a ""fast path"" for subsequent calls if no new blocks have been registered. However, each call to the ""fast path"" still checks for the possibility of new registered styles by looping over every possible block.

With a large number of registered blocks (e.g., 223 blocks with WooCommerce installed), the current implementation does a large number of unneeded checks for new styles on its ""fast path"".

By incrementing a counter inside the style registry whenever a style is registered or unregistered, then `get_blocks_metadata()` can know if it there is a need to process new styles or if it is already up to date.

== Current Behavior ==
- `get_blocks_metadata()` is called multiple times per request (e.g., 121 times on a sample homepage).
- Even in the ""fast path"", it loops through all registered blocks to check for style updates.
- With 223 registered blocks and 120 ""fast path"" calls, this results in 26,760 iterations (223 * 120) per page load.

== Proposed Changes ==
1. Add update tracking to `WP_Block_Styles_Registry`:
   - Introduce a `$style_update_count` property to track changes.
   - Implement a `get_style_update_count()` method to access this value.
   - Increment the count with each registration or unregistration of a block style.

2. Optimize the ""fast path"" in `get_blocks_metadata()`:
   - Check if there have been any style updates since the last call.
   - Only process style variations if changes have occurred.

== Performance Impact ==
Testing Method:
 * Environment: WordPress site using the Twenty Twenty-Four theme with WooCommerce active
 * Procedure: Visited the home page 20 times for each scenario
 * Measurement: Time spent in the `get_blocks_metadata()` function
 * Result: Median of the 20 measurements

Scenarios and Results:
1. Slow path:
   * Before: ~5.065 ms
   * After: ~5.075 ms
   * Change: Approximately 0.2% slower (negligible difference)

2. Fast path:
   * Before: ~1.975 ms
   * After: ~0.24 ms
   * Improvement: Approximately 87.8% faster

This optimization saves approximately 1.74 ms per page load in this scenario. The impact could be more significant for sites with multiple plugins that register a large number of blocks.

This is a part of a larger effort to find performance penalties that scale with the number of blocks registered. I think cumulatively, several fixes in this area could make a difference when running big plugins.

== Backwards Compatibility ==
This change should not affect backwards compatibility as it optimizes internal processing without changing the method's output or public API.

== Testing ==
1. Set up a WordPress site with the Twenty Twenty-Four theme and optionally, a plugin that registers a large number of blocks such as WooCommerce.
2. Measure the execution time of `get_blocks_metadata()` before and after applying the patch.
3. Verify that the functionality remains the same (e.g., all block styles are correctly applied).
4. Test with various combinations of plugins that register multiple blocks to ensure the optimization works as expected.
"	mreishus
	53108	`get_theme_file_uri()` fails with query params		Themes	5.7.1	normal	normal	Awaiting Review	enhancement	new		2021-04-29T01:18:08Z	2021-04-29T02:44:02Z	"`get_theme_file_uri()` fails to locate a file if it is supplied with any query params and incorrectly falls back to returning the parent theme's path to the file, including the supplied query params. This prevents the ability to use a bundler's versioning without adding complexity to registering scripts and styles. 

{{{#!php
<?php
get_theme_file_uri( '/js/script.js?id=41142aba6c0214da8ec1' );

// Expected output:
// 'https://domain.com/wp-content/themes/ChildTheme/js/script.js?id=41142aba6c0214da8ec1'

// Actual output:
// 'https://domain.com/wp-content/themes/ParentTheme/js/script.js?id=41142aba6c0214da8ec1'
}}}

`file_exists()` does not understand the query param when attempting to locate the file. One solution could be to use `parse_url()` to determine the file path used in the condition:


{{{#!php
<?php // https://core.trac.wordpress.org/browser/tags/5.7.1/src/wp-includes/link-template.php#L4374
...
    } elseif ( file_exists( get_stylesheet_directory() . '/' . parse_url($file)['path'] ) ) {
...
}}}"	zulaica
	36244	added a filter to allow the separator in the week date range to be changed	pbearne	Themes		normal	normal	Future Release	enhancement	assigned	needs-docs	2016-03-15T00:13:17Z	2020-06-23T19:37:09Z	added a new filter 'getarchives_week_separator' in wp_get_archives() to allow the separator used in the weekly archive text to changed	pbearne
	54523	inherited custom template hierarchy		Themes	5.8.2	normal	normal	Awaiting Review	enhancement	new		2021-11-26T23:32:17Z	2021-11-27T00:12:59Z	"hi,

i would to make a feature request on worpdress.

it would be a good idea to give us the possibility to create custom template hierarchy in worpdress.

example, i would to create a profile page who inherit author template hierachy.
the possibiltiy to build something like a class who extends the author class would be usefull…

better... the possibility to create custom template hierarchy with custom rules could be a good idea..."	grosfaignan
	51726	proposal: make specialized header name available inside header.php		Themes	5.5.2	normal	normal	Awaiting Review	enhancement	new		2020-11-07T15:23:26Z	2020-11-08T08:26:43Z	"You can call `get_header()` with an extra argument. For example: `get_header('wp-signup')`. This allows theme authors to create a specific header: `header-wp-signup.php`.

But it would be nice to also this name inside the regular `header.php` file, to allow for a small tweak instead of completely duplicating the header.php file.

My proposal is to modify this function in `wp-includes/general-template.php` line 27:

{{{#!php
<?php
function get_header( $name = null, $args = array() ) {
	/**
	 * Fires before the header template file is loaded.
	 *
	 * @since 2.1.0
	 * @since 2.8.0 The `$name` parameter was added.
	 * @since 5.5.0 The `$args` parameter was added.
	 *
	 * @param string|null $name Name of the specific header file to use. Null for the default header.
	 * @param array       $args Additional arguments passed to the header template.
	 */
	do_action( 'get_header', $name, $args );

	$templates = array();
	$name      = (string) $name;
	if ( '' !== $name ) {
		$templates[] = ""header-{$name}.php"";
	}

	$templates[] = 'header.php';

	if ( ! locate_template( $templates, true, true, $args ) ) {
		return false;
	}
}
}}}


We could call `locate_template` like this:

{{{#!php
<?php
locate_template( $templates, true, true, array_merge($args,[ '__name' => $name ]) )
}}}

Then, inside `header.php` it would be possible to access the header name like this:

`$header_name = $args['__name']`"	Jules Colle
	55879	Add the Ability to Allow/Disallow Auto-Update for Multiple Themes on the Theme Page		Themes	6.0	normal	normal	Awaiting Review	feature request	new		2022-05-30T20:31:23Z	2022-06-02T15:15:11Z	"What problem does this address?
Right now, a user has to click on each individual theme to allow auto-update. If the user has multiple themes installed, this can be tedious.

What is your proposed solution?
My proposed solution is to have the option to allow/disallow auto-update for multiple themes on the theme page.

See original issue here: https://github.com/WordPress/gutenberg/issues/41250
"	deborah86
	62847	Admin Themes as a 3rd level of theming		Themes		normal	minor	Awaiting Review	feature request	new		2025-01-23T14:08:21Z	2025-01-23T14:08:21Z	"Hi all,

I’m a long time user and developer on WordPress and so have a fairly good understanding of both the core and plugin environment.

What I’d like to suggest is a new menu under ‘Appearance’ called ‘Admin Themes’. What I’m recommending is actually a 3rd layer of theming i.e. Admin (Normal WP Admin) -> Admin (backend theme) -> Front end (Existing themes).

The purpose is to provide client site admin themes – It’s often the case that you develop a site for an organisation and they need specific menu options for settings in ‘their’ version of WordPress. They need to manage what’s relevant to them and quite often, there’s large elements of WordPress that are irrelevant.

The reason I’m suggesting a third layer of ‘theming’ is for regular developers and users of WordPress, the WordPress admin area is reassuringly familiar and, once known, easy to navigate. If you bespoke this layer (as is possible and plugins exist), this site becomes unfamiliar to navigate and administer.

The creation of an additional layer of theming allows for the theme access (e.g. What the logged in user sees) to be tied to the ACL (Roles and capabilities), without making applying those same ACL’s to the existing Admin menu structure as this can get really complicated.

How this happens (of if it happens), I leave open to discussion."	jonmojo
	43363	Custom URL for Header Video		Themes	4.9.4	normal	normal	Awaiting Review	feature request	new	dev-feedback	2018-02-20T04:52:11Z	2024-04-06T18:18:25Z	"Good Day

On the bundled theme Twenty Seventeen Version: 1.4.

You are only able to upload a video under the Appearance / Customize / Header Media section.

This results in video content being served from the Base URL.

i.e. 

<script type='text/javascript'>var _wpCustomHeaderSettings = {""mimeType"":""video\/mp4"",""posterUrl"":"""",""videoUrl"":""https:\/\/www.stratuscloud.co.za\/wp-content\/uploads\/2017\/06\/Flying.mp4"",""width"":""2000"",""height"":""1200"",""minWidth"":""900"",""minHeight"":""500"",""l10n"":{""pause"":""<span class=\""screen-reader-text\"">Pause background video<\/span><svg class=\""icon icon-pause\"" aria-hidden=\""true\"" role=\""img\""> <use href=\""#icon-pause\"" xlink:href=\""#icon-pause\""><\/use> <\/svg>"",""play"":""<span class=\""screen-reader-text\"">Play background video<\/span><svg class=\""icon icon-play\"" aria-hidden=\""true\"" role=\""img\""> <use href=\""#icon-play\"" xlink:href=\""#icon-play\""><\/use> <\/svg>"",""pauseSpeak"":""Video is paused."",""playSpeak"":""Video is playing.""}};</script>

Thus it does not currently seem possible to serve the video from a CDN.

https://cdn.stratuscloud.co.za/wp-content/uploads/2017/06/Flying.mp4

vs

https://www.stratuscloud.co.za/wp-content/uploads/2017/06/Flying.mp4

Is it possible to override this value on database or file level or would this require an additional feature to be added to the Theme?"	fbotha
	49241	Filter to add post types to custom page templates in get_post_templates()		Themes		normal	normal	Awaiting Review	feature request	new	has-patch	2020-01-20T11:50:13Z	2020-10-14T19:46:08Z	"By default custom page templates only apply to the {{{page}}} post type.

Theme developers can extend/override a custom page template's post type individually by adding
{{{
Template Post Type: page, post, custom-post-type
}}}
to the file's header.

Enhancement/feature:
Add a filter to enable a plugin/theme to extend page templates' post types without editing the template files.

For example:
{{{
add_filter( 'template_post_type_extend', 'page', array( 'post', 'custom-post-type' ) )
}}}
would extend all {{{page}}} templates to also be available on {{{post}}} and {{{custom-post-type}}} post types."	apedog
	59515	Multiple color palettes and font pairs		Themes	6.3.2	normal	normal	Awaiting Review	feature request	new	close	2023-10-02T13:14:07Z	2026-02-09T14:03:56Z	"I have some suggestions for block themes.

We can create a single color palette for a theme. When you want to change the color palette, a custom palette can be created.

So why don't themes have multiple predefined color palettes? Maybe you could say that style variations support this feature. Yes, partially. But style variations have many theme features; colors, fonts, spacing, etc. Users may only want to change the color palette. The theme's colors change with a single click. Users can add custom colors if they wish.

Themes can also have predefined font pairs. (Combination of two fonts)

Theme developers need to define keywords for color palettes and font pair to achieve both of these options. For example, the keywords ""primary"", ""secondary"", ""tertiary"", ""foreground"", ""background"" are reserved for color palettes. Or for font pairs ""primary font"", ""secondary font""...

This way users replace colors or font pairs with predefined ones."	arkenon
	41564	Search for hyphenated post templates for post types with underscores		Themes		normal	normal	Awaiting Review	feature request	new	needs-unit-tests	2017-08-04T17:16:29Z	2025-09-21T14:06:26Z	"Custom post type names adhere to the rules within sanitize_key() (lowercase alphanumeric characters, dashes, and underscores).

This means registering a post type `some_post_type` is perfectly fine. The archive and single templates would be be `archive-some_post_type.php` and `single-some_post_type.php`.

These file names do not adhere to the core standard for file names.

  Files should be named descriptively using lowercase letters. Hyphens should separate words.

Searching for `archive-some-post-type.php` in addition to `archive_some_post_type.php` would allow this standard to be followed better."	desrosj
	58542	Theme.json / Restricting general settings like font sizes on blocks generates a lot of duplication		Themes		normal	normal	Awaiting Review	feature request	new		2023-06-15T10:21:56Z	2023-06-15T10:21:56Z	"Hello.

In my theme.json file, let's say I declare 20 font sizes in my settings / typography / fontSizes section. As per the official schema, it is an array of objects with a size, slug, and name property. I've seen a project declaring 20 of those.

Then I would like to restrict core/paragraphs to use only 5 of them, and core/headings to use only three.

With the current theme.json implementation, I need to declare a settings / blocks / ""core/paragraph"" object, then copy / paste the 5 font sizes objects I allow to my user to use with paragraphs. 

The current problems I face are as follows : 
- It generates a lot of code duplication
- The two declarations are not linked together, which can be used as an advantage, but also seen as an inconvenient, especially when adjusting main settings, which would then not be updated in blocks.

Proposal : 
- Add a new attribute to the blocks settings, like ""restrict"", ""include"" or ""exclude"" which would be an array of slugs coming from the main settings declaration.
- It could work with color palettes, fontSizes, spaces, or any array that supports slugs.
- This way when declaring block specific settings, we could have less duplication, and a synchronization with main settings.

Example:
{{{#!json
{
    ""blocks"": {
        ""core/button"": {
            ""typography"": {
                ""fontSizesInclude"": [""sizeSlugA"",""sizeSlugB""]
            },
            ""color"": {
                ""paletteExclude"": [""colorSlugA"",""colorSlugB""]
            }
        }
    }
}
}}}

Thank you for your work and your time reading me.

Best Regards.

Jeremy."	jdmweb
	51528	When updating the theme from the dashboard, I want to change the theme folder name to the file name specified by Content-Disposition: attachment.		Themes	5.4.2	normal	normal	Awaiting Review	feature request	new		2020-10-15T07:38:37Z	2020-10-15T07:41:02Z	When updating the theme, the character string is also used as the file name after downloading at the end of the path of the download URL, but if the file name of Content-Disposition: attachment is specified, that file name should be used as the file name after downloading. ..	kusokamayarou
	63769	Pasting from MS Word can convert abbreviations to ordered lists		TinyMCE		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-07-30T20:25:11Z	2026-02-07T17:49:26Z	"Hi folks - long time bug in classic editor I keep forgetting about until it happens (every time). Rewrite bug with certain text strings when copy pasting from MS Word edited text.

Basically there is a funky thing when using classic editor, when copying clean text from MS Word (docx) file (by clean, I mean remove any oddball encoding like superscripts, double spaces, double line breaks, etc.) into the post editor...

and if the first paragraph starts with, oh say, a dateline of ST. LOUIS, Mo., July 31, 2025 --- blah.... the editor rewrites the ST. LOUIS as <ol><li>LOUIS, Mo. ...etc. ... </li></ol> where the entire first paragraph is wrapped in ol and the ST. is removed.

This happens with another string we use sometimes, which I think is also ST. -- basically 'ST.' being rewritten as an <ol></ol> wrapper, for no apparent reason.

Not world ending, but happens every time for us."	neotrope
	57884	[TinyMCE] class-wp-editor.php is emitting open_basedir restriction warning when using my own error handler		TinyMCE	3.9	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2023-03-08T10:42:02Z	2023-03-21T16:17:44Z	"My server has open basedir restrictions.

When editing a post on classical editor, on line 530, class-wp-editor checks for translations loaded for external TinyMCE 3.x plugins.

{{{
 if ( @is_file( $path . 'en_dlg.js' ) ) { ..
}}}
On standard case , ""@""supress the errors as it should.

But I have, as many users,  my own error handling for pushing error logs in external collector.
So ""supress errors"" @ seems to be non-effective; 
and my logs are full of these :

""is_file(): open_basedir restriction in effect. File(/en_dlg.js) is not within the allowed path(s): (..) /wp/wp-includes/class-wp-editor.php"",""error_line"":530

The correct way to check a potential outside of openbasedir restriction seems to be

{{{
 // Default error handler is required
    set_error_handler(null);

    // Clean last error info. You can do it using error_clean_last in PHP 7.
    @trigger_error('__clean_error_info');

    // Testing...
    @file_exists($path);

    // Restore previous error handler
    restore_error_handler();
}}}

as to why '$path' seems to be '/' ,thus checking file at server root,  I have no clue ..
"	arnolp
	65328	editor-expand.js DFW button remnant causes intermittent TinyMCE editor height miscalculation in WordPress 7.0	joedolson*	TinyMCE		normal	normal	Awaiting Review	defect (bug)	accepted	reporter-feedback	2026-05-22T21:12:16Z	2026-06-02T15:33:31Z	"Disclosure: This is an AI-assisted bug report. I've done my best to investigate its accuracy, but it's a bit out of my area of expertise. I used AI to help debug the problem that I noticed.


In WordPress 7.0, the Distraction Free Writing (DFW) button no longer appears in the TinyMCE toolbar, indicating the feature was removed or disabled. However,`wp-admin/js/editor-expand.js` still contains code that registers the DFW button with TinyMCE and immediately hides it during the editor `init` event:

{{{
editor.on( 'init', function() {
    if ( button.disabled() ) {
        button.hide();
    }
} );
}}}

This `button.hide()` call triggers a TinyMCE reflow/repaint cycle (via `theme.js`) at a moment when the new React-based admin UI introduced in 7.0 has not finished laying out. The result is an incorrect height being stamped onto `#mceu_31-body`, causing the TinyMCE editor area to render with a large empty gray space.
The bug is intermittent because it is a race condition between React finishing its layout and TinyMCE firing `init`. It reproduces most reliably on a hard refresh (`Shift+F5`).

Steps to reproduce:

- Install WordPress 7.0
- Use the Classic Editor (either via the Classic Editor plugin or `add_filter( 'use_block_editor_for_post', '__return_false' )`)
- Open any post for editing
- Hard refresh (`Shift+F5`) repeatedly until the bug appears

Expected result: TinyMCE editor renders at the correct height.
Actual result: `#mceu_31-body` receives an inflated inline height (e.g. 459.391px) while the inner `#content_ifr iframe` is a normal size, leaving a large gray gap.
Root cause: The DFW button registration and hide logic in `editor-expand.js` was not removed when DFW support was dropped in 7.0. Removing that block should resolve the issue.
Workaround: None confirmed beyond avoiding hard refreshes."	MadtownLems
	50191	Propose https prefix, not http for external links		TinyMCE		normal	normal	Future Release	enhancement	new	close	2020-05-17T10:28:11Z	2026-10-01T17:30:33Z	"In https://build.trac.wordpress.org/browser/trunk/wp-includes/class-wp-editor.php?marks=1269#L1269
The text says:
`The URL you entered seems to be an external link. Do you want to add the required http:// prefix?`

Might be better to propose to prefix `https://` as default."	casiepa
	22660	"Admin bar in multisite: mobile tap on ""My Sites"" dropdown in back-end doesn't work"		Toolbar	3.4.2	normal	normal	Future Release	defect (bug)	new		2012-11-30T20:40:17Z	2025-06-25T01:23:53Z	"Quick steps here to reproduce an issue where the ""My Sites"" dropdown (multisite networks) will drop down and show the ""Network Admin"" link and the list of your sites. But, clicking on a site (to expand and see ""Dashboard"", ""New Post"", etc.) does not happen. Tapping the blog name just closes the dropdown.

I'm not sure what's different but I can consistently reproduce this when in the admin back-end (but works OK on front-end admin bar when viewing a site):

From /wp-admin/ on a mobile device (tested on iOS 6, iPhone 5, iPad) with a multisite network:

1. Tap ""My Sites"" in admin bar
2. See ""Network Admin"" and list of sites below
3. Tap one one of the site names

Expected: Site name expands to show ""Dashboard"", ""New Post"", etc. (same behavior as front-end when viewing site). Screenshot: http://d.pr/i/reOi

Actual: Tapping site name simply closes the ""My Sites"" dropdown, does not browse anywhere nor expand menu"	devinreams
	66645	Command palette shortcut in the admin bar displays in reverse order on RTL sites		Toolbar		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-11-10T14:27:49Z	2026-11-10T14:28:38Z	"On a site in a right-to-left language, such as Arabic or Hebrew, the command palette button in the admin bar shows its keyboard shortcut in reverse order on macOS: `K⌘` instead of `⌘K`. The button is on every wp-admin page.

== Steps to reproduce ==

 1. Go to Settings > General and set the site language to العربية (Arabic).
 2. Open any wp-admin page.
 3. Look at the command palette button next to the search icon in the admin bar. It shows `K⌘` instead of `⌘K`.

Tested on WordPress 7.2-beta4-65379 with Chromium on macOS.

== Cause ==

`wp_admin_bar_command_palette_menu()`, added in [61912], outputs the shortcut in a `<kbd>` that inherits the page's right-to-left direction. The `⌘` symbol has no direction of its own, so the browser places it after the `K`. On Windows and Linux the label is `Ctrl+K`. It is made of Latin letters, so it already shows left to right on the same page. The same shortcut therefore shows in different orders depending on the operating system, which suggests the reversal is accidental, not an intended right-to-left convention.

== Proposed fix ==

Add `dir=""ltr""` to the `<kbd>`. This keeps the shortcut's order and doesn't change anything around it. A CSS fix would need `/* rtl:ignore */`, because rtlcss flips `direction` declarations when it builds `admin-bar-rtl.css`. The CDN fallback script from [62322] only replaces the `<kbd>`'s text, so the attribute stays in place.

Gutenberg has the same bug in the editor and fixes it with the same approach: `KeyboardShortcutDisplay` in `@wordpress/ui` already uses `dir=""ltr""` ([https://github.com/WordPress/gutenberg/pull/80402 Gutenberg PR #80402]). The `Shortcut` component and the keyboard shortcuts modals are covered in [https://github.com/WordPress/gutenberg/issues/86605 Gutenberg issue #86605] and [https://github.com/WordPress/gutenberg/pull/86606 Gutenberg PR #86606].
"	shreyasikhar26
	52939	Frontend toolbar CSS conflict with some themes		Toolbar		normal	normal	Future Release	defect (bug)	new	dev-feedback	2021-03-30T13:33:34Z	2025-05-15T11:34:06Z	"There are themes available that add some global styling that could interfere with the WP toolbar on the frontend.
This could be fixed by adding some reset/basic CSS for the toolbar.

Example theme: Mesmerize https://wordpress.org/themes/mesmerize/

This theme adds various CSS in the toolbar that might affect some menu items.

For example `::before` CSS for all items that sets the display as a table. This could cause some indentation issues when adding elements like form types or icons to menu items.

Same with text color.
A simple `color: inherit` for the `#wpadminbar * {}` selector would fix any color overwrites for global elements like `label` etc."	keraweb
	55149	Secondary sites disappear from My Sites menu		Toolbar	5.9	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2022-02-11T18:41:22Z	2023-04-25T20:21:22Z	"If you create a new multisite, only **Network Admin** and the **Main Site** appear in the **My Sites** dropdown, the secondary sites do not appear. To change to another Site you need to go to **My Sites > Network Admin > Dashboard** and then select **All Sites** in the **Sites** menu.

In old installations it works correctly, it only happens in new installations.
"	jose64
	33574	Add ability to scroll through long toolbar menu items	morganestes	Toolbar	4.4	normal	normal	Awaiting Review	enhancement	assigned		2015-08-27T17:45:49Z	2022-06-24T11:55:06Z	"Related to #15317, when a toolbar menu has many items, it cuts off at the window height.

We should make long menus in the toolbar (like the New... menu) scrollable by default to enhance UX."	morganestes
	55795	Fix the WordPress Status Bar to Make Actions Clearer to the User		Toolbar	3.1	normal	normal	Awaiting Review	enhancement	new		2022-05-23T16:32:38Z	2022-05-26T00:20:23Z	"==== What problem does this address?

New users might not understand what the buttons mean on the status bar because they are unclear. The buttons should be labelled properly to make them easier to understand.

==== What is your proposed solution?

[[Image(ticket:55795:169851851-647601cc-56b3-43a5-bbff-ae100ac042d4.png)]]

* Next to the Dashboard icon, the menu should be removed and it should just say Dashboard
* The website name should be moved in front of the dashboard icon not behind it
* To keep consistency, the word ""Comments"" should be placed behind the picture of a speech bubble instead of just the number. This will also make it clearer to the user that clicking will take the user to the Comments section.

''originally reported on [https://github.com/WordPress/gutenberg/issues/41243 GB41243]''"	deborah86
	55911	Slow query because Admin Bar loads all options on all user's sites		Toolbar	3.1	normal	normal	Awaiting Review	enhancement	reopened		2022-06-03T17:22:21Z	2022-06-30T18:06:13Z	"==== Problem

The Admin Bar displays a list of sites that the user has a role on. To get that data, it calls `get_blogs_of_user()` when it initializes.

That's not a big deal on a single site, because everything is already cached in memory. On Multisite, though, it can result in looping through all of the sites that a user has a role on, and calling `switch_to_blog()`. That calls `wp_load_alloptions()` on each site, which can be a slow database request.

The issue gets worse the more sites the user has a role on, and the more data stored in the `wp_options` table of those sites.

It looks like this dates back to the Admin Bar's creation in r15671.

{{{
Call Stack
#	Time	Memory	Function	Location
1	0.0001	362896	{main}( )	.../index.php:0
2	0.0001	363232	require( '/wp-blog-header.php )	.../index.php:17
3	1.8896	17408184	require_once( '/wp-includes/template-loader.php )	.../wp-blog-header.php:19
4	1.8896	17408184	do_action( $hook_name = 'template_redirect' )	.../template-loader.php:13
5	1.8896	17408560	WP_Hook->do_action( $args = [0 => ''] )	.../plugin.php:476
6	1.8896	17408560	WP_Hook->apply_filters( $value = '', $args = [0 => ''] )	.../class-wp-hook.php:331
7	1.8896	17409720	_wp_admin_bar_init( '' )	.../class-wp-hook.php:307
8	1.8897	17409864	WP_Admin_Bar->initialize( )	.../admin-bar.php:49
9	1.8897	17409904	get_blogs_of_user( $user_id = 33690, $all = ??? )	.../class-wp-admin-bar.php:47
10	2.3312	15098272	WP_Site->__get( $key = 'blogname' )	.../user.php:994
11	2.3312	15098272	WP_Site->get_details( )	.../class-wp-site.php:237
12	2.3312	15098272	switch_to_blog( $new_blog_id = '206', $deprecated = ??? )	.../class-wp-site.php:323
13	2.3313	15098216	do_action( $hook_name = 'switch_blog', ...$arg = variadic('206', 1366, 'switch') )	.../ms-blogs.php:563
14	2.3313	15098592	WP_Hook->do_action( $args = [0 => '206', 1 => 1366, 2 => 'switch'] )	.../plugin.php:476
15	2.3313	15098592	WP_Hook->apply_filters( $value = '', $args = [0 => '206', 1 => 1366, 2 => 'switch'] )	.../class-wp-hook.php:331
16	2.3313	15098968	wp_switch_roles_and_user( $new_site_id = '206', $old_site_id = 1366 )	.../class-wp-hook.php:309
17	2.3313	15098968	WP_Roles->for_site( $site_id = '206' )	.../ms-blogs.php:659
18	2.3313	15098968	WP_Roles->get_roles_data( )	.../class-wp-roles.php:328
19	2.3314	15098968	get_option( $option = 'wc_206_user_roles', $default = [] )	.../class-wp-roles.php:370
20	2.3314	15098968	wp_load_alloptions( $force_cache = ??? )	.../option.php:167
}}}


==== Potential Solution

At first glance, it seems like `wp_admin_bar_my_sites_menu()` is the only caller (in Core), and that it only needs a few pieces of data (site name, url, etc). Those could maybe be cached in a transient rather than doing a `switch_to_blog()` loop on every request.

There's also some duplicated functionality between `WP_Admin_Bar` and `wp_admin_bar_my_sites_menu()`, where the latter does a 2nd `switch_to_blog()` loop over those same sites. That would need to be cached too to avoid the same problem.

It may be better to refactor them so that the class isn't doing anything on init, and instead waits for a caller to request the data, and then it provides all the data the caller needs, to avoid the caller having to do its own loop."	iandunn
	26940	Toolbar Search: Drop down instead of expanding		Toolbar	3.8	normal	normal	Future Release	enhancement	new		2014-01-26T01:10:45Z	2021-06-09T15:30:41Z	"Stop sliding the entire menu bar contents needlessly, when it would be simpler (and possibly better for accessibility -- less needless movement on the screen) to just drop down a field the way the search field works in twentyfourteen.

This also makes the search more usable on a cluttered adminbar that's already prone to wrapping onto a second line.

Patch is not intended as the final version -- final version would use admin-bar.js to attach the onfocus and onfocusout events -- this is just intended as a proof of concept for UX testing."	georgestephanis
	66491	Toolbar: Improve unit test coverage for admin-bar.php		Toolbar		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-05T17:45:06Z	2026-11-06T15:58:22Z	"`src/wp-includes/admin-bar.php` contains most of the functions that build and render the Toolbar (Admin Bar), but only a small part of it is covered by the PHPUnit suite today. The existing tests live in `tests/phpunit/tests/adminbar.php`.

A search of `tests/phpunit/tests` shows that the following functions are currently covered:

* `_wp_admin_bar_init()`
* `wp_admin_bar_wp_menu()`
* `wp_admin_bar_customize_menu()`
* `wp_admin_bar_new_content_menu()`
* `show_admin_bar()`
* `is_admin_bar_showing()`

The following functions have no direct test references:

* `wp_admin_bar_render()`
* `wp_admin_bar_sidebar_toggle()`
* `wp_admin_bar_my_account_item()`
* `wp_admin_bar_my_account_menu()`
* `wp_admin_bar_site_menu()`
* `wp_admin_bar_edit_site_menu()`
* `wp_admin_bar_my_sites_menu()`
* `wp_admin_bar_shortlink_menu()`
* `wp_admin_bar_edit_menu()`
* `wp_admin_bar_comments_menu()`
* `wp_admin_bar_appearance_menu()`
* `wp_admin_bar_updates_menu()`
* `wp_admin_bar_search_menu()`
* `wp_admin_bar_recovery_mode_menu()`
* `wp_admin_bar_add_secondary_groups()`
* `wp_enqueue_admin_bar_header_styles()`
* `wp_enqueue_admin_bar_bump_styles()`
* `_get_admin_bar_pref()`

Adding tests for these functions will make future changes to the Toolbar safer to review, and will help catch regressions around capability checks, multisite behavior, and the output/escaping of menu items.

'''Proposed scope'''

Add tests (new methods in `tests/phpunit/tests/adminbar.php`, or a new test class where it makes more sense) that verify, for example:

* Nodes added by each `wp_admin_bar_*_menu()` callback: the expected node IDs, parent, title, and href.
* Capability handling: the nodes shown (or not shown) for different roles such as administrator, editor, subscriber and logged-out users.
* Context handling: the front end vs. the admin screens (e.g. the edit/view links in `wp_admin_bar_edit_menu()`, `wp_admin_bar_appearance_menu()`, `wp_admin_bar_customize_menu()`).
* Multisite: `wp_admin_bar_my_sites_menu()` and `wp_admin_bar_site_menu()` for users with one site, several sites, and super admins.
* `wp_admin_bar_updates_menu()` and `wp_admin_bar_comments_menu()`: the counts and the resulting title/label.
* `wp_admin_bar_search_menu()`: the form output and its escaping.
* `wp_admin_bar_recovery_mode_menu()`: shown only while recovery mode is active.
* `wp_admin_bar_render()`: the `wp_before_admin_bar_render` / `wp_after_admin_bar_render` actions and the HTML output.
* `wp_enqueue_admin_bar_header_styles()` and `wp_enqueue_admin_bar_bump_styles()`: the inline styles that are added.
* `_get_admin_bar_pref()`: the user option, default value and `get_user_option_*` filter handling.

This ticket is only about test coverage. No change in behavior is expected, and if a test uncovers a bug, it should be reported in a separate ticket.

The work can be split across several patches/PRs, each covering a group of related functions, so it is easy to review. Contributors are welcome to pick one group and mention it in a comment, to avoid overlapping work."	hmbashar
	55075	WordPress admin bar does not contain a link to the Customizer		Toolbar	4.3	low	minor	Awaiting Review	enhancement	new		2022-02-04T11:14:26Z	2022-02-08T16:28:01Z	"It would be nice to have a link to the Customizer in the WordPress admin bar. This will help quickly accessing that page.

This link is already visible on the frontend, but is absent in the admin."	justinahinon
	41288	wp admin bar WordPress about and updates icon can't show in Smartphone.		Toolbar	4.9	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-07-11T09:26:39Z	2024-02-29T20:42:30Z	WordPress admin side WordPress about and Updates can't show in smartphone it should be display none in Very narrow screens.that can be helpfully for smartphone user.	mp518
	53184	Toolbar Enhancements: turn off labels / disable plugins / auto-hiding		Toolbar		normal	normal	Awaiting Review	feature request	new	dev-feedback	2021-05-11T16:48:44Z	2021-07-14T00:10:19Z	"Something that can get pretty crowded quickly is the Toolbar. I have three suggestions for improving this:

- The option to turn on/off text labels next to the icons
- The option to disable / enable certain plugins to add things to the toolbar
- The option to enable / disable auto-hiding, where the toolbar hides until you move your mouse up (similar to what lots of people use with their Mac's dock)

I'd love to hear your thoughts."	tomdevisser
	59274	(Updates) update-core.php		Upgrade/Install	6.3.1	normal	normal	Awaiting Review	defect (bug)	new		2023-09-03T23:04:51Z	2023-09-03T23:16:15Z	"I am using WordPress 6.3.1. 
Theme: ColorMag Pro
URL: https://suncatcherstudio.com/

When I press on ""Updates"" rather than getting a graphical interface,
I am getting a list of textual links as shown in the attached
image.  Is this a bug?  This is the first time I noticed this problem.

https://billrosener.com/temp2/wordpress-updates-menu.png

Do you know how I can get back to a graphical version??

Thank you,
Bill
 "	rosener
	38936	Alter Table Always Expects a COLUMN; Crashes on a CONSTRAINT		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2016-11-24T17:25:13Z	2022-12-16T08:17:47Z	"Hello,

I'm attempting to activate a plugin I'm developing. The database creation scripts have CONSTRAINTs on them. When I attempt to reactivate, I'm getting this error:

{{{
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CONSTRAINT `mytable_mycol_foreign` FOREIGN KEY (`mycol' at line 1]
ALTER TABLE wp_mytable ADD COLUMN CONSTRAINT `mytable_mycol_foreign` FOREIGN KEY (`mycol`) REFERENCES `myothertable` (`myothercol`)
}}}

As you can see the SQL error lies in `ADD COLUMN CONSTRAINT`.

This is being generated in `wp-admin/includes/upgrade.php` around line 2392

{{{#!php
<?php
// For every remaining field specified for the table.
foreach ($cfields as $fieldname => $fielddef) {
	// Push a query line into $cqueries that adds the field to that table.
	$cqueries[] = ""ALTER TABLE {$table} ADD COLUMN $fielddef"";
	$for_update[$table.'.'.$fieldname] = 'Added column '.$table.'.'.$fieldname;
}
}}}

`ADD COLUMN` is hardcoded and is creating this SQL error. I googled for a solution but didn't find anything.

I've tried it with the constraints being part of the full table creation statement, and also as a stand alone statement, with the same results.
"	philsown
	37850	Auto-scroll to error notice on failed inline updates (plugins/themes)		Upgrade/Install	4.6	normal	normal	Future Release	defect (bug)	new		2016-08-27T16:14:49Z	2019-04-19T19:58:43Z	"See a small UX issue in WordPress 4.6 on shiny updates.

In this case I noticed it on the network themes page when one theme has an update and that theme is  below the fold (or view-port).

if the update has an error (of any kind), the response happens at the top of the page and a user would never know about the response message. I think in this case a forced scroll-to-top would be great or allow the shiny updates to show inline errors.
"	austyfrosty
	59890	Brower console output shows horizontal ellipsis as html entity		Upgrade/Install		normal	minor	Awaiting Review	defect (bug)	new	has-patch	2023-11-11T11:47:47Z	2026-10-03T16:24:27Z	"When installing a plugin etc. the browser console output shows horizontal ellipsis as html entity `&#8230;`
{{{
Downloading installation package from https://downloads.wordpress.org/plugin/classic-editor.1.6.3.zip&#8230;
The authenticity of classic-editor.1.6.3.zip could not be verified as no signature was found.
Unpacking the package&#8230;
}}}
Observed with Firefox and Chrome in Windows.

In addition translations of the horizontal ellipsis part are inconsistent.

German (with added space before horizontal ellipsis entity):

{{{
Herunterladen des Installationspakets von %s &#8230;
}}}

French (with actual UTF-8 0xE2 0x80 0xA6 char instead of html entity)

{{{
Téléchargement du paquet d’installation depuis %s…
}}}
"	Ov3rfly
	63283	Bug in version check returned values from api.wordpress.org		Upgrade/Install	6.7.2	normal	normal	Awaiting Review	defect (bug)	new		2025-04-15T11:29:13Z	2025-04-15T12:52:26Z	"There is a bug that is returned from api.wordpress.org/core/version-check/ called from wp-includes/update.php function wp_version_check.
Call there return JSON with:
`""packages"":{""full"":""https:\/\/downloads.wordpress.org\/release\/bg_BG\/wordpress-6.7.2.zip"",""no_content"":false,""new_bundled"":false,""partial"":false,""rollback"":false}`
But in code is:
`array_map( 'esc_url', $offer['packages'] ),`
Function esc_url use in others (like ltrim), that not allow to receive boolean value - must be string.
Returned value must be changed like:
`""packages"":{""full"":""https:\/\/downloads.wordpress.org\/release\/bg_BG\/wordpress-6.7.2.zip"",""no_content"":"""",""new_bundled"":"""",""partial"":"""",""rollback"":""""}`
Bug is in: api.wordpress.org"	Nosoft
	62699	Bulk Actions for Dependent Plugins Still Not Working Properly		Upgrade/Install	6.7.1	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2024-12-17T14:38:18Z	2024-12-17T14:38:18Z	"This is a follow-up to #22316.

Details here: https://core.trac.wordpress.org/ticket/22316#comment:335

Thank you!"	generosus
	53298	Checking if wp-config-sample.php file exists before checking if wp-config.php exists		Upgrade/Install	5.7.2	normal	trivial	Awaiting Review	defect (bug)	new	dev-feedback	2021-05-29T20:34:43Z	2026-08-24T08:52:25Z	"Currently in WordPress core, wp-admin/setup-config.php checks if wp-config-sample.php file exists before checking if wp-config.php exists. If the sample file exists, it then checks if the wp-config.php file exists, and if so, suggests deletion if necessary. For security, some WordPress users may delete the sample file, and restrict open_basedir for directory above that of the web root directory. Because of these two cases, the current order produces the follow error:

`PHP message: PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/example/wp-config-sample.php) is not within the allowed path(s): (/var/www/example/web:/var/www/example/private:/var/www/example/tmp:/tmp:...) in /var/www/example/web/wp-admin/setup-config.php on line 46`

If the check for existence of sample file could be moved after checking if wp-config.php exists, we could avoid this error and avoid checking if sample file exists if wp-config.php does and not checking both if they both do.

i.e. Moving the section commented `Support wp-config-sample.php one level up, for the develop repo.` to after the section commented `Check if wp-config.php exists above the root directory but is not part of another installation.` in `wp-admin/setup-config.php`"	machineitsvcs
	51167	Document the $update_results parameter in auto-update email filters		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-08-28T02:50:23Z	2022-12-15T23:24:00Z	"In a similar way to #51126, the structure of the `$update_results` parameter added to auto-update email filters in [48888] should be documented.

The filters in question:
* `auto_plugin_update_send_email`
* `auto_theme_update_send_email`"	SergeyBiryukov
	61861	Duplicate Update Responses in Theme Details Popup During Simultaneous Theme Updates		Upgrade/Install	6.6.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-08-12T13:04:04Z	2024-09-18T13:04:29Z	"When updating multiple themes simultaneously, if you open the theme details popup during the update, the update response is displayed multiple times. It shows the updated response for each theme. 

WordPress version 6.6.1

PHP Version : 8.1.17

Screenshot : 

https://prnt.sc/QZsE54OUT9z6
https://prnt.sc/S9A52jFZlA0d


I have added one view file. Please review and let me know if you need any help from my side

Video File: https://streamable.com/k3ulmf
Thanks "	deanoakley
	62570	Fatal error: call to undefined function wp_cache_get() (in option.php)		Upgrade/Install	6.7.1	normal	major	Awaiting Review	defect (bug)	new		2024-11-26T06:38:09Z	2024-11-27T11:50:14Z	"Hello,

I've read a lot of issues about the missing `wp_cache_get()` function in some cases. And I think I've found some clues.

First, the website must be in Maintenance mode. I've seen a lot of reports on StackOverflow or the like with « upgrading », which is done after enabling the maintenance mode. When this happens, `the wp-settings.php` will stop early, avoiding the cache to be loaded.

But plugins, notably the translation plugins, are loaded. And many rely on cache to be present.

One way to deal with this, as we are in maintenance, so degraded status, is to load the default cache functions.

Using WordPress 6.7.1 it should be around line 383 in `wp-includes/load.php`:
{{{#!php
<?php
        require_once ABSPATH . WPINC . '/functions.php';
        wp_load_translations_early();
}}}
Which may be changed as:
{{{#!php
<?php
        require_once ABSPATH . WPINC . '/functions.php';
        require_once ABSPATH . WPINC . '/cache.php';
        wp_load_translations_early();
}}}

This way the translation plugins called in `wp_load_translations_early()` would work as expected."	dugwood
	38084	Fix Inconsistency Theme and Plugin Update Process When No Package Found		Upgrade/Install	4.6.1	normal	minor	Awaiting Review	defect (bug)	new		2016-09-18T04:15:19Z	2021-06-01T17:31:24Z	"This patch is to solve inconsistency when update package is not available for theme and plugin.

""Updata package not available"" happen when there's an update data, but the package (ZIP URL) data is not available in that data. 

This is the notice that update is available but package/zip url to update not available (this is the correct way):

Plugin Screen ( wp-admin/plugins.php ):
https://dl.dropboxusercontent.com/u/32880842/etc6/plugin-update-package-na.png

Theme Modal in Theme Screen ( wp-admin/themes.php?theme={theme-name} ) :
https://dl.dropboxusercontent.com/u/32880842/etc6/theme-update-package-na-modal.png

However, WP still show update action link in:

1) Theme Screen ( themes.php ):
https://dl.dropboxusercontent.com/u/32880842/etc6/theme-update-package-na-link.png

Which result to this if user click it:
https://dl.dropboxusercontent.com/u/32880842/etc6/theme-update-package-na-error.png

2) Update Screen ( wp-admin/update-core.php ):
Still show the update checkboxes
https://dl.dropboxusercontent.com/u/32880842/etc6/update-code-checkbox-no-package.png

Which will result to this when user try to update it:

Plugin:
https://dl.dropboxusercontent.com/u/32880842/etc6/bulk-update-plugin-no-package-error.png

Theme:
https://dl.dropboxusercontent.com/u/32880842/etc6/bulk-update-theme-no-package-error.png

And i think that this error is unnecessary.


Effected Files:
1) wp-admin/themes.php
2) wp-admin/includes/theme.php
3) wp-admin/css/common.css (I didn't change minified version)
4) wp-admin/update-core.php

Patch Results:
1) Remove checkboxes of theme and plugin with no update package:
https://dl.dropboxusercontent.com/u/32880842/etc6/update-core-no-package-no-checkbox.png

2) Remove update link (actually button) on themes screen if package not available:
https://dl.dropboxusercontent.com/u/32880842/etc6/themes-screen-no-package-no-button.png"	turtlepod
	64527	Fix missing whitespace before troubleshooting link in fatal error handler		Upgrade/Install	5.3	normal	normal	Awaiting Review	defect (bug)	new		2026-01-18T16:45:41Z	2026-01-22T17:29:35Z	"The fatal error handler concatenates the troubleshooting link directly after
the previous sentence, resulting in output like:

""... support forums.Learn more about troubleshooting WordPress.""

The patch adds a whitespace before the link to ensure proper sentence
separation.

Affects: wp-includes/class-wp-fatal-error-handler.php
"	Presskopp
	49286	Function get_core_updates() in update-core.php can return an empty array		Upgrade/Install		normal	normal	Future Release	defect (bug)	new	has-patch	2020-01-24T15:37:36Z	2025-06-27T21:53:36Z	"The function **get_core_updates()** in ''update-core.php'' can return an empty array. 
The problem is mostly that in core_upgrade_preamble(), the array is immediately assumed to exist, e.g.: 
{{{#!php
$updates    = get_core_updates();
if ( ! isset( $updates[0]->response ) || 'latest' == $updates[0]->response ) {
}}}

The results show up in an error:

 Notice: Trying to get property 'locale' of non-object in /usr/share/wordpress/wp-admin/update-core.php on line 40
 Call Stack
 #	Time	Memory	Function	Location
 1	0.0027	404456	{main}( )	.../update-core.php:0
 2	0.1087	2873240	core_upgrade_preamble( )	.../update-core.php:695
 3	0.1117	2966944	list_core_update( )	.../update-core.php:230

I believe the assumption that **get_core_updates()** returns a non-empty array is made in other core files as well. 

A check an empty variable seems useful and non-intrusive, since this is an update check and not a critical function.

''**Conditions:** WordPress 5.2.2, Ubunutu 19, apache, mysql packaged install with multi-site active, with the wp-content and wp-config-*.php files located in outside directories.''"	citizenrepresentative
	60694	INDEX command denied to user 'wordpress'@'localhost' for table 'wp_trp_dictionary_bg_bg_en_us'		Upgrade/Install	6.4.3	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2024-03-05T15:14:32Z	2024-03-05T15:14:32Z	"Fresh install of Version 6.4.3. The only active plugin is TranslatePress - Multilingual Version 2.7.2 (Akismet and Hello Dolly are installed but not active).

Loggin in as admin, the following error is displayed: 
INDEX command denied to user 'wordpress'@'localhost' for table 'wp_trp_dictionary_bg_bg_en_us'.

phpMyAdmin shows that the wordpress user does not have the 'INDEX' privilege.

Is there a reason why the INDEX privilege not be enabled for the wordpress database user?"	4x4ever
	59403	Inconsistent version numbering		Upgrade/Install		normal	minor	Awaiting Review	defect (bug)	new		2023-09-20T07:19:32Z	2023-09-26T16:03:07Z	"WP releases versions with a mix of Major/Minor and Major/Minor/Release, which causes issues when using version_compare with a consistent annotation.

e.g.
WP 6.3
WP 6.3.1

If you use `version_compare( $wp_version, '6.3.0', '<' )` it will be unexpectedly true-ish for WP 6.3, since 6.3.0 is newer than 6.3 in PHP versioning.

Versioning should be made consistent with Major/Minor/Release not only for WP core from the next release, but ideally also a requirement for all submitted plugins, to avoid unexpected behavior due to inconsistent versioning."	kkmuffme
	56236	Multisite 6.0.1: Upgrade network stops if it can’t resolve a particular site		Upgrade/Install	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-07-17T05:12:40Z	2022-07-17T15:13:14Z	"In upgrading to 6.0.1 from 5.4.2, the initial part of the upgrade proceeds, so I am assuming the upgrade network portion is being directed by 6.0.1 code. 

First, this step, the Upgrade Network, is not obvious and not automatic. If it is skipped by accident, the user could end up with a partially upgraded site and not know it. 

Second, Upgrade Network proceeds in reverse alphabetical order across all the sites in the multisite environment. If it comes to a site whose name doesn’t resolve for whatever reason, it simply stops the upgrade process. I had to manually remove these unused sites and load the page again to make the Upgrade Network option reappear and then rerun it. 

Both of these bugs should be fixed. The upgrade in multisite should be an atomic operation. It either proceeds 100% or not at all. Second, it shouldn’t be checking whether a given site is online or not. Who cares?"	mauricev2
	40326	One Click Install Problems with WordPress 4.7.3		Upgrade/Install	4.7.3	normal	normal	Awaiting Review	defect (bug)	new	close	2017-03-31T16:34:41Z	2025-10-20T10:13:34Z	"I've been having a bizarre issue with One Click Installs for WordPress now that they've upgraded to version 4.7.3

I follow all the usual instructions (set username, password, email, database options, etc) in the same way that works for every previous time that I've used a One Click Install.

But this time, when I go to the site. I find I can go to the /wp-admin/ folders, and access all of the Admin panel features. Changes are being saved to the database. Updating Permalinks modifies .htaccess correctly. Everything seems fine until I try to go to the site. It immediately redirects me to an error page associated with the Hosting service.

The exact same error has been reproducible for me at GoDaddy, BlueHost, and MediaTemple, so I believe the error is somewhere in the WordPress version.

I have found a lengthly fix to the problem, but this shouldn't be a problem in the first place.

Upload and replace files from WordPress version 4.7.2
Refresh an Admin page.
Upload and replace files from Wordpress version 4.2.2
Refresh an Admin page.
Site will require a database update, click button to initiate it.
Once site is up, click ""upgrade to 4.7.3""

After following all these steps, the site works again. I've tried omitting a step or switching up the order, but it seems only by following these steps in this order is my problem fixed.

What is going on?"	okomikeruko
	64472	"PHP Warning: ""continue"" targeting switch in wp-admin/includes/upgrade.php line 3073"		Upgrade/Install	6.9	normal	normal	Awaiting Review	defect (bug)	new	close	2026-01-02T14:37:57Z	2026-01-02T21:41:53Z	"WordPress 6.9 triggers a PHP warning when running on PHP 7.3+ due to incorrect usage of `continue` statement within a `switch` block that is nested inside a `foreach` loop.
## Environment
- **WordPress Version:** 6.9
- **PHP Version:** 8.4.7 (also affects PHP 7.3+)
- **File:** `wp-admin/includes/upgrade.php`
- **Line:** 3073

## Error Message

{{{
PHP Warning: ""continue"" targeting switch is equivalent to ""break"". 
Did you mean to use ""continue 2""? in /wp-admin/includes/upgrade.php on line 3073
}}}


## Stack Trace

{{{
PHP Stack trace:
PHP   1. {main}() /wp-admin/tools.php:0
PHP   2. require_once() /wp-admin/tools.php:40
PHP   3. require_once() /wp-admin/admin.php:35
PHP   4. require_once() /wp-load.php:50
PHP   5. require_once() /wp-config.php:107
PHP   6. do_action($hook_name = 'init') /wp-settings.php:742
PHP   7. WP_Hook->do_action($args = [0 => '']) /wp-includes/plugin.php:522
PHP   8. WP_Hook->apply_filters($value = '', $args = [0 => '']) /wp-includes/class-wp-hook.php:365
}}}


## Root Cause
In `wp-admin/includes/upgrade.php`, starting at line 3018, there is a `foreach` loop that contains a `switch` statement (line 3028). At line 3073, a `continue` statement is used within the `switch` block.

### Current Code Structure (lines 3018-3074):

{{{
php
foreach ( $flds as $fld ) {
    // ... code ...
    
    switch ( $fieldname_lowercased ) {
        case '':
        case 'primary':
        case 'index':
        case 'fulltext':
        case 'unique':
        case 'key':
        case 'spatial':
            $validfield = false;
            
            // ... regex matching code ...
            
            // Skip if regex didn't match (malformed KEY definition).
            if ( empty( $index_matches['index_type'] ) ) {
                continue;  // LINE 3073 - PROBLEMATIC
            }
            
            // ... more code ...
            
            break;  // LINE 3133
    }
    
    // ... code ...
}
}}}

## Problem Explanation
Since PHP 7.3, using `continue` inside a `switch` statement is treated as equivalent to `break` (it only exits the switch, not the loop). This behavior change was introduced to prevent bugs and improve code clarity.

The intent at line 3073 appears to be to skip to the next iteration of the `foreach` loop, not just exit the `switch` statement. Therefore, `continue 2` should be used instead.
"	phuochoit
	62950	PHP deprecation warning in /wp-admin/includes/class-automatic-upgrader-skin.php		Upgrade/Install	6.7.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-02-12T11:47:56Z	2026-05-02T13:06:28Z	"The following warnings are being triggered in the above file when the WordPress version auto-updates.

On line 87:

{{{
str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated
}}}

On line 93:

{{{
trim(): Passing null to parameter #1 ($string) of type string is deprecated
}}}

The PHP version is 8.2.
"	nexbridge
	59112	Plugin Dependencies design feedback		Upgrade/Install		normal	normal	Future Release	defect (bug)	new		2023-08-15T17:25:42Z	2023-11-03T17:51:13Z	"As discussed by [https://wordpress.slack.com/archives/CULBN711P/p1691359435384479 @azaozz in Slack] there is some outstanding discussion regarding the final thoughts on design for the Plugin Dependencies feature, #22316 and [https://github.com/WordPress/wordpress-develop/pull/3032 PR 3032].

There are still some outstanding issues on re-engineering the More details modal that will be discussed in a separate ticket.

This ticket was created to discuss the further design elements that may be needed for this feature. I do not believe that it is a block to the feature being committed and I believe that is also the opinion of @azaozz and @costdev."	afragen
	65350	Possible duplicate update event firing during wp_maybe_auto_update		Upgrade/Install	7.0	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2026-05-26T14:22:13Z	2026-06-06T03:27:02Z	"Manual updates and WP-CLI updates behave normally.

However, when updates are triggered through wp_maybe_auto_update, update events appear to fire multiple times for the same update process.

Observed behavior:

* Automatic update process triggers multiple update events within seconds
* Does not reproduce with manual updates
* Does not reproduce with WP-CLI updates

Environment:

* WordPress 7.0
* PHP 8.3.x"	r3098
	63916	Reinstall page advises users to delete their previous database		Upgrade/Install		normal	minor	Awaiting Review	defect (bug)	new	has-patch	2025-09-03T02:51:28Z	2025-09-04T11:34:26Z	It's not good advice because users who understand the consequences of deleting their database are more likely to have already taken a backup and dropped the tables before attempting a reinstall. It is safer, faster, and easier, to instead ask the user to change their table prefix, leaving the data from their previous site untouched.	lev0
	63906	Review and improve reliability of language pack upgrades		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new		2025-09-01T13:06:23Z	2025-12-01T20:50:43Z	"In a [https://github.com/woocommerce/woocommerce/issues/60438 WooCommerce GitHub issue] we were investigating user reports about missing translations after upgrading the WooCommerce plugin to a new version. And we tracked it down to unreliability of language pack upgrades for the plugin.

When you upgrade WooCommerce from version 10.0.4 to 10.1.0, the new version 10.1.0 is not fully compatible with the language pack for 10.0.4. Some translations will be missing. Even if they are not new: for client-side JSON translation files, a translation can move from one JSON file to another, and then `load_script_textdomain` will fail to load the matching JSON file for a given JS script if the language pack is not up to date.

A plugin upgrade (at least manual one in WP Admin) should trigger also language pack upgrade (it's the `LanguagePackUpgrader::async_upgrade` method hooked to `upgrader_process_complete`) but apparently failed language pack upgrade doesn't affect the result of the plugin upgrade. It's reported as success even if languages failed to update.

We've seen cases where after a successful plugin upgrade the language pack is not updated at all (there are only old files) and the site is therefore in a broken state (wrong language in parts of frontend).

We've also seen a case where `wp-content/languages/plugins/woocommerce` contained files from both old and new language packs. That doesn't break the site, but it's still something that shouldn't happen: the language pack upgrader is supposed to clear the destination directory before moving the new files there. This is another sign that something is unreliable.

Looking at the code confirms that errors from `LanguagePackUpgrader` are generally ignored. Wherever we call the upgrader's `upgrade_bulk` method, we ignore the return value:
- in `update-core.php` handling the `do-translation-upgrade` form action
- in the `async_upgrade` method hooked to be done after a plugin upgrade
- in the REST handler for `POST /wp/v2/plugins` after a plugin install/upgrade

Compared to that, when calling `upgrade_bulk` on a `Plugin_Upgrader` or `Theme_Upgrader` the results are handled and reported.


"	jsnajdr
	61790	Rewrite text about using child themes		Upgrade/Install	3.0	normal	normal	Future Release	defect (bug)	new	dev-feedback	2024-07-30T14:55:39Z	2024-10-21T07:55:47Z	"Proposition:
Rewrite:
Please Note: Any customizations you have made to theme files will be lost. Please consider using child themes for modifications.

To:
Please Note: Any customizations you have made to theme files will be lost. It is best practice to use child themes for your modifications.
"	ramon fincken
	51844	Two different automatic update emails are sent at the same time		Upgrade/Install		normal	minor	Awaiting Review	defect (bug)	new		2020-11-22T04:58:06Z	2020-11-27T18:07:50Z	"Subject 1.
> Some plugins were automatically updated
Subject 2.
> Background Update Finished

Both mentioning the same plugin(s)."	knutsp
	56505	Un-necessary Language Files are Installed		Upgrade/Install	6.0.2	normal	normal	Awaiting Review	defect (bug)	new		2022-09-03T13:29:56Z	2023-09-01T09:54:17Z	"When your WordPress installation is set to a language other than ""English (United States)"", each time a core update is installed (or re-installed), several language files are added to `/wp-content/languages/` whether they are required or not ...


{{{
/wp-content/languages/plugins/akismet-en GB.mo
/wp-content/languages/plugins/akismet-en GB.po
/wp-content/languages/themes/twentvtwenty-enGB.mo
/wp-content/languages/themes/twentytwenty-enGB.po
/wp-content/languages/themes/twentvtwentvone-enGB.mo
/wp-content/languages/themes/twentytwentyone-enGB.po
/wp-content/languages/themes/twentytwentytwo-enGB.mo
/wp-content/languages/themes/twentytwentytwo-enGB.po
}}}


I believe that these files should **only** be installed if the relevant plugin or theme is installed.

Oliver"	domainsupport
	50511	Update is not always shown live		Upgrade/Install	5.4.2	normal	normal	Awaiting Review	defect (bug)	new		2020-06-29T16:18:59Z	2023-03-12T21:53:50Z	"Hello,

I have several WordPress websites running. It always strikes me when I import updates that the update process is not always displayed. The page just stays gray at that moment. At the end, when everything is ready, the actual content is shown, which is otherwise always displayed live.

Why is that?

It's not just one side, sometimes all, sometimes one, then sometimes another, I don't see any system behind it. The updates work wonderfully, but this process is not always 100% the same. Does someone know the behavior?
I think it would be good if the page shows where WordPress is located step by step, because sometimes I think the system hangs, which is not the case.

Here is an example from just now, the page was gray for almost 20 seconds (1st screenshot) and then everything came with one swing (2nd screenshot).

Screenshot 1: https://ibb.co/2g8NThd
Screenshot 2: https://ibb.co/GcCWB9B

The browser doesn't seem to matter, I have already observed this with both the new Edge and Firefox.

Maybe someone has an idea 🙂
Thank you!


Translated from https://de.wordpress.org/support/topic/updatevorgang-wird-nicht-immer-angezeigt/"	vincenz17
	58567	Updates inconsistently missing from Updates page and no update count bubbles in admin menu		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new		2023-06-18T00:50:49Z	2023-06-18T00:59:48Z	"Until a few weeks ago, when there were X outstanding plugin updates, the Updates page showed them all, and the Updates and Plugins items in the admin menu showed a red bubble with X in it.

Now, when I log into WordPress, there are no red bubbles, and navigating to the Updates or Plugins page causes the bubbles to reappear, but the respective page may or may not show all the outstanding updates.

Sometimes, forcing the update check results in a full list, and sometimes, simply re-navigating to the same page completes the list. But sometimes, some updates disappear for no apparent reason.

I suspect this is related to having a premium plugin update on the list, but can't be sure. It just seems like partial lists contain a premium update, and often, it's one of those missing.

I've ruled out browser caching and there are no console errors or PHP error log message that could be related."	galbaras
	53043	Upgrade to WP 5.7.1 fails if wp-config-sample.php not in home directory		Upgrade/Install		normal	minor	Awaiting Review	defect (bug)	new		2021-04-15T16:45:29Z	2021-04-16T02:12:14Z	"One of my WP sites (that's set to auto-upgrade to new versions) just failed to upgrade to 5.7.1. I got the following error messages when I tried to upgrade from the dashboard:
{{{#!bash
<?text
Could not copy file.: wp-config-sample.php
Installation failed.
}}}
When I moved a copy of that file into the root and tried again, the upgrade worked.
This definitely isn't expected behaviour - and didn't occur for previous upgrades - and could cause confusion for others.
This instance is running on Ubuntu 20.04 in AWS EC2.
Thanks!"	dlanced
	51369	Upgrade via a ZIP file doesn't work if password isn't cached		Upgrade/Install	5.5.1	normal	minor	Awaiting Review	defect (bug)	new		2020-09-21T18:46:55Z	2020-09-21T18:46:55Z	"This is a follow-up to #9757.

Aloha, we noticed that upgrading via a ZIP file will not work if the server prompts for an FTP password via the `Connection Information` screen (e.g., if `FTP_PASS` is not defined in `wp-config.php`). 

Note that this only applies if direct file I/O is not used for updates (e.g., `FS_METHOD` is `ssh2`, `ftpext`, or `ftpsockets`).

The flow is:
1. User uploads a plugin or theme ZIP file via Appearance > Themes > Upload Theme or Plugins > Installed Plugins > Add New.
2. Connection Information screen appears, asking for Hostname, FTP Username, FTP Password, and Connection Type (see screenshot: https://imgur.com/a/xl64OeL).
3. After providing credentials, the new ""This theme/plugin is already installed"" screen appears, comparing Current to Uploaded (see screenshot: https://imgur.com/a/cnntWm9).
4. If you click ""Replace current with uploaded,"" you will return to the Connection Information screen. After providing credentials again, you loop back to step 3, and are stuck in the cycle.

I've also attached a short screencast illustrating the loop (on a local vagrant set up on Ubuntu 20.01 LTS using vsftpd to perform file I/O, using `FS_METHOD = ftpext`).

"	figureone
	27511	"Upper ""Select All"" checkbox for list of plugins to update on update-core.php does not work on first click"		Upgrade/Install	3.8.1	normal	minor	Awaiting Review	defect (bug)	reopened		2014-03-25T13:41:24Z	2018-03-05T14:02:43Z	"(Minor annoyance)

On the admin page:
{{{
update-core.php
}}}
when there is a list of plugins with Updates Available, the first time you click on the ""Select All"" checkbox, it does not actually affect any of the checkboxes in the list.

The first time it happened, I just thought it might be a one-time or install-specific occurrence. Then, I had to update a different WordPress install on the same cPanel server, in a different account. In both cases, I went to the equivalent ""Select All"" checkbox at the bottom of the list, and it worked on the first click.

I then had to do updates on a VPS with a multisite install of Wordpress, and again the upper box did not work at first. However, I kept clicking it, and after about clicking it on, then off, then on again, the upper checkbox started affecting all the checkboxes in the list again.

"	vanjwilson
	59019	WP 6.3 deleted my additional CSS		Upgrade/Install	6.3	normal	critical	Awaiting Review	defect (bug)	new		2023-08-09T11:01:22Z	2023-08-23T18:31:14Z	"I’m developing a new site and trying out the FSE for the first time. My theme is a child of a third-party theme.

When I updated to WP 6.3 this morning it completely removed all of my CSS that I have been adding to the FSE > Styles > Additional CSS panel.

Luckily I had done a backup just before the update."	petervandoorn
	42196	WP_Upgrader->unpack_package can't run in parallel		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new		2017-10-12T10:46:00Z	2020-09-23T05:43:41Z	"Although `WP_Upgrader->unpack_package` takes care to assign a unique `$working_dir` for the package being unpacked, it recursively deletes the contents of `$upgrade_folder` before it does its work.

Since `$upgrade_folder` is the parent of `$working_dir`, concurrent `unpack_package` calls interfere with each other. In particular, this defeats parallel `wp theme install`; one install is likely to encounter `ENOENT` while trying to copy it unpacked files out of `$working_dir`."	sheldonh
	65942	WP_Upgrader::maintenance_mode() trusts an unconnected $wp_filesystem, causing a fatal TypeError during automatic updates		Upgrade/Install	7.0.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-22T17:42:31Z	2026-08-26T18:57:25Z	"WP_Upgrader::maintenance_mode() only initializes the filesystem if $wp_filesystem isn't already set:

{{{
if ( ! $wp_filesystem ) {
    WP_Filesystem();
}
}}}


This assumes that if the global is already an object, it must be properly connected. That assumption doesn't hold: if something earlier in the same request leaves a WP_Filesystem_FTPext instance in that global without connect() ever having been called on it (or after a connection that's since gone stale), maintenance_mode() uses it anyway. The next filesystem call that needs a live connection — in our case WP_Filesystem_Base::find_folder() → WP_Filesystem_FTPext::exists() — passes the unset $this->link straight into ftp_nlist(), which fatals under PHP 8's strict internal-function typing:

{{{
PHP Fatal error:  Uncaught TypeError: ftp_nlist(): Argument #1 ($ftp) must be of type FTP\Connection, null given in wp-admin/includes/class-wp-filesystem-ftpext.php:438
Stack trace:
#0 wp-admin/includes/class-wp-filesystem-ftpext.php(438): ftp_nlist()
#1 wp-admin/includes/class-wp-filesystem-base.php(231): WP_Filesystem_FTPext->exists()
#2 wp-admin/includes/class-wp-filesystem-base.php(58): WP_Filesystem_Base->find_folder()
#3 wp-admin/includes/class-wp-upgrader.php(1025): WP_Filesystem_Base->abspath()
#4 wp-admin/includes/class-wp-automatic-updater.php(474): WP_Upgrader->maintenance_mode()
#5 wp-admin/includes/class-wp-automatic-updater.php(676): WP_Automatic_Updater->update()
#6 wp-includes/update.php(890): WP_Automatic_Updater->run()
#7 (via wp_maybe_auto_update → wp_version_check, triggered under real WP-Cron)
  thrown in wp-admin/includes/class-wp-filesystem-ftpext.php on line 438
}}}

Because maintenance_mode() is called once per WP_Automatic_Updater::update() invocation — not per attempted file operation — this single uncaught fatal aborts the entire automatic-update run for every item scheduled in that cycle (core, every opted-in plugin, every opted-in theme), not just the one that happened to trigger it.

Confirmed NOT the cause (ruled out during investigation, worth noting so triage doesn't re-tread this): FTP credentials (verified valid via direct FTP login with the exact stored values), disable_functions, the ftp extension not being loaded, and DNS/IPv6 resolution ambiguity on the configured FTP host (php_network_connect_socket_to_host() in main/network.c already iterates and falls back across resolved addresses correctly). 

A parallel, manually-constructed WP_Filesystem_FTPext object using the site's real credentials connects successfully every time it's tested — including one second before an observed real crash in the same request — confirming the defect is specifically about whether connect() gets called on the object that ends up being used, not whether a connection can succeed.

What's not yet isolated: the exact condition that leaves the earlier $wp_filesystem unconnected in the first place (it's intermittent, not deterministic). request_filesystem_credentials() (called from WP_Upgrader::fs_connect(), which does always call WP_Filesystem()) seems like the most likely place to look, but this hasn't been confirmed.

=== Suggested fix ===

maintenance_mode()'s check should verify the existing $wp_filesystem is actually usable, not just non-null — e.g. checking connection state where the concrete class exposes one, or simply always calling WP_Filesystem() here rather than conditionally skipping it (since a fresh connect is cheap relative to the cost of silently aborting the whole update run).

Workaround in use (mu-plugin, not a core patch):


{{{
add_action('wp_maybe_auto_update', function () {
    global $wp_filesystem;
    if ($wp_filesystem instanceof WP_Filesystem_FTPext) {
        $needs_reconnect = empty($wp_filesystem->link) || @ftp_pwd($wp_filesystem->link) === false;
        if ($needs_reconnect) {
            $wp_filesystem = null; // forces maintenance_mode()'s check to do a fresh, real connect
        }
    }
}, 1);
}}}


This has been running on the previously failing site and confirmed to allow automatic updates to complete successfully on a previously-reliably-crashing site."	hatterops
	44596	Welcome page text is repetitive		Upgrade/Install		normal	normal	Future Release	defect (bug)	new	close	2018-07-17T14:15:03Z	2025-01-20T13:09:11Z	"Right now, the WordPress ""Welcome"" page/tab currently repeats nearly the same text 7 times in a row.

The pattern is basically:

`Version %number% addressed %number% bugs. For more information, see %link%.`

The repetition is exacerbated by there being 7 minor releases in the 4.9 major branch, but considering this page is the first thing people see after upgrading, I think this can be communicated better.

Screenshot imminent."	johnjamesjacoby
	62209	When updating languages, wordpress via ftpext tries to chdir to json files and fails		Upgrade/Install	6.6.2	normal	normal	Awaiting Review	defect (bug)	new		2024-10-12T10:49:59Z	2024-10-12T17:36:32Z	"Hello WP team,

I am using wordpress 6.6.2 on Debian with php 8.2.24, everything on recent patches.
Updates of local files via FS_METHOD ftpext with properly configured ftpd host, paths, credentials, file permissions.
When updating translations / language files , I run into an error as follows:
* Upload process uploads new jsons to wp-content/upgrade/wordpress-6.6.2-de_de, all fine
* It then tries to 'delete' the old wp-content/language files but treats them as directories, which fails. See ftpd log example 1. Note ftpd only accepts directories as parameter for nlist. The UI reports : ""Updating translations for WordPress (de_DE)… Could not remove the old translation. Translation update failed.""

Thank you for looking into this.


FTPD Log Example 1
[nlst] [/public_html/wp-content/languages/de_DE.po]
[pwd] []
[cwd] [/public_html/wp-content/languages/de_DE.po/]
change directory to /public_html/wp-content/languages/de_DE.po/: Not a directory
[pwd] []
[pasv] []
[nlst] [/public_html/wp-content/languages/de_DE.mo]
[cwd] [/public_html/wp-content/languages/de_DE.mo/]
change directory to /public_html/wp-content/languages/de_DE.mo/: Not a directory
[pwd] []
[pasv] []
[nlst] [/public_html/wp-content/languages/de_DE.l10n.php]
[cwd] [/public_html/wp-content/languages/de_DE.l10n.php/]
change directory to /public_html/wp-content/languages/de_DE.l10n.php/: Not a directory
...
[nlst] [/public_html/wp-content/languages/de_DE-0cc31205f20441b3df1d1b46100f6b8d.json]
[cwd] [/public_html/wp-content/languages/de_DE-0cc31205f20441b3df1d1b46100f6b8d.json/]
change directory to /public_html/wp-content/languages/de_DE-0cc31205f20441b3df1d1b46100f6b8d.json/: Not a directory
[pwd] []
[pasv] []
[nlst] [/public_html/wp-content/languages/de_DE-0ce75ad2f775d1cac9696967d484808c.json]
[cwd] [/public_html/wp-content/languages/de_DE-0ce75ad2f775d1cac9696967d484808c.json/]
change directory to /public_html/wp-content/languages/de_DE-0ce75ad2f775d1cac9696967d484808c.json/: Not a directory
..."	danroeg
	56387	WordPress 5.9.3 to WordPress 6.0.1: Front page has been replaced by my latest posts		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new		2022-08-16T01:59:20Z	2022-08-16T02:00:13Z	"I tried to upgrade my WordPress instance from WordPress 5.9.3 to WordPress 6.0.1 but the home page has been replaced by the latest posts.

I have checked Settings > Reading in the admin console. but nothing changed there

I went back to the 5.9.3 wordpress files (without changing the DB) It works like a charm.

What happens with 6.0.1? How can I fix that?

Thanks

"	mapi3
	56844	WordPress Autoupdate Email Showing Incorrect Site Name with URL		Upgrade/Install	6.0.3	normal	normal	Awaiting Review	defect (bug)	new		2022-10-18T14:36:06Z	2022-10-18T17:16:54Z	"I develop websites for clients, and they're hosted on a staging site (staging.domain.com). After logging onto one of the sites today to work on a client's website, I got an email pinged to me, where it's title and URL didn't match.

To give you an example, the email is in this format.

{{{

Title: [Client 1] Your site has updated to WordPress 6.0.3

Body: Howdy! Your site at https://staging.domain.com/client2 has been updated automatically to WordPress 6.0.3.

No further action is needed on your part. For more on version 6.0.3, see the About WordPress screen:
https://staging.domain.com/client2/wp-admin/about.php

If you experience any issues or need support, the volunteers in the WordPress.org support forums may be able to help.
https://wordpress.org/support/forums/

You also have some plugins or themes with updates available. Update them now:
https://staging.domain.com/client2/wp-admin/
}}}

When it should be

{{{

Title:  **[Client 2]** Your site has updated to WordPress 6.0.3

Body: Howdy! Your site at https://staging.domain.com/client2 has been updated automatically to WordPress 6.0.3.

No further action is needed on your part. For more on version 6.0.3, see the About WordPress screen:
https://staging.domain.com/client2/wp-admin/about.php

If you experience any issues or need support, the volunteers in the WordPress.org support forums may be able to help.
https://wordpress.org/support/forums/

You also have some plugins or themes with updates available. Update them now:
https://staging.domain.com/client2/wp-admin/
}}}

Going to other clients gets the URL correct upon upgrading, but the title is incorrect.

I've checked the database(s) to see if Client 1's name appeared in Client 2's database, but it doesn't. I've also cleared caching (it's hosted with Siteground), but it seems to not be the case."	rhyswynne
	36557	WordPress Version 4.5 Upgrade Failure		Upgrade/Install	4.5	normal	normal	Awaiting Review	defect (bug)	reopened		2016-04-17T04:27:36Z	2017-07-05T20:12:57Z	"Upgrade to Version 4.5 failing in one of my site.

The wp-admin/update-core.php?action=do-core-upgrade page comes blank with normal admin menu and sidebar.

Upon further investigation I found those in source


{{{
<!-- Ticket #11289, IE bug fix: always pad the error page with enough characters such that it is greater than 512 bytes, even after gzip compression 
... (3 line of random char) ....
-->
}}}


And at the end of the page


{{{
<body id=""error-page"">
	<p>Are you sure you want to do this?</p><p><a href='https://domain.tld/wp-admin/update-core.php'>Please try again.</a></p></body>
}}}

I cleaned cache, re-logined, still same. Any plugin updates works perfectly, not just the core.

Server NGINX 1.9.10, PHP 7.0.5, from WordPress 4.4.2
"	Asif2BD
	46136	WordPress install impossible when using symlinks in apache vhost		Upgrade/Install	5.0.3	normal	normal	Awaiting Review	defect (bug)	new		2019-01-29T16:08:58Z	2019-07-27T01:20:50Z	"Hello.

Fresh install here. As always, in let's say `/var/www`, I creating directories for my apps. I like to have my apache virtualhost pointed on symlinks, so when I have to swap version, I don't have to restart apache (only have to edit symlinks).

For instance, let's say I have:

{{{
/var/www/myblog_all
/var/www/myblog_all/myblog_wordpress
/var/www/myblog_all/myblog_spip
/var/www/myblog -> /var/www/myblog_all/myblog_wordpress/
}}}
(last line is symlink)

In apache, I have :

{{{
ServerName myblog.com
DocumentRoot /var/www/myblog
}}}

Well, in that case, I cannot install wordpress when acceding to the URL `http://myblog.com`. I'm redirected to `http://myblog.com_all/myblog_wordpress/wp-admin/setup-config.php` (so a 404) !!

Why ? My guess is in the `index.php` file:
{{{#!php
<?php
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
}}}
is returning `/var/www/myblog_all/myblog_wordpress` instead of what I expected `/var/www/myblog`. I know this is ""correct"" for a PHP point of view, but I'm sure I'm not the first one playing with symlinks.

**Is there a way to give to wordpress the vhost settings?**

Thanks in advance!"	bracol
	63187	Wrong Inconsistent Permissions Check in Filesystems		Upgrade/Install		normal	normal	Future Release	defect (bug)	new	dev-feedback	2025-03-28T00:26:40Z	2026-01-30T01:00:10Z	"This line is checking with only two parameters: `$source` and `$destination`:

https://github.com/WordPress/wordpress-develop/blob/baab2b8f2273319817edede1b3360f212cf42241/src/wp-admin/includes/update-core.php#L1083


But if it happens to reach this function (copy):

Filesystem Direct: https://github.com/WordPress/wordpress-develop/blob/baab2b8f2273319817edede1b3360f212cf42241/src/wp-admin/includes/class-wp-filesystem-direct.php#L305
Filesystem FTPEXT: https://github.com/WordPress/wordpress-develop/blob/baab2b8f2273319817edede1b3360f212cf42241/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L346
FTP Socket: https://github.com/WordPress/wordpress-develop/blob/baab2b8f2273319817edede1b3360f212cf42241/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php#L357

It will **always** return false, hence an error. 

Simple solution, added in the following patch (sending true to the function)"	SirLouen
	60739	Wrong redirection when installing with URI rewrite		Upgrade/Install	3.7	normal	normal	Future Release	defect (bug)	new		2024-03-10T22:54:12Z	2024-05-17T09:25:48Z	"I have a server where the users can build their own WordPress installations. The URL of such installation is like: https://example.com/u/user/wpfolder/
The folder on disk is like: /srv/http/public_html_user/wpfolder
But when the user tries to run the installation setup, an automatic redirection leeds to the following incorrect address: https://example.com/wpfolder/wp-admin/setup-config.php (notice that /u/user/ is missing)

So:
- REQUEST_URI is '/u/user/wpfolder'
- My document root is '/srv/http/public_html_user/'
- Therefore the document URI (relative to this document root) is '/wpfolder/index.php'
- And the $_SERVER[PHP_SELF] value is '/wpfolder/index.php'

I have found that the problem comes from the wp_guess_url function in wp-includes/functions.php file (line 6218):
{{{#!php
<?php
...
                } elseif ( $script_filename_dir . '/' === $abspath_fix ) {
                        // Strip off any file/query params in the path.
                        $path = preg_replace( '#/[^/]*$#i', '', $_SERVER['PHP_SELF'] );

                } else {
...
}}}

I'm not sure am I missing something, but in my opinion path should use REQUEST_URI:
{{{#!php
<?php
                } elseif ( $script_filename_dir . '/' === $abspath_fix ) {
                        // Strip off any file/query params in the path.
                        $path = preg_replace( '#/[^/]*$#i', '', $_SERVER['REQUEST_URI'] );

                } else {

}}}

This only occurs if a rewrite of the URI has happened, as in my case."	cfinnberg
	48527	Wrong upgrade notification		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-11-07T11:59:57Z	2023-02-15T20:17:06Z	I am running on WordPress 5.2.3 and but it gives me to update to 5.2.2	dkarfa
	63780	[core] Upgrades over FTP fail for files owned by users or groups with space in the name (non-Windows systems)		Upgrade/Install	6.8.2	normal	normal	Awaiting Review	defect (bug)	new		2025-08-01T19:38:16Z	2025-08-28T22:50:47Z	"Hi,

When core or plugin is being upgraded on a system where some files are owned by a user that has space in the system username, or some files are owned by a group that has space in the system group name, parsing of the output of `ftp_rawlist` in `WP_Filesystem_FTPext` in `parselisting()` will likely fail.

This is in `class-wp-filesystem-ftpext.php`.

Since the code splits the passed values by the space character 0x20, any extra spaces will result in incorrect filename being used.

For example (artificially constructed example using output of `ls -al`, but resembling output on `proftpd` experienced earlier this week):


{{{
-rw-r--r--   1 username Domain Users 17123432 Jul 16 20:17 file-name.html
}}}

The computed file will be `20:17 file-name.html` instead of the expected `file-name.html`. This has resulted in an attempt to delete `/some/path/to/WP/wp-contents/updates/some-plugin-1.23/20:17 file-name.html` during recursive directory delete.

Unfortunately, it is not impossible for group names to have spaces in them, or to guarantee FTP will do this correctly. The user authorized for FTP access could have space in its primary group, potentially resulting in new files created with such group ownership. 

It is difficult to say what is the correct way to parse these; assuming English locale, perhaps the occurrence of ` +[0-9]+ +[A-Z][a-z]{2} +[0-9]+ +([0-9]{2}:[0-9]{2}+|[0-9]{4}) +` (e.g. ""   12345 Jul  1 14:45 "" within the year, and ""   12345 Jul  1  2022 "" for a preceding year) -- so spaces, then numbers for filesize, then spaces, then capital letter followed by two lowercase letters (for month), then spaces, then number, then spaces, then either 4 numbers (year) or two numbers, colon, two numbers (time), is one way to find what precedes the filename.

Finding the split between usernames and groups would be a losing battle, since both username and group could theoretically have a space in them.

If parsing cannot be legitimately improved (perhaps also renaming the variable from `$lucifer` to something clearer and better commented?), then at least throwing an error telling the user that the line cannot be legitimately parsed would be an improvement: I spent quite a bit of time tracking the inability to upgrade over FTP down to fixing my LDAP NSSwitch setup. 

My local workaround ended up being

1. temporarily update code to just detect that a filename starts with ""HH:MM "" and remove first 6 characters if it does (bad fix), perform upgrades of plugins, then upgrade core (which, as I expected, nuked the fix)
2. changing the blog directory's user's primary group to something that does not have spaces in it
3. chgrp'ing everything in that directory to that group

This may not be that easily fixable in enterprise environments.

I am unsure if this belongs in Upgrade or in Filesystem API components, please reassign as appropriate.

Present at least between 6.0.0 and 6.8.2, inclusive."	ivucica
	64510	_wp_delete_all_temp_backups not accounting for direct filesystem access		Upgrade/Install	6.3	normal	normal	Awaiting Review	defect (bug)	new	close	2026-01-15T15:31:21Z	2026-05-20T04:26:35Z	"wp-includes/update.php:1156
{{{#!php
ob_start();
$credentials = request_filesystem_credentials( '' );
ob_end_clean();

if ( false === $credentials || ! WP_Filesystem( $credentials ) ) {
	wp_trigger_error( __FUNCTION__, __( 'Could not access filesystem.' ) );
	return;
}
}}}

If request_filesystem_credentials() evaluates that the type == 'direct', it return boolean of true, therefore the condition `! WP_Filesystem( $credentials ) ` is met and the upgrade-temp-backup dir never gets emptied

"	i4nd90
	61940	`upgrader_process_complete` runs when no plugins selected to upgrade		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-08-27T17:16:21Z	2024-09-16T18:18:15Z	"When JavaScript is disabled it is possible to submit `plugins.php`'s Bulk actions `bulk-action-form` Update option `update-selected`:

> The update process is starting. This process may take a while on some hosts, so please be patient.
> Updating Plugin (1/1)
> 
> The plugin is at the latest version.
> 
> updated successfully.
> 
> All updates have been completed.

With JavaScript enabled the process halts:

> Please select at least one item to perform this action on.

This is problematic where we are listening to the `upgrader_process_complete`.

The trace is ~

* `plugins.php:147` switch statement case `update-selected` creates an iframe with `update.php?action=update-selected&amp;plugins=` and no plugins in the list.
* `update.php:50` creates a `new Plugin_Upgrader()` and calls `Plugin_Upgrader::bulk_upgrade()`
* `class-plugin-upgrader.php:414` fires `do_action( 'upgrader_process_complete' ... )` where the `$plugins` variables is `array( 0 => '' )`


It would be preferable if `upgrader_process_complete` is never called rather than needing to check for the empty-ish array.


"	brianhenryie
	55329	add_clean_index function throws PHP notice error		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-03-07T13:59:36Z	2025-11-19T16:59:55Z	"When I tried to add index for newly created column my error log filled with php notice 25 times because of the function `drop_index` which is called inside the function `add_clean_index`.

Sample snippet:
{{{#!php
<?php
function add_country_iso_code_column() {
	if ( ! function_exists( 'maybe_add_column' ) ) {
		require_once ABSPATH . 'wp-admin/includes/upgrade.php';
	}

	global $wpdb;

	$table_name  = $wpdb->base_prefix . 'defender_lockout_log';
	$column_name = 'country_iso_code';
	$create_ddl  = ""ALTER TABLE {$table_name} ADD {$column_name} CHAR(2) DEFAULT NULL"";

	maybe_add_column( $table_name, $column_name, $create_ddl );
	add_clean_index( $table_name, $column_name );
}
}}}

Error:

{{{
[Mon Mar 07 18:45:40.809008 2022] [php:notice] [pid 1167] [client 127.0.0.1:48886] WordPress database error Can't DROP 'country_iso_code_1'; check that column/key exists for query ALTER TABLE `wp_defender_lockout_log` DROP INDEX `country_iso_code_1` made by require_once('wp-admin/network/admin.php'), require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, WP_Defender\\Upgrader->run, WP_Defender\\Upgrader->upgrade_2_8_1, WP_Defender\\Upgrader->add_country_iso_code_column, add_clean_index, drop_index, referer: http://multi.test/wp-admin/network/update.php?action=upload-plugin&package=55&overwrite=update-plugin&_wpnonce=c8b371f5b8
}}}

----

Error log screenshot:
[https://i.postimg.cc/2jqsb3Z4/bug-report.png]
"	gvgvgvijayan
	59177	dbDelta doesn't handle changing the DEFAULT value of a column from NULL to ''		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2023-08-23T15:40:02Z	2023-09-05T17:33:33Z	"Shouldn't this be a strict comparison https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/upgrade.php#L3064? Otherwise that condition will be false and the column will remain unchanged.

"	bogdanhapcayardicom
	52967	error: without the possibility of downloading translations:		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new		2021-04-03T17:50:13Z	2021-04-05T09:09:05Z	"Good morning, we found the following error in the wordpress logs without the possibility of downloading the translations:
`[Sat Apr 03 11:28:45.517438 2021] [php7:warn] [pid 56] [client X.X.X.X:0] PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href=""https://wordpress.org/support/forums/"">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /var/www/html/wp-admin/includes/translation-install.php on line 71, referer: https://blog.fediverse.tv/wp-login.php?redirect_to=https%3A%2F%2Fblog.fediverse.tv%2Fwp-admin%2Foptions-general.php&reauth=1`

To solve this we have added the following line to the file 
https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/translation-install.php#L47
of the official image of docker wordpress:latest
{{{
'blocking'    => true,
}}}
This solves the problem of downloading data from 
api.wordpress.org"	juans
	44418	fs_unavailable while auto-updating plugins		Upgrade/Install	4.9.6	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2018-06-21T04:10:26Z	2021-05-06T22:12:24Z	"This is a follow-up to #38024.

This happens when plugins are updated automatically in the background (see attached screenshot)."	ecomevo
	45138	mixed line endings: wp-config-sample.php uses CRLF (windows) line endings		Upgrade/Install		normal	trivial	Awaiting Review	defect (bug)	new	close	2018-10-20T14:05:48Z	2022-07-12T13:26:35Z	"
Not sure if this is on purpose?  Looks like it has always been that way.

{{{
# curl -s -N ""https://core.trac.wordpress.org/browser/trunk/src/wp-login.php?format=txt"" | head -n1 | hexdump -c
0000000   <   ?   p   h   p  \n
0000006
}}}

{{{
# curl -s -N ""https://core.trac.wordpress.org/browser/trunk/wp-config-sample.php?format=txt"" | head -n1 | hexdump -c
0000000   <   ?   p   h   p  \r  \n
0000007
}}}"	mattpr
	43433	mixed-content for install page stylesheets		Upgrade/Install	4.9.1	normal	normal	Awaiting Review	defect (bug)	new		2018-02-28T09:01:34Z	2020-12-18T19:11:22Z	"I am trying to install wordpress 4.9.1 on my https website but the browser (chrome 64.0.3282.186 & firefox 58.0.2) gives me mixed-content error when loading wp-admin/install.php and the page looks broken.
after installing wordpress I cannot login with my given username and password and default page seems broken too"	mimke
	44804	pretty_permalinks capability may not be detected correctly during a fresh install on a server without mod_rewrite		Upgrade/Install	4.9.8	normal	normal	Awaiting Review	defect (bug)	new		2018-08-15T22:25:08Z	2018-08-15T22:25:08Z	"I have a lighttpd server that has a pretty standard setup: no active `mod_rewrite` rules, but a [https://redmine.lighttpd.net/projects/lighttpd/wiki/Index-file-names_Details index-file] rule that names `index.php` as a index file (thus a sort of one-off rewrite). I don't know about other servers, but this may be not that uncommon as a default setup.

Now look at [https://core.trac.wordpress.org/browser/tags/4.9/src/wp-admin/includes/upgrade.php#L298 wp_install_maybe_enable_pretty_permalinks()] in wp-admin/includes.upgrade.php. If you look closely, the routine to test for active mod_rewrite functionality will ping for `get_permalink( $first_post->ID )`, if it already exists. During a fresh install, it doesn't, and an empty string is used for testing.

This leads to a false positive, since the empty path is rerouted despite the absence of true rewrite rules. Option `permalink_structure` is set to `/%year%/%monthnum%/%day%/%postname%/`, without the leading file name. If you go to the settings page later and change the permalink settings, the error is corrected and the file name inserted - now the `$first_post` exists.

For almost all practical purposes, this poses no problems, but came to the fore in the most obscure of all places: while testing Gutenberg on a fresh install, the editor crashed - see https://github.com/WordPress/gutenberg/issues/8899."	ccprog
	50472	"wp core download --skip-content doesn't create empty ""plugins"" dir"		Upgrade/Install	5.5	normal	normal	Awaiting Review	defect (bug)	new		2020-06-25T11:58:31Z	2020-09-16T15:39:22Z	"
(Migrated from https://github.com/wp-cli/wp-cli/issues/5410)

According to docs, wp core download --skip-content doesn't install default plugins.

However, it doesn't also creates the wp-content/plugins/ sub-directory itself.

The Problem: Some wordpress parts assume it exists, and fail when trying to deploy plugins or themes.

For example: 

 - Install wordpress importer will always fail in this situation, without a reason, and without an error log entry.
 - It's impossible to install new plugins or themese from via UI.

Please create /plugins/ & /themes/ directories even if they're empty, when deploying any core format
"	asafgreen
	60983	wp update 6.5 and 6.5.2 rewrite multisite bdd entries wp_options.siteurl and wp_options.home		Upgrade/Install	6.5	normal	normal	Awaiting Review	defect (bug)	new		2024-04-10T19:14:54Z	2026-10-11T20:34:03Z	"Wordpress update 6.5 and 6.5.2 rewrite multisite db entries wp_options.siteurl and wp_options.home to one ""child"" multisite siteurl and home and erasing the main multisite url causing then lots of bugs.

Going into the database and reverting those 2 fields resolve everything.
Happenned again with version 6.5.2


wp-config.php multisite config is perfect and everything was working about the update system in this server for more than 2 years."	debricon
	62259	wp-admin fails to honor style-sheet unless 'SCRIPT_DEBUG' is true.		Upgrade/Install	6.6.2	normal	normal	Awaiting Review	defect (bug)	new		2024-10-19T19:27:27Z	2024-10-19T19:27:27Z	"Newly installed 6.6.2. Front-end requests worked fine. /wp-admin requests, by contrast, were css-free. For example, /wp-admin/wp-site-editor.php reported that javascript was not enabled and Firefox clearly showed that it was.

""define( 'SCRIPT_DEBUG', true );"" was commented out in /wp-config.php. When I uncommented it, wp-admin began to behave normally.

I'm pretty sure that there is a defect and 'SCRIPT_DEBUG' compensates for it. My unfounded suspicion is that jQuery was not being loaded. 'SCRIPT_DEBUG' being on eliminated a wrong decision somewhere."	cjm51213
	64058	wp_die() status code Upgrade/Install component updates (parent ticket: #64009)		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-09-30T17:23:01Z	2025-11-22T03:43:27Z	"If you have come here directly, please refer back to the parent ticket here: [https://core.trac.wordpress.org/ticket/64009 #64009]

This ticket is regarding the `wp_die()` function calls within the Media component and will cover the following locations. Please note links were correct at the time of testing and writing this up, but line numbers may have changed slightly:

|| **Filepath** || **Line Number** || **Context** || **Status Code** || **New Code** || **Code Meaning** ||
|| src/wp-admin/update.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update.php#L29 29] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/update.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update.php#L57 57] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/update.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update.php#L80 80] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/update.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update.php#L107 107] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/update.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update.php#L124 124] || Error: is_wp_error( plugins_api()) || 500 || 503 || Service Unavailable
|| src/wp-admin/update.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update.php#L152 152] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/update.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update.php#L158 158] || POST: Invalid file type passed || 500 || 415 || Unsupported Media Type
|| src/wp-admin/update.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update.php#L190 190] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/update.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update.php#L211 211] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/update.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update.php#L234 234] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/update.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update.php#L262 262] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/update.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update.php#L280 280] || Error: is_wp_error( plugins_api()) || 500 || 503 || Service Unavailable
|| src/wp-admin/update.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update.php#L304 304] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/update.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update.php#L310 310] || POST: Invalid file type passed || 500 || 415 || Unsupported Media Type
|| src/wp-admin/update.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update.php#L342 342] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/update-core.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update-core.php#L23 23] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/update-core.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update-core.php#L1155 1155] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/update-core.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update-core.php#L1191 1191] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/update-core.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update-core.php#L1232 1232] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/update-core.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update-core.php#L1273 1273] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/update-core.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/update-core.php#L1302 1302] || User Permissions: does not have access || 500 || 403 || Forbidden
|| src/wp-admin/setup-config.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/setup-config.php#L49 49] || Missing: file || 500 || 404 || Not Found
|| src/wp-admin/setup-config.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/setup-config.php#L305 305] || REQUEST: invalid params || 500 || 400 || Bad Request
|| src/wp-admin/setup-config.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/setup-config.php#L310 310] || REQUEST: invalid params || 500 || 400 || Bad Request
|| src/wp-admin/setup-config.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/setup-config.php#L335 335] || DB: connection error || 500 || 503 || Service Unavailable
|| src/wp-admin/setup-config.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/setup-config.php#L344 344] || REQUEST: invalid params || 500 || 400 || Bad Request

There are however the following function calls I have not touched as I felt they were already valid with their current status code:

|| **Filepath** || **Line Number** || **Status Code** ||
|| src/wp-admin/install.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/install.php#L410 410] || 500 ||
|| src/wp-admin/setup-config.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/setup-config.php#L60 60] || 409 ||
|| src/wp-admin/setup-config.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/setup-config.php#L73 73] || 409 ||

Please have a look through the suggested changes documented here, and any/all feedback is appreciated. 😃"	callumbw95
	62946	wp_opcache_invalidate() promises more than it can do		Upgrade/Install		normal	minor	Awaiting Review	defect (bug)	new	dev-feedback	2025-02-11T22:21:59Z	2025-07-13T16:00:17Z	"wp_invalidate_opcache() (tries to) flush the in-memory opcache and by doing so, accidentally introduces side-effects that most WP users won't be aware of.

1) if opcache.file_cache is used, the invalidated file will reload it's PREVIOUS (before invalidation) opcache data when PHP-FPM is restarted or the opcache reset

When using opcache.file_cache and opcache.enable_cli=1, this means that all CLI requests still operate using the old files, while the PHP-FPM requests run on the new files.

2) if wp_invalidate_opcache() is called in CLI, it won't have any effect (except for the current request if opcache.enable_cli=1 is used for the current request itself), since the CLI SAPI doesn't have shared memory with the FPM SAPI

This means that currently all CLI requests run on the new code, while PHP-FPM still runs the old.
Which essentially makes wp_invalidate_opcache useless and in fact will lead to confusion and issues especially when using WP CLI to update core/plugins/themes.

"	kkmuffme
	48364	(Needs confirmation) When updating plugins, WordPress won't update any new plugin updates that are found		Upgrade/Install	5.2.3	normal	minor	Awaiting Review	enhancement	new	has-patch	2019-10-18T02:14:15Z	2026-08-18T08:43:02Z	"On a number of occasions, I've noticed that when I go to wp-admin/update-core.php and tell it to update my plugins, the system will:

1. Update most of the plugins
2. Report that all the plugins were successfully updated
3. Still report that a few plugins need to be updated

That's very confusing to end users, because how can there be more plugin updates if all of their plugins were supposedly just updated?

I've seen that bug happen many times, but only just now did I notice something else; after you click the ""Update Plugins"" button, the little orange notification number will sometimes increase after a second or two. That makes me think that the update function is checking for new updates but not adding them to the list of plugins to update.

Since the only plugins that get updated are the ones that were ""checked"", it does make sense that new updates wouldn't automatically be added. That said, the process still seems clunky overall.

Maybe it would be better to check for updates before the wp-admin/update-core.php page loads? That way the user would be presented with the actual list of plugins that need to be updated, rather than a partial list. It would block the page load for a few seconds, which is undesirable, but in most cases I think that would be a better behavior that the current one, which occasionally requires you to update your plugins twice and gives little explanation of what's going on.

Note that there's a lot of partial speculation above, and the nature of this issue makes it hard to consistently reproduce."	pikamander2
	62464	6.7 branch - update-core.php and plugins.php		Upgrade/Install		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2024-11-18T19:54:55Z	2025-02-07T08:01:38Z	"Hello there,

I noticed that the update section for example website.com/wp-admin/update-core.php gives errors most of the time with the .maintenance file being created. 

Also, I noticed that the update section in the website,com/wp-admin/plugins.php it's much better at design and functionality showing each plugin status update. In the end not generating errors.

My recommendation is to take the best code from plugins.php and apply it also to update-core.php
"	radubr
	45569	@var array tag is not present in class WP_Upgrader_Skin	SergeyBiryukov	Upgrade/Install	5.0	normal	minor	Future Release	enhancement	reviewing	has-patch	2018-12-10T18:54:34Z	2026-05-21T14:41:09Z	There is a class WP_Upgrader_Skin{} which is having line number 29 @var array $options but not in the comment.	utsav72640
	44894	Add support for an optional `$roles` parameter to `populate_roles()`	flixos90	Upgrade/Install		normal	normal	Future Release	enhancement	assigned	needs-unit-tests	2018-09-05T08:05:50Z	2019-01-23T23:22:19Z	It should be possible to provide custom roles (and capabilities) to `populate_roles()` when populating a new site with its roles. This came up during work on #41333.	flixos90
	56751	Add wp_get_environment_type() to update.php checks (core, plugins, themes)		Upgrade/Install	5.5	normal	normal	Awaiting Review	enhancement	new	needs-docs	2022-10-06T22:50:41Z	2022-10-07T00:54:39Z	"While researching #meta6511 I noticed when WordPress checks for updates to itself, plugins, or themes, it does not send to `api.wordpress.org` what type of environment that it is:

{{{
array(
	'local',
	'development',
	'staging',
	'production',
)
}}}
These are filterable, too.

A few community members have questioned (in that ticket, Slack, Twitter...) whether non-production sites have the potential to influence installation counts.

If WordPress sent the environment type, it could be aggregated over time and used later to more accurately respond to that question, perhaps even reported back if it is eventually deemed useful or actionable.

I can imagine it being useful to myself, so I'm making this ticket to suggest it.

I am choosing version 5.5 because that is when environment types were added."	johnjamesjacoby
	54631	Auto updates should be able to be switched off		Upgrade/Install	5.9	normal	normal	Awaiting Review	enhancement	new	close	2021-12-15T11:55:26Z	2022-01-05T09:01:44Z	When admin configures WP_AUTO_UPDATE_CORE it should have effect at the update.php page.	sunflower99
	60718	Awareness of permission after updating cores, themes and plugins		Upgrade/Install	6.5	normal	normal	Awaiting Review	enhancement	new		2024-03-07T04:41:04Z	2024-03-07T05:46:41Z	"This is the major security concern now a day when people install/update plugins or themes on DEV/STAG/PROD after changing respective directory permission from **755** (7=rwx 5=r-x 5=r-x) to **777** (7=rwx 7=rwx 7=rwx)

Once installation/updation is complete, people forget to restore directory permission, and due to this, hackers might inject scripts into those directories.

To prevent this, we have to check directories and file permissions for it and give the notice on top of the admin section.

It will help to reduce security threats. "	Girishpanchal
	15729	Better UX after supplying incorrect information to setup-config	kapeels*	Upgrade/Install		low	normal	Future Release	enhancement	accepted	has-patch	2010-12-08T07:19:24Z	2022-07-12T17:33:57Z	"In #15682 I added a 'Try Again' button to step 2 of setup-config.php if the credentials were incorrect.

The button is a simple link with a `javascript:history.go(-1)` hack. This should instead be a form with hidden values that submits back to setup-config.php?step=1, and fills out the form so they can try again.

Additional enhancement: If the prefix is malformed (can only contain letters, numbers and underscores), we do a wp_die(). We should again have a form with a 'Try Again' button that returns them.

As an added bonus, incorrect credentials should be filled out (for reference) but marked as incorrect and potentially with the focus set on that field.

Only caveat I can think of: This will require the use of esc_attr(), which we don't have access to yet. Not sure how to solve that without reverting to htmlspecialchars() with some extra work."	nacin
	59889	Bulk plugin update should show the plugin name/slug being updated		Upgrade/Install		normal	normal	Awaiting Review	enhancement	new		2023-11-11T05:53:56Z	2023-11-11T15:10:30Z	"In case a bulk plugin update is triggered, it doesn't shows the name of plugin being updated. Here is an output - 


{{{
Enabling Maintenance mode...
Downloading update from https://downloads.wordpress.org/plugin/akismet.3.1.11.zip...
Unpacking the update...
Installing the latest version...
Removing the old version of the plugin...
Plugin updated successfully.
Downloading update from https://downloads.wordpress.org/plugin/nginx-champuru.3.2.0.zip...
Unpacking the update...
Installing the latest version...
Removing the old version of the plugin...
Plugin updated successfully.
Disabling Maintenance mode...
}}}

Instead, it would be nice to show the plugin name before the download log message so that user can be well informed. So, on adding `Updating <plugin-slug>`, message should be - 


{{{
Enabling Maintenance mode...
Updating akismet
Downloading update from https://downloads.wordpress.org/plugin/akismet.3.1.11.zip...
Unpacking the update...
Installing the latest version...
Removing the old version of the plugin...
Plugin updated successfully.
Updating nginx-champuru
Downloading update from https://downloads.wordpress.org/plugin/nginx-champuru.3.2.0.zip...
Unpacking the update...
Installing the latest version...
Removing the old version of the plugin...
Plugin updated successfully.
Disabling Maintenance mode...
}}}

With this change, the WP CLI log output also improves. This was first raised here - https://github.com/wp-cli/extension-command/issues/261."	iamchitti
	57269	Get site URL from config instead of the database		Upgrade/Install		normal	normal	Awaiting Review	enhancement	new	close	2022-12-03T18:27:22Z	2022-12-05T14:44:09Z	"a big problem is facing everyone trying to move a site between two hosting or between two environments like (staging and production )
the most frequent problem is the site URL and the internal links 
and if you have extensive databases it will be your nightmare 
so it creates issues and limits our flexibility

so what I suggest is to set the site and home URLs from the wp-config.php file 
like
`define( 'SITEURL', 'https://mywebsite.com' );`

I know it is not very simple, especially with multi-sites but it deserves 

I also tried 
{{{
define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );
}}}

but if you don't have 'siteurl' option on your site it will give you 
'Error establishing a database connection' in the front end
and 
'One or more database tables are unavailable. The database may need to be repaired.'

which even not the clear error message 
die to 
`wp-includes/functions.php => function is_blog_installed`


I can work on this point but before I spend time, I need approval from the WordPress team that they will accept such modification or that not be accepted 
"	mhmdyassin07
	28376	Improve error message seen by user in update.php		Upgrade/Install	3.9.1	normal	normal	Awaiting Review	enhancement	new		2014-05-27T15:33:57Z	2017-11-02T13:40:23Z	"Line 117 of update.php

	
{{{
$response = wp_remote_post( $url, $options );
	if ( $ssl && is_wp_error( $response ) ) {
		trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href=""https://wordpress.org/support/"">support forums</a>.' ) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ), headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE );
		$response = wp_remote_post( $http_url, $options );
	}
}}}

The message ""Something may be wrong with WordPress.org or this server's configuration. If you continue to have problems, please try the support forums"" could be better. Right now if wordpress.org is up (which code can check?) then the problem is with their host. If they post to the Support forums there is no easy answer there.

While there is a solution to this mentioned in #27091 that solution is not suitable for most users.

I would suggest a longer timeout and a message that they could copy to their webhost to assist the host if a connection is being blocked."	podz
	57229	Improve wording on updates page about auto-updates		Upgrade/Install		normal	normal	Awaiting Review	enhancement	new	has-patch	2022-11-30T07:02:08Z	2022-11-30T09:46:23Z	"Currently, on the updates page of WordPress... We have a string that says: 

""Here you can find information about updates, set auto-updates and see what plugins or themes need updating."" 

Yet, I find this a little confusing. Since, you could start to argue about the auto-updates here. Somebody who takes things too literally can think that it's possible to change plugin/theme auto-updates here as well. Or you could think you can edit the schedule of the auto-updates. 

That's why I propose to change this line a little bit to make it more clear. I'm currently creating the PR for it. "	NekoJonez
	39364	Introduce a trigger to handle a custom queue job and run them		Upgrade/Install	4.7	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2016-12-21T17:03:28Z	2023-03-23T00:11:28Z	"While I was creating a plugin which imports theme demos. I have to utilize the `wp.updates` for AJAX way to import and delete the demo packs but unfortunately there are no any trigger which I can utilize to update the queue job for demo by using its action and data in `wp.updates.queueChecker`. As a fix I have introduced a trigger in a patch file :)

Any procedure to the extend self-executing anynonmous function `wp.updates.queueChecker` below with only trigger `$document.trigger( 'wp-updates-queue-job', job );` is much appreciated :)

{{{
( function( $, wp ) {
	var $document = $( document );

	wp = wp || {};

	/**
	 * The WP Updates object.
	 *
	 * @type {object}
	 */
	wp.updates = wp.updates || {};

	/**
	 * Sends an Ajax request to the server to delete a demo.
	 *
	 * @param {object}             args
	 * @param {string}             args.slug    Demo Pack.
	 * @param {deleteDemoSuccess=} args.success Optional. Success callback. Default: wp.updates.deleteDemoSuccess
	 * @param {deleteDemoError=}   args.error   Optional. Error callback. Default: wp.updates.deleteDemoError
	 * @return {$.promise} A jQuery promise that represents the request,
	 *                     decorated with an abort() method.
	 */
	wp.updates.deleteDemo = function( args ) {
		var $button = $( '.theme-actions .delete-demo' );

		args = _.extend( {
			success: wp.updates.deleteDemoSuccess,
			error: wp.updates.deleteDemoError
		}, args );

		if ( $button && $button.html() !== wp.updates.l10n.deleting ) {
			$button
				.data( 'originaltext', $button.html() )
				.text( wp.updates.l10n.deleting );
		}

		wp.a11y.speak( wp.updates.l10n.deleting, 'polite' );

		// Remove previous error messages, if any.
		$( '.theme-info .update-message' ).remove();

		$document.trigger( 'wp-demo-deleting', args );

		return wp.updates.ajax( 'delete-demo', args );
	};

	/**
	 * Updates the UI appropriately after a successful demo deletion.
	 *
	 * @typedef {object} deleteDemoSuccess
	 * @param {object} response      Response from the server.
	 * @param {string} response.slug Slug of the demo that was deleted.
	 */
	wp.updates.deleteDemoSuccess = function( response ) {
		wp.a11y.speak( wp.updates.l10n.deleted, 'polite' );

		$document.trigger( 'wp-demo-delete-success', response );
	};

	/**
	 * Updates the UI appropriately after a failed demo deletion.
	 *
	 * @typedef {object} deleteDemoError
	 * @param {object} response              Response from the server.
	 * @param {string} response.slug         Slug of the demo to be deleted.
	 * @param {string} response.errorCode    Error code for the error that occurred.
	 * @param {string} response.errorMessage The error that occurred.
	 */
	wp.updates.deleteDemoError = function( response ) {
		var $button      = $( '.theme-actions .delete-demo' ),
			errorMessage = wp.updates.l10n.deleteFailed.replace( '%s', response.errorMessage ),
			$message     = wp.updates.adminNotice( {
				className: 'update-message notice-error notice-alt',
				message:   errorMessage
			} );

		if ( wp.updates.maybeHandleCredentialError( response, 'delete-demo' ) ) {
			return;
		}

		$( '.theme-info .theme-description' ).before( $message );

		$button.html( $button.data( 'originaltext' ) );

		wp.a11y.speak( errorMessage, 'assertive' );

		$document.trigger( 'wp-demo-delete-error', response );
	};

	/**
	 * Pulls available jobs from the queue and runs them.
	 */
	wp.updates.queueChecker = function() {
		var job;

		if ( wp.updates.ajaxLocked || ! wp.updates.queue.length ) {
			return;
		}

		job = wp.updates.queue.shift();

		// Handle a queue job.
		switch ( job.action ) {
			case 'install-plugin':
				wp.updates.installPlugin( job.data );
				break;

			case 'update-plugin':
				wp.updates.updatePlugin( job.data );
				break;

			case 'delete-plugin':
				wp.updates.deletePlugin( job.data );
				break;

			case 'install-theme':
				wp.updates.installTheme( job.data );
				break;

			case 'update-theme':
				wp.updates.updateTheme( job.data );
				break;

			case 'delete-theme':
				wp.updates.deleteTheme( job.data );
				break;

			default:
				break;
		}

		$document.trigger( 'wp-updates-queue-job', job );
	};

})( jQuery, window.wp );

}}}


"	shivapoudel
	17301	Keep the connection open when doing upgrades or long-running operations	dd32	Upgrade/Install		normal	normal	Future Release	enhancement	assigned	has-patch	2011-05-02T06:27:39Z	2025-05-12T01:35:30Z	"When we do long-running operations like upgrades-over-FTP, we may go a while without sending any data, which may cause the connection to be closed. We should investigate whether we can send some ""hey, still here"" dummy data down the pipe to keep the connection from being unceremoniously closed on us.

For example, Rackspace Cloud Sites runs behind load balancers that cut the connection after 30 seconds of no data. I was able to defeat it by manually flushing some dummy data like so:

{{{
<?php

for ( $i = 1; $i < 46; $i++ ) {
	echo ""$i...<br />\r\n"";
	flush();
	sleep( 1 );
}
echo ""DONE"";
}}}"	markjaquith
	41597	Language pack download requires too broad file system permissions		Upgrade/Install	4.9	normal	normal	Awaiting Review	enhancement	new		2017-08-09T17:27:54Z	2017-08-11T06:28:34Z	"Language packs are installed into `wp-content/languages` directory. The problem is, even if the directory exists, and WordPress is allowed to create files there, it is still required to:

* for WordPress to have permissions in the `wp-content` directory. This is because `$upgrader->fs_connect()` is called with an array of two directories – `WP_CONTENT_DIR` and `WP_LANG_DIR`, and `fs_connect()` only checks the permissions to the first one.
* for WordPress to have the exact file owner for the `wp-content` directory. Cause - `wp_can_install_language_pack()` calls `fs_connect()` wihout `$allow_relaxed_file_ownership`

I think languages, downloaded from a known source, should not require such a draconian measures. Instead, WordPress should successfully download and install languages if it can write to `wp-content/languages` directory (and not require ownership permissions for either `wp-content` or `wp-content/languages`."	kpumuk
	45437	On plugin update screen, offer more information and options		Upgrade/Install		normal	minor	Future Release	enhancement	new		2018-11-27T23:20:20Z	2023-08-29T15:26:10Z	"On the plugin update screen, where all available updates to plugins show, there would be some really neat information to be able to see:

* Is this plugin active on my website right now?
* Delete this (or these) plugin(s) rather than update

There is currently not a lot of information on this screen, and some of that information could be useful, particularly in eliminating cruft or unnecessary and no longer used plugins. 

I did a very rough sketch of what I mean, and some information / actions that could be useful. Now that we have synchronous same-screen plugin actionability this may even end up being able to be somewhat elegant.

[[Image(https://www.dropbox.com/s/5un8qycsy017jov/plugin-updates.png)]]
"	krogsgard
	59182	Plugin/theme zip update screen max-width		Upgrade/Install	5.5	normal	minor	Awaiting Review	enhancement	new	dev-feedback	2023-08-24T09:55:54Z	2023-08-26T05:22:21Z	"Hi,

Can we set the max-width to 100rem instead of 40rem?

Current CSS for wrap class.
{{{
.update-php .wrap {
    max-width: 40rem;
}
}}}

it should be 

{{{
.update-php .wrap {
    max-width: 100rem;
}
}}}

let me know if this makes sense or not, please.

For more information see mentioned screenshot below. 

"	sumitsingh
	57280	Security automatic updates for plugins and themes		Upgrade/Install		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2022-12-06T02:50:08Z	2022-12-06T17:04:31Z	"The option to enable automatic security updates for plugins and themes would allow users to secure their websites without worrying too much about significant/major breaking features.

This enhancement would allow more granular control of auto-updates without forcing users to update to major releases.

I propose new toggles in the WordPress Updates page under the Plugins and Themes section at wp-admin/update-core.php:

This site's plugins are automatically kept up to date with each new version
**Switch to automatic updates for maintenance and security releases only.
**
This site's plugins are automatically kept up to date with maintenance and security releases.
**Enable automatic updates for all new versions.
**

The same logic would be applied to themes.

Defining what kind of updates apply to security would be challenging, so I propose starting with popular or problematic plugins."	JosVelasco
	51836	Show when updates are disabled vs not available		Upgrade/Install		normal	normal	Awaiting Review	enhancement	new		2020-11-20T17:05:39Z	2021-08-04T18:33:48Z	"It would be helpful to show when updates are ''disabled'' vs ''not available''.

Context:
Yesterday, I was fixing a site and noticed some plugins weren't updating. No updates showed as available in the GUI, and the CLI showed ""Plugin already updated"":

{{{
$ wp plugin update ultimate-member
Success: Plugin already updated.
}}}

I had to remove and reinstall to get it working;

{{{
$ wp plugin uninstall ultimate-member
Uninstalled and deleted 'ultimate-member' plugin.
Success: Uninstalled 1 of 1 plugins.

$ wp plugin install ultimate-member
Installing Ultimate Member – User Profile, User Registration, Login & Membership Plugin (2.1.12)
Downloading installation package from https://downloads.wordpress.org/plugin/ultimate-member.2.1.12.zip...
Using cached file '/home/u331-eccke9yc2pw5/.wp-cli/cache/plugin/ultimate-member-2.1.12.zip'...
Unpacking the package...
Installing the plugin...
Plugin installed successfully.
Success: Installed 1 of 1 plugins.
}}}

In this case, someone had disabled updates with a filter (eek!):
{{{#!php
<?php
// disables auto plugin updates
add_filter( 'auto_update_plugin', '__return_false' );

// hide update notifications
function remove_core_updates(){
global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,);
}
add_filter('pre_site_transient_update_core','remove_core_updates'); //hide updates for WordPress itself
add_filter('pre_site_transient_update_plugins','remove_core_updates'); //hide updates for all plugins
add_filter('pre_site_transient_update_themes','remove_core_updates'); //hide updates for all themes*/
?>
}}}

As a result of updates being disabled, security updates were not installed and the site was hacked.

It would be very helpful for both the GUI and CLI to show ""updates disabled"" instead of ""already updated""/""no updates available.""

I believe we'd need core/API change here first, and then CLI could adopt that."	paulschreiber
	66563	Tests: Add unit tests for Plugin_Upgrader::bulk_upgrade()		Upgrade/Install		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T16:12:56Z	2026-11-06T16:13:32Z	"`Plugin_Upgrader::bulk_upgrade()` has no unit tests, and 100 lines of it are not covered on Codecov. It updates several plugins from the Updates screen.

This ticket adds tests for what the skin is told, a filesystem that is not available, a plugin that is up to date, a plugin that needs a newer version of WordPress or PHP, the options an update runs with, the hooks that are added only while it runs, the update that stops when a plugin returns false, the action that fires when the update is complete, the update information that is cleaned, and the emails about failures that are forgotten."	hmbashar
	66559	Tests: Add unit tests for Plugin_Upgrader::install(), upgrade() and the strings		Upgrade/Install		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T15:10:23Z	2026-11-06T15:11:01Z	"`Plugin_Upgrader::upgrade_strings()`, `install_strings()`, `install()` and `upgrade()` have no unit tests, and 70 lines of `class-plugin-upgrader.php` are not covered on Codecov.

This ticket adds tests for the strings (including the overwrite and downgrade modes), the options that an installation and an update run with, the hooks that they add only while they run, the cache that is cleaned, the plugin that is installed from a package, the `upgrader_overwrote_package` action, and the plugin that has no update."	hmbashar
	66551	Tests: Add unit tests for Plugin_Upgrader_Skin		Upgrade/Install		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T13:44:24Z	2026-11-06T13:44:47Z	"`Plugin_Upgrader_Skin` has no test coverage. It sets up the skin of the plugin update screen, and after an update it shows the frame that activates an active plugin again, the links to activate the plugin and to the Plugins page, and the update count script.

This ticket adds tests for the constructor (defaults, arguments, active and network active plugins) and for `after()` (the frame, the links, who gets the link to activate the plugin, the `update_plugin_complete_actions` filter and the update count)."	hmbashar
	60908	Update Page Performance Issue in WordPress 6.5		Upgrade/Install	6.5	normal	major	Awaiting Review	enhancement	new		2024-04-03T14:41:52Z	2025-08-01T21:24:13Z	"Greetings,
I would like to report a performance issue with the Update page in WordPress version 6.5. Since the recent update, the Update page has become noticeably slow, making it difficult for users to efficiently manage updates for their WordPress installations.

The sluggish performance on the Update page is impacting user experience and productivity, as it takes significantly longer to navigate through the page and perform necessary updates. This delay not only frustrates users but also hampers their ability to keep their WordPress sites secure and up to date.

As a contributor, I believe it's crucial to address this issue promptly to ensure a smooth and efficient user experience for all WordPress users. I kindly request the development team to investigate and optimize the performance of the Update page in the upcoming releases to alleviate this problem.

Thank you for your attention to this matter. If further information or assistance is needed, please don't hesitate to reach out.

Sincerely,
Md Maruf Adnan Sami"	bdprojukti
	62595	Updates Status Page - Only show if there are errors.		Upgrade/Install		normal	normal	Awaiting Review	enhancement	reopened		2024-11-28T01:15:11Z	2025-11-20T20:41:41Z	"When the admin updates a plugin or theme, etc, it goes to a page with the information about the upgrade status, errors and completion.

e.g. `https://example.com/wp-admin/update-core.php?action=do-plugin-upgrade`

This page isn't really all that useful if all of the plugins or themes upgraded successfully. The admin then has to click a link to go back to the dashboard or updates page.

I would like to propose that when doing the update the referring page is sent as well and if no errors occurred, send the user back to their referring page.

The referring page could also be passed a variable saying updates_successful and show a banner to the user saying ""All requested upgrades completed successfully"""	justinz2021
	45825	Use of same loop variable in inner foreach loop can be error-prone		Upgrade/Install	5.0.2	low	trivial	Future Release	enhancement	new	has-patch	2019-01-04T11:06:20Z	2019-04-15T06:24:06Z	"It is not a good practice and not recommended to use the same loop variable in both outer and inner loop. In `wp-admin/install-helper.php` function `maybe_drop_column` does the following:


{{{
function maybe_drop_column( $table_name, $column_name, $drop_ddl ) {
   ...
   foreach( ...  as $column ) {
     ...
     foreach( ... as $columns ) {
       ...
     }
   }
}
}}}


I would recommend to change the inner loop variable to `$recheck_column`."	subrataemfluence
	44032	Use random_bytes() for generating keys and salts		Upgrade/Install		normal	trivial	Awaiting Review	enhancement	new	has-patch	2018-05-09T23:21:52Z	2018-05-12T09:06:46Z	"While auditing WordPress for remote queries the servers make, I noticed the generation of salts in wp-admin.php is wasteful with an unnecessary loop inside a loop. If the system php supports random_int it also supports random_bytes.

Attached patch generates 64 byte (512 bit) salts without needed the 64 round loop inside the 8 round loop loop."	alicewondermiscreations
	38946	WP_Upgrader: Protection against deleting files in destination directory		Upgrade/Install		normal	normal	Awaiting Review	enhancement	new	has-patch	2016-11-26T09:12:52Z	2017-11-07T15:26:12Z	"While creating a plugin I have to upload zip file and extract it in the custom destination directory with its inside main folder name just like how Theme_Upgrader and Plugin_Upgrader does.

While extending the class `WP_Upgrader` and using method `install()` like this:

{{{#!php
<?php
/**
 * Install a demo package.
 *
 * @since 2.8.0
 * @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional.
 * @access public
 *
 * @param string $package The full local path or URI of the package.
 * @param array  $args {
 *     Optional. Other arguments for installing a demo package. Default empty array.
 *
 *     @type bool $clear_update_cache Whether to clear the updates cache if successful.
 *                                    Default true.
 * }
 *
 * @return bool|WP_Error True if the install was successful, false or a WP_Error object otherwise.
 */
public function install( $package, $args = array() ) {

	$defaults = array(
		'clear_update_cache' => true,
	);
	$parsed_args = wp_parse_args( $args, $defaults );

	$this->init();
	$this->install_strings();

	add_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );

	$this->run( array(
		'package' => $package,
		'destination' => WP_CONTENT_DIR . '/uploads/demo-packs',
		'clear_destination' => false, // Do not overwrite files.
		'protect_destination' => true, // Let me utilize this args in `install_package()` to fix this error, happy :)
		'clear_working' => true,
		'hook_extra' => array(
			'type' => 'demo',
			'action' => 'install',
		)
	) );

	remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );

	if ( ! $this->result || is_wp_error( $this->result ) ) {
		return $this->result;
	}

	return true;
}
}}}

Now always the zip file content are extracted into that destination directory but I want to index just like this where `{uploaded-zip}` is the zip file inside folder name:

`WP_CONTENT_DIR . '/uploads/demo-packs/{uploaded-zip}'`

And finally the detected issue is that the destination directory are no more protected just like theme and plugins directories does :)

{{{#!php
<?php
/*
 * Protection against deleting files in any important base directories.
 * Theme_Upgrader & Plugin_Upgrader also trigger this, as they pass the
 * destination directory (WP_PLUGIN_DIR / wp-content/themes) intending
 * to copy the directory into the directory, whilst they pass the source
 * as the actual files to copy.
 */
$protected_directories = array( ABSPATH, WP_CONTENT_DIR, WP_PLUGIN_DIR, WP_CONTENT_DIR . '/themes' );

if ( is_array( $wp_theme_directories ) ) {
	$protected_directories = array_merge( $protected_directories, $wp_theme_directories );
}

if ( in_array( $destination, $protected_directories ) ) {
	$remote_destination = trailingslashit( $remote_destination ) . trailingslashit( basename( $source ) );
	$destination = trailingslashit( $destination ) . trailingslashit( basename( $source ) );
}
}}}



And this is where the magic begins by adding `protect_destination` args and fixing it:

{{{#!php
<?php
if ( in_array( $destination, $protected_directories ) || $args['protect_destination'] ) {
	$remote_destination = trailingslashit( $remote_destination ) . trailingslashit( basename( $source ) );
	$destination = trailingslashit( $destination ) . trailingslashit( basename( $source ) );
}
}}}

 "	shivapoudel
	63924	WordPress Plugin Update Screen - Checkboxes with PHP Version		Upgrade/Install		normal	normal	Awaiting Review	enhancement	new		2025-09-03T23:44:29Z	2025-09-04T19:26:51Z	"WordPress Plugin Update Screen, when running on an unsupported version of PHP for WordPress (think it was 7.1 from memory) and if I'd have to guess the plugins that require updates aren't supporting that unsupported version, the usual update checkboxes are simply invisible (probably a ""display:none !important"" if I'd have to guess.....) - Just add a quick bit of info for the user to read to understand this..... ""Hey, we can't update these plugins as they don't support the unsupported PHP version that is powering your WordPress website. Please contact your web hosting provider to update the PHP Version that is running your website to a supported version which is X, Y Z, etc. ""

Needs something updating here that makes more sense to the average user, rather than just getting confused why the usual checkboxes aren't available to use. "	michaelcropper
	61104	Yearly theme injection with auto-updates = true		Upgrade/Install		normal	normal	Awaiting Review	enhancement	new		2024-04-30T20:35:05Z	2024-05-01T15:19:22Z	"Hi,

When the yearly theme gets injected in everybody's WordPress, could it come with auto-updates = true for that newly added theme? 

"	wadih
	41241	questioning for sftp-hostname while update does not accept final slash		Upgrade/Install	4.8	normal	normal	Awaiting Review	enhancement	new		2017-07-04T22:42:11Z	2023-03-22T18:37:43Z	"Trying to update themes/plugins/translations you will be asked to put the servers sftp login-dates if the files-owner isn't the server. Putting in there the hostname with a final / (slash) I get an error (without final slash works fine). 

Is there a missing if-clause to try wether there a a slash yet or no?

I hope I've written understandable,

cheers"	jonny-s
	60523	working_directory enhancement		Upgrade/Install	6.5	normal	normal	Awaiting Review	enhancement	new	has-patch	2024-02-13T11:59:06Z	2024-02-26T20:16:51Z	"Because the ""source"" parameters can be filtered we have to been sure, that the ""working_directory"" has a trailing slash before we check files in it - when it's valid"	ipswise
	65678	Add WP_SKIP_COOLDOWN_PERIOD constant to bypass the plugin update distribution cooldown		Upgrade/Install		normal	normal	Awaiting Review	feature request	new		2026-07-21T03:56:39Z	2026-07-21T15:28:38Z	"Companion to meta ticket [https://meta.trac.wordpress.org/ticket/8371 meta:#8371].

With the Protect The Shire initiative, new plugin/theme releases wait up to 24 hours before being distributed through auto-updates. The proposal in meta:#8371 is to let site administrators opt out of this cooldown via an explicit constant in wp-config.php:

{{{
define( 'WP_SKIP_COOLDOWN_PERIOD', true );
}}}

The core side of this would be small: when the constant is defined as true, core includes a flag in its requests to the WordPress.org update API (api.wordpress.org/plugins/update-check/) indicating the site opts out of the distribution cooldown. The API-side handling is covered in the meta ticket.

Default behavior is unchanged — this is an explicit opt-in requiring filesystem access, aimed at developers, agencies, and advanced users who need to receive critical hotfixes immediately and knowingly accept the supply-chain risk for their own sites."	raftaar1191
	49440	Allow configuring the upgrade directory		Upgrade/Install		normal	normal	Awaiting Review	feature request	new		2020-02-14T19:23:53Z	2024-09-06T21:27:09Z	"`wp-content/upgrade` is not application code, and it's not data. WordPress shouldn't  hardcode where this directory is (especially to a location under the webroot).

Instead, the upgrade directory should be user-configurable & transient. This would allow things to continue as they are - but if someone wants to host their WordPress on a slow disk (HDD, NFS), they could.

The problem is when you have a slow disk, updates can fail because of HTTP timeouts. For example, an NFS volume containing a wordpress install is mounted in the webroot. Moving files across a network to unzip them is insane! It would make so much more sense to use a location like `/tmp`, which is already optimized for such a use case as unzipping files. Often, `/tmp` is a tempfs, which actually lives in memory."	natesymer
	60296	Creating db if not exist	ilyay	Upgrade/Install	6.5	normal	normal	Awaiting Review	feature request	assigned	has-patch	2024-01-19T12:02:51Z	2024-01-19T12:15:18Z	"If the checkbox next to “Create a database if it does not exist” is checked, then the script checks for the presence of a database on the server, and if it does not exist, then creates it.
pull request:https://github.com/WordPress/wordpress-develop/pull/5904"	ilyay
	57953	"The site is not set auto-update after ""define( 'WP_AUTO_UPDATE_CORE', false )"		Upgrade/Install	4.5.7	normal	normal	Awaiting Review	feature request	new	reporter-feedback	2023-03-20T08:08:35Z	2023-07-20T18:41:03Z	"Hi

When my site is not set auto-update after ""define( 'WP_AUTO_UPDATE_CORE', false ) is declared in wp-config.php. May I ask what happen or what's wrong?

Thank.

Loy"	chyebin
	20947	feature request: one-click update for core, themes and plugins (all in one)		Upgrade/Install		normal	normal	Awaiting Review	feature request	new	dev-feedback	2012-06-13T22:48:50Z	2018-08-13T17:00:35Z	I'd love to have the one-click update be truly one-click so that you can click once and update core, themes and plugins all at once as opposed to having to initiate three different updates.	jkudish
	50098	CSVs that contain HTML fail upload test		Upload		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-05-06T06:42:45Z	2026-11-06T10:38:15Z	"WordPress 5.0.1 (I believe) introduced file type checking so that uploaded files needed to be the correct MIME type for its extension. This caused CSVs detected as `text/plain` to fail the upload test. WordPress 5.0.3 fixed this so that .csv files can be uploaded if detected as `text/plain` (#45615, [44443]).

However, in trying to uploaded CSVs exported from WooCommerce, I have encountered CSVs that are detected as `text/html` if they have enough HTML in the product descriptions. So these files exported from WooCommerce cannot be re-uploaded to WooCommerce.

I have worked around the issue using the `wp_check_filetype_and_ext` filter, but ideally a similar carve-out for `text/plain` would be made for `text/html`.

I don't have time to write a patch right now, but I might be able to take a crack at it later this week/next week if no one else can.

For reference, this is how I bypassed the issue with the filter:

{{{
add_filter(
	'wp_check_filetype_and_ext',
	function( $wp_check_filetype_and_ext, $file, $filename, $mimes, $real_mime ) {
		$wp_filetype = wp_check_filetype( $filename );

		if ( 'text/html' === $real_mime && 'text/csv' === $wp_filetype['type'] ) {
			$wp_check_filetype_and_ext = [
				'ext'              => $wp_filetype['ext'],
				'type'             => $wp_filetype['type'],
				'proper_filename'  => $filename,
			];
		}

		return $wp_check_filetype_and_ext;
	},
	10,
	5,
);
}}}"	JakePT
	22150	Customizer: Remove Image doesn't remove from Media Library		Upload	3.4	normal	normal	Awaiting Review	defect (bug)	new		2012-10-10T05:35:15Z	2019-05-15T21:12:16Z	"After uploading an image using the Theme Customizer, a ""Remove Image"" link appears - this seems to imply that clicking it will cause the image to be deleted entirely, rather than just hidden from the current view.
"	pento
	58306	File extension restriction revoke		Upload		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-05-14T10:49:54Z	2023-05-14T20:17:34Z	"Hallo,

this is 2023, packing items into zip item for downloadable content is normal. Can we please revoke this weird function so the end-user can devicde what they want to allow or not, and not end-up looking for weird plugins to install or documents about tampering the config.php, yes?

[[Image()]]"	teevee98
	49622	Media reports upload success while No file was loaded!		Upload	5.3.2	normal	normal	Awaiting Review	defect (bug)	new		2020-03-11T10:49:07Z	2020-03-11T10:51:51Z	"Latest WP 5.3.2

Scenario: 
1. Working WordPress site.
2. After porting from another hosting
[make sure you have wrong url path for upload in  wp_options
Cleary it happend unintensionaly.]
2. Load an image

Operation completes, with link to the new media (that does not realy exists...)

The problem: in wp_options - wrong path for upload

The bug: WordPress does NOT check that folder exists & load actually succeeded"	mulli.bahr
	47049	Unzip_file causing Media file upload error		Upload	5.1.1	normal	normal	Awaiting Review	defect (bug)	new		2019-04-26T01:03:53Z	2019-04-28T17:10:43Z	"When I attempt to use the unzip_file function below in my functions.php:

{{{
require_once(ABSPATH . 'wp-admin/includes/file.php');
WP_Filesystem();
$destination = wp_upload_dir();
$destination_path = $destination['path'];
$unzipfile = unzip_file( $destination_path.'/filename.zip', $destination_path);
   
if ( is_wp_error( $unzipfile ) ) {
    echo 'There was an error unzipping the file.'; 
} else {
    echo 'Successfully unzipped the file!';       
}
}}}

I get the following error when trying to upload any files into the Media library in Media > Add New:    

{{{
An error occurred in the upload. Please try again later.
}}}

I am using Twenty Nineteen theme with no plugins activated and I don't get the error when I remove the function.

https://codex.wordpress.org/Function_Reference/unzip_file

"	troytempleman
	66125	Upload file with double-quote in filename	sgastard	Upload	7.1	normal	normal	Awaiting Review	defect (bug)	assigned	changes-requested	2026-09-17T09:54:41Z	2026-09-21T20:07:12Z	"Uploading a file like ""test"".png results in a filename like 22test22.png on the server and a matching URL. The file remains accessible."	sgastard
	64842	Upload problems with Umlauts in ID3 Tags		Upload	6.9.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-03-11T15:42:33Z	2026-03-19T22:17:02Z	"Dear developers,

we encounter problems on our site when uploading MP3s that contain German Umlauts (äöüÄÖÜß) in their ID3 tags. The error returned is “Could not insert attachment into database”.

Example file: https://cba.media/wp-content/uploads/example_with_umlaut.mp3

This issue was posted for the first time here: https://wordpress.org/support/topic/upload-problems-with-umlauts-in-id3-tags/#post-16189804 and still persists.


Thanks for your help and best regards"	claireschlamm
	48369	Uploaded media files created with incorrect permissions if directory set to 751.		Upload	5.2.3	normal	normal	Awaiting Review	defect (bug)	new		2019-10-18T17:20:11Z	2021-04-22T02:23:44Z	"
I discovered a very strange issue.. Files uploaded in the Media Library are having permissions set of 640 instead of 644.

I’ve tried setting a umask in the wp-config.php file, eg
define(‘FS_CHMOD_FILE’,0644);

This seems to have no effect.
Strangely, there are a number of wordpress sites on this box. Only 2 of these have this issue and the others all work fine and set the permissions to 644.

I have uploaded a simple PHP upload script to see if this is a PHP issue, but using the simple upload script the permissions are set to 644.. So I’m sure this is a wordpress issue.

I’ve then re-installed wordpress in the Admin interface, this didnt make any difference, I’m running 5.2.4 – the latest, I don’t think we had this issue before the last update but I cannot be 100% sure of that..

After digging in File.php I added some debug code:

// Set correct file permissions.
$stat = stat( dirname( $new_file ) );
error_log(“JSG: STAT MODE $stat[mode]”); // new line
$perms = $stat[‘mode’] & 0000666;
error_log(“JSG: $perms”); // new line

[18-Oct-2019 15:18:13 UTC] JSG: STAT MODE 16873
[18-Oct-2019 15:18:13 UTC] JSG: 416 <– this is bad right?

On another site which works fine with the same debug code I have:

DRT JSG: STAT MODE 16877
DRT JSG: 420

This made me look at the code and realise the issue.. If the DIR is set to 751, then the permissions on uploaded files are changed to 640.. but if the dir is 755 the permissions are set to 644..

Having permission of 751 is acceptable from a security point of view because the server does only needs to excuse permission on the dir to access the files within it. "	jonathangilpin
	58513	Uploading JSON file of 1MB or less fails to upload		Upload	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-06-12T11:21:01Z	2023-06-12T11:25:04Z	"When uploading a JSON file of exactly 1048577 bytes or less leads to:

{filename} has failed to upload.
Sorry, you are not allowed to upload this file type.

Even though the file type is allowed. Tested with JSON file of valid JSON of 1048578 bytes (success) and 1048577 byes (failure)."	oliward@…
	65188	Uploading PNG images with a larger number of colors causes timeouts and eventually CPU starvation		Upload	6.8	normal	normal	Awaiting Review	defect (bug)	new		2026-05-07T09:21:04Z	2026-05-07T10:42:59Z	"Since WordPress 6.8 there is new handling of PNG images.

Specifically in `thumbnail_image` at `wp-includes/class-wp-image-editor-imagick.php:403`

Uploading a png image with a large number of colors, for example a photographic image in .png format, causes the `getImageColors()` step at line 506 to be extremely slow.

This seems to be the result of the chosen filter `FILTER_TRIANGLE`.


A standalone version of this function with some extra log lines:

{{{#!php
<?php

$image = new \Imagick( realpath( './foo.png' ) );

thumbnail_image( $image, 2048, 2048 );

function thumbnail_image( $image, $dst_w, $dst_h, $filter_name = 'FILTER_TRIANGLE' ) {
	error_log( 'a' );
	$current_colors = $image->getImageColors();
	error_log( 'b' );
	error_log( $current_colors );

	$allowed_filters = array(
		'FILTER_POINT',
		'FILTER_BOX',
		'FILTER_TRIANGLE',
		'FILTER_HERMITE',
		'FILTER_HANNING',
		'FILTER_HAMMING',
		'FILTER_BLACKMAN',
		'FILTER_GAUSSIAN',
		'FILTER_QUADRATIC',
		'FILTER_CUBIC',
		'FILTER_CATROM',
		'FILTER_MITCHELL',
		'FILTER_LANCZOS',
		'FILTER_BESSEL',
		'FILTER_SINC',
	);

	/**
	 * Set the filter value if '$filter_name' name is in the allowed list and the related
	 * Imagick constant is defined or fall back to the default filter.
	 */
	if ( in_array( $filter_name, $allowed_filters, true ) && defined( 'Imagick::' . $filter_name ) ) {
		$filter = constant( 'Imagick::' . $filter_name );
	} else {
		$filter = defined( 'Imagick::FILTER_TRIANGLE' ) ? Imagick::FILTER_TRIANGLE : false;
	}

	try {
		$size = null;
		try {
			error_log( '1' );
			$size = $image->getImageGeometry();
			error_log( '2' );
		} catch ( Exception $e ) {
			return new WP_Error( 'invalid_image', __( 'Could not read image size.' ) );
		}

		/*
			* To be more efficient, resample large images to 5x the destination size before resizing
			* whenever the output size is less that 1/3 of the original image size (1/3^2 ~= .111),
			* unless we would be resampling to a scale smaller than 128x128.
			*/
		if ( is_callable( array( $image, 'sampleImage' ) ) ) {
			$resize_ratio  = ( $dst_w / $size['width'] ) * ( $dst_h / $size['height'] );
			$sample_factor = 5;

			if ( $resize_ratio < .111 && ( $dst_w * $sample_factor > 128 && $dst_h * $sample_factor > 128 ) ) {
				error_log( '3' );
				$image->sampleImage( $dst_w * $sample_factor, $dst_h * $sample_factor );
				error_log( '4' );
			}
		}

		/*
			* Use resizeImage() when it's available and a valid filter value is set.
			* Otherwise, fall back to the scaleImage() method for resizing, which
			* results in better image quality over resizeImage() with default filter
			* settings and retains backward compatibility with pre 4.5 functionality.
			*/
		if ( is_callable( array( $image, 'resizeImage' ) ) && $filter ) {
			error_log( '5' );
			$image->setOption( 'filter:support', '2.0' );
			$image->resizeImage( $dst_w, $dst_h, $filter, 1 );
			error_log( '6' );
		} else {
			error_log( '7' );
			$image->scaleImage( $dst_w, $dst_h );
			error_log( '8' );
		}

		error_log( '9' );
		$image->setOption( 'png:compression-filter', '5' );
		$image->setOption( 'png:compression-level', '9' );
		$image->setOption( 'png:compression-strategy', '1' );
		error_log( '10' );
		// Check to see if a PNG is indexed, and find the pixel depth.
		if ( is_callable( array( $image, 'getImageDepth' ) ) ) {
			error_log( '11' );
			$indexed_pixel_depth = $image->getImageDepth();
			error_log( $indexed_pixel_depth );
			error_log( '12' );

			// Indexed PNG files get some additional handling.
			if ( 0 < $indexed_pixel_depth && 8 >= $indexed_pixel_depth ) {
				// Check for an alpha channel.
				error_log( '13' );
				if (
					is_callable( array( $image, 'getImageAlphaChannel' ) )
					&& $image->getImageAlphaChannel()
				) {
					$image->setOption( 'png:include-chunk', 'tRNS' );
				} else {
					$image->setOption( 'png:exclude-chunk', 'all' );
				}
				error_log( '14' );

				// Reduce colors in the images to maximum needed, using the global colorspace.
				$max_colors = pow( 2, $indexed_pixel_depth );
				error_log( $max_colors );
				if ( is_callable( array( $image, 'getImageColors' ) ) ) {
					$current_colors = $image->getImageColors();
					error_log( $current_colors );
					$max_colors = min( $max_colors, $current_colors );
				}
				error_log( $max_colors );

				error_log( '15' );
				$image->quantizeImage( $max_colors, $image->getColorspace(), 0, false, false );
				error_log( '16' );

				error_log( 'c' );
				$current_colors = $image->getImageColors();
				error_log( 'd' );
				error_log( $current_colors );

				/**
				 * If the colorspace is 'gray', use the png8 format to ensure it stays indexed.
				 */
				if ( Imagick::COLORSPACE_GRAY === $image->getImageColorspace() ) {
					$image->setOption( 'png:format', 'png8' );
				}
			}
		}

		/*
			* If alpha channel is not defined, set it opaque.
			*
			* Note that Imagick::getImageAlphaChannel() is only available if Imagick
			* has been compiled against ImageMagick version 6.4.0 or newer.
			*/
		if ( is_callable( array( $image, 'getImageAlphaChannel' ) )
			&& is_callable( array( $image, 'setImageAlphaChannel' ) )
			&& defined( 'Imagick::ALPHACHANNEL_UNDEFINED' )
			&& defined( 'Imagick::ALPHACHANNEL_OPAQUE' )
		) {
			if ( $image->getImageAlphaChannel() === Imagick::ALPHACHANNEL_UNDEFINED ) {
				$image->setImageAlphaChannel( Imagick::ALPHACHANNEL_OPAQUE );
			}
		}

		// Limit the bit depth of resized images.
		if ( is_callable( array( $image, 'getImageDepth' ) ) && is_callable( array( $image, 'setImageDepth' ) ) ) {
			/**
			 * Filters the maximum bit depth of resized images.
			 *
			 * This filter only applies when resizing using the Imagick editor since GD
			 * does not support getting or setting bit depth.
			 *
			 * Use this to adjust the maximum bit depth of resized images.
			 *
			 * @since 6.8.0
			 *
			 * @param int $max_depth   The maximum bit depth. Default is the input depth.
			 * @param int $image_depth The bit depth of the original image.
			 */
			$max_depth = $image->getImageDepth();
			$image->setImageDepth( $max_depth );
		}
	} catch ( Exception $e ) {
		return new WP_Error( 'image_resize_error', $e->getMessage() );
	}
}
}}}


-------

It also seems that there is some confusion around channel depth and colors in this function.
The `$max_colors` is a value per channel while `$current_colors` is for all channels combined.

I think `$max_colors` should be multiplied by 3.


-----

It is extremely easy to DOS a WordPress server that allows file uploads by feeding it photographic PNG images."	romainmrhenry
	31372	media-new.php stops uploading after max_execution_time set in php.ini		Upload	4.1	normal	normal	Awaiting Review	defect (bug)	new		2015-02-18T19:59:13Z	2019-05-15T21:16:23Z	"== Environement ==
Windows Server 2008 (version 6, build 6002: SP2)
IIS Version 7.0.6000.16386
PHP Version 5.4.26
FastCGI

== Problem ==
When uploading a media file to Wordpress the upload only runs for the max_execution_time set in php.ini. When that time has elapsed (for slow connections or a large file) the multi-file uploader displays the generic error ""HTTP error."" The browser uploader stops with the PHP error ""max execution time reached""
Is this behavior by design?

== Proposed solutions ==
1. '''set `set_time_limit(0)` in media-new.php, so a upload can take as long as it needs''' [[br]] For IIS this solution is preferred, because FastCGI automatically stops script execution when a connection is lost. For Apache the additional code `ignore_user_abort(false);` might be needed to prevent the script from executing after the client has aborted, although that also is the standard behavior for Apache I think.
2. '''Display a more helpful error''' [[br]] ""HTTP error."" could practially mean everything. It took me at least 2 hours to find out what was causing the error. Displaying ""Your upload exceeded the max_execution_time set in PHP"" makes things already a lot more understandable.

== Thoughts about limits ==
File uploads are already limited by max_upload_size and max_post_size, so it should make sense to not also limit them on how long they can take.
Some users simply don't have a fast enough connection to complete the file upload in the max_execution_time specified by php.ini"	au.merci
	58787	when upload it multi upload duplicate the files in the media		Upload	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-07-11T21:56:53Z	2023-10-30T19:36:30Z	"{{{
<?php
// Make sure this code is executed within WordPress environment
if (!defined('ABSPATH')) {
    exit;
}

if (isset($_POST['submit'])) {
    // Check for a file upload
    if (isset($_FILES['filed'])) {
        // Upload the file
        require_once ABSPATH . 'wp-admin/includes/image.php';
        require_once ABSPATH . 'wp-admin/includes/file.php';
        require_once ABSPATH . 'wp-admin/includes/media.php';

        $post_id = 0; // Change this to the ID of the post you want to attach the file to

        // Check if a file was selected
        if ($_FILES['filed']['error'] !== UPLOAD_ERR_NO_FILE) {
            // This will upload the file and attach it to the given post
            $attachment_id = media_handle_upload('filed', $post_id);

            if (is_wp_error($attachment_id)) {
                // There was an error uploading the file
                $response = array('error' => $attachment_id->get_error_message());
            } else {
                // The file was uploaded successfully
                $response = array('success' => 'File uploaded successfully with attachment ID ' . $attachment_id);
            }
        } else {
            // No file was selected
            $response = array('error' => 'No file selected.');
        }

        // Send the response back to the client-side script
        echo json_encode($response);
    }

    // IMPORTANT: Don't forget to exit at the end of your callback function
    exit;
}
?>

<form method=""POST"" action=""<?php echo esc_url($_SERVER['REQUEST_URI']); ?>"" enctype=""multipart/form-data"">
    <input type=""file"" name=""filed"" id=""file"">
    <input type=""submit"" name=""submit"" value=""Upload"">
</form>

<?php die(); ?>
}}}"	wasimo
	58155	Add filter to allow large image scaling of PNGs		Upload	5.3.1	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2023-04-18T21:01:22Z	2023-04-19T15:49:31Z	"Due to Issue #48736,large image downscaling of PNGs is disabled because sometimes the new images are larger in filesize than the originals (particularly with PNG-8). 

This is reasonable but should be filterable with the current state as the default. 

There are use cases where users rarely, if ever, upload PNG-8s but do upload massive PNG-24s that would benefit from downscaling. Devs should be able to turn this feature on for PNGs as needed. "	pelstudio
	28238	Add filter to value returned from get_space_used()		Upload	3.5	normal	normal	Awaiting Review	enhancement	new	has-patch	2014-05-13T18:20:06Z	2025-08-04T13:07:24Z	It would be helpful to have an additional filter to modify the returned value from the get_space_used() function in order to add additional space quantities without having to recreate the entire function by only having the 'pre_get_space_used' filter.	hereswhatidid
	51789	Add system filesize resource limit to wp_max_upload_size function		Upload		normal	normal	Awaiting Review	enhancement	new		2020-11-16T16:43:42Z	2020-11-18T19:44:38Z	"A file will that is smaller than `wp_max_upload_size` but larger than the soft filesize resource limit will not upload successfully.
[https://www.php.net/manual/en/function.posix-getrlimit.php posix_getrlimit] will return system resource limits.
`wp_max_upload_size` function should return the minimum of `upload_max_filesize`, `post_max_size`, and `posix_getrlimit()[soft filesize]`.
"	yani.iliev
	35823	"Implement ""FS_CHMOD_FORCE"" constant; if set - media uploads and image resizing do NOT ignore FS_CHMOD_FILE"		Upload		normal	normal	Awaiting Review	enhancement	new		2016-02-12T23:46:25Z	2018-01-25T20:22:36Z	"Hello.


I want to re-open https://core.trac.wordpress.org/ticket/21251

I think that it's very strange to not giving an ability to globally override file permissions. Even though WP lead developers thinks that it's ""not good"" to use FS_CHMOD_FILE on file uploads - there should be a way to do it. It will not be default. Default behaviour won't be changed. Filters or other ways are a madness for users with many websites on board or for hosting providers which want to set basic options forcefully.

The problem:
One may expect that after setting constant FS_CHMOD_FILE - all files created or modified (maybe) by WordPress will have FS_CHMOD_FILE permissions. But for some wierd reason it is not so. I can understand the explanation from 21251 ticket. So it can be solved by creating a new constant which control the behaviour.

I've attached a patch which changes upload function's logic to understand FS_CHMOD_FORCE constant and honor it if it is defined. If it is not defined (default), behaviour will be the same as it was before.

After applied patch it will be possible to set the following in wp-config.php or globally:

{{{#!php
<?php
define('FS_CHMOD_FILE', 0640);
define('FS_CHMOD_FORCE', 1);
}}}


so all uploaded files will be uploaded with 0640 chmod. 0640 can be changed to desired value for sure, this is just an example."	Profforg
	24934	More flexible response reporting in wp-plupload.js		Upload	3.6	normal	normal	Future Release	enhancement	assigned		2013-08-03T00:30:06Z	2019-05-15T21:13:41Z	"The wp-plupload.js wrapper to the plupload library only returns server responses to bound callbacks in the case of a well formed error (the server responds with  {{{ { success: false } }}}).

Sometimes it may be useful to receive additional information from the server on ''successful'' upload. I have prepared a patch that allows for the {{{success}}} and {{{error}}} callbacks to receive server responses."	ippetkov
	45725	Unable to use the UPLOADS constant with WordPress in a different directory		Upload		normal	normal	Awaiting Review	enhancement	new	needs-docs	2018-12-20T13:07:46Z	2026-02-03T12:07:49Z	"=== The problem ===
When WordPress is installed in a different directory (you can achieve that by following [[https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory|these instructions]]), the **UPLOADS** constant is unable to function correctly in some cases according to the **wp_upload_dir()**'s output. Occasionally the constant accepts a relative path what will be appended to the **ABSPATH** constant to determine the **basedir** and to the **site_url()** function to determine the **baseurl** for the uploads location.

Although WordPress does let you move the CMS (it actually can be anywhere on the filesystem), however the uploads directory will always be relative to the CMS directory (**ABSPATH** constant) when using the **UPLOADS** constant.

=== The use case ===
There are multiple use cases which will be affected by this but let's consider the next few parameters:

* Website URL: example.com
* Website DIR: /foo/bar
* WordPress URL: example.com/wordpress
* WordPress DIR: /foo/bar/wordpress

Our goal is to store uploads at:

* Uploads URL: example.com/uploads
* Uploads DIR: /foo/bar/uploads

However when we defining the UPLOADS constant as 'uploads', will result in the following:

* Uploads URL: example.com/wordpress/uploads
* Uploads DIR: /foo/bar/wordpress/uploads

You might wonder what will happen when we use an absolute value for the constant instead, in this case '/foo/bar/uploads' is used:

* Uploads URL: example.com/wordpress//foo/bar/uploads
* Uploads DIR: /foo/bar/wordpress//foo/bar/uploads

=== The solution ===
Possible solutions where I could came up with are, the two following:

* Add another constant like **ABSPATH** to the index.php, this could be tricky for some people to update but the benefits of it are very useful. It will allow you to use one WordPress installation for all your WordPress websites. How you might wonder? [[https://stackoverflow.com/a/39195424/3157038|This is how]], I've been using this already for years!
* Another solution could be to introduce a new constant specifically for the uploads directory path and only use the current **UPLOADS** constant for the url.

Both of these solutions require to be implemented into the **_wp_upload_dir()** function [[https://core.trac.wordpress.org/browser/tags/5.0/src/wp-includes/functions.php#L1972|on line 1972 in wp-includes/functions.php]]

Have a look at the patch attached to this ticket, with the patch WordPress will introduce both the **UPLOADS_DIR** and **INDEX_ABSPATH** constant. According to some tests I did it should also be backward compatible."	Fleuv
	38481	wp_handle_upload_prefilter not used before deriving attachment title		Upload	4.6.1	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2016-10-25T08:30:18Z	2019-03-26T21:28:44Z	"I created a module that modifies upload behavior. I use the wp_handle_upload_prefilter to alter the $_FILES data - specifically the 'name' property of the uploaded file.

This works well for changing the name of the file being stored in the file system, but the title of the attachment post still accesses the $_FILES['async-upload']['name'] on line 281 of media.php.

To be able to override the title, I had to hook into the 'sanitize_title' filter on line 293 of media.php - and doing that is, in my book, a hack.

This sanitize_title filter should specify a context."	frodeborli
	27860	Media Upload: Incorrect renaming increment for retina files		Upload	3.9	normal	normal	Future Release	feature request	new		2014-04-17T12:23:40Z	2019-05-15T21:14:35Z	"If a file is uploaded `myimgage.png` and then a second image is uploaded with the same name the file is renames `myimgage.png` to `myimgage1.png` this is fine.

However if a Retina image is uploaded using the Apple retina standard @2x i.e. `myimage@2x.png`

The increment is `myimage@2x1.png` this is not correct and should be `myimage1@2x.png`

Should be `myimage[[prefex]]@2x.png` NOT `myimage@2x[[prefex]].png` "	phillbooth
	27606	"""Add Existing User"" form does not preserve input in case of an error"		Users		low	minor	Awaiting Review	defect (bug)	new	has-patch	2014-03-31T10:43:42Z	2025-08-08T10:05:22Z	"Background: #27006

In single site, ""Add New User"" form preserves entered values in case of an error.

In Multisite, ""Add New User"" form preserves the values, but ""Add Existing User"" does not.

In network admin, ""Add New User"" form does not preserve the values."	SergeyBiryukov
	44027	"""Enable full-height editor"" setting only saved on page refresh"		Users		normal	minor	Awaiting Review	defect (bug)	new		2018-05-09T18:49:19Z	2019-01-17T00:56:38Z	"Testing the ""Enable full-height editor and distraction-free functionality."" setting on my personal site as well as a customer's site:

* logged in: setting is enabled (Add New Post, Screen Options)
* disable and logout immediately (without changing anything or refreshing page)
* logged back in: still enabled
* disable, refresh page and then logout
* logged back in: now disabled
* enable and logout immediately
* logged back in: still disabled
* enable, refreshed page and logged out
* logged back in: now enabled

I also verified this using `wp user meta get 1 rug3dk50q_user-settings` while performing the same actions.  Watching the Chrome network tab, it appears that clicking the checkbox for this setting is not triggering an admin-ajax call to update this user setting, whereas the Boxes and Layout screen options do trigger the call.

It does appear to correctly update the `wp-settings-1` cookie correctly when the setting is toggled.
"	GunGeekATX
	48705	Admin email confirmation language should be changed		Users	5.3	normal	normal	Awaiting Review	defect (bug)	new		2019-11-18T17:02:05Z	2019-11-18T17:02:46Z	The new confirmation regarding the admin email is confusing, as many sites will have multiple admin level users. The language doesn't make it obvious that the email being confirmed is the overall site's admin email address, as opposed to the email of the admin person logging in. This will result in the main admin email getting changed back and forth between users, and notifications ending up not where they belong.	mywebmaestro
	65672	Admin user creation rejects usernames it would otherwise save		Users		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-07-20T14:04:24Z	2026-07-22T02:32:36Z	"When creating a user in the admin, the form validates a different string than the one it saves.

`wp-admin/includes/user.php` stores the sanitized value:

{{{#!php
$user->user_login = sanitize_user( wp_unslash( $_POST['user_login'] ), true );
}}}

but validates the raw request value:

{{{#!php
if ( ! $update && isset( $_POST['user_login'] ) && ! validate_username( $_POST['user_login'] ) ) {
	$errors->add( 'user_login', __( '<strong>Error:</strong> This username is invalid because it uses illegal characters. Please enter a valid username.' ) );
}
}}}

`validate_username()` is a strict comparison against `sanitize_user()`, and `sanitize_user()` trims and collapses whitespace. So a username with leading or trailing whitespace fails validation even though the same value would have been stored successfully once sanitized.

This is easy to hit by pasting a username, where a trailing space is a common artifact.

|| '''Input''' || '''Would be stored as''' || '''Validation''' ||
|| `bob` || `bob` || valid ||
|| `bob smith` || `bob smith` || valid ||
|| `bob ` || `bob` || rejected ||
|| ` bob` || `bob` || rejected ||
|| `bob  smith` || `bob smith` || rejected ||

The error message compounds the confusion: it reports ""illegal characters"", but a space is an allowed character (`bob smith` is accepted). Only its position is the problem. See #65084 for related work on that message's wording.

Note the validated value is also not unslashed, while the stored one is.

Suggested direction: validate the same value the form will store, so the form stops rejecting input it would accept. Raising it as a ticket rather than assuming the fix, since #44690 and #59084 argue usernames should be more restrictive about spaces, and this moves the other way.
"	thisismyurl
	64862	Application Passwords: Add rate limiting to prevent brute-force attacks		Users	6.7	normal	normal	Awaiting Review	defect (bug)	new	needs-unit-tests	2026-03-14T11:15:58Z	2026-03-14T11:45:27Z	"== Problem ==
`wp_authenticate_application_password()` in wp-includes/user.php 
has no rate limiting. An attacker can make unlimited REST API 
requests guessing application passwords with no lockout.

Unlike cookie login, there is no CAPTCHA, no lockout, and 
wp_login_failed hook is not reliably triggered for plugins to hook into.

== Proposed Fix ==
Add transient-based IP rate limiting inside 
wp_authenticate_application_password(), with a filter 
`application_password_login_max_attempts` so site owners 
can configure the threshold.

== Steps to Reproduce ==
1. Create an Application Password for any user
2. Send repeated REST API requests with wrong password
3. No lockout occurs — requests continue indefinitely

== Expected ==
After N failed attempts from same IP, return WP_Error with HTTP 429.

== Actual ==
No rate limiting. Unlimited attempts allowed."	vrutti22
	47408	At the time user_register fires, the user_login field in the database is actually set to user_nicename		Users	5.2.1	normal	minor	Awaiting Review	defect (bug)	new		2019-05-27T13:28:40Z	2019-05-27T13:28:40Z	It appears that `user_login` gets set to the correct login as defined in `$_POST['reg_username']` (i.e. from the registration form) later in the registration sequence. As a result, functions hooking on `user_register` will receive confusing results from `get_userdata` and similar.	robert.peake
	59337	Change the escape esc_attr() to esc_url()		Users		normal	normal	Awaiting Review	defect (bug)	new	close	2023-09-13T11:51:04Z	2024-11-11T14:53:41Z	"Change the esc_attr() function to esc_url() in ""wp-admin/user-edit.php"""	truptikanzariya
	47732	Change user email link		Users	5.2.2	normal	normal	Awaiting Review	defect (bug)	new		2019-07-18T13:33:17Z	2019-08-30T11:23:08Z	"If you are not logged in, Email doesn't change when you click on confirm link in the email.

Steps to reproduce:
1. From Users > profile add new email address
2. Log out of your wp-admin
3. Open the received email and click on the link to confirm the change
4. wp-admin asks for login, you input your username/password and click login

the email address is not changed.

Another example, where I used 2 devices (mobile and pc):
1. From Users > profile add new email address
2. Switch to another device/browser where you are not logged into your site
2. Open the received email and click on the link to confirm the change
3. wp-admin asks for login, you input your username/password and click login

the email address is not changed.

I figured out that clicking the confirm link again while logged in does in fact change the email address. Which might be a security feature that checks if the user that is trying to change email address is logged in, but shouldn't this work also after the user logs in?"	stefanpejcic
	51781	Code not pulling website URL		Users	5.5.3	normal	normal	Awaiting Review	defect (bug)	new		2020-11-15T18:45:42Z	2021-09-23T08:06:20Z	"Hello people,

I have activated the multisite network. And when a user signs up on one of the network’s sites (main site or subsite), that user receives an email with a confirmation link. After the user clicks on the confirmation link, he receives another email stating that his account is ok, and the signature of that email shows the code (###SITEURL###) that should call the URL of my site: https://prnt.sc/vjjaxz

Thank you!"	vejapixel
	59435	Critical error when creating new user and mail delivery isn't allowed		Users	6.3.1	normal	normal	Awaiting Review	defect (bug)	new		2023-09-24T16:31:52Z	2023-09-24T16:34:08Z	"On our setup mail delivery via sendmail / mail() isn't allowed. To successfully send mails a WordPress sites needs to setup an SMTP plugin.

If there is now SMTP plugin configured creating new users via the dashboard results in a critical error. Despite the fact that the checkbox to notify the new user isn't activated.

This wasn't the case in former WordPress version. I assume it accoured first with WordPress 6.3."	1resu
	40060	Define ADMIN_COOKIE_PATH cause unreachable /wp-login.php		Users	4.7.3	normal	normal	Awaiting Review	defect (bug)	new		2017-03-07T13:11:56Z	2017-03-07T14:44:52Z	"If user is logged in and tries to open /wp-login.php page, he never couldn't do this if ADMIN_COOKIE_PATH is set to root '/' (is equal to COOKIEPATH). Instead, the redirect to /wp-admin/ will occur. Even more, many of function during page load will run twice.

In a long route of functions, the last one is wp_parse_auth_cookie(), which return false to many functions called from, which cause ""true"" check in wp-login.php on line 814, where unneeded redirect happens.

{{{#!php
<?php
if ( !is_wp_error($user) && !$reauth ) {
...
wp_redirect( $redirect_to );
exit();
}}}


In regular situation, wp_parse_auth_cookie() return ""false"" when checking auth cookie on wp-login.php from path '/', because existing one is for /wp-admin path. So wp-login.php loads normally.

{{{#!php
<?php
if ( empty($_COOKIE[$cookie_name]) )
	return false;
}}}

But if ADMIN_COOKIE_PATH is defined with value, that not differs from COOKIEPATH or SITECOOKIEPATH - it return ""true"" and forever redirect to /wp-admin/.

Any ideas to solve this?"	esemlabel
	60441	Delete User-> Attribute All Content Doesn't Show Users with Editor Roles		Users	6.4.3	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2024-02-05T14:18:33Z	2024-02-05T14:18:33Z	"Posted in the Support Forum [https://wordpress.org/support/topic/cant-attribute-content-to-editor-when-deleting-user/ here] - It was suggested this might be a bug so I'm reporting it here.

When deleting any user with content and selecting who to attribute that content to, users with editor roles are not shown in the list. I've created a staging site where I disabled all plugins and changed the theme to a default theme, but the issue remains. I've tested this on a couple of websites.

I've linked screenshots that show the missing editor user in the dropdown for ""Attribute all content to"" and where the editor user is in the users list.

There are 8,005 users (3 admins, 8 editors, 7,993 subscribers); I'm not sure if the number of users is causing the issue. I'm a web designer, not a developer so if this isn't the right place for this let me know. I've been trying to find any documentation of a similar issue, but have come up empty-handed. 

[[Image(https://snipboard.io/DAZIv8.jpg)]]
[[Image(https://snipboard.io/2JwCcj.jpg)]]"	sansprinkle
	53341	Edit user: Error notice for failed password reset strips HTML for support article link		Users	5.7	normal	normal	Future Release	defect (bug)	new	has-patch	2021-06-06T11:43:41Z	2021-06-07T19:53:48Z	"Related: #34281, #52573

See the attached screenshot, in case of a failure while sending the password reset email, the Ajax response includes a link to https://wordpress.org/support/article/resetting-your-password/ which is currently not visible in the UI."	ocean90
	47618	Email sent to blank address on email change for user with no previous email address		Users		normal	minor	Awaiting Review	defect (bug)	new	has-patch	2019-06-27T14:24:25Z	2026-07-20T12:52:16Z	"1. Install/active some email logger og logging functionality for outgoing emails
2. Import some content from other WP site
3. Let importer create a new username for some of that content, when prompted
4. Edit the newly created user and add an email address
5. Observe the email log: ""To:"" field is empty

Expected: No email (attempted to be) sent when previous email is blank."	knutsp
	44565	Find plural text in description of username on profile page.		Users		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-07-11T10:31:52Z	2020-01-21T15:25:35Z	"When I logged in as admin in WordPress dashboard and check the user profile, I found the description of username is ""Usernames cannot be changed.""

""Usernames"" is a plural text I think we should use singular ""Username"" over there."	harsh175
	61169	Getting inconsistent error on changing role		Users		low	minor	Awaiting Review	defect (bug)	new	reporter-feedback	2024-05-08T08:57:04Z	2024-05-23T07:28:44Z	"I am logged in as **administrator** user and I am selecting multiple users and attempting to change role to empty value. I am getting inconsistent error '''Sorry, you are not allowed to give users that role.'''

I think there shouldn't be any error and even if there is an error message it should say something else.

Attaching the video url of the issue:
https://www.awesomescreenshot.com/video/27461014?key=1bb55333561ac1aa16715e03ab9df15b"	haritpanchal
	53339	Inconsistency in allowed characters for a password		Users		normal	normal	Awaiting Review	defect (bug)	new		2021-06-05T18:10:08Z	2022-04-11T18:28:56Z	"When a user attempts to reset his or her password using the facility on the front-end, they are able to use the `\` character in their new password.

When a user attempts to change their password at wp-admin > Users > Profile, they aren't able to use the `\` character in their password.

This feels like an inconsistency.

Further, I noticed whitespace is stripped from the beginning and end of the password string when using the change password facility at wp-admin > Users > Profile. Note `trim()` isn't used in the password reset facility on the front-end."	henry.wright
	47943	"Multisite: Allow site administrators to add new users option and ""Add New"" wording"		Users		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2019-08-28T10:41:18Z	2019-12-17T18:25:10Z	"If I disable the option Allow site administrators to add new users in Network Admin > Settings and then visit a site as an administrator, I continue to see the text ""Add New"" in the left hand side menu under ""Users""

See the attached image"	henry.wright
	57454	Multisite: Users without a role are not returned in sub-site search results		Users		normal	normal	Awaiting Review	defect (bug)	new		2023-01-12T14:47:58Z	2023-01-18T01:04:00Z	"We recently came across this issue after migrating off WooCommerce. Our default role was the 'Customer' role provided by WooCommerce. When WooCommerce was removed from our sites, that role was subsequently deleted - leaving a large percentage of users without a role.

Generally this would not be an issue, but users without a role are not returned in the search results on a multisite sub-site.

I am able to find the user by searching by name or email on the parent site, and the sub-site is also listed under the user's sites, but they don't display in search results without a role. This makes it very difficult to find or edit a user on the sub-site."	travisanderson99
	59570	Non Admin Users showing when deleting admin user.		Users	6.3.2	normal	normal	Awaiting Review	defect (bug)	new		2023-10-09T12:09:22Z	2024-01-09T13:27:54Z	"When deleting a user with role of administrator. The option to ""attribute all content to"" dropdown will list all users (even subscribers)

Steps to repeat:
Create 2 users:
 - Create a new user with the role subscriber
 - Create a new user with the role administrator
 - Add a post with the new adminstrative user, 
 - then delete the new adminstrative user

The option to assign / ""attribute all content"" to will show all available users.
"	digamberpradhan
	63330	PHP deprecated error in meta.php on line 1298		Users	6.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-04-22T08:49:29Z	2025-04-23T23:36:27Z	"Hi,

Is there a way to check if `$meta_key` isn't `null` at [https://github.com/WordPress/wordpress-develop/blob/05a2999a8daf0da7e21ab94096578e6eb073bedf/src/wp-includes/meta.php#L1298 line 1298 of WP 6.8], to prevent to following php error:

{{{
[18-Apr-2025 14:43:12 UTC] PHP Deprecated:  preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /.../wp-includes/meta.php on line 1298
[18-Apr-2025 14:43:12 UTC] PHP Fatal error:  Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in /.../wp-includes/class-wp-user-query.php:486
Stack trace:
#0 /.../wp-includes/class-wp-user-query.php(486): array_filter(NULL)
#1 /.../wp-includes/class-wp-user-query.php(79): WP_User_Query->prepare_query(Array)
#2 /.../wp-includes/user.php(807): WP_User_Query->__construct(Array)
#3 /.../wp-includes/user.php(1715): get_users(Array)
#4 /.../wp-admin/includes/meta-boxes.php(970): wp_dropdown_users(Array)
#5 /.../wp-admin/includes/template.php(1456): post_author_meta_box(Object(WP_Post), Array)
#6 /.../wp-admin/edit-form-advanced.php(722): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post))
#7 /.../wp-admin/post.php(206): require('/home...')
#8 {main} thrown in /.../wp-includes/class-wp-user-query.php on line 486
}}}

PHP version: 8.3.9 "	Klemart3D
	20854	PHP warning caused by missing 'spam' and 'deleted' fields in a custom user table	Nikolaos Raftopoulos	Users	3.3.2	normal	normal	Future Release	defect (bug)	reopened		2012-06-06T12:45:29Z	2020-09-30T19:40:38Z	"In my network dashboard I get the following error message : 


Warning: number_format() expects parameter 1 to be double, string given in /home/tklighth/public_html/wp-includes/functions.php on line 155"	leondari
	53139	Password Reset on user edit		Users	5.7.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-05-03T17:52:07Z	2021-05-03T23:56:43Z	"Whenever I edit a user, I get an error at the top saying that the password is already in use. I am ''not'' editing any passwords. I'm editing permissions for a user, which is not related to the password in any way.

What's more annoying is that every time I attempt to make an edit, the user who's account it is gets an email saying that their password changed, which isn't even the case.

I'm using a few plugins, some big ones which are WooCommerce, Elementor and LearnDash. It doesn't seem like any of these are causing conflicts though, since I have tried disabling them and trying again."	xaaf
	40835	Password and email change emails should not contain site-specific wording on multisite		Users		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2017-05-22T12:20:14Z	2017-05-22T12:20:14Z	"With multisite enabled, the following three actions (there may be more) result in an email being sent to the user which contains wording specific to the site that the user happens to be on when they perform the action:

* Attempt to change their email address.
* Confirmed change of email address.
* Changed password.

As an example, here's the text from the ""Notice of Password Change"" email:

{{{
Hi john,

This notice confirms that your password was changed on Site B.

If you did not change your password, please contact the Site Administrator at
siteb@example.com

This email has been sent to john@example.com

Regards,
All at Site B
http://mtrunk.wp/siteb
}}}

This is misleading because it's not immediately clear whether my password was changed on all the sites on the network, or whether the change was specific to ""Site B"".

In addition, the email address shown is the email address of the site administrator, not the network administrator. The site administrator does not necessarily have the ability to manage users.

There may be similar considerations to those raised in #21352 regarding a user's awareness of the site being part of a network of sites."	johnbillion
	52700	Password strength error		Users	5.6.2	normal	normal	Awaiting Review	defect (bug)	new		2021-03-03T07:09:21Z	2022-01-31T09:46:59Z	"Hi. While installing WordPress I get ""password strength error"" message.

This issue happens with Cloudflare's SSL is activated and ""Flexible"" setting is choosed from SSL tab.

But this issue doesn't happen if I install Let's Encrypt or another SSL certificate from cloud panel and choose ""Full"" setting from SSL tab."	mustafazadetarlan
	58843	Permissions issue with wordpress multisite		Users	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-07-18T19:01:21Z	2023-07-18T19:01:21Z	"I have a multisite wordpress installation that is current v 6.2.2

I have the main site and one additional site. Same issue on both sites, but I have been focused on the main site. I have created the new user in the main site and am sure the user has permissions to that site.

I have an issue where an editor level user cannot see any pages in the backend. It says there are 96 pages, 84 published, however none are visible.

If I create & publish a new page with that user account, that one page is visible.

If I change the author to a different user (editor level or other) it is no longer visible to the original editor account.

I have tried using the User Role Editor plugin and have even reset all roles to core defaults. The same issue remains.

It seems only a super admin level account is able to view all the pages no matter who created them.

"	NF Graphic Design
	38960	Problem when user name is not alpha characters		Users	4.6.1	normal	normal	Awaiting Review	defect (bug)	new	close	2016-11-27T10:53:07Z	2025-10-23T14:25:04Z	"I think there should be a check put in place to stop users from registering with none alpha characters, or at least this is what my annecdotal evidence suggests.

I had a member register with a user name of colon semicolon, for some reason they thought is was a joke so they put in a smiley face.

That user did not show up in my user list all member view, I was however able to see them in another view and I asked them to change their name to something sensible, but I still had issues finding them in the user list, then later the account broke completely with the user not being able to log in with the correct password. I ended up having to delete that member profile and start from scratch.

So I'm concluding that there is a problem with those characters in some way, or maybe the username was just too short."	Venutius
	63985	Profile Update success message not announced by screen readers		Users		normal	normal	Future Release	defect (bug)	new	has-patch	2025-09-15T23:02:03Z	2026-09-22T15:22:26Z	"This is related to [https://core.trac.wordpress.org/ticket/63972 #63972], but I am opening a separate issue for easier tracking and because I am unsure if all admin messages can be modified at once or if they need to be modified individually. 

When a user edits their profile on `/wp-admin/profile.php`, the page reloads with a visible success message, but screen readers do not announce it. When the page reloads, the screen reader focus is at the top of the page, and the screen reader reads content from that point forward. It is unclear whether the profile update was saved, and users must explore the page to find the success message.

[https://drive.google.com/file/d/125NqqL79gu7z15UXtlTGObY4nbGGZ1l1/view?usp=sharing Image of NVDA not reading the success message after a user profile is updated]

This is a [https://www.w3.org/WAI/WCAG21/Understanding/status-messages.html 4.1.3: Status Messages (Level AA) failure].

As noted in 63972, to make screen reader users announce the success message after the page reloads, the focus needs to be set on the message container when the page reloads. This is probably the easiest fix. Otherwise, the save action could be changed to not require a reload and the message could be provided with `wp.a11y.speak()`"	alh0319
	58527	Rest password error handling issue for email		Users		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-06-13T12:13:02Z	2023-06-23T08:48:39Z	"Hello,

I am trying to reset password in user edit screen  without configuring email services so I got **""Error: The email could not be sent. Your site may not be correctly configured to send emails. Get support for resetting your password.""** but same thing I am trying in user listing page so I got **""Password reset link sent.""** 
this message.

so It should be same."	hiren1094
	53975	Send Reset Password bulk-action/link missing for non-super admins (multi-site only)		Users	5.8	normal	normal	Awaiting Review	defect (bug)	new		2021-08-22T00:26:24Z	2021-08-22T10:49:56Z	"Admin users in multi-site do not have the ability to send password reset emails from /wp-admin/users.php.

Repro Steps:
On a site with multisite, create a user, assign admin role.
Go to /wp-admin/users.php.

Expected Results:
Admin can send a reset password email to any user.

Actual Results:
Send password reset link missing from actions links
Send password reset option missing from bulk-actions drop-down

Other Information:
class-wp-users.php -> get_bulk_actions() uses ""if ( current_user_can( 'edit_users' ) )"" as the condition to determine if this can be allowed. The same check is performed in the single_row() method when the actions are specified.

I understand there are restrictions in multi-site for user creation/editing for non-super admins, however I believe this is not a security action and should not be restricted for site administrators."	jcutler
	45296	Serious side-effects when login in another tab after session expiration in first tab		Users		normal	normal	Awaiting Review	defect (bug)	new		2018-11-06T08:31:26Z	2018-11-06T22:24:04Z	"= A. STEPS TO REPRODUCE:

1. Start editing a new blog post.
2. Open a preview of it in some other browser tab.
3. Leave it open and hibernate computer for several hours (or otherwise expire the session without refreshing / closing the editor).
4. Add a new comment to that blog that requires moderation or otherwise cause owner to receive e-mail with a link to a blog.
5. Click on received link. New browser tab or window will open. Session is expired so login screen appears (correct!).
6. Login to WordPress.
7. Go back to the other / left open / hibernated browser tabs and try to do anything.

In that ""old"" / other tab you're logged-off / you have session expired (even though you have just logged in again), but WordPress isn't able to handle this situation gracefully.

= B. SIDE-EFFECTS

== B1. UNABLE TO ADD AN IMAGE

1. An attempt to add an image causes image browser to display ""loading knob"" infinitely.

== B2. UNABLE TO SAVE THE DRAFT

1. An attempt to save the draft actually DESTROYS the draft in the database.
2. Clicking this button causes WordPress to display login screen (even though you're already logged in; see below).
3. From this moment on your draft preview (the other ""old"" tab) will be constantly showing ""Page not found"".
4. After publishing and unpublishing the page it gets even worse -- only ""Page not found"" page title appears in tab and tab is constantly being refreshed endlessly by the browser.

== B3. UNABLE TO LOGIN

1. An attempt to refresh the page displays login screen (even though you're already logged in).
2. Logging in is impossible. After login WordPress displays login page again and says that browser has cookies disabled (not true).
3. To solve this problem one must restart entire browser (cleaning session cookies?) and login again.

= C. Conclusions

Restarting browser solves the B3 and B1 problems only. B2 problem partially remains. Wordpress is able to save the draft, but still doing this incorrectly and later isn't able to show preview of the post, claiming that page is not found or reloading page forever.

To solve last part of B2 problem one must restart browser, re-login and save the draft several times."	trejder
	16833	Signup mechanism shortens usernames without warning		Users	3.0	normal	normal	Future Release	defect (bug)	new	dev-feedback	2011-03-11T15:09:23Z	2025-06-26T14:31:24Z	"When a user signs up for an account on a wordpress blog, if their chosen username is longer than the limit, wordpress chops of the end of the username, without warning the user, and without offering the user the opportunity to choose again.

Steps to reproduce:  Go to a wordpress blog, sign up with a long username, and read the confirmation email.  An example: forum.xbmc.org, which has a limit of 15 characters."	hughcharlesparker
	47941	URL with umlaut is sanitized in user-edit.php form		Users		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-08-27T23:53:17Z	2019-08-29T03:08:51Z	"I'm trying to add the LinkedIn URL to a user whose URL is `https://www.linkedin.com/in/frank-rösner-83736/`

When I copy that URL from the browser, the ö in the url becomes `https://www.linkedin.com/in/frank-r%C3%B6sner-83736/`

Pasting that in the LinkedIn url makes `%C3%B6` disappear."	smaffulli
	61874	Unable to access WordPress login session during login		Users		normal	normal	Awaiting Review	defect (bug)	new		2024-08-15T07:00:12Z	2024-08-15T07:03:21Z	"WordPress Sessions are based on a Key which is stored in the Auth cookies, and during each login a new session is initiated.

This session token value is only stored in the authentication cookie. In order to retrieve it, the auth cookies must be set in `$_COOKIE`, which is only done by a client-request.

This leads to an awkward situation, where WordPress will create a login session, create cookies based on it, and then have no ability to let any further executed  code know the session details.

To complicate matters, the logic for retrieving the current user is awkward as Core applies two different methodologies between login and logout:
 - `wp_signon()` doesn't set the `$current_user` upon login (#39385) despite
 - `wp_logout()` clears the `$current_user` global upon logout (#35488)

As a result of that, during the `login_redirect` filter the user will be logged out, and during the `logout_redirect` filter the user will also be logged out (despite the user being logged in according to the cookies superglobal).

For example, the following code does two things:
1. Sets additional data in the user session on login (Similar to the Two-Factor plugin)
2. Hooks to `login_redirect` filter with the intention of acting upon data in the current user session.

{{{#!php
<?php
add_filter( 'attach_session_information', function( $session ) {
	$session['foo'] = 'bar';
	return $session;
} );

add_filter( 'login_redirect', function( $redirect, $orig_redirect, $user ) {
	var_dump( [
		'variant' => 'Current',
		'$user->ID' => $user->ID,
		'get_current_user_id()' => get_current_user_id(),
		'wp_get_session_token()' => wp_get_session_token(),
		'session_data' => WP_Session_Tokens::get_instance( $user->ID )->get( wp_get_session_token() )
	] );
	die();
}, 10, 3 );
}}}

which results in this output:
{{{
wp-content/mu-plugins/example.php:
array (size=5)
  'variant' => string 'Current' (length=7)
  '$user->ID' => int 1
  'get_current_user_id()' => int 0
  'wp_get_session_token()' => string '' (length=0)
  'session_data' => null
}}}

tl;dr: It's not possible (without hoops, see comments) to retrieve the current user session data after login."	dd32
	60576	Unable to change contact email		Users		normal	normal	Awaiting Review	defect (bug)	new		2024-02-19T19:04:05Z	2025-05-12T01:38:18Z	Under users profile, I have been unable to have pending email change approved. I have looked at all the possible reasons this can happen but nothing has helped.	douglas447
	48459	Unable to list users with 'No role for this site'		Users	5.2.4	normal	normal	Awaiting Review	defect (bug)	new		2019-10-29T17:07:37Z	2019-10-30T09:26:54Z	"I noticed that I had one user registered on my site with 'No role' in the summary. However, clicking on 'No Role' lists all [?] users, rather than the one I wanted [so I could remove it]. The only way to find it was to page through all the users (in my case the 3rd) until I found one with a role of 'None'.

To reproduce: Create a user; Edit the user and set role to 'No role for this site'; List all users; Click on 'No role' in the summary. This **should** display just the one user?

[Is it significant the summary shows as 'No role' but the listing shows 'None']
"	ahall41
	57413	Updating a user email via rest api doesn't trigger confirmation email		Users		normal	normal	7.3	defect (bug)	new	has-patch	2023-01-03T07:08:17Z	2026-11-03T18:54:52Z	"When a user changes their email address through `wp-admin/profile.php` the email change is delayed until the user clicks a confirmation link in their email. This was implemented via #16470.

This doesn't happen when an administrator changes another users email address.

When a user updates their own email through the rest API (ie. `POST /wp-json/wp/v2/users/1`) the confirmation email is also not triggered, and the email change occurs instantly.

This is because the code for the email confirmation is a UI-only method, it's not attached to the user update event, simply the profile.php page submission.

The PR that will be attached to this will re-work the existing code to more generalise it and call it from the REST API.[[BR]]
As part of that, the confirmation link being changed from `wp-admin/profile.php` to  `/wp-login.php?action=confirm-email-change...` makes more sense to me.

This could have unintended effects, as those using the REST API might be expecting changes to occur without any further action from the user, such as when there is a custom front-end, which this will break. Implementations would need to be updated to use a filter to remove the email confirmation step."	dd32
	43796	User Role with integer role name not showing in admin filter list		Users	4.9	lowest	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2018-04-18T08:38:58Z	2026-01-12T18:05:33Z	When we create a new user role using add_role function and role name is an integer then assign that role to users and that role will not display on top of User listing. 	aiyaz
	47833	"User deletion: Using the link ""deletion"", one won't be asked about what to do with this users content after deletion"		Users	5.2.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-08-04T18:24:07Z	2019-08-04T21:18:25Z	"Hi WP-Team!

There are two ways how deletions of users are being handled by WordPress:
1) If you delete a user by selecting ""delete"" underneath the username, the user will be deleted.
2) If you insted first select the users name and then select ""Bulk action/delete"" (via drop-down), you will be asked about what you'd like to do with the users contents after deletion.

The expected behaviour would be, that one is always being asked about what to do with the users contents after deletion.

Cheers,

Kai

"	kosmicon
	59324	User list		Users	5.2.2	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2023-09-11T11:22:54Z	2023-09-13T03:40:28Z	"Hello, 

I have the site and operates well. But suddenly, the Users menu from dashboard, I can not see the users list even I've loggined as a admin. 

[[Image(https://imgur.com/a/NxdJG85)]]
From the back-end, it seems there are the data in there, but seems the front-end is not displaying the list. 

Is there any similar case reported? 
So far, I deactivated all plug-in, but no sucess. I have checked the wp-admin/users.php file but no problem.  
Please let me know where I can look for. Thanks. 

"	kylechoi
	47674	Users forbidden to confirm email changes		Users	5.2.2	normal	normal	Awaiting Review	defect (bug)	new		2019-07-10T16:15:54Z	2019-07-10T17:05:55Z	This is the same problem as #38451, and I believe the solution is similar, except that it has to be done in wp-includes/user.php	jean-gui
	54102	Users with email address's containing & shows up as HTML &amp breaking certain connectivity		Users	5.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-09-09T11:01:47Z	2026-11-03T13:12:03Z	"The email address is set to  tes&123@go6.co.uk  but WordPress back end-user panel is treating it as tes&amp123@go6.co.uk which is causing malformed results when trying to perform other actions we need.


See screenshot - https://i.snipboard.io/VHAgmO.jpg"	waynep16
	53199	WP_User::add_role() runs even if the added role is already set		Users	2.0	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2021-05-13T11:27:05Z	2021-05-13T15:46:07Z	"When adding a role using `WP_User::add_role()` the function is run even though the role is already set for the given user. Hence, the also action `add_user_role` is fired when it should not.

This behavior is different from `WP_User::remove_role()` that exits the function if the role is not currently set, and hence the action `remove_user_role` does not fire - as one would expect.

An easy fix would be to add `in_array( $role, $this->roles, true )` to the test in [[https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-user.php#L540|class-wp-user.php on Line 540]] resulting in the following:


{{{
if ( empty( $role ) || in_array( $role, $this->roles, true ) ) {
}}}

Not sure if there are any backward-compatibility issues with this solution, as the action would not be called anymore in situations where previously it was called. A solution could be to run the action nonetheless, which would, however, kinda obsolete the fix. Another solution could be to introduce a new action, e.g. `add_user_role_requested`:


{{{
if ( empty( $role ) ) {
	return;
}

/**
 * Fires immediately after the user has been given a new role.
 *
 * @since x.x.x
 *
 * @param int    $user_id The user ID.
 * @param string $role    The new role.
 */
do_action( 'add_user_role_requested', $this->ID, $role );

if ( in_array( $role, $this->roles, true ) ) {
    return;
}

}}}

This filter uses the same syntax, than the existing `add_user_role`. I personally would prefer to pass the user object (`$this`) rather than the user ID. Maybe the user object could be passed as a third argument to both actions.
"	bhujagendra
	54310	WP_User_Query does not return results in the same format if fields set to all_with_meta and doesn't return any metadata		Users		normal	normal	Awaiting Review	defect (bug)	new	needs-unit-tests	2021-10-22T17:54:26Z	2021-10-25T23:32:25Z	"Digging into WP_User_Query if you set the fields to all_with_meta it returns an array index by the user_ID veers a keyed list for all other results

this is the 
{{{
		if ( 'all_with_meta' === $qv['fields'] ) {
			cache_users( $this->results );

			$r = array();
			foreach ( $this->results as $userid ) {
				$r[ $userid ] = new WP_User( $userid, '', $qv['blog_id'] );
			}

			$this->results = $r;
		} elseif ( 'all' === $qv['fields'] ) {
			foreach ( $this->results as $key => $user ) {
				$this->results[ $key ] = new WP_User( $user, '', $qv['blog_id'] );
			}
		}
}}}
  

I feel we should return the same shape array for both so propose to set the all to array index to the User_ID's

with a change like this

{{{
		if ( 'all_with_meta' === $qv['fields'] ) {
			cache_users( $this->results );

			$r = array();
			foreach ( $this->results as $userid ) {
				$r[ $userid ] = new WP_User( $userid, '', $qv['blog_id'] );
			}

			$this->results = $r;
		} elseif ( 'all' === $qv['fields'] ) {
			foreach ( $this->results as $user ) {
				$this->results[ $user->ID ] = new WP_User( $user, '', $qv['blog_id'] );
			}
		}
}}}

And better still it doesn't return the meta values !!!

So let's add this as well


{{{
		if ( 'all_with_meta' === $qv['fields'] ) {
			cache_users( $this->results );

			$r = array();
			foreach ( $this->results as $userid ) {
				$r[ $userid ] = new WP_User( $userid, '', $qv['blog_id'] );
				$r[ $userid ]->meta = get_user_meta( $userid );
			}

			$this->results = $r;
		} elseif ( 'all' === $qv['fields'] ) {
			foreach ( $this->results as $key => $user ) {
				$this->results[ $key ] = new WP_User( $user, '', $qv['blog_id'] );
			}
		}
}}}



"	pbearne
	63687	While navigating menu from Add User to any menu it asking for changes but did not add anything.		Users	6.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-07-11T05:55:33Z	2025-08-01T17:31:15Z	While navigating from one by one menu then visit Add user menu and navigate to any other menu then it is asking about Changes Propmt but did not add any details in Add User form.	akshaykungiri
	45730	WordPress upgraded 5.0.1 after password field is not working on add/edit user form		Users	5.0.1	normal	normal	Awaiting Review	defect (bug)	new	close	2018-12-21T07:34:28Z	2025-10-23T11:16:37Z	"Hello,

WordPress upgraded 5.0.1 after password field is not working on add/edit user form.

Please help me.

Thanks in advanced.

Regards,
Pooja Joshi."	poojabeeline
	44510	count_user_posts() does not check for empty $userid		Users		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-07-04T09:31:42Z	2018-07-07T13:56:54Z	"If `count_user_posts()` is called with a `NULL` `$userid`, it will return the total count of all site posts, rather than 0 or some error.

I think this should not be expected behavior and we should bail early if `$userid` is `NULL`. This happens because `get_posts_by_author_sql()` then ignores the `$userid` arg if it is NULL.

https://core.trac.wordpress.org/browser/tags/4.9.6/src/wp-includes/user.php#L347"	Ste_95
	56166	get_item_permissions_check		Users	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-07-07T07:27:19Z	2022-07-07T13:54:27Z	"I'm using the REST Api to fetch users. The logged in user should only have access to some specific user ID's. 

I'm trying to deny access to certain users by using the {{{user_has_cap}}} filter, but cannot get it to work.

After reading through the code from {{{WP_REST_Users_Controller}}} i found that the function {{{get_item_permissions_check}}} uses the AND {{{&&}}} operator, while i think it should be OR {{{||}}}? The {{{! count_user_posts( $user->ID, $types )}}} is always false (assuming the user has posts), so regardless of what i do in the {{{user_has_cap}}}, i cannot deny access.

https://github.com/WordPress/wordpress-develop/blob/6.0/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php#L445


Perhaps i'm approaching this the wrong way, maybe there is another way to achieve what i want?

"	marijnboekel
	44857	get_object_subtype uses get_user_by before it's defined		Users	4.9.8	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2018-08-28T09:35:18Z	2019-04-03T09:36:44Z	"In 'get_object_subtype' on line 1308 in wp-includes/meta.php, the function 'get_user_by' is used. This function is defined in wp-includes/pluggable.php (line 87-109). However, 'pluggable.php' is not loaded until after the plugins have initialized (see wp-settings.php line 160). Therefore, the situation can occur that 'get_object_subtype' calls a function that isn't defined yet.

Concretely, this situation occurs in the WPML plugin, in combination with a multisite installation. However, there are many other situations where it could occur (anywhere in any plugin initialization code). If you add a new site, the WPML plugin will try to assign the network admin new capabilities by calling (WP_User)->add_cap for all of the network administrators. 'add_cap' calls 'update_user_meta', which calls 'get_object_subtype', which results in a fatal error, which then displays a HTTP 500 error whenever the user is trying to access the WordPress dashboard. Fairly dramatic, indeed.

For any googlers, you can resolve this issue by creating a file 'wpml-multisite-fix.php' in 'wp-content/mu-plugins', with the following content:

{{{
<?php

if ( ! function_exists( 'get_user_by' ) ) {
	/**
	 * Define the 'get_user_by' function here instead of in pluggable.php, because WP 4.9.8 has a bug -
	 * it uses 'get_user_by' before it's included (see meta.php line 1308, and see that it isn't
	 * included yet in wp-settings.php line 160).
	 *
	 * @param string     $field The field to retrieve the user with. id | ID | slug | email | login.
	 * @param int|string $value A value for $field. A user ID, slug, email address, or login name.
	 * @return WP_User|false WP_User object on success, false on failure.
	 */
	function get_user_by( $field, $value ) {
		$userdata = WP_User::get_data_by( $field, $value );

		if ( ! $userdata ) {
			return false;
		}

		$user = new WP_User();
		$user->init( $userdata );

		return $user;
	}
}
}}}"	infostreams
	44634	multisite: WP_User compatibility keys inacessible after switch_to_blog		Users	4.9.7	normal	normal	Awaiting Review	defect (bug)	new		2018-07-24T18:19:52Z	2018-07-24T18:19:52Z	"Some WP_User attributes are accessed using $back_compat_keys and get_user_meta:

https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-user.php#L121
https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-user.php#L312

$back_compat_keys is static and defined when the first WP_User is instantiated.
This process hardcodes $wpdb->prefix into some keys (e.g. user_level), preventing it from functioning correctly after switch_to_blog().

Additionally, unsetting any of these attributes for one user will unset it for all Users, due to $back_compat_keys being static:
https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-user.php#L374"	flaviozavan
	59724	tweak to translation prompt in wp_site_admin_email_change_notification		Users		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-10-24T21:01:10Z	2023-10-25T09:24:44Z		pbearne
	64059	wp_die() status code Upgrade/Install component updates (parent ticket: #64009)		Users		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-09-30T17:48:34Z	2025-11-22T03:43:34Z	"If you have come here directly, please refer back to the parent ticket here: [https://core.trac.wordpress.org/ticket/64009 #64009]

This ticket is regarding the `wp_die()` function calls within the Media component and will cover the following locations. Please note links were correct at the time of testing and writing this up, but line numbers may have changed slightly:

|| **Filepath** || **Line Number** || **Context** || **Status Code** || **New Code** || **Code Meaning** ||
|| src/wp-admin/users.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/users.php#L249 249] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/export-personal-data.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/export-personal-data.php#L13 13] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/erase-personal-data.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/erase-personal-data.php#L13 13] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/user-edit.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/user-edit.php#L28 28] || Error: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/user-edit.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/user-edit.php#L30 30] || Error: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/user-edit.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/user-edit.php#L104 104] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/user-edit.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/user-edit.php#L136 136] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/user-edit.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/user-edit.php#L195 195] || User Permissions: does not have access || 500 || 403 || Forbidden ||

There are however the following function calls I have not touched as I felt they were already valid with their current status code:

|| **Filepath** || **Line Number** || **Status Code** ||
|| src/wp-admin/includes/user.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/user.php#L62 62] || 403 ||
|| src/wp-admin/user-new.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/user-new.php#L14 14] || 302 ||
|| src/wp-admin/user-new.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/user-new.php#L21 21] || 403 ||
|| src/wp-admin/user-new.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/user-new.php#L55 55] || 403 ||
|| src/wp-admin/user-new.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/user-new.php#L193 193] || 403 ||
|| src/wp-admin/users.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/users.php#L14 14] || 403 ||
|| src/wp-admin/users.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/users.php#L114 114] || 403 ||
|| src/wp-admin/users.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/users.php#L131 131] || 403 ||
|| src/wp-admin/users.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/users.php#L143 143] || 403 ||
|| src/wp-admin/users.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/users.php#L157 157] || 403 ||
|| src/wp-admin/users.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/users.php#L173 173] || 400 ||
|| src/wp-admin/users.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/users.php#L193 193] || 403 ||
|| src/wp-admin/users.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/users.php#L201 201] || 403 ||
|| src/wp-admin/users.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/users.php#L276 276] || 400 ||
|| src/wp-admin/users.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/users.php#L461 461] || 403 ||
|| src/wp-admin/users.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/users.php#L470 470] || 403 ||
|| src/wp-admin/users.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/users.php#L493 493] || 400 ||

Please have a look through the suggested changes documented here, and any/all feedback is appreciated. 😃"	callumbw95
	40949	wp_dropdown_users($args) is not returning desired list of users		Users	4.7.5	normal	normal	Awaiting Review	defect (bug)	new		2017-06-08T14:38:07Z	2017-06-08T14:38:07Z	"Below is a list of users with their roles:


{{{
aniket: Subscriber, Participant
cjx2009: Editor, Participant
jackoliv: Author, Participant
creamy90: Editor, Participant
lalitgarg: Participant
warrior: Contributor, Moderator
}}}


Here is the $args array:


{{{#!php
<?php
$args = array(
  ...
  'hide_if_only_one_author' => null,
  'role' => array('Subscriber', 'Participant'),
  'role__in => array('Editor', 'Contributor'),
  'role__not_in => null
);
}}}

When calling `wp_dropdown_users` i don't see any dropdown list.
While, according to above users and their respective roles the list should bring up the following users:

{{{
aniket (matches exactly with 'role': Subscriber, Participant)
cjx2009 (matches 'role__in': Editor)
warrior (matches 'role__in': Contributor)
}}}


Even if I do not use a combination like above and just use `role => array('Subscriber', 'Participant')` nothing appears (I already have `'hide_if_only_one_author' => null,`).

Furthermore, if I set `role => null` and use `role__in => array('Contributor', 'Moderator')`, again there is nothing when I am expecting user `warrior` will come up in  dropdown list! But if I only use 'Contributor' the dropdown appears with `warrior`."	subrataemfluence
	66337	wp_insert_user() allows duplicate email addresses containing an apostrophe		Users		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-19T10:27:29Z	2026-10-29T10:24:15Z	"== Description ==

`wp_insert_user()` runs `pre_user_email`, which includes `wp_filter_kses`. That filter expects slashed input and returns slashed output, so for `o'brien@example.com` the value of `$user_email` at the duplicate check is `o\'brien@example.com`.

`email_exists( $user_email )` then queries for the literal backslashed string, never matches the stored row, and the duplicate check silently passes. The value is unslashed later via `wp_unslash( $compacted )`, so the duplicate is saved with the correct address.

[57711] (#52529) fixed the related comparison on update by slashing `$old_user_data->user_email`, but the `email_exists()` lookup was not changed.

== Steps to reproduce ==

Tested on trunk 7.2-alpha-63166, MariaDB 10.11.

{{{
wp_insert_user( wp_slash( array( 'user_login' => 'a', 'user_pass' => 'x', 'user_email' => ""o'brien@example.com"" ) ) );
wp_insert_user( wp_slash( array( 'user_login' => 'b', 'user_pass' => 'x', 'user_email' => ""o'brien@example.com"" ) ) );
// Second call succeeds. With plain@example.com it correctly returns existing_user_email.
}}}

Results with an existing user at `o'brien@example.com`:

||= Path =||= Result =||
|| `wp_insert_user()`, slashed input || duplicate created ||
|| `wp_insert_user()`, unslashed input || duplicate created ||
|| `wp_update_user()` moving another user to that email || allowed ||
|| `POST /wp/v2/users` (admin) || 201, duplicate created ||
|| `register_new_user()` || blocked (own `email_exists()` check) ||
|| `POST /wp/v2/users/me` (subscriber) || blocked (`rest_user_invalid_email`) ||

Front-end registration and self-service profile edits are protected by their own checks, so this needs `create_users` or direct API use. It is a data integrity issue, not a privilege escalation.

== Impact ==

Once duplicates exist, `get_user_by( 'email' )` returns whichever row the database hands back first. Anything keyed on email (password reset by email, login with email, plugins that look users up by email) can then resolve to the wrong account.

== Proposed fix ==

Run the comparison and lookup against the unslashed value, for example `$check_email = wp_unslash( $user_email );` used in both `strcasecmp()` and `email_exists()`. This could also make the slashing of `$old_user_data->user_email` from [57711] unnecessary, which is worth confirming in review.

Tests should cover insert (slashed and unslashed), update to another user's apostrophe email, and REST create, alongside the existing `test_reset_password_with_apostrophe_in_email()`."	abhishekfdd
	41522	wp_set_password() doesn't trigger a changed password notification		Users		normal	normal	Awaiting Review	defect (bug)	new	close	2017-08-01T20:30:59Z	2024-06-30T10:45:58Z	"If {{{wp_update_user()}}} is used to update a user's password, a notification is sent to the user telling them their password has changed.

However, the same doesn't happen if {{{wp_set_password()}}} is used to update a user's password."	henry.wright
	49418	Ability to order users by number of posts in custom post type		Users	5.4	normal	trivial	Awaiting Review	enhancement	new	close	2020-02-12T13:07:15Z	2025-07-08T17:54:22Z	When searching for users by post_count, post type `post` is hardcoded in `WP_User_Query` class at line 765. I would like to suggest adding a parameter that allows sorting users by post count in a custom post type.	meevly
	49639	Add a filter on wp_insert_user function regarding $user_pass		Users		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2020-03-13T06:40:12Z	2026-10-07T11:14:10Z	"/5.3/src/wp-includes/user.php
`function wp_insert_user ( $userdata )` 1542 line
Please apply the below filter so that I can add a rule on user typed password before hashing the password.
{{{
$pre_user_password = apply_filters(  'pre_user_password', $user_pass );
}}}
Thank you.

Best regards,
Jen"	stokim
	45359	Add checkbox to enable or disable sending out emails on password changes from backend		Users	4.9.8	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2018-11-15T16:54:29Z	2025-07-01T08:51:46Z	"Could we please add a checkbox on the user backend, that will toggle the sending of emails when something is changed in the backend, eg. and most important, the password?

It is a huge mistake trigger when developing sites or debugging staging/live sites with users or customers.

A little checkbox below the password field to stop WP from sending out a notification would be so great!"	atz
	46035	Add set_display_name method to WP_Roles class		Users		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2019-01-18T13:44:45Z	2019-02-01T05:29:27Z	"Currently, people are following tutorials on line on how to 'change' the display name of certain user roles in WordPress, by basically overwriting the name property every time on either `init` or `admin_init` hook.

This is total overkill, and a hacky way to change the role display name (not role name which governs the capabilities stored in the database).

If there was a method `set_display_name` (and a corresponding getter `get_display_name`) this cosmetic change could be done only once on plugin activation - this change would then be permanent in the database and you wouldn't need to run the 'rewrite' all the time just to change name (Editor to Blog Editor for instance, or Administrator to Operations).

Only way, to do this now is to copy the entire `WP_Role` object, then remove the original one, change one property and add a 'new' role.

This feels super hacky to me.

Thoughts, opinions, suggestions?"	dingo_d
	41199	Allow the optional editing of an author slug		Users		normal	normal	Awaiting Review	enhancement	reopened		2017-06-29T09:40:26Z	2017-06-30T13:35:17Z	"At the moment an author slug cannot be changed, although plugins are available to allow this. I believe that WordPress should be able to do this, ""out of the box"".

Changes to names, whether through marriage, change of sexual orientation or many other reasons, are important to the individuals that go through it. The original slug, by remaining unchanged, is still the link to an authors page on WordPress and may be the last thing an author, post name change, wants to see.

I think, as a very basic change, there should be the option to change this slug, if required (but not a requirement because of how it will affect existing author links). To take this a stage further, if possible, we should also add the option to allow the original slug to also work too."	dartiss
	51275	Auto logout loses your content if not saved		Users	5.5.1	normal	normal	Awaiting Review	enhancement	reopened		2020-09-09T15:15:33Z	2020-10-02T12:48:33Z	"Not sure if this is a bug or by design, but it's annoying.

I was in the middle of building (actively working on) up a large menu when the ""Are you human"" modal popped up, followed by the login form. After login, I went to save the menu and I got the ""Link no longer valid"" error. So my only option was to refresh the page which meant losing all my work.

I'd imagine that this would happen if I was in the middle of writing a post/page also - which would have been even more frustrating. 

I know that this is done for security reasons, which is fine, but there should be mechanism to stop you looking you unsaved content when it happens."	cucocreative
	50196	Can't track users using nickname		Users		normal	normal	Awaiting Review	enhancement	new		2020-05-17T18:00:48Z	2020-05-17T19:28:58Z	"SO, i logged into my multi-author wordpress today and seen posts from someone called David :  https://screencast.com/t/paGJkLqIXf

the name sounded new to me and then i went to users page ( /wp-admin/users.php ) and could not find anyone with the name ""David"" ( https://screencast.com/t/BY2S7WjVWyGU )

then i had to manually visit each and every user profile to finally locate who the user ""David"" actually is  ( https://screencast.com/t/mVuD2KV7z2qV )


I guess it will be good if there is an option in users page to display nicknames also.
"	kumar314
	49641	Clarify what happens when meta_value is `''` in get_users like functions.		Users		normal	normal	Awaiting Review	enhancement	new	needs-docs	2020-03-13T13:59:36Z	2022-08-19T11:30:13Z	"Because I didn't realize that doing this query:
{{{
        $all_user_ids = get_users([
            'fields' => 'id',
            'meta_key' => 'secret_access_key',
            'meta_compare' => '=',
            'meta_value' => $dynamic_value_from_frontend
        ]);
}}}
Given the credibility, history & robustness of `get_users`, which entered under the hood of ""that thing just works, don't doubt it"", if {{{$dynamic_value_from_frontned}}} were to be just a mere`''`, instead of giving me an empty list of no users, **the query would return a list of all users.** What happens when you rely on this list for mission-critical things? The worst.

In my case, this list was very crucial for allowing access to customer websites, based on a secret string only the developers, us, know, we are able to access these sites and inherit the identity of our customer (mostly admin accounts). The way we achieve this is we attach that secret phrase to their `user_meta` and as you can see, we attempt to hit an endpoint that looks at all the users and returns us with the one that matches the string we provided.

Unfortunately, as I've said before, because our assumption, as well as our partners' and personal friends, some of whom are veterans in the industry, was that `get_users` would forfeit completely if not given a key at all, instead, it just simply decides to ignore the field completely and retrieve based on the key alone.

The more interesting fact is that if we set the `meta_value` to `False`, it actually does the check and doesn't return any users.

Here's a PoC: https://pastebin.com/vfaVuRp0

Please make it clear that a `meta_value` that equals to `''` is not the same as it being `False` and that the system defaults to just using the key, skipping all checks. The desired behavior should be:

1. When the `meta_value` is missing altogether, it means we're searching just for key.
2. When the `meta_value` is `''`, it should be treated as a value and searched against.
3. When the `meta_value` is `False`, it should be treated as a value and searched against.

I do recognize that it's probably impossible to go back and change this and so, for me at least, it's even more reason to push this very important note to the front.

Please mention this in either the comments for `get_users`, in the codebase itself or make a phpcs rule for this. In other words, please specify that you must ensure the input for the `meta_value` is properly checked for before actually being used due to this exact case.

Thank you.

----

In our case, it would've been a disaster if we didn't fuzz around. While I completely understand it's us that should make sure whatever is passed is proper, I believe the community is not aware of this edge case not due to bad coding practices but simply due to the need to implement dynamic queries like this being very rare and as such, overlooked.

We've also notified 4 vendors, one of which is perhaps the biggest in terms of reach about a potential issue with dynamic query building like we had. In the case of a membership plugin that seemed to have all security checks in place, as we did, it resulted in certain users being given access to another user's property."	growthwp
	43013	Confirmation Email workaround		Users	4.9.1	normal	normal	Awaiting Review	enhancement	new		2018-01-02T21:41:35Z	2018-01-02T21:41:35Z	"This is a follow-up to #16470.

Not after support but have a question about this new addition on single-site installs. When I set new client websites up, I change the administrator email address (mine) to a non-administrator user (the client) so I don't want them having to click an email to confirm the email change. To workaround this I access wp_options via phpmyadmin and change the email address in there, but if I refresh the General Settings there is a message stating that there is a pending change TO the email address I have changed from, so I click to cancel (which leaves the new email address set).

Would just like confirmation that this method is OK for my own reasons and that no confirmation emails would be sent by doing this.
Thanks"	adejones
	61272	Delete user when viewing their profile		Users	6.5.3	normal	normal	Awaiting Review	enhancement	new		2024-05-22T21:49:37Z	2024-05-23T13:17:40Z	"As an admin user I’m able to view the profile of other users. After reviewing the profile I want to delete the user. Why is it that I can’t delete the user (i.e. move to trash) while viewing their profile? Instead I have to delete it from the users list by -> copy their email address -> goto all users -> search for their email -> select trash.

Way more complicated than clicking a button to delete while viewing the user’s profile.

There should be a button to delete the user when viewing their profile."	Norm.Sash
	58312	Display password hint on additional screens	joedolson*	Users	4.3	normal	normal	7.3	enhancement	accepted	dev-feedback	2023-05-14T20:39:22Z	2026-10-25T05:42:09Z	"In WordPress 4.1.0, the function `wp_get_password_hint` was introduced. This function returns a hint to display to the user when creating a new password.

Currently, it is only used when user go through the ""Forget password"" steps. This ticket and the PR with it add the password hint to three screens, WordPress install screen, new user screen and user profile screen."	petitphp
	52486	Extra check to create administrator account		Users	5.6.1	normal	normal	Awaiting Review	enhancement	new		2021-02-10T09:43:14Z	2021-02-10T10:25:05Z	"In a site I manage, we usually need to create many users. All of the are not administrator but when we create it we can commit an error and assign them administrator role by mistake.

It would be great if we had some kind of extra check to avoid this kind of mistakes.

An administrator who creates users can take care but after many users, if someone commits an error, it can create a big security problem."	carazo
	43601	Improve error messaging when activating multisite users		Users		normal	normal	Awaiting Review	enhancement	new	has-patch	2018-03-21T16:15:56Z	2019-01-16T06:50:09Z	"We had a user on a multisite network try to activate their account and the only error message you get it ""Could not create user"". This is not helpful. We had to go digging through core to figure out why.

Right now it uses wpmu_create_user() which returns false if wp_create_user() returns an error, instead of returning the error message from wp_create_user(). An easy improvement would be for wpmu_create_user() to return this error message instead.

I've created a patch for a starting point. Will involve discussion over how much we want to update messaging for other interactions that use wpmu_create_user()."	bamadesigner
	37899	Make Profile Picture Section of Edit User Admin Page Filterable		Users	4.7	normal	normal	Awaiting Review	enhancement	new		2016-08-31T19:52:52Z	2017-02-02T12:55:00Z	"Currently the Edit User page contains a section under the Biography showing the user's Profile Picture (avatar). This picture isn't editable, because WordPress uses Gravatar.

This behavior isn't typical. More commonly, websites with self-created user accounts also allow the user to upload a custom profile picture. There are a number of plugins which implement this behavior:

https://wordpress.org/plugins/custom-user-profile-photo/
https://wordpress.org/plugins/metronet-profile-picture/
https://wordpress.org/plugins/wp-user-avatar/
https://wordpress.org/plugins/basic-user-avatars/
https://wordpress.org/plugins/simple-local-avatars/

They all share a problem though, which is that they can't touch the native Profile Picture section. They all add their own HTML elsewhere on the page. This results in an Edit User page with two Profile Picture sections. CSS can hide the native non-editable section, but that's not ideal.

I'd like to propose that we make the native profile section filterable, so that plugins can override it to enhance it directly rather than adding another section to the page.

If we move the hard-coded HTML of that section into a function call that is filterable, plugins could just enhance the native section itself. This would prevent multiple Profile Picture sections and keep everything in the native location on the page.

Alternatively and less ideally, just adding a do_action() call at the end of the native Profile Picture section would at least allow for the new controls to be added in the correct location on the page."	Kelderic
	54053	Multisite Users screen Mark as Spam status is not documented		Users	5.8	normal	normal	Awaiting Review	enhancement	new		2021-09-01T15:09:21Z	2021-09-06T05:28:07Z	"This issue was brought up in the support forums - https://wordpress.org/support/topic/finding-documentation-for-mark-as-spam-button/. 

I was also not able to find and clear documentation around what marking a user as spam actually means."	welcher
	56207	Multisite: record when a user is added to a site		Users		normal	normal	Awaiting Review	enhancement	new		2022-07-12T17:42:10Z	2022-07-13T22:48:56Z	This is a relatively small feature/enhancement request to record when a specific multisite user gets added to a site. Right now, we can detect whether a user is a member of a site, but the `user_registered` field on their user reflects their original user registration date, which doesn't reflect when they were added to any specific site, and may not be information that should be shared with site-level users.	daledupreez
	58152	Possible variable re-use	mujuonly	Users	6.3	normal	normal	Awaiting Review	enhancement	assigned	dev-feedback	2023-04-18T10:22:04Z	2023-04-19T23:33:40Z	The variable `$spam` is defined in the line 2228 in wp-includes/user.php and we can re-use the same variable in the line 2463 and 2646	mujuonly
	57508	Redirect after clicking reset password link does not return to original users table display page position		Users	6.1.1	normal	normal	Awaiting Review	enhancement	new		2023-01-19T20:31:52Z	2023-01-31T15:13:34Z	"It looks like the redirect does not pick up the search and paged variables in effect at the time the link is clicked. This resets the display of users back to the beginning.

in users.php

line 250:

		$redirect = add_query_arg(
			array(
				'reset_count' => $reset_count,
				'update'      => 'resetpassword',
			),

My end users find this an annoyance and so bring it to your attention. For destructive actions, this is less of an issue as the display changes."	mjdewitt
	66422	Single site: Creating user with invalid email shows contradictory empty_email and invalid_email errors		Users		low	normal	Awaiting Review	enhancement	new	has-patch	2026-10-30T16:53:41Z	2026-10-30T16:55:24Z	"Creating a new user on a single site with a non-empty but invalid email address (e.g. ""invalidemail"") shows two contradictory error messages for the same field:

  Error: The email address is not correct.
  Error: Please enter an email address.

The first message correctly reports that the email is invalid. The second is incorrect: the field was not empty.

== Root cause ==

When a new user is created on a single site in the admin, wp-admin/user-new.php calls the edit_user() function. In edit_user() (wp-admin/includes/user.php), the email is validated twice from different sources.

1. The first block validates $_POST[email] and, if invalid, adds
   `invalid_email` but does not assign the value to
   $user->user_email:

{{{
if ( isset( $_POST['email'] ) ) {
    $maybe_email = wp_unslash( $_POST['email'] );
    if ( is_string( $maybe_email ) && is_email( $maybe_email ) ) {
        $user->user_email = $maybe_email;
    } else {
        $errors->add( 'invalid_email', ... );
    }
}
}}}

2. The later block validates $user->user_email. Since the first block
   did not assign a value, it is empty and the `empty_email` error is
   added:

{{{
if ( empty( $user->user_email ) ) {
    $errors->add( 'empty_email', ... );
} elseif ( ! is_email( $user->user_email ) ) {
    ...
}
}}}

=== Steps to Reproduce
1. Go to Users > Add New (single site).
2. Fill in ""Username"" with any value, e.g. ""testuser"".
3. Fill in ""Email"" with a value that is not a valid address, e.g.
   ""invalidemail"" (no @).
4. Leave the password field as generated.
5. Click ""Add User"".
x. 🐞 Bug occurs: two contradictory error messages are shown.

=== Expected Results
1. Only the ""invalid_email"" error should be shown:
   Error: The email address is not correct.
2. No ""empty_email"" error should appear, since the field was not
   empty.

=== Actual Results
1. Two contradictory errors are shown:
   Error: The email address is not correct.
   Error: Please enter an email address.

 === Additional Notes
The user's email is validated in two different places, while a single check would suffice. I'm attaching a PR with a possible solution. It also unifies all email validation logic within the function."	jorgelopezrepiso
	66540	Tests: Add unit tests for the Post Author blocks		Users		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T09:12:51Z	2026-11-06T09:23:27Z	"The render callbacks of the Post Author blocks are not referenced by any test: `render_block_core_post_author()`, `render_block_core_post_author_name()` and `render_block_core_post_author_biography()` in `src/wp-includes/blocks/`.

This ticket adds tests for the author of the post and of the author archive, the post types that do not support authors, the avatar, the byline, the name and its link, the biography, the classes of the attributes, and the registration of the blocks."	hmbashar
	44358	Unable to search a user if username is an email address		Users		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2018-06-13T14:43:41Z	2019-01-16T06:50:09Z	"If a user has an email address in his username, that user is not searched in admin user list page.

Steps to reproduce:
- Create a new user and use an email address as the username, e.g. `abc@gmail.com`
- Make sure no user on the system has an email address which contains `abc@` in it
- Search a user with `abc@` keyword. No user will be returned.

I think since WordPress does not restrict the character `@` in username, the search should include username field even when there is `@` in search keyword.

Does this make any sense?

"	subrataemfluence
	61149	class WP_User(), mark prop $deleted as deprecated		Users		normal	trivial	Awaiting Review	enhancement	new	has-patch	2024-05-05T12:30:22Z	2024-06-07T16:49:31Z	"I've search the source code for the utility of column ''deleted'' in database table Users. There is only one mention of it in function wp_update_user_counts(), but that seems like irrelevant since 'spam' seems like its replacement. If that is the case the WP_User class should change the comment 

current:
{{{
* @property string $deleted
}}}

replacement:
{{{
* @property string $deleted Deprecated. Use {@see $spam} instead.
}}}


mark  "	ignatiusjeroe
	39067	wp_insert_user custom validation		Users		normal	normal	Awaiting Review	enhancement	new	has-patch	2016-12-04T19:29:02Z	2019-03-15T01:43:12Z	"Currently there are no hooks in wp_insert_user where plugin can hook to validate any custom validation and prevent to insert/update user.

If there can be added a hook before insert/update user to database, that will be very helpful for custom validation.

sample code can be following

{{{#!php
$custom_user_validate = apply_filters( 'custom_user_validate', false );

if ( is_wp_error( $custom_user_validate ) ) {
	return $custom_user_validate;
}

}}}
"	shamim51
	64131	A new function to test if a thing is an instance of the WP_User class		Users	6.9	normal	normal	Awaiting Review	feature request	new		2025-10-21T18:35:44Z	2025-10-21T20:34:47Z	"{{{#!php
<?php
function is_wp_user( $thing ) {
 return ( $thing instanceof WP_User );
}
}}}
"	profiletoggler
	63204	Add Admin Notes Feature for Users in WordPress Dashboard		Users		normal	normal	Awaiting Review	feature request	new		2025-03-31T21:07:07Z	2025-05-26T14:29:53Z	"Dear WordPress Core Team,

I would like to propose an enhancement to the WordPress user management system by introducing an Admin Notes feature for users in the dashboard. Currently, there is no built-in way for administrators to store and manage private notes about users. Many website administrators rely on third-party plugins or external tools to keep track of user-related information, which can be inefficient and fragmented.

Proposed Functionality:
Admin Notes Section: A new meta field in the user profile where administrators can add and view private notes.

Permissions: Only users with administrator privileges should be able to view and manage these notes.

Editing & Deletion: The ability to edit, update, and delete notes as needed.

Timestamp & Author Tracking: Optionally, each note can include a timestamp and the admin user who created it.

Search & Filter Integration: Admins should be able to search for users based on keywords in their notes.

Optional: Notes History: A log of previous notes to track changes over time.

Use Cases:
Membership Sites: Admins can store internal notes about user behavior, support history, or membership status.

E-Commerce (WooCommerce): Store notes regarding a customer's purchase history, disputes, or VIP status.

Multi-Author Blogs: Editors can leave internal feedback about contributors.

Educational Platforms: Notes about student progress or issues can be recorded for better tracking.

Why This Should Be in Core:
Enhances User Management: Provides a built-in way to store relevant information about users without needing third-party plugins.

Improves Administrative Efficiency: Reduces reliance on external spreadsheets or disconnected tools.

Better Collaboration: Multiple admins can keep track of internal user notes across different roles.

I believe this feature would greatly benefit the WordPress community and improve the overall user management experience. Thank you for considering this enhancement request.



Best regards,
Seyyed Ahmadreza Mahjoob"	anonymized_22016969
	65508	Introduce wp_get_user_roles() helper function		Users	7.0	normal	normal	Awaiting Review	feature request	new	dev-feedback	2026-06-22T07:54:50Z	2026-06-22T07:55:24Z	"## Summary

Introduce a new helper function, `wp_get_user_roles()`, to provide a public API for retrieving the roles assigned to a user.

Currently, developers need to retrieve a `WP_User` object and access its public `roles` property directly:

```php
$user  = get_userdata( $user_id );
$roles = $user ? $user->roles : array();
```

This requires knowledge of the internal structure of the `WP_User` object and exposes a public property instead of using a dedicated API.

## Proposed solution

Add a new helper function to `wp-includes/user.php`:

```php
/**
 * Retrieves the roles assigned to a user.
 *
 * @since 7.1
 *
 * @param int $user_id User ID.
 * @return string[] Array of role slugs. Returns an empty array if the user does not exist or has no assigned roles.
 */
function wp_get_user_roles( $user_id ) {
	$user = get_userdata( $user_id );

	if ( ! $user instanceof WP_User || empty( $user->roles ) ) {
		return array();
	}

	return $user->roles;
}
```

## Benefits

* Provides a dedicated public API for retrieving user roles.
* Avoids direct access to the `WP_User::$roles` property.
* Improves readability and consistency with existing user helper functions such as `wp_get_current_user()`.
* Simplifies a common pattern used by plugins and themes.

## Unit tests

Tests should cover:

* Valid user with a single role.
* Valid user with multiple roles.
* Invalid user ID.
* User with no assigned roles.
"	salmanshafiq8630
	48308	Is it possible to make Phone number as a default field in Contact Info section in users admin details page.		Users	5.2.3	normal	normal	Awaiting Review	feature request	new		2019-10-15T08:31:14Z	2019-10-15T08:31:14Z	It would be better if WordPress provide default field for Phone Number in Users admin page since Phone Number is a common field same as email id now a days.	rajilesh
	41931	Not possible to add custom display_name option		Users	4.8.2	normal	normal	Awaiting Review	feature request	new	has-patch	2017-09-20T15:42:28Z	2019-06-11T20:49:52Z	"In The Netherlands we do have insertion names, to be placed in between the first and last name. It is possible to add a custom field during registration, but in order to give the user the option to include the insertion name in his display_name, a core modification is necessary. 

Hereby the request to add a line to wp-admin/user-edit.php at line 422:

{{{#!php
<?php
  $public_display = apply_filters( 'edit_user_public_display_dropdown', $public_display, $profileuser);
}}}


This way, it is possible to add custom public_display options. "	xinne
	58854	Users should be able to reset their user preferences to default		Users		normal	normal	Awaiting Review	feature request	new		2023-07-19T17:41:45Z	2023-07-26T20:15:50Z	"I work with many end users of the block editor and one thing that has come up frequently is sometimes their user preferences settings have created a view state of the editor that makes it difficult to find a certain feature and gets confusing when we are training them.

What I'm hoping for is an option to reset a user's preferences. This would reset all options under Preferences back to default, reset any other toggle they have (full screen, toolbar, etc.) 

Ideally both a user and an admin would be able to access this function. Thanks for the consideration!

Related: https://wordpress.org/support/topic/reset-a-users-preferences-ie-block-editor-preferences/"	bozzmedia
	59216	add a filter on WP_User::get_data_by()		Users		normal	normal	Awaiting Review	feature request	new		2023-08-27T09:59:55Z	2023-08-27T09:59:55Z	"Hello i speak about this function https://github.com/WordPress/wordpress-develop/blob/6.3/src/wp-includes/class-wp-user.php#L193-L260 

function  WP_User::get_data_by()

$user = $wpdb->get_row(
			$wpdb->prepare(
				""SELECT * FROM $wpdb->users WHERE $db_field = %s LIMIT 1"",
				$value
			)
		);

It would be cool to filter the query or provide a own query.

Backstory: i run a shop under different domains and want that user can register with the same mail on different domains  but in background is the same WP Instance. 

"	stefanxyz
	62341	A bug in widgets.php - function wp_widget_rss_process		Widgets		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-11-04T08:27:44Z	2026-11-11T04:52:06Z	"Using a misconfigured Elementor plugin (most probably), we have experienced many ""Execution time exceeded"" errors. Finally, I was able to track the the function 

{{{#!php
function wp_widget_rss_process( $widget_rss, $check_feed = true ) {}
}}}

The function retrieves a $link (https://core.trac.wordpress.org/browser/tags/6.6.2/src/wp-includes/widgets.php#L1800)

{{{#!php
$link = esc_url( strip_tags( $rss->get_permalink() ) );
}}}

And then it attempts to clean the link (https://core.trac.wordpress.org/browser/tags/6.6.2/src/wp-includes/widgets.php#L1801):

{{{#!php
while ( stristr( $link, 'http' ) !== $link ) {
  $link = substr( $link, 1 );
}
}}}

When the $link does not contain the 'http' string, it ends in an endless loop. I do not know yet why the link did not contain the `http` string, but it happened. However the endless while loop is an obvious bug in the core of wordpress. 

Proposed solution:

{{{#!php
while ( strlen($link) > 0 && stristr( $link, 'http' ) !== $link ) {
  $link = substr( $link, 1 );
}
}}}
"	korric
	54500	Added Javascript (such as online chat) are displayed also in the widget editor		Widgets	5.8.2	normal	normal	Awaiting Review	defect (bug)	new		2021-11-24T08:22:51Z	2021-11-24T08:22:51Z	"See screenshots..
I don't think this is supposed to be like that, right?

[[Image(https://i.imgur.com/tXYvaM6.png)]]

[[Image(https://i.imgur.com/TSrKjU4.png)]]

specifically, this is
- theme GeneratePress
- tawk.to plugin"	mikulabc
	49398	Deactivating a widget can fail causing data loss		Widgets	5.3.2	normal	normal	Awaiting Review	defect (bug)	new	close	2020-02-11T00:33:47Z	2020-02-17T00:39:28Z	You cannot hide/toggle visibility of widgets. To stop one from showing on your site, you have to delete it which loses the widgets' content and settings. Surely this has been brought up before but I couldn't find a ticket. You can change posts' visibility without permanent deletion, why not widgets'? It seems like a large oversight.	lev0
	53959	Error message when creating new widget using block editor		Widgets	5.8	normal	normal	Awaiting Review	defect (bug)	new		2021-08-19T14:07:08Z	2021-08-23T14:48:47Z	"Our church website stm.org.uk is WordPress hosted by IONOS.

I have just tried the first update to the Content Sidebar since we were upgraded to WordPress 5.8.

I attempted to add the 'Breakfast Church' item using the new block editor, but I got a message:
There was an error. Invalid parameter(s): requests.

I ended up installing the 'classic widget editor' plugin and managed to create the item by adding two block widgets at the beginning, copying the block HTML from a similar item.

I did it this way, rather than setting up a text widget, to get a more consistent appearance. Incidentally, the 'our vicar' image widget has not been converted to a block and its appearance is not consistent with the others.

There seems to be no good reason for the error message."	mdrb55
	55438	Flaky result when saving widgets in the Widgets Editor		Widgets		normal	normal	Awaiting Review	defect (bug)	new		2022-03-22T07:19:13Z	2022-03-31T09:47:43Z	"I discovered this while trying to migrate the [https://github.com/WordPress/gutenberg/blob/3b1674a147c8e943b0d3727e0f4cbe379c2d9922/packages/e2e-tests/specs/widgets/editing-widgets.test.js#L123-L233 editing-widgets] e2e tests in Gutenberg. I think the test is currently skipped for the same reason.

By un-skipping the test and running it several times, it sometimes fails at the last step where the snapshot doesn't match. It mysteriously contains a `wp_inactive_widgets: ''` field in the serialized result. I think the bug is from a race condition in the REST API. I managed to record a HAR file so that you can plug it in Chrome's devtools and inspect it.

I'm not familiar with the PHP side of the code, but it seems like sometimes a widget block won't be saved to the specified sidebar, and instead be put inside `wp_inactive_widgets`.

Maybe someone with more knowledge around this can help debugging it? Sorry that there's isn't a reliable reproduction steps though."	kevin940726
	59518	I getting ::marker and unable to remove bacause html not support		Widgets	6.3.1	normal	normal	Awaiting Review	defect (bug)	new		2023-10-02T18:01:49Z	2023-10-02T18:01:49Z	"we know <li> should be inside <ol> or <ul> but here is without <ol> or <ul> that's why a default ::maker showing each widget:

screenshot: (https://prnt.sc/zRxK-EEXoGej)
screenshot 2: (https://prnt.sc/cPCKcLZ3YEfq)"	bmyadav91
	53822	Inconsistent handling of block equivalents of legacy widgets		Widgets	5.8	normal	normal	Awaiting Review	defect (bug)	new		2021-07-29T08:45:58Z	2022-03-23T10:58:47Z	"Assuming a site with a theme that supports block-based widget areas.

When using a widget block that maps to a legacy widget, WordPress will add additional classes on the frontend. This is handled through `WP_Widget_Block::get_dynamic_classname()`.

As an example when using the Latest Posts widget, this is the markup on the frontend:
{{{
<div class=""widget widget_block widget_recent_entries"">
  <div class=""widget-content"">
    <ul class=""wp-block-latest-posts__list wp-block-latest-posts"">
      [...]
    </ul>
  </div>
</div>
}}}

The important part here is the `widget_recent_entries`.

However the same does not apply to the admin preview. Therefore the preview in the admin and on the frontend will always be different.

Two things need to happen here:
1. WordPress should be consistent about adding the backwards compatibility classes. This means that both the frontend and the backend preview need them.
2. There should be a filter to disable this backwards compatibility layer. Because not every theme developer will want this.


hen a theme uses block-based widget areas, then"	anonymized_8769252
	53776	Invalid RSS URL in RSS Widget Causes Server Slow Down		Widgets	5.8	normal	normal	Awaiting Review	defect (bug)	new		2021-07-25T23:54:55Z	2021-07-25T23:54:55Z	"I have a WP Network with 50+ sites, two of them have rss feeds in their footers that link back to each other, using the default WP widgets.  Months ago I accidentally put just the base URL in one of those widgets, which caused apache2 workers to endlessly try to connect to the invalid RSS URL, using all available workers and increasing the server load 10x.  I found the error by doing some informative apache status queries, then some traces on the PIDs that were endlessly looping themselves.  I was able to zero in on the culprit because these two sites have little to no traffic, but were taking 90% of the server usage. 

I've been able to replicate this, it usually takes a couple hours for the apache2 workers to reach a point that they start to effect other sites on the network.  It'd be nice if that url is deemed ""invalid"" for purposes of the RSS feed display that it not be attempted again.  My concern is that further down the site one of the site admins will make the same error I did and cause the entire network to slow down again. 

This is with a default LAMP installation. "	tgiokdi
	48004	JS error while Widget saving functionality		Widgets	5.2.3	normal	critical	Awaiting Review	defect (bug)	assigned		2019-09-09T06:14:40Z	2019-09-10T01:39:36Z	"When I tried to update any existing widget and Save it then I am getting a JS error and because of that changes are not being saved.

Issue is with the ajaxurl variable used in a post ajax call in widgets.js (widgets.min.js) in Save function.

This variable is holding the object and not a string (ideally string containing the url).

While inspect in Network,
ajax url looks like, http://www.expertise.com/wp-admin/[object%20Object]

"	prashantdu
	53766	Legacy Widget block triggers update() method multiple times for one update		Widgets		normal	critical	Awaiting Review	defect (bug)	new	reporter-feedback	2021-07-23T19:14:40Z	2021-07-28T10:27:18Z	"I can't catch how it does it exactly, but, when the widget is saved, the update() method is called more than once in a chain.

I have placed debug code (to log in to log file) in my widget at the end of the update() method, and I add a new element into the $instance array, and if that element is not set, I set it to 1, if it is, I increment it. After one save, I would expect that that value is set to 1, but it is set to 2 after every save. After every save, it is clear that the update() is called twice. The problem is that result from the first save, is used as an input for the new save. And, if some of the values of the $instance change type during save, that causes a major issue for the processing.


Why the Legacy Widget runs update() twice in a chain (using the previous result as input for the next call), that needs to be fixed."	GDragoN
	60519	Link widget always displays rating		Widgets	6.4.3	normal	minor	Awaiting Review	defect (bug)	new		2024-02-13T02:19:47Z	2024-02-13T11:25:56Z	"Using the latest WP version, when you add links through the Link Manager and use a Widget to display them in e.g. a sidebar, the links always show the rating regardless of the widget setting ""Show rating"" being unchecked.

You can test it simply by creating a link, adding it to a link widget and placing it in a widget area.

I've traced the problem to a gap in logic in the 'update' function of /wp-includes/widgets/class-wp-widget-links.php

'rating' setting is not taken care of when updating the instance settings, so it is always set to 1 as default during $instance array update. It can be fixed by adding the following line after line 114:

{{{#!php
$instance['rating']   = ! empty( $new_instance['rating'] ) ? (int) $new_instance['rating'] : 0;
}}}


Same as it is done in line 114 for 'limit' setting.

Thanks."	xurxodiz
	49044	Links in the text widget now require quotes	audrasjb	Widgets	5.3.1	normal	normal	Awaiting Review	defect (bug)	reviewing		2019-12-19T15:12:09Z	2020-01-07T19:37:52Z	"Up until this release, if I had a link a text widget like this it would work.

<a href=/wp-content/uploads/lockport-new-patient-form.pdf target=_blank>New Patient Packet</a>

the recent updated made the same link format like this when you click on it:
https://www.aspirefamilydental.com/%22/wp-content/uploads/NT-transfer-records-to-sister-office-form.pdf/%22

I had to go in and change the text to this in order to make it work.

<a href=""/wp-content/uploads/lockport-new-patient-form.pdf"" target=_blank>New Patient Packet</a>

I manage over 200 sites.  I have easy way of finding every link in every widget on all the sites I manage.  Please fix the text widget to accept links without quotes like it used to.
"	spherman
	52730	Mixed content error with RSS widget		Widgets	5.6.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-03-07T20:06:37Z	2025-12-28T22:17:23Z	To avoid SSL Mixed content warning, it is needed to force the RSS icon to load with https	gregmagn1
	52881	"Recent posts widget: ""Number of posts to show"" option is ignored when on category pages"		Widgets	5.7	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-03-22T11:11:57Z	2021-03-22T12:54:38Z	"WP 5.7. Using the widget ""Recent Posts."" I have not altered the widget. On most pages it works, but when on category pages (archive pages for category), it ignores the ""number of posts to show"" option, and shows a long long list of posts."	benjaminantoni
	44284	Remove e.preventDefault(); code line from widgets.js file		Widgets	4.9.6	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-05-31T17:00:16Z	2019-07-29T16:43:09Z	"In wp-admin/js/widgets.js file we have some of this function that stops to display form validation errors on the page for widgets inputs...

We need to remove these function.



"	alexvorn2
	43039	Resize capability missing from Custom HTML widget		Widgets	4.9.1	normal	normal	Future Release	defect (bug)	new	reporter-feedback	2018-01-08T00:02:45Z	2018-01-08T18:19:03Z	"I'm using WordPress 4.9.1 with the theme Prolio 2.6.1

I had fallen behind in updating and just updated to current versions.

I'm using Text widgets on my homepage, and the text widget editor used to allow both vertical and horizontal resizing by dragging the resize icon in the lower-right corner.

Now I can only resize Text widgets vertically!   

I also started using the Custom HTML widget, as recommended.   

But the Custom HTML widget is not showing a corner resize icon at all so I cannot resize it, and it is a small rectangular editing pane with a larger font than before, and very awkward to use (although it would be wonderful if I could enlarge it).

I used Firefox's Tools > Web Developer > Inspector to find the CSS for the editing window:

 <div id=""widget-63_custom_html-2"" class=""widget open"" style=""z-index: 100; margin-left: -88px;"">
   ...
   <div class=""widget-inside"">
     ...
     <form method=""post"">
       ...
       <div class=""custom-html-widget-fields"">
         ...
         <p>
           ...
           <div class=""CodeMirror cm-s-default CodeMirror-wrap"">

I find that I can change that last line to:

<div class=""CodeMirror cm-s-default CodeMirror-wrap"" style=""resize: both; overflow-x: auto; overflow-y: hidden;"">

and that enables the bidirectional resize corner that I need!

But of course that only affects the running instance.  I have no idea how to tweak the code so that change becomes the default.

Before I look into creating my own customized version of the Custom HTML editor, I'm wondering whether this very minor change could be incorporated into the next release of these tools, so I don't have to do that work myself, and so other people can benefit from it.

I don't actually know whether this is a request for the WP team or the Prolio team, so I'm starting with the WP team.

Thanks for your consideration,

   -- Paul Tukey   paul.tukey@gmail.com



"	paultukey
	54144	The New Blocks Widgets Causes a Huge Load on the Database		Widgets	5.8.1	normal	critical	Awaiting Review	defect (bug)	new		2021-09-18T16:26:14Z	2023-04-20T13:52:18Z	"Hi There!

My host on DigitalOcean with 4GB RAM which is too large for any small WordPress site, and I had no issues until you released the new Widgets.

Just while loading the widgets in the Admin Dashboard, I receive a DB error message (which I made to know about an overload) in every Widget box.

This is a very wired situation not suitable for my server's resources, I don't know if someone else report this issue before but now all my websites upgraded to v5.8 always down in the Widgets pages because of overload on database. 

Thanks hope to fix soon

[[Image(https://awscdn.oxibug.com/cdn/wp-content/uploads/2021/09/WordPress-v581-Widgets-DB-Overload-Issue.jpg)]]"	oxibug
	51468	Video widget with youtube link doesn't work properly		Widgets		normal	normal	Awaiting Review	defect (bug)	new		2020-10-07T13:38:44Z	2020-11-27T15:58:31Z	"If I add a video widget with a youtube link inside of it to the Twentytwenty's footer, watching the video full-screen makes it to be black, even after i minimize the window to its original state (only sound works). I tried to do the same with the Neve theme, and the video inside the widget worked, but clicking on youtube commands (share, more videos, etc.) doesn't work, only responds like i clicked the video and pause it.
How the widget works with Twentytwenty theme: 
https://www.loom.com/share/67a6253e8f3740baa40a6cc0bde4b715
How the widget works with Neve theme:
https://www.loom.com/share/2d1a9eb1e1d94fd6b18fbacff0fa7e30"	irinelenache
	65524	Widget Titles have disappeared in new widget area		Widgets	7.0	normal	normal	Awaiting Review	defect (bug)	new		2026-06-23T16:28:16Z	2026-06-25T04:57:36Z	"In the newly redesigned widget area, the custom titles for the widgets are no longer visible. If you are searching inactive widgets, you just see a long list of ""Custom HTML"" and have to open each widget to see the content. The title really needs to be included after the type of widget, or you can't figure out which widget is which. The titles used to appear and now they don't, so I'm tracking this as a bug."	JonStout
	51538	Widget disappears from the sidebar when switching the theme and back again.		Widgets	5.5.1	normal	critical	Awaiting Review	defect (bug)	new	has-patch	2020-10-15T16:19:40Z	2020-10-15T16:19:40Z	"A widget with ID  **activity_right** disappearing when I switch BuddBboss theme to Twenty Twenty theme. This because of there something wrong with Widget Mapping 
{{{
wp-includes/widgets.php
}}}

line number 1371

It should move widgets to new $new_sidebars_widgets when $new_sidebars_widgets has the same sidebar as $existing_sidebars_widgets has, then only, otherwise move it to inactivate sidebar.

Attaching a patch
"	mhshohel
	57769	Widget html malfunction		Widgets		normal	normal	Awaiting Review	defect (bug)	assigned		2023-02-20T12:14:13Z	2023-05-03T23:45:06Z	"The html code after being pasted into the ""html"" widget is tampered with.
Usually the first lines of code and the last ones disappear."	aldo3853
	66434	Widgets REST endpoint changes widget data for IDs that end in a newline or match no widget		Widgets	5.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-11-01T10:07:45Z	2026-11-01T10:11:53Z	"`wp_parse_widget_id()` matches widget IDs with `/^(.+)-(\d+)$/`. In PHP, `$` also matches before a final newline, so `""text-1\n""` is parsed as `id_base` `text` and number `1`.

The widgets REST endpoint relies on that result. With a Text widget `text-1` in `sidebar-1` and an empty `sidebar-2`, as an administrator:

{{{#!php
<?php
$request = new WP_REST_Request( 'POST', '/wp/v2/widgets' );
$request->set_body_params(
	array(
		'id'       => ""text-1\n"",
		'sidebar'  => 'sidebar-2',
		'instance' => array( 'raw' => array( 'text' => 'Updated text test' ) ),
	)
);
$response = rest_do_request( $request );
}}}

Result on trunk:

{{{
status 500, rest_invalid_widget
widget_text[1]['text']: Updated text test
sidebars_widgets: sidebar-1 => [""text-1""], sidebar-2 => [""text-1\n""]
}}}

The settings of `text-1` change and `""text-1\n""` is added to `sidebar-2`, and then the request fails because no widget is registered under `""text-1\n""`. The same request with `""text-1""` returns 201 and moves `text-1` to `sidebar-2`.

A second check, in `WP_REST_Widgets_Controller::update_item()`, is related. When the widget is in no sidebar, it returns a 404 error only if the ID resolves to a `WP_Widget` object, so that registered widgets that are not `WP_Widget` objects can still be updated. An ID that matches no registered widget passes too. A `PUT /wp/v2/widgets/unknown-3` request with only `sidebar` set to `sidebar-1` adds `unknown-3` to `sidebar-1` in `sidebars_widgets` and then fails with a 500 `rest_invalid_widget` error.

The two need to be fixed together. With only the parser fixed, `""text-1\n""` no longer resolves to the Text widget and takes the second path: `PUT /wp/v2/widgets/text-1` with `id` set to `""text-1\n""` and `sidebar` set to `sidebar-2`, which returns 404 on trunk, would add `""text-1\n""` to `sidebar-2` and return 500.

Both requests need the `edit_theme_options` capability. I reproduced them on trunk with `rest_do_request()` as an administrator, with two test sidebars registered.

Proposed change:

 * In `wp_parse_widget_id()`, anchor the pattern with `\z` instead of `$`.
 * In `update_item()`, also return the 404 error when the widget is in no sidebar and its ID is not in `$wp_registered_widgets`. Registered widgets that are not `WP_Widget` objects keep working, as `test_create_item_legacy_widget` covers.

Related: `WP_Customize_Widgets::parse_widget_id()` uses the same pattern. I have not tested the Customizer path, so the proposed change leaves it alone. Should it get `\z` too for consistency, here or in a follow-up?"	ekamran
	36851	Widgets don't remove hooks after being unregistered		Widgets	2.8	normal	normal	Future Release	defect (bug)	new		2016-05-16T15:28:57Z	2017-06-28T16:29:44Z	"In `WP_Widget_Recent_Comments::__construct()`, there is this bit of code:

{{{#!php
<?php
if ( is_active_widget( false, false, $this->id_base ) || is_customize_preview() ) {
	add_action( 'wp_head', array( $this, 'recent_comments_style' ) );
}
}}}

If `unregister_widget( 'WP_Widget_Recent_Comments' )` is called, this added `wp_head` action is still going to persist unexpectedly. At the moment, I believe the only way to remedy this inside such widgets themselves would be to check to see if the widget is still among `$wp_widget_factory->widgets` when the action callback is called (here the `recent_comments_style` method). From outside the widget, the alternative is would be to do:

{{{#!php
<?php
$widget = $wp_widget_factory->widgets['WP_Widget_Recent_Comments'];
unregister_widget( get_class( $widget ) );
remove_action( 'wp_head', array( $widget, 'recent_comments_style' ) );
}}}

Neither of these options are great.

Perhaps there should be new `widget_registered` and `widget_unregistered` actions that widgets could listen to to do this cleanup? Or there could be a new `unregister` method on `WP_Widget` that a subclass could have this logic inside of. (We wouldn't be able to use the PHP destructor since it would never be called since the reference to the class would be still captured among the registered hooks.) Likewise, instead of adding the hooks inside of the constructor, perhaps there should also be a `WP_Widget::register()` method that gets called inside of the faux-private `WP_Widget::_register()` (and `_register` should be `final`, no?)"	westonruter
	61335	block_editor_rest_api_preload function is restoring $wp_scripts and styles enqueued by wp_enqueue_media are lost		Widgets		normal	normal	Awaiting Review	defect (bug)	new		2024-05-31T13:36:45Z	2024-05-31T15:42:37Z	"Widgets screen > block_editor_rest_api_preload()
ACF Pro is calling wp_enqueue_media():
{{{
Array
(
    [0] => wp_enqueue_media
    [1] => ACF_Assets->enqueue_uploader
    [2] => acf_enqueue_uploader
    [3] => acf_field_image->render_field
    [4] => WP_Hook->apply_filters
    [5] => WP_Hook->do_action
    [6] => do_action_ref_array('acf/render_field/type=image')
    [7] => _acf_apply_hook_variations
    [8] => WP_Hook->apply_filters
    [9] => WP_Hook->do_action
    [10] => do_action('acf/render_field')
    [11] => acf_render_field
    [12] => acf_render_field_wrap
    [13] => ACF_Repeater_Table->row
    [14] => ACF_Repeater_Table->rows
    [15] => ACF_Repeater_Table->render
    [16] => acf_field_repeater->render_field
    [17] => WP_Hook->apply_filters
    [18] => WP_Hook->do_action
    [19] => do_action_ref_array('acf/render_field/type=repeater')
    [20] => _acf_apply_hook_variations
    [21] => WP_Hook->apply_filters
    [22] => WP_Hook->do_action
    [23] => do_action('acf/render_field')
    [24] => acf_render_field
    [25] => acf_render_field_wrap
    [26] => acf_render_fields
    [27] => acf_form_widget->edit_widget
    [28] => WP_Hook->apply_filters
    [29] => WP_Hook->do_action
    [30] => do_action_ref_array('in_widget_form')
    [31] => WP_Widget->form_callback
    [32] => wp_render_widget_control
    [33] => WP_REST_Widgets_Controller->prepare_item_for_response
    [34] => WP_REST_Widgets_Controller->get_items
    [35] => WP_REST_Server->respond_to_request
    [36] => WP_REST_Server->dispatch
    [37] => rest_do_request
    [38] => rest_preload_api_request
    [39] => array_reduce
    [40] => block_editor_rest_api_preload
    [41] => require('wp-admin/widgets-form-blocks.php')
)
}}}
But next, what block_editor_rest_api_preload() is doing is restoring everything into previous state:

{{{
	$post       = $backup_global_post;
	$wp_scripts = $backup_wp_scripts;
	$wp_styles  = $backup_wp_styles;
}}}
It could have been fine, but wp_enqueue_media() has a check that it has already been called (due to #45913, it looks necessary): 

{{{
function wp_enqueue_media( $args = array() ) {
	// Enqueue me just once per page, please.
	if ( did_action( 'wp_enqueue_media' ) ) {
		return;
	}
....
}}}

And as a result, I am getting a broken media uploader on the Widget's page, and calling wp_enqueue_media() is doing no good in this situation, and there is no right way to fix it. I can change $wp_actions global before calling wp_enqueue_media() second time or add
{{{
	wp_enqueue_style( 'media-views' );
	wp_enqueue_style( 'imgareaselect' );
}}}
hoping that I don't need any additional logic from the function. I believe that both solutions are not the correct way to do things, and something needs to be done in the core to fix the root of the problem (not the ACF plugin because from one point of view it can have its reason to this call and another is that other plugins can have similar behaviour). 

I decided to add action on 'current_screen' and call wp_enqueue_media() on widgets screen preventively. But this is also a workaround and cannot be counted as a proper solution.
"	oglekler
	62778	display options for Links/Blogroll in sidebar not saving		Widgets	6.7.1	normal	major	Awaiting Review	defect (bug)	new		2025-01-03T14:41:18Z	2025-01-09T20:02:53Z	"I have several wordpress sites that have been around for a while (like 5+ years).
Very default config, home page is Latest Posts, so I had a Links/Blogroll section in the sidebar.
I recently decided to change the sort order of those Links, and it appears after making a change for the first time, all the default display selections get selected, and making any changes (as in un-selecting) does not 'stick'.  It shows but then after a Save, goes back to all selected.
I've gone down many rabbit-holes in troubleshooting, and I'm somewhat of a novice when it comes to WordPress guts, but it seems to work when I turn off the newer Block editors and mess with the widgets in the older interface.

That's kind of all I know.
I'm aware the Links feature was disabled some time ago, but I actually use it critically in my use-case.

"	daveccampbell
	41070	register_sidebar and dynamic_sidebar inconsistency		Widgets	4.8	normal	normal	Awaiting Review	defect (bug)	new		2017-06-15T13:30:11Z	2017-06-23T07:15:20Z	"Let's register a sidebar in functions.php and use digits for the value of the id key.

{{{#!php
<?php
register_sidebar( array(
	'id'   => 'test123',
	// or 'id' => '123',
	// or 'id' => 123,
	'name' => 'test - Mega Menu',
) );
}}}

After that, the Widget is showing up at ''Appearance > Widgets''. But when we'd like to retrieve this widget using the dynamic_sidebar function, it won't work:

{{{#!php
<?php
var_dump(dynamic_sidebar( 'test123' ));
var_dump(dynamic_sidebar( '123' ));
var_dump(dynamic_sidebar( 123 ));
}}}

All var_dumps will return ''bool(true)''"	derkjanspeelman
	59072	the new version(6.3) can't use the widgets		Widgets	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-08-11T11:27:29Z	2023-08-14T14:20:45Z	"when i click on my widgets.php in console is empty.
i dont know is my theme's or me update the new version?"	power1parts
	57576	widget color settings gets lost when saving regarding another widget		Widgets	6.1.1	normal	normal	Awaiting Review	defect (bug)	new		2023-01-28T09:53:26Z	2023-02-16T23:58:10Z	When changing in a footer widget block, and then saving I loose the color-settings in a another widget area - a Hero Canvas widget area. I am pretty shure that I have experienced it before also with blocks in pages. It was a long time ago that I experienced the later. That could be fixed but the widget areas still seem to have the problem.	mdproduktion
	55490	wp-enqueue error generated by Appearance => Widgets		Widgets	5.9.2	normal	normal	Awaiting Review	defect (bug)	new		2022-03-30T20:39:06Z	2022-03-30T20:39:06Z	"Many complaints about this but I don't think issue has been resolved. Bringing up the admin screen for Appearance => Widgets generates this message:

PHP Notice:  wp_enqueue_script() was called incorrectly. ""wp-editor"" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). Please see Debugging in WordPress for more information. (This message was added in version 5.8.0.) in /home/dh_kscwksp/lirworkshop.dreamhosters.com/wp-includes/functions.php on line 5768

AND I seem unable to turn off the display you see in the screenshot using WPDEBUGGER, no matter what I do to settings, deactivation, removal."	ksmithcamp
	61364	"wp_enqueue_script() was called incorrectly. ""wp-editor"" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets)"		Widgets	5.8	normal	critical	Awaiting Review	defect (bug)	new		2024-06-04T08:12:47Z	2024-06-04T08:12:47Z	"PHP Error: wp_enqueue_script() was called incorrectly. ""wp-editor"" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). (This message was added in version 5.8.0.)
on https://example.com/wp-admin/widgets.php

{{{

7. /path/wp-includes/class-wp-hook.php (324): wp_check_widget_editor_deps()
8. /path/wp-includes/class-wp-hook.php (348): WP_Hook->apply_filters( $value = NULL, $args = Array( [0] =>  ) )
9. /path/wp-includes/plugin.php (507): WP_Hook->do_action( $args = Array( [0] =>  ) )
10. /path/wp-admin/admin-header.php (163): do_action( $hook_name = 'admin_head' )
11. /path/wp-admin/widgets-form-blocks.php (70): require_once( '/path/wp-admin/admin-header.php' )
12. /path/wp-admin/widgets.php (32): require( '/path/wp-admin/widgets-form-blocks.php' )
}}}

This should get fixed with WP 6.6 as it's a WP internal issue that has existed for a while - I saw the other tickets which were created for this previously were shot down bc the reporter didn't know how to report this in a general way and without details.
However I get this by just opening the URL.

The stack trace does not include anything custom - it appears to happen on a regular/default WP install.

"	kkmuffme
	62694	"wpautop Misuse in the ""widget_block_content"" Filter with Shortcode Block"		Widgets	6.7.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-12-14T23:30:18Z	2026-04-09T08:53:26Z	"The `widget_block_content` filter introduces invalid HTML when processing content from the Shortcode block. Specifically, when a shortcode returns a block-level element like a `<div>`, it is improperly wrapped in `<p>` tags, resulting in invalid markup.

== Steps to Reproduce ==

1. Create a simple shortcode in your theme or plugin:
   {{{#!php
   <?php
   add_shortcode( 'my_test_shortcode', function() {
       return '<div>something amazing...</div>';
   } );
   }}}

2. Go to ''Appearance > Widgets'' in the WordPress admin area.

3. Add a ''Shortcode block'' and use `[my_test_shortcode]` as its content.

4. Save and view the output on the front-end. Notice that the `<div>` returned by the shortcode is wrapped in `<p>` tags, resulting in:
   {{{#!html
   <p><div>something amazing...</div></p>
   }}}

== Expected Behavior ==

The shortcode output should render the block-level `<div>` without additional wrapping `<p>` tags, maintaining valid HTML structure.

== Proposed Solution ==

Consider modifying the `widget_block_content` filter to handle shortcodes correctly and respect block-level elements, preventing improper wrapping by `wpautop`."	arl1nd
	41138	Add classes to Widgets in widgets.php and customize.php pages	audrasjb	Widgets		normal	normal	Awaiting Review	enhancement	assigned		2017-06-23T16:37:07Z	2020-04-13T12:44:58Z	"Add widget base id class to widgets so developers could add custom CSS styles to their custom widgets.

Currently the widgets have only ""widget"" class and ""ui-draggable"". 

What do you think? I think it's a great idea to highlight custom widgets with different colors, so users can easily find new installed widgets from plugins. (Maybe some one with have other purposes)"	alexvorn2
	52526	Add different class for RSS widget in different conditions		Widgets		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-02-15T08:11:25Z	2022-04-25T23:14:53Z	"It is better that we have extra RSS widget class for different options such as show date and show author And difference existence data (have data or have author)
because by different options UI designer can design different UI and programmer should can determine which options is set that set different style
you can see different style in different conditions:
[[Image(https://www.daneshjooyar.com/wp-content/uploads/2020/10/rss.jpg)]]"	hamedmoodi
	66502	Add unit tests for the sidebar and widget lookup functions of widgets.php		Widgets		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T01:53:16Z	2026-11-06T02:00:01Z	"Several functions of `src/wp-includes/widgets.php` are not referenced by any test:

 * `is_registered_sidebar()`
 * `wp_widget_description()`
 * `wp_sidebar_description()`
 * `wp_get_sidebar()`
 * `wp_get_widget_defaults()`
 * `is_active_sidebar()`
 * `is_dynamic_sidebar()`
 * `wp_find_widgets_sidebar()`
 * `wp_assign_widget_to_sidebar()`

This ticket adds unit tests for them, each in its own test class in `tests/phpunit/tests/widgets/`. Because there are several functions, they are added in more than one pull request, and the first one covers the functions that read the registered sidebars and widgets (the first five). The others (the ones that read and change the widgets that are assigned to the sidebars) follow in a second one.

The tests reset the global state of the registered sidebars and widgets and restore it afterwards.

I checked that no existing ticket or open pull request adds tests for these functions."	hmbashar
	57201	Add unit tests for wp_maybe_load_widgets		Widgets		normal	normal	7.3	enhancement	new	has-patch	2022-11-25T00:54:19Z	2026-10-15T16:15:56Z		pbearne
	43120	HTML Tag Auto-Formatting in Custom HTML Widget		Widgets	4.9	normal	normal	Awaiting Review	enhancement	new		2018-01-17T21:12:25Z	2018-01-18T01:28:52Z	"As a developer using WordPress multisite to manage a stable of client websites, I have quickly become a big fan of the Custom HTML widget. The syntax highlighting combined with the removal of the auto-paragraph formatting of text widgets has provided a much friendlier interface for my daily work building and maintaining sites.

However, in addition to syntax highlighting, the latest update has also introduced another new behavior that is quickly becoming the bane of my coding workflow. Typing the closing angle-bracket at the end of any block-level HTML tag initiates an auto-formatting routine that completely derails my coding process.

For example, typing {{{<div>}}} or {{{<p>}}} automatically generates the closing  {{{</div>}}} or {{{</p>}}} tag after the cursor, respectively. This behavior mimics the automations of many popular IDEs, and it is a big time-saver if implemented well.

However, the current implementation in the Custom HTML widget takes the automation a step too far with block-level tags, also adding carriage returns and indentation to my code where I don't want either.

I understand that many coding best-practices prescribe this format to make code easier to read and maintain, which is true for coding in an adjustable-width IDE window or frame. But for the widget editor that's limited to a width of around 340 pixels (without accounting for padding), I prefer to organize my code into segments broken into logical blocks with whitespace between them and everything flush-left.

Currently, the contents of a typical Custom HTML widget in my environment look like this (line breaks added to approximate editor width):
{{{
<div class=""widget-content"" id=""first-
section"">
  <div class=""widget-content-wrapper"">
    <div class=""image-section-text"">
      <p>
        This is my content.
      </p>
      [tabby title=""First Tab""]
      <h3>
        First Tab Header
      </h3>
      <p>
        <em>Click an image below to 
enlarge for viewing details.</em>
      </p>
      [su_row]
      [su_column]
      [su_lightbox type=""image"" 
src=""/wp-content/uploads/sites/44/2018
/01/image01.jpg""]<img class=""aligncenter 
size-medium wp-image-201"" src=""/wp-
content/uploads/sites/44/2018
/01/image01-250x300.jpg"" width=""250"" 
height=""300"" />[/su_lightbox]
      <h4>
        Image 1 Title
      </h4>
      <h4>
        <em>Image 1 Caption</em>
      </h4>
      [/su_column]

      [su_column]
      [su_lightbox type=""image"" 
src=""/wp-content/uploads/sites/44/2018
/01/image02.jpg""]<img class=""aligncenter 
size-medium wp-image-202"" src=""/wp-
content/uploads/sites/44/2018
/01/image02-250x300.jpg"" width=""250"" 
height=""300"" />[/su_lightbox]
      <h4>
        Image 2 Title
      </h4>
      <h4>
        <em>Image 2 Caption</em>
      </h4>
      [/su_column]
      [/su_row]

      [tabby title=""Second Tab""]
      <h3>
        Second Tab Header
      </h3>
      <p>
        <em>Click an image below to 
enlarge for viewing details.</em>
      </p>
      [su_row]
      [su_column]
      [su_lightbox type=""image"" 
src=""/wp-content/uploads/sites/44/2018
/01/image03.jpg""]<img class=""aligncenter 
size-medium wp-image-203"" src=""/wp-
content/uploads/sites/44/2018
/01/image03-250x300.jpg"" width=""250"" 
height=""300"" />[/su_lightbox]
      <h4>
        Image 3 Title
      </h4>
      <h4>
        <em>Image 3 Caption</em>
      </h4>
      [/su_column]

      [su_column]
      [su_lightbox type=""image"" 
src=""/wp-content/uploads/sites/44/2018
/01/image04.jpg""]<img class=""aligncenter 
size-medium wp-image-204"" src=""/wp-
content/uploads/sites/44/2018
/01/image04-250x300.jpg"" width=""250"" 
height=""300"" />[/su_lightbox]
      <h4>
        Image 4 Title
      </h4>
      <h4>
        <em>Image 4 Caption</em>
      </h4>
      [/su_column]
      [/su_row]

      [tabbyending]
    </div>
  </div>
</div>
}}}

Because I am using the Custom HTML widgets to build out large sections of pages within my sites, I end up having to scroll through lots of code within any single widget instance. Having a bunch of opening and closing tags on individual lines sprinkled with indents forcing extra text wraps is a pointless gesture that impairs quick-scanning and readability rather than improving it. This is especially true for sections involving deeply nested divs containing lengthy paragraph text and shortcodes.

Within the constraints of the editor, I would prefer the above code to appear in the below format (again, line breaks reflect real text-wrapping in the editor):

{{{
<div class=""widget-content"" id=""first-
section"">
<div class=""widget-content-wrapper"">
<div class=""image-section-text"">
<p>This is my content.</p>

[tabby title=""First Tab""]
<h3>First Tab Header</h3>
<p><em>Click an image below to enlarge 
for viewing details.</em></p>

[su_row]
[su_column]
[su_lightbox type=""image"" src=""/wp-
content/uploads/sites/44/2018
/01/image01.jpg""]<img class=""aligncenter 
size-medium wp-image-201"" src=""/wp-
content/uploads/sites/44/2018
/01/image01-250x300.jpg"" width=""250"" 
height=""300"" />[/su_lightbox]
<h4>Image 1 Title</h4>
<h4><em>Image 1 Caption</em></h4>
[/su_column]
		
[su_column]
[su_lightbox type=""image"" src=""/wp-
content/uploads/sites/44/2018
/01/image02.jpg""]<img class=""aligncenter 
size-medium wp-image-202"" src=""/wp-
content/uploads/sites/44/2018
/01/image02-250x300.jpg"" width=""250"" 
height=""300"" />[/su_lightbox]
<h4>Image 2 Title</h4>
<h4><em>Image 2 Caption</em></h4>
[/su_column]
[/su_row]
			
[tabby title=""Second Tab""]
<h3>Second Tab Header</h3>
<p><em>Click an image below to enlarge 
for viewing details.</em></p>
[su_row]
[su_column]
[su_lightbox type=""image"" src=""/wp-
content/uploads/sites/44/2018
/01/image03.jpg""]<img class=""aligncenter 
size-medium wp-image-203"" src=""/wp-
content/uploads/sites/44/2018
/01/image03-250x300.jpg"" width=""250"" 
height=""300"" />[/su_lightbox]
<h4>Image 3 Title</h4>
<h4><em>Image 3 Caption</em></h4>
[/su_column]
			
[su_column]
[su_lightbox type=""image"" src=""/wp-
content/uploads/sites/44/2018
/01/image04.jpg""]<img class=""aligncenter 
size-medium wp-image-204"" src=""/wp-
content/uploads/sites/44/2018
/01/image04-250x300.jpg"" width=""250"" 
height=""300"" />[/su_lightbox]
<h4>Image 4 Title</h4>
<h4><em>Image 4 Caption</em></h4>		
[/su_column]
[/su_row]
			
[tabbyending]
</div>
</div>
</div>
}}}

Because I prefer to keep my code flush left, the editor's auto-indentation for nested block-level tags keeps offsetting my closing tags and requires backspacing/deletion of both the indents and the carriage returns.

While I realize that many developers may prefer strict adherance to best-practices, I also expect those same developers ultimately prefer the ability to decide upon their own standards without having someone else assume what's best and impose those assumptions into their development environments.

I believe the best implementation of IDE features into the Custom HTML widget should involve the ability to adjust such formatting presets as they are introduced. This would allow end-users to apply such enhancements according to their individual preferences and prevent distractions from the introduction of unwelcomed ""improvements"".

Perhaps IDE preferences could be enabled through checkboxes below the editor pane for applying individual features:

- Syntax Highlighting
- Tag Completion
- Quotes Completion
- Auto-Indentation

and maybe even

- Line Numbers (to regain space in a constrained-width pane)

The editor would still perform analysis on each keystroke, but ""If Tag-Completion = false"" it could skip the tag completion subroutine, for instance.

My apologies for the verbosity of this ticket, but I wanted to fully illustrate my particular use-case. 

As a frequent user of Custom HTML widgets, I am excited by the prospects of current and forthcoming enhancements, and I can't wait to see what improvements future updates bring."	JosefNT
	54369	Request Gallery widget editor enhancement to allow standard editing features for each image in gallery		Widgets	5.8.1	normal	normal	Awaiting Review	enhancement	new		2021-11-03T14:54:18Z	2021-11-03T14:54:18Z	"Editing 'Image' widget allows standard options including custom URL, attribute, CSS, open in new tab, etcetera.

Editing 'Gallery' widget only allows single, limited link fuction for all images in gallery (does not even allow 'open in new tab' function).

Can the standard 'Image' widget editing options be nested within the 'Gallery' widget so that the individual images in the gallery can each have standard editing options including custom URL, attribute, CSS, open in new tab, etcetera?

See attached image file."	nzflagmaven
	42913	Scroll widgets and widget containers independently in admin ui		Widgets	5.1	normal	normal	Future Release	enhancement	new		2017-12-15T18:31:30Z	2018-05-03T19:50:32Z	"A ""regular"" WordPress installation with a few plugins providing widgets can easily result in a situation where the height of the ""available widgets"" div on the left can be significantly larger than the height of the ""available widget containers"" div on the right, as a result of which one may need to scroll down significantly to reach the desired widget, then scroll back up _while dragging_ to place the widget in the desired container.

If the div on the right were to be configured with {{height: 1vh; overflow-y: scroll}} and then turned into fixed (?) position div, it would remain on-screen while the user scrolled through the list of available widgets, such that installing a new widget would only require scrolling to find the widget in question, and at no point would it be necessary to drag and scroll simultaneously (which, while frustrating, is easy enough on a desktop... but with a touchpad it becomes quite the challenge). 

On further reflection, it might actually be easier and less hacky to assign both the left and right divs a height of 1vh (and perhaps throw in a {{min-height}}) and {{overflow-y: scroll}}, then there's no need for anything but the default positioning. Both containers would scroll independently, and no need to drag and scroll.

Attaching a video of the current experience."	ComputerGuru
	53128	Simplify Widget Management		Widgets		normal	normal	Awaiting Review	enhancement	new		2021-05-01T16:59:45Z	2021-05-01T16:59:45Z	"Idea ... separate the drag and drop ordering to a small icon to the left of the widget name. Opens up the space to the right for functionality. To the left of the open/close toggle, please consider one of the following:

A delete icon. Stop opening each widget, just to delete it.
A checkbox. Treat the widgets like posts listing. Even add a ""select all"" at the top.

This idea came as I was setting up a theme demo for someone, and I want to dump all the widgets which came with the demo import."	craigtommola
	40864	Standardize strings for missing attachments across media widgets		Widgets	4.8	normal	normal	Awaiting Review	enhancement	new		2017-05-25T18:06:09Z	2017-05-25T18:46:48Z	"While translating 4.8 strings, I noticed that strings for missing attachments in the new media widgets do not refer to the same thing:

> We can&#8217;t find that audio file. Check your <a href=""%s"">media library</a> and make sure it wasn&#8217;t deleted.

> We can&#8217;t find that image. Check your <a href=""%s"">media library</a> and make sure it wasn&#8217;t deleted.

> We can&#8217;t find that video. Check your <a href=""%s"">media library</a> and make sure it wasn&#8217;t deleted.

> We can&#8217;t find that file. Check your <a href=""%s"">media library</a> and make sure it wasn&#8217;t deleted.

In two occasions we only use media type, but once we use ""file"" alongside of it and once we only use ""file"" and remove any mention of media (type).

I propose removing ""file"" completely and just using type of media. Second possibility is to always use ""file"", though I don't see that as needed."	dimadin
	66514	Tests: Add unit tests for the Widget Group block rendering and the sidebar notes		Widgets		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-06T05:16:02Z	2026-11-06T05:16:30Z	"The `render_block_core_widget_group()`, `register_block_core_widget_group()`, `note_sidebar_being_rendered()` and `discard_sidebar_being_rendered()` functions in `src/wp-includes/blocks/widget-group.php` are not referenced by any test.

This ticket adds tests for the title markup (the default heading and the markup of the sidebar being rendered), the escaping of the title, the rendering of the inner blocks, the noting of the sidebar being rendered and the registration of the block."	hmbashar
	42568	Text Widget: Media Uploader Button Label		Widgets		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-11-16T06:03:35Z	2025-07-10T08:53:06Z	I was wondering if the '''Media Uploader''' in the new '''Text Widget''' has a button with label '''Insert Into Widget''' instead of '''Insert Into Post''' as shown here: http://prntscr.com/hb38jv . It would be more meaningful I guess :)	saurav.rox
	59908	There should be an action fired after a Widget is added or updated		Widgets		normal	normal	Awaiting Review	enhancement	new		2023-11-14T17:14:12Z	2023-11-14T17:14:12Z	"I don't believe there's currently an action fired after a Widget is added or updated in the normal/traditional means (Appearance -> Widgets). There is delete_widget, but not a similar update_widget.

In googling to find out what action to use, I found lots of people trying to do exactly the same thing I am (with no luck): Clearing page caches after a widget has been added or updated.

A simple do_action( 'update_widget ) type of action would benefit a lot of users.

Thanks!"	MadtownLems
	53771	What about an equivalent of `is_active_widget()` for Widget Blocks ?		Widgets	5.8	normal	normal	Future Release	enhancement	new	needs-unit-tests	2021-07-24T13:13:26Z	2021-07-29T17:06:25Z	"This doesn't seem to exist in WordPress Core and I haven't found a ticket asking about this. (I hope I haven't missed one, sorry if I did).

`is_active_widget()` can't be used because all Block are added into the same Widget: `WP_Widget_Block`.

For BuddyPress when migrating our Legacy Widgets to Widget Blocks, I had 2 cases where some output wasn't made if a widget was active into a sidebar (Sitewide notice, and BP Primary Nav). To satisfy our need we are using [https://buddypress.trac.wordpress.org/browser/tags/9.0.0/src/bp-core/bp-core-template.php#L3869 this function] to check if a block or a widget is active into a Sidebar Widgets.

I thought maybe it can be interested to have an equivalent of `is_active_widget()` into WordPress. I quickly put up a patch about it."	imath
	53805	Widget HTML Personalized no have Title		Widgets	5.8	normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2021-07-27T23:25:36Z	2021-09-14T11:44:18Z	"The widget HTML Personalized no have one title, we can left the title blank but we need one title if we want use it, like: Note or Publicity etc.
The old HTML personalized has the title...
I don't no if are another widgets who need title, I no check all


I hope can fix it, also is one little slow the section widgets.
I like quit the previsualization, for load more faster."	Guillermo77
	49588	"Cannot remove <div class=""textwidget custom-html-widget"">"		Widgets		normal	minor	Awaiting Review	feature request	new	needs-unit-tests	2020-03-06T18:02:23Z	2026-01-31T14:02:26Z	"I cannot remove wrapping class in html widget:

<div class=""textwidget custom-html-widget"">
...
</div>

It is defined here: https://github.com/WordPress/WordPress/blob/master/wp-includes/widgets/class-wp-widget-custom-html.php

I think it is job for some `apply_filters`.

Do we really need another `<div>` wrap? There can be `<div>` wrap added by  `register_sidebar` or using `widget_text` filter"	jasom
	48373	Widgets area grouping		Widgets		normal	normal	Awaiting Review	feature request	new		2019-10-20T03:57:29Z	2019-10-20T03:57:29Z	"The recent wordpress project I have been working on is news magazine, which has over 30 widgets areas for some reasons. I find it so difficult to drag and drop widget to specific widget area, just for the reason that there are so much areas.

We can also place widgets to an specific area by selecting name, but here too, so much names.

I though that grouping areas would solve this problem, so, how do we group?

{{{#!php
<?php
/**
 * `Homepage` group
 */
register_sidebar(array(
  // Existing parameters +
  'name'  => __('Banner area', 'td'),
  'group' => 'Homepage' //@here
));

register_sidebar(array(
  // Existing parameters +
  'name'  => __('Footer1', 'td'),
  'group' => 'Homepage' //@here
));

/**
 * `Single page` group
 */
register_sidebar(array(
  // Existing parameters +
  'name'  => __('Banner area', 'td'),
  'group' => 'Single page' //@here
));

register_sidebar(array(
  // Existing parameters +
  'name'  => __('Footer1', 'td'),
  'group' => 'Single page' //@here
));
}}}

So, based on these sidebar registrations, wordpress will show dropdown having two options, Homepage and Single page on the widgets page right above areas listing.

I think this thing is much likely to be related to core WP. I am interested to contribute WP too, but have never done before. Can I directly make pull request to git wordpress repo, or how do I?"	dipakw
	33940	Double spaces in term names can cause problems		XML-RPC		normal	normal	Awaiting Review	defect (bug)	assigned		2015-09-20T22:56:04Z	2026-05-20T08:37:48Z	"Create a tag called 'test term'.

Use XML-RPC to create a post with a tag of: 

{{{
test  term
}}} 

(two spaces). You'll get an error thrown, with the post not created:

{{{
A term with the name already exists in this taxonomy
}}}

This appears to be due to the `_insert_post` function in XML-RPC using `get_term_by( 'name', $term_name, $taxonomy );`, which is returning false - thus it tries to create the term as new, and fails.

Most other aspects of WP seem to filter the term name to strip double spaces first - is that what is necessary here? Or could the issue affect more than just XML-RPC?"	smerriman
	51891	Multiple xmlrpc attacks after last update		XML-RPC	5.5.3	normal	major	Awaiting Review	defect (bug)	new		2020-11-28T14:23:16Z	2021-01-07T18:17:13Z	"Hello,

After the latest WP update, I have began noticing an increasing amount of xmlrpc attacks for exploits that reached new peaks some 20 hours ago and without signs of slowing down.

With each attack I am getting the following entry in the error.log :

PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, array must have exactly two members in /home/.../public_html/wp-includes/class-wp-hook.php on line 289

I have de-activated the majority of the plugins and specifically those updated during the last week but that didn't change the scenery.

I am not a developer, I am a power WP user operating a multisite for a couple of years now and this is the first time I am noticing this aggressive hacking activity (hundreds of different IPs per hour just as to avoid immediate blacklisting). Also this is the first time I am opening a ticket in WP.org

Thank you for your attention.

"	attunist
	42995	WordPress XML-RPC editComment return error 500 changing date_created_gmt		XML-RPC	4.9.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2017-12-28T19:01:25Z	2019-06-20T14:10:09Z	"Grettings,

This:


    // Do some timestamp voodoo
    if (!empty($content_struct['date_created_gmt'])) {
        // We know this is supposed to be GMT, so we're going to slap that Z on there by force
        $dateCreated = rtrim($content_struct['date_created_gmt']->getIso(), 'Z') . 'Z';
        $comment_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
        $comment_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');
    }



[Thu Dec 28 15:52:34.123148 2017] [php7:notice] [pid 5507] [client 127.0.0.1:39464] PHP Fatal error:  Uncaught Error: Call to a member function getIso() on string in wp-includes/class-wp-xmlrpc-server.php:3533


"	fpilee
	20070	Deprecate Blogger XML-RPC Methods		XML-RPC	3.3	normal	normal	Future Release	enhancement	new	dev-feedback	2012-02-18T18:32:26Z	2020-09-21T19:41:58Z	"The XML-RPC API supports the legacy Blogger API methods, but these methods have apparently not been very well tested or maintained. 

Given that the `wp.*` XML-RPC namespace now covers everything that the Blogger API does, I suggest the blogger methods be officially deprecated with an eye towards removing them in a future version. 

At the very least, the MetaWeblog API should be used by clients instead, as it was explicitly designed to enhance and supersede the Blogger API."	maxcutler
	37206	Unit test functions for functions.php's xmlrpc_removepostdata function		XML-RPC	4.6	low	minor	Future Release	enhancement	reviewing	has-patch	2016-06-28T00:56:34Z	2020-02-21T17:56:03Z	Wrote some unit tests that covers functions.php's xmlrpc_removepostdata function. 	tloureiro
	37096	Unit tests for xmlrpc_getposttitle() and xmlrpc_getpostcategory() along with patch to trim and unique returned values	SergeyBiryukov	XML-RPC	0.71	low	minor	Future Release	enhancement	reviewing	dev-feedback	2016-06-14T00:24:25Z	2022-01-20T13:01:43Z	In tonight's Contrib 2 core we created this unit test for xmlrpc_getposttitle() function	pbearne
	35993	Unit tests: XML-RPC Request routines		XML-RPC	0.71	normal	normal	Future Release	enhancement	new	dev-feedback	2016-02-29T01:07:36Z	2022-01-20T13:01:43Z	"I wrote unit tests for the 3 methods regards to XML-RPC request in functions.php, the aim is improve de code coverage, theses methods are:
* xmlrpc_getposttitle()
* xmlrpc_getpostcategory()
* xmlrpc_removepostdata()

This patch cover 100% of coverage related to theses methods above.

Only one thing to consider, I didn't found any XML-RPC format on the WordPress doc with title and category, so I've created a simple XML format with both, following the methods the behaviour is the same."	borgesbruno
	59414	XML-RPC - add updateMedia endpoint	joedolson*	XML-RPC		normal	normal	Future Release	enhancement	accepted	has-patch	2023-09-20T19:33:26Z	2025-02-12T17:07:03Z	"In #58582, @thomashorta reported on alt attributes missing from the XML RPC endpoints. Fetching that data was fixed in [56637], but adding an endpoint to update media that specifically handles media data like alt attributes requires a more substantial enhancement.

From #58582:

Updating MediaItems through the XML-RPC API is also done directly by the Posts API, more specifically through wp.editPost (codex), which also doesn't support an alt field. This makes sense, as this API is more generic, but at the same time, there are no specific updateMedia methods in the Media API.

Suggestion for updating
I'm not sure about this one, but I think a new method in the Media API would be needed (e.g.: wp.updateMediaItem) to properly manipulate a specific input struct and call the Post update functions internally."	joedolson
	50310	XML-RPC missing Homepage options in wp.getOptions and wp.setOptions		XML-RPC	5.4.1	normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2020-06-03T09:38:16Z	2024-01-17T06:21:34Z	"This ticket is related to https://core.trac.wordpress.org/ticket/33425

The wp.getOptions and wp.setOptions methods do not expose all the options fields. The fields `show_on_front`, `page_on_front` and `page_for_posts` are necessary to be able to set the Homepage remotely. This functionality has been already implemented in the mobile app but is missing for users with the self-hosted sites because there is no endpoint to get/set the value. "	vojtasmrcek
	21211	Alter how settings_errors are output in options.php		Administration	3.4.1	normal	normal		defect (bug)	new	dev-feedback	2012-07-10T23:44:37Z	2019-06-04T19:23:12Z	"The `*_settings_error(s)` and `settings_error` functions are used mainly as part of the Settings API, but with the way that options.php currently handles the settings errors, it assumes that people will use this functionality exclusively with the Settings API. Notice options.php, starting at line 153:

{{{
	/**
	 * Handle settings errors and return to options page
	 */
	// If no settings errors were registered add a general 'updated' message.
	if ( !count( get_settings_errors() ) )
		add_settings_error('general', 'settings_updated', __('Settings saved.'), 'updated');
	set_transient('settings_errors', get_settings_errors(), 30);
}}}

This simply assumes that no other outside source has registered any sort of setting error other than the current options page. TwentyEleven does this, and so if any other source has registered any notices via these functions, the ""Settings saved."" message will not be output because the first bit of logic will fail. I don't think this assumption can (nor should) be warranted, so there needs to be another way to handle this so that themes like TwentyEleven who only call `settings_errors` at the top of their options page don't get unknowingly hijacked by other sources.

I always suggest registering your own errors at the end of the sanitization callback for your setting, and then output those specific errors within settings_errors to avoid any internal conflicts like this.

Just looking for some ways to approach this. :-) 


"	griffinjt
	31593	Conflict of custom post type menu and add_utility_page		Administration	4.1.1	normal	normal		defect (bug)	new		2015-03-11T07:00:51Z	2023-11-13T18:56:31Z	"I installed a plugin that register_post_type with menu_position 80. Thereafter, I installed a plugin to add a menu by add_utility_page. Then the menu of menu_position 80  is disappeared.

Where I examined, I think there is a problem with the count up of `$_wp_last_utility_menu`, but is this correct specification?

This is the sample code.

{{{
function test_add_utility_page() {
    add_utility_page(
        'test_utility_page',
        'test_utility_page',
        'edit_posts',
        'test_utility_page',
        '__return_false'
    );
}
add_action( 'admin_menu', 'test_add_utility_page' );

function test_register_post_type() {
    register_post_type( 'test_post_type', array(
        'labels'        => array(
            'name' => 'test_post_type',
        ),
        'public'        => true,
        'menu_position' => 80,
    ) );
}
add_action( 'init', 'test_register_post_type' );
}}}"	inc2734
	32655	Don't save screen options (table column) in post edit page and maybe other pages		Administration	4.1	normal	normal		defect (bug)	new		2015-06-15T23:53:53Z	2019-06-04T19:29:27Z	"I fixed it so...
wp-includes/user.php
row 364 
{{{
if ( $user->has_prop( $option ) )
	$result = $user->get( $option );
elseif ( $user->has_prop( $prefix . $option ) )
	$result = $user->get( $prefix . $option );
else
	$result = false;

----

	//todo bag user options delete this
//	if ( $user->has_prop( $prefix . $option ) ) // Blog specific
//		$result = $user->get( $prefix . $option );
//	elseif ( $user->has_prop( $option ) ) // User specific and cross-blog
//		$result = $user->get( $option );
//	else
//		$result = false;
}}}
"	Juriy
	32097	Extra margin in `post_submit_meta_box()` on non-public post types		Administration	4.2	normal	normal		defect (bug)	new		2015-04-24T06:04:39Z	2019-06-04T19:28:37Z	"If you're editing a published or scheduled post in a post type registered with `public => false`, there's now some extra space above ""Status."""	dlh
	27543	Flyout submenu items can be hidden on Windows touch devices		Administration	3.8	normal	normal		defect (bug)	new		2014-03-27T06:08:29Z	2019-06-04T19:25:19Z	"Spin out of #26482, specifically comment 5 and the related screenshot.

The fly out submenus are broken on Surface. The patch in #26482 fixes that issue for iOS, but we should circle back and fix it for Surface."	samuelsidler
	17704	Automatically enqueue necessary scripts when custom meta boxes are used		Administration		normal	normal		enhancement	new	has-patch	2011-06-06T05:53:43Z	2026-05-06T08:37:52Z	Right now if you add_meta_box() to a custom page, like using add_submenu_page() and then calling do_meta_boxes(), the screen options and post box JS don't work automagically. They should.	mitchoyoshitaka
	29312	No recommended nonce refresh functionality in Heartbeat.		Administration	3.6	normal	normal		enhancement	new	dev-feedback	2014-08-22T07:49:19Z	2019-06-04T19:26:31Z	"Oddly enough it seems there isn't an obvious way to refresh nonces that may be needed on the page after heartbeat-api login dialog. For example, go to wordpress plugins listing page, notice the activate, deactivate links all have a nonce part in the request.

In a second tab, log out of the site, and go back to plugin listing page.

After awhile, the page realizes it's not logged in, and pops up a log in screen. Log in, and click an ""activate"" or ""deactivate"" button.

Notice it gives the nonce-failure message, ""are you sure you want to do this""? Because the previous session's nonces don't work. Why does Wordpress not know to refresh these nonces? I thought new nonces would be sent back as a heartbeat-ajax, but it looks like there isn't an ajax request with the login screen.

It seems $(document).on('heartbeat-nonces-expired') can be used to detect when this situation happens, but it happens many times after login successful, is not just triggered once."	programmin
	17661	Appending date & author based query vars to a permalink overrides the permalink		Canonical	3.1	normal	normal		defect (bug)	new	has-patch	2011-06-02T11:05:05Z	2026-10-30T16:06:06Z	"Some canonical code branches are not properly accounting for extra query variables being specified via the url.

For example, these url's are not handled properly:
{{{
/2008/?author=1 redirects to /author/admin/
/author/admin/?year=2008 redirects to /year/2008/
/category/uncategorized/?year=2008 redirects to /2008/
}}}

This happens with most date based branches, as once a higher priority canonical rule is hit, the permalink component is ignored.

The canonical code includes a branch to add any ""forgotten"" `$_GET` variables back onto the url, however this doesn't help when it's the rewritten variables are being lost."	dd32
	36355	Article URL redirects no longer working		Canonical	4.0	normal	normal		defect (bug)	new		2016-03-28T15:20:39Z	2019-06-04T19:35:41Z	"On multiple sites, we have started using article URLs with the post ID in them. Historically, this has allowed WordPress to find the post and do a 301 redirect when the slug, date, or other parts of the URL path changed.

For example, Permalink - %year%/%vertical%/%category%/%postname%-%post_id%/

All of these URLs should redirect us to this article: http://variety.com/2016/tv/news/the-loud-house-premiere-date-video-nickelodeon-1201740128/

http://variety.com/2015/tv-news/news/the-loud-house-premiere-date-video-nickelodeon-1201740128/
http://variety.com/2015/tv-news/news/test-url-slug-1201740128/
http://variety.com/the-loud-house-premiere-date-video-nickelodeon-1201740128/
http://variety.com/2016/the-loud-house-premiere-date-video-nickelodeon-1201740128/

While the first 2 examples work correctly, the last 2 URLs land on 404 page inspite of correct %pagename%-%post_id% combination. 

If we have Permalink - %year%/%vertical%/%category%/%postname%/

The last 2 structure work correctly and reach correct article page. For example - http://hollywoodlife.com/2016/03/28/lip-sync-battle-the-walking-dead-sasha-vs-maggie-video/

http://hollywoodlife.com/lip-sync-battle-the-walking-dead-sasha-vs-maggie-video/
http://hollywoodlife.com/2013/lip-sync-battle-the-walking-dead-sasha-vs-maggie-video/

Since we have a correct %postname%-%post_id% combination in the first Permalink structure URL, we should be able to reach the correct article page in the last 2 examples there too.
"	archanamandhare
	36873	Canonical redirect code does opposite of comment, breaks script when home_url starts with https		Canonical	4.5.2	normal	normal		defect (bug)	new		2016-05-18T03:43:01Z	2019-06-04T19:37:46Z	"The comment on line 444 in wp-includes/canonical.php says that it only changes the host if it's adding or removing ""www."". It changes the host to lowercase if capitalization is the only difference or if the change is NOT adding or removing ""www."". Either the comment or the code should be changed.

This is causing a problem when I try to run the script below. If the home url (used on line 176) is ""https://www.example.com/"", then the host is removed and redirect url changes to ""https:///"". This makes the parse_url call on line 69 return false and end processing.

I believe this is why the script fails. There's a lot of code here. Apologies if I have it wrong.

Here's the script:
define('WP_USE_THEMES', true);
require_once('/var/www/html/wp-blog-header.php');

I can workaround the bug by explicitly setting some server variables before calling that code:
$_SERVER = array (
    'REQUEST_URI' => '/',
    'HTTPS' => 'on',
    'HTTP_HOST' => 'www.example.com',
);"	thasmin
	13041	Canonical redirection will redirect a non-exitant page to a post.	dd32	Canonical	3.0	normal	normal		defect (bug)	reviewing	has-patch	2010-04-18T06:14:20Z	2019-06-04T19:21:48Z	"Following on from #12601

Canonical redirection will kick in for http://localhost/wordpress-commit/apage/something and redirect it to http://localhost/wordpress-commit/2010/02/13/something-else/

#12601 limited redirect_guess_404_permalink() to only searching in the same post_type if one was provided, for posts and pages however, which are builtin, these vars are not set. 

I'm attaching a patch which will prevent a Page -> Post redirection, but not the other way around. - this patch was originally added to the other ticket."	dd32
	37505	Filtering pagination when the pagenumber doesn't exist.		Canonical	4.5.3	normal	normal		defect (bug)	new		2016-07-29T05:10:50Z	2019-06-04T19:40:25Z	"Hello :).

`WP_Query::page` or `$GLOBALS['page']` or `get_query_var( 'page' );` will return whatever value is set by the visitor on a non-paginated page or post.

On a paginated page/post, it will 301 redirect the visitor to the first page, this is OK.

'''An example, on a post or page without pagination:'''

The output of the page will be incorrect, specifically on these two parts (both Title and Canonical URL show pagination).
URL: `http://example.com/2016/07/29/hello-world/123/`
{{{
<title>Hello world! &#8211; Page 123 &#8211; Example.com</title>
...
...
<link rel=""canonical"" href=""http://example.com/2016/07/29/hello-world/123/"" />
}}}

This is a major concern for SEO, as it will output duplicated pages.
Abusers could mark otherwise good pages as duplicated by simply linking to a non-existing non-paginated page.

'''My suggestion:'''
Check against `$GLOBALS['multipage']` (or `$GLOBALS['numpages']`) prior to creating the above output.
"	Cybr
	37832	Using ?p=xxx on a posts page with an invalid post ID does not return a 404 status		Canonical		normal	normal		defect (bug)	reopened		2016-08-25T23:06:41Z	2025-10-30T20:13:58Z	"Steps to replicate:

- Create a page and set it as the posts page.
- Visit this page with ?p=123456 (an invalid ID) added.

WordPress will return whatever 'no results found' message you have in the theme, but with a 200 status.

The handle_404 function seems to have been set up to always give a 200 status if is_home() returns true. This should not apply if you're overriding the query in some way via the URL.

Somehow many of these URLs have been detected by Google on a site of ours and are being reported as soft 404s. How they were found is one thing, but WordPress should not be returning a 200 status regardless."	smerriman
	20386	"Year permalinks ""win"" against category permalinks"		Canonical		normal	normal		defect (bug)	new	needs-unit-tests	2012-04-07T05:20:55Z	2019-06-04T19:22:56Z	"We need to decide whether category permalinks should take priority over year permalinks.

e.g. /2008/?category_name=cat-a

Should that stay the same, or redirect to:

/category/cat-a/?year=2008

We have a unit test which is failing."	markjaquith
	30631	posts_per_page causing infinite duplicate content		Canonical	4.0.1	normal	normal		defect (bug)	new	has-patch	2014-12-08T20:05:26Z	2026-08-22T08:38:21Z	"While using the posts_per_page in the pre_get_posts, if you set it to -1. It will output all the posts. The issue is that if you use this with the main query on a taxonomy archive page, then it will create unlimited number of subpages with all the same content as the main page :
taxonomy-1/
taxonomy-1/page/2/
taxonomy-1/page/3/
...
taxonomy-1/page/500/
etc...

It is probably not really the expected behavior...
"	firebird75
	18385	"Canonical redirections not suited for Queries with multiple query vars and ""pretty permalinks"" in general"		Canonical	3.2	normal	normal		enhancement	new	dev-feedback	2011-08-12T09:05:03Z	2019-06-04T19:22:40Z	"When the Canonical code was originally written, it served it's purpose quite well. However, over the years the number of Query vars which can be used to access content via has increased, and so have the number of archive views. This has lead to increased complexity in the Taxonomy canonical code which has needlessly caused bugs.

What I'm proposing, is that it might be time to lay to rest the current `if.. elseif.. elseif..` style checks, It's not possible for 1 if branch to handle every single access point without duplicating another branch.

As a result, I've put a half-finished together alternate version of Canonical, It's based on tallying up which query vars have been used/accounted for and removing any duplicates.. It's certainly not the best, but it's fairing better with the unit tests so far.

{{{
Unit Testing: http://unit-tests.trac.wordpress.org/browser/wp-testcase/test_includes_canonical.php
Before: FF.......FFFF..FFF.....F......FFFFFF.F....F.....FF....FF...
 After: FF...........FFF..................FF..................F....
}}}

It's a work in progress, but it's worth considering IMO.

Attaching a diff, and the full file (since the diff is going to be rather unreadable in some sections)"	dd32
	10543	Incorrect (non-UTF-8) character handling in tag's name and slug	westi*	Charset	2.8.2	normal	normal		defect (bug)	accepted	needs-unit-tests	2009-08-04T05:26:11Z	2025-04-16T05:47:14Z	"Incorrect (non-UTF-8) character tag's name and slug are handled in different way: name is truncated on 1st such character, and in slug they are just removed (no truncation). WP should handle both in the same way - drop invalid characters, instead of truncation.

I found this issue recently. One of the Polish programs for adding posts to the Wordpresses does not encode tags in UTF-8 - it left them in ISO-8859-2. I notified author of this bug. Unfortunately there are many copies around, so it may take a long time before everyone upgrade."	sirzooro
	22261	Recent comments widget makes additional queries when pagination is enabled		Comments		normal	normal		defect (bug)	new		2012-10-23T14:19:59Z	2019-06-04T19:23:35Z	A continuation of #15400.	nacin
	51305	"wp_list_comments returns nothing if ""per_page"" parameter is defined"	metalandcoffee	Comments	5.5.1	normal	normal		defect (bug)	reopened	has-patch	2020-09-14T05:37:09Z	2026-11-05T06:21:07Z	"Hi,
The function wp_list_comments returns a notice if ""per_page"" parameter is defined.
The notice is in wp-includes/comments-template.php

wp_queue_comments_for_comment_meta_lazyload( $_comments )

message: ""Undefined variable: _comments""


Thanks!"	SGr33n
	34389	Comment pagination settings should discourage infinite comments-per-page		Comments		normal	normal		enhancement	new		2015-10-21T16:37:20Z	2019-06-04T19:32:55Z	"The default value for `page_comments` is `0`. See #12562. When a comment has hundreds or thousands or trillions of comments, the lack of pagination causes severe performance problems. Part of the spiritual journey described in #8071 involved forcing pagination. We tried a few things in #8071, but decided to leave the problem for a separate ticket.

A couple of possible ways forward, some of which are mutually compatible:

- Force comment pagination in all cases. This could be coupled with a bump in the default value of `comments_per_page`. Good: It's consistent, and it allows us to drop a checkbox from the UI. Bad: It breaks comment permalinks for many posts (though see #34106).
- Force comment pagination only when the number of comments on a post is dangerously high. Good: It reduces permalink breakage. Bad: It's confusing for the user.
- Do nothing for existing installations, but enable `page_comments` by default on new installs. This could be coupled with a bump in the default value of `comments_per_page`. 
- Add some sort of AYS message to options-discussion.php that discourages admins from disabling `page_comments`, or setting `comments_per_page` too high."	boonebgorges
	25338	Comments of password-protected posts should not be shown to logged-in users without edit capability		Comments		normal	normal		enhancement	new		2013-09-17T02:30:31Z	2019-06-04T19:24:16Z	"Currently, if an user creates a password-protected post, Authors and lower roles cannot view the post neither on the front end nor in the backend, unless it was their own post (or they have the password).

However, they can see comments of those posts while viewing edit-comments.php.

Suggested that comments of password-protected posts should not be displayed to users without ability to view/edit the post in the admin."	kraftbj
	35432	`wp_list_comments()` should perform a more modest fallback comment query		Comments	4.4	normal	normal		enhancement	new	has-patch	2016-01-13T04:17:29Z	2026-10-22T19:20:51Z	"Previously: #35175, #35356, #8071.

In 4.4, `comments_template()` was updated so that it no longer queries for every single comment belonging to a post; instead, it only fetches the comments appropriate for the current comment-page. See #8071. This change introduced a bug in `wp_list_comments()`: since all of the post's comments were no longer available in `$wp_query->comments`, it was no longer possible to pass custom (read: differing from `$wp_query`) pagination params to `wp_list_comments()` and get the proper comments back. We addressed this problem in 4.4.1 by adding a clause to `wp_list_comments()` that falls back on the old behavior - querying for all of the post's comments - if non-default pagination params are provided. See #35175 [36157].

This fallback solution is obviously not ideal. Querying for all of a post's comments is what #8071 was supposed to fix. `wp_list_comments()`, like `comments_template()`, should be able to perform a fallback query that fetches only the required comments. 

The necessary logic already exists in `comments_template()`, so this may be a relatively simple matter of porting the functionality over, or abstracting it for use in both functions. 

cc @smerriman"	boonebgorges
	34690	when user login is required to comment, there should be a link to registration		Comments		normal	normal		enhancement	new	has-patch	2015-11-15T19:12:17Z	2019-06-04T19:33:05Z	"Right now when user login is required the login form only shows a message about the need to login, but if registration is open, there is no reason not to send the visitor directly to the registretion page.

At the very least the default text of the link to the login page should be changed to some thing like ""Login or Register"" when registration is open."	mark-k
	35503	"Dashboard page: comment status in ""Activity"" group box shows incorrect"		Comments	4.4.1	normal	trivial		feature request	new	reporter-feedback	2016-01-17T21:54:34Z	2019-06-04T19:33:54Z	"'''STEPS TO REPRODUCE''':
log in (subscriber user), create new comment for post, log in (administrator user), approve comment on Dashboard page using ""Activity"" group box, click ""Approved (1)"", click ""Go back one page"" in browser.
'''EXPECTED RESULT''': comment status - Approved
'''ACTUAL RESULT''': comment status - Unapproved
This problem was found in browsers Firefox 44.0b9, Chrome 47.0.2526.111 m"	antonrinas
	35256	$wpdb->insert_id equals 0		Database	4.2.4	normal	normal		defect (bug)	reopened		2015-12-29T19:54:39Z	2019-06-04T19:33:42Z	"Hi, reading this https://make.wordpress.org/core/2015/04/02/the-utf8mb4-upgrade/

Ok then cool.

But I've had this weird bug with the table posts : collation utf8_mb4 was not set properly for this table (I do not really know why). As a result everytime `$wpdb->insert_id` was used it just inserted posts with ID `0` !

For example, each upload just failed and because an AJAX grid layout is used in admin (media library page) it just failed to load anything !

Took me some time to realize this was related to a database issue and not my php code that uses `wp_insert_post()`.

My question is : would it be safer to prevent WordPress from inserting posts with ID `0` in any case ? I'm refering to this line https://core.trac.wordpress.org/browser/tags/4.4/src/wp-includes/post.php#L2926
"	anonymized_10765487
	32868	Consider running utf8mb4 conversion on each database update		Database		normal	normal		defect (bug)	new		2015-07-03T03:27:55Z	2019-06-04T19:30:29Z	"As mentioned in #32127 and elsewhere, we should run the utf8 -> utf8mb4 conversion on each db update.

The main reason is that the server environment could change between updates.
For example, if someone upgrades MySQL between 4.3 and 4.4's release, at present they'll update to 4.4 and still not have utf8mb4 support, even though WordPress will now be able to support it."	dd32
	21762	Storing a multidimensional array using register_setting double-serializes subarrays identified with a string	sekatsim	Database	3.4	normal	normal		defect (bug)	new		2012-08-31T22:43:16Z	2019-06-04T19:23:21Z	"Storing a multidimensional array, such as `$options['my-option'][$id] = ""value""`, into the database using register_setting results in the ""my-option"" string getting double serialized. The option_value is stored as:

`s:9:""'my-option'"";a:1:{s:9:""option-id"";s:5:""value"";}`

The my-option array is encased in both single and double quotes, so that `isset($options['option-id']` evaluates false, but `isset($options[""'option-id'""]` evaluates true."	sekatsim
	31759	Allow to set $allow_bail when creating new wpdb object to handle connection error silently		Database	4.1.1	normal	normal		enhancement	new		2015-03-25T08:49:23Z	2019-06-04T19:28:21Z	Class wpdb doesn't allow to set $allow_bail when creating new wpdb object. So there will be always error 500 on connection error. It would be great to have possibility to set $allow_bail at wpdb object creation (by constructor arguments perhaps).	szaqal21
	31042	WPDB field_types Variable Too Broad?		Database		normal	normal		enhancement	new		2015-01-17T03:07:49Z	2019-06-04T19:27:49Z	"I was wondering if it might make sense to tie the field_types format definitions to tables and columns instead of just columns. As people use WordPress more there may be situations like the one I encountered today where columns of their enhancement tables overlap with those of WordPress' default tables. In my situation my user_id was more of a guid so it was a string that was being formatted to a decimal. While this might not be a common problem with the overhead it would take to change it to a multidimensional array it might make sense.

If this is something others would find useful or practical I would be happy to rework the code."	njkrut
	20634	dbDelta is unforgiving about field declarations		Database	1.5	normal	normal		enhancement	new	dev-feedback	2012-05-08T03:27:05Z	2019-06-04T19:23:05Z	"the variable type is case sensitive:
int(22) != INT(22)

the mysql type BOOL or BOOLEAN comes back from the db as tinyint(1):
tinyint(1) != BOOLEAN

Not a huge issue, just annoying. Makes dbDelta fire off unnecessary sql.
 "	SidHarrell
	46366	Posted Date - Field Arrangement - Reflect Locale Format OR Combine Fields		Date/Time	5.1	normal	trivial		enhancement	reopened	close	2019-02-27T23:01:22Z	2025-01-22T20:26:59Z	"In the ""Quick Edit"" form, as well as the Classic Editor's ""Publish"" Metabox, show 5 fields for entering the Publish Date for a Page/Post.

[Month (Select)] [Day (Text)], [Year (Text)] @ [Hour (Text)]:[Minutes (Text)]

This is the American format, with Month first, but is not a common format outside of the US.

Even when the Date format is changed in Settings, that selected format is not used to arrange the Date Entry fields noted above.

Suggestion: Integrate a JS Library which allows DateTimes to be entered in various formats, in a single field, and then be processed to produce a value in the format which is required.

Example: I should be able to write a DateTime as ""2019-2-28 10:00"" and for that to be converted to ""2 Feb 2019 10AM""."	Lucanos
	49396	Inconsistent Time format		Date/Time	5.3.2	normal	normal		feature request	reopened		2020-02-10T19:55:39Z	2024-11-05T16:04:03Z	"Why is the time format in settings:general given as 12:51 pm (with other options) yet the time for scheduling a post is in military time (e.g. 13:51).
And, there's no option for military time in the Time Format in general settings. 
It would be really great if this were consistent.
It's really easy to intend to schedule a post for 4:31 pm, but it posts immediately, because wordpress is set to treat this as 04:31 (i.e. 4:31 am).
"	daveslc
	32513	Disabling WYSIWYG tab via the wp_editor_settings filter breaks the editor if it contains a textarea tag		Editor	4.2.2	normal	normal		defect (bug)	new		2015-05-28T00:37:31Z	2019-06-04T19:29:06Z	"I got the request from a client to disable the WYSIWYG tab so that the site admin could only use html for a custom post type, I was able to do this using a few techniques - CSS, user_can_richedit filter, plugins, etc - but this particular case it was needed to be applied to the default WP editor only - the one I print using the_content() - since the site uses other wp_editors for that custom post type.

Anyway I was able to do it using the wp_editor_settings filter, the only problem was that the value in this editor contains a textarea tag, and the editor breaks as soon as it reaches ""<textarea>"", as can be seen in the screenshot attached.

I was able to make this work anyway, using a second filter, but I think this should be part of the WP core. I would be more than happy to submit the fix myself if this issue is considered for the next patch."	andruxnet
	59537	Quote toolbar is not shown for mobile view		Editor	6.4	normal	minor		defect (bug)	assigned	reporter-feedback	2023-10-04T11:42:28Z	2023-12-04T19:39:23Z	"1. Create a post
2. Add a quote
3. Check that the capture toolbar in the quote block is shown
4. Change screen size (ex. 768X1024)
5. Quote toolbar is not shown
"	oksankaa
	35932	Square brackets for shortcodes can't be entered with default Czech, Slovak and maybe other keyboards		Editor		normal	normal		defect (bug)	reopened		2016-02-24T11:16:12Z	2019-06-04T19:35:00Z	"In Czech, Slovak, and probably some other languages, we have dedicated right alt click for writing some lesser used characters. E.g. for writing [ you need to press Right Alt plus F

And that's the problem, as this combination is in wysiwyg editor shortcut for opening wysiwig in full screen window. So it is not possible for us to write any shortcode, unless we switch keyboard or write it elsewhere and copy to editor or remember the numeric value of the symbol and writing it on numlock.

I am not sure, and i doubt, that this can be solved via language .pot file (so that every language could define the keys for every shortcut), and i have not found, where it is defined. I know that tinymce got addShortcut method, bot no delete or edit shortcut....

it is wrong in both trunk and latest"	thomask
	61267	Theme JSON Tests: Refactor base styles to a static variable		Editor		normal	normal		defect (bug)	new		2024-05-22T10:14:58Z	2024-07-24T18:19:34Z	"This was done originally in https://github.com/WordPress/gutenberg/pull/58975.

The aim is to make the code easier to read and maintain.

There's a PR on GitHub here: https://github.com/WordPress/wordpress-develop/pull/6603"	scruffian
	35158	Titles Change over to Admin User Name		Editor	4.4	normal	normal		defect (bug)	reopened		2015-12-18T18:14:27Z	2019-06-04T19:33:28Z	"When I open the page and post editor, the contents of the title field changes over from the name of the page or post to the admin user name.  The change takes about 2 - 3 seconds.  I can watch it before my eyes.  I turned off all plugins, and changed over to the Twenty Sixteen theme and the problem persisted.  The problem occurred after updating to Version 4.4.  When I look in the WP Admin at the Post or Page table, the titles of my entries appear fine.  When I open each post or page in `Quick Edit` mode, I observe the post and page titles correctly.  The problem only occurs in the editor.  The result is that when view the page or post, the Admin User name appears in place of the post or page title.  

I'm developing locally using Desktop Server 3.8 on top of XAMPP. App runs on Mac OS X 10.9.5 (Mavericks). "	yogaman5020
	32803	get_extended() Loses Container Tags When Opening Tag is in [main]		Editor	4.2.2	normal	normal		defect (bug)	new		2015-06-27T02:21:14Z	2019-06-04T19:29:59Z	"`get_extended($post->post_content)['extended'])` loses container tags that were opened in [main] and completed in [extended].

The missing opening tag should be inserted at the start of the [extended] HTML segment and the missing closing tag should be add at the end.

For instance if there is a <blockquote> tag in the [main] section (prior to a <!--more--> comment/tag), and the blockquote completes anywhere within or following [extended], that blockquote element is entirely missing in the [extended] segment.

I'm not sure if the Editor section is necessarily where this ticket should go. But it concerns the way the editor modifies the final code."	rcgordon
	65669	wp_split_selector_list() naively re-splits selector lists and mis-splits valid selectors		Editor	7.1	normal	normal		defect (bug)	new	has-patch	2026-07-20T11:16:50Z	2026-07-20T11:24:12Z	"`wp_split_selector_list()` in `src/wp-includes/block-supports/states.php` (added in
[62453], #65239) splits a CSS selector list on top-level commas but only tracks
parenthesis depth. In the **same release**, [62607] (#65265) added a robust
`WP_Theme_JSON::split_selector_list()` that also handles commas inside strings,
escaped commas, CSS comments, and CDO/CDC tokens.

The `states.php` copy mis-splits inputs the theme.json parser gets right (verified
by running the function directly):

|| Input || `wp_split_selector_list()` || Correct ||
|| `[data-label=""Save, continue""]` || `['[data-label=""Save', ' continue""]']` || one selector ||
|| `.foo\,bar,.baz` || `['.foo\', 'bar', '.baz']` || `['.foo\,bar', '.baz']` ||

Reachable via `wp_build_state_selector()` (states.php:503) and the root/element
selector loops (states.php:312, :336), which pass block-metadata selectors —
attribute selectors are legal there.

Both functions are new in 7.1 and were written by the same author three weeks apart;
the naive copy landed first ([62453]) and was never revisited when the robust parser
arrived ([62607]). Since the function has never shipped, fixing it in 7.1 avoids
releasing the bug at all.

Proposed fix: extract the robust logic into a shared helper and call it from both
places. `WP_Theme_JSON::split_selector_list()` is currently `protected static`, which
is why `states.php` re-implemented it instead of reusing it — that duplication is the
root cause to resolve.

Related: #65239, #65265."	khokansardar
	36216	Keyboard shortcut for displaying contextual help		Editor		normal	normal		enhancement	new		2016-03-12T10:22:18Z	2019-06-04T19:35:23Z	"Some websites have help panels that pop up when a user types a keyboard shortcut.

Press `command+/` on a Mac or `control+/` on Windows in Slack and a pane of keyboard shortcuts pops up.

I wonder if it would be helpful to use a keybinding like this to open the ""Keyboard Shortcuts"" modal when a user is within TinyMCE. "	ericlewis
	24712	Get errors from wp_oembed_get		Embeds	3.5.2	low	normal		enhancement	new	has-patch	2013-07-08T19:23:44Z	2019-06-04T20:01:26Z	"Would it be possible to add error collection to the oEmbed class? It would be more useful to provide a helpful error when a remote oEmbed source is not available rather than a generic ""there was an issue"". As an example, if you try to use wp_oembed_get() on a YouTube video that is not allowing embedding, plugins (and/or WP itself) would have the option of returning a specific error: ""The requested video doesn't not allow for embedding""."	slushman
	29621	Export post title with markup		Export		normal	normal		defect (bug)	new	has-patch	2014-09-11T08:04:25Z	2019-06-04T19:46:25Z	"The Theme Unit Test data includes a post [http://wpthemetestdata.wordpress.com/2013/01/05/markup-title-with-markup/ Title With Markup]. However, the current exporter filters the post titles with `the_title_rss`, which has `strip_tags` hooked to it, so it always needs fixing up after importing.

The content and excerpt blocks of the export are uniquely filtered with `the_content_export` and `the_excerpt_export`, and **not** `the_content_rss` and `the_excerpt_rss`.  

Attached is a patch which changes the exporter from using `the_title_rss` to a new `the_title_export` filter, and wraps the output in CDATA tags, as per content and export blocks.

Advantages:

* Unique filter for handling post titles during export.
* Fixes stripped tags issue.
* Filter name that is consistent with other filters in that context.
* Use of `wxr_cdata()` for consistency with other blocks of output in that context.

Disadvantage:

* Backwards-incompatibility - applying a filter to `the_title_rss` thinking it would also apply to exports would no longer work.

There are no [https://core.trac.wordpress.org/browser/trunk/tests/phpunit/tests/export un-skipped unit tests] in place for testing the exporter so I've not included any here."	GaryJ
	20903	Exporter gets stuck in a loop a loop/break in the category hierarchy	westi	Export	3.1	normal	normal		defect (bug)	new	has-patch	2012-06-11T11:26:07Z	2019-06-04T19:43:53Z	"Ideally it should be impossible for a loop/incorrect parentage in a category hierarchy to exist.

But sometimes they do.

If one does exist then {{{export_wp()}}} gets stuck :(

It gets stuck in this code:

{{{
		// put categories in order with no child going before its parent
		while ( $cat = array_shift( $categories ) ) {
			if ( $cat->parent == 0 || isset( $cats[$cat->parent] ) )
				$cats[$cat->term_id] = $cat;
			else
				$categories[] = $cat;
		}
}}}

Similar to #20635 but different."	westi
	31084	Export capabilities should allow the current user to export their own posts		Export		normal	normal		enhancement	new		2015-01-21T09:30:53Z	2019-06-04T19:47:38Z	"Currently, exporting is restricted to users with the 'export' capability (Admins, Network Admins), which effectively locks Editors, Authors, and Contributors out of the the process. I am proposing that an implicit capability in the exporter be created whereby users without the 'export' capability can choose to export their own posts.

The functionality to select a single user's posts for exporting is already built-in for those with the capability, so there is no underlying exporter code that needs to change. Front-facing modifications would include adding a message to the Export screen for non-Admins explaining that they can only download their own posts, specifying the proper single-user form parameters by default, and a few checks on the back-end to avoid any forgery.

Functionally, this enhancement would free users to own and control their content, and may help prevent site owners from holding their contributors' content hostage."	rileypaulsen
	32130	Export tool should manage users		Export	3.1	normal	normal		enhancement	new		2015-04-25T10:26:12Z	2020-07-06T14:50:40Z	"I'm migrating a site from a server to another with the export/import tool.

Users are not imported but new users are created, consequently users informations (including password) are lost.

Export tool shoud export/import users as well as pages, articles, ..."	jerome.martin
	28375	export posts/pages query	chriscct7	Export	3.1	normal	normal		enhancement	assigned		2014-05-27T14:11:42Z	2019-06-04T19:45:51Z	"In wp-admin/includes/export.php on line 75 the following check has been done:
{{{
if ( 'post' == $args['content'] || 'page' == $args['content'] ) {
}
}}}
This can be removed so the check can be done foreach post?

"	alcowink
	20888	RDF Feed validation problems.		Feeds	3.3.2	normal	normal		defect (bug)	reopened	needs-unit-tests	2012-06-08T11:05:19Z	2019-06-04T19:43:51Z	"The RDF feed produced by feed-rdf.php produced validation errors due to description either not encoded correctly or not wrapped in CDATA tags.

To reproduce view a RDF feed: http://en.blog.wordpress.com/feed/rdf/

To see the validation errors: http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fen.blog.wordpress.com%2Ffeed%2Frdf%2F


Attached is a patch to fix this issue.

"	hootbah
	34128	Tests_Feed_RSS2::test_channel fails when WP_TESTS_TITLE contains an apostrophe		Feeds		normal	normal		defect (bug)	new	needs-unit-tests	2015-10-02T14:12:16Z	2019-06-04T19:52:26Z	"If the site configuration contains an apostrophe in the site title, the test_channel unit fails.

{{{
1) Tests_Feed_RSS2::test_channel
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Rob&#039;s Test Blog'
+'Rob's Test Blog'
}}}

The happens with either of the following configurations:

{{{
define( 'WP_TESTS_TITLE', 'Rob\'s Test Blog' );
}}}

and

{{{
define( 'WP_TESTS_TITLE', 'Rob&#039;s Test Blog' );
}}}"	miqrogroove
	25741	Broken WP_Filesystem methods		Filesystem API		normal	normal		defect (bug)	new		2013-10-28T03:18:03Z	2019-06-04T19:44:55Z	"The following methods of WP_Filesystem do not work as intended, as they're called with absolute paths, and fail to find those absolute paths within the relative paths returned from the listing functions:
* WP_Filesystem_FTPext
 * owner()
 * getchmod()
 * group()
* WP_Filesystem_ftpsockets
 * owner()
 * getchmod()
 * group()

It's worth noting that the following FTP methods are available but don't actually hit the filesystem, and are just there to match the `WP_Filesystem_Direct` methods:
* is_readable()
* is_writable()
* atime()
* touch()

Attached is a patch I had locally from during 3.7 development, not thoughly tested, I believe WP_Filesystem_FTPext::owner() at least needs extra work.
The patch also removes the above methods from the FTP classes and relies upon the `WP_Filesystem_Base` versions - as a result, the is_writable() and is_readable() methods changed to assume things are readable/writable."	dd32
	32774	Improve WP_Filesystem::dirlist() format consistency		Filesystem API		normal	minor		defect (bug)	new		2015-06-24T07:05:58Z	2019-06-04T19:49:36Z	"At present the return values of dirlist() between the various methods are scattered between several different formats

||Field||Direct||FTP Ext||FTP Sockets||SSH2||
||name||Yes||Yes||Yes||Yes||
||perms||Yes||Yes||Yes||Yes||
||permsn||Yes||Yes||Yes||Yes||
||number||`false`||Yes||Yes||`false`||
||owner||Yes||Yes||Yes||Yes||
||group||Yes||Yes||Yes||Yes||
||size||Yes||Yes||Yes or `<DIR>`||Yes||
||lastmodunix||Unix Timestamp||No||No||Unix Timestamp||
||lastmod||`Nov 15`||No||No||`Nov 15`||
||time||`02:12:48`||Unix Timestamp||Unix Timestamp||`02:12:48`||
||year||No||Maybe||Maybe||No||
||month||No||`Nov`||`Nov`||No||
||day||No||`15`||`15`||No||
||hour||No||`02`||`02`||No||
||minute||No||`12`||`12`||No||
||type||`d` or `f`||`d`, `f`, or `l`||`d`, `f`, or `l`||`d` or `f`||
||isdir||No||Yes||Yes||No||
||islink||No||Yes||Yes||No||

If the FTP Server was Windows, it'd complicate it further by not returning certain fields, using different data in them, or getting confused and not returning any data.

The attached patch boils it down to a consistent result of `[ 'filename.ext' => [...], ...]` with the nested arrays of:
||Field||Value||
||name||Filename||
||time||Unix Timestamp of last modified||
||size||File size or false for Directories||
||type||`d`, `f`, or `l` for Directory, File, or Link respectively||
||perms||A formatted human-readable `drwxr-xr-x`||
||permsn||A octal as string `'0755'` for Back-compat purposes||
||owner||Owner ID or name||
||group||Group ID or name||
||files||If it's a recursive directory lookup, a nested array of files||

A number of these are only got back-compat or to match the FTP output - most of these fields are not used by WordPress at all - Specifically `group`, `owner`, `perms`, `permsn`, and `time` are ignored 100% by WordPress (along with a lot of the methods)
Changing this has some back-compat issues for any plugins doing anything special with the fields - however they've had to work around the fields returning random content already, so this shouldn't be a huge issue (or they were already broken)"	dd32
	23845	Install new theme via FTP failed		Filesystem API	3.5.1	normal	normal		defect (bug)	new		2013-03-22T12:19:03Z	2019-06-04T19:44:34Z	"New theme installation via FTP has failed when we specified custom FTP_BASE folder.  If we try this theme installation , wordpress shows error message: ""Unable to locate WordPress theme directory"". This was because search_for_folder method do not respect FTP_BASE setting and allows to walking on parent directories.  All solutions I found in google is ugly hacks who only mask the problem but does not resolved it
I attached patch  example who resolve this problem. I hope is useful and  will help to repair this bug."	Przemyslaw Plewa
	20716	Control how and when request_filesystem_credentials outputs creds form	dd32	Filesystem API	3.4	normal	normal		enhancement	assigned	has-patch	2012-05-21T02:02:08Z	2019-06-04T19:43:49Z	"When using WP_Filesystem in a plugin or other external app, you can initialize it this way:

{{{
if ( false == ( $creds = request_filesystem_credentials( $url, $method, false, false, $form_fields ) ) ) {
    return true;
}
}}}

Makes sense. If the method isn't direct or we don't have the credentials we need, `request_filesystem_credentials` outputs a form and returns false. Then we check again to make sure the credentials can be verified, and it not, we continue to output the form until the credentials are good.

{{{
if ( ! WP_Filesystem( $creds ) ) {
    request_filesystem_credentials( $url, $method, true, false, $form_fields );
    return true;
}
}}}

`request_filesystem_credentials` arbitrarily outputs the form whether you want it to or not, unless you explicitly filter the `request_filesystem_credentials` function itself. Using this in conjunction with Ajax, you have to use output buffering to catch the output and return it to the Ajax script for processing or else you get errors. This definitely isn't ideal.

I'd suggest storing the form in a variable and possibly pass a parameter that determines whether or not we want to actually output the form or not. Or, if there is another (better) way, that's cool too. Just some way to help `request_filesystem_credentials` determine how we want to interact with credentials should we need them.

"	griffinjt
	34064	Filter the file type error message		Filesystem API		normal	normal		enhancement	new		2015-09-28T20:42:56Z	2021-06-03T14:54:59Z	"When uploading a file type that is not permitted, the error `Sorry, this file type is not permitted for security reasons.` is returned.

By adding a filter, a plugin/site admin can add a customized message. 

An example use case: A plugin that allows a front-end post submission system that allow file add-ons. By filtering the response, the author/admin can give more detailed specifications including allowable file types, if desired.

Example function of the filter in psudocode:

{{{
add_filter( 'upload_filetype_error', 'bk_test_error' );
function bk_test_error() {
	$allowed = get_allowed_mime_types();
	$message = ""This type of file is not allowed! Please use one of the following: "" . implode( ', ', array_keys( $allowed ) );
	return $message;
}
}}}
"	kraftbj
	33553	Bug with Linebreak before figcaption, fixed and then revert to make a fix elsewhere		Formatting	4.2	normal	normal		defect (bug)	new		2015-08-26T10:56:24Z	2019-06-04T19:51:03Z	"A linebreak is inserted before <figcation> in the WYSIWYG editor on edit pages.

A fix for #25646 was applied in commit 1842c2b on 13 Mar 2104 - Change set was [27527].

This was then reverted to make a fix for #29219 but the dev then caused the original bug to reappear. The commit is 6b84df3 on 16 Jan 2015 - Change set [31186]. 

A fix for the orignal bug is now needed again."	hughie.molloy
	36124	Format: Aside next to an embedded video, removes player and only displays URL		Formatting	4.4.2	normal	normal		defect (bug)	new		2016-03-06T03:47:09Z	2019-06-04T19:55:54Z	If you add a URL of a Vimeo or YouTube video into a page, it displays correctly. But if you then try to add an aside block of text next to the video, it no longer displays the embedded video player, but only displays the URL to the video. I even switched over to the Twenty Sixteen theme and this was an issue on that theme as well as the theme I'm currently using.	mynamedotcom
	34994	HTML5 elements reformatted poorly switching between Visual & Text editors		Formatting		normal	normal		defect (bug)	new		2015-12-10T22:38:56Z	2019-06-04T19:54:13Z	"HTML5 elements get reformatted in weird ways when switching between Visual and Text (HTML) editors.

Details tag (not fully supported in browsers yet, but still shouldn't receive this behaviour IMO) gets an additional &nbsp; above and below it upon each switch.

Section, article, and aside are all completely stripped of white space. This combined with the stripping of paragraph tags results in a block of run-together text within a couple of switches.

Demo:
[[Image(https://cldup.com/OA6dgTmyxU.gif)]]

I used HTML5 elements from https://www.tinymce.com/docs/demo/format-html5/ to test with."	kristarella
	25021	Improve sanitize_title_with_dashes % removal		Formatting	1.5	normal	normal		defect (bug)	new	dev-feedback	2013-08-13T11:45:00Z	2025-07-01T18:08:04Z	"The current method of % removal involves placeholders to prevent stomping on escape sequences:

{{{
// Preserve escaped octets.
$title = preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|', '---$1---', $title);
// Remove percent signs that are not part of an octet.
$title = str_replace('%', '', $title);
// Restore octets.
$title = preg_replace('|---([a-fA-F0-9][a-fA-F0-9])---|', '%$1', $title);
}}}

This leads to `sanitize_title_with_dashes('---aa---')` producing `%aa` instead of just `aa`.

[2189]"	duck_
	16495	Make iso8601_to_datetime a bit more compliant		Formatting	3.0.5	normal	normal		defect (bug)	new	needs-refresh	2011-02-08T19:37:09Z	2019-06-04T19:43:19Z	With a valid ISO 8601 date string with dashes in the date or decimal fractions for seconds, this function will fail to parse it correctly. The attached patch updates the regex to optionally accept dashes and decimal fractions for seconds (which are ignored). It also uses a variable for the regex since it was duplicated.	chrisscott
	36712	Paragraph tags removed from div elements if script tag is present		Formatting	4.5.1	normal	normal		defect (bug)	new		2016-04-28T23:51:32Z	2019-06-04T19:57:41Z	"I honestly have no idea how to summarize this bug (therefore my lousy title), so I'll best skip right to how to reproduce it.

- Get 10 paragraphs of text from Lorem Ipsum, and paste it to your visual editor. 
- Switch to the text editor and wrap the first 5 paragraphs in a div, and wrap the last 5 in a second div. 
- After the first paragraph in each div, simply write <script></script>
- Switch between Visual and Text editor, and watch the paragraphs in the second div disappear. 

For you convenience, you can copy the template from here, instead of typing it manually: http://pastebin.com/PFYj885M

If the paragraphs don't disappear after the first switch from text to visual, do it a couple of more times. I tried it on a fresh new install using the Twenty Sixteen theme. 

I encountered this bug while having a couple of Instagram embeds on the same page, all of which loaded a script. "	dankop
	29956	Paragraphs within list items disappear in the editor when switching from text to visual and back		Formatting	4.0	normal	normal		defect (bug)	new	needs-unit-tests	2014-10-14T16:42:07Z	2019-06-04T19:46:37Z	"On a fresh wordpress 4.0 in the editor when I enter 

<ol>
<li>a<p>b</p>
</ol>

or

<ol>
<li>a

b
</ol>

and switch from text to visual and back, I get

<ol>
<li>ab</li>
</ol>
"	brunni
	37077	Replacing one variable handler for another to ensure proper conditional check occurs 100%.		Formatting	4.5.2	normal	trivial		defect (bug)	reopened	has-patch	2016-06-11T23:18:57Z	2019-06-04T19:59:27Z	"I have a likely non-reproduceable problem that, nonetheless, still indicates a failure of a conditional check in wp-class.php.

I'd been receiving log file non-critical php errors/warnings for months referencing the rawurlencode() on line 528 getting an array variable. Which is not allowed for that function, hence the error.

When I changed line 526's conditional check from 
{{{
if ( !is_scalar($this->query_vars[$wpvar]) )
}}}
to
{{{
if ( ( !is_scalar($this->query_vars[$wpvar]) || is_array($this->query_vars[$wpvar]) ) )
}}}
the errors went away.

Bad plugin/theme code, notwithstanding, the fact that the conditional check fails at all indicates a need for ""refinement"". That's the whole point of these checks, to ensure bad code doesn't take down a website.

I'm even wondering if a more streamlined code change for line 526 to 
{{{
if ( !is_string($this->query_vars[$wpvar]) )
}}}
is more appropriate as string variables are all that rawurlencode() allows.

I hated changing any core file. But, I was able to quickly address a small issue that shouldn't have been allowed by the core. I don't think this change would impact anyone, the function build_query_string() this code falls within has been depreciated, anyway. 

BTW, I'm not sure why is_scalar() is failing. However, I came across a few instances across the web with similar quirks. Everyone of those problems was addressed in a similar fashion (i.e. using is_array() or !is_string() instead of !is_scalar()).

Source code from wp-class.php:

{{{
521	        public function build_query_string() {
522	                $this->query_string = '';
523	                foreach ( (array) array_keys($this->query_vars) as $wpvar) {
524	                        if ( '' != $this->query_vars[$wpvar] ) {
525	                                $this->query_string .= (strlen($this->query_string) < 1) ? '' : '&';
526	                                if ( !is_scalar($this->query_vars[$wpvar]) ) // Discard non-scalars.
527	                                        continue;
528	                                $this->query_string .= $wpvar . '=' . rawurlencode($this->query_vars[$wpvar]);
529	                        }
530	                }
}}}"	chadschulz
	25785	Unexpected Paragraph Formatting Within a Div Container		Formatting	3.7	normal	normal		defect (bug)	new	needs-unit-tests	2013-10-31T02:01:15Z	2019-06-04T19:44:59Z	"Though HTML mode in WordPress allows for the user to add in their own CSS styling and HTML content formatting if necessary, its normal behavior also makes it auto-format paragraph breaks without the user's input of paragraph tags.  This is EXPECTED behavior.

I have discovered that in this specific manner of formatting when writing a post or page (note the LACK of spacing between the div tag and the content and the multiple paragraphs):

{{{
<div>Insert FIRST PARAGRAPH here.

Insert SECOND PARAGRAPH here.</div>
}}}

The end result (both visually and looking at the source code) is that there is a MISSING opening paragraph tag at the beginning of the first paragraph right after the opening div tag.

IF the user adds their own spacing between the divs and the content, paragraph formatting with happen on its own, but if the user doesn't add in the spacing and starts the paragraphed content right after the div like in the example above, the first paragraph tag isn't automatically added in.

For a screenshot of the end result source code that is generated (with the missing opening paragraph tag), please see the attached file.

Cheers!"	EMG
	24846	Usage of a shortcode disables wpautop filter		Formatting	3.6	normal	normal		defect (bug)	reopened		2013-07-27T12:28:03Z	2019-06-04T19:44:48Z	"In WP3.6 RC1 when I do this:

{{{
Some text. Some text. Some text. Some text. Some text. Some text. Some text.
}}}

it works just fine. It creates a paragraph.

But when I do this (both in ""Visual"" and ""Text"" editors):
{{{
[symple_highlight color=""gray""]Some text[/symple_highlight]. Some text. Some text. Some text. Some text. Some text. Some text.
}}}
it doesn't wrap the text in anything. Paragraph is skipped.

The plugin that was used: http://www.wpexplorer.com/symple-shortcodes/ (but I bet it isn't plugin's bug)."	Looimaster
	27270	Validation for leading/trailing periods, or consecutive periods in email addresses is only done on the domain section		Formatting	2.7	normal	normal		defect (bug)	new	has-patch	2014-03-04T10:34:51Z	2019-06-04T19:45:29Z	"WordPress valids that the domain portion of the email address (after the @) doesn't have leading or trailing periods, or more than one period consecutively, but the same check isn't done on the portion before the @. This means that the following email addresses validate:

.name@email.com
name.@email.com
first..last@email.com

The attached patch will resolve this, although it might need a little refactoring to deal with the duplication in trimming periods and whitespace."	scruffian
	32729	WP sanitize + (plus) and other mathematic symbols as nothing instead of dash separator		Formatting	4.3	normal	normal		defect (bug)	new		2015-06-20T02:20:04Z	2019-06-04T19:49:31Z	"If title contains e.g. plus symbol (e.g. title is ""1+1=2"", it creates slug 112, instead of 1-1-2. (and than it brings the other bug reported by me 8 years ago, that is just being to repair - #5305)

IMO such mathematical symbols should be considered as word separator (btw ""apple+bannana"" is converted to ""applebannana""), so replaced by dash by default"	thomask
	32867	Wordpress replaces HTML entities for angle brackets in titles, breaking HTML validation		Formatting	4.2.2	normal	normal		defect (bug)	new		2015-07-02T21:46:56Z	2019-06-04T19:49:47Z	"In the scientific field I blog about, the opening and closing angle brackets are technical symbols. Because in valid HTML these symbols must always be escaped, I typically write them in the Wordpress post editor with their HTML entities: `&#060;` and `&#062;`.

In the body of a post, Wordpress preserves those HTML entities as HTML entities, so the result is conformant HTML. However, when I enter those HTML entities into the Title field for a post, and then click Save, Wordpress replaces the HTML entity with the actual character. Consequently, the page is not valid HTML, and the W3C validator for instance will throw up an error due to an unescaped angle bracket.

Note that this does not happen with the other HTML entities for these particular symbols: `&lt;` and `&gt;`. If those are entered into the Title field of a post, they survive after the user clicks Save. So, `&#060;` and `&#062;` should get the same treatment."	CRCulver
	34039	shortcode_parse_atts() no longer parses embedded html fragments		Formatting	4.3.1	normal	normal		defect (bug)	new		2015-09-27T03:38:25Z	2019-06-04T19:51:55Z	"I have a shortcode:

[show_custom_field field=""image_media"" before=""<img src='"" after=""'>""]

Previously, shortcode_parse_atts() would accept the attribute:

before=""<img src='""

But, now shortcode_parse_atts() rejects any attributes that have unclosed HTML elements.

I have almost three years invested (10K lines of code) in this plugin and I really would like to keep it functional. That being said it is also true that I am no longer actively developing it and it has only 30 users.

"	Magenta Cuda
	30597	wp_filter_post_kses mangles URLs with colons in them		Formatting	4.0	normal	normal		defect (bug)	new	needs-unit-tests	2014-12-04T18:34:40Z	2019-06-04T19:46:57Z	"Try to save this entirely valid post content:

{{{

<a href=""/this/is/a/valid:link"">watch what happens</a>
}}}


The KSES logic is overly aggressive and strips the URL.  It's getting confused by the colon.

Might be related to #24663"	rkaiser0324
	34592	wptexturize interprets apostrophe at end of word as closing single quote		Formatting	4.3	normal	normal		defect (bug)	new		2015-11-05T11:07:35Z	2019-06-04T19:53:30Z	"In the example

`Let's meet at Chris' place`

wptexturize interprets the first special character as an apostrophe and the second special character as a closing curly single quote.

In English, the result is `&#8217;` regardless. However, some localization files use closing curly single quotes that differ from apostrophes."	floffimedia
	29913	wptexturize should handle broken HTML consistently		Formatting	1.5	normal	minor		defect (bug)	new	needs-unit-tests	2014-10-10T00:38:40Z	2019-06-04T19:46:35Z	"Spunoff from ticket:29557#comment:93 because it's not that important.

When encountering broken HTML, `wptexturize()` should match web browser behavior, without getting too complicated. This bug is for:

1. unclosed comments: `<!-- foo ... texturize those dots?`

2. unclosed tags: `<a ... texturize those dots?`

3. valid terrible HTML that WP probably does not need to support: `<div data-cycle-slides=""> .slides"">`. It's encouraged by the popular jQuery Cycle2 plugin, and its examples.

Currently:

1. unclosed comments are handled like a browser: WP thinks it is a comment, so does not texturize the dots (turn them into `&#8230;`).

2. unclosed tags are not considered a tag, so the dots are texturized. A browser treats it as a tag, by contrast, and we don't normally texturize inside tags. The browser also hides it since it's a tag, so whatever we do is hidden. It's not that important, though it could have side effects on other parsing, plugins, etc.

3. valid terrible HTML is not parsed as a tag by WP. Fully parsing valid HTML would slow down WP.

Some of this is already covered by unit tests or may be soon.

Fixing (2) to be consistent with (1) would be easy."	kitchin
	26868	Function 'make_clickable()' doesn't make hyperlinks from explicit URLs using the `mailto:`, `tel:` and other schemes that do not start with `//`		Formatting	3.8	normal	normal		enhancement	new	needs-unit-tests	2014-01-18T16:00:14Z	2025-08-22T16:41:22Z	"Function `make_clickable()` tries to recognise URLs and convert these into clickable hyperlinks. The function is by default configured as a filter for comment text.

Unfortunately, the function assumes that all explicitly declared URLs begin with the string `//` after the scheme and colon parts which is not the case for the `mailto:`, `tel:` and many other schemes.  Such URLs could usefully be made clickable, especially for use on smartphones and tablets.

This also leads to inconsistencies between explicitly and implicitly declared URLs.  For example, the string `myemail@mydomain.com` is converted into a clickable hyperlink whilst the string `mailto:myemail@mydomain.com` is not.

By contrast, the TinyMCE post editor correctly and automatically makes both implicit and explicit `mailto:` links clickable but does nothing with `tel:`.

For reference, the syntax of URLs is defined by http://tools.ietf.org/html/std66, the `mailto:` scheme by http://tools.ietf.org/html/rfc6068 and that for `tel:` by http://tools.ietf.org/html/rfc3966.

As #16892 has illustrated, parsing URLs can be hard. The use of `wp_allowed_protocols()` may help in detecting which strings we wish to make clickable.

Found whilst testing #22946."	mdgl
	12084	allow preserving HTML in the_excerpt (specify allowed tags for strip_tags in wp_trim_excerpt)		Formatting	3.0	normal	normal		enhancement	new	has-patch	2010-01-29T22:36:40Z	2026-04-03T12:31:30Z	Right now, `wp_trim_excerpt` is destructive. You can filter it, but once tags are stripped, you can't get them back without recreating the excerpt from the raw input. It would be nice if theme developers had an option to preserve at least some of the HTML formatting when using excerpts as post teasers (see #9260). 	sillybean
	37409	Broken & illogic conditional check in wp_get_document_title()		General	4.5.3	normal	normal		defect (bug)	new		2016-07-19T11:53:24Z	2019-06-04T20:00:19Z	"
{{{

        /*
         * If we're on the blog page that is not the homepage or
         * a single post of any post type, use the post title.
         */
    } elseif( is_home() || is_singular() ) {
        $title = the_title_attribute('echo=0');


}}}

should be changed to:

{{{

        /*
         * If we're on the blog page that is not the homepage or
         * a single post of any post type, use the post title.
         */
    } elseif( !is_home() || is_singular() ) {
        $title = the_title_attribute('echo=0');


}}}

For now it does not lead to wrong title because the previous condition is_front_page() is catching this before it throws out a wrong title but it should be fixed before it leads to issues when someone decided to do some changes on wp_get_document_title().

You can reproduce a possible error with commenting the condition is_front_page() in wp_get_document_title(). Than visit a frontpage with multiple blog posts. You will see that the wp_get_document_title() will return than the title of the first blog post and not the site title as expected.



"	ReneHermi
	28563	Dashicons transition		General	3.9.1	normal	normal		defect (bug)	new		2014-06-17T12:03:47Z	2019-06-04T19:45:54Z	"In /wp-includes/css/dashicons.css there is:

{{{
.dashicons,
.dashicons-before:before {
display: inline-block;
width: 20px;
height: 20px;
font-size: 20px;
line-height: 1;
font-family: ""dashicons"";
text-decoration: inherit;
font-weight: normal;
font-style: normal;
vertical-align: top;
text-align: center;
-webkit-transition: color .1s ease-in 0;
transition: color .1s ease-in 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}}}

The `-webkit-transition: color .1s ease-in 0; transition: color .1s ease-in 0;` part should be removed because it's not related to what this block of code is supposed to do. There can be another CSS class like `.dashicons-animation-color { -webkit-transition: color .1s ease-in 0; transition: color .1s ease-in 0; }` for that.

Some plugins and themes may want some kind of animation on icons, not necessarily color animation though but most don't want animations. They have to overwrite this to `transition: none;` in most cases now.

This project did it OK, they have perfect classes in their CSS file: http://fortawesome.github.io/Font-Awesome/"	Looimaster
	33344	Do not force draggable elements on touch devices, stop using touch-punch.js		General		normal	normal		defect (bug)	new		2015-08-11T22:07:01Z	2019-06-04T19:50:32Z	"Having draggable elements on touch screen devices doesn't work well in most cases. It interferes with the standard scrolling, dragging an element off the page doesn't scroll it either. Examples: Menus, Widgets, Dashboard (rearranging the layout), Customizer => Menus and Widgets, etc. This is especially bad on Android as drag/drop is disabled for iOS in several places.

"	azaozz
	32392	HTML entities in Pingback notifications?		General		normal	normal		defect (bug)	new		2015-05-14T12:35:30Z	2019-06-04T19:49:15Z	"Pingback email notification contains following part:

{{{
Comment: [&#8230;] some text [&#8230;]
}}}

But HTML entities are ugly and when I searched for older notifications, I found that there was `[...]` sometimes before."	pavelevap
	33929	Wrong data type for several variables holding a wpdb query result	boonebgorges	General		normal	normal		defect (bug)	assigned	needs-unit-tests	2015-09-19T16:27:25Z	2019-06-04T19:51:38Z	"Just like in #32876, there are several situations where the result of `$wpdb->get_var()` is used as is (which is a `string`), and yet data type is said to be `int`. The individual situations include `apply_filters()` calls, function return values, and class properties, i.e., only ''non-local'' usage.

Please find the attached patch that takes care of that.
In one case I also adapted two conditionals using a former-`string/null`-now-`int`-value."	tfrommen
	22530	garbage query strings on URLs are not sanitized or removed		General	3.4.2	normal	normal		defect (bug)	reopened	reporter-feedback	2012-11-21T15:52:50Z	2019-06-04T19:44:14Z	"Here is an interesting problem I ran into, a bug / feature that appears to be used by malicious people to cause Google to see your site as full of duplicate content.

If you visit a wordpress site, and add a garbage query string to the end of the URL, that garbage gets carried forward.  Example:

yourblog.here/page/2?ssdlfkjsdlkfjsdfs

When you scroll down, the ""previous"" and ""next"" links will automatically carry that query string forward.

Normally, this would not be a big issue.  However, some people appear intent on specifically creating these sorts of links to wordpress sites, and Googlebot is finding those links on remote sites.  Those links are followed, and then the ""previous - next"" situation perpetuates the problem through every page on the site.  If you have 1000 posts, at 10 per page, Google just indexed 100 duplicate content pages.

So the bug is the following:

Passed query strings need to be sanitized, and junk removed - there is no reason to pass it on.  In the case of a junk passed string, there should be an http 301 or 302 reply and the user / bot redirected to the proper page without the query string.

Further, query strings should not be perpetuated forward through the ""previous - next"" links on the pages unless they are relevant to that page change.  As an example, a valid search string might be worth moving forward with.  Other passed items may not be worth carrying forward.

Potentially, any unsanitized input accepted in a query is a vector for other attacks.  Having that query carry forward is a real issue.  As an example, full select * from queries are not accepted and not dealt with, and perpetuated forward.  No, they are not currently actually causing anything to happen, but a failure to sanitize these inputs suggests a vector for a future attack, such as an input overflow or similar."	rawalex
	64309	patterns		General		normal	normal		defect (bug)	reopened		2025-11-26T08:47:58Z	2026-01-08T12:07:46Z	"When opening the WordPress.org pattern creation page at:
https://wordpress.org/patterns/new-pattern/
the editor fails to load and displays the message:

“The editor has encountered an unexpected error.”
[[Image(https://i.ibb.co/MD5hKd9q/Capture.png)]]"	amitdholiya
	32856	wpColorPicker close should check that iris hasn't been destroyed before toggling it.		General	4.2.2	normal	normal		defect (bug)	new	has-patch	2015-07-01T14:40:25Z	2019-06-04T19:49:42Z	"wpColorPicker.close() can be called (via the 'click.wpcolorpicker' event on body) when the internally used iris widget has already been destroyed, which means that when it attempts to toggle iris an exception is thrown. The attached patch just checks that iris still exists before the toggle is attempted.

This issue arose in response to the question ""Modify Custom Field in Media Library using JavaScript"" by @Howdy_McGee on Wordpress Development stackexchange http://wordpress.stackexchange.com/questions/193006/modify-custom-field-in-media-library-using-javascript, which can be used to replicate the scenario. If you open the color picker and then, leaving it open, close the Attachment Details modal window, a $.error exception is thrown (or can be - may depend on your system) by jQuery UI Widget, ""cannot call methods on iris prior to initialization""."	gitlost
	31706	wp_list_categories for hierarchical taxonomy return wrong tree if orderby clause is used		General	4.1.1	normal	normal		defect (bug)	new	reporter-feedback	2015-03-20T11:11:52Z	2019-06-04T19:48:23Z	"My taxonomy is e.g.

{{{
-term 1
--subterm 1.1
---subterm 1.1.1
--subterm 2.1
--subterm 3.1
-term 2
-term 3
}}}

and lets say i am on the 'term 1' page and i want to return all suterms. But when i run

{{{
   $args = array(
	'style'              => 'list',
	'title_li'           => '',
	'echo'               => 0,
	'hierarchical'      => true,
  'depth'             => 2,
	'taxonomy'           => 'my_taxonomy',
  'orderby'             => 'count',
  'order'             => 'DESC',
  'show_option_none'   => ''
  );

   $args['child_of'] = $current_term->term_id;

}}}

it return only

{{{
Subterm 1.1.1
}}}

Problem is that 

{{{

  'orderby'             => 'count',
  'order'             => 'DESC',
}}}

when i put it out, it works as expected

BTW IMO wp_list_categories() need some bigger rewrite - it is probably the oldest code in WP :-). No filters, strange classes etc. especially comparing to similar wp_nav_menu. E.g. there is no class to parent LI (and it is often need to change e.g. for Bootstrap), nor any action or filter, the only way are some non-trivial preg_match on the full results or replacing the whole Walker, what is not optimal for forward and plugin compatibility "	thomask
	34028	wp_safe_redirect can return admin_url() when get_admin_url() is used	aaroncampbell	General		normal	normal		defect (bug)	reopened	needs-unit-tests	2015-09-25T20:47:48Z	2019-06-04T19:51:49Z	"Setup your site like this:

WordPress Address (URL): http://yourdomain.tld/ (without www)
Site Address (URL): http://www.yourdomain.tld/ (with www)

Example code (yes I know it's stupid code, but it's a working proof-of-concept):

{{{
<?php
function unsafe_safe_redirect() {
	$pagenow   = empty( $GLOBALS['pagenow'] ) ? false : $GLOBALS['pagenow'];

	if ( empty( $pagenow ) || 'post-new.php' != $pagenow )
		return;

	// Redirect for add new screen
	if ( 'post-new.php' == $pagenow ) {
		wp_safe_redirect( get_admin_url() . 'plugins.php' );
		die();
	}
}
add_action( 'admin_init', 'unsafe_safe_redirect' );
}}}

Visit: http://yourdomain.tld/wp-admin/post-new.php
It will redirect you to: http://yourdomain.tld/wp-admin/
But it should have redirected you to: http://yourdomain.tld/wp-admin/plugins.php

The problem is that wp_validate_redirect() uses home_url() which can be different from site_url() which is used by get_admin_url().

I propose that we use both in wp_validate_redirect(). Diff attached."	layotte
	34853	A helper method should be created to centralize which extensions are used for images.		General	4.4	normal	normal		enhancement	new	has-patch	2015-12-06T08:44:31Z	2019-06-04T19:53:56Z	In keeping with the helper methods introduced in `3.6` for audio/media extensions retrieval, the retrieval of image extensions should similarly be wrapped in a filterable method. Currently all places where this information is needed appear to simply define their own array and use that -- very un-DRY.	dan.rossiter
	66415	Block Bindings: Add innerBlock bindings compatibility.		General		normal	normal		enhancement	new	has-patch	2026-10-29T12:47:11Z	2026-10-29T12:52:04Z	"Block bindings can currently only replace block attributes. This ticket proposes letting a block bindings source supply the inner blocks of a Group or Column block, through a new `innerBlocks` binding:

{{{
<!-- wp:group {""metadata"":{""bindings"":{""innerBlocks"":{""source"":""my-plugin/stats"",""args"":{""key"":""completed""}}}}} -->
<div class=""wp-block-group""></div>
<!-- /wp:group -->
}}}

The source returns serialized block markup. The supplied blocks replace the block's own inner blocks before they render, with the block's context. An empty string leaves the block empty. Any other value, such as plain text, keeps the block's own inner blocks.

How it works:

 * `WP_Block::process_block_bindings()` handles `innerBlocks` itself instead of treating it as an attribute.
 * The markup is sanitized with `wp_kses_post()`, as bound rich text already is, and custom CSS is removed from the supplied blocks.
 * Supplied blocks can't bind their own inner blocks, so two sources can't expand each other forever.
 * The blocks go where the block's own inner blocks were. A block without any gets them before the closing tag of its wrapper, found with the HTML API.
 * The editor isn't offered `innerBlocks` yet, as it doesn't render these bindings.

Gutenberg PR: https://github.com/WordPress/gutenberg/pull/85568"	cbravobernal
	31010	Frontend / Admin specifications for AJAX		General	4.2	normal	normal		enhancement	new		2015-01-14T14:25:34Z	2019-06-04T19:47:31Z	"I recently ran into an issue, not sure where this belongs exactly. If you load posts in Twenty Fifteen via AJAX (by detecting pagination clicks) the images will be narrower, take a look:

http://cl.ly/image/2M15133q2U1D

This happens because when an image is shown, somewhere down the line the image_constrain_size_for_editor() function is called which is in media.php. If a context is not given it uses is_admin() to detect where the request is from. 

The problem is that admin-ajax.php is always considered to be in the admin, since it technically is. However, the AJAX request comes from the front-end and the response is used on the front end as well. Here is one method to get around this problem:

{{{
$posts = new WP_Query( $query_vars );
add_filter( 'editor_max_image_size', 'my_image_size_override' ); 
if( ! $posts->have_posts() ) { 
    get_template_part( 'content', 'none' );
}
else {
    while ( $posts->have_posts() ) { 
        $posts->the_post();
        get_template_part( 'content', get_post_format() );
    }
}
remove_filter( 'editor_max_image_size', 'my_image_size_override' );
}}}

This could also be addressed by providing a parameter that is passed to admin-ajax. Just as action is used to transfer the action, another parameter could be added to indicate the origin. I'm not a huge AJAX expert and I'm not sure if this causes any security issues so I am refraining from adding any patches. Aside from the security issue I assume this would affect a lot of functions. 

"	danielpataki
	31206	Move AJAX action parameters out of the method body and into the declaration.		General	4.2	normal	normal		enhancement	new	dev-feedback	2015-02-01T23:09:49Z	2019-06-04T19:47:45Z	"`admin-ajax.php` has several methods that require an `$action` parameter, then immediately set that parameter in the body of the method to the desired string if it's not set, which seems a bit counter-intuitive.

I propose removing the conditional check completely (since it's not checking for a value, just the presence) and move the desired string into the method declaration as a default value."	morganestes
	31211	New function for link-category intersection		General	4.1	normal	normal		enhancement	new		2015-02-02T14:29:55Z	2019-06-04T19:47:49Z	"Maybe passed to wp-includes/bookmark.php...

{{{
function link_cat_intersect($input, $args=array() ){
	/*
		$input (string) - Comma separated list of link-category ID-s to find common links.
		$args (array) - $args for get_bookmarks() function http://codex.wordpress.org/Function_Reference/get_bookmarks
		Defaults:
		$args = array(
			'orderby'        => 'name', 
			'order'          => 'ASC',
			'limit'          => -1, 
			'category'       => '',
			'category_name'  => '', 
			'hide_invisible' => 1,
			'show_updated'   => 0, 
			'include'        => '',
			'exclude'        => '',
			'search'         => '' );
			
		Example:	
		$links = link_cat_intersect('65,75',array('include' => '8' ));
		Get the common links of link categories 65 and 75, then add the link with id 8 to result.
		
		Return Values http://codex.wordpress.org/Function_Reference/get_bookmarks
		(array) 
		List of bookmark row objects. Each bookmark object may contain the following: 'link_id', 'link_url', 'link_name', 'link_image', 'link_target', 'link_category', 'link_description', 'link_visible', 'link_owner', 'link_rating', 'link_updated', 'link_rel', 'link_notes', 'link_rss'
	*/
	$input = explode(',',$input);
	$input = array_unique($input); // remove duplicates
	if( count($input)==1 ){
		return new WP_Error( 'broke', __( ""One id is not enough..."", ""my_textdomain"" ) );
	}
	$keys=$input;
	$input = array_combine($keys, array_values($input));
	// get the link ids
	foreach($input as $cat_id => $posts){
		$objects = get_objects_in_term($input[$cat_id],'link_category');
		if( is_wp_error( $objects ) ) {
			echo $objects->get_error_message().' !link_category_id: '.$cat_id;
			return false;
		}else{
			$input[$cat_id]= $objects;
		}
	}

	// thx to Shackrock and outis http://stackoverflow.com/a/8198111
	function recursive($inarray,$result){
		foreach ($inarray as $inkey => $inval) {
			if ( is_array($inval) ) {
				$result = recursive($inval, $result);
			} else {
				$result[] = $inval;
			}
		}
		return $result;
	};
	
	$intersect = function($array){
		foreach(array_count_values(recursive( $array, array() )) as $key => $value ){
			if( $value == count($array) ){ // intersect
				$result[] = $key;
			}
		}
		return $result;
	};
	
	$result = $intersect($input);
	
	
	if( !isset($args['include']) || $args['include']=='' ){
		$args['include'] = implode(',',$result);
	}else if( isset($args['include']) && $args['include'] != '' ){
		$args['include'] = explode(',',$args['include']);
		$args['include'] = array_merge($args['include'],$result);
		$args['include'] = implode(',',$args['include']);
	}
			
	$result = get_bookmarks($args);
	if( count($result) == 0 ){
		return new WP_Error( 'broke', __( ""No posts in the intersection..."", ""my_textdomain"" ) );
	}else{
		return $result;
	}
}

}}}
"	krabat1
	36417	Unit tests for functions.php's maybe_unserialize		General	2.0	normal	normal		enhancement	new		2016-04-05T00:36:50Z	2019-06-04T19:56:56Z	Unit tests for maybe_unseriaze	tloureiro
	23454	_deprecated_function Messages	chriscct7	General	3.5	normal	normal		enhancement	assigned	has-patch	2013-02-12T11:20:39Z	2019-06-04T19:44:32Z	"Unlike ''_deprecated_file'' and ''_deprecated_argument'', the ''_deprecated_function'' function has no option to append a message to the triggered notice.

I propose adding this to make it consistant with the other 2 functions. Patch to follow."	mikejolley
	31005	wp_send_json(): Filtering of $response prior to passing it to wp_json_encode().		General	4.1	normal	normal		enhancement	new		2015-01-13T22:35:08Z	2019-06-04T19:47:28Z	"It would be nice if wp_send_json() allowed $response to be filtered prior to passing it to wp_json_encode() and echo'ing the resulting JSON.

I'm working with a theme that uses wp_send_json() while responding to AJAX requests. I'd like to modify/customize the response content, however, without modifying the theme itself (which doesn't appear to have other hooks that could be used).

wp_send_json() seems to be a convenient and reasonable place to perform such filtering, but doesn't already appear to support this as of 4.1."	ap.0
	32528	Create a new search_form_content hook in get_search_form()		General	4.3	normal	normal		feature request	new		2015-05-29T16:22:28Z	2019-06-04T19:49:21Z	"The only viable method for creating a custom search form in a plugin or theme is to replace the entire default search form.

This runs the risk of introducing possible security issues should a patch be issued in the default search form.   More importantly it means more potential deviation from ""the WordPress standard"".

Instead of requiring developers to recreate a new feature that mimics the HTML that get_search_form() provides, consider adding a new filter that allows developers to easily add HTML elements to the search form.

The current general-template.php get_search_form() snippet:

{{{
		if ( 'html5' == $format ) {
			$form = '<form role=""search"" method=""get"" class=""search-form"" action=""' . esc_url( home_url( '/' ) ) . '"">
				<label>
					<span class=""screen-reader-text"">' . _x( 'Search for:', 'label' ) . '</span>
					<input type=""search"" class=""search-field"" placeholder=""' . esc_attr_x( 'Search &hellip;', 'placeholder' ) . '"" value=""' . get_search_query() . '"" name=""s"" title=""' . esc_attr_x( 'Search for:', 'label' ) . '"" />
				</label>
				<input type=""submit"" class=""search-submit"" value=""'. esc_attr_x( 'Search', 'submit button' ) .'"" />
			</form>';
		} else {
			$form = '<form role=""search"" method=""get"" id=""searchform"" class=""searchform"" action=""' . esc_url( home_url( '/' ) ) . '"">
				<div>
					<label class=""screen-reader-text"" for=""s"">' . _x( 'Search for:', 'label' ) . '</label>
					<input type=""text"" value=""' . get_search_query() . '"" name=""s"" id=""s"" />
					<input type=""submit"" id=""searchsubmit"" value=""'. esc_attr_x( 'Search', 'submit button' ) .'"" />
				</div>
			</form>';
		}
}}}

Allow developers to easily insert additional input elements between the search input and submit elements:

{{{
		if ( 'html5' == $format ) {
			$form = '<form role=""search"" method=""get"" class=""search-form"" action=""' . esc_url( home_url( '/' ) ) . '"">
				<label>
					<span class=""screen-reader-text"">' . _x( 'Search for:', 'label' ) . '</span>
					<input type=""search"" class=""search-field"" placeholder=""' . esc_attr_x( 'Search &hellip;', 'placeholder' ) . '"" value=""' . get_search_query() . '"" name=""s"" title=""' . esc_attr_x( 'Search for:', 'label' ) . '"" />
				</label>'.
                apply_filters( 'search_form_content', '' ) .
				'<input type=""submit"" class=""search-submit"" value=""'. esc_attr_x( 'Search', 'submit button' ) .'"" />
			</form>';
		} else {
			$form = '<form role=""search"" method=""get"" id=""searchform"" class=""searchform"" action=""' . esc_url( home_url( '/' ) ) . '"">
				<div>
					<label class=""screen-reader-text"" for=""s"">' . _x( 'Search for:', 'label' ) . '</label>
					<input type=""text"" value=""' . get_search_query() . '"" name=""s"" id=""s"" />' .
                     apply_filters( 'search_form_content', '' ) .
					'<input type=""submit"" id=""searchsubmit"" value=""'. esc_attr_x( 'Search', 'submit button' ) .'"" />
				</div>
			</form>';
		}
}}}


There are a number of ways to implement this, including the possibility of passing in the initial label + input fields HTML as a parameter to the filter.  

The general idea is to keep the form HTML and submit HTML intact to ensure maximum functionality/compatibility with the core search feature.   

As long as the hook processor does not impart too much overhead, this may be a viable feature to keep more control over the search form and simplify/eliminate many custom searchform.php files that only need to add an extra input element such as ""select a category"" to further refine the search mechanism.

"	charlestonsw
	66430	HTML API: Establish CI runner for analyzing changes against CommonCrawl data.		HTML API	trunk	normal	normal		feature request	new	has-patch	2026-10-31T16:50:24Z	2026-11-04T17:59:19Z	"Benchmarking is difficult, especially synthetic benchmarking, but the Internet is full of HTML useful for examining changes to the HTML API parsing code. While certain benchmarking and analysis is currently performed manually, this could be automated for PRs proposing changes to the HTML API code. A differential analysis can also indicate changes in supported HTML constructs (until the HTML Processor supports 100% of all HTML documents).

 - When changes are made to `wp-includes/html-api/` or `wp-includes/class-wp-token-map.php`.
 - Prep a batch of CommonCrawl data from its latest index, gathering 10,000–100,000 document.
 - Run a benchmarking script which relays that batch into the code with and without the PR.
 - Run an analysis script in the same way which records how many documents were supported, and what situations weren’t supported, grouped by failure reason.
 - Leave a comment on the PR and update it when new commits are pushed.

Since this job might be expected to take tens of minutes, it could wait for a given label to be applied before running the job."	dmsnell
	37614	WP_PROXY_BYPASS_HOSTS has no effect inside curl transport, if http_proxy or https_proxy is set on the system		HTTP API		normal	normal		defect (bug)	new		2016-08-09T13:20:22Z	2019-06-04T20:00:40Z	"OS: Debian Squeeze
PHP Version tested: 5.3.29

Will try to provide results from newer distros later today.


--

In case server hosting website has environmental settings for proxy, it's not possible to skip using it even for addresses that should be bypassed.


Let's take for example that printenv returns following:
{{{
http_proxy=http://proxy.com:8080 
https_proxy=http://proxy.com::8080
}}}

In this case, if we execute `wp_remote_get` (with domain that should be bypassed via WP_PROXY_BYPASS_HOSTS) it will still use system variable http_proxy in curl transport.

I think that wp_remote_get should explicitely set `curl_setopt($handle, CURLOPT_PROXY, null);`, if proxy is disabled inside wordpress or url SHOULD be bypassed."	fliespl
	12477	Search with special characters and similar terms	nbachiyski	I18N		normal	normal		feature request	new	dev-feedback	2010-03-02T17:42:46Z	2019-06-04T20:01:58Z	"I did:Tried searching for terms Metis and Métis

I saw:Those two searches turned up different sets of results.

I expected:The same set of search results, or at least everything when
I searched for Metis.

Can search be smarter when special characters are involved?"	mrroundhill
	31581	Images-Links broken after import from wordpress.xml in WordPress 4.1.1		Import	4.1.1	normal	normal		defect (bug)	new		2015-03-10T10:33:19Z	2019-06-04T20:11:51Z	"In XML:
<wp:meta_value><...""Fotolia_65968659_S-300x205.jpg""...></wp:meta_value>

After Import the Image-File is created as 
   Fotolia_65968659_S-300x206.jpg
but the img-src still is ...300x205.jpg.

The same happend to Fotolia_66268596_S-300x199.jpg. The Filename was changed to ...300x200.jpg, the link did´n change.

Seems to be a rounding-issue when recalculating Image-Sizes."	WulfP
	19764	Invalid JSON in custom fields meta value after export		Import	3.3	normal	normal		defect (bug)	new		2012-01-06T17:13:07Z	2019-06-04T20:03:07Z	"Hey there,

I exported a working copy of my online WordPress site to a local copy and noticed that the code gets changed; The backslash is removed which causes the json format to be invalide.
Original code in the custom fields meta

{{{
{""videos"":{""0"":""<iframe width=\""480\"" height=\""360\"" src=\""http://www.youtube.com/embed/YAozOaxXYx4\"" frameborder=\""0\"" allowfullscreen></iframe>""}}
}}}

Becomes in the local site after import 
 
{{{
{""videos"":{""0"":""<iframe width=""480"" height=""360"" src=""http://www.youtube.com/embed/YAozOaxXYx4"" frameborder=""0"" allowfullscreen></iframe>""}}
}}}
"	abdessamad idrissi
	32320	WordPress Importer: WXR_Parser_Regex adds newlines to import data, breaking serialized post meta.		Import		normal	normal		defect (bug)	new		2015-05-09T08:17:53Z	2019-06-04T20:13:25Z	"Original ticket: [https://plugins.trac.wordpress.org/ticket/2317]

Our plugin stores a fair amount of serialized data in post meta fields. When using the importer, the WXR_Parser_Regex parser loops through 8192 bytes of the import file at a time, appending a newline to the import data at the end of each loop. When a newline is inserted in the middle of our post meta, it breaks when the time comes to unserialize in the import process, leaving our users with a blank post meta field. 

The offending code can be seen starting at line 459 of parsers.php...

{{{
if ( $in_post ) {
	$post .= $importline . ""\n"";
}
}}}

Is that newline necessary? I have verified that removing it solves the problem and imports the serialized data correctly. 

@duck_ has suggested removing rtrim() and the new line which I will submit as a patch. "	justinbusa
	66316	Fix duplicate <h1> landmark tags on login and password recovery pages		Login and Registration		normal	normal		defect (bug)	reopened	close	2026-10-15T05:57:32Z	2026-10-19T19:35:19Z	"An accessibility (a11y) and markup validation issue exists on the core login, forgot password, and registration screens (`wp-login.php`). The page currently generates two separate `<h1>` heading landmarks simultaneously, which violates semantical HTML standards and disrupts document structure for screen reader users.

=== Root Cause Analysis
In `src/wp-login.php`, an `<h1>` tag with the class `.screen-reader-text` is dynamically outputted to act as an accessible text heading representing the active page title (e.g., ""Log In""). However, directly below that landmark block, the presentation layout wraps the visible WordPress website branding logo image anchor (`.wp-login-logo`) within a second, nested `<h1>` element. 

=== Proposed Fix
The brand presentation element does not require header hierarchical value. This patch replaces the outer wrapper around the logo anchor link from an `<h1>` element to a fallback semantic block `<div>` tag with `role=""presentation""`. 

This safely reduces the heading layer footprint back to a clean, single `<h1>` per view, allowing screen readers to seamlessly announce the actual utility context of the page title without configuration conflicts.

=== Environment Details
- **Affected File:** `src/wp-login.php`
- **Testing Setup:** Local WP (Flywheel dev stack)
- **Repository Branch Target:** trunk / core develop clone
https://github.com/WordPress/wordpress-develop/pull/14292"	shahjehanwpbrigade
	27165	Incorrect nonce supplied when authenticated session expires		Login and Registration	3.8.1	normal	minor		defect (bug)	new	has-patch	2014-02-20T11:55:44Z	2019-06-04T20:06:52Z	"I was using a nonce (with action name) for a nopriv ajax request and found nonce supplied via page load was invalid, whereas nonce supplied via ajax request was valid. This only occurs when admin area prompts to re-authenticate current user.

In my system, a nonce (action 'xyz', say) is given via localize script to the client on page load. This nonce is then used to verify a subsequent nopriv ajax request. This request then responds with the latest nonce (for 'xyz') (which may be the same, of course) for any further ajax requests.

However, I suddenly found that upon page reload, the nonce provided via localize script was invalid. Assuming this was a bug in my code, I commented out nonce verification in my action function. I then discovered that the ""new"" nonce being supplied in the ajax response was always different to the initial nonce despite the same action name being used in its creation. On further experimentation it became apparent that the nonce supplied by ajax response was valid and did verify with further ajax requests. I then found I had the admin area open in a separate tab and it was prompting me to re-authenticate. Upon logging back in the nonces realigned and worked again.

tl;dr: Requests by ajax consider current user differently to fresh page load (for nonces at least) when in logged in limbo. The bug is that it shouldn't.

It's a very minor issue but it was very confusing and took me quite some time to find the somewhat non-intuitive solution."	joe_bopper
	34697	Password (re)set form fails when addressed as /wp-login.php/		Login and Registration	4.3.1	normal	normal		defect (bug)	new		2015-11-16T02:47:09Z	2019-06-04T20:18:00Z	"`setcookie` in resetpass uses `$rp_path` to set the path for the cookie, but does not use the same `$rp_path` when setting up the form action in HTML. This means that the cookie can be set to a path where it will not be submitted by the browser on post and thus the form will fail.

Easily reproducable by adding changing the reset password link from `/wp-login.php?...` to `/wp-login.php/?...` For some reason Firefox works (submits cookie), but Chrome and IE fail (don't submit cookie)."	friedcell
	35018	The authentication check modal dialog appears just once		Login and Registration	4.4	normal	normal		defect (bug)	new	has-patch	2015-12-11T17:12:25Z	2019-06-04T20:19:17Z	"Noticed while investigating on #34951. To reproduce:

1. edit a post
2. open a new tab, go in some other admin screen and log out
3. in the tab with the edit post screen, after a while the authentication modal dialog appears
4. login again using the modal dialog
5. repeat step 2

The authentication modal dialog won't appear again because, as far as I see, when it gets hidden the custom event that triggers the dialog gets removed. See `hide()` in `/wp-includes/js/wp-auth-check.js`

{{{
$(document).off( 'heartbeat-tick.wp-auth-check' );
}}}

Not sure why the event is removed."	afercia
	35858	"""wpmu_welcome_notification"" has a filter post-processing routines in wrong place"		Login and Registration	3.0	normal	normal		enhancement	new	has-patch	2016-02-18T08:54:11Z	2019-06-04T20:22:37Z	"""wpmu_welcome_notification"" has a filter post-processing routines in wrong place which renders the filter mostly useless. Nearly identical ""wpmu_welcome_user_notification"" has it done corectly.

Diff/Patch attached.
"	mwillberg
	32508	Action Hooks for empty username and empty password		Login and Registration	4.3	normal	normal		enhancement	new	has-patch	2015-05-27T16:19:13Z	2019-06-04T20:14:06Z	"While you could previously fire an action on ''wp_login_failed'', there were no hooks for an empty username or an empty password. This patch adds ''wp_login_failed_empty_username'' and ''wp_login_failed_empty_password''.

''wp_login_failed_empty_username'' passes no arguments.

Similar to ''wp_login_failed'', ''wp_login_failed_empty_password'' will pass the entered username. "	jwarren
	35428	Allow the suppression of errors if user already exists		Login and Registration		normal	normal		enhancement	new	reporter-feedback	2016-01-12T21:19:14Z	2019-06-04T20:21:01Z	"The install instructions for s2members requires that we add a filter to suppress  errors
it seems to be we should add the filter to allow this.
"	pbearne
	33295	Login: Remove decoration from translation strings		Login and Registration	2.5	normal	normal		enhancement	new	has-patch	2015-08-06T19:13:30Z	2021-07-15T18:41:21Z	"In recent default themes we've begun to remove decorative icons like arrows and carets from translatable strings and add them through CSS.
We should do the same on the login screen. It would also make it easier to customize styling of the page."	obenland
	35422	only exit if the redirect is true when registering on multisites		Login and Registration		normal	normal		enhancement	new	has-patch	2016-01-12T18:55:09Z	2022-02-19T08:10:40Z	"
in wp-login.php we do a redirect to (wp_signup_location wp-signup.php) when registering on multi sites and die

we should only die if the redirect is true 

I also want to this patch added to save me from having to edit a core file inorder to install s2member on multisite

This plugin has install instructions that have us rem out the redirect and exit
`
{{{#!php
<?php
case 'register' :
    if ( is_multisite() ) {
        $sign_up_url = network_site_url( 'wp-signup.php' );
        // Multisite uses wp-signup.php
        // Modified for full plugin compatiblity.
        //wp_redirect( apply_filters( 'wp_signup_location', $sign_up_url ) );
        //exit;
    }
}}}
 
`
I would like to change this to use the filter to remove the location and cause the wp_redirect to return false"	pbearne
	28989	AJAX in the media library sometimes fails to load data		Media	3.5	normal	normal		defect (bug)	new		2014-07-22T20:23:57Z	2019-06-04T20:08:35Z	"I added video and want to replace it now and since AJAX failed (only on this single page, there are no errors when I hit F12 and go to ""Console"" though) I have no other option then to refresh entire page:

[[Image(http://i.gyazo.com/6379480b489e206bfe0b06b06288579b.png)]]

I'm using 4.0-beta2-20140722. I think it wasn't happening that often in 3.9.1 but I may be wrong."	Looimaster
	32012	Crunching doesn't work on some grayscale images		Media	4.1.1	normal	normal		defect (bug)	new		2015-04-18T13:46:09Z	2019-06-04T20:12:44Z	"No error message, just no thumbnail/smaller sizes crunched on upload of a grayscale image.

Some images work, others not. All are similar sizes, 32-bit grayscale, under 2MB with varying dimensions.

I have followed the relevant steps at: https://wordpress.org/support/topic/25-imagemedia-uploader-problems?replies=1"	nifwlseirff
	32654	Denying upload_files cap makes Customizer and Media modal act oddly	wonderboymusic	Media	4.3	normal	normal		defect (bug)	assigned	has-patch	2015-06-15T17:40:05Z	2019-06-04T20:14:17Z	"This is an unusual one, so labeling it as an enhancement rather than a bug. Somebody more familiar with the Customizer classes and Media modal might know the right way to handle this properly.

If you disable the upload_files capability, with the intent of not allowing file uploads by anybody (duh), then the customizer acts very odd in the assorted image-related controls.

Example code:
{{{
add_filter('user_has_cap', 'no_file_uploads');
function no_file_uploads( $caps ) {
	$caps['upload_files'] = false;
	return $caps;
}
}}}

The ""Header Image"" section still has an ""Add New Image"" button, which gives you the Media Library popup, with a spinner that never stops spinning. Also, the Upload Files tab still exist. 

The ""Background Image"" section has a Select Image button, with the same broken Media Library popup as the other one.

Expected behavior: Media chooser that works, no Upload Files tab.

This may be an issue both with the Customizer showing incorrect buttons, or which more properly belongs to the Media modal in that it should still be possible to select an image even if you cannot upload one. 

Alternatively, disabling upload_files in this way may be the wrong way to do it, although it is the most obvious approach.
"	Otto42
	33896	Gallery linking to Attachment page		Media		normal	normal		defect (bug)	new		2015-09-16T13:52:16Z	2019-06-04T20:16:05Z	"I have received some user reports recently, that they are using internal WordPress gallery (which was improved) and there is some strange problem.

- Create new post
- Create new gallery with existing images from Media library (do not upload new images).
- Link gallery to Attachment page.
- See post on website, click on first image in gallery.
- You will see links to next/previous image, but not related to user created gallery. Instead of created gallery you can see all images attached (uploaded) to some other post.

Users do not understand that this is how it works (gallery shortcode x attachments uploaded to post), they are only asking what is wrong. Maybe we should disable possibility to link to Attachment page when all images from gallery are not uploaded to current post?"	pavelevap
	62388	If image size exists with crop and without crop, only 1 will be created,		Media		normal	major		defect (bug)	reopened	has-patch	2024-11-12T08:41:09Z	2026-08-28T07:20:09Z	"Essentially https://core.trac.wordpress.org/ticket/61925 but if the same size exists with crop true and crop false, then whatever size was added later will overwrite a previous one, since the resulting file names are identical.
e.g. foo-450x450.png would be created first uncropped, then cropped resulting in only the cropped file being available.

So while the other ticket is purely an efficiency one, this is a bug since it's unexpected that the order in which the sizes are added matters and you could end up with cropped images when you added an uncropped size or vice versa"	kkmuffme
	35085	"Image editor not cropping correctly when image size is the same as ""Large Size"" in media settings"		Media	4.4	normal	normal		defect (bug)	new		2015-12-14T22:49:02Z	2019-06-04T20:19:52Z	"This issue was reported as an issue for the plugin Imsanity here: https://wordpress.org/support/topic/imsanity-breaks-the-image-editor?replies=10

However, after research, it appears this behavior happens regardless of the plugin. A video demonstrating the error is at: https://www.youtube.com/watch?v=3a6UbuPrlmU&feature=youtu.be

To reproduce:

1. Ensure media settings for ""Large Size"" are set to 1024px

2. Upload a landscape image with a width of exactly 1024px to the media library

3. Click the ""Edit"" button to edit the image, and use the crop tool to make an obvious change.  The image will appear to have been cropped at this point

4. Click the ""Save"" button and now the image will no longer appear to be cropped

The image now seems to be in an unknown state where the preview shows the un-cropped version, but in the editor the crop shows correctly.

"	verysimple
	32215	Image hard crop no longer working as expected		Media	4.2.1	normal	normal		defect (bug)	new		2015-04-30T20:37:21Z	2019-06-04T20:12:58Z	"Since I upgraded to 4.2.1, hard cropping of images no longer seems to work (resizing always occurs using soft-crop mode, resizing the larger dimension first, then cropping the smaller to size). I am regenerating them using the regenerate thumbnails plugin (which works fine), and am looking at the images directly on the server (FTP) to eliminate the possibility that any CSS might be producing strange results. It is a custom theme that I built, but I switched the site over to Twenty Fourteen to rule out my code and got the same results. I also tried disabling plugins, to no avail.

I am running my production site on the same server (which is running 3.8.7) and the crop works fine."	WorldWideWebb
	24888	In image editor, cropping scale gets applied off by 0.4%		Media	3.5	normal	normal		defect (bug)	new	has-patch	2013-07-30T13:55:51Z	2026-09-24T19:12:14Z	"When you scale the crop preview, the editor does not keep the right ratio.

To reproduce this error:

- Upload an image with 4608 x 3072
- On the crop feature, create an selection with 1680 x 560
- Hold shift and scale to fit all image width (4608px)
- The height result was 1544px, that is wrong, the correct is 1536px.
"	diegomarangoni
	29904	Make images viewable while editing a gallery		Media		normal	normal		defect (bug)	new		2014-10-09T14:37:07Z	2019-06-04T20:09:33Z	"Ordering images in a gallery can be very difficult when you are limited to thumbnails. Users must switch back and forth between their post and their camera roll to identify each image and make sure each is in the proper place. Click/tap to view an image is a common pattern that is missing here. Some use it elsewhere to reassure themselves that they uploaded the right images and put them in the right order.

First reported in: https://make.wordpress.org/flow/2014/06/02/kibble-viewing-images-while-editing-a-gallery/"	obenland
	35092	Remove crop check in wp_prepare_attachment_for_js() for sizes	joemcgill	Media	3.5	normal	normal		defect (bug)	reviewing	reporter-feedback	2015-12-15T02:20:36Z	2019-06-04T20:20:01Z	Currently only cropped images generated on the fly are displayed. This due to a {{{! $downsize[3] }}} check. This change was made in #22598 and with the patch supplied I deleted this check. then medium/large does show up.	markoheijnen
	32443	Upload iframe renders pictures in reverse order		Media	4.2.2	normal	normal		defect (bug)	new		2015-05-19T18:49:56Z	2019-06-04T20:13:54Z	"Attachments are in reverse order when they have menu_order attributes.

It is because this code in get_media_items function:

{{{
$attachments = get_children( array( 'post_parent' => $post_id, 'post_type' => 'attachment', 'orderby' => 'menu_order ASC, ID', 'order' => 'DESC') );
}}}

Generates this query:

{{{
…wp_posts.menu_order DESC, wp_posts.ID DESC…
}}}

It should be:


{{{
$attachments = get_children( array( 'post_parent' => $post_id, 'post_type' => 'attachment', 'orderby' => array( 'menu_order' => 'ASC', 'ID' => 'DESC') ) );
}}}

Which will generate:

{{{
…wp_posts.menu_order ASC, wp_posts.ID DESC…
}}}
"	sapegin
	33337	WordPress crashes in Chrome when trying to upload images too quickly into Media Library		Media	4.3	normal	major		defect (bug)	new	reporter-feedback	2015-08-11T10:30:58Z	2026-03-17T20:10:50Z	"Steps to reproduce
1) Use Chrome and a wordpress installation with at least few images, the more images, the easier to reproduce.
2) Create new post
3) Click Add Media
4) Whilst the Media Library is loading all of the images, try to drag new images into the window to upload. 

The result is that Chrome crashes. It seems as though the trying to drag images into the window before the ""Drag to upload"" function is loaded kills it.


"	tstania
	49601	layout width bugfix for img_caption_shortcode()		Media	5.4	normal	normal		defect (bug)	reopened	dev-feedback	2020-03-08T19:00:36Z	2022-10-13T21:01:21Z	"`img_caption_shortcode()` in `wp-includes/media.php` is hardcoding an inline `style=""width:""` attribute on the outer `<figure>` or `<div>` element that contains the image and image caption, which it sets to the pixel width of the image. This is so the image caption is the same width as the image.

The problem is that on mobile (narrow width) layouts this hardcoded figure/div element width will cause the entire container element to expand to this width, which makes the entire main content column overflow the window/viewport, so the page content overflows the screen and can't be read. Google search console also flags this issue. Here's what it looks like:



Normally in CSS, themes have something simple like `img { max-width: 100%; }` to prevent images from overflowing the container element. But since WordPress is hardcoding the element width with an inline style, this takes precedence and clobbers whatever in in CSS. So it is not possible for a theme to fix this issue.

The fix is simple, just use `max-width` instead of `width`. The caption text still stretches to whatever the width of the image is, but the element no longer overflows the page. Patch is attached but all it is doing is using `max-width instead of `width`."	joelhardi
	32609	tinymce gallery preview uses full resolution images		Media	4.2.2	normal	normal		defect (bug)	new		2015-06-10T23:59:15Z	2019-06-04T20:14:12Z	If a user uploads a batch of ''very'' high-res images, and inserts them as a gallery, the browser will become unresponsive as these giant images are rendered in the TinyMCE gallery preview. The gallery preview should use a thumbnail instead of the original image.	leedo
	36293	video/audio object passed to wp_video_shortcode/wp_audio_shortcode is always null		Media		normal	normal		defect (bug)	new		2016-03-22T06:47:41Z	2020-03-12T05:16:51Z	"Hi,

The following:

{{{
apply_filters( 'wp_video_shortcode', $output, $atts, $video, $post_id, $library );

apply_filters( 'wp_audio_shortcode', $html, $atts, $audio, $post_id, $library );
}}}

send the {{{$video}}} and {{{$audio}}} objects respectively to the filtering function.

However, these objects seem to be always {{{null}}}.

By checking the relevant code I notice that these objects are only set when the {{{$primary}}} variable is set to {{{false}}}. The code does not clarify why the audio/video object is bound to that variable. Perhaps someone more familiar with the logic behind these functions should check this please."	gnotaras
	62293	"wp_get_missing_image_subsizes() - Warning: Undefined array key ""height"""		Media		normal	normal		defect (bug)	reopened	has-patch	2024-10-24T10:15:39Z	2026-10-22T17:18:29Z	"In certain edge cases it is possible that the keys `width` or `height` can be null or not set inside of `wp_get_missing_image_subsizes()`.

I got that warning in the sentry installation of my project. While this was a rare occurrance it did happen.

I propose to add a ternary operator to check and sanitize here like done at other places.

PR on Github."	apermo
	61066	"Add ""cover"" cropping mode for custom image sizes"		Media		normal	normal		enhancement	reopened		2024-04-24T09:33:50Z	2024-05-01T19:43:27Z	"When developing a custom theme, sometimes images are shown, not to display them in their entirety, but to ""fill in"" an area with a graphical element.

For example, the category/tag archive page may be designed to have a thumbnail area next to each post title. Often, the design goal is to have the thumbnail area entirely covered with an image; whether the whole post thumbnail is visible is not important.

The current ""soft"" cropping mode for custom image sizes do not cater to this use-case.

Using the above example (post thumbnails on an archive page), suppose the thumbnail area is 200px x 200px and the theme adds a custom 200x200 image size:

{{{#!php
add_image_size( 'custom-size', 200, 200 );
}}}

If the user uploads a 600x400 image, then WordPress will generate a 200x133 version of the image. This version is not large enough to cover the 200x200 thumbnail area.

In other words, the current ""soft"" cropping mode enforces a maximum image size. Using CSS terms, this corresponds to the `contain` keyword for `background-size` and `object-fit`.

What this enhancement request is asking for is a ""cover"" cropping mode that enforces a minimum image size, to be used with `background-size: cover` or `object-fit: cover`.

In the above example of a 600x400 image, this ""cover"" cropping mode would generate a 300x200 version. This version would be large enough to cover the 200x200 thumbnail area."	jefferyto
	34817	Add a new image size detection function		Media	4.3.1	normal	normal		enhancement	new		2015-11-29T23:15:28Z	2019-06-04T20:18:33Z	"Hi there,

Currently if you need to see if a custom image size exists for an image you need to call `get_image_sizes` and pass in your image id. This returns either the the applicable information for that image size or false. 

I think a better approach would be to have a function such as `images_size_exists()` which just detects if that size exists for a given image id and returns true or false. 

When using `wp_get_attachment_image_src` for example, you pass in your desired size, e.g 'large'. If the size you passed in doesn't exist for the image it will choose an applicable similar image such as the 'full' size. If there was a function like `images_size_exists()` it would let you conditionally target based on if sizes exist.

I'm pretty keen on potentially adding this as a feature if it's not being worked on by anyone else?

Thoughts guys? "	simonrcodrington
	28619	Add more filters to tune audio and video shortcode library		Media	3.9.1	normal	normal		enhancement	new		2014-06-24T08:42:25Z	2019-06-04T20:08:19Z	"`wp_video_shortcode_library` and `wp_audio_shortcode_library` allow a plugin author to replace the default mediaelement.js library by another Audio/Video js library. But then, possibilities to modify the html rendering are very limited.

I have identified 2 points where a filter/action is needed :

  1. L1782 in wp-includes/media.php (https://github.com/WordPress/WordPress/blob/3.9.1/wp-includes/media.php#L1792)

{{{
$html = '';
if ( 'mediaelement' === $library && 1 === $instances )
	$html .= ""<!--[if lt IE 9]><script>document.createElement('video');</script><![endif]-->\n"";
}}}

  2. L1820 in wp-includes/media.php (https://github.com/WordPress/WordPress/blob/3.9.1/wp-includes/media.php#L1820)

{{{
if ( 'mediaelement' === $library )
	$html .= wp_mediaelement_fallback( $fileurl );
}}}

Plugin author should be able to add arbitrary HTML code before and inside the `<video>` tag as easily as this is done for mediaelement.

This could be done by replacing the previous lines with an filter call, and doing the mediaelement stuff inside the filter callback that can be unregistered and replaced by plugins.
"	Fab1en
	21569	Filter gallery styles with access to $attr		Media	3.5	normal	normal		enhancement	new	has-patch	2012-08-13T21:18:25Z	2019-06-04T20:03:33Z	"Currently you can replace the entire output, but that's all or nothing — if you decide to do that, you also need to parse the attributes array, decide on good defaults, etc. You can also filter the styles, but you don't have access to the attributes array.

Use case: In my theme, I'd like to use the number of columns as more of a suggestion. I could set min-width to what `$itemwidth` is currently and it would be more responsive. If the page shrinks too small, it would only load 1 image per line instead of being locked into the right number of columns."	betzster
	33959	Improve wp_get_attachment_thumb_file		Media	4.4	normal	normal		enhancement	new	needs-unit-tests	2015-09-22T08:28:27Z	2024-08-07T11:57:15Z	"Since we can retrieve an image thumbnail url it will be nice if we can get the path of this thumbnail too.

Here is a patch allowing this. And improvements for the first parameter allowing it to be a WP_Post object.

"	Rahe
	31395	Indicate difference of two visually equal, but otherwise different images in non-list media views		Media	4.0	normal	normal		enhancement	new		2015-02-20T18:19:09Z	2023-10-18T16:17:30Z	"As explain in #24566

> [...] if I have two images that look identical the only way to differentiate between them is click each of them and read their properties in the properties section.

One possible solution would be to show the title/file name of the image and/or the file size."	F J Kaiser
	31283	Setting poster image for videos inside a video playlist is not very intuitive		Media	4.2	normal	normal		enhancement	new		2015-02-10T15:43:13Z	2019-06-04T20:11:16Z	"This is somehow a follow-up to #27891.
When you create a video playlist, it's very hard to understand how to change the poster images of the videos. 

Here is the workflow :
  1. Upload some videos
  1. Create a new article and insert one single video
  1. Edit the inserted video to open the media modal again, and select a poster image for your video
  1. Nice !
  1. Create another article and insert a video playlist
  1. When you choose video, the one that was inserted in the previous article is shown with the poster image instead of the default video icon : very nice !
  1. For other videos, there is no way to select a poster image, neither during initial playlist creation, nor after having inserted the playlist :-(
  1. To select a poster image, you have to go back to the main Media menu, find the right video and edit its details, and then set the featured image (that you guessed it was the same as the poster image)

I see at least three ways to improve that workflow.
  1. In the ""Edit video playlist"" modal, add a ""Select poster image"" menu, similar to the one that exists in the ""Video details"" modal for the video shortcode.
  1. When browsing videos in the media modal, add a link to set the poster image, in the same manner that the ""Edit image"" link works for images
  1. When browsing videos in the main Medias menu, add a link to set the poster image, in the same manner that the ""Edit image"" link works for images
  1. Bonus : change ""Featured Image"" title to ""Poster image"" in the video attachment post edition page
  1. Big Bonus : when browsing videos in the main Medias menu, add a button ""take a screenshot and set as poster"" when a video is shown. This will load the video into a canvas, generate an image from this canvas, send the image to the server and set it as poster !


"	Fab1en
	31419	Vimeo and YouTube video cannot be inserted into a playlist		Media		normal	normal		enhancement	new	dev-feedback	2015-02-23T09:22:58Z	2019-06-04T20:11:41Z	"Now that the video playlist feature is working well in core, it could be great to think about supporting Vimeo and YouTube videos inside playlist.

For the record, YouTube videos can be played with the MediaElementJS player with this shortcode :

{{{
[video src=""http://youtu.be/_YbVJoMYwJ0""]
}}}

I would like to introduce the possibility to play this video inside a playlist:

{{{
[playlist type=""video"" srcs=""http://youtu.be/_YbVJoMYwJ0,http://youtu.be/Fn1iMmSvvhQ""]
}}}

Now, there are some challenges :
  1. Playlist are managed by selecting attachment form the Media library, along with their meta data (title, poster, ...). How to provide meta data for external videos ?
  2. MediaElementJS does not build the player in the same way when a YouTube video is embeded, so switching between videos does not rely on the same API, and switching between YouTube and mp4 videos is not possible

The first concern could be addressed by registering an attachment post in the database that links to a YouTube URL instead of a video located in the uploads folder."	Fab1en
	29368	Pasted media do not appear in the library		Media	3.9.2	normal	normal		feature request	new		2014-08-25T17:49:15Z	2019-06-04T20:08:45Z	"So I don't know if this is a bug or a feature request, but when I paste an image into a post, i would assume that it goes into the media library (where else would it live?). But when I go to then chose that image as my featured image, surprise, surprise - it's not in the library.
"	Matt McLaughlin
	31360	Missing active state classes for parent menu items		Menus	4.1	normal	normal		defect (bug)	new		2015-02-17T13:59:09Z	2019-06-04T20:11:21Z	"wp_nav_menu() currently dont set current_post_parent(or other active state css classes) for all parent pages, when it has a category menu item with current_post_parent state.

Steps to reproduce:

You have following menu (theme menu):

- Level 1.1 (Page)
 - Level 2.1 (Page)
  - Level 3.1 (Category: ""Allgemein"")
 - Level 2.2 (Page)
 - Level 2.3 (Page)
- Level 1.2 (Page)

On ""Level 3.1"" you will see blog posts from the category ""Allgemein"".
Each blog post is linked to a detail page. (full blog post).

When you visit the full blog post page, Level 3.1 will get the class ""current_post_parent"". But Level 2.1 and Level 1.1 dont get any active states. Its missing.

i currently use following to fix it in my theme:


{{{
function me_fix_category( $menu )
{
    //parse output of wp_nav_menu
    $xml = new DOMDocument();
    $xml->loadXML( $menu );
    do {
        $fixed = false;
        //search for li tags
        $elems = $xml->getElementsByTagName( 'li' );
        foreach ( $elems as $el ) {
            //check if li has a active state
            if ( strstr( $el->getAttribute( 'class' ), 'current-post-parent' ) ) {
                //check parent li tag
                $parent = $el->parentNode->parentNode;
                $class = $parent->getAttribute( 'class' );
                if ( !strstr( $class, 'current-post-parent' ) ) {
                    //no active state for the parent? append class
                    $parent->setAttribute( 'class', $class ? $class . ' current-post-parent' : 'current-post-parent' );
                    $fixed = true;
                }
            }
        }
    //do this, till nothing was fixed
    } while ( $fixed );
    return $xml->saveHTML();
}
}}}
"	donkelduffi
	14439	Unable to get a post associated menu items for a specific menu		Menus	3.1	normal	major		defect (bug)	new	has-patch	2010-07-28T03:32:06Z	2026-08-10T08:05:36Z	"Hello,

The actual wp_get_associated_nav_menu_items function works well but gets menu items associated with an object from ANY menu. So a parameter needs to be added to specify a specific menu to get menu items associated with an object from a specific menu.

Patch is attached. The use of get_term() is needed because of the bug #14438"	DreadLox
	34657	WordPress doesn't set object terms for menu items so pending items not working		Menus	4.3.1	normal	normal		defect (bug)	new	dev-feedback	2015-11-11T11:23:11Z	2019-06-04T20:17:50Z	"
When I create menu items and refresh admin page without saving menu, wordpress can not show pending menu items.

At line 1127 of 'wp-admin/includes/ajax-functions.php' file there is wp_save_nav_menu_items function, the first argument for this function '''is always zero''', so At line 441 of 'wp-includes/nav-menu.php' file wp_set_object_terms function doesn't work.  

I add my menu id to 

{{{
$item_ids = wp_save_nav_menu_items( 97, $menu_items_data );
}}}

function, and it working for me. :)"	rss_samuel
	17821	wp_get_nav_menu_object() doesn't check when passing to get_term()		Menus	3.1.4	normal	normal		defect (bug)	new	has-patch	2011-06-17T00:02:14Z	2025-05-28T16:25:49Z	`wp_get_nav_menu_object()` initially passes the menu string to `get_term()` to see if it's an ID. However, `get_term()` expects an integer or object and type-casts any non-objects passed into integers. This results in a menu name i.e. '10-ton elephant' being reduced to '10', which it then uses as a term ID, potentially producing unexpected results.	kawauso
	18816	Add 'offset' parameter and 'ancestral' boolean to wp_nav_menu		Menus		normal	normal		enhancement	new	dev-feedback	2011-09-29T16:13:42Z	2019-06-04T20:02:57Z	Since we can now call wp_nav_menu multiple times and there is the very useful 'depth' parameter, I believe adding an 'offset' parameter would be very beneficial in many situations. This would allow you to start at the children of the main pages for example and combined with depth it becomes very powerful. An 'ancestral' => 'true' option could output only menu items that the current page is a descendant of. Currently if you want to display a main menu in the header and then a submenu on page.php you either need a tricky custom walker or terrible CSS 'visibility:hidden' or 'display:none' situations.	signyourbikeout
	26935	Add empty submenu page to hide menu page title in list		Menus	3.8	normal	normal		enhancement	new		2014-01-25T07:46:30Z	2019-06-04T20:06:31Z	"My question has to do with `add_menu_page()` and `add_submenu_page()`.  If we add a menu page, and one sub_menu page.. we end up with the main menu page being duplicated in the sub pages list.
    
If we have ""Main"" as our main page, and ""Sub"" as our sub page... 
{{{
add_menu_page('Main', 'Main', 'manage_options', 'main_options', array($this, 'main_do_page'));
add_submenu_page('main_options', 'Sub', 'Sub', 'manage_options', 'sub_options', null);
}}}
This will create a menu structure such as:
* Main
 * Main
 * Sub

The ""Main"" page is duplicated in the sub list.

Now, we can hide that duplication with a slight adjustment to the code:
{{{
add_menu_page('Main', 'Main', 'manage_options', 'main_options', array($this, 'main_do_page'));
add_submenu_page('main_options', 'Sub', 'Sub', 'manage_options', 'main_options', null);
}}}
By changing the fifth argument to match the ""Main"" page slug.. it will successfully hide the submenu; resulting in:

* Main
 * Sub

However... the issue with this... is a menu item still gets created in the generated html.  The inner html is blank.. so no title is actually displayed.. but the outer html is still there.

It appears in the submenu html output as such (with the second snippet above):
{{{
<li class=""wp-first-item current"">
    <a class=""wp-first-item current"" href=""admin.php?page=main_options""></a>
</li>
<li>
    <a href=""admin.php?page=sub_options"">Options</a>
</li>
}}}
See how the top item has the html for a list item.. but has no inner html?

This creates a space, about 4 or 5 pixels.. in between the main item and the sub menu items.

Now, I know this is trivial when there is only one menu item.  But, now that I know it exists.. it is driving me nuts.

1. It results in unnecessary html output.
2. It results in a space in the menu item list.. which is faint, but unattractive... and hinders the visual appeal of the new admin panel.

Could we perhaps first check if the `add_submenu_page()` fifth argument ($menu_slug) matches the `add_menu_page()` first argument ($page_title)... then the outer html wrapper doesn't get rendered?

With space example(http://joshlobe.com/testsite/images/trac1)
Without space example(http://joshlobe.com/testsite/images/trac2)

Thank you for reading."	josh401
	21070	Added a filter to the sub-menu class attribute		Menus	3.4	normal	normal		enhancement	reopened	dev-feedback	2012-06-25T12:47:34Z	2019-06-04T20:03:26Z	"The sub-menus are hard coded with ""sub-menu"" as the only CSS class. This may cause bad performing CSS with maintainability issues, like when you're targeting the third level sub menu.

I've added a filter, so CSS classes like ""sub-menu-level-$depth"" can be added."	bjornjohansen
	35384	Archive for post in Menu Editor		Menus		normal	normal		enhancement	new	needs-unit-tests	2016-01-09T09:50:03Z	2019-06-04T20:20:36Z	In menu edit in posts meta box I suggest add Archive for Posts	sebastian.pisula
	33955	get_posts() menu args filter		Menus		normal	normal		enhancement	new	has-patch	2015-09-22T06:37:14Z	2019-06-04T20:16:11Z	"Before I get menu items by get_posts() I can't filter args (Example: I want ignore item of menu for not logged users)


{{{
add_filter( 'wp_get_nav_menu_items_args', 'wp_get_nav_menu_items_args', 10, 3 );

function wp_get_nav_menu_items_args( $args, $menu, $items )
{
    if ( ! is_user_logged_in()) {
        if (( $key = array_search( 2778, $items ) ) !== false) {
            unset( $items[$key] );
        }

        $args['include'] = implode( ',', $items );
    }

    return $args;
}
}}}"	sebastian.pisula
	35048	custom menu - OPTIMIZE QUERY!		Menus		normal	normal		feature request	new		2015-12-13T14:00:14Z	2019-06-04T20:19:29Z	"

hi..
i had an idea - developers should have an ability to set a constant i.e.

USE_STATIC_CUSTOM_MENU('menu_name') = true;

in general, output of custom_menus on front-end, takes long (sometimes 1 second)..
so, i think, that the custom-menu output should be saved as static string, and that should be outputed on FRONT_END request by visitors...
and that STATIC string should be changed/ updated every time the custom-menu is edited, or when any of that custom-menu's item is modified...
i think, it will save huge resources over millions of sites/hosting..

p.s. of course, somehow, ""current-menu-item"" should be added while front-end request.."	selnomeria
	55663	CSS theme and features themes is buggy	realloc	Networks and Sites	5.9.3	lowest	normal		defect (bug)	reviewing	close	2022-05-03T09:19:07Z	2026-08-10T09:46:50Z	"Hello,
To explain my problem, I created a multi-site network and I want to use a theme, or even divi, the WordPress CSS is buggy.

Then I installed Divi (the theme) and when I go to validate my license (in the options), there is no divi css, but this: https://prnt.sc/ElUkmp_zXBPW

But even with the default theme ""Twenty Twenty-Two"", I have this same problem: https://prnt.sc/j1BRIO8yU85I

While on the main site, there are no CSS bugs.

Is this normal, is it still recommended to use the network?

Thank you for your reply"	valentindu62
	24411	New site email being sent despite registrationnotification set to no		Networks and Sites	3.5.1	normal	normal		defect (bug)	new	dev-feedback	2013-05-24T14:34:06Z	2025-06-20T21:16:09Z	"When a new site is created in wp-admin/network/site-new.php it sends an e-mail to the admin email address to say the site has been created (line 92 in WP 3.5.1).

I had assumed that the registrationnotification setting in wp-admin/network/settings.php would control this but it sends the e-mail regardless of this setting.

I believe that sending this email should respect the registrationnotification setting or a new configuration option should be added to prevent sending out these e-mails."	tomk-m
	60659	get_subdirectory_reserved_name bypass on mutlisite		Networks and Sites	6.4.3	normal	normal		defect (bug)	new	close	2024-02-29T12:07:13Z	2026-08-10T10:17:14Z	"By default on Multisite installation, you cannot have subsite(subdirectory) with name /blog/ due to: https://developer.wordpress.org/reference/functions/get_subdirectory_reserved_names/ as this tigger an error when you try to create such subsite:

{{{
The following words are reserved for use by WordPress functions and cannot be used as site names: page, comments, blog, files, feed, wp-admin, wp-content, wp-includes, wp-json, embed
}}}
But you can bypass that by creating subsite /aaa/ and edit name later on in network. I wonder is that a bug, and if so will it cause any issues using such subsites slug?

The only one I have found so far is that if on main site you will have /blog/ page slug, after re-save slug will get the number at the end.

Also, if you can bypass that, maybe it should be removed from reserved list?

Apart from /blog/ slug I was able to replicate that for /comments/ using same bypass.

I could not find any information in that matter.

Thank you
"	knightrider123
	44461	inconsistent type for global $blog_id		Networks and Sites	4.9.6	normal	normal		defect (bug)	new	close	2018-06-25T18:51:00Z	2026-08-10T10:27:53Z	"Hi,

in a single installation global $blog_id is 1, its type is integer.
in a multisite context global $blog_id is a string, this might be a problem considering the fact that operator == && != have been deprecated.

There is a function called get_current_blog_id() that basically applies an absint() on this global but I guess this should be an integer whatever happens."	anonymized_10765487
	35274	Break-out conditional in allow_subdomain_install()		Networks and Sites		normal	normal		enhancement	new	has-patch	2015-12-31T18:04:22Z	2026-08-05T23:13:58Z	"Attached patch expands the conditional within `allow_subdomain_install()`with better inline documentation, replaces the IP address regex with `filter_var( $var, FILTER_VALIDATE_IP )` ([[http://us3.php.net/manual/en/function.filter-var.php supported in PHP 5.2.0+]), and adds unit tests.

This came about while working on a refresh for #22330, trying to add missing unit tests along the way, and includes one of the regex changes from @nacin's patch."	stevegrunwell
	54325	Multisite domain mapping: No blog address to revert to when domain mapping is made inactive		Networks and Sites		normal	normal		enhancement	new	close	2021-10-26T18:06:05Z	2026-08-10T10:16:40Z	"When a user creates a blog in a network install they are given a blog address like ""foobar.example.com"". Now, imagine domain mapping is activated for this blog and the blog can be accessed using a custom domain like ""example.com"".

If the user decides they no longer want example.com to be hosted on the network, they may point DNS records to an IP address not associated with the network install. This will result in an orphaned blog because the ""foobar.example.com"" address was vacated when the initial domain mapping became active.

""foobar.example.com"" isn't reserved so a completely different user may have created a new blog in the mean time using the ""foobar.example.com"" address."	henry.wright
	29536	Toggle excerpt/list view buttons appear on users list page in network admin		Networks and Sites	3.0	normal	normal		enhancement	new	needs-refresh	2014-09-05T13:22:03Z	2019-06-04T20:09:08Z	"The buttons to toggle list/excerpt view show up on the Users list page in the Network admin. I suppose they shouldn't. When you click excerpt view, the registered time appears.
I'll submit a patch to remove them from this view.

As an alternative, I wonder if it would be useful to show the user bio in excerpt view?

[[Image(https://www.evernote.com/shard/s3/sh/b564ac68-b0dc-409c-86df-ad0121b0f3df/ef7c8306fd439a62351a623e26b63259/deep/0/Screenshot-2014-09-05-07.54.53.png)]]

"	pauldewouters
	31414	Paginating Themes, Plugins, and Media		Networks and Sites	4.1.1	normal	normal		feature request	new	close	2015-02-22T16:08:13Z	2026-02-09T21:45:57Z	"When building a multisite network the lack of pagination on resource screens such as themes, plugins, and media cause b rowser crashes -- too many thumbs to load.
"	leedman
	36760	Intermittent empty returns from get_post_meta function after 4.5 upgrade		Options, Meta APIs	4.5	normal	normal		defect (bug)	new		2016-05-05T02:45:08Z	2019-06-04T20:58:39Z	"I've seen this reported several times, but the reporters failed to properly explain the issue and the tickets were closed.

Since the 4.5 upgrade I am seeing intermittent issues in my custom plugin (which has worked for years and hasn't changed) where the get_post_meta function is used if the request is made via ajax or by calling a custom endpoint. Rolling back the 4.5 upgrade has resolved these issues.

The same function called with exactly the same arguments will return the meta data value one minute and return an empty string the next (with single on). The data in the database is unchanged. Logging shows the post id and meta key are the same, only the return value is different. It always seems to work as part of a regular page request (not ajax, not custom endpoint).

Sometimes the function works correctly for 24 hours, then fails several times. I can't identify any pattern but suspect the meta cache / session. I tried doing a meta cache update for the object before calling get_post_meta, but the problem still occurred. 

In Googling I've found several people reporting issues related to get_post_meta after the 4.5 update. Please take a look!"	amberau
	36440	get_results break in wp-admin/options.php if thetable is huge		Options, Meta APIs	4.4.2	normal	minor		defect (bug)	new		2016-04-07T14:17:47Z	2019-06-04T20:56:39Z	"If we try to check all values from wp_options table thanks to the admin page wp-admin/options.php, the page will be broken if the table is huge (on my case more than 100 000 rows).

A simple pagination feature should fix the issue instead of trying to get all results.

Currently on wp-admin/options.php line 253:
{{{#!php
<?php
$options = $wpdb->get_results( ""SELECT * FROM $wpdb->options ORDER BY option_name"" );
}}}

"	aoculi
	37349	Allow sanitize_meta() to filter the meta_value regardless of meta_key		Options, Meta APIs	4.5.3	normal	normal		enhancement	new	has-patch	2016-07-12T23:15:49Z	2019-06-04T21:01:23Z	"I have created a couple of custom DB tables to handle storing a custom data type, and the meta for that data type. I modeled my meta table off of the WP postmeta/usermeta/etc standards so that I can use get_metadata and update_metadata functions and leverage all of their abilities.

Part of the update_metadata function is a call to sanitize_meta which lets you add filters in to sanitize the data in the format of: ""sanitize_{$meta_type}_meta_{$meta_key}"".

For the meta that I will be storing, I would like to apply a filter to ALL meta for my $meta_type, in the format of: ""sanitize_{$meta_type}_meta""."	mattkeys
	26895	Deprecate recently_edited option		Options, Meta APIs	3.8	normal	minor		enhancement	new	dev-feedback	2014-01-21T08:33:53Z	2019-06-04T20:45:22Z	"recently_edited option is being set when a plugin or a theme file is edited by the builtin Editor.
A search, in the WordPress 3.8 source code, tells me that the option is never being read.
I suggest that we deprecate that option and replace it by an action where plugins can hook and get the value of the edited file."	yani.iliev
	37579	Inconsistent names for `update_(network_)option` actions		Options, Meta APIs	4.5.3	normal	normal		enhancement	new		2016-08-05T03:11:39Z	2019-06-04T21:02:49Z	"I noticed that there seems to be some inconsistency in the hook naming convention, regarding the setting, deleting, and updating of options and transients. It would be nice if all the hooks indicated when in the function they were occurring, and matched the others (see the list below).

For example, if all hooks that occurred before the action were prefixed with `pre_`, and all hooks occurring after were in the past tense: `added_`, `deleted_`, `updated_`. I'm not sure how this was allowed to happen to begin with, so if I'm missing something, please inform and then close this ticket... but if it's simply a result of sloppiness, cleanup should be performed (volunteering myself).

Here is the list of the actions that are performed (in `wp-includes/options.php`), grouped by when the action fires (before or after):

== BEFORE ==
- `update_option`
- `add_option`
- `delete_option`
- `delete_transient_{$transient}`
- `set_transient_{$transient}`
- `pre_delete_site_option_{$option}`
- `delete_site_transient_{$transient}`

== AFTER ==
- `add_site_option_{$option}`
- `add_site_option`
- `add_option_{$option}`
- `added_option`
- `setted_transient`
- `set_site_transient_{$transient}`
- `setted_site_transient`
- `update_site_option_{$option}`
- `update_site_option`
- `update_option_{$option}`
- `updated_option`
- `delete_site_option_{$option}`
- `delete_site_option`
- `delete_option_{$option}`
- `deleted_option`
- `deleted_transient`
- `deleted_site_transient`"	crstauf
	33884	Move meta functions to their own files		Options, Meta APIs	4.4	normal	normal		enhancement	new		2015-09-15T17:51:10Z	2019-06-04T20:51:37Z	"All the meta functions should be in their own file. Like this.

post-meta.php
comment-meta.php
user-meta.php

Related tickets: #10142 #28290"	spacedmonkey
	17450	Almost pretty permalinks with non-ASCII characters do not work in Apache	westi	Permalinks	3.1	normal	normal		defect (bug)	reopened	needs-unit-tests	2011-05-16T05:53:14Z	2019-06-04T20:42:05Z	Almost pretty permalinks (using PATH_INFO) with non-ASCII characters do not work in Apache; a not found error is returned. The same permalink works in IIS when UTF-8 is used for server variables. It also works when mod_rewrite is used.	peaceablewhale
	32498	Media Library and Page Slug conflict		Permalinks	4.2.2	normal	normal		defect (bug)	new		2015-05-26T17:56:18Z	2019-06-04T20:50:04Z	"This is a follow-up to #18962.

Please also check out this thread on the forum - https://wordpress.org/support/topic/41-slug-issue-when-same-title-exists-in-media-library

If you have a pre-existing media file with the same slug as a page then a ""-2"" will be added to the page slug. With a custom content type and page or custom content type and media file, this doesn't appear to be happening."	m7csat
	23781	New Post Publishes to Wrong URL		Permalinks	3.4.2	normal	critical		defect (bug)	new		2013-03-15T04:59:52Z	2019-06-04T20:43:54Z	"The ""Permalink"" displayed in the editor for new posts may be wrong, and changes (surprise!) when the Publish button is clicked.

Steps to reproduce this:
1. Start typing a title in a new post.
1. Wait for an auto-save and Permalink to appear.
1. Make the title longer.
1. Type a post body.
1. Click Publish.

Expected result:

The new post should be published at the Permalink being displayed on the post editor.

Actual result:

A completely different permalink is generated based on the current title.  The new page gets cached at the ""wrong"" URL before any changes can be made.  General pandemonium ensues.  Etc.  (It's not a blocker bug, but it is so completely annoying!)"	miqrogroove
	36305	Permalink can't decide the parent category		Permalinks		normal	normal		defect (bug)	new		2016-03-23T10:46:11Z	2019-06-04T20:55:59Z	"'''The bug:-'''
There is a bug in the permalink generation that it can't decide the parent category. This means that even though we choose the child & parent both as a post's category, it creates the permalink as /parent/child/ in '''certain situations'''.

Please note that the Permalink Structure is set to:- 
{{{
/%category%/%postname%/
}}}

----

'''What should happen:-'''
If we choose a parent category as well as the child category as post's categories, the permalink should be: 
{{{
/parent/
}}}

And if we choose only the child as post category, the permalink should be:
{{{
/parent/child/
}}}

----

'''Demonstration:-'''
I created a parent-child category set as ""Parent 1 (parent) & Child 1 (child)"" & another set as ""Parent 2 (parent) & Child 2 (child)"". The difference between the two sets is that 'Child 1' was created before 'Parent 1' & then edited to have 'Parent 1' as it's parent, while the 'Child 2' was created after 'Parent 2'.

Now, if I choose 'Parent 1' & 'Child 1' as a post's category, it creates the permalink as: 
{{{
/parent-1/child-1/hello-world/
}}}


And if I choose 'Parent 2' & 'Child 2' as a post's category, it creates the permalink as: 
{{{
/parent-2/hello-world/
}}}

----

'''How to reproduce the bug:-'''
1. Create a category 'child 1'.
2. Create another category 'parent 1'.
3. Now edit the 'child 1' category and set 'parent 1' as it's parent.
4. Now the permalink can't judge that 'parent 1' is the parent of 'child 1' & creates a wrong permalink as if only 'child 1' was selected.

----

'''Possible Reason:-'''
A possible reason for this bug maybe due to the category id. Here, the 'Child 1' has lesser category id than 'Parent 1'. And the permalink algorithm checks for the least selected category id."	gr8shivam
	34822	Post name permalinks problems		Permalinks	4.3.1	normal	normal		defect (bug)	new	dev-feedback	2015-12-01T16:41:16Z	2019-06-04T20:53:19Z	"

When using the ""post name"" permalink options and creating/deleting duplicates it can happen that the links get confused and the correct permalink doesn't work anymore. (page not found)

The workaround shows a little more of this strange behaviour. If you change the link of the old page to blog/pagename-2, create a new one (with changing the link to the correct/old one if necessary), and delete the old one, the permalink blog/postname works, but redirects to blog/pagename-2.

Something gets mixed up there...

---

To add another workaround that we've tried to fix it: If one changes the permalink setting to standard, the post show up as normal, but when changing the settings back (to ""article name""), the problem persists/reappears. The permalinks do not seem to be freshly generated but rather to somehow half-and-half rely on old and new setting, very weird. "	stevenbauers
	36694	[Pages] [Edit Page] Changing the Permalink URL updates the displayed anchor text, but not the HREF (URL) property		Permalinks	4.5.1	normal	normal		defect (bug)	new	dev-feedback	2016-04-27T23:25:56Z	2026-01-28T09:03:40Z	"Steps to reproduce:

1. Create a page or post

2. Edit said page or post

3. Change the Permalink URL using ""Edit"" button next to displayed permalink

4. Click OK button after updating Permalink URL

Observe.

Expected: the anchor link text is updated and the anchor link HREF property is updated to the new value input in the field

Actual: the anchor link text is updated but the anchor link HREF property remains the same."	setsailmedia
	32705	`includes_url` shouldn't use `site_url()` on the frontend		Permalinks		normal	normal		defect (bug)	new	dev-feedback	2015-06-18T15:18:09Z	2019-06-04T20:50:36Z	"Multisite / Domain Mapping 

1. `site_url()` is your admin, `home_url()` is your frontend
1. The site url is blocked behind a firewall
1. You call `includes_url()` for a script on the frontend: your script is blocked, because it loads your admin domain on the frontend

I noticed this because we are trying to upgrade the NYT to 4.2.* and emoji scripts are showing up everywhere.
I can remove the action for now."	wonderboymusic
	36323	home_url returns url with wrong scheme		Permalinks	4.4.2	normal	normal		defect (bug)	new	dev-feedback	2016-03-25T02:40:21Z	2019-06-04T20:56:21Z	"Hello,

I have a multisite with HTTPS on all subsites. When using 
{{{
home_url( '/' );
}}}
, on a subsite page, logged in user got a https url, when anonymous got just http.

In the track, it seems that the error comes from those lines...
{{{#!php
2963	        if ( ! in_array( $scheme, array( 'http', 'https', 'relative' ) ) ) {
2964	                if ( is_ssl() && ! is_admin() && 'wp-login.php' !== $pagenow )
2965	                        $scheme = 'https';
2966	                else
2967	                        $scheme = parse_url( $url, PHP_URL_SCHEME );
2968	        }
}}}
...

Thank you for your time."	Gerkin
	17183	previous_comments_link and next_comments_link return wrong url with PATHINFO permalinks		Permalinks	1.5	normal	normal		defect (bug)	new	needs-unit-tests	2011-04-19T20:13:15Z	2019-06-04T20:42:01Z	"When using PATHINFO permalinks, previous_comments_link() and next_comments_link() return a wrong link, which renders paged comments useless.

Steps to reproduce:
Set permalinks to: /index.php/%post_id%/%postname%/

The functions return URLs similar to: /comments-page-1/#comments
This URL results in a file not found (if no rewrite rules are available, which should not be necessary if the PATHINFO permalink structure is used).

Expected URL: /index.php/comments-page-1/#comments
Manual opening the URL results in the expected/correct paged comments page."	FireMotion
	34555	superscript in url		Permalinks		normal	normal		defect (bug)	new	dev-feedback	2015-11-02T10:39:17Z	2019-06-04T20:53:06Z	"If you have a superscript in the post title and selected post-name structure for permalink, it creates a slug as in the image: http://prntscr.com/8y3wsc

"	sabrisahincan
	25006	Display date pages from categories with permalinks		Permalinks		normal	normal		feature request	reopened		2013-08-10T00:46:10Z	2025-04-19T15:13:19Z	"When permalinks are not set up we can view posts from a specific category from a specific year (date), but if the permalinks are set up we can view only date pages or category pages.

This works: 
`site.com/?cat=1&m=201307` (works)

This does not work:
`site.com/category/uncategorized/2013/07` (does not work)"	alexvorn2
	37160	Pingbacks fail on multi-page posts		Pings/Trackbacks		normal	normal		defect (bug)	new		2016-06-23T18:48:37Z	2019-06-04T21:00:55Z	"Repro:

1. Publish a post to pingback in a subsequent post and assure that the site/post will allow pings.
2. Create a second post that has multiple pages with a reference to the post created in step 1 in one of the later pages (sample content below).
3. Publish the second post.

Expected: The pingback will register.

Actual: The pingback doesn't register. If you repeat steps 2 and 3 but move the link to the post created in 1 to the first page, the pingback works. Here's some sample content to demonstrate the issue:

{{{
Page One

<!--nextpage-->

Page Two

<!--nextpage-->

Page Three with pingback: http://pleasetest.me/2016/06/23/page-to-ping/
}}}

This fails because the pingback code checks the pinging post to confirm that the pung link exists in the content. Since the pung link displays on a subsequent page, it's not displayed on the un-paginated permalink. Thus when the pingback code fetches the pinging link, it doesn't find a link to itself in the content and it discards the pingback. But this is a valid use case and not an instance of spoofing (which I take it is what this check is designed to prevent).

I'm not sure if there's some parameter we could append to the url when we fetch to validate the link in context that might skip the pagination. If so, that might be the simplest fix. I suppose another fix might be to look for `verifying pingback` in the user agent (which is included in this validation request's UA) and skip pagination if found. That feels kind of brittle, though."	dllh
	36765	Remove Legacy Code from pingback_ping		Pings/Trackbacks	4.1	normal	normal		defect (bug)	new	dev-feedback	2016-05-05T14:59:53Z	2026-07-08T02:28:35Z	"Proposing we remove the legacy conditional url_to_postid and //$way debugging line leftover from [30139].


{{{
/ let's find which post is linked to
    // FIXME: does url_to_postid() cover all these cases already?
    //        if so, then let's use it and drop the old code.
}}}

Related: #34419
"	dshanske
	14902	weblogUpdates.extendedPing does not implement standard	josephscott	Pings/Trackbacks	3.0.1	normal	normal		defect (bug)	reviewing		2010-09-19T23:35:37Z	2019-06-04T20:41:29Z	"When a blog post is published or updated, Update Services are notified if they are listed in the Wordpress Writing Settings panel.

The services are notified by the weblog_ping() function in comment.php

That function first attempts an XMLRPC call to the service's weblogUpdates.extendedPing.  If that fails, it attempts to notify weblogUpdates.ping.

{{{
if ( !$client->query('weblogUpdates.extendedPing', get_option('blogname'), $home, get_bloginfo('rss2_url') ) ) // then try a normal ping
	$client->query('weblogUpdates.ping', get_option('blogname'), $home);
}}}

'''1) The weblogUpdates.extendedPing does not match the published standard.'''

See: 

http://www.google.com/help/blogsearch/pinging_API.html

Where 5 parameters are specified:

* Name of site
* URL of site
* URL of the page to be checked for changes
* URL of RSS, RDF, or Atom feed
* Optional a name (or ""tag"") categorizing your site content. You may delimit multiple values by using the '|' character.

The third parameter should be the page to be checked for changes, and not the RSS feed.

No 4th or 5th parameter is passed.

'''2) The weblogUpdates.extendedPing does not take advantage of notifying the service of the exact page that changed (as is provided in the standard)'''

If implemented correctly, this would allow the receiving service (perhaps a search engine) to come directly to the correct page for re-indexing, instead of trying to figure it out from the RSS feed.

I am unable to find if pingomatic.com publishes a competing version of the standard.
"	Scott Schram
	37754	Support Receiving Pings for Non Post-Type Permalinks		Pings/Trackbacks	1.0	normal	normal		enhancement	new		2016-08-20T23:57:21Z	2019-06-04T21:03:23Z	"Related: #2700 

Ten years ago, it was proposed that the ability to ping the homepage(often linked in the author_url of a comment). 

After a year, the issue was closed and turned over as a plugin issue. While the idea of pinging comments is certainly one that can be added as a plugin, the infrastructure to support receipt on arbitrary pages is not.

This enhancement is specifically about making it possible for Core or a plugin to receive and direct these pingbacks, separate from the issue of what to do with them once received. 

After the changes are made, that could be explored as plugin territory. However, the only way to do this now is to completely replace the pingback handler with a custom one.

Probably the easiest way to do this is to expand url_to_postid to allow it to return an arbitrary post_ID(using a filter) if it detects that the URL in question is a valid URL on the site, but does not refer to a post_type.
"	dshanske
	32041	Bulk updating selected Plugins with and without updates fails		Plugins	4.1.1	normal	normal		defect (bug)	new		2015-04-21T17:54:54Z	2019-06-04T20:49:39Z	"In WordPress 4.1.1 (and possibly some earlier releases of 4) there is a bug in the following scenario.

Your site has n+ plugins that need updated. You navigate to the general 'installed Plugins' page. You select ALL plugins (including those without updates) and go to Bulk Actions and select 'update'. In prior versions WordPress would only update the plugins in the selected list with updates. Currently it takes you to the updating screen and says it's finished without updating any plugins or listing any plugin updates in the updating screen."	gmariani405
	31515	Cannot enable plugins with protected function redeclarations (PHP Fatal Error)		Plugins	3.9.3	normal	normal		defect (bug)	new		2015-03-03T18:48:17Z	2019-06-04T20:49:25Z	"I'm working on a codebase where the theme or plugins concurrently declare the same function inside a function_exists() however the original plugin defines the function without a function_exists check. In this situation, all the declarations can live together at runtime, but attempting to activate (or reactivate) the original plugin causes an error.

Since the plugin initialization sandbox occurs after wp is loaded, the other plugins (with their checks) will have filled the function, any additional function declarations will fail. However this is merely an artifact of the initialization system -- as this plugin is being artificially run much later than it will be regularly running.

A usecase -- perhaps you are trying to wean yourself off the Advanced Custom Fields plugin so you've implemented the get_field function in the theme's functions file in a function_exists check. After disabling the ACF plugin, you decided to reenable it to adjust a field. Game over, Fatal Error."	brokentone
	33215	Main plugin file loaded multiple times under special circumstances on Network Activate		Plugins	4.2.3	normal	normal		defect (bug)	new		2015-07-31T10:06:02Z	2019-06-04T20:50:57Z	"Consider the following code in the main plugin file:
{{{
function test_plugin_install ( $network_wide = null ) {
    if ( $network_wide ) {
        trigger_error( 'Please activate individually.', E_USER_ERROR );
    }
}
register_activation_hook( __FILE__, 'test_plugin_install' );
}}}

and a multisite setup with
* mysite.intern as main site
* one.mysite.intern, two.mysite.intern, etc. as blog sites

Now, if you first activate the plugin ''individually'' on mysite.intern, and then select ""Network Activate"", the following is logged:
{{{
PHP Fatal error:  Please activate individually. in test_plugin.php on line 17
PHP Fatal error:  Cannot redeclare test_plugin_install() (previously declared in test_plugin.php:15) in test_plugin.php on line 15
PHP Fatal error:  Cannot redeclare test_plugin_install() (previously declared in test_plugin.php:15) in test_plugin.php on line 15
}}}
and only the last error is displayed on the admin page.

If the plugin is first activated on another blog site or isn't activated individually anywhere, only the expected ""Please activate individually"" error is thrown and displayed on network activation, as expected.

Wrapping the function test_plugin_install in a conditional only results in the next function in the plugin file triggering the redeclaration error."	ccprog
	36705	Read-only plugins are uninstalled before deletion fails		Plugins	4.5.1	normal	normal		defect (bug)	new		2016-04-28T20:06:04Z	2019-06-04T20:58:14Z	"Plugin uninstall happens before deletion is attempted. If the plugin's files are read-only, the plugins list action says ""Delete"" but all that happens is uninstall and an error.

Plugins that cannot be deleted because they are read-only in the filesystem should not have Delete buttons. `is_writable()` should be checked while constructing the actions. If read-only, either remove the button or replace it with an action which deletes the plugin's data and leaves the files. I prefer the latter."	andy
	28727	plugin editor content empty when source contains an invalid character		Plugins	3.9.1	normal	normal		defect (bug)	new		2014-07-03T11:39:43Z	2019-06-04T20:47:22Z	"I happened to create a plugin source file which contained a pound sterling character (£) copied and pasted from a web page, and which therefore appeared in my Windows text editor as lower case u acute ( hex A3, ascii 163 ).  

esc_textarea() makes a call to htmlspecialchars() which returns a null value for safe text.
{{{
$safe_text = htmlspecialchars( $text, ENT_QUOTES, get_option( 'blog_charset' ) );
}}}

Note: blog_charset is UTF-8

So the plugin editor displayed nothing at all for the source.

Question: Is this really the expected behaviour?

The documentation for htmlspecialchars says

If the input string contains an invalid code unit sequence within the given encoding an empty string will be returned, unless either the ENT_IGNORE or ENT_SUBSTITUTE flags are set.

Shouldn't the plugin editor pass ENT_IGNORE OR otherwise issue a message to the user at least advising not to save the empty file when the safe content is nothing like the original. 



"	bobbingwide
	15906	validate_plugin needs all_plugins filter		Plugins		normal	normal		defect (bug)	new	has-patch	2010-12-20T03:13:12Z	2019-06-04T20:41:40Z	"If a plugin adds plugins to the plugin list in the plugin admin screens using the all_plugins filter, the added plugins will not validate. If the all_plugins filter is added to the validate function, then the plugin validates and activates fine.


"	wpmuguru
	52400	Dependency management for plugins and libraries		Plugins		normal	normal		enhancement	reopened	dev-feedback	2021-01-29T18:21:03Z	2024-09-20T03:52:41Z	"Many plugin developers use Composer to manage PHP dependencies in their plugins, however, this may cause hard-to-debug issues if two plugins use the same library. Because of how Composer works, it will only load one version of that dependency at a time. Imagine the following scenario:

Plugin Developer 1 creates a plugin named Foo that uses version 2.0 of a library Bar
Library Bar developer releases version 3.0 of their library which renames function get_baz() to get_qux().
Plugin Developer 2 creates a plugin name Quuz that uses version 3.0 of the library Bar

User installs both plugins at the same time. Now their site crashes because one of the plugins calls a missing function.

There are some ways developers have worked around this, for example using https://github.com/coenjacobs/mozart , https://github.com/TypistTech/imposter-plugin or https://github.com/humbug/php-scoper which add an extra unique namespace to files defined as Composer dependencies but these tools are error-prone and don't work if the library checks dependencies in runtime.

I think it could be great to have some sort of way to fix this in the core. According to the Composer developers, Composer was never meant to be used on plugin level, only at the project level where each plugin would be its own dependency and Composer could calculate any dependency conflicts run time.

I think two ways to fix this would be:

1. Install WordPress (and its plugins) using Composer like Drupal does https://www.drupal.org/docs/extending-drupal/installing-modules . I think this would be the best way to fix this but it's not really that great if the majority of WordPress installations are on shared hosting and can't run composer. Drupal has a thing named Ludwig https://www.drupal.org/project/ludwig which works from the Drupal admin interface and allows you to manually download and install the required dependencies.

2. Distribute libraries on WordPress.org plugin directory. This used to an option but now libraries are disallowed in the plugin directory https://make.wordpress.org/plugins/2016/03/01/please-do-not-submit-frameworks/ . If libraries would be distributed on WordPress.org, you could at least check if the library is the correct version in your plugin before using it. There's also the issue of ownership, who will upload the libraries and keep them up to date?

Without any solution to this plugin developers who want to use libraries will have to use workarounds or simply hope that users do not install libraries with different versions. Please note that this issue is not unique to Composer, you can run into the same problem even if two plugins require the library manually.

Some more info about this issue is in this blog post: https://deliciousbrains.com/php-scoper-namespace-composer-depencies/"	joppuyo
	32238	Enhancement has_filter function		Plugins	4.2.1	normal	normal		enhancement	new	has-patch	2015-05-02T17:03:48Z	2019-06-04T20:49:56Z	"I am optimize has_filter wordpress function. It is simple logic.

Code here: [http://pastebin.com/mW0tBstE]

I cannot create a path file. So I create this ticket. Hope someone will accepted that."	tuanphp
	19388	plugin_basename returns full directory in URL		Plugins	3.3	normal	normal		enhancement	new	needs-unit-tests	2011-11-29T00:36:36Z	2019-06-04T20:42:35Z	"If a trailing slash is specified on either then WP_PLUGIN_DIR or WPMU_PLUGIN_DIR settings, the plugin_basename function returns the whole directory path in the URL.

The documentation does state not to use a trailing slash, however I think this function could be improved.

By removing the explicit / in the preg_replace the correct plugin name will be returned even if a trailing slash is specified on the WP_PLUGIN_DIR or WPMU_PLUGIN_DIR constants.

This should not affect the relative path as the trim before the return takes care of stripping off the first slash if it exists (effectively duplicating the remove in this case).

While this is a very trivial change that won't affect most people (who read the docs properly) it was quite annoying to track down.

Please see the attached diff."	damianzaremba
	36686	plugin_row_meta hook for specific plugin		Plugins	4.5.1	normal	normal		enhancement	new		2016-04-27T13:39:15Z	2019-06-04T20:57:51Z	"Hello WordPressers, 

It is my first post here. So please forgive me if something is wrong.

What I see here https://core.trac.wordpress.org/browser/tags/4.5.1/src/wp-admin/includes/class-wp-plugins-list-table.php#L773 plugin_row_meta is a filter hook available but It is not available for specific plugin like we have ""plugin_action_links_{$plugin_file}"" available here https://core.trac.wordpress.org/browser/tags/4.5.1/src/wp-admin/includes/class-wp-plugins-list-table.php#L682 


Shouldn't there be a ""plugin_row_meta_{$plugin_file}"" filter to call on specific plugins ??
"	hiddenpearls
	30172	Request: Filter for get_post_format		Post Formats	4.0	normal	normal		enhancement	new		2014-10-29T15:43:33Z	2019-06-04T20:47:52Z	"Would it make sense to create a filter in get_post_format()? Then instead of having to write this a few times (in each template)

{{{
$format = get_post_format();
if ( false === $format ) {
	$format = 'standard';
}
}}}

there could be just one filter in the functions file that does return 'standard' when false is returned:

{{{
// Apply filter
add_filter('post_format', 'my_filter');

function my_filter($format) {
        if ( false === $format ) {
	       $format = 'standard';
        }
        return $format;
}
}}}

Or something along those lines.....
Just an idea,
Sascha"	landwire
	18701	"""hierarchical"" argument for get_pages() does nothing"	DrewAPicture*	Posts, Post Types	3.0	normal	normal		defect (bug)	accepted		2011-09-19T06:48:32Z	2019-06-04T20:42:19Z	"The `hierarchical` argument for `get_pages()` is never actually used. It is in an `if` statement, but one that requires `child_of` to also be set:

{{{
if ( $child_of || $hierarchical )
	$pages = & get_page_children($child_of, $pages);
}}}

Props Vynce Montgomery for pointing this out to me."	Viper007Bond
	35550	AllPosts page: Tags field does not accept characters <>		Posts, Post Types	4.4.1	normal	minor		defect (bug)	new		2016-01-20T21:43:49Z	2019-06-04T20:54:37Z	" STEPS TO REPRODUCE
 1. Log in as administrator and create new post ""Test post"".
 2. Go to AllPosts page. Check ""Test post"" and perform ""Edit"" bulk action.
 3. Type into ""Tags"" 2 characters ""<>"". Click ""Update""
 EXPECTED RESULT: Characters <> are added as a tag.
 EXPECTED RESULT: Characters <> are not added as a tag."	antonrinas
	34808	Deprecate get_media_embedded_in_content() and get_tag_regex()		Posts, Post Types		normal	normal		defect (bug)	new	has-patch	2015-11-28T05:08:54Z	2019-06-04T20:53:17Z	"Both are ""dead"" functions not used anywhere in core. Seem like left overs from the post types code in 3.6.

`get_media_embedded_in_content()` is buggy: cannot handle nested `<object>` tags (which were popular few years ago for embedding flash) and doesn't match short ended tags without a slash at the end.

`get_tag_regex()` is also buggy, see #26674. It was used in `get_media_embedded_in_content()` before [31574]. Not used anywhere since then."	azaozz
	28288	New Post overwriting a previously published post		Posts, Post Types	2.5	normal	normal		defect (bug)	new	has-patch	2014-05-17T01:03:45Z	2026-08-18T08:43:07Z	"This was seen on wordpress.com, a user had multiple draft windows open. At one point when saving one draft, it wrote over another previously published post.

I believe that it was caused by a race condition that has to do with the environment being hosted on multiple servers.

'''To reproduce:'''
1. Open in quick succession multiple draft windows.
2. Check in developer tools for post_id duplicate.

I believe that a possible solution would be to enhance post-locking to include if a post is open in duplicate windows by the same user."	jackreichert
	18395	Non-URL GUIDs are stripped on post update		Posts, Post Types	3.2.1	normal	normal		defect (bug)	new	needs-refresh	2011-08-13T18:31:48Z	2019-06-04T20:42:09Z	"The post guid is run through several filters before the post is saved. the esc_url_raw() call will end up setting a GUID to an empty string if the GUID does not begin with a known/accepted protocol.

If a plugin/etc. wants to use the GUID column to store an external ID for an item brought in from another system (say a Flickr photo ID), then updating a post that has the Flickr ID as its GUID through the WP admin will end up setting the GUID for that post to ''.

This would need to be changed if the move was made to UUIDs for GUID values as well. Related: #6492.

A very basic patch for this specific issue is attached, but a larger discussion around how this should work is likely needed. Related: #18315"	alexkingorg
	21234	Recursive directory creation & get_calendar() for custom post types		Posts, Post Types	3.4.1	normal	normal		defect (bug)	new		2012-07-12T12:31:28Z	2019-06-04T20:43:17Z	"Hello!
I made two patches, and sent the pull request on githab.

https://github.com/WordPress/WordPress/pull/12
https://github.com/WordPress/WordPress/pull/14

And I want to join to contributers team. How can I do it? 
Irc chanel is Terminated :("	avaddon
	27002	Scheduling not working when editing posts		Posts, Post Types	3.8.1	normal	normal		defect (bug)	new		2014-02-04T00:56:19Z	2019-06-04T20:45:34Z	"I didn't see this the list but I have had this happen to me more than once. I have posts scheduled 2-3 weeks in advance to work on them and set for Feb 22 at 14:00 posting time. While working on the post the button that should be ""schedule"" says ""publish"" If you click the publish butting it will publish it immediately rather then que it for posting via scheduling. I have to go in change the time or date, click the ok button below scheduling and then change it back. 

This has happened more than once for me. If the post does publish it is still listed as the original date rather than the date it publishes. I have to double check them but  I don't always catch them. This has happened on both firefox and Safari. Today is February 3 but the post says it was posted on February 22, 2014. It is now set to private
"	timgoleman
	15993	Sort arrows improperly wrap on narrow columns		Posts, Post Types	3.1	normal	normal		defect (bug)	reopened		2010-12-27T06:14:21Z	2019-06-04T20:41:43Z	Specifically, I noticed the 'Posts' column on a taxonomy screen (or 'Links' for link categories, etc).	nacin
	32057	fix: allow plugins to access click event in edit inline post		Posts, Post Types	2.7	normal	normal		defect (bug)	new		2015-04-22T12:03:58Z	2019-06-04T20:49:45Z	"I wanted to add custom functionality to inline post edit, but there is code  that prevents me from doing this.



---trunk---

in /wp-admin/js/inline-edit-post.js, line 53


{{{
51:	$('#the-list').on('click', 'a.editinline', function(){
52:		inlineEditPost.edit(this);
53:		return false;
54:	});
}}}


fix:


{{{
51:	$('#the-list').on('click', 'a.editinline', function(e){
52:		inlineEditPost.edit(this);
53:		e.preventDefault();
54:	});
}}}


but first time appered in 2.7


{{{
82:	addEvents : function(r) {
83:		r.each(function() {
84:			var row = $(this);
85:			$('a.editinline', row).click(function() { inlineEditPost.edit(this); return false; });
86:		});
87:	},
}}}
"	wasikuss
	36313	get_pages() child_of argument does not work in combination with meta_key/value query		Posts, Post Types	4.4.2	normal	normal		defect (bug)	new		2016-03-23T21:38:48Z	2023-07-06T12:21:02Z	"If you pass both `child_of` and `meta_key/value` parameters to the `get_pages()` function, there are problems.  To reproduce:

Create a page structure like so:

Grandparent (id=1)
-Parent (id=2)
--Child (id=3)

Add a custom field to the Child page.  Say `meta_key='bark'` and `meta_val='woof'`.

Call 

{{{
get_pages(array(
    'child_of'=>1, 
    'meta_key'=>'bark', 
    'meta_value'=>'woof'
));
}}}

And it will return an empty array.  The reason this is happening is because in the `get_pages` function (`wp-includes/post.php`) on line 4562, the `$pages` array only contains Child because it's been filtered by the `meta_key`, but `get_page_children()`, which is being used to determine which pages are `child_of`, requires the complete hierarchy of connected pages to determine which are children, and so it returns nothing.

I hope this is helpful.  Obviously there are workarounds using loops and get_posts() and people are always suggesting you don't use get_pages() but anyhow, there it is, a bug report.  :)"	MarcGuay
	25113	non-latin CPT rewrite slugs fail `wp_safe_redirect`		Posts, Post Types	3.6	normal	normal		defect (bug)	new		2013-08-21T20:37:36Z	2019-06-04T20:44:40Z	"If you localize your custom post type rewrite slugs in non-latin language and pass it to `wp_safe_redirect` it will strip all non-latin characters and attempt to redirect to stripped location.

This can be easely reproduced if your custom post type supports comments and you submit a comment from post type single page as `wp_safe_redirect` is called after comment submission."	entr
	34253	wp_insert_post() can assign a random, unauthorized user_id's		Posts, Post Types	4.3.1	normal	normal		defect (bug)	new		2015-10-11T07:48:09Z	2019-06-04T20:52:13Z	"Hello,

When using wp_insert_post, the `get_current_user_id()` function is being called when post_author is left empty.

When updating a plugin, and this function appears, you would assume the admin (whoever updated the plugin) would ""insert the post"".

But this is not always the case, for instance when you update the plugin through FTP, or use auto-update, or static Opcode caching, etc.

However, the admin area is accessible to many on a multisite environment with open registrations. But is also accessible by subscribers, if permitted. The user who accesses the admin area first after updating the code be assigned as post author.

An example code below will show you the defect in action, on a Multisite environment:

{{{
// Update 'plugin' here, log out and flush opcode cache.
// This 'plugin' now executes the following code in admin_init:

// Some options.
$the_post_id = false;
$main_blog = 0;
$post_title = 'About WordPress';
$post_content = 'WordPress is great!';
$post_id_option = 'the_inserted_post_id';

// Switch to main blog
switch_to_blog( $main_blog );

// Prevent code from running twice with option
$page = get_post( get_option( $post_id_option ) );

if ( !$page ) {
// Page doesn't exist yet
	
	// Insert post
	$the_post_id = wp_insert_post( array(
		'post_title'     => $post_title,
		'post_status'    => 'publish',
		'post_type'      => 'page',
		'post_content'   => $post_content
	) );

}

if ( $the_post_id ) {
	// Prevent code from running twice by updating option.
	update_option( $post_id_option, $the_post_id );
}

// Back to current blog.
restore_current_blog();
}}}

A resolution would be to check if the current user has rights to post content. Either by default or parameter. 
Even more so, assign the site admin if the `current_user_can()` check fails.

Thanks!"	Cybr
	16843	wp_unique_post_slug() doesn't check pagination base when CPT has archive		Posts, Post Types	3.1	normal	minor		defect (bug)	new	needs-unit-tests	2011-03-13T06:22:22Z	2019-06-04T20:41:56Z	Title says it all.	scribu
	34546	Change in function `get_post_field`		Posts, Post Types		normal	normal		enhancement	new		2015-11-01T18:35:51Z	2019-06-04T20:53:00Z	"I suggest change for function get_post_field();

1. Second param should be optional;
2. Add default value in param of function.

Additional I have question. Why in function get_the_ID() or get_post_title(); don't call  function get_post_field ?

In many functions in first line is $post = get_post( $post );

If we insert my patch then we can use:


{{{
function get_the_ID() {
	return get_post_field('ID', null, 'display', false);
}
}}}


OR


{{{
function get_the_guid( $id = 0 ) {
	return apply_filters( 'get_the_guid', get_post_field( 'guid', $id ) );
}
}}}

"	sebastian.pisula
	20748	Include CPT Posts in Author Count & Archive Page		Posts, Post Types		normal	normal		enhancement	new		2012-05-25T17:59:48Z	2019-06-04T20:43:09Z	"For whatever reason, the default behavior is to only count the number of 'post' that an author has published.

With the advent of custom post types, they should be included as well if the CPT has the 'author' capability.

Currently, the author archive can include CPTs if you manually alter the query - this should be enabled by default if authorship is allowed."	iridox
	36579	global $wp_rewrite not set when create_initial_post_types() first run		Posts, Post Types	4.4	normal	normal		enhancement	new		2016-04-18T17:59:18Z	2019-06-04T20:57:05Z	"The global $wp_rewrite is set in wp-settings.php, after create_initial_post_types().

If you want to hook into the 'register_post_type_args' filter, to set `$args->rewrite` then you currently have to jump through hoops to avoid an 
`Uncaught error Call to a member function add_rewrite_tag() on null`


Could the call to set `$GLOBALS['wp_rewrite']` be moved to before `create_initial_post_types()`? 
Or perhaps some defensive programming in `rewrite.php` to test if $wp_rewrite is set. 
Functions `add_rewrite_tag` and `add_permastruct` are candidates for that change. 







"	bobbingwide
	14561	wp-admin/edit.php tags of post are hard to compare		Posts, Post Types		normal	normal		enhancement	new		2010-08-08T08:25:02Z	2019-06-04T20:41:26Z	"To get an overview about tags used between articles on the post listing in the admin is hard to achieve by the user because they appear not to be ordered.

A solution could be to sort them alphabetically. That done, it's easier for the user to compare the usage of tag distribution accross the listing."	hakre
	30184	Author page and category		Query	3.1	normal	normal		defect (bug)	new	needs-unit-tests	2014-10-29T19:20:41Z	2025-06-22T14:33:57Z	"Got errors like next in debug.log

PHP Notice:  Undefined property: stdClass::$ID in /www/test1/wp-includes/query.php on line 4074
PHP Notice:  Undefined property: stdClass::$nickname in /www/test1/wp-includes/query.php on line 4076
PHP Notice:  Undefined property: stdClass::$user_nicename in /www/test1/wp-includes/query.php on line 4078

In  wp-includes/query.php we have the method
{{{
public function is_author( $author = '' ) {
        if ( !$this->is_author )
            return false;

        if ( empty($author) )
            return true;

        $author_obj = $this->get_queried_object();

        $author = (array) $author;

        if ( in_array( $author_obj->ID, $author ) )
            return true;
        elseif ( in_array( $author_obj->nickname, $author ) )
            return true;
        elseif ( in_array( $author_obj->user_nicename, $author ) )
            return true;

        return false;
    }

}}}

But if we query a author page with category param queried_object actually will be the category term object, so next patch prevent such problems
{{{
public function is_author( $author = '' ) {
        if ( !$this->is_author )
            return false;

        if ( empty($author) )
            return true;

        $author_obj = $this->get_queried_object();
        
        if ( ! is_a( $author_obj, 'WP_User' ) )
            return false;

        $author = (array) $author;

        if ( in_array( $author_obj->ID, $author ) )
            return true;
        elseif ( in_array( $author_obj->nickname, $author ) )
            return true;
        elseif ( in_array( $author_obj->user_nicename, $author ) )
            return true;

        return false;
    }

}}}

        

"	dimitrov.adrian
	35758	Reading Settings fallback option when none is selected at Front page displays		Query	4.4.1	normal	normal		defect (bug)	new		2016-02-05T20:26:25Z	2019-06-04T20:54:56Z	"Hi,

I found a bug that makes the home page think it's a page. (I didn't look at the WP_Query variables.)

Here are the steps to replicate the issue:

1. Go to /wp-admin/options-reading.php
2. Delete the selected option at ""Front page displays"" through Developer Tools/Web Inspector.
3. Save settings.
4. Now no setting is selected.

The home page is a Posts Page but WP_Query doesn't recognize it as one, nor as a front page at all.

This causes all kinds of issues when plugins/themes rely on is_front_page().

Thanks!"	Cybr
	66145	Regression in WP 7.1.1: WooCommerce product archives do not render ul.products container		Query	7.1.1	normal	major		defect (bug)	new		2026-09-19T15:25:24Z	2026-09-20T11:07:32Z	"== Summary ==
After updating WordPress from 7.1 to 7.1.1, WooCommerce product category archives stop rendering the standard <ul class=""products""> container. Pagination counts remain correct (e.g. ""Showing 1-8 of 25 results""), but no product grid is output in the HTML. Confirmed on desktop and mobile.

== Environment ==
- WordPress: 7.1.1 (broken) vs 7.1 (working)
- WooCommerce: 11.1.1
- PHP: 8.4.24
- MySQL: MariaDB 10.11.18
- Theme: Fashion (Divi child theme, Destaca Imagen)
- Host: IONOS managed WordPress

== Steps to reproduce ==
1. Set up a WooCommerce store on WP 7.1.1 with any theme that renders product archives via WooCommerce's default loop.
2. Navigate to any product category archive (e.g. /categoria-producto/example/).
3. Inspect the DOM with DevTools.
4. Search for ""ul.products"" in the Elements panel.

== Expected ==
The archive renders a <ul class=""products""> containing <li class=""product""> entries, one per product in the current pagination page.

== Actual ==
No <ul class=""products""> element exists in the DOM. DevTools search returns 0 results. The page renders header, breadcrumbs, page title, and footer, but the product grid container is completely absent.

== Additional evidence ==
A staging site restored from a backup taken on WP 7.1 (with the same WooCommerce, same theme, same plugins, same database) shows the product grid working correctly. The only difference between the two environments is the WordPress core version (7.1 vs 7.1.1).

- Live (WP 7.1.1): grid broken.
- Staging (WP 7.1): grid works.

== Impact ==
This is affecting a live e-commerce store. It appears to be a widespread regression affecting any WooCommerce store updated to WP 7.1.1, regardless of theme or plugin combination. Several users have reported similar issues in the WordPress.org support forums.

== Request ==
Please prioritise a patch for WP 7.1.2. The regression likely lies in how the core handles archive WP_Query objects or in the rendering pipeline introduced/changed in 7.1.1.

Happy to provide access to a staging environment with both versions for debugging purposes."	xurxobertola
	34934	Suppress preg_match() and urldecode() errors in WP::parse_request().		Query	4.4	normal	normal		defect (bug)	new	reporter-feedback	2015-12-09T14:38:01Z	2019-06-04T20:53:31Z	"Error en la fila class-wp.php

207 - 208

Aqui lo arregle asi

{{{#!php
if ( @preg_match(""#^$match#"", $request_match, $matches) || @preg_match(""#^$match#"", @urldecode($request_match), $matches) ) {
}}}
"	entreosos
	35131	Unexpected 404: pending post hides published post with matching slug		Query	4.3.1	normal	normal		defect (bug)	new		2015-12-17T08:55:51Z	2019-06-04T20:53:40Z	"While attempting to recreate #35012 and #35031 I also noted the anomaly previously reported in #22902 where an authorized user could see all the posts displayed as if they were a single page. 

Investigating this led me to determining that the existence of a new ""pending"" post with the same slug as an existing post prevents the user from visiting the existing post using its permalink. 

Example: 
post: 31766, status: pending, title: Cycle 1, slug: cycle-1 date: 2015-12-16 11:18:26
Content: You might be able to see this if you're logged in.

post: 31764, status: publish, title: Cycle 1, slug: cycle-1 date: 2015-12-16 11:17:17
Content: You should be able to see this.


Steps:
1. Create posts as above
2. Log out or otherwise visit the site as a visitor
3. View the blog page or the archive
4. Note that you see the published post, not the pending post
5. Click on the published post's permalink
6. You'll get a 404.

=== Expected result ===
Displays the published post.

=== Actual result ===
Displays a 404 page. 

=== Explanation ===
- The query in WP_query returns two posts: 31766:pending and 31764:publish.
- Even though there are two posts in the result set, `is_single` is true.
- The logic to ""Check post status to determine if post should be displayed."" kicks in and the post array is emptied. 
- This eventually leads to the 404.

=== My Conclusion ===
There are two problems leading to this one
1. The pending post should not have been given the same slug as the published post.
2. `is_single` should not have been set to true.

=== Proposed solution ===
If it's not possible to deal with the underlying cause then the logic in the ""Check post status..."" should be adjusted to filter out the posts that the user shouldn't have been able to see. If the resulting set contains more than one post then is_single should become false.

I noticed this on 4.4 but have reproduced it on 4.3. 
I imagine the actual bug goes back a long long way.






 

"	bobbingwide
	35820	WP_Query(array( 'p' => 0)) will return posts		Query	4.4.2	normal	normal		defect (bug)	new		2016-02-12T21:28:16Z	2019-06-04T20:55:04Z	"Long to short, I was presuming that if the $args were such that no rows exist then WP_Query would return nothing. 

Not so. 

If by chance, 'p' => 0, you do get results. 

Perhaps the 0 is interpreted as false? Even so, an ID == false should return no row, yes? Or one might argue ""well, that query doesn't make sense. it's not really valid."" again, all the more reason to return nothing. 

"	ChiefAlchemist
	27507	get_posts() not honoring post_status criteria		Query	3.8.1	normal	normal		defect (bug)	new		2014-03-25T05:49:53Z	2019-06-04T20:46:17Z	"Toss in the following in a mu-plugin file to reproduce:

{{{
$posts = get_posts();
var_dump($posts);
}}}

You'll get auto-drafts in the returned result set, instead of the expected published posts only (i.e. the default as set by `get_posts()`).

I've traced the problem to this loop that calls `get_post_stati()` in the `WP_Query#get_posts()` method:

{{{
foreach ( get_post_stati() as $status ) {
	if ( in_array( $status, $q_status ) ) {
		if ( 'private' == $status )
			$p_status[] = ""$wpdb->posts.post_status = '$status'"";
		else
			$r_status[] = ""$wpdb->posts.post_status = '$status'"";
	}
}
}}}

`get_post_stati()` latter relies on a global that isn't set yet. I'm suspicious that we should be calling it here to begin with. Assuming we should, I definitely don't think WP should silently return an empty array. It should cough a `_doing_it_wrong()` notice, and quite possibly even a warning.

That being said: why aren't the built-in post statuses registered by the time plugins get loaded? Can't we register them earlier? (And: does the same apply to custom post types?)"	Denis-de-Bernardy
	48860	get_queried_object return false when executed in parse_query hook		Query	5.3	normal	normal		defect (bug)	reopened		2019-12-03T08:47:53Z	2019-12-03T22:42:20Z	"When this function is executed in parse_query hook (i.e. woocommerce-perfect-seo-url) on author page ( /author/XXX/ ) it results with this notice.

{{{
#13 E_NOTICE: Trying to get property 'ID' of non-object
}}}


It's because 'author_name' is not converted into 'author' field in parse_query.

It's only used to mark page as ""is_author"".

{{{
			if ( '' != $qv['author_name'] ) {
				$this->is_author = true;
			}
}}}


And get_queried_object relies on 'author' variable.

{{{
		} elseif ( $this->is_author ) {
			$this->queried_object_id = (int) $this->get( 'author' );
			$this->queried_object    = get_userdata( $this->queried_object_id );
		}
}}}


"	fliespl
	31957	query fails, when post is queried under specific name		Query	4.1.1	normal	normal		defect (bug)	new		2015-04-13T07:28:11Z	2019-06-04T20:49:30Z	"i.e., i have custom post type, named ""CARS"",
and when i have standard category, named ""CARS""..

when i publish '''standard''' post  under ""cars"" category:
mysite.com/cars/something-name...

worpdress thinks, that it is under custom-post types, and 404 page is displayed..

to fix that, i have made this function:

{{{

//example URL:    yoursite.com/cars/subcat/TORNADOO
add_action( 'pre_get_posts', 'myf' ); function myf( $query ) {
    if ( $query->is_main_query() ) {			
	//when the PERMALINK was not found, then 404 maybe triggered.. But wait! maybe it is a standard post, under the standard category(which's name is i.e. ""cars"")
	if (!url_to_postid(currentURL__MLSS)){
		$link_array=explode('/','/cars/subcat/TORNADOO');
			$k=array_filter($link_array);	//remove empty values
			$k=array_values($k);			//reset hierarchy
			$all_nmb = count($k);
		
		//if post exists with the found slug(""TORNADOO""), lets check, if their parents are categories
		$post=get_page_by_path(basename('TORNADOO'), OBJECT, 'post');
		if ($post){
			for($i=0; $i<$all_nmb-1; $i++){
				$cat = get_term_by('slug', $k[$i], 'category'); 
				if(!(in_category($cat->term_id,$post->ID) || post_is_in_descendant_category(array($cat->term_id),$post->ID))){
					$failed=true; break;
				}
			}
			if (!$failed){
				//new query
				$query->init();
				$query->parse_query(   array('post_type' =>'post')  ) ;	
				//others
				$query->is_home = false;
				$query->is_single = true;
				$query->is_singular = true;
				$query->is_page = false;
				$query->queried_object_id = $post->ID; 
				$query->set( 'page_id', $post->ID );
			}
		}
	}
	
	//if page exists with the that link, then query will be made correctly..
	//$page=get_page_by_path(...., ..., 'page');
}









if ( ! function_exists( 'post_is_in_descendant_category' ) ) { function post_is_in_descendant_category( $cats, $_post = null ) {
		foreach ( (array) $cats as $cat ) {	$descendants = get_term_children( (int) $cat, 'category' );
			if ( $descendants && in_category( $descendants, $_post ) ) {return true;}				
		}return false;
	}
}	
}}}
"	selnomeria
	35398	Allow post types to override `posts_per_archive_page`		Query		normal	normal		enhancement	new		2016-01-11T10:09:48Z	2019-06-04T20:54:10Z	fixed	sebastian.pisula
	25180	Make it possible to select only posts with comment_count > 0		Query	3.6	normal	normal		enhancement	new		2013-08-29T17:03:00Z	2019-06-04T20:44:44Z	May need this when #11398 goes in.	wonderboymusic
	36670	Move CAST to right-hand side of comparison in meta query		Query	3.1	normal	normal		enhancement	new		2016-04-26T04:40:41Z	2019-06-04T20:57:40Z	"The SQL clause created by a meta query [https://github.com/WordPress/WordPress/blob/4.5/wp-includes/class-wp-meta-query.php#L634 CASTs the column value] `postmeta.meta_value` and compares it to the value provided in the meta query, a la `CAST(postmeta.meta_value AS CHAR) = 'some-value'`.

Casting a column value instead of a constant means that MySQL will ignore an index for that column if one exists. Although core does not define an index for the `meta_value` column, a user could create one for perf reasons.

Switching the side of the CAST would result in the same two types, just on different sides

`postmeta.meta_value = CAST('some-value' AS CHAR)`

That means [http://dev.mysql.com/doc/refman/5.7/en/type-conversion.html MySQL's type conversion] will work the same as it did previously.

#36649 would need to be completed before this.

Related: #27272, #36625"	ericlewis
	9978	Sticky Posts are not ordered correctly after selection		Query	2.8	normal	normal		enhancement	assigned	has-patch	2009-05-29T23:14:06Z	2019-06-04T20:40:44Z	"In WP_Query, sticky posts are added/moved to the top of the posts array after everything else is selected and ordered according to the query parameters.

Sticky posts are loaded as a list of post_IDs from the database, according to the order they were marked as sticky.

Sticky posts that were not originally part of the returned posts are queried and added into the collection of sticky posts separately.

None of the handling of sticky posts, or the handling of the entire post array after stickies are added, is date ordered by date/title/whatever was requested.

Stickies need to be loaded/extracted into a separate array, ordered (independently) according to the original query, then added to the top of the post array."	beaulebens
	36309	Timezone issue in WP_Date_Query->build_mysql_datetime		Query	4.4.2	normal	normal		enhancement	new		2016-03-23T15:57:00Z	2019-06-04T20:56:04Z	"Currently build_mysql_datetime function in WP_Date_Query using gmdate to generate SQL datetime.

{{{#!php
<?php
if ( ! is_array( $datetime ) ) {
	// @todo Timezone issues here possibly
	return gmdate( 'Y-m-d H:i:s', strtotime( $datetime, $now ) );
}
}}}

That leads to unexpected result in my use case.

My timezone is GMT -7.

When I want to get posts before the current post (e.g. post_date 2015-12-30 14:00:02), the query get posts before 2015-12-30 07:00:02.

That not what I want.

I'm trying to use GMT with get_post_time function, but the query get posts before 00:00:02. Farther from what I want.

I think this function not need to change date timezone with gmdate. Just use datetime as is with date function."	fad.lee
	31083	WP_date_Query does not validate string values of 'before' or 'after'		Query	4.1	normal	normal		enhancement	new	has-patch	2015-01-21T08:18:57Z	2026-10-26T19:27:31Z	"Currently the ''before/after'' values in ''WP_Date_Query'' can be an array or string, which will be parsed by strtotime:


{{{
if ( ! is_array( $datetime ) ) {
	// @todo Timezone issues here possibly
	return gmdate( 'Y-m-d H:i:s', strtotime( $datetime, $now ) );
}
}}}

But we don't validate this string in ''validate_date_values'':


{{{
if ( array_key_exists( 'before', $date_query ) && is_array( $date_query['before'] ) ){
	$valid = $this->validate_date_values( $date_query['before'] );
}
}}}

----------------------

Example:


{{{
$query_args = array(
	array( 'before' => 'i am a valid date string!?' )
);
$date_query = new \WP_Date_Query( $query_args );
echo $date_query->get_sql;
//  AND ( ( post_date < '1970-01-01 00:00:00' ) )
}}}"	ChriCo
	15068	merging query objects/arrays		Query	3.0	normal	normal		enhancement	new		2010-10-08T04:27:58Z	2019-06-04T20:41:30Z	"As multiple post type installations proliferate, I assume more and more people will come across a situation (like me) in which they need to display two (or more) sets of content units, say posts, and post-type ""audio"" in one stream - say on the main blog page. As long as the only condition is the post type itself, that will work fine. However, if those two sets need to be selected using different conditional criteria, say a category in one case, and a custom field in the other, then the current query_posts options will not be sufficient.

While it is possible to retrieve multiple arrays via get_posts and merge them, then sort them using cusomt php, such a solution will break the paged navigation.

If such situations will - as I assume - become more likely as more people use multiple post types and additional variables to specify content, I think it would be useful to be able to combine multiple queries into a meta query that will sort the combined object according to a common sorting variable, say date, and thus preserve the paged navigation.
"	youngmicroserf
	16910	Lazy evaluation for WP_Query		Query		normal	normal		feature request	new		2011-03-21T01:04:39Z	2019-06-04T20:41:58Z	"Suppose we have a 'city' post type, which is associated with a 'country' post type, such that each 'city' post has a 'country' parent post. 

Then the 'country' CPT has a 'language' taxonomy associated to it.

Now, let's say we want to find all the cities which speak a certain language.

Let's assume we already have the `'post_parent__in'` query var: #13927

We could construct a two-step query, like this:

1) Get all the countries with that language:

{{{
$country_ids = get_posts( array(
  'fields' => 'ids',
  'post_type' => 'country',
  'language' => 'french',
  'nopaging' => true
) );
}}}

2) Get all the cities belonging to that country:

{{{
$cities = get_posts( array(
  'post_type' => 'city',
  'post_parent__in' => $country_ids
) );
}}}

No custom SQL queries; fantastic!

But, if you have many many countries (not a good example, I know), you waste a lot of time passing the IDs back and forth from PHP to SQL.

Final query:

{{{
SELECT *
FROM wp_posts
WHERE post_type = 'city'
AND post_parent IN (1, 2, 3, ...)
}}}

It would be a lot more scalable to put the first query into the second, directly, as a subquery.

So, it would now look like this:

1) Get all the countries with that language:

{{{
$country_ids = get_posts( array(
  'fields' => 'ids',
  'post_type' => 'country',
  'language' => 'french',
  'nopaging' => true,

  'lazy' => true'
) );
}}}

2) Get all the cities belonging to that country:

{{{
$cities = get_posts( array(
  'post_type' => 'city',
  'post_parent__in' => $country_ids
) );
}}}

$country_ids would now be a WP_Lazy_Query object, which would just contain the subquery SQL. It would be appended to the second query, when needed:

Final query:

{{{
SELECT *
FROM wp_posts
WHERE post_type = 'city'
AND post_parent IN (
  SELECT ID
  FROM wp_posts
  WHERE post_type = 'country'
  INNER JOIN wp_terms ...
)
}}}"	scribu
	15761	Bulk editing on posts without Javascript enabled results in the post being set to draft	garyc40	Quick/Bulk Edit	2.9	normal	normal		defect (bug)	assigned	needs-refresh	2010-12-10T09:03:35Z	2019-06-04T21:06:13Z	"Currently, Bulk editing is available without JavaScript being enabled.

The result of attempting to edit a post, is a redirect back to the posts page with the post being marked as a draft. No UI is offered for bulk editing.

This behaviour exists in trunk, 3.0, and 2.9 from my testing (havn't tested earlier versions).

The Bulk editing screen appears to work without Javascript for modification submittal, so it's possible that a non-js version would be possible."	dd32
	37064	No checkbox in Posts list table for bulk action		Quick/Bulk Edit		normal	normal		defect (bug)	new		2016-06-09T15:25:20Z	2025-08-30T18:47:53Z	In posts list table it checks that user has edit_post capability or not and output checkbox depend on that. WP_Posts_List_Table also output table for any CPT. But user may not have edit_post capability but have delete_post capability or may be any other capability which need bulk select. In my case i created a CPT and which i restricted users from editing published post using 'edit_published_posts' but i did not restrict users from delete published post. But when i saw post table for that CPT i saw that no checkbox after post being published. But have Trash link individually when i mouse over that post.	shamim51
	33172	Notice in get_bulk_actions() in certain conditions		Quick/Bulk Edit		normal	normal		defect (bug)	new		2015-07-29T12:01:16Z	2019-06-04T21:16:11Z	"Hi there,

When a custom post type declaration is made with custom `capabilities`, the `delete_posts` cap can be missing.

If it's the case, the `get_bulk_actions()` function create a PHP Notice saying the following:

`Notice: Undefined property: stdClass::$delete_posts in /wordpress/wp-admin/includes/class-wp-posts-list-table.php on line 251`

To prevent and avoid this notice, I simply use `isset()` to check the definition. (see patch in attachment)

Thank you."	CreativeJuiz
	26524	Quick edit form looks strange for localized version		Quick/Bulk Edit	3.8	normal	normal		defect (bug)	new		2013-12-10T18:32:50Z	2024-02-25T19:47:57Z	Please see attached screesnhot.	pavelevap
	32952	Select elements don't have the same size as input elements		Quick/Bulk Edit	3.8	normal	normal		defect (bug)	new	close	2015-07-09T20:22:56Z	2023-05-14T19:48:31Z	"[[Image(https://cldup.com/Daws15AjdJ.png)]]
- `select` elements should have the same font size as other `input` elements"	sunnyratilal
	31615	UI bug using Quick Edit		Quick/Bulk Edit	4.1.1	normal	normal		defect (bug)	new	dev-feedback	2015-03-12T20:13:47Z	2019-06-04T21:14:25Z	"After changing the parent attribute for a page using Quick Edit, the page title is prepended with the child hyphen but the table structure does not change. Refreshing the page fixes the issue.

Using latest 4.1.1 with no plugins installed and default theme.

'''Steps to replicate:'''
1. Change the parent of a page or post using quick edit

'''Browser'''
Chrome: 41.0.2272.76 (64-bit) OS X Yosemite 10.10.2.
"	justingreerbbi
	37296	Bulk edit category labels are slightly misleading		Quick/Bulk Edit		normal	normal		enhancement	new	has-patch	2016-07-06T19:51:46Z	2019-06-04T21:24:45Z	"Related to this ticket #35548, the bulk edit taxonomy tool labels can be a little misleading, as the feature does not allow for bulk editing, but rather bulk assignment.

This patch simply prepends ""Assign"" to the labels to make it more clear.."	wpnook
	29320	Bulk edit on custom post types without title support		Quick/Bulk Edit	3.9.2	normal	normal		enhancement	reopened		2014-08-22T14:48:13Z	2019-07-24T14:35:02Z	"I have a custom content type that does not support titles. When I want to use bulk edit on this custom post type on edit.php, the area where the post titles should show up stays empty (instead of showing something like ""auto draft"").

This is due to includes/class-wp-posts-list-table.php:925 where it is checked whether the post type supports titles.
However I have a custom filter for the_title, which generates post titles dependent on custom fields. In order to let them show up in the bulk edit form, one would have to change for one class-wp-posts-list-table.php to allow post types without title support and one would additionally have to change includes/template.php:311 to use get_the_title($post->ID) instead of $post->post_title to insert the correct titles into the hidden fields in the edit.php-table.

Of course I could also store my custom titles in post_title and hide the title field from view in my custom post type, but I think this to be a rather hackish way..."	alexfecke
	20520	Author Page Pagination Broken When Removing /author/ Slug		Rewrite Rules	3.3	normal	normal		defect (bug)	new		2012-04-23T04:16:03Z	2019-06-04T21:07:29Z	"WP 3.3.1 Multisite
Permalink setup: /author/post-name

- If the request is ""domain.com/authorname"" the authors page pagination link is broken.

- If the request is ""domain.com/author/authorname"" the authors page pagination link works fine."	rbaccaro
	31591	Bug in the author permalink .		Rewrite Rules		normal	normal		defect (bug)	new	reporter-feedback	2015-03-11T01:34:04Z	2019-06-04T21:14:24Z	"Hi there :)

1 - register like this http://ahmed.d.pr/19Poz
2 - register a new user like this http://ahmed.d.pr/1eExL
3 - choose permalink >> Post name >> /%postname%/
4 - the link in the browser must be like this author/name/
5 - but in this case will not work and give 404 page 
6 - so in this case i'm must change the permalink for the users to ?author=id and this not a good for the seo and for the users .

Note : the problem if you register the username in arabic .

Thanks ,"	vbegy
	26885	Path Based Multisite Rewrite rule absolute path without trailing slash		Rewrite Rules	3.8	normal	normal		defect (bug)	new		2014-01-20T16:06:31Z	2019-06-04T21:10:12Z	"The .htaccess rewrite rules generator output the absolute path to the files, but there is missing a slash at the begining to use it as absolute.
I've seen the same problem at http://wordpress.stackexchange.com/questions/77818/multisite-configuration-fails-with-css-js-files
The solution is to make it relative, or to add a ""/"" at the beggining of the two rewrite rules.
I think the .htaccess code generated can be fixed for future users."	skalex
	20109	Valid htaccess rule causes 404 after upgrade to 3.3.1		Rewrite Rules	3.3.1	normal	normal		defect (bug)	new		2012-02-24T06:26:42Z	2019-06-04T21:07:25Z	"On 2/18/2012, I upgraded WP from 3.2.1 to 3.3.1. on www.denverhomevalue.com. I later noticed that Google webmaster tools started reporting 404 errors on lots of pages that were fine before. WP was still returning the proper pages and content, not my custom 404 page, so the issue was not readily apparent except in WMT reports. Running http header response checkers confirmed 404 responses, despite good contents being returned. 

Deleting sections of the htaccess file until the problem went away, the issue was isolated to two rules meant to escape following rewrite rules on certain urls:

{{{
RewriteRule ^city(.*) - [L]
RewriteRule ^areas(.*) - [L]
}}}

These were the same family of urls that started returning 404s after 3.3.1 upgrade. These rules were in place since 12/5/2011, with WP 3.2.1 and never caused a problem.

I was able to revert a backup of the site to 3.2.1, on the same exact server environment, and confirm that these same valid htaccess rewrite rules were not a problem in that release."	ronnieg
	36812	WP_Rewrite removes regex groups, should replace with non-capturing		Rewrite Rules	4.5.2	normal	normal		defect (bug)	new		2016-05-11T05:23:43Z	2019-06-04T21:22:59Z	"I have got that plugin which adds a rewrite tag like so:

{{{
add_rewrite_tag('%lang%', '(en|fr)', 'lang=');
}}}

One can then customize the permalinks and add the post's language anywhere in the url.

The problem is that, at one point, the WP_Rewrite class adds rules for attachment and on line 1112 of class-wp-rewrite.php it simply gets rid of all the parenthesis in the regex. 

So, if I configure the permalink to be `/%postname%/lang/%lang%/` the resulting regex for the rewrite rule is:

{{{
[^/]+/lang/en|fr|zh/attachment/([^/]+)/?$
}}}

which is a totally different rule than expected, where `anything/lang/en` is matched as an attachment page when it really shouldn't be.

Instead the regex should be:
{{{
[^/]+/lang/(?:en|fr|zh)/attachment/([^/]+)/?$
}}}

The code on line 1112 of class-wp-rewrite.php should be replaced with:

{{{
$submatchbase = str_replace( '(', '(?:', $match);
}}} 
"	cvedovini
	35983	"Better support for ""singular"" endpoints"		Rewrite Rules		normal	normal		enhancement	new	has-patch	2016-02-28T04:47:11Z	2019-06-04T21:20:37Z	"WP_Rewrite endpoints are currently geared towards endpoints that capture content after it, for example, `/feed/FEED_TYPE/`.

Quite often we instead want to create an endpoint which is instead `/embed/` or `/faq/` we don't need to capture an optional bit of data after it.

Currently endpoints can operate in either mode, if you specify and endpoint of `test-endpoint` then both `/endpoint-name/` and `/endpoint-name/data-passed/` will work.
The problem comes when testing for the existence of that endpoint in the query.
An endpoint which passes data is easy to check `if ( get_query_var('endpoint-name') )`, an endpoint which doesn't - not so easy `global $wp_query; if ( isset( $wp_query->query_var['single-endpoint'] ) )`.

Something that would be easier, and nicer for developers using the rewrite endpoint is to instead match the endpoint name itself:
Currently the rewrite rule would look like this:
{{{
([^/]+)/endpoint-name(/(.*))?/?$   => index.php?name=$1&endpoint-name=$3
}}}

What would be great, is if we can do instead:
{{{
add_endpoint( 'single-endpoint', ... );
([^/]+)/(single-endpoint)/?$  => index.php?name=$1&single-endpoint=$2
}}}
Which if used in conjunction with `add_endpoint()`'s 3rd parameter allowing us to specify a custom query_var:

{{{
add_endpoint( 'endpoint-name', ..., 'special_query' );
add_endpoint( 'another-endpoint-name', ..., 'special_query' );

Rules:
([^/]+)/(endpoint-name)/?$   =>  index.php?name=$1&special_query=$2
([^/]+)/(another-endpoint-name)/?$  => index.php?name=$1&special_query=$2
}}}

this would then allow us to use `if ( get_query_var( 'special_query' ) )` or `if ( get_query_var( 'single-endpoint' ) ) ` in the case of the first example.

Attached is an implementation which upgrades the 3rd parameter (`$query_var`) to an array to support this. It's a super-rough patch, but appears to work. Does anyone else feel that this is worthwhile supporting?"	dd32
	34385	Missing site_url path results in array to string conversion		Rewrite Rules	4.3.1	normal	normal		enhancement	new		2015-10-21T08:55:13Z	2019-06-04T21:17:38Z	"Given WP_Rewrite is used in verbose mode (use_verbose_mode = true), site_url() does not contain any path component and a rule which does not match home_url() is added to WP_Rewrite::$rewrite_rules, WordPress runs into an Array to string conversion within $wp_rewrite->mod_rewrite_rules().

The origin of this issue is in [https://core.trac.wordpress.org/browser/tags/4.3.1/src/wp-includes/rewrite.php#L1902 wp-includes/rewrite.php#L1902] and the Array-to-String-Typecast occurs in [https://core.trac.wordpress.org/browser/tags/4.3.1/src/wp-includes/rewrite.php#L1952 wp-includes/rewrite.php#L1952].

Interestingly, $home_root has a safety net against this special case. When no path is set, it defaults to ""/"" (Introduced in [https://core.trac.wordpress.org/changeset/9516 Changeset 9516]). Unfortunately, this is not the case for $site_root.
"	adormann
	27670	Plugin Information tab - inaccesible without install_plugin capability		Role/Capability	3.8.1	normal	normal		defect (bug)	new	dev-feedback	2014-04-04T14:01:03Z	2019-06-04T21:10:44Z	"Hello,

if I understand it correctly through the '''Plugin information tab''' you can also install/update plugins. But if you permit installing plugins with f.e. with add_cap(""install_plugins"", FALSE) to some user, whole '''Plugin information tab''' is '''unusable''' for him, so you cant view details, install update even if you are allowed to.

I suppose the problem is in wp-admin/plugin-install.php where is

{{{
if ( ! current_user_can('install_plugins') ) 
	wp_die(__('You do not have sufficient permissions to install plugins on this site.'));
}}}

so maybe extending the condition above to something like this

{{{
if (( ! current_user_can('install_plugins') ) && plugin_not_installed($plugin_name))
}}}
 
could help?

Thanks
Jozef Repáň

"	FolioVision
	57751	contributor bypass asking for review		Role/Capability	5.9.3	normal	normal		defect (bug)	reopened	reporter-feedback	2023-02-17T09:05:10Z	2023-02-23T09:50:32Z	"Okay consider two persons, A and B
A has admin rights in wordpress
B has contributor rights in wordpress and don't have the right to publish or edit pages that aren't his pages 
if A publish a page and then sets as the owner of the page B, B can edit the published page but he can't update it, the button update is replaced by the usual ""ask for review"" because the page is published, however if he use the shortcut ""ctrl +s"" he will bypass the review and the published page will be updated without the review of a superior user"	almerion
	31210	Problem with WP core function to get user dropdown		Role/Capability	4.1	normal	normal		enhancement	new		2015-02-02T12:44:00Z	2020-02-14T02:06:22Z	"Why does WP pass the argument 'who' => 'authors' on line 1014 of core file /wp-admin/includes/class-wp-posts-list-table.php. Which then causes WP to check the $dbprefix_user_level meta key in the database for that user, which is as far as I know, is a deprecated method of checking that.

This then stops WP from showing authors with enough caps (but level_0 for some reason) in the 'Author' dropdown on the page quick edit function."	andyx2v
	53638	Duplicate inline JS		Script Loader	5.8	normal	minor		defect (bug)	reopened		2021-07-10T13:14:59Z	2024-06-12T20:28:05Z	"in /wp-includes/class.wp-scripts.php

{{{#!php
public function __construct() {
    $this->init();
    add_action( 'init', array( $this, 'init' ), 0 );
}
}}}

calls the init twice which leads to include the script twice as action

{{{#!php
do_action_ref_array( 'wp_default_scripts', array( &$this ) );
}}}

Which then ends up with

{{{#!php
<script id='lodash-js-after'>
window.lodash = _.noConflict();
window.lodash = _.noConflict();
</script>
}}}

on frontend.

This affects all scripts that use add inline script, basically bloating the frontend.


"	malthert
	35963	Only remove item from WP_Dependencies::to_do if it was successfully processed		Script Loader		normal	normal		defect (bug)	new	needs-unit-tests	2016-02-26T12:37:32Z	2019-06-04T21:20:31Z	"If WP_Dependencies::do_item returns false, the item is removed from being processed again. Due to this, if an item gets switched to the footer, it is never actually outputted. A common scenario is depending on jquery which depends on jquery-core and jquery-migrate. jquery is processed right, but jquery-core and jquery-migrate are moved to the bottom but still removed from the list.

The following example demonstrates:

{{{#!php
<?php
add_action('wp_print_scripts', function () {
    if (!is_admin()) {
        $jquery = wp_scripts()->registered['jquery'];
        wp_dequeue_script('jquery');
        wp_deregister_script('jquery');
        wp_register_script('jquery', $jquery->src, $jquery->deps, $jquery->ver, true);
    }
}, 0);
}}}

Attached is a very simple patch to resolve this"	pcfreak30
	25666	Pass perpetrating $handle to enqueue_script's _doing_it_wrong() call		Script Loader		normal	normal		enhancement	new	needs-refresh	2013-10-22T21:15:03Z	2019-06-04T21:09:11Z	So the debug message for enqueueing resources at the proper time is helpful, but finding out which one of a site's plugins or theme can be a tedious task.  I suggest we pass the $handle that triggered the warning to the output, so we know exactly where to look (since it references back to wp-includes/functions.php).	bigdawggi
	66054	Unauthenticated XML-RPC pingback timing oracle discloses non-public post titles and privacy-request email addresses		Security		normal	normal		defect (bug)	new		2026-09-06T02:12:48Z	2026-09-06T02:12:48Z	"**This issue is being posted to Trac for public discussion at the WordPress Security Team's explicit request.**

The security team said to post this to Trac and to mention that ""the Security Team recommended public discussion"".

An unauthenticated user can perform a pingback for a non-public pingback-enabled post using regex matching on the post title. If there is a post which has a title that matches the regex, then WordPress sleeps for one second and performs an outbound HTTP request, even if the matching post is one that the unauthenticated user cannot read (e.g. draft, scheduled, and trashed posts). The timing differential and outbound HTTP request can be observed, allowing the user to do character-by-character enumeration of pingback-enabled post titles that the user should not have access to. Disclosure of the title of an unavailable post may have a confidentiality impact.

After submitting the report to the security team, we found that this pingback-enabled primitive was publicly discussed in [https://www.imperva.com/blog/beware-a-threat-actor-could-steal-the-titles-of-your-private-and-draft-wordpress-posts/ Beware! A threat actor could steal the titles of your private (and draft) WordPress posts with this new vulnerability!] by Imperva (2025).

An unauthenticated user can attempt to perform a pingback for a non-public non-pingback-enabled post using regex matching on the post title. If there is a post which has a title that matches the regex, WordPress does not explicitly sleep or perform an outbound HTTP request as it does in the case where the post is pingback-enabled. However, there is a divergence in code that is executed in the case where the regex matches a post title v.s the case where the regex does not match a post title. This codepath divergence creates a timing differential. The unauthenticated user can use multicall to perform many pingback attempts within one request, amplifying the timing differential.

This second primitive can be used to do time-based character-by-character enumeration of non-pingback-enabled post titles that the user should not have access to. Importantly, this includes user email addresses for which a data export or data erasure has been performed, as these processes create non-public non-pingback-enabled posts with the user's email address in the post title. This represents a confidentiality and privacy impact.

The original report is attached. The issue was discovered by GPT 5.6 Sol, and the report was written by GPT 5.6 Sol with human editing and validation. We have chosen to withhold publication of the proof of concept scripts for the time being.

**This issue is being posted to Trac for public discussion at the WordPress Security Team's explicit request.**"	justinsteven
	56391	safecss_filter_attr(): support rgba background-color		Security		normal	normal		defect (bug)	reopened	has-patch	2022-08-16T15:18:23Z	2026-02-13T11:02:11Z	"This ticket allows rgba-valued background-color in `safecss_filter_attr`.

It was (https://github.com/WordPress/gutenberg/issues/39402) in Gutenberg that triggered this ticket.

In RichText, when an inline text color is specified, a transparent background color style (`background-color:rgba(0, 0, 0, 0)`) is generated at the same time.
This is to disable the browser's default style (yellow for Chrome), since highlighted text is wrapped with a mark tag.

However, this background color is sanitized by `wp_kes_post`, and the browser's default style is restored.

This ticket proposes to allow `rgba` values only for `background-color`.
Please check with the additions to the Unit Test to see what values are allowed."	wildworks
	37238	Right-aligned captions with embedded iframes get removed in Visual mode		Shortcodes	4.5.3	normal	normal		defect (bug)	new		2016-06-29T20:43:13Z	2019-04-19T21:12:30Z	"This has affected a client site a couple of times now so I thought I'd better share it and see if this is a bug or if there is something we are doing fundamentally wrong.

If you are working in Text mode and you end up creating a caption, right-aligning it and embedding an iframe within the caption shortcode, as follows...

{{{
[caption width=""350"" class=""alignright"" caption=""Ria Ritchie's latest video on YouTube""]<iframe width=""350"" height=""197"" class=""alignright"" src=""https://www.youtube.com/embed/_W9f5onA6nc?rel=0&amp;showinfo=0"" frameborder=""0"" allowfullscreen></iframe>[/caption]
}}}

...if anyone comes along in Visual mode they can see the embedded iframe right-aligned and with the caption below it. If they make a change to any part of the post and hit 'Update', the caption and iframe get removed, but the caption text remains (without any surrounding markup)."	ChrisBAshton
	25820	[embed] shortcode can't be escaped like others		Shortcodes		normal	minor		defect (bug)	new		2013-11-04T21:36:58Z	2019-06-04T21:09:30Z	"WordPress allows the use of double brackets to escape shortcodes, so that entering `[[foo]]` in your page or post displays `[foo]`.  This works great for most shortcodes, and is used in the following way on enclosed shortcodes:  `[[foo]Hello![/foo]]`

However, this feature fails when trying to use it with core's 'embed' shortcode.

To replicate:

Enter the following in a page or post:
`[[embed]http://www.youtube.com/watch?v=YLO7tCdBVrA[/embed]]`

What I expect to see:
`[embed]http://www.youtube.com/watch?v=YLO7tCdBVrA[/embed]`

What I really see:
`(null)`

(Apologies for the weird mix of [, ], and special characters here. had a hard time with getting the markup to render as I wanted.)"	MadtownLems
	65839	Site Health REST API test can fail with rest_cookie_invalid_nonce when full browser cookie jar is sent		Site Health	7.0.3	normal	minor		defect (bug)	new	has-patch	2026-08-09T11:10:56Z	2026-08-10T04:31:14Z	"WordPress Site Health can falsely report the REST API as failing with:

 REST API Endpoint: https://example.com/wp-json/wp/v2/types/post?context=edit
 REST API Response: (403) Forbidden

The REST response body is:

{{{#!json
{""code"":""rest_cookie_invalid_nonce"",""message"":""Cookie check failed"",""data"":{""status"":403}}
}}}

In `WP_Site_Health::get_test_rest_availability()`, core builds the loopback request using:

{{{#!php
<?php
$cookies = wp_unslash( $_COOKIE );
$r = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout', 'sslverify' ) );
}}}

This sends the entire browser cookie jar to the REST endpoint, not just WordPress authentication cookies.

On the affected site, a diagnostic confirmed:

 WordPress auth cookies only      -> 200
 WP_Http_Cookie objects only      -> 200
 Explicit Cookie header only      -> 200
 Full $_COOKIE jar, as Site Health -> 403 rest_cookie_invalid_nonce

The full cookie jar included unrelated cookies from analytics, LiteSpeed, Cloudflare, WooCommerce, Sourcebuster, Jetpack, `wp-settings-*`, and others. When the outgoing Site Health REST loopback request was filtered to include only:

 wordpress_logged_in_*
 wordpress_sec_*
 wordpress_test_cookie

the Site Health REST API warning cleared immediately.

**Expected behavior:**

Site Health’s authenticated REST loopback test should only send the WordPress cookies required for authentication, or otherwise avoid allowing unrelated browser cookies to interfere with REST nonce/cookie validation.

**Actual behavior:**

Site Health passes all of `$_COOKIE` into the loopback request.A sufficiently large or otherwise problematic browser cookie jar can cause the REST API availability test to return a false 403, even though the REST endpoint and WordPress authentication cookies are working correctly.

**Suggested fix:**

In `WP_Site_Health::get_test_rest_availability()`, filter `$cookies` before passing them to `wp_remote_get()` so only WordPress authentication/test cookies are sent."	hamishwright
	35606	AllPosts page: contradiction in filtering by Category and category assigning to the post		Taxonomy	4.4.1	normal	minor		defect (bug)	new		2016-01-25T20:52:14Z	2025-08-30T14:48:48Z	"'''STEPS TO REPRODUCE''':
1. Log in as administrator.
2. Go to Posts->Categories.
3. Add category: Name - ""Test category"", Slug - ""test-category"".
4. Add category: Name - ""Test subcategory"", Slug - ""test-subcategory"", Parent - ""Test category"".
5. Go to AllPosts page.
6. Add new post: Title - ""Test post"", assign it to ""Test category"".
7. Add new post: Title - ""Test post for subcategory"", assign it to ""Test subcategory"".
8. Go to AllPosts page.
9. Filter posts by category ""Test category"".
'''EXPECTED RESULT''':
Post ""Test post"" is presented as a result of filtration.
'''ACTUAL RESULT''':
Posts ""Test post"", ""Test for subcategory"" is presented as a result of filtration. If to follow this logic, post ""Test post for subcategory"" had to be assigned to ""Test subcategory"" and automatically to parent category in the moment of creation.
See attachment."	antonrinas
	36893	Columns filter from taxonomy edit screen (edit-tags.php) gets applied in term edit screen (term.php)		Taxonomy	4.5	normal	normal		defect (bug)	new		2016-05-20T06:00:43Z	2019-06-04T21:23:17Z	"I've did a simple test:

{{{#!php
<?php
function test($columns)
{
	echo 'Test output';
	
	return $columns;
}

add_filter('manage_edit-category_columns', 'test');
}}}
which resulted:

{{{
<div id=""screen-meta"" class=""metabox-prefs"">
<div id=""contextual-help-wrap"" class=""hidden no-sidebar"" aria-label=""Zakładka pomocy kontekstowej"" tabindex=""-1"">
Test output
</div>
}}}

so this filter is working in term.php. Another thing is that, adding custom columns in edit-terms.php screen forces Screen options to show in term.php.

edit-tags.php
[[Image(http://s32.postimg.org/igwy86u2t/image.jpg)]]

term.php
[[Image(http://s32.postimg.org/7ddc2l8sl/image.jpg)]]"	szaqal21
	30379	Creating multiple Categories with same name under 1 parent		Taxonomy	3.9	normal	normal		defect (bug)	new		2014-11-18T05:50:40Z	2019-06-04T21:12:53Z	"At present this structure is allowed:
{{{
Parent
 - C (slug: c)
 - C++ (slug: c-parent)
}}}
Attempting to add another 'C' category will fail with `A term with the name and slug already exists with this parent.`.

However, you can create this structure:
{{{
Parent
 - C (slug: c)
 - C++ (slug: c-parent)
Parent2
 - C (slug: c-parent2)
}}}
and then move the term:
{{{
Parent
 - C (slug: c)
 - C (slug: c-parent2)
 - C++ (slug: c-parent)
Parent2
}}}
without issue.

The question that remains here, is this what is expected?"	dd32
	14093	Malformed category hidden from edit-tags, but shows in meta box		Taxonomy		low	normal		defect (bug)	new		2010-06-25T19:11:49Z	2019-06-04T21:26:33Z	"Came from a report in IRC by xomp.

In the following example, category 1's parent is category 2, and vice versa.
{{{
mysql> select term_taxonomy_id, term_id, taxonomy, parent from wp_term_taxonomy;
+------------------+---------+---------------+--------+
| term_taxonomy_id | term_id | taxonomy      | parent |
+------------------+---------+---------------+--------+
|                1 |       1 | category      |      2 |
|                2 |       2 | category      |      1 |
|                3 |       3 | category      |      0 |
|                4 |       4 | category      |      1 |
+------------------+---------+---------------+--------+
4 rows in set (0.00 sec)

mysql> select term_id, name from wp_terms;
+---------+-----------------+
| term_id | name            |
+---------+-----------------+
|       1 | Category 1      |
|       2 | Category 2      |
|       3 | Category 3      |
|       4 | Category 4      |
+---------+-----------------+
4 rows in set (0.00 sec)
}}}
On edit-tags, you'll see only Category 3.

In the hierarchical meta box, you'll see:
{{{
Category 3
Category 1
 - Category 2
 - Category 4
}}}
If we decide to show corrupted data, we should be consistent. At the very least, edit-tags should reveal more than the meta box, not the other way around."	nacin
	37518	New term.php is showing warning for rearranged columns using manage_{$screen->id}_columns filter		Taxonomy	4.5	normal	normal		defect (bug)	new		2016-07-29T19:41:29Z	2019-06-04T21:25:15Z	"== Main Issue: ==

Declared custom column and sorted them using `unset()` for my Custom Taxonomy for CPT:

{{{#!php
<?php
function mytax_icon_column( $columns ) {
    unset( $columns['cb'] );
    unset( $columns['name'] );

    $new_columns = array();
    $new_columns['cb']      = $columns['cb'];
    $new_columns['name']    = $columns['name'];
    $new_columns['icon']    = 'Icon';
    return array_merge( $new_columns, $columns );
}
add_filter( 'manage_edit-mytax_columns', 'mytax_icon_column' );
}}}

and in the Term edit page (`/term.php?taxonomy=mytax&tag_ID=224&post_type=cpt&wp_http_referer=%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dmytax%26post_type%3Dcpt`) it's displaying

{{{
Notice: Undefined index: cb in /home/path/public_html/path/wp-content/plugins/myplugin/plugin-file.php on line 240
Notice: Undefined index: name in /home/path/public_html/path/wp-content/plugins/myplugin/plugin-file.php on line 241
}}}

But it's not showing any warning message in earlier version (i.e. 4.5.2) where term's using `edit-tags.php`.

== Secondary Issue: ==

When I edit a term, under the '''Screen Options''' there are checkboxes denoting columns. But where are the columns? The checkboxes has no effect on this particular screen. They are good fit for the Term listing page only.

Can we sort these out?"	wzislam
	35292	Terms: get_terms by name mismatches emoji		Taxonomy	4.2	normal	normal		defect (bug)	new		2016-01-03T06:41:42Z	2019-06-04T21:19:00Z	"When assigning emoji-named terms to a post, it appears the post processing will match some emoji characters incorrectly. So far, it appears it occurs within get_terms.

Steps to duplicate:
Write a post and attempt to add two flag emoji (e.g. Mexico and Germany) as individual tags.

Expected: Both terms are assigned.

Actual: Only one.

Another method: Create two tags of just the two flags, then assign the second one created. The first one created will be assigned instead.

It doesn't happen for all emoji, but I didn't isolate if it by plane, etc."	kraftbj
	31270	Unexpected slugs for same-title different-parents term creation	boonebgorges	Taxonomy	4.1	normal	normal		defect (bug)	assigned	has-patch	2015-02-09T03:35:53Z	2026-10-31T16:49:38Z	"When creating a new term which matches an existing terms name, it uses that slugs slug as the slug prefix, which can result in an unexpected term slug.

For example, take this:
{{{
Foo (slug: foo)
 - Bar  (slug: foo-bar)
}}}
If we now create a root level ""Bar"" term, it'll get a slug of {{{foo-bar-2}}}, when one would expect it to receive {{{bar}}} since no conflicting slug exists.

This is related directly to [28733] / #17689.

Unit test attached showing behaviour."	dd32
	33521	manage_${post_type}_posts_columns parameters shifted		Taxonomy	4.3	normal	minor		defect (bug)	new	has-patch	2015-08-23T21:28:05Z	2025-06-22T19:24:39Z	"Hello,

manage_${post_type}_posts_columns requires three parameters, however, as shown in the link below, it only uses 2.

https://core.trac.wordpress.org/browser/tags/4.2.2/src/wp-admin/includes/class-wp-posts-list-table.php#L978

The paremeters are also shifted.

The example below shows the var dump outputs in render_column_with_bug():

{{{
<?php
class Example_Class {

    public function __construct() {   
       add_action( 'admin_init', array( $this, 'init_columns') );
    }
    
    public function init_columns() {

        $supported_post_types = array(
            'posts' => 'posts',
            'pages' => 'pages',
            'category' => 'edit-category',
            'post_tag'  => 'edit-post_tag',
        );

        foreach ( $supported_post_types as $slug => $type ) {
            add_action( ""manage_{$type}_columns"", array( $this, 'add_column'), 10, 1 );
            
            // Add 3rd parameter because of bug
            add_action( ""manage_{$slug}_custom_column"", array( $this, 'render_column_with_bug'), 10, 3 );
        }
     }
    
    // Add new column name here
    public function add_column( $columns ) {
        $columns = array_merge( array(
            'my_column_name' => 'column_slug', 
            ), $columns );
  
        return $columns;
    }

    // Output column contents here here
    public function render_column_with_bug( $column, $post_id, $tax_id = '' ) {

        $status = '';

        var_dump ( $column );
        /* 
            Outputs: column name on posts/pages
            Outputs: empty string on taxonomies
        */
        
        var_dump ( $post_id );
        /* 
            Outputs: post id posts/pages
            Outputs: column name taxonomies
        */
        
        var_dump ( $tax_id );
        /* 
            Outputs: empty string on posts/pages
            Outputs: taxonomy id on taxonomies
        */

        if ( $column == 'my_column_name' )
            $status = $this->post_status();

        echo $status;
    }
    
    // Output column contents here here
    public function render_column_bug_fixed( $column, $post_id, $tax_id = '' ) {

        $status = '';

        $type = get_post_type( $post_id );

        if ( !empty ( $tax_id ) && ! $type ) {
            $column = $post_id;

            $screen = get_current_screen();

            $type = $screen->id;
        }

        if ( $column == 'my_column_name' )
            $status = $this->post_status();

        echo $status;
    }
    
    public function post_status() {
        // render output
    }

}
new Example_Class();
}}}"	Cybr
	35385	Able to get raw content by calling get_the_archive_description		Taxonomy		normal	normal		enhancement	new	has-patch	2016-01-09T12:07:00Z	2020-06-07T08:45:06Z	"Calling the '''get_the_archive_description''' the content will be passed to some filters by the '''sanitize_term_field''' function, one of them is wpautop.

To add some class to the p tag the only way is to perform a preg_replace but that can create issue with  other callbacks hooked into 'get_the_archive_description'.

Would be great to have a param like $context as the '''get_term_field''' has to able to pass '''raw''' and retrieve only the text. "	wido
	34195	Deprecate get_terms_fields		Taxonomy	4.4	normal	normal		enhancement	new	has-patch	2015-10-07T17:31:30Z	2019-06-04T21:17:28Z	It seems like most people agree with the removal of this filter. So here is an approach to make this happen.	wpsmith
	26667	Improve filter in single_term_title()		Taxonomy	3.8	normal	normal		enhancement	new	has-patch	2013-12-17T19:20:47Z	2025-08-07T16:35:29Z	"There are some oddities to how taxonomy titles are handled in `wp_title()`.

 For categories and tags, the title is set to the current term title, which is desirable in my opinion:
{{{
	if ( is_category() || is_tag() ) {
		$title = single_term_title( '', false );
	}
}}}

But for all other taxonomies, the taxonomy label is injected into the title:
{{{
	if ( is_tax() ) {
		$term = get_queried_object();
		if ( $term ) {
			$tax = get_taxonomy( $term->taxonomy );
			$title = single_term_title( $tax->labels->name . $t_sep, false );
		}
	}
}}}

This seems oddly specific and not the typical WordPress way, in my opinion. It seems to assume a lot in terms of what users will want. Ideally I'd take this block completely out and simply add is_tax() to the first block.

Being a pragmatist though, I will assume no one will take me up on that particular solution. :)

This really gets messy when you get into `get_term_title()`.  The filters provided in this function do not filter the result of the operations but rather the input, which is a bit curious given the normal usage of filters. 

The code:
{{{
function single_term_title( $prefix = '', $display = true ) {
	$term = get_queried_object();

	if ( !$term )
		return;

	if ( is_category() )
		$term_name = apply_filters( 'single_cat_title', $term->name );
	elseif ( is_tag() )
		$term_name = apply_filters( 'single_tag_title', $term->name );
	elseif ( is_tax() )
		$term_name = apply_filters( 'single_term_title', $term->name );
	else
		return;

	if ( empty( $term_name ) )
		return;

	if ( $display )
		echo $prefix . $term_name;
	else
		return $prefix . $term_name;
}
}}}

So, my recommended solution is to simply add a filter here for the result which passes in the `$prefix` in case we would like to remove it. 

Like so:
{{{
function single_term_title( $prefix = '', $display = true ) {
	$term = get_queried_object();

	if ( !$term )
		return;

	if ( is_category() )
		$term_name = apply_filters( 'single_cat_title', $term->name );
	elseif ( is_tag() )
		$term_name = apply_filters( 'single_tag_title', $term->name );
	elseif ( is_tax() )
		$term_name = apply_filters( 'single_term_title', $term->name );
	else
		return;

	if ( empty( $term_name ) )
		return;

	$result = apply_filters( 'single_term_title_result', $prefix . $term_name, $term_name, $prefix );

	if ( $display )
		echo $result;
	else
		return $result;
}
}}}

The attached patch accomplishes this. 

However, I think more sweeping changes might be warranted here. 

Clif"	clifgriffin
	36171	Proposed clean up of get_the_category_list() and link filter		Taxonomy	4.4.2	normal	normal		enhancement	new	needs-unit-tests	2016-03-08T17:09:25Z	2019-06-04T21:20:57Z	"The current source code of the {{{get_the_category_list()}}} function is quite messy and there is also a lot of duplicate code which we can avoid. 

Also, on a micro optimization level, in stead of passing the category ID to {{{get_category_link()}}}, we can pass the whole category object. Doing this will avoid the extra overhead of having to get the complete category object from the term cache.

There is also no filter to filter each category link on category level, we only have the {{{the_category}}} filter which filters the string of links. We have being receiving a couple of questions on wordpress.stackexchange.com regarding filtering these category links according to category. [http://wordpress.stackexchange.com/q/219554/31545 Here] is such one question.

My proposal is included in my code, a filter called {{{the_category_list_links}}} which we can use to filter each category link individually according to the category.  One such use-case of the filter can look something like

{{{
add_filter( 'the_category_list_links', function ( $the_link_list, $category, $cat_parents )
{
	$category_color = get_field( 'category_color', $category );
	if ( !$category_color )
		return $the_link_list;
	
	$the_link_list = str_replace( '<a', '<a style=""color:' . $category_color . '""', $the_link_list );
	
	return $the_link_list;
}, 10, 3 );
}}}

On initial testing, I can confirm that my code is slightly faster that the current code, and the new {{{the_category_list_links}}} filter is working as intended

Here is the proposed cleanup

{{{
/**
 * Retrieve category list in either HTML list or custom format.
 *
 * @since 1.5.1
 *
 * @global WP_Rewrite $wp_rewrite
 *
 * @param string $separator Optional, default is empty string. Separator for between the categories.
 * @param string $parents Optional. How to display the parents.
 * @param int $post_id Optional. Post ID to retrieve categories.
 * @return string
 */
function get_the_category_list( $separator = '', $parents = '', $post_id = false ) 
{
	global $wp_rewrite;
	
	if ( ! is_object_in_taxonomy( get_post_type( $post_id ), 'category' ) ) {
		/** This filter is documented in wp-includes/category-template.php */
		return apply_filters( 'the_category', '', $separator, $parents );
	}

	/**
	 * Filter the categories before building the category list.
	 *
	 * @since 4.4.0
	 *
	 * @param array    $categories An array of the post's categories.
	 * @param int|bool $post_id    ID of the post we're retrieving categories for. When `false`, we assume the
	 *                             current post in the loop.
	 */
	$categories = apply_filters( 'the_category_list', get_the_category( $post_id ), $post_id );

	if ( empty( $categories ) ) {
		/** This filter is documented in wp-includes/category-template.php */
		return apply_filters( 'the_category', __( 'Uncategorized' ), $separator, $parents );
	}

	$rel = ( is_object( $wp_rewrite ) && $wp_rewrite->using_permalinks() ) ? 'rel=""category tag""' : 'rel=""category""';

	$links = array();
	foreach ( $categories as $category ) {
		/** 
		 * Break the link for better link building
		 */
		$start_link = '<a href=""' . esc_url( get_category_link( $category->term_id ) ) . '"" ' . $rel . '>';
		$end_link   = $category->name . '</a>';
		
		/** 
		 * Build the category links
		 */
		$the_link_list = '';	
		switch ( strtolower( $parents ) ) {
			case 'multiple':
				$cat_parents   = $category->parent ? get_category_parents( $category->parent, true, $separator ) : '';
				$the_link_list = $cat_parents . ' ' . $start_link . $end_link;
				break;
			case 'single':
				$cat_parents   = $category->parent ? get_category_parents( $category->parent, false, $separator ) : '';
				$the_link_list = $start_link . $cat_parents . $end_link;
				break;
			case '':
			default:
				$the_link_list = $start_link . $end_link;
		}

		/**
		 * Filter the category links on category level.
		 *
		 * @since X.X.X
		 *
		 * @param string $the_link_list Post category link.
		 * @param object $category      The current category object
		 * @param $cat_parents          Link list of parents of the current category
		 */
		$links[] = apply_filters( 'the_category_list_links', $the_link_list, $category, $cat_parents );
	}

	$thelist = '';
	if( '' === $separator ) {
		$thelist .= '<ul class=""post-categories"">';
			$thelist .= ""\n\t<li>"";

				$thelist .= implode( ""</li>\n\t<li>"", $links );

			$thelist .= '</li>';
		$thelist .= '</ul>';
	} else {
		$thelist .= implode( $separator, $links );
	}	

	/**
	 * Filter the category or list of categories.
	 *
	 * @since 1.2.0
	 *
	 * @param array  $thelist   List of categories for the current post.
	 * @param string $separator Separator used between the categories.
	 * @param string $parents   How to display the category parents. Accepts 'multiple',
	 *                          'single', or empty.
	 */
	return apply_filters( 'the_category', $thelist, $separator, $parents );
}
}}}"	pietergoosen
	29586	Sync get_the_category_list with get_the_term_list		Taxonomy	2.5	normal	normal		enhancement	new	needs-unit-tests	2014-09-08T13:39:35Z	2019-06-04T21:12:17Z	"It would be great to have {{{get_the_term_list()}}} support the same features {{{get_the_category_list()}}} has.

I created a proof of concept patch what works. The only thing I hate is the part I need to specify that I want to have a list instead of a separator because when it's empty  {{{get_the_category_list()}}} assumes to show a list but {{{get_the_term_list()}}} will then just show only the links."	markoheijnen
	34055	the_taxonomies lacks a filter		Taxonomy	2.5	normal	normal		enhancement	new	has-patch	2015-09-28T10:13:40Z	2023-05-15T14:35:15Z	"The template tag ""the_taxonomies"" displays all taxonomies terms attached to a post. However plugins can use taxonomies for internal purposes and not every taxonomy terms are meant to be displayed."	Chouby
	28855	Commented add_actions and unused functions in wp-admin/includes/theme-install.php	chriscct7	Themes	3.9	normal	normal		defect (bug)	assigned	dev-feedback	2014-07-12T16:59:42Z	2024-12-03T09:01:30Z	"Only {{{install_themes_upload()}}} is used in`wp-admin/theme-install.php:134`
{{{
mike@mike:~/Sites/wordpress-svn$ grep -r '// add_action' src/
src/wp-admin/includes/theme-install.php:135:// add_action('install_themes_dashboard', 'install_themes_dashboard');
src/wp-admin/includes/theme-install.php:147:// add_action('install_themes_upload', 'install_themes_upload', 10, 0);
src/wp-admin/includes/theme-install.php:179:// add_action('install_themes_search', 'display_themes');
src/wp-admin/includes/theme-install.php:180:// add_action('install_themes_featured', 'display_themes');
src/wp-admin/includes/theme-install.php:181:// add_action('install_themes_new', 'display_themes');
src/wp-admin/includes/theme-install.php:182:// add_action('install_themes_updated', 'display_themes');

mike@mike:~/Sites/wordpress-svn$ grep -r install_themes_dashboard src
src/wp-admin/includes/theme-install.php:96:function install_themes_dashboard() {
src/wp-admin/includes/theme-install.php:135:// add_action('install_themes_dashboard', 'install_themes_dashboard');

mike@mike:~/Sites/wordpress-svn$ grep -r install_themes_upload src
src/wp-admin/includes/theme-install.php:137:function install_themes_upload() {
src/wp-admin/includes/theme-install.php:147:// add_action('install_themes_upload', 'install_themes_upload', 10, 0);
src/wp-admin/theme-install.php:134:     <?php install_themes_upload(); ?>

mike@mike:~/Sites/wordpress-svn$ grep -r install_themes_search src
src/wp-admin/includes/theme-install.php:179:// add_action('install_themes_search', 'display_themes');

mike@mike:~/Sites/wordpress-svn$ grep -r install_themes_featured src
src/wp-admin/includes/theme-install.php:180:// add_action('install_themes_featured', 'display_themes');

mike@mike:~/Sites/wordpress-svn$ grep -r install_themes_new src
src/wp-admin/includes/theme-install.php:181:// add_action('install_themes_new', 'display_themes');

mike@mike:~/Sites/wordpress-svn$ grep -r install_themes_updated src
src/wp-admin/includes/theme-install.php:182:// add_action('install_themes_updated', 'display_themes');
}}}

`display_themes` is used only in the same file `wp-admin/includes/theme-install.php`, but in the commented add_actions. Should that function be deprecated?
{{{
mike@mike:~/Sites/wordpress-svn$ grep -r display_themes src
src/wp-admin/includes/theme-install.php:122:function display_themes() {
src/wp-admin/includes/theme-install.php:132:// add_action('install_themes_search', 'display_themes');
src/wp-admin/includes/theme-install.php:133:// add_action('install_themes_featured', 'display_themes');
src/wp-admin/includes/theme-install.php:134:// add_action('install_themes_new', 'display_themes');
src/wp-admin/includes/theme-install.php:135:// add_action('install_themes_updated', 'display_themes');
}}}"	michalzuber
	26968	Theme Administration Screen: Not enough themes displayed at high resolutions		Themes	3.8	normal	normal		defect (bug)	new		2014-01-31T06:18:18Z	2019-06-04T21:10:22Z	"I run a high resolution display (2560x1600) and not enough themes are displayed when you first visit the Themes page in the admin area. If you watch carefully, you can see them there and then they quickly disappear when the page finishes loading.

It initially made me think that some of my themes weren't being recognized. If there are still more themes to load and display, then why are we showing the ""Add New Theme"" item?

A tiny scroll makes them show up.

Screenshot attached. There are actually more themes to be displayed than those shown in the screenshot.


(Sorry if this is a dupe, I had trouble finding specific enough keywords to search on.)"	Viper007Bond
	30105	css defining protocol		Themes	3.8.2	normal	normal		defect (bug)	new		2014-10-26T06:41:59Z	2019-06-04T21:12:42Z	"{{{when switching between http & https css breaks.  css has the protocol defined rather than using // it uses http:// or https://}}}

to produce the problem load in apache and localhost:80, then localhost:443.  one or the other will be broken.

sane:
{{{<link rel=""stylesheet"" id=""open-sans-css"" href=""//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&amp;subset=latin%2Clatin-ext&amp;ver=4.0"" type=""text/css"" media=""all"">}}}

insane:
{{{<link rel=""stylesheet"" id=""kadence_bootstrap-css"" href=""http://localhost/wordpress/wp-content/themes/virtue/assets/css/bootstrap.css?ver=224"" type=""text/css"" media=""all"">}}}"	666threesixes666
	22414	validate_current_theme() should validate cached theme roots		Themes		normal	normal		defect (bug)	new		2012-11-11T21:57:54Z	2019-06-04T21:07:55Z	See ticket:22252#comment:14. To handle edge cases like the same theme being in multiple roots, validate_current_theme() should validate the cached theme roots, and update or delete them as appropriate.	nacin
	28094	Add action hook after getting template part		Themes	3.9	normal	normal		enhancement	new	has-patch	2014-05-01T15:43:45Z	2019-06-04T21:11:09Z	"I think it should be nice to have the possibility to execute actions after getting a template part, not only before doing it, as it is now. I find this can be particularly useful to deal with output buffering, allowing to do things like this:


{{{
<?php
add_action( 'get_template_part_content', 'catch_template_part_output' );
/**
 * Start output buffering for template part.
 */
function catch_template_part_output( $slug, $name = null ) {
	if ( '' == $name ) {
		ob_start();
	}
}

add_action( 'after_get_template_part_content', 'release_template_part_output' );
/**
 * End output buffering for template part and print modified output.
 */
function release_template_part_output( $slug, $name = null ) {
	if ( '' == $name ) {
		$output = ob_get_contents();
		$output = '[Something before the original output ...]' . $output;
		$output .= '[Something after the original output ...]';
		ob_clean();
		echo $output;
	}
}
}}}

I'm thinking this particular method could give an extra option to theme developers who need to modify a very simple piece of output without having to create a new template or new functions to be embedded into an existing template. I know maybe some people won't consider this to be a recommended practice (I'm actually a little divided here), but you'd still have the possibility to trigger any other functionality you want on such hook."	andrezrv
	31365	Improve actions links for current theme on themes.php		Themes		low	normal		enhancement	reviewing	has-patch	2015-02-17T17:39:47Z	2026-09-10T16:23:52Z	The links are not escaped in themes.php related #30952	MikeHansenMe
	44275	"<span data-mce-type=""bookmark"" style=""display: inline-block; width: 0px; overflow: hidden; line-height: 0;"" class=""mce_SELRES_start"">﻿</span>"		TinyMCE	4.9.6	normal	normal		defect (bug)	reopened	reporter-feedback	2018-05-30T09:14:48Z	2025-12-04T14:17:36Z	"This is a follow-up to #42908.

when inserting youtube or any shotrcode in text mode and gets into visual mode tinyMCE inserting <span data-mce-type=""bookmark"" style=""display: inline-block; width: 0px; overflow: hidden; line-height: 0;"" class=""mce_SELRES_start"">﻿</span> code
and its hard to erase it
because its respawn again and again

Wordpress 4.9.6"	michaelukr
	30915	Automatic translation update does not trigger notification email		Upgrade/Install	4.1	normal	normal		defect (bug)	new		2015-01-05T16:42:41Z	2019-06-04T21:13:34Z	"Apparently, my translation files were updated over night (overwriting all my custom translations) and I didn't even get a notification email. I made sure that mail() and wp_mail() works and then found that in '''class-wo-upgrader.php:2803''' the email is only triggered for 'core' type updates, not 'translation' types or any other. A translation update can easily render a site useless, and a notification should be sent for EVERY SINGLE CHANGE that Wordpress decides to do to itself anyway.

Also, the dashboard says that only ""security updates"" are installed automatically, and I would have never allowed translations to update automatically. Sure, digging deep in the online documentation later, I found the part about translations, but this '''should be mentioned in dashboard''' much clearer, including options to disable.

In the end, I think '''automatic translation updates should be off by default'''. Automatically updating something always bears the risk of breaking the site (even if only semantically). The only time I'd rather risk breaking the side is when otherwise I would risk leaving a critical exploit open, not for some dumb fixed typos. In fact, those are not 'critical' but 'trivial', putting them right on the other end of the criticality scale."	ddaum
	28300	Two issues in the code for auto-uploading to subfolders		Upgrade/Install	3.9.1	normal	normal		defect (bug)	new		2014-05-18T17:05:26Z	2023-03-15T18:21:55Z	"There are two issues in the code for auto-uploading to subfolders within a change rooted FTP (wp-admin/includes/class-wp-filesystem-base.php).

First, it adds a ""/"" to the replacement expression when the source replacement already contains a ""/"" (Note that ABSPATH has a trailing slash):

{{{
$potential_folder = preg_replace( '#^' . preg_quote( $dir, '#' ) . '/#i', trailingslashit( constant( $constant ) ), $folder );
}}}


This should be:

{{{
$potential_folder = preg_replace( '#^' . preg_quote( trailingslashit($dir), '#' ) . '#i', trailingslashit( constant( $constant ) ), $folder );
}}}


Second, it checks that the directory exists. This is not the case during theme and plugin installs, where the not existing directory is specified. Instead, only the parent should be checked.

After:


{{{
if ( $this->is_dir( $potential_folder ) ) {
    $this->cache[ $folder ] = $potential_folder;
    return $potential_folder;
}
}}}

Adding:

{{{
else {
      $potential_parent_folder = trailingslashit(preg_replace('#[^/]*/$#', '', $potential_folder));
      if ( $this->is_dir( $potential_parent_folder ) ) {
            $this->cache[ $folder ] = $potential_folder;
            return $potential_folder;
      }
}
}}}


Would test for a valid parent, instead. (E.g. wp-content/themes instead of wp-content/themes/newtheme)"	wiziapp
	25777	Two update nags shown in multisite if all blogs aren't updated before the next release		Upgrade/Install	3.6.1	normal	minor		defect (bug)	new	has-patch	2013-10-30T19:24:46Z	2019-06-04T21:09:24Z	"On a multisite install, the user can be shown two update nags (see attached screenshot). As you can see, one nag is asking the user to update to the latest version, while the other is asking them to upgrade their other sites. This happens on a site on the network that the user updated, but didn't update all of the other sites on the network. If the other sites don't get updated before the next release, they will be shown both nags.

The first nag is being shown by the `update_nag()` function ([http://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/update.php#L198 /wp-admin/includes/update.php#L198]), the second by `site_admin_notice()` ([http://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/ms.php#L606 /wp-admin/includes/ms.php#L606])."	jdgrimes
	32652	Use `ignore_user_abort()` to avoid some update failures		Upgrade/Install		normal	normal		defect (bug)	new		2015-06-15T05:50:51Z	2023-03-15T18:42:39Z	"As mentioned in [comment:5:ticket:16066] and [comment:5:ticket:29679] we should consider using `ignore_user_abort()` to prevent the potential issue of an upgrade process being aborted mid-way due to a browser cancellation.

This could be called before any update activity starts, or perhaps only after actual changes start happening (ie. after the zipfile download, before the file alterations)."	dd32
	35536	WP_Upgrader goes too far up when enumerating parent paths on a network share		Upgrade/Install	3.7	normal	normal		defect (bug)	new		2016-01-19T22:43:29Z	2019-06-05T06:43:16Z	"In `/wp-admin/includes/class-wp-upgrader.php`:

When `is_vcs_checkout()` is walking up parent folders, the behavior of `dirname()` causes WordPress to check for folders that couldn't possibly exist.  For example, if ""inetpub-share"" was the name of a share on machine ""myserver"", the following folders might be searched for source control folders:

* `\\myserver\inetpub-share\wwwroot\.git`
* `\\myserver\inetpub-share\.git`
* `\\myserver\.git`
* `\.git`

Note that the last two are not even subfolders of `""inetpub-share"".`  That is, the search should stop at `""\\myserver\inetpub-share\.git""` because `""inetpub-share""` should be considered a top-level folder.

Even more concerning is that checking for `""\\myserver\.git""` and `""\.git""` are very expensive operations in a network environment, which means that the upgrade logic takes a very long time or will time out.

My proposed remedy is to change this line:
{{{#!php
if ( $context_dir == dirname( $context_dir ) )
}}}

to

{{{#!php
if ( $context_dir == dirname( $context_dir ) 
    || (substr($context_dir , 0, 2)=='\\\\' && strpos(dirname( $context_dir ), '\\', 2)===false)
}}}


Thoughts?"	vfs_hobbes
	35375	function wp_guess_url not compatible with symlinks		Upgrade/Install	4.3	normal	normal		defect (bug)	new		2016-01-08T19:01:07Z	2019-07-27T01:21:35Z	"If your web root is a symlink to another directory in the server, common for continuous delivery environments, wp_guess_url will try to find
{{{#!php
  $script_filename_dir = dirname( $_SERVER['SCRIPT_FILENAME'] );
}}}
inside of
{{{#!php
  $abspath_fix = str_replace( '\\', '/', ABSPATH );
}}}
in line 3837 of wp-includes/functions.php :
{{{#!php
			} elseif ( false !== strpos( $abspath_fix, $script_filename_dir ) ) {
}}}

Since `$_SERVER['SCRIPT_FILENAME']` will resolve a symlink these 2 will be completely different and the elseif will be skipped, so `$path = $_SERVER['REQUEST_URI'];`

Is this a problem? Only if you have WordPress installed as a dependency with Composer. See https://github.com/johnpbloch/wordpress -- so maybe I shouold report the bug to his repo instead... Not sure!

Possible fix: I tried wrapping dirname() in readlink() but won't work when the path is not a symlink. Maybe a conditional check?"	jorgeorpinel
	23487	is_blog_installed gives erroneous result on moved database		Upgrade/Install	3.0	normal	normal		defect (bug)	new	dev-feedback	2013-02-16T13:11:37Z	2021-03-30T14:02:15Z	"I resently moved my blogs to a new database, but when I tried it out, on of the blogs wanted a new install. Of course I did not want to do an install and overwrite my blog.

I indirectly found the reason in is_blog_installed, which suppresses database errors. Thus I did not see this error.

SELECT command denied to user 'techblog'@'localhost' for table 'wp_options'

Of course it was my fault, but I virtually had to take the wordpress code apart to find out why my migration failed.

Of course this is not a big problem on new installs, but very likely to happen on moving databases.
"	Kjeld Flarup
	16216	Hide core updater if running an svn checkout		Upgrade/Install		normal	normal		enhancement	new	has-patch	2011-01-13T07:26:33Z	2019-06-04T21:06:21Z	The logic with this patch is if you are running an svn checkout, do not display the core updater code and instead display a reminder.	johnjamesjacoby
	14028	Maintenance mode nag persists after successful upgrade		Upgrade/Install	3.0	normal	minor		enhancement	new		2010-06-21T18:27:55Z	2021-03-01T09:47:03Z	"A number of forum users are reporting that the maintenance nag 

""An automated WordPress update has failed to complete"" etc.. persists after failed auto-updates even if they then successfully perform manual updates.

Looks like something is leaving $upgrading set."	mrmist
	35016	New plugin version in upgrader object		Upgrade/Install	4.4	normal	normal		enhancement	new		2015-12-11T16:11:53Z	2019-06-05T06:42:39Z	"The current upgrader object only has the ''old'' plugin version ({{{->skin->plugin_info['Version']}}} unless you parse out the source URL.

{{{
Plugin_Upgrader Object
(
    [result] => Array
        (
            [source] => Q:/dev/webspec-design/wp-content/upgrade/types.1.8.11/types/
            [source_files] => Array
                (
                    [0] => admin.php
                    [1] => classes
                    [2] => embedded
                    [3] => help.php
                    [4] => includes
                    [5] => marketing
                    [6] => marketing.php
                    [7] => plus
                    [8] => readme.txt
                    [9] => resources
                    [10] => wpcf.php
                    [11] => wpml-config.xml
                )

            [destination] => Q:\dev\webspec-design/wp-content/plugins/types/
            [destination_name] => types
            [local_destination] => Q:\dev\webspec-design/wp-content/plugins
            [remote_destination] => Q:/dev/webspec-design/wp-content/plugins/types/
            [clear_destination] => 1
        )

    [bulk] => 1
    [strings] => Array
        (
            [skin_upgrade_start] => The update process is starting. This process may take a while on some hosts, so please be patient.
            [skin_update_failed_error] => An error occurred while updating %1$s: %2$s
            [skin_update_failed] => The update of %1$s failed.
            [skin_update_successful] => %1$s updated successfully. Show Details
            [skin_upgrade_end] => All updates have been completed.
            [skin_before_update_header] => Updating Plugin %1$s (%2$d/%3$d)
            [bad_request] => Invalid Data provided.
            [fs_unavailable] => Could not access filesystem.
            [fs_error] => Filesystem error.
            [fs_no_root_dir] => Unable to locate WordPress Root directory.
            [fs_no_content_dir] => Unable to locate WordPress Content directory (wp-content).
            [fs_no_plugins_dir] => Unable to locate WordPress Plugin directory.
            [fs_no_themes_dir] => Unable to locate WordPress Theme directory.
            [fs_no_folder] => Unable to locate needed folder (%s).
            [download_failed] => Download failed.
            [installing_package] => Installing the latest version…
            [no_files] => The package contains no files.
            [folder_exists] => Destination folder already exists.
            [mkdir_failed] => Could not create directory.
            [incompatible_archive] => The package could not be installed.
            [files_not_writable] => The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.
            [maintenance_start] => Enabling Maintenance mode…
            [maintenance_end] => Disabling Maintenance mode…
            [up_to_date] => The plugin is at the latest version.
            [no_package] => Update package not available.
            [downloading_package] => Downloading update from %s…
            [unpack_package] => Unpacking the update…
            [remove_old] => Removing the old version of the plugin…
            [remove_old_failed] => Could not remove the old plugin.
            [process_failed] => Plugin update failed.
            [process_success] => Plugin updated successfully.
            [process_bulk_success] => Plugins updated successfully.
        )

    [skin] => Bulk_Plugin_Upgrader_Skin Object
        (
            [plugin_info] => Array
                (
                    [Requires WP] => 
                    [Requires PHP] => 
                    [GitHub Plugin URI] => 
                    [GitHub Branch] => 
                    [GitHub Enterprise] => 
                    [GitHub CE] => 
                    [Bitbucket Plugin URI] => 
                    [Bitbucket Branch] => 
                    [Bitbucket Enterprise] => 
                    [Bitbucket CE] => 
                    [GitLab Plugin URI] => 
                    [GitLab Branch] => 
                    [GitLab Enterprise] => 
                    [GitLab CE] => 
                    [Name] => Types
                    [PluginURI] => http://wordpress.org/extend/plugins/types/
                    [Version] => 1.8.10
                    [Description] => Define custom post types, custom taxonomies and custom fields.
                    [Author] => OnTheGoSystems
                    [AuthorURI] => http://www.onthegosystems.com
                    [TextDomain] => 
                    [DomainPath] => 
                    [Network] => 
                    [Title] => Types
                    [AuthorName] => OnTheGoSystems
                )

            [in_loop] => 
            [error] => 
            [upgrader] => Plugin_Upgrader Object
 *RECURSION*
            [done_header] => 
            [done_footer] => 
            [result] => Array
                (
                    [source] => Q:/dev/webspec-design/wp-content/upgrade/types.1.8.11/types/
                    [source_files] => Array
                        (
                            [0] => admin.php
                            [1] => classes
                            [2] => embedded
                            [3] => help.php
                            [4] => includes
                            [5] => marketing
                            [6] => marketing.php
                            [7] => plus
                            [8] => readme.txt
                            [9] => resources
                            [10] => wpcf.php
                            [11] => wpml-config.xml
                        )

                    [destination] => Q:\dev\webspec-design/wp-content/plugins/types/
                    [destination_name] => types
                    [local_destination] => Q:\dev\webspec-design/wp-content/plugins
                    [remote_destination] => Q:/dev/webspec-design/wp-content/plugins/types/
                    [clear_destination] => 1
                )

            [options] => Array
                (
                    [url] => update.php?action=update-selected&plugins=types%2Fwpcf.php
                    [nonce] => bulk-update-plugins
                    [title] => 
                    [context] => 
                )

            [plugin_active] => 1
        )

    [update_count] => 1
    [update_current] => 1
)
}}}"	eclev91
	33287	Prompt the user before leaving during core upgrade		Upgrade/Install	4.1.6	normal	normal		enhancement	new		2015-08-06T05:19:32Z	2024-03-12T19:39:16Z	Yesterday I was updating a test site (from 4.1.x to 4.2.x) using update-core.php  and I accidentally clicked 'back' button during installation, which aborted the update process when it wasn't finished yet. This resulted in breaking the site completely (call to undefined function wp() ). It could have been easily prevented by simple beforeunload prompt.	helium-3
	23709	Relax wildcard restrictions for populate_network() when installing in subdomain mode		Upgrade/Install	3.5	normal	normal		enhancement	assigned		2013-03-06T20:03:49Z	2019-06-04T21:08:25Z	"I ran into the issue while trying to use wp-cli install-network command with --subdomains support.

Underlying core issue is that populate_network is trying to check if wildcard subdomain is accessible. This makes sense for large networks, but might not work with certain setups, or not needed for small sites.

Proposed solution is to add extra arg for populate_network() $wildcard_check with default to true. See attached patch"	rinatkhaziev
	31902	Shiny Updates: Language packs updates		Upgrade/Install	4.2	normal	normal		enhancement	new		2015-04-06T10:25:26Z	2023-07-09T16:13:52Z	"Installing or updating plugin

WP 4.1: There is also language packs update triggered and users are notified what was updated.

Current trunk: There is only message ""Updated!"" and nobody knows if language packs update was also triggered and which languages were updated?"	pavelevap
	29260	Update site transients response differences		Upgrade/Install	2.8	lowest	normal		enhancement	new		2014-08-19T06:18:59Z	2019-06-05T06:45:21Z	"Why do the update_themes and update_plugins have a different response type, one is an stdObject another is a simple array.

That being said the plugin and theme upgrader have the same discordance. Please   make them so they are consistent with one another. "	krotz
	22076	WP Upgrader: update_bulk_plugins_complete_actions and update_bulk_theme_complete_actions should pass information about all plugins/themes to the filter		Upgrade/Install	3.0	normal	normal		enhancement	new		2012-10-02T07:56:19Z	2019-06-04T21:07:48Z	"In class-wp-upgrader.php, line 1214 there is this line:

{{{
$update_actions = apply_filters('update_plugin_complete_actions', $update_actions, $this->plugin);
}}}

When adding a filter to it like this:

{{{
add_filter('update_bulk_plugins_complete_actions','test_filter',99,2);

function test_filter( $update_actions, $plugins ) {
    echo print_r( $plugins, 1);
    return $update_actions;
}
}}}

Only the last updated plugin info will be printed. However, it should contain information about all the plugins that were updated (since we are dealing with a bulk upgrade here)."	ragulka
	53575	Filename creation with special characters fails		Upload	5.7.2	normal	normal		defect (bug)	reopened		2021-07-01T20:11:22Z	2021-12-12T14:36:29Z	"Hi,

when uploading a file which name contains a left and right double quotation mark, e. g. „Test“.pdf, WordPress will remove the left double quotation mark in the names of the generated files:
- „Test.pdf
- „Test-pdf.jpg
- „Test-pdf-106x150.jpg
- etc.
When I look into my media store I can see older uploads where this issue didn't occur. So I think it's a new bug.

BR,
Mac"	mac79
	33759	An admin changing an email/password should not generate a notification		Users	4.3	normal	normal		defect (bug)	new		2015-09-07T05:01:06Z	2019-06-05T06:41:35Z	"Branched off from #33504 as requested.

In 4.3, email notifications are now sent to a user whenever their email or password is changed. The reasoning behind the was solely from a security perspective:

''so if someone hijacks your browser session and changes these items, you’ll be notified that it happened, and you can take action.''

If the person changing the email/password is an admin, this notification does not provide any security benefits or useful information - all is done is mislead/confuse the user.

It does not provide security benefits because an admin has full control of the site and rights to do whatever they want - they could delete every user account on the site and create their own if they wanted to.

It is misleading/confusing because the notification implies this should only be happening if they changed the information themselves: ''If you did not change your password, please contact the Site Administrator''.

A common use-case where an admin is changing the password of a user occurs after a WordPress import - you are prompted to change all imported users' passwords. Other than editing site code to add filters, you can no longer do so without everyone getting an email they won't understand - even if you are setting their passwords to same as their originals.

For these reasons, I suggest altering the code to not send these notifications if the change of email/password was instigated by someone with admin rights."	smerriman
	15001	Duplication and incompatibilities in register_new_user() and wp_insert_user()		Users	3.0	normal	normal		defect (bug)	new	has-patch	2010-09-30T19:16:11Z	2026-11-10T07:58:49Z	"As a result of [12778], the commit of a patch that was part of #11644 (the MU-merge ticket), `wp_insert_user()` was modified to introduce user verification checks.  The addition of these checks also introduced a number of duplications and incompatibilities between it and `register_new_user()`.  (Bear in mind that `register_new_user()` calls `wp_create_user()` which calls `wp_insert_user()`.)

These issues include:

 * Duplication (both run-time execution and code): both functions perform `username_exists()` and `email_exists()` checks.  Ideally, we should only perform each check once, and from a single piece of code.
 * Whereas both functions perform `username_exists()` and `email_exists()` checks, `register_new_user()` performs more checks (empty_username, invalid_username, empty_email, invalid_email).  If the former 2 are being checked, all 6 criteria should be checked.
 * `wp_insert_user()` can now return a WP_Error object, but `register_new_user()` can't handle it (I reported this in #14290)
 * `register_new_user()` generates a new generic error if `wp_create_user()` (via `wp_insert_user()`) returns an error (assuming proper patch #14290), rather than passing along the more specific error it was told about
If an error is returned by `wp_create_user()`, `register_new_user()` throws a generic 'registerfail' error (`'<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a href=""mailto:%s"">webmaster</a> !'`).  However, most likely it received a more informative WP_Error object.
 * `register_new_user()` allows errors to be suppressed via filters, but `wp_insert_user()` does not
`register_new_user()` has the filter 'registration_errors' which allows plugins to suppress any encountered errors.  Having done so, `register_new_users()`'s subsequent call to `wp_create_user()` can generate an error (of the type already suppressed) which is then un-suppressable.  This renders the 'registration_errors' filter useless for the username_exists and email_exists errors (and possibly other in the future).

----

These different issues may warrant separate tickets, but cumulatively I think they point to the need to refactor `register_new_user()` and `wp_insert_user()` to be more efficient and compatible.

This is a rare instance where I don't include an immediate patch for a ticket, but I wanted to get it out there and see if we can try and get these fixed for 3.1.
"	coffee2code
	27239	Registration email not sent (multisite subdirectory)		Users	3.8.1	normal	normal		defect (bug)	new		2014-02-28T17:59:42Z	2019-06-05T06:39:48Z	"I am trying to add new user:

- wp-admin/user-new.php

When I add new user from site administration, there is no notification email sent to activate account.

- wp-admin/network/user-new.php

When I add new user from network administration, information email is sent. But then I have to add this user to specific site and there is another notification email sent. Everything works well."	pavelevap
	35450	Relocate user's primary_blog setting to user profile		Users	3.0	normal	normal		defect (bug)	new		2016-01-13T21:59:02Z	2019-06-05T06:43:02Z	"In multisite installations, the `primary_blog` user setting is an anomaly:

* It's located in `my-sites.php` vs. `user-edit.php` or `profile.php`.
* It's both presented and conditionally saved in `choose_primary_blog()` vs. in `wp_insert_user()` along with the rest of a user's data & meta
* It uses the `_user_option()` functions with the `$global` flag set to true, instead of `_user_meta()` functions. At a glance, the code makes this look like `primary_blog` might be a per-site setting, which wouldn't make any sense.

I'd like to suggest we do a few things to improve this setting:

* Move this setting into the user profile, and remove it from `my-sites.php`
* Move the saving of the `primary_blog` user meta key into `wp_insert_user()` so it can added to a user a object
* Introduce a new function, similar to `choose_primary_blog()`, for displaying this field in the user profile
* Switch to using the `user_meta()` functions, away from `user_option()`"	johnjamesjacoby
	18499	User count / roles inconsistency if roles no longer exist but users still do		Users	3.2.1	normal	normal		defect (bug)	new	has-patch	2011-08-23T13:53:43Z	2026-10-16T15:06:07Z	"The count_users logic (from line 833 onwards in wp-includes/user.php) is based on user roles.

If the roles were created by a theme or plugin which is then deactivated, wordpress loses count of the users, but still lists them.  The behaviour is confusing and inconsistent.  See attached screenshot.

1) the user count total at the top (all) ignores the users with no 'active' role, however users are all listed (the users are shown as 'no role' in the list)

2) the old roles are shown in the dropdown selection however are not listed in the totals


Suggestions:

1) the total user count should at the very least be correct wrt to the list.

2) Perhaps a total of 'no role' users could/should be shown (since the users are listed anyway ?)

3) If the old roles are shown in the dropdown, perhaps they should be flagged as inactive in some way?"	anmari
	36405	User creation fails for users with long names.		Users		normal	normal		defect (bug)	new	has-patch	2016-04-03T05:49:00Z	2025-04-07T07:52:06Z	"Summary: When creating a user with a long first or last name, the query that inserts the user into the DB is assumed to have succeeded, but that fact is never verified.

Sign in as an admin and create a new user, giving it the first name `ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQ` (or any 251-byte string). After submitting the form, you'll see a handful of error messages (line numbers are from trunk just now, but I can reproduce the bug as far back as 4.2.1):

{{{
Notice: Trying to get property of non-object in wp-includes/pluggable.php on line 1716
Notice: Trying to get property of non-object in wp-includes/pluggable.php on line 1717
Notice: Trying to get property of non-object in wp-includes/pluggable.php on line 1730
Notice: Trying to get property of non-object in wp-includes/pluggable.php on line 1738
Notice: Trying to get property of non-object in wp-includes/pluggable.php on line 1740
Notice: Trying to get property of non-object in wp-includes/pluggable.php on line 1742
Notice: Trying to get property of non-object in wp-includes/pluggable.php on line 1746

Warning: Cannot modify header information - headers already sent by (output started at wp-includes/pluggable.php:1716) in wp-includes/pluggable.php on line 1171
}}}

What happens is that the `$wpdb->insert( $wpdb->users, $data + compact( 'user_login' ) );` call in `wp_insert_user()` fails, but there's no check to ensure that it succeeded, so the code proceeds to try and create a new `WP_User` with ID `0`. This results in unexpected behavior, like sending a ""New User Registration"" email to the admin with blank ""Username"" and ""Email"" values.

The failure is due to `$wpdb->process_fields()` calling `$wpdb->strip_invalid_text()`, which truncates the `display_name` field (because the `display_name` field only allows 250 bytes), and because it then doesn't match the value passed into `$wpdb->process_fields()`, it returns `false`. So this isn't so much a bug about a text string that's too long, it's really a bug about not checking the return value of `$wpdb->insert()`.

I think the resolution of #10377 is probably the same kind of approach that could be taken here, since the problems seem similar."	cfinke
	36303	edit_user() will give PHP Notices if user_login is unset on add.		Users	4.4.2	normal	normal		defect (bug)	new	has-patch	2016-03-23T02:03:53Z	2026-10-25T19:16:57Z	If you call edit_user() programmatically to add a user then if `$_POST['user_login']` isn't set you'll get multiple PHP Notices of `Undefined property: stdClass::$user_login` (as well as a WP error message). The attached patch sets it to blank on add if unset (the WP error message will still occur). 	gitlost
	36556	has_cap was called with an argument		Users	4.4.2	normal	normal		defect (bug)	new		2016-04-17T04:14:45Z	2019-06-05T06:44:17Z	"I am seeing this error message in one of the site

Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in ~/wp-includes/functions.php on line 3737

I understand it's probably because of one of the plugin or theme probably called a numeric user level instead of a capability name. But maybe we could create a backfill kind of approach here. "	Asif2BD
	37202	the_archive_title() doesn't output the author's display name if that author hasn't posted		Users	4.5.3	normal	normal		defect (bug)	new	reporter-feedback	2016-06-27T18:25:38Z	2025-06-10T08:11:09Z	"In my archive.php template, if I do this:

{{{
get_header();
the_archive_title( '<h1>', '</h1>' );
// Rest of code...
}}}

and then take a look at example.com/author/joebloggs, I expect to see:

 = Author: Joe Bloggs = 

The problem is if joebloggs hasn't posted yet, I see this:

= Author: ="	henry.wright
	54093	wp_ajax_send_password_reset() calls retrieve_password() with the user_login but retrieve_password first uses email to find user		Users	5.9	normal	normal		defect (bug)	reopened	has-patch	2021-09-08T20:02:49Z	2021-09-08T21:34:58Z	"In the function wp_ajax_send_password_reset() calls retrieve_password() with the user_login but retrieve_password first tries to use email to find user for falling back to user_login 

So if there is an @ in the user_login value this is used to attempt to find user by email address as the user_login is not logged to the user_email address this fails 

The fix in this patch is to always pass the email (if not empty) "	pbearne
	13339	Add hook on network admin user forms		Users		normal	normal		enhancement	new		2010-05-11T11:45:37Z	2019-06-05T06:37:25Z	"On WP 3.0 it is possible to add new users as Super Admin, but they do not really assign each instance. So it would be useful when creating the user, if you have a selection of instances that are created and then selecting one with the checkbox where the user should get access.

Maybe it is possible to add a hook for add own fields, similar the possibilies on user-edit.php for profile fields."	bueltge
	37200	Add wrappers with IDs to user-edit.php		Users	4.6	normal	normal		enhancement	new		2016-06-27T17:51:33Z	2019-06-05T06:44:27Z	"The HTML markup of the user edit screen has been missing some classes and IDs that would make it easier to hide different sections. An earlier patch #29348 introduced ids for the `<tr>` elements but there is still more to do.

The different sections have all `<h2>` headings and `<table class=""form-table"">` tables. It's hard to select these sections with CSS or JS because there is no identifiers. To take the initiative from #29348 to a bit further, I would add wrapper `<div>` elements to these sections.

I used following naming:
Section title: `Additional Capabilities`
Section wrapper id: `user-additional-capabilities-section`

This way, the naming is simalar to the `<tr>` wrappers (like ""user-capabilities-wrap"") but has it's own logic that separates these two. 

This patch makes it easy to hide the title of a section or hide the whole table of chosen section."	TeemuSuoranta
	23857	Delete User Should Delete Comments		Users	3.5	normal	normal		enhancement	new		2013-03-25T07:10:55Z	2019-06-05T06:39:10Z	The delete user function should also delete that user's comments or attribute that users comments to the person specified. That way, deletion of accounts goes a lot smoother.	jamcat22
	31186	Get more info about the modified author		Users	4.2	normal	normal		enhancement	new	has-patch	2015-01-30T19:35:32Z	2019-06-05T06:40:37Z	Let's let the developers to have access to all the modified author meta not just  the display name.Using the function get_the_modified_author() .	alexandruias
	31106	Introduce nicename_exists		Users		normal	normal		enhancement	new	has-patch	2015-01-23T16:59:12Z	2019-06-05T06:40:32Z	"Currently there are functions for username_exists and email_exists, but none for nicename_exists. Patch introduces nicename_exists with accompanying unit tests.

Related: #30647"	voldemortensen
	22328	Pass reset password URI to retrieve_password_message filter		Users	2.8	normal	normal		enhancement	new	needs-refresh	2012-10-30T23:34:17Z	2026-06-12T18:10:16Z	"The arguments for the <code>retrieve_password_message</code> filter are the message itself and the reset key. However the URI requires the user login as well in order to be valid, thus we cannot regenerate the password reset link without it.

Proposed solution - pass the reset URI instead of just the key."	ejdanderson
	23413	Provide query result data to custom user columns		Users		normal	normal		enhancement	new	dev-feedback	2013-02-07T15:22:53Z	2019-06-05T06:39:04Z	"When the filter manage_users_custom_column is triggered, it sends an empty string for the value field.

Since it's easy enough to extend the WP_User_Query with extra fields, it would be good to have those fields passed through if they exist to save having to requery the database with the user_id parameter to get the data.

I have attached a patch to show what I mean."	JohnC28
	21910	wpmu_create_user() standardization		Users	3.0	normal	normal		enhancement	new		2012-09-17T18:03:24Z	2019-06-05T06:38:47Z	"There seems to be some inconsistencies between wpmu_create_user(), create_user(), and wp_insert_user(). The former two are wrappers, and do different things but potential to consolidate and clean up some old code.

Per Nacin:
>nacin: wpmu_create_user() should probably just go away.

>nacin: fairly useless function

>nacin: by default, it looks like wp_insert_user() would create a role-less user.

>nacin: as would wp_create_user()

Looking at wp_insert_user() it sets the default role if none is provided, where wpmu_create_user() would actually delete the default roles and caps. 

Although, I'm not really sure there's a use case where you'd be using both the wpmu_new_user and user_register hooks simultaneously so possibly depreciate the former in favor of the latter. 

One real issue with wpmu_create_user is that it returns false instead of the WP_Error object which is probably not desired since the error could be useful. The false return is used in wpmu_activate_signup() to either set the returned ID or create it's own WP_Error. 

Lastly... documentation for create_user says it returns the ID, but it looks like it could potentially also return a WP_Error object. Didn't test, but possible documentation fix there. 
"	ryanduff
	34821	Allow creating users without an email address		Users	4.3.1	normal	normal		feature request	new		2015-12-01T16:33:55Z	2019-06-05T06:42:24Z	"My current use case is kind of a family history website. It would be nice to get every family member an account, but some don't even have an email address and it is not necessary anyway, or is it?.

Several workarounds have been suggested on several forums, including (A) fake emails, (2) the ""Allow Multiple Accounts"" plugin for using one email for all and (3) some hackery that I wouldn't want to try. ;)

[https://wordpress.org/support/topic/add-user-without-email-adress]"	stevenbauers
	21396	Categories widget reports categories without posts when they have custom posts		Widgets	3.4	normal	normal		defect (bug)	new		2012-07-27T02:36:46Z	2019-06-05T06:38:44Z	"This problem may be related to #14084, but this report is specific to the behaviour of the Categories Widget.

- Create a custom post type eg. ""Products""
- Create a category eg. ""Photographs""
- Add some posts of type Products, assign them to category Photographs
- go to the blog page and the Categories widget lists Photographs as a category
- click on Photographs
- the ""Nothing Found"" post is shown.

There are no normal posts of category Photographs, but the widget lists a category that returns nothing.  I would have expected the widget not to list a category that has no normal posts.
"	pkwooster
	27236	Custom Widgets lost when theme is re-activated while the widget plugin is inactive		Widgets	3.8.1	normal	normal		defect (bug)	new		2014-02-28T15:27:29Z	2019-06-05T06:39:46Z	"It could be a rare issue for others, but it's a regular process for my use-case. 

Custom Widgets are no longer shown in the widget area when theme is de-activated and re-activated while the plugin that provided one of the widgets is inactive.

Steps: (Assumes, twenty fourteen is active)

1. Install Slim Jetpack plugin (or any other plugin that provides a widget). I enabled  the Extra Sidebar Widgets from Settings > Slim Jetpack.

2. Add one of the Slim Jetpack widgets to the ""Primary Sidebar"" for example ""Gravatar Profile (Jetpack)"".

3. De-active Slim Jetpack.

4. Activate ""Twenty Thirteen"" theme. 

5. Activate ""Twenty Fourteen"" theme.

6. Activate ""Slim Jetpack"". Unfortunately, the custom widget is lost. 

If you had normally de-activated and re-activated Slim Jetpacks, the Primary Sidebar would be fine. If you had done 4 and 5 without 3, everything would be good. 

But doing the steps as above, the widget is no longer in the sidebar - not even under Inactive Widgets.
"	asadkn
	53625	The 'explode' function does not work on widget block editor.		Widgets	5.8	normal	major		defect (bug)	reopened	dev-feedback	2021-07-08T13:47:39Z	2021-07-16T14:08:03Z	"The `explode()` function does not seem to be working on the new Widget block editor. I am testing it on the RC-2 version.

I have created a simple widget that accepts Title, Description, and multiple selections from a Checkbox list items (Screenshots attached)

On selecting checkboxes, the values form a comma-separated string (e.g. 123456, 9822310, 457790 etc.) and stored in a textbox.

Inside the `update()` function, I am exploding this string and storing the array as `$instance['groups']` element, which in turn gets saved in the database (`wp_options` table).

The functionality works as expected if I have the `widgets-block-editor` support disabled. But when enabled, the `explode()` function is not working and nothing is in `$instance['groups]`.

{{{#!php
<?php
public function update( $new_instance, $old_instance ) {
   $instance = $old_instance;
		
   $instance['title']  = strip_tags( $new_instance['title'] );
   $instance['about']  = strip_tags( $new_instance['about'] );
		
   $groups             = $new_instance['groups'];

   // the following line is not working and creating an empty array
   // when widgets-block-editor support is enabled.
   $instance['groups'] = array_pop ( explode( ',', $groups ) );

		
   return $instance;
}
}}}


Database:


{{{
a:2:{i:2;a:3:{s:5:""title"";s:15:""Product Channel"";s:5:""about"";s:41:""When you subscribe to our Product Channel"";s:6:""groups"";a:3:{i:0;s:6:""237500"";i:1;s:6:""457844"";}}s:12:""_multiwidget"";i:1;}
}}}


However, the values get stored with block editor support enabled as a comma-separated string without the `explode()` function, i.e.


{{{#!php
<?php
public function update( $new_instance, $old_instance ) {
   $instance = $old_instance;
		
   $instance['title']  = strip_tags( $new_instance['title'] );
   $instance['about']  = strip_tags( $new_instance['about'] );
   $instance['groups'] = $new_instance['groups'];

   return $instance;
}
}}}
"	subrataemfluence
	33180	Widgets not preserved after switching theme and deactivate plugins		Widgets	2.8	normal	normal		defect (bug)	new	dev-feedback	2015-07-29T17:59:40Z	2019-06-05T06:41:16Z	"Steps to reproduce:

- Activate any plugin with available widget.
- Use this widget in sidebar of actual theme.
- Deactivate all plugins.
- Switch theme (for example Twenty Fifteen).
Note: These steps are frequently used for debugging problems.
- Switch back to previous theme.
- Activate all plugins.

Expected result: Widget is still active and visible.

Current result: Widget is missing. When used together with any core widget, then this widget is preserved during workflow above."	pavelevap
	53779	Youtube responsive widget broken with new widget layout		Widgets	5.8	normal	normal		defect (bug)	reopened		2021-07-26T08:37:06Z	2025-05-12T01:37:51Z	"When clicking on widget, I only get the large extended set of options (one normally only gets the URL or shortcode field).  Also, when clicking on ""update"", it says ""saving"" but never returns."	pigdog234
	33602	is_active_sidebar returns true when widget has been deactivated		Widgets	4.3	normal	normal		defect (bug)	assigned	reporter-feedback	2015-08-30T03:10:32Z	2019-06-05T06:41:30Z	"When I activate a plugin (in this case Ultimate Social Media and Share icons) 
Add the widget to my sidebar area
Deactivate the plugin
The widget is no longer visible in the sidebar 
BUT
is_active_sidebar still returns true"	karlikdesign
	31960	Archives widget li should have informative css classes		Widgets	4.1.1	normal	normal		enhancement	new	has-patch	2015-04-13T13:27:51Z	2019-06-05T06:40:52Z	"The archives widget should add classes `m-item` and `m-item-XXXX` to allow better styling and ajax functionality, as well as being consistent with other widgets (e.g. categories widget provides such classes as `cat-item` and `cat-item-XX` with ID).

Workaround: it is possible to customize the archive link getter to add the required css classes:

{{{#!php
add_filter( 'get_archives_link', function($link_html) {
	preg_match('/m=([0-9]+)/', $link_html, $m);
	$month= $m[1];
	if ($month) {
		return preg_replace('/<li>/', '<li class=""m-item m-item-' . $month . '"">', $link_html);	
	}	
	else {
		return $link_html;
	}
});
}}}"	basteln3rk
	28188	Make Natively-Outputted .widget_rss CSS Selector HTML5-Appropriate		Widgets	3.9	normal	normal		enhancement	new		2014-05-09T05:57:31Z	2019-06-05T06:40:00Z	"In regards to the natively outputted RSS Widget entitled `.widget_rss`, the post Author's name is currently outputted as wrapped in a `<cite>` tag.

An example of a natively outputted RSS feed block looks something like this for reference:

`<a class='rsswidget' href='http://blah.net/2014/04/14/blahblah/'>Example RSSed Post</a> <span class=""rss-date"">April 14, 2014</span> <div class=""rssSummary"">This is the space where the RSSed information appears. […]</div> <cite>Author</cite>` 

Please note that the author of the RSSed post is being natively outputted as wrapped in the `<cite>` tag.

As per #27944 (ocean90's comment in particular) which references #24522 (re: proper way to tag comment authors), the natively outputted CSS selectors for the `.widget_rss` widget probably ought to be wrapped in something like: `<span class=""comment-author"">` as opposed to `<cite>`.

Reiterating what ocean90 said: The `<cite>` tag is supposed to be used for a cited block of text (like a citation) rather than used to tag the/an author.

Additionally, changing the `<cite>` to `<span class=""comment-author"">` will provide additional sitewide code uniformity (there's a word or phrase I am looking for and I can't remember it!) for a natively/vanilla outputted WordPress site (and especially if using a default WordPress theme) re: how author names are wrapped in tags.

Thanks!"	EMG
	32337	Menu and widget items removal without toggling		Widgets		normal	normal		enhancement	new		2015-05-11T07:23:29Z	2019-06-05T06:40:57Z	"I have a proposal for Widgets and Menu sections in WordPress Dashboard. At first I have posted this in ideas section of wordpress.org and admin told me to post it here, so here it is.

I think that it would be great if there is an option to delete (remove) menu or widget item without toggling and opening their content. Maybe an X icon at the end. It would be really useful, much faster and easier to manage big menus and widgets.

Here are the screenshots of what i had in mind:

[http://s7.postimg.org/9obhywijv/menu_delete.jpg]

[http://s17.postimg.org/44ppdp7j3/sidebar_widgets_delete.jpg]

I hope this sounds good :)

All the best!"	cookie_pa
	35456	New args for apply_filters in WP_Widget_Archives		Widgets		normal	normal		enhancement	new	needs-docs	2016-01-14T14:24:23Z	2019-06-05T06:43:05Z	"I suggest add new arguments for Widget. For example I can use archive widget for another post types:

{{{#!php
<?php

/**
 * Filter the arguments for the Archives widget.
 *
 * @since 2.8.0
 * @since 4.5.0 Added new params $widget_args, $instance and $widget_archive
 *
 * @see wp_get_archives()
 *
 * @param array $args An array of Archives option arguments.
 * @param array $widget_args Array of arguments including 'before_title', 'after_title',
 *                           'before_widget', and 'after_widget'.
 * @param array $instance Settings for the current Archives widget instance.
 * @param WP_Widget_Archives $widget_archive Object Current Widget
 */

add_filter( 'widget_archives_args', function ( $args, $widget_args, $instance, $widget ) {

	if ( $widget_args['widget_id'] == 'archives-2' ) {
		$args['post_type'] = 'page';
	}

	return $args;
}, 10, 4 );
}}}

I know that date archives is not supported for other post type but this is example (but I can make support for other post type :) )"	sebastian.pisula
	35475	New functions: `current_widget` and `current_widget_id`		Widgets		normal	normal		enhancement	reopened	reporter-feedback	2016-01-15T16:08:56Z	2019-06-05T06:43:09Z	"This is alternative for ticket #35456. In widgets we can use different filters and actions. For example we use the_title filter but in widget we don't want (this is abstract example). So:

{{{#!php
<?php
if(current_widget() == 'archive'){
return 'test';
}

return 'test2';
}}}

Other example - when can use filter from #35456 ticket:

{{{#!php
<?php

add_filter( 'widget_archives_args', function ( $args ) {

        if ( current_widget_id() == 'archives-2' ) {
                $args['post_type'] = 'page';
        }

        return $args;
}, 10 );
}}}
"	sebastian.pisula
	35524	Overwrite default widget templates		Widgets		normal	normal		enhancement	new		2016-01-19T10:02:19Z	2019-06-05T06:43:12Z	"I have two proposal for layout in default widget. I think that developer should have possibility to overwrite widget layout. I suggest value of widget method add to new directory: wp-includes/widget-templates and add if:

{{{#!php
<?php
public function widget( $args, $instance ) {

		$widget_template = 'widget-templates/recent-posts.php';

		if ( $template = locate_template( $widget_template ) ) {
			include $template;
		} else {
			include ABSPATH . WPINC . '/' . $widget_template;
		}
	}
}}}

Developer can overwrite widget layout in theme. "	sebastian.pisula
	17201	dynamic_sidebar performance		Widgets	3.1	normal	normal		enhancement	reopened	has-patch	2011-04-21T07:48:22Z	2019-06-05T06:37:57Z	"I've got a few dynamic sidebars (say 6 or 7) and the dynamic_sidebar function spends 1/4 of a second only calling sanitize_title.

See the piece of code on wp-includes/widgets.php:

{{{
	if ( is_int($index) ) {
		$index = ""sidebar-$index"";
	} else {
		$index = sanitize_title($index);
		foreach ( (array) $wp_registered_sidebars as $key => $value ) {
			if ( sanitize_title($value['name']) == $index ) {
				$index = $key;
				break;
			}
		}
	}
}}}

That's occurs evenf if you provide an id, and not the sidebar name.
We could avoid that by checking before trying to use the sidebar name if a sidebar exists with that id.

Like so...
{{{
	if ( is_int($index) ) {
		$index = ""sidebar-$index"";
	} elseif ( empty($wp_registered_sidebars[$index]) || !array_key_exists($index, $sidebars_widgets) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index]) ) {
		$index = sanitize_title($index);
		foreach ( (array) $wp_registered_sidebars as $key => $value ) {
			if ( sanitize_title($value['name']) == $index ) {
				$index = $key;
				break;
			}
		}
	}
}}}"	mrubiolvn
	57224	tests for wp_widgets_add_menu()		Widgets		normal	normal		enhancement	reopened	has-patch	2022-11-28T23:42:31Z	2026-11-09T19:05:05Z		pbearne
	17541	Blogger-XMLPRC API does not work with Multisite/SSL/DMZ combination	westi*	XML-RPC	3.2	normal	major		defect (bug)	accepted	has-patch	2011-05-23T07:26:29Z	2019-06-05T06:38:11Z	"I have the following setup:
My WordPress Blogs (multisite) are set up behind a firewall that exposes the public address via SSL. Inside my DMZ I'm only using HTTP, so that's what WordPress sees. When I now try to access the blogger.getUsersBlogs XMLPRC-API, I get an empty result back.

I analyzed the WordPress source code and found out that the blogger.getUsersBlogs method in the file wp-includes\class-wp-xmlrpc-server.php uses another XMLRPC call to the wp.getUsersBlogs method in case of the multisite. I further checked and found out that this appears to be the only case in which WordPress executes a remote call itself to sevice the request. I then replaced the logic in _multisite_getUsersBlogs with the multisite part from wp_getUsersBlogs and it worked.

I aso found an issue that might be related: http://core.trac.wordpress.org/ticket/16402
But since the source code in the trunk still uses the regular IXR_Client, I'm not sure if this would fix the issue.

I attached my fix as a patch, but it's not refactored to remove code duplication since I don't have a dev-environment set up for WordPress.

Michael"	michael_k
	25037	XML-RPC : Can't remove all the categories from a post by using metaWeblog.editPost		XML-RPC	3.6	normal	normal		defect (bug)	assigned	has-patch	2013-08-14T17:41:00Z	2026-10-16T07:26:33Z	"Seems that you can't remove all the categories from a post by calling mw_editPost.
I tried both passing an empty array, or skipping the entry 'categories', in the content struct, but none of them worked. The post still has the previous categories attached to it."	daniloercoli
	32126	XML-RPC stopped working with 4.2 in a cross-domain scenario		XML-RPC	4.2	normal	normal		defect (bug)	new		2015-04-24T19:15:36Z	2019-06-05T06:40:55Z	"Bug fix #20986 in wp-includes/class-IXR.php unconditionally returns status 405 to all request methods except POST.  Additionally, an invalid Allow: header is returned.

But OPTIONS is a perfectly valid preflight request sent by XML-RPC clients, especially in a cross-domain scenario, to determine if a subsequent request (like POST) will be allowed - or if a cross-domain request will be allowed.
Unconditionally returning 405 prevents those clients from subsequently sending their POST request.  This broke my XML-RPC client, which previously worked in 4.1.3.

Proposed fix: respond correctly to an OPTIONS request, by examining (any) Access-Control-Request-Methods: header for PUT, and returning an Access-Control-Allowed-Methods: header containing PUT with status 200.

Request for enhancement: fully support CORS by adding an admin dialog which defines what hosts (or none, or all) will be accepted for cross-domain requests, and return the appropriate Access-Control-Allow-Origin: header."	flymike
	25016	"XMLRPC method ""wp.getUsers"" not working correctly in Multisite"		XML-RPC	3.5	normal	normal		defect (bug)	assigned	has-patch	2013-08-12T18:53:13Z	2026-10-14T14:28:20Z	"Hi,

I have been testing some functionality in our app which uses XMLRPC, and it appears that I've found a bug with how the ""wp.getUsers"" method works on WordPress.com blogs.

Basically, the blog I'm testing this on has 3 administrators. Regardless of which one of those administrators' credentials I use, whenever we call the ""wp.getUsers"" method we ONLY get details for the SAME user back. So, if we have 3 admins ('admin1', 'admin2', 'admin2'), whenever 'admin1' queries for all users, they only get back 'admin1'.

I also tried adding a different type of user, specifically an author, and then used any of the above-mentioned administrator credentials to try and retrieve info on that author, but nothing is returned.

It should be noted that all the above functionality works as it should on self-hosted blog, just NOT on WordPress.com blogs.

"	dinomic
	26318	XMLRPC wp.uploadFile fails to place media in sub blogs		XML-RPC	3.7.1	normal	normal		defect (bug)	new		2013-11-29T12:02:39Z	2019-06-05T06:39:38Z	"Using an XMLRPC call to mw_newMediaObject, uploaded files do not land in the media library of the target blog, for example blog_id 2. The uploaded files always land in the wp-content/uploads/yyyy/mm folder. And they also appear in the media library for that blog too, via the UI.

If you trace the blog_ID to class-wp-xmlrpc-server.php you can see the method is receiving the correct value (eg. 2) at that point.

This affects (at least) a subdomain-type of installation. The htaccess is standard from the WP codex.

Occurs when blog_ID is passed to the rpc thus:
{{{
require_once 'IXR_Library.php';
$client = new IXR_Client('http://my-site.com/xmlrpc.php');
$params = array('name' => 'imgfile.png', 
             'type' => 'image/png', 
             'bits' => new IXR_Base64($bits), 
             'overwrite' => false);
$client->query('wp.uploadFile',2, 'admin', 'password', $params);
}}}

The xmlrpc returns a packet containing this data:
{{{
array (
        'id' => '30',
        'file' => 'test2_889047515_2.png',
        'url' => 'http://my-site.com/wp-content/uploads/2013/11/imgfile.png',
        'type' => 'image/png',
      )
}}}

"	daki-san
	33389	posts contains png images via XMLRPC error response		XML-RPC	4.2	normal	normal		defect (bug)	new		2015-08-17T08:41:39Z	2019-06-05T06:41:29Z	"file:
wp-includes/class-wp-image-editor.php
line:
$result = call_user_func_array( $function, $arguments );


[[Image(http://ww3.sinaimg.cn/large/6dd29ac7jw1ev5p7avr0wj20ne0g9adk.jpg)]]
[[Image(http://ww1.sinaimg.cn/large/6dd29ac7jw1ev5p91135lj20m30d0wh7.jpg)]]

string(8) ""imagepng""
array(2) {
  [0]=>
  resource(167) of type (gd)
  [1]=>
  NULL
}

php function imagepng:
filename
The path to save the file to. If not set or NULL, the raw image stream will be outputted directly.



[[Image(http://ww3.sinaimg.cn/large/6dd29ac7jw1ev5p500okij20aa06wwf9.jpg)]]"	zhizuzhefu
	32863	set_custom_fields function in wp_xmlrpc_server class		XML-RPC	4.2.2	normal	trivial		defect (bug)	new		2015-07-02T10:04:32Z	2019-06-05T06:41:07Z	"Hi,

I was working with wp_xmlrpc_server class to insert and update woocommerce products but i found that my custom fields are not working properly. When i inspected the code of function set_custom_fields , i noticed that we are using wp_unslash to remove underscores from custom field keys. So keys like _price , _quantity and _stock were not working for the product custom post type. Secondly we are using add_post_meta to insert the meta data. Can we change it to the update_post_meta ?

I have attached the updated function.Please test it and let me know.


{{{
public function set_custom_fields($post_id, $fields) {
	$post_id = (int) $post_id;

	foreach ( (array) $fields as $meta ) {
		if ( isset($meta['id']) ) {
			$meta['id'] = (int) $meta['id'];
			$pmeta = get_metadata_by_mid( 'post', $meta['id'] );
			if ( isset($meta['key']) ) {
				$meta['key'] = ( $meta['key'] );
				if ( $meta['key'] !== $pmeta->meta_key )
					continue;
				$meta['value'] = ( $meta['value'] );
				if ( current_user_can( 'edit_post_meta', $post_id, $meta['key'] ) )
					update_metadata_by_mid( 'post', $meta['id'], $meta['value'] );
			} elseif ( current_user_can( 'delete_post_meta', $post_id, $pmeta->meta_key ) ) {
				delete_metadata_by_mid( 'post', $meta['id'] );
			}
		} else{
			update_post_meta( $post_id, $meta['key'], $meta['value'] );
		}
	}
}
}}}


Regards,
Arif
Skype: arifamir33
"	marifamir
1	18330	Add a Class functionality to wpautop()		Formatting		normal	normal		enhancement	reopened	has-patch	2011-08-04T20:17:29Z	2023-07-25T16:42:17Z	"It would be nice to be able to add a class to <p> with wpauto as an optional arg.

"	wpsmith
1	65821	Connectors: a masked API key posted back to /wp/v2/settings overwrites the stored key		AI	7.0	normal	normal	7.3	defect (bug)	assigned	has-patch	2026-08-05T17:36:28Z	2026-10-20T10:13:23Z	"`_wp_connectors_rest_settings_dispatch()` masks connector API keys in `/wp/v2/settings` responses, but those settings are registered with `sanitize_text_field` as their sanitize callback, so nothing recognises the mask on the way back in. A client that reads settings and posts them back, the ordinary read-modify-write pattern, writes the mask over the stored key.

Reproduced on trunk (7.1-beta4-62899-src) with Akismet installed, since core registers its `wordpress_api_key` as a connector setting with `show_in_rest`:

1. Store a key: `wp option update wordpress_api_key 'ak-live-9f3b2c8d1e4a7601'`
2. `GET /wp/v2/settings` returns `wordpress_api_key: ""••••••••••••••••7601""`
3. POST that value back, 200 OK
4. The option now holds `••••••••••••••••7601`

Step 4 is with only core acting on the option. With Akismet's own `rest_post_dispatch` validation left in place the option ends up empty instead, because Akismet verifies the stored value, which is now the mask, and clears it. Removing that one filter is what leaves the mask in the option, so both outcomes come from the same write. Either way the key is gone, and because the response still shows a masked looking value, nothing on screen says so.

For `ai_provider` connectors the value that reaches validation is the mask rather than the user's key, and the same dispatch filter discards it unless validation returns exactly `true`:

{{{
if ( true !== _wp_connectors_is_ai_api_key_valid( $value, $connector_id ) ) {
	update_option( $setting_name, '' );
}}}

The `application_password` method added in 7.1 already guards against this. `wp_connectors_sanitize_application_password_credentials()` keeps the stored password when the submitted one matches the mask, and `tests/phpunit/tests/connectors/wpConnectorsSanitizeApplicationPasswordCredentials.php` covers the round trip. The `api_key` method never got the same treatment.

Patch adds `wp_connectors_sanitize_api_key()`, which returns the stored key when the submitted value is exactly that key's mask, and registers it as the sanitize callback for API key settings. Everything else still goes through `sanitize_text_field()`, so a new key still replaces the old one and an empty string still clears it.

Separate from #65551 and #65554. Both of those concern the AI validation step, neither stops the mask reaching the database, and neither applies to connectors that are not AI providers."	bejignesh
1	65340	Inform end users about the costs of using  AI API connectors		AI		normal	normal	Future Release	enhancement	new		2026-05-25T20:42:57Z	2026-11-10T16:42:08Z	"As of 7.0 users can connect to their generative AI provider API to enable AI features within plugins. The user, however, does not have any command over what requests are made and executed by plugins, neither quantity nor type, which creates a potential for excessive runaway AI bills and costs afflicted upon WordPress users. 

To address this, the Connectors screen could include an option to approve or deny what requests are sent, rate limit or control request frequency, and/or an option to cap usage once it reaches a certain amount."	amykamala
1	64749	Proposal: AI Pathfinding Assistant for WordPress Contributors		AI		normal	normal	Awaiting Review	enhancement	new		2026-02-27T08:52:59Z	2026-11-10T19:27:12Z	"I propose the creation of an AI-powered tool integrated into the WordPress ecosystem (Trac/GitHub) to act as a navigator for contributors. The goal is to remove the ""entry barrier"" of locating specific files or triage components within the massive WordPress codebase, saving countless hours of manual review and repetitive administrative tasks.

== 1. The Problem: The ""Repository Wall""
For the majority of people who are unfamiliar with the intricate structure of WordPress repositories, contributing presents a logistical challenge before a technical one:

1. Code Vastness: Locating where a specific function or style resides among thousands of files is daunting.

2. Triage Burden: Maintainers spend valuable time moving tickets to the correct component or redirecting Pull Requests (PRs) submitted to the wrong repository.

3. Contributor Friction: The fear of ""doing it wrong"" or the frustration of searching unsuccessfully for the right file actively discourages new contributions.

== 2. The Solution: AI Locator & Component Suggester
Implementing a Natural Language Interface (LLM) trained on the WordPress repository structure in GitHub and the Trac component hierarchy.

Primary Use Cases:

1. File Localization:

User: ""I've found a styling issue with the 'Publish' button in the editor.""

AI Response: ""That file is located at wp-admin/js/editor.js within the WordPress/gutenberg repository.""

2. Component Suggestion:
User: ""I found a bug in how images are displayed in the theme gallery.""

AI Response: ""You should open this ticket under the 'Media' or 'Themes' component.""

== 3. Key Benefits
1. Team Efficiency: Dramatically reduces the time spent manually triaging and moving tickets.

2. Democratizing Contribution: Empowers non-technical profiles—or developers unfamiliar with the vast file structure—to find exactly where to propose changes or suggestions.

3. Accelerated ""Time-to-PR"": The transition from an idea to the first commit becomes nearly instantaneous."	Marc4
1	65097	Add action to `WP_AI_Client_Prompt_Builder` for builder-level configuration injection		AI		normal	normal	Future Release	feature request	new	dev-feedback	2026-04-18T08:45:07Z	2026-11-10T16:35:26Z	"== Problem ==

Currently, model selection happens in one of two places:

1. '''Inside the SDK / connector''' - provider-default model ordering. Its useful but provider-scoped, cannot express ''cross-provider'' preferences like ""use OpenAI for text, Mistral for images.""
2. '''Inside each consumer plugin''' - hardcoded `using_model_preference( 'gpt-5.4', 'claude-sonnet-4-6' )`. Fragmented, opaque to site owners, no shared coordination.

There is no third place - no site-owner-controlled layer that applies across all consumer plugins. A standalone ""preferences"" plugin can store the user's choices but has no way to inject them into builders constructed elsewhere, because no construction time hook exists.


== Proposed solution ==

Add one action at the end of `WP_AI_Client_Prompt_Builder::__construct()`, immediately after the existing default-timeout block:

{{{#!php
<?php
// In wp-includes/ai-client/class-wp-ai-client-prompt-builder.php

/**
 * Fires after a prompt builder is constructed, before any caller chaining.
 *
 * Allows plugins to apply default configuration that callers can still override via subsequent
 * fluent method calls. Because this fires at construction, any chain applied
 * by the caller takes precedence per the SDK's first-match resolution.
 *
 * @since 7.x.0
 *
 * @param WP_AI_Client_Prompt_Builder $builder The newly constructed builder.
 * @param mixed                       $prompt  The initial prompt content.
 */
do_action_ref_array( 'wp_ai_client_prompt_builder_init', array( $this, $prompt ) );
}}}

=== Caller precedence is automatic ===

{{{
1. Core constructs builder
2. wp_ai_client_default_request_timeout fires → sets timeout
3. wp_ai_client_prompt_builder_init fires → preferences plugin chains
   ->using_model_preference('gpt-5.4', 'mistral-image-v1', ...)
4. Builder returns to the caller
5. Caller chains its own potentially by a plugin allowing user's preferences
   to be set with a UI->using_model_preference('claude-sonnet-4-6').
   Could be a separate plugin for now, I have some ideas.
6. SDK's first-match resolution at generate_*() time picks the first model
   that (a) supports the requested capability and (b) has credentials.
   The caller's explicit preference wins because it's evaluated first.
}}}

== Why an Action? ==

It comes down to what listeners will dominantly do:

- Mutate via `->using_model_preference()` chains → action is the cleaner fit (no return tax, natural accumulation)
- Replace/decorate the builder → filter is required

Going towards `pre_get_posts` precedent. Core's go-to hook for ""mutate a fluent/builder-like object"" is an action, not a filter, precisely because filtering a stateful mutable object invites bugs. This is the closest analog I thought of in core. Though open to discussion for filter if the AI team prefers consistency with the existing two filters in this file

== Discussion ==

* Slack: WordPress.org `#core-ai`, thread starting 2026-04-17 (https://wordpress.slack.com/archives/C08TJ8BPULS/p1776411977337179).
"	takshil
1	66367	Abilities API: explore allowing an ability to belong to multiple categories		Abilities API	6.9	normal	normal	Awaiting Review	enhancement	new	has-patch	2026-10-22T19:41:55Z	2026-10-25T09:55:28Z	"Tracking ticket from the #core-ai chat: explore support for multiple categories per ability.

== Current behaviour ==

An ability must declare exactly one category, and it is required:

{{{#!php
// wp-includes/abilities-api/class-wp-ability.php
if ( empty( $args['category'] ) || ! is_string( $args['category'] ) ) {
	// ""The ability properties must contain a `category` string.""
}
}}}

That single slug then flows through the whole API surface:

 * `WP_Ability::get_category(): string` returns one slug.
 * `WP_Abilities_Registry::register()` rejects an ability whose category is not already registered.
 * `wp_get_abilities( array( 'category' => 'content' ) )` keeps an ability only when `$ability->get_category() === $category` — an exact, single match.
 * REST: `wp-abilities/v1/abilities` exposes `category` as a `string` response field and accepts a single-string `category` collection parameter (sanitised with `sanitize_key`); `wp-abilities/v1/categories` links each category to `…/abilities?category=<slug>`.

== Why this is limiting ==

Plenty of abilities genuinely sit in more than one bucket — generating alt text for an attachment is both ""media"" and ""content""; exporting users to CSV is both ""users"" and ""data export"". Today the registrant has to pick one, and the fact that it also belongs elsewhere is simply lost.

Because the category is the only first-class grouping dimension, every consumer that groups or filters abilities inherits that lossiness: the Abilities Explorer, MCP tool grouping in the MCP Adapter, command-palette-style UIs. Discovery degrades — the ability is invisible under a category a user would reasonably browse. Consumers route around it with naming conventions or private `meta`, which fragments across plugins instead of being solved once in core.

== Questions to settle ==

1. **Shape.** Widen `category` to accept `string|string[]`, or add a separate plural argument (e.g. `categories`) while `category` stays the single canonical/primary one? The latter keeps a stable ""which one do I display"" answer for UIs and preserves back-compat for everything reading `get_category()`.
2. **Back-compat.** `get_category(): string` has a scalar return type and cannot change. Add `get_categories(): array` alongside it, with `get_category()` continuing to return the primary?
3. **Filtering semantics.** `wp_get_abilities( array( 'category' => 'x' ) )` should presumably match when `x` is any of the ability's categories. Should it also accept a list, and if so is that OR or AND?
4. **REST.** Add a `categories` array field to the abilities schema (keeping `category` for back-compat), and decide whether the `category` collection parameter accepts multiple slugs — it is string-only today.
5. **Still required?** Keep ""at least one category"" mandatory so discovery stays guaranteed, rather than allowing an empty list.
6. **Downstream.** Impact on the MCP Adapter's grouping and on the Abilities Explorer UI.
7. **Right model?** Is a flat multi-category list the correct answer, or is the real request tags/taxonomy alongside a single primary category?

== Related ==

 * #64345 — ability names should support versioning
 * #64209 — allow abilities to be deprecated

Both touch the same registration-shape surface."	raftaar1191
1	64616	Add core/update-settings ability	jorgefilipecosta	Abilities API		normal	normal	7.3	enhancement	assigned	has-patch	2026-02-09T18:18:29Z	2026-10-16T11:21:07Z	"This ticket proposes adding a `core/update-settings` ability to complement the existing `core/get-settings` ability, providing a symmetric API for reading and writing settings through the Abilities API.

=== Proposed Solution ===

Add `core/update-settings` ability with the following characteristics:

**Input/Output Symmetry:**
- Input accepts settings grouped by registration group (same structure returned by `core/get-settings`)
- Output returns `updated_settings` (with updated values) and `validation_errors` (with error messages) in the same grouped structure

**Example Usage:**
{{{
// Get current settings
const settings = await wp.apiFetch({
  path: '/wp-abilities/v1/abilities/core/get-settings/run'
});

// Modify and update
settings.general.blogname = 'New Site Title';
await wp.apiFetch({
  path: '/wp-abilities/v1/abilities/core/update-settings/run',
  method: 'POST',
  data: { input: { settings } }
});
}}}

**Security:**
- Requires `manage_options` capability
- Only settings with `show_in_abilities = true` can be modified
- Settings must be placed in their correct registration group
- Values are validated against registered schemas
- Registered sanitize callbacks are applied

**Annotations:**
- `readonly: false` - This ability modifies settings
- `destructive: false` - Changes can be reverted
- `idempotent: true` - Same input produces same result


=== Related ===

- Part of: https://github.com/WordPress/ai/issues/40
- Inspired by: https://github.com/galatanovidiu/mcp-adapter-implementation-example
"	jorgefilipecosta
1	63771	Access denied issue with wp-includes/css/dist folder in WordPress 6.8.1-7.0		Administration	6.8.3	normal	normal	Awaiting Review	defect (bug)	new		2025-07-31T12:04:28Z	2026-08-11T16:39:41Z	"## Problem Description
WordPress 6.8.1 deployment creates wp-includes/css/dist folder with abnormal file attributes on Windows, making deletion/editing impossible and causing CSS loading failures in site-editor.php.

## Environment
- **OS**: Windows 11
- **WordPress Version**: 6.8.1
- **Web Server**: MAMP
- **PHP Version**: 8.2
- **Package**: wordpress-6.8.1.zip (deployed July 13, 2025)

## Steps to Reproduce
1. Download wordpress-6.8.1.zip package
2. Extract ZIP file to target directory
3. Install/deploy WordPress 6.8.1 on Windows environment
4. Access wp-admin and open Theme Editor
5. Begin editing block theme in Site Editor
6. Notice CSS styling suddenly breaks during editing session
7. Open browser developer tools to debug
8. Observe CSS files from wp-includes/css/dist fail to load
9. Navigate to wp-includes/css/dist in Windows Explorer
10. Attempt to access folder - ""Access denied"" error occurs
11. Try to delete or modify folder/files - all operations fail with permission errors

## Expected Result
Folder should be deletable with normal permissions

## Actual Behavior
- All 130+ files in dist folder are completely undeletable
- PowerShell Remove-Item fails with ""Access denied""
- icacls permission reset fails with ""Access denied""
- takeown ownership commands fail
- Results in CSS loading failures in site-editor.php

## Impact
- Site editor displays with broken CSS
- Block editor styling corrupted
- Admin panel styles not applied
- Affects multiple WordPress installations

## Workaround Applied
Modified `wp-includes/script-loader.php` to reference `dist_final` folder instead of `dist` (6 locations changed)

## Additional Technical Details
- **File Creation Date**: 2025-07-13 14:31:25-26
- **Permissions**: Appear normal but all operations denied
- **Access Pattern**: VSCode can read, Windows Explorer cannot access
- **Affected Instances**: Multiple WordPress 6.8.1 installations
- **Unaffected**: Older WordPress versions with different creation dates
"	369work
1	66628	Admin interface does not respect browser default font size preferences		Administration		normal	normal	Awaiting Review	defect (bug)	new		2026-11-08T22:29:18Z	2026-11-08T23:13:24Z	"Text in the WordPress admin interface does not increase when a user increases their browser's default font size. Core styles define pixel-based font sizes for the admin body, page headings, and settings tables.

Browser zoom enlarges the interface, but changing the browser's default font size does not. These are separate preferences: users may want larger text without magnifying the entire interface.

== Steps to reproduce ==

1. Open WordPress admin in Chrome or Brave.
2. Navigate to a settings page that uses standard WordPress admin headings and form tables.
3. Note the text sizes.
4. In the browser's appearance settings, change the default font size from `16px` to `26px`. Leave page zoom at `100%`.
5. Reload the WordPress settings page.
6. Compare the text sizes.

== Expected result ==

Admin text scales in response to the browser's default font size preference. Headings, labels, descriptions, and controls remain readable and usable as the text grows.

== Actual result ==

The text remains at its original size.

In the tested page, the root element's computed font size changed to `26px`, confirming that the browser preference was applied. However, the following Core styles retained their sizes:

||= Element =||= Core stylesheet and selector =||= Font size =||
|| Admin body || `wp-admin/css/common.css` — `body` || `13px` ||
|| Page heading || `wp-admin/css/common.css` — `.wrap h1` || `23px` ||
|| Settings table text || `wp-admin/css/forms.css` — `.form-table, .form-table td, .form-table th, .form-table td p` || `14px` ||

The initial observation was made on a plugin settings page using Core admin styles. Inspection traced the declarations above to WordPress Core rather than the plugin stylesheet.

== User impact ==

Users who choose a larger default font size may still encounter small text throughout WordPress admin. They must use another method, such as page zoom, to enlarge it, which also enlarges other interface elements and can change the layout.

== Accessibility requirements ==

'''EN 301 549 V3.2.1, clause 11.7: User preferences'''

This requirement addresses whether software interfaces follow platform preferences, including font type and font size. Note 2 identifies the user agent (browser) as the underlying platform for web content. Note 3 allows additional settings provided that a mode follows platform settings.

The observed behavior is relevant because Core-defined pixel font sizes prevent the admin interface from responding to the browser's default font size preference.

[https://www.etsi.org/deliver/etsi_en/301500_301599/301549/03.02.01_60/en_301549v030201p.pdf#page=82 EN 301 549 V3.2.1, clause 11.7, page 82]

'''Related but not failed: WCAG 2.2, Success Criterion 1.4.4: Resize Text (Level AA)'''

This criterion requires text enlargement up to 200% without loss of content or functionality. However, the W3C explanation allows this through at least one supported scaling mechanism, including browser zoom.

Therefore, failure to follow the browser's default font size preference does not, by itself, establish a failure of SC 1.4.4. This ticket concerns respecting user preferences rather than a demonstrated failure of 200% enlargement.

[https://www.w3.org/WAI/WCAG22/Understanding/resize-text.html Understanding Success Criterion 1.4.4: Resize Text]

== Suggested approach ==

Consider making admin typography relative to the browser's default font size, while preserving the intended visual hierarchy. Related spacing and control dimensions should also accommodate enlarged text without clipping or overlap.

== Related ticket ==

#47477 addressed controls scaling with enlarged text. This report concerns whether admin text responds to changes in the browser's default font size."	alh0319
1	40701	Admin menu icon distorted in Chrome when #adminmenu folded		Administration	4.7.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-05-09T11:17:06Z	2026-08-18T08:44:29Z	"By default - when the admin menu is not folded - the icons in the admin menu are 36px wide.
{{{
#adminmenu div.wp-menu-image {
    float: left;
    width: 36px;
    height: 34px;
    margin: 0;
    text-align: center;
}
}}}
With this width, Chrome renders the icons sharp.

When the admin menu is folded it changes the width to 35px:
{{{
.folded #adminmenu div.wp-menu-image {
    width: 35px;
    height: 30px;
    position: absolute;
    z-index: 25;
}
}}}
The icons are blurry as the lines in the icon shifted 0.5px horizontally -> antialising.

Possible solution:
Do not force .wp-menu-image to 35px when the menu folded.
{{{
.folded #adminmenu div.wp-menu-image {
    height: 30px;
    position: absolute;
    z-index: 25;
}
}}}"	nextendweb
1	64934	Admin menu is much harder to read when icons are nearly the same color as labels	joedolson*	Administration		normal	normal	7.3	defect (bug)	accepted		2026-03-23T22:11:34Z	2026-11-08T15:58:13Z	"Under the new default color scheme, icons for items in the sidebar admin menu have nearly the same color as the surrounding text. 

||= Version =||= Label Color =||= Icon Color =||= Perceptual difference\\ ([[https://en.wikipedia.org/wiki/Color_difference#CIEDE2000|CIE2000 ΔE]]) =||
||= **6.9** =|| `#e8e8ea` || `#9ca2a7` || 18.2 ||
||= **7.0** =|| `#ffffff` || `#f3f1f1` || 2.9 ||

This makes it much harder to quickly read the labels. It would be better if the colors were as perceptually different as they were in 6.9.

----

''Some useful tools for CIE2000 ΔE color values:'' 
- [[https://michel-leonard.github.io/ciede2000-color-matching/rgb-hex-color-calculator.html|Hex code comparisons]]
- [[https://michel-leonard.github.io/ciede2000-color-matching/de2000-rgb-pairs.html?seq=522&delta-e=2.9|Examples of various values]]"	cbirdsong
1	63835	"Admin pages listing displays post time instead of modified time for posts with status not equal ""published"""		Administration	6.8.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-08-17T09:02:22Z	2026-02-24T16:13:53Z	"In the admin pages listing (table) the ""Date"" column displays a wrong date for pages with another post_status than ""published"": eg. ""modified"", ""draft"", ""private"".

For modified pages it correctly displays the label ""Last Modified"" but the wrong **post** time instead of the expected **modified** time.

Reason:

In file `wp-admin/includes/class-wp-posts-list-table.php` in line 1222 the label/status is set, but the $t_time from some lines above is still the post time.

Suggested fix:

Change from this

{{{
                } else {
                        $status = __( 'Last Modified' );
                }
}}}

to this, retrieving the modified date in this case:

{{{
                } else {
                        $status = __( 'Last Modified' );
                        $t_time = sprintf(
                                /* translators: 1: Modified date, 2: Modified time. */
                                __( '%1$s at %2$s' ),
                                /* translators: Modified date format. See https://www.php.net/manual/datetime.format.php */
                                get_the_modified_time( __( 'Y/m/d' ), $post ),
                                /* translators: Modified time format. See https://www.php.net/manual/datetime.format.php */
                                get_the_modified_time( __( 'g:i a' ), $post )
                        );
                }
}}}"	gchriz
1	66247	Admin: Button styles are not consistent in active-while-focused states		Administration		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-05T19:45:47Z	2026-10-13T10:23:43Z	"r46241 (#34904) added styles which remove the focus ring while a button is active by assigning {{{box-shadow: none}}} to {{{.button:active}}}. This effect can be seen when activating buttons like ""Search Posts"" on the Posts screen.

**Bug:** Not all buttons apply this consistently, for example the ""Save Changes"" button on the Settings > General screen maintains the focus ring while active.

**Technical Analysis:**

[https://github.com/WordPress/wordpress-develop/blob/aee05d91bb71c9c757125e5bf82088d097af8131/src/wp-admin/css/colors/_mixins.scss#L84 Secondary buttons] and [https://github.com/WordPress/wordpress-develop/blob/aee05d91bb71c9c757125e5bf82088d097af8131/src/wp-admin/css/colors/_mixins.scss#L52 buttons forced active with the .active class] hide the focus ring, while [https://github.com/WordPress/wordpress-develop/blob/aee05d91bb71c9c757125e5bf82088d097af8131/src/wp-admin/css/colors/_mixins.scss#L32-L36 plain (primary) buttons] and [https://github.com/WordPress/wordpress-develop/blob/aee05d91bb71c9c757125e5bf82088d097af8131/src/wp-admin/css/colors/_mixins.scss#L119-L123 tertiary buttons] have no corresponding style. These styles are used in generating color scheme stylesheets that are loaded after the base styles from {{{buttons.css}}}, and take priority over the base styles.

**Resolution:**

Adding {{{box-shadow: none}}} consistently to all of the button mixins would likely be the expected resolution given the current state of button styling.

In parallel, Gutenberg's [https://github.com/WordPress/gutenberg/issues/84090 GB#84090] discusses general styling updates for this state which may ultimately make current assumptions obsolete, but does not block consistency improvements in the meantime."	aduth
1	62420	After upgrade to wordpress 6.7 theme CSS is not loading in wordpress admin panel		Administration	6.7	normal	major	Awaiting Review	defect (bug)	new		2024-11-14T05:20:11Z	2024-11-20T10:43:35Z	"I am getting issue that when I am editing any page and using any block created the css of the same is not getting reflected in the page section. However if I use the same in template it works fine. 
Attaching screenshot for the same. 

"	tusharaddweb
1	61783	All post table UI breaks upon adding multiple taxonomies		Administration		normal	normal	Awaiting Review	defect (bug)	new		2024-07-29T07:53:37Z	2025-01-13T19:48:38Z	"Sometimes, we need to set show_admin_column as true while registering a taxonomy in WordPress.
Upon adding multiple taxonomies in the admin column the UI of the all posts table breaks and the reader/admin can find difficulty in reading and finding relevant information

We can modify CSS such that if more taxonomies are present in table it can adjust its overflow property accordingly and can add a horizontal scroll for the same.

Sample Image for demonstration
[https://drive.google.com/file/d/1azXGcXN8KhFxP85lE7Xlw7HtR9gKoQPm/view?usp=sharing]
Sample Video for Fix needed
[https://drive.google.com/file/d/1mH82YreMuufdqWSz-ffa-4VEaQ-uN79a/view?usp=sharing]

"	akshat2802
1	53325	Automated Update Failed Notice After Update is Done		Administration	5.7.2	normal	minor	Awaiting Review	defect (bug)	new		2021-06-03T03:58:36Z	2021-06-30T09:29:26Z	"Hello Folks,

In my WordPress instance, it showed me the core update for version 5.7.2
I have started updating WordPress but it took longer. I don't know if it was a network issue or any other. But somehow, my update was done.

Now, when I am opening the WordPress Admin Dashboard, it gives me constant warning **""An automated WordPress update has failed to complete""**

I guess when the update was in progress, in the file: update.php, Line number 804, the option s not getting updated for **""auto_core_update_failed""**

"	malavvasita
1	53035	Copy suggested policy text to clipboard on click success message is not showing		Administration		normal	normal	Awaiting Review	defect (bug)	new	needs-refresh	2021-04-15T06:29:49Z	2021-04-16T04:47:18Z	"Hi,

I have updated 5.7.1. and lot's of time success message is not showing. more information you can see mentioned quick video link.

https://www.loom.com/share/6d051f6236134b6eb6aff20fba228b9e"	sumitsingh
1	55812	Custom admin columns don't sort string meta_key values when using MariaDB.		Administration	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-05-25T03:24:45Z	2022-06-14T16:35:45Z	"If your using MariaDB, and you want to sort the WP_Query using meta_key and orderby 'meta_value' sort does not work.

'''To reproduce:'''
1. Create a basic child theme, I made a child theme of Twenty Twenty Two that contained the style.css and functions.php. \\ \\ '''style.css'''

   {{{
/*
 Theme Name:   Twenty Twenty Two Child
 Description:  Twenty Twenty Two Child Theme
 Template:     twentytwentytwo
 Version:      1.0.0
 Text Domain:  twentytwentytwochild
*/
   }}}


2. Define the hooks to add a custom column. \\ \\'''functions.php'''

{{{#!php
<?php
function child_manage_pages_columns( $columns ) {
	return array_merge(
		array_slice( $columns, 1, 1 ),
		array(
			'test_custom_field' => __( 'Test', 'twentytwentytwochild' ),
		),
		array_slice( $columns, 1 ),
	);
}
add_filter( 'manage_pages_columns', 'child_manage_pages_columns' );

function child_pages_custom_columns( $column_key, $post_id ) {
	switch ( $column_key ) {
		case 'test_custom_field':
			$value = get_post_meta( $post_id, 'test_custom_field', true );
			echo esc_html( $value );
			break;
	}
}
add_action( 'manage_pages_custom_column', 'child_pages_custom_columns', 10, 2 );

function child_manage_edit_pages_sortable_columns( $columns ) {
	$columns['test_custom_field'] = 'test_custom_field';
	return $columns;
}
add_filter( 'manage_edit-page_sortable_columns', 'child_manage_edit_pages_sortable_columns' );

function child_manage_edit_pages_sortable_columns_pre_get_posts( $query ) {
	if ( ! is_admin() || ! is_main_query() ) {
		return;
	}

	$orderby = $query->get( 'orderby' );
	switch ( $orderby ) {
		case 'test_custom_field':
			$query->set( 'meta_key', 'test_custom_field' );
			$query->set( 'orderby', 'meta_value' );
			break;
	}
}
add_action( 'pre_get_posts', 'child_manage_edit_pages_sortable_columns_pre_get_posts' );

}}}

3. Log into the WordPress admin panel and add a couple of pages that use custom fields. I made three pages two of those pages had the same custom field value and the third had a new value (Hello World, Hello World, and Other World).

4. Go to the page listing and try to sort with the 'Test' column. The sort may change the first time, but will remain the same each time after that.

I tested this with MariaDB version 10.5.4 on Windows 10 with WAMP. I also tested with MySQL 8.0.24 on Windows 10 with WAMP but did not have the issue.

Through some testing and google searches I realized the issue is that MariaDB's LongText column type is just not sortable. In my test I updated wp_postmeta's meta_value column to Varchar(15000) and that enabled sort to work as expected."	kevincorrigan
1	65154	Dashboard widgets empty container alignment issue		Administration		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-04-30T06:50:50Z	2026-05-19T20:55:26Z	"The empty container for drag and drop dashboard widget having extra margin. which is making mis alignment for 4px with other widgets and spacing from the right. If we remove extra margin then the alignment showing correct.

This issue is introduced in https://core.trac.wordpress.org/ticket/64743. There are some issues also fixed for spacing and alignment on dashboard widgets in https://core.trac.wordpress.org/ticket/64739. 

"	umesh.nevase
1	66292	Enlarge update.php content		Administration	7.1.3	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2026-10-12T12:40:17Z	2026-10-14T05:43:36Z	"Hello,
When uploading a plugin from the back office, the plugin name is trimmed
I think we should benefit from more space by removing the `max-width: 40rem` on `.update-php .wrap`
"	sebastienserre
1	43476	Fix parentheses in post status links for RTL		Administration		normal	normal	Awaiting Review	defect (bug)	new	close	2018-03-06T11:07:18Z	2025-10-21T09:20:43Z	"When switching to a RTL language, the parentheses in the post status links can become mixed up, when the status is not translated.

'''How to replicate the issue?''' Switch to e.g. the ''Azərbaycan dili'' language that is missing the ''Draft'' post status translation.

'''Where to see the issue?:''' Visit the {{{wp-admin/edit.php}}} and check out the parentheses in the ''Draft'' post status link.


"	birgire
1	56421	"Fix scrolling in Block Editor ""Editor Content"" inside ""Group Block"""		Administration		normal	normal	Awaiting Review	defect (bug)	new		2022-08-23T13:04:55Z	2026-01-26T12:15:25Z	"When I am navigating with my up/down keyboard buttons inside a Group Block in the Block Editor ""Editor Content"" does not scroll until I scroll below the Group Block."	ritterml
1	59410	Getting waring related Warning: array_flip() expects parameter 1 to be array		Administration	6.3.1	normal	normal	Awaiting Review	defect (bug)	new	close	2023-09-20T09:51:01Z	2023-10-03T11:23:07Z	"Hey Core Team,

when I am using the switch user plugin and after switching user gets a warning on the top bar more information you can see the mentioned screenshot.

For more information see mentioned screenshot.
"	sumitsingh
1	55368	Handle ajax failure when doing actions on themes/plugins		Administration	5.9.2	normal	normal	Awaiting Review	defect (bug)	reopened	has-patch	2022-03-11T05:36:32Z	2026-08-18T08:39:46Z	"When maintenance mode is active or the server is unresponsive for any reason, there are some ui issues in ajax-related messages like:

- When trying to delete a plugin: ""Deleting..."" forever. No error shown.
- When trying to enable auto-updates on a plugin: ""Enabling..."" forever. ""The request could not be completed"" error is shown. Same for disabling.
- When trying to delete a theme: ""Deletion failed: undefined"" error shown.
- When trying to enable a theme: ""Enabling..."" forever. ""The request could not be completed."" error shown. Same for disabling.

Check the screenshots attached below.


I tried to stay short in title description but I'm not sure it's 100% clear."	mirkolofio
1	47292	Heartbeat API cause Apache/PHP to exhaust memory		Administration	5.2	normal	critical	Awaiting Review	defect (bug)	new		2019-05-16T11:11:46Z	2024-07-24T19:47:15Z	"WordPress 5.2
Apache/2.4 MPM Prefork (Debian9)
PHP 7.0  Also tried upgrading to PHP 7.2

What you expected to happen:
Apache memory footprint should remain stable.

Steps to reproduce:
Install click-to-deploy-images-wordpress-ha from Google Marketplace.
Upgrade to WordPress 5.2
Import and edit some posts in WordPress Admin
Observe Client side: Examine headers in Chrome Console specifically /wp-admin/admin-ajax.php
Observe Server side on Admin VM : Monitor apache memory with: free -m or htop 

Tried:
Upgrading to PHP 7.2.
Tweaks in wp-config.php
define( 'AUTOSAVE_INTERVAL', 600 );
define( 'WP_POST_REVISIONS', false );
define( 'MEDIA_TRASH', true );
define( 'DISABLE_WP_CRON', true );
define( 'WP_MEMORY_LIMIT', '256M' );"	mailandguardian
1	58488	Improve performance of wp-admin -> Comments		Administration		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-06-08T11:12:24Z	2024-09-17T22:28:15Z	"Our wp-admin -> Comments screens just got slower over time and the reason is the ""All comment types"" drop down filter.

Here's how much that single select box adds on some of our websites depending on the number of comments:

* 6 seconds for website with 2,668,659 comments
* 1 second for website with 795,581 comments

So it's really too much delay anytime you open wp-admin -> Comments just to get that single filtering option.

The problematic code is in the WP_Comments_List_Table::comment_type_dropdown() function which calls:

{{{#!php
get_comments( array(
  'number' => 1,
  'type'   => $type,
) );
}}}

That code runs query like:

{{{#!sql
SELECT wp_comments.comment_ID FROM wp_comments
  WHERE
    ( ( comment_approved = '0' OR comment_approved = '1' ) ) AND
    comment_type IN ('pingback', 'trackback')
  ORDER BY wp_comments.comment_date_gmt DESC LIMIT 0,1
}}}

As illustrated that query can take seconds to finish - as much as 6 seconds in our case and we have to wait that long anytime we open wp-admin -> Comments.

There are two causes of the poor performance:

=== **1) Missing comment_type index**

Running SQL EXPLAIN command on the query reveals that it only uses the comment_date_gmt index.

Adding the comment_type index helps: ALTER TABLE `wp_comments` ADD INDEX `comment_type` (`comment_type`)

Here's how much time adding that index took:

* 5 seconds for 2,668,659 comments (dedicated SQL server with low load)
* 23 second for 795,581 comments (shared server with higher load)

I see the wp-admin/includes/upgrade.php does a fair amount of ALTER TABLE with ADD INDEX.

We prepared that upgrade code in wp-admin/includes/upgrade.php.

And of course added that index for new install in wp-admin/includes/schema.php.

=== **2) Using ORDER BY when not required**

On one of our databases (using MariaDB) just adding the comment_type index fixed the issue, but on some other we **also** had to get rid of the ORDER BY in the query as it's not important when you are checking if there are any Pings.

get_comments() just does that automatically. This can be easily fixed by adding 'oderby' => 'none' to the call in WP_Comments_List_Table::comment_type_dropdown() in wp-admin/includes/class-wp-comments-list-table.php:

{{{#!php
get_comments(
    array(
        'number'  => 1,
        'orderby' => 'none',
        'type'    => $type,
    )
)
}}}

This fix can be seen in the  Github pull request.

---

With both fixes the performance is now much better:

* 0.4 seconds for website with 2,668,659 comments
* 0.12 seconds for website with 795,581 comments
"	FolioVision
1	56420	"In block editor when block is at top of window the block tools / settings dialog is hidden by ""Editor top bar"""		Administration		normal	normal	Awaiting Review	defect (bug)	new		2022-08-23T11:53:13Z	2026-01-28T15:31:15Z	"In block editor when block is at top of window and I activate the block tools / settings dialog it overflows ""Editor content"" and is hidden by ""Editor top bar""."	ritterml
1	27747	Inconsistent type default between `submit_button()` and `get_submit_button()`		Administration	3.5	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2014-04-10T08:03:52Z	2023-12-06T11:23:51Z	"One defaults to `$type = 'primary'` while the other defaults to `$type = 'primary large'`.

Shouldn't that last one be `$type = 'primary'` too?"	Denis-de-Bernardy
1	38304	It is not possible to filter posts by category or date on mobile devices		Administration	3.8.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2016-10-13T15:08:15Z	2022-06-02T11:17:16Z	On mobile devices, this [https://github.com/WordPress/WordPress/blob/4.6.1/wp-admin/css/list-tables.css#L1703-L1706 css rule] hides the actions available at the top of the posts list table. This is not a major issue for bulk actions as the we can find them at the bottom of the list table, but filters (category, date) are totally hidden.	Chouby
1	65877	Limit page jumping on blog and post overview pages		Administration		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2026-08-14T09:18:24Z	2026-08-21T18:46:06Z	"Recently I've had problems with plugins popping notifications at the top of the edit.php and edit.php?post_type=page

At the moment I wanted to open a post or page the page jumped down to show a notification which caused me to click the trash instead. Which is kind of unwanted and stressful on live sites.

Maybe these notifications can be limited to not show on these pages, or some default space could be reserved so the page doesn't jump?"	rogierlegit
1	66302	Make all admin notices render after the main H1 heading		Administration		normal	normal	Future Release	defect (bug)	new	has-patch	2026-10-13T15:18:34Z	2026-10-14T19:49:23Z	"Related: #50486 / [64282]

Many important admin notices (see a few examples in the attached screenshot) render before the page main H1 heading.

I do realize they are rendered at the very top of the page to be visually prominent. However, this has a few important disadvantages:

- These notices may be entirely missed by screen reader users, as they come after the main H1 heading. Many users may jump directly to the H1 and miss anything that comes before it.
- It's not a case that an important accessibility best practice requires the main H1 heading to be the very first thing inside the `<main>` element.
- These notices aren't moved to the `<aside>` element added in #50486. As such, they are separated from other notices and aren't included in an ARIA landmark.

Basically, to my understanding, all the notices hooked to:

- network_admin_notices
- user_admin_notices
- admin_notices
- all_admin_notices

stay before the main H1 heading ''if'' they use the additional CSS class `inline`.

It is worth reminding that the admin notices that ''do not'' use the `inline` CSS class are moved via Javascript ''after'' the H1.

I'd like to propose to remove the `inline` CSS class from all these notices.

Visual prominence can be achieved by other means, for example with a good usage of white space.

This proposal is not related to 'inline' notices that are ''intentionally'' rendered in the middle of the page."	afercia
1	65316	Mobile admin list tables have poor usability and responsive layout issues on small screens		Administration	7.1	normal	normal	Future Release	defect (bug)	new	has-patch	2026-05-22T07:54:59Z	2026-08-10T14:12:35Z	"I noticed several responsive layout and usability issues in the WordPress admin area when viewed on mobile devices.

Affected screens:
- Plugins
- Posts
- Pages

Observed issues:
- Action links wrap inconsistently and create cluttered layouts
- Admin table rows become difficult to scan on smaller screens
- Excessive whitespace reduces usable screen space
- Buttons and search fields are not optimized for narrow mobile widths
- Some elements appear compressed or visually misaligned
- The mobile admin experience becomes difficult to use for content management tasks

This issue is reproducible across multiple admin pages using a standard mobile browser.

Environment:
- Latest WordPress version
- Android device
- Chrome Mobile browser
- Approximate viewport width: 360px

Expected behavior:
WordPress admin pages should maintain clean spacing, readable layouts, and usable interactions on mobile devices without excessive wrapping or layout inconsistencies.

This appears to be primarily a responsive admin UI/UX issue.

**Screenshots for reference:**
- https://lightseagreen-snail-106951.hostingersite.com/wp-content/uploads/2026/05/Attahcment-1.jpeg
- https://lightseagreen-snail-106951.hostingersite.com/wp-content/uploads/2026/05/Attahcment-2.jpeg
- https://lightseagreen-snail-106951.hostingersite.com/wp-content/uploads/2026/05/Attahcment-3.jpeg"	dharmikpatel97
1	38076	Network admin plugin pages can be accessed on non-multisite		Administration		normal	normal	Future Release	defect (bug)	new	dev-feedback	2016-09-16T19:56:07Z	2026-08-19T06:33:47Z	"I just noticed that it's theoretically possible to access a plugin-generated page in the network admin panel even if we're not on a multisite setup. The same applies to the user admin panel as well.

To replicate, create a plugin that uses `add_menu_page()` with a slug `my_test_page`, hooked into `network_admin_menu`. Then manually go to the URL `http://yourdomain.com/wp-admin/network/admin.php?page=my_test_page`.

This happens because the `is_multisite()` check happens only after including the general `wp-admin/admin.php` administration bootstrap file which takes care of any plugin pages by itself. The problem is we can't do it before because WordPress hasn't been loaded then. A possible solution would be to split the `require_once` statement in `wp-admin/network/admin.php` into two, one to load the WordPress core functions, the other to load `wp-admin/admin.php`.

I don't think this is a very critical issue, but I thought it should be a ticket. It's very unlikely that anyone tries to access a network admin URL when they don't have a multisite. On the other hand, we catch that in other areas (through `! is_multisite()` checks), so we might try to do it here as well."	flixos90
1	37712	Opacity not applied to admin menu icon when it selected		Administration		normal	minor	Future Release	defect (bug)	new	has-patch	2016-08-18T08:09:28Z	2025-06-27T18:02:06Z	"Opacity not applied to single menu with custom menu logo when it selected.

But it work fine where menu has sub-menu and following css applied for it.

{{{
#adminmenu li.menu-top:hover .wp-menu-image img, #adminmenu li.wp-has-current-submenu .wp-menu-image img {
  opacity: 1;
}
}}}

So here css rule missing for single menu with custom menu logo.

When I applied following css then it work fine.

{{{
#adminmenu li.menu-top.current .wp-menu-image img {
  opacity: 1;
}
}}}


"	chandrapatel
1	65797	Pages printed by wp_die() miss the lang attribute and a main heading	afercia	Administration		normal	normal	Future Release	defect (bug)	assigned	changes-requested	2026-08-03T15:02:53Z	2026-11-06T21:44:54Z	"Noticed while inspecting the `You are running WordPress without JavaScript and CSS files...` page, which appears while developing and CSS/JS aren't build yet. See screenshot.

Applies to other pages printed via `wp_die()` as well.

The default handler for `wp_die()` is `_default_wp_die_handler()` which prints a HTML document where the `<html>` element misses the `lang` attribute. It only prints the `dir` attribute, when available. However some errors happen early in the bootstrap process and I don't think the language attributes can be retrieved at that point. I guess the `lang` attribute should be conditionally hardcoded to `lang=""en-US""`.

There's no main H1 heading on the page.

All pages should always have a main H1 heading to inform all users what the page is about. This isn't just for accessibility, it's best usability practice anyways.

I'd like to suggest to explore adding a `heading` arg to the args of `wp_die()` and `_default_wp_die_handler()`. When set, the heading should be printed out before the message.


For the specific `You are running WordPress without JavaScript and CSS files...` error page, in `src/index.php`, there is a call to:

`wp_die( $die, __( 'WordPress &rsaquo; Error' ) );`

where the variable `$die` contains the error message and one more string is passed that is used for the document `<title>` tag, rendered as `WordPress › Error`.

The third optional parameter is `$args`, where we could pass a new `heading` arg."	afercia
1	39261	Possible wrong base color for admin SVG-icons		Administration	4.7	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2016-12-13T09:27:44Z	2024-02-26T22:38:20Z	"Hello!

I'm currently working with custom SVG icons for my custom post types, but i can see that these icons have a slightly different color than the native dashicons. It seems like the SVG-painter paints my SVG-icons in the wrong base-color.

I'm using the default theme ""fresh"" and the base is set to `#82878c`. If i change to for example `#9EA3A8` my SVG-icons looks more like the native dashicons. Maybe the basecolor is a bit off?
File: [https://core.trac.wordpress.org/browser/branches/4.7/src/wp-includes/general-template.php#L3428 wp-includes/general-template.php:3428]

I can also see that this affects the SVG in other plugins (Yoast SEO, WPML etc.).

Best regards, Robert Sather."	robsat91
1	49575	Responsive glitch with expanded side admin menu when moving down to small screen		Administration		normal	normal	Awaiting Review	defect (bug)	new		2020-03-03T22:01:52Z	2020-03-03T22:01:52Z	"Hello,

If you restrict your browser to medium size the side admin menu will be collapsed. If you expand this and then reduce screen size more to go to mobile view you briefly see an empty sidebar panel as the responsive actions switch to mobile.

Cheers"	garrett-eclipse
1	52344	SVG images overflows UI		Administration	5.6	normal	minor	Awaiting Review	defect (bug)	new		2021-01-22T08:03:03Z	2021-02-02T08:02:34Z	"Hello,

This issue seems related to #51868.

Using WP5.6 the issue can be triggered by installing MailPoet 3.58.0. (issue is not related to MailPoet, I just use this as a trigger example, maybe due to its interface on the right)

When MailPoet is not selected the UI (including SVG-icons) seems fine. Selecting MailPoet however seems to trigger SVG-icons above MailPoet to grow and overflow to UI.

Please see attached images for a better understanding:

https://i.ibb.co/vxvxfrq/svg-normal.jpg
https://i.ibb.co/t4RDMQt/svg-overflow.jpg

Thank you for having a look at this issue.

With best regards,

TheRealShadowHunter"	therealshadowhunter
1	56520	Searching words that include apostrophes don't always work in admin search		Administration		normal	normal	Awaiting Review	defect (bug)	new		2022-09-06T09:58:04Z	2026-06-25T16:25:39Z	"Hello,

If I enter a word that includes an apostrophe like this (’) into the posts search field, I get no results. While this (') works successfully.

This can be an issue if user copied texts from somewhere else like web pages or word documents and tried to search.

"	lamisalhassanieh
1	51282	Select element does not honor admin color scheme on hover		Administration	5.5.1	normal	minor	Awaiting Review	defect (bug)	new	has-patch	2020-09-09T18:56:21Z	2020-09-23T23:54:09Z	"When select elements are hovered, the text color changes to the ""default color scheme"" and not to the color scheme selected bu the user.

For example, the user has selected ""sunrise"" color scheme the hover color on the select element should be from the ""red/orange"" palette. But it has the default color scheme's blue color.

Since all other inputs honor the color scheme color select element should also follow the same.

The fix should be that below selector should be added in color scheme CSS files with the respective scheme color.
{{{
.wp-core-ui select:hover {
    color: #007cba;
}
}}}

[[Image(https://i.snipboard.io/RMaoLd.jpg)]]"	vaakash
1	63209	The search engine for admin posts does not support quotes		Administration		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-04-01T08:01:43Z	2026-08-18T08:41:32Z	"If you search for an article name with quotation marks or apostrophes, the search returns no result.

**Reproduct :**
- create a post with the following title : `""New"" a good post`
- Search `""New"" a good post` on the Posts list screen
- See there is no result"	eddystile
1	61291	WP-Admin Categories and Post Edit Page Slow Rendering Due to lot of hidden Taxonomies and Authors		Administration	6.5.3	normal	normal	Awaiting Review	defect (bug)	new		2024-05-24T17:18:39Z	2024-06-04T11:31:15Z	"When viewing the post list on the /wp-admin/edit.php page and editing a post on the /wp-admin/post.php (classic editor) page, there is a significant delay in page rendering. This delay occurs because all taxonomies and authors are being loaded in a hidden manner. If the number of taxonomies is large and the number of authors exceeds 9000, the page rendering time can exceed 20 seconds. Didn't noticed 

https://github.com/WordPress/WordPress/blob/991a96b968b1f0662e03edff0607f09dc9cb9b4e/wp-admin/includes/class-wp-posts-list-table.php#L1763

[[Image(https://i.imgur.com/hH7SYmR.png)]]

Steps to Reproduce
Create 9k+ users
Create 100+ taxonomies

Navigate to the /wp-admin/edit.php page to view the list of all posts.
Observe the time taken for the page to fully load.

Navigate to the /wp-admin/post.php with Classic Editor page to edit an existing post.
Observe the time taken for the page to fully load."	Slams
1	65018	WordPress Post Edit Screen Content Overflow Issue in version 7.0 RC2		Administration		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-04-03T10:34:57Z	2026-10-30T20:38:04Z	"In WordPress 7.0 RC2 version,
At Post Add / Edit Scrren (Wheather It is Built-in Post Type or Custom Post Type) the content after the page heading is coming out of wrapping container."	Pratik Jain
1	42833	WordPress forces non-ssl login in described circumstance even though FORCE_SSL_ADMIN is set in wp-config		Administration	4.9.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-12-07T19:32:39Z	2021-09-21T06:59:07Z	"Wordpress provides an http login page in this circumstance:

1. Put the following in wp-config.php:  define('FORCE_SSL_ADMIN', true);
2. Log into your WordPress site via wp-login.php with an admin login.
3. Click Visit Site (home icon) at the top of the page.
4. Open a new brower tab.
5. Log into your Wordpress site in the new tab via wp-login.php.
6. Go back to previous tab.
7. Click on Edit Page.

It then displays the login box with http instead of https.  (Ideally it would not require a new login at all, but instead would use the session from the new tab.)"	geomouchet
1	63653	map_meta_cap() fails in wp_refresh_post_lock() for custom post types not registered before init		Administration	6.8	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-07-02T13:02:23Z	2026-01-27T12:48:06Z	"When editing a custom post type (CPT) post that is registered during the `init` hook (standard practice), the following warning is thrown:

> map_meta_cap was called incorrectly. The post type ""podcast"" is not registered. This may cause unreliable behavior when checking the ""edit_post"" capability for this post type.

This occurs because `wp_refresh_post_lock()` is hooked to `heartbeat_received`, which runs **before** `init`. As a result, capability checks using `current_user_can('edit_post', $post_id)` fail when the post type has not yet been registered.

This results in:
- Debug notices in logs
- In some environments, the editor freezing (""Page is unresponsive"")
- Inconsistent behavior for CPTs, especially in AJAX contexts

### Steps to reproduce:
1. Register a custom post type (e.g., `podcast`) via `register_post_type()` inside an `init` callback.
2. Create and save a post of that type.
3. Edit the post in the Block Editor and monitor `debug.log`.

### Expected behavior:
WordPress should not evaluate capabilities for unregistered post types during heartbeat.

### Suggested solutions:
- Delay the execution of `wp_refresh_post_lock()` until after `init`
- Or, safely skip capability checks for unregistered CPTs

Let me know if you need further logs or a patch draft. I'd be happy to assist.

Reported using WP 6.8.1."	locke85
1	57364	remove_meta_box for commentstatusdiv stores null value for comments configuration.		Administration	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-12-21T10:46:15Z	2023-06-17T12:23:15Z	"Removing meta box commentstatusdiv for e.g. some user roles stores null value for comments configuration in database, after a user without that meta box stores the post.

Example:

- post edit as admin **with** commentstatusdiv meta box
- meta box commentstatusdiv -> Allow comments is **activated**
- Post edit as user **without** commentstatusdiv meta box
- save post as user
- post edit as admin
- meta box commentstatusdiv -> Allow comments is **deactivated**"	phlegx
1	65703	wp_admin_notice(): pass `type` instead of `error/updated` via additional_classes	joedolson*	Administration		normal	normal	Awaiting Review	defect (bug)	accepted	has-patch	2026-07-24T08:49:43Z	2026-07-28T07:14:01Z	"While working on this #65690 and [https://github.com/WordPress/wordpress-develop/pull/12661 PR] -  , I got one feedback from the copilot [https://github.com/WordPress/wordpress-develop/pull/12661#discussion_r3643298778 here].

The feedback says that,

{{{
wp_admin_notice() supports a type argument (e.g. error), which produces the canonical notice notice-error class. Using additional_classes => array( 'error', ... ) is legacy-style and makes the class semantics less clear for new notices; prefer type => 'error' and keep hide-if-js as an additional class.
}}}

When I looked at the codebase, I found inconsistency accross the codebase, some use legacy-style and use `type` argument to construct the notice. 

I would like to propose issue here and improve code quality, so that we can consistently use the new variation i.e., to add the `type` argument, instead of legacy-style i.e., to add `classes` to the admin notices.

Below is the detailed version created by `AI`, Claude Code, Opus 4.8 with details like where is inconsistency accross the codebase.

----

== AI Summary

Since WordPress 6.4, `wp_admin_notice()` and `wp_get_admin_notice()` accept a `type` argument (`error`, `success`, `warning`, `info`) that outputs the standard `notice notice-<type>` classes.

Core is inconsistent in how it uses this. Some calls correctly pass `type`, while many others pass the legacy status class (`error` or `updated`) directly through `additional_classes`. Both render the same (core styles `div.error` / `.notice-error` and `div.updated` / `.notice-success` identically), but using `type` makes the intent explicit and keeps every call site consistent.

'''Correct usage''' — `source:trunk/src/wp-login.php`:
{{{#!php
<?php
wp_admin_notice(
	$errors,
	array(
		'type'           => 'error',
		'id'             => 'login_error',
		'paragraph_wrap' => false,
	)
);
}}}

'''Inconsistent usage''' — `source:trunk/src/wp-admin/upload.php`:
{{{#!php
<?php
wp_admin_notice(
	$js_required_message,
	array(
		'additional_classes' => array( 'error', 'hide-if-js' ),
	)
);
}}}

== Proposed change ==

Convert the legacy status class to the `type` argument, keeping any other (non-status) classes in `additional_classes`:

 * `additional_classes => array( 'error' )` → `type => 'error'`
 * `additional_classes => array( 'updated' )` → `type => 'success'`  (`updated` is the legacy green/success class)
 * `additional_classes => array( 'error', 'hidden' )` → `type => 'error'` + `additional_classes => array( 'hidden' )`

Output markup is equivalent, so this is low risk and can be split across multiple patches or in a single PR depends.

Line numbers are against `trunk` at the time of writing.

[[br]]

== Group 1 — `'error'` → `type => 'error'` (50) ==

||=  File  =||=  Line(s)  =||=  Classes to keep  =||
|| src/wp-admin/import.php || 73 || — ||
|| src/wp-admin/edit-form-advanced.php || 469 || `hidden` ||
|| src/wp-admin/theme-editor.php || 316, 353 || — ||
|| src/wp-admin/themes.php || 304, 321, 350 || — ||
|| src/wp-admin/update-core.php || 1078, 1088 || — ||
|| src/wp-admin/edit-comments.php || 308 || — ||
|| src/wp-admin/plugins.php || 350, 364, 652, 704, 723 || — ||
|| src/wp-admin/users.php || 328, 720, 740, 760, 790, 816 || — ||
|| src/wp-admin/upload.php || 243 || `hide-if-js` ||
|| src/wp-admin/user-new.php || 407, 436 || — ||
|| src/wp-admin/widgets-form.php || 433 || — ||
|| src/wp-admin/plugin-editor.php || 37 || — ||
|| src/wp-admin/theme-install.php || 189 || `hide-if-js` ||
|| src/wp-admin/user-edit.php || 256 || — ||
|| src/wp-admin/async-upload.php || 137 || `error-div` ||
|| src/wp-admin/nav-menus.php || 316, 348, 391, 449, 478, 494 || — ||
|| src/wp-admin/network/themes.php || 142, 153 || — ||
|| src/wp-admin/includes/file.php || 2524 || — ||
|| src/wp-admin/includes/class-wp-plugin-install-list-table.php || 298 || `inline` ||
|| src/wp-admin/includes/network.php || 127, 168, 284, 435, 458 || 284: `inline` ||
|| src/wp-admin/includes/template.php || 1023, 1447 || 1447: `inline` ||
|| src/wp-admin/includes/user.php || 559 || `default-password-nag` ||
|| src/wp-admin/includes/nav-menu.php || 1464 || — ||
|| src/wp-admin/includes/class-bulk-upgrader-skin.php || 199 || — ||
|| src/wp-includes/media-template.php || 389 || — ||

[[br]]

== Group 2 — `'updated'` → `type => 'success'` (39) ==

||=  File  =||=  Line(s)  =||=  Classes to keep  =||
|| src/wp-admin/edit-form-advanced.php || 454 || — ||
|| src/wp-admin/theme-editor.php || 199 || — ||
|| src/wp-admin/themes.php || 266, 276, 285, 295, 312, 329, 338 || — ||
|| src/wp-admin/options-general.php || 284 || `inline` ||
|| src/wp-admin/edit-comments.php || 424 || — ||
|| src/wp-admin/edit-link-form.php || 100 || — ||
|| src/wp-admin/plugins.php || 661 || — ||
|| src/wp-admin/nav-menus.php || 288, 325, 361, 538, 704 || — ||
|| src/wp-admin/plugin-editor.php || 204 || also `is-dismissible` → `dismissible => true` ||
|| src/wp-admin/user-new.php || 419 || — ||
|| src/wp-admin/widgets-form.php || 423 || — ||
|| src/wp-admin/users.php || 656, 682, 700, 710, 729, 749, 769, 780, 798 || 780, 798: `fade` ||
|| src/wp-admin/upload.php || 229, 446 || — ||
|| src/wp-admin/user-edit.php || 233, 599 || 599: `inline` ||
|| src/wp-admin/link-manager.php || 129 || — ||
|| src/wp-admin/edit.php || 476 || — ||
|| src/wp-admin/includes/nav-menu.php || 1519 || — ||
|| src/wp-admin/includes/class-custom-background.php || 271 || — ||
|| src/wp-admin/includes/class-custom-image-header.php || 540 || — ||

[[br]]

== Group 3 — Dynamic status class (2) ==

These build the class from a variable and need a conditional `type` instead:

||=  File  =||=  Line  =||=  Detail  =||
|| src/wp-admin/edit-tags.php || 360 || `$class = isset( $_REQUEST['error'] ) ? 'error' : 'updated';` — set `type` to `'error'` / `'success'` ||
|| src/wp-admin/includes/network.php || 234 || `$message_class` is `''`, `'updated'`, or `'error'` (set at lines 201–213) — map to `type`; keep `inline` ||
[[br]]
== Not included (correct as-is) ==

These `additional_classes` values are behavioural/modifier classes with no `type` equivalent and should stay: `notice-alt`, `inline`, `hidden`, `fade`, `hide-if-js` / `hide-if-no-js`, `below-h2`, `update-message`, `update-nag` (a distinct legacy style, not one of the four types), the login-specific `message` / `reset-pass` / `register`, and `notice-missing-attachment`. Substrings such as `error-div`, `community-events-errors` and `policy-text-updated` are unrelated class names, not status types.

Thanks,
"	hbhalodia
1	65510	wp_dropdown_pages() lacks support for selecting show_option_no_change when used alongside show_option_none		Administration	2.7	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-06-22T10:33:41Z	2026-08-11T09:31:34Z	"Hi,

While using the wp_dropdown_pages() function on a plugin settings page, I noticed a limitation when attempting to use both the show_option_none and show_option_no_change arguments simultaneously.


== **The Issue**
If a developer uses only one of these options, it defaults to the first position in the dropdown. However, if both options are passed into the arguments array, the dropdown renders two extra placeholder options before the actual page list.

If a user selects and saves the second placeholder option (show_option_no_change), there is currently no way to pass a value to wp_dropdown_pages() that will mark this second option as selected=""selected"" upon page reload.

== **Code Analysis**
Looking at the source code for wp_dropdown_pages() (lines 1233 & 1236 in wp-includes/post-template.php) there is no way to remain selected it.

https://developer.wordpress.org/reference/functions/wp_dropdown_pages/#source

Kind Regards,"	Pratik Jain
1	49483	'Upload file types' Setting field for multisite network settings should be textarea than text input		Administration	5.3.2	normal	normal	Awaiting Review	enhancement	new	has-patch	2020-02-20T14:25:30Z	2024-01-13T06:26:24Z	"The setting field 'Upload file types' (CSS name='upload_filetypes') is currently a text input with visible width of 45 characters.
However, the default content of that field is 135 characters. Thus, it would be good to have it in the form of textarea to have a better look at all the content without the need for scrolling.

**Steps to find -** 
1. At a multisite WordPress installation, go to My Sites -> Network Admin -> Settings.
2. Find the setting under the heading 'Upload Settings' with label 'Upload file types'.
3. The default value in that field is as follows - 
''jpg jpeg png gif mov avi mpg 3gp 3g2 midi mid pdf doc ppt odt pptx docx pps ppsx xls xlsx key mp3 ogg flac m4a wav mp4 m4v webm ogv flv''

**Screenshots -**
1. Current (with input tag) - upload_filetypes_current.png
2. Proposed (with textarea tag) - upload_filetypes_proposed.png"	shamalisulakhe
1	59135	Ability to list plugins by activation date/time		Administration		normal	normal	Awaiting Review	enhancement	new		2023-08-17T20:47:28Z	2023-08-21T10:58:20Z	"The idea here is to provide a way to show the list of active plugins ordered by activation date/time.

This was suggested by a friend of mine who was having a hard time tracking down which plugin on his site had caused a problem because he couldn't remember which one he had last activated.  Given that deactivating plugins one at a time to track down which one is causing problems is a common technique, this seems like it might be generally helpful to WP users.

Details need to be flushed out on where and how to show this information.  The plugins page seems like the most obvious target, the site health page might be another."	josephscott
1	58638	Add 'close' button to dashboard widgets	oglekler	Administration		normal	normal	Future Release	enhancement	assigned	dev-feedback	2023-06-27T04:59:43Z	2025-01-25T13:07:12Z	In the Dashboard it isn't obvious that widgets can be removed from it via Screen options and sometimes widgets are annoying, or you just don't need them. I suggest adding `close` button into dashboard widget header. 	oglekler
1	62080	Add Ctrl+S / Cmd+S shortcut to save files in Theme and Plugin Editor		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-09-19T14:18:24Z	2024-11-14T10:13:53Z	"Currently, in the WordPress Theme and Plugin File Editor, users must manually click the ""Save"" button to save their changes. In modern development environments, keyboard shortcuts like `Ctrl+S` (on Windows/Linux) or `Cmd+S` (on Mac) are commonly used for saving work.

This ticket proposes adding a `Ctrl+S` / `Cmd+S` shortcut in the Theme and Plugin Editor to allow users to save files more efficiently without needing to manually click the ""Save"" button."	iambherulal
1	61659	Add New links at the top of some pages become huge on smaller screens		Administration		normal	normal	Awaiting Review	enhancement	new		2024-07-16T16:02:07Z	2024-07-17T15:07:47Z	"When I access some tabs in WordPress, the buttons at the top appear very large. This ""giant"" appearance is significantly breaking the layout.

"	Luan Ramos
1	38097	Add ability to Settings API to assign positioning		Administration	4.7	normal	normal	Future Release	enhancement	new	has-patch	2016-09-19T14:39:59Z	2021-06-01T17:28:50Z	"When using the Settings API to add a settings field, particularly if adding to an existing settings screen, it would be nice to have some way of positioning the new field, as you can with add_menu_page, for instance.

So, I've just updated a plugin in which I've added a single settings to the existing ""General"" settings screen. It's date related and it would sit nicely in a specific position on that screen, but I have no control over it. So, a ""position"" field, as add_menu_page has, would be a nice addition to provide a more nuanced result."	dartiss
1	47650	Add hooks to installed themes screen to allow control and customization		Administration	5.3	normal	normal	Awaiting Review	enhancement	new	has-patch	2019-07-04T16:09:58Z	2019-07-23T10:10:15Z	"Add the following hooks to themes screen to allow customization.

- Add filter `current_theme_actions` to allow manipulation of the current theme action buttons array.
- Add action hook `after_active_theme_actions` to allow customized buttons after active themes action buttons.
- Add action hook `after_inactive_theme_actions` to allow customized buttons after inactive themes action buttons.
- Add action hook `after_theme_actions` to allow customization after all themes action buttons.
- Add action hook `after-theme-info` to allow adding customized theme info.
"	pedromendonca
1	52847	Admin Improvement: Filter posts, pages and media by date range or year		Administration		normal	normal	Awaiting Review	enhancement	new		2021-03-18T12:38:51Z	2021-04-06T05:38:51Z	"In wp-admin it is possible to filter posts, pages or media only by month. When the blog or is very old, dozens of months are shown to filter, it becomes complicated.

If there was an option to filter by date range or year, management would be much easier.

These plugins that are not being updated serve as an example:
- https://wordpress.org/plugins/filter-posts-by-date-range/
- https://wordpress.org/plugins/admin-filter-posts-by-year/

I think it is something that could be part of the core.

Thanks!"	ricjcs
1	40223	Allow arrow key navigation in (all?) modals		Administration	4.8	normal	normal	Awaiting Review	enhancement	new		2017-03-21T19:37:46Z	2024-02-26T12:20:19Z	"Would be nice, if we could use arrow keys to navigate trough details of plugins, themes, etc inside modal on install, update and list screens.

[[Image(http://i.imgur.com/hxBL2sM.png)]]"	marsjaninzmarsa
1	26605	Appearance of recent/future posts in dashboard looks off on mobile.		Administration	3.8	normal	normal	Future Release	enhancement	new	has-patch	2013-12-13T13:24:18Z	2019-07-22T18:22:30Z	"When viewing the dashboard on a small screen device, the layout of the date and post title in the recent/future post section of the layout of the site activity widget looks funny when the title is fairly long. 

I think it might be better to have the date on a separate line.

[[Image(https://dl.dropboxusercontent.com/s/h8jpr8305isg0gy/2013-12-13%20at%2013.17%202x%20%281%29.png)]]
"	mattheu
1	62865	Change font weight of settings and other similar labels	audrasjb	Administration		normal	normal	Future Release	enhancement	reopened		2025-01-25T12:43:42Z	2025-09-02T15:45:42Z	"This is part of the unification work I am looking to work on for this release, hence putting for that milestone, this can be punted, moved and adjusted as others see fit.

In the wp-admin these labels are set to 600. However in the site editor and Storybook guide it is 500 or 400 depending on use case. You can also see this throughout the editor. There are other variations including uppercasing. My recommendation is that we do the following:

- Keep the larger font size. In the site editor there is a smaller 13px one, but for settings the 14px is not something to reduce, particularly for usability if also are looking to increase the input and buttons.
- Don't use uppercasing because for a few labels there are multiple words. This can cause accessibility issues and legibility problems.
- Reduce to either 500 but ideally 400. What this does is stop the significant visual 'smudging' that the heavier 600 brings visually to labels. The idea is to aid readability as a result for everyone.

I have attached some mocks of what this results in and also would like feedback on how extensive this should be along with options for improving."	karmatosed
1	44837	Coding Indentation Issues		Administration	4.9.8	normal	minor	Awaiting Review	enhancement	new	dev-feedback	2018-08-24T09:00:25Z	2019-04-01T22:07:36Z	"I am seeing in wp-admin files that coding indentation is missing like this file edit-tags.php

The codes are written like this
{{{
<form class=""search-form wp-clearfix"" method=""get"">
<input type=""hidden"" name=""taxonomy"" value=""<?php echo esc_attr( $taxonomy ); ?>"" />
<input type=""hidden"" name=""post_type"" value=""<?php echo esc_attr( $post_type ); ?>"" />

<?php $wp_list_table->search_box( $tax->labels->search_items, 'tag' ); ?>

</form>
}}}
which needs to be indented properly to make it more understandable. This can be check in other files as well where we are writing HTML as well as PHP. In this tickets preview how exactly the code is written so I am adding a screenshot as well https://prnt.sc/kmcjeu"	prashantvatsh
1	7797	Consolidate iframe headers		Administration	2.7	normal	normal	Future Release	enhancement	assigned		2008-09-26T23:35:46Z	2019-03-15T00:31:49Z	"Currently iframes are being used in multiple locations (ie. thickbox, plugin re-activation, etc) and in each case, theres generally a function for the header and footer, or its inline.

What i suggest, Is to create a standard set of admin templates which print the headers out for the pages.

And a side suggestion:[[BR]]
As an added bonus, It should probably be possible to automatically detect if it was loaded via thickbox ($_GET[TB_iframe] shouldnt be set) and serve the correct header (ie. Full admin side menu if no thickbox)"	DD32
1	45874	Content Section is overlapping the menu background	valentinbora*	Administration	5.0.2	normal	trivial	Awaiting Review	enhancement	accepted	reporter-feedback	2019-01-09T12:36:13Z	2024-01-17T20:19:39Z	"Hi,

Just uploading some content into WordPress dashboard and saw a little layout bug, I'm not sure if it is kept like this but I thought, maybe it should be behind the menu background completely. As I have uploaded a screenshot, once the menu height finishes then the content is showing below. it should be behind the menu bar.

[[Image(http://ahmadgulzar.com/wpscr.png)]]

it can be fixed by just changing z-index of #adminmenuback from 1 to 3


{{{

#adminmenuback {
    position: fixed;
    top: 0;
    bottom: -120px;
    z-index: 3;
}

}}}

Thanks
"	ahmadgulzar
1	59491	Create more flexible structure for handling of feeds in admin news widgets		Administration		normal	normal	Awaiting Review	enhancement	new		2023-09-28T20:03:36Z	2023-09-28T20:03:36Z	"Currently (in WordPress 6.3), the Admin widget ""WordPress events and News"" uses two feeds for presentation of WordPress news:
- https://wordpress.org/news/feed/ 
- https://planet.wordpress.org/feed/ 

(currently, the widget shows the headlines for the two latest posts in the ""news"" feed and the headlines for the three latest posts in the ""Tavern"" feed. But this configuration has changed at various points: some posts have been listed with excerpts, the number of posts has changed, etc.)

Both these URL's can be ""translated"", so that localized versions may, for instance, divert this to the corresponding newsfeed in their own language. Several language teams use this opportunity.

I'd like to propose a more flexible structure for these posts, where a locale team would be able to configure posts to be included from 1, 2 or 3 feeds, and how many posts to pull from each of these feeds. 

It would probably be good to visualize to the user what feeds are used, along with their names.
If we lift this out of the localization structure to some Meta-structure, then we might even allow users to select a different locale's feed configuration (or even configure their own."	tobifjellner
1	44971	Enable WP_Community_Events to find cached events even if it's instantiated without a user location	pbearne*	Administration		normal	normal	Awaiting Review	enhancement	accepted	has-patch	2018-09-20T13:59:25Z	2024-06-24T21:15:24Z	"The ""WordPress Events and News"" dashboard widget in `wp-admin` makes requests to the  `http://api.wordpress.org/events/1.0/` endpoint for details about WordPress community events in a particular location. The class that powers the widget caches the event data for a location in a transient, using the user's IP address as the key.

At the moment, the localisation function that retrieves this cached data for the dashboard JS, `wp_localize_community_events`, relies on the fact that the ajax request handler that fetches it, `wp_ajax_get_community_events`, saves the user's last known location as a user option.

We'd like to show the community events in Calypso too. We've created an endpoint on public-api.wordpress.com (D18510-code) which instantiates `WP_Community_Events` and fetches the events. We're not persisting the user's last known location, so we're not generally passing a location array to the constructor. To avoid putting too much pressure on the `api.wordpress.org` endpoint, we'd like to make sure the class's `get_cached_events` method checks if there are cached events for the user's network IP before it makes a request to the API.

We have a workaround for this in our endpoint (D18510-code), which calls `get_unsafe_client_ip` to create a location for the user if none is provided in search params; but it seems to make more sense to enable the class to handle this case. 

`WP_Community_Events` currently tries to retrieve cached events before it makes a request to the API. If nothing's found in the cache, it calls `get_unsafe_client_ip` before making the request. This patch moves that call to before the cache search, so that even if the class is instantiated without a location, it'll still be able to find any events cached for the user's current IP.

"	andfinally
1	55588	Enhancement request: Allow me to prevent admin_email changes		Administration	5.9.3	normal	minor	Awaiting Review	enhancement	new		2022-04-18T19:06:11Z	2022-04-18T19:06:11Z	"Subject says it all :) I would like a way to prevent changes to the admin_email option (the ""Administration Email Address"" on Settings -> General).

The first/most obvious way to do this, to me at least, would be to create a new define, similar to WP_SITEURL, that always overrides the value of admin_email. That seems more comprehensive, but would involve digging into a lot of different places. Another possible implementation is to add a filter to update_option_new_admin_email (in wp-admin/misc.php) that lets you abort that call early."	desmith
1	42218	General Settings: Description of Email address should be Email Address instead of just Address.		Administration		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-10-14T10:47:03Z	2017-10-16T09:54:53Z	"In General Setting, There is currently ""Address"" only used for description of Email Address. It should be ""Email Address"", so it won't be confused to people differentiate ""Address"" and ""Email Address"". (Tested in Version 4.9-beta2-41852)"	chetan200891
1	55583	"Hook before and after ""Add New"" button in edit screen"		Administration		normal	normal	Awaiting Review	enhancement	assigned	has-patch	2022-04-17T18:30:50Z	2025-09-13T10:41:54Z	"I need to add a new button after the ""Add New"" button but there is no hook placed.

**Example Usages:** 
Add a button to manage bulk migration from other sources

[[Image(https://prnt.sc/cR-GdDNnVe6Z)]]"	rafiq91
1	65338	Inconsistent responsive spacing and padding on multiple WordPress admin screens		Administration	7.0	normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-25T12:21:43Z	2026-06-12T10:58:40Z	"Several WordPress admin screens display inconsistent responsive spacing, padding, and layout alignment issues on smaller mobile viewports.

The issue is visible across multiple core admin pages including Site Health, Export, and Import screens, where containers and content sections appear visually unbalanced and difficult to scan on narrow screens.

**Steps to reproduce:**
1. Open WordPress admin on a mobile device or responsive browser mode
2. Navigate to:
   - Tools → Site Health
   - Tools → Export
   - Tools → Import
3. Observe spacing and alignment inconsistencies on smaller screen widths

**Expected behavior:**
Admin screens should maintain consistent horizontal spacing, balanced padding, and responsive alignment across smaller mobile viewports.

**Actual behavior:**
- Uneven left/right spacing
- Inconsistent container alignment
- Excessive empty spacing on some sections
- Reduced readability and mobile admin usability

**Environment:**
- WordPress latest version
- Chrome Mobile browser
- Android device
- Approx viewport width: 360px

**Possible improvement:**
- Standardize horizontal spacing on mobile admin screens
- Improve responsive container alignment consistency
- Reduce uneven padding on smaller viewports

**Screenshots for reference:**

https://lightseagreen-snail-106951.hostingersite.com/wp-content/uploads/2026/05/mob-screen-4.png

https://lightseagreen-snail-106951.hostingersite.com/wp-content/uploads/2026/05/mob-screen1.png

https://lightseagreen-snail-106951.hostingersite.com/wp-content/uploads/2026/05/mob-screen3.png

https://lightseagreen-snail-106951.hostingersite.com/wp-content/uploads/2026/05/mob-screen2.png"	dharmikpatel97
1	41114	"Installation: ""Search Engine Visibility"" not keeping checked on error"		Administration	4.8	normal	normal	Awaiting Review	enhancement	new	has-patch	2017-06-21T10:25:48Z	2019-08-16T06:44:10Z	"Given your installing WordPress
and you reach the screen about site title, admin login and ""Search Engine Visibility"".

When you enable the checkbox for/near ""Search Engine Visibility""
And fill nothing out for mail address
And press continue

Then an error message appears
And most fields are still filled out as before

---

Problem:

The ""Search Engine Visibility"" is no longer checked.
IMHO this should also stay as intended to."	screamingdev
1	61089	Introduce a System to Store, Access, and Permit Use of External API Keys		Administration		normal	normal	Awaiting Review	enhancement	new		2024-04-26T21:15:06Z	2024-04-26T21:15:06Z	"Right now, if we have a number of plugins that use the same API Key, such as Google Maps or reCaptcha, we may have to enter the same key on each plugin's settings page. 

Ideally, if we could enter a name and API key for external services, similar to Application Passwords, and plugin developers could use these API Keys, it could help to reduce the redundancy of storing and maintaining these key.

On the Admin side, we could have a page that allows Admins to manage their keys, as well as approve or deny use of a key from a plugin. - This would be similar to how new apps downloaded to a phone have to request permission to use phone features before being able to use. 

One concern would be determining a common naming convention/scheme for said keys."	Kpudlo
1	63945	Make cache in wp_count_posts persistent		Administration	2.5	normal	normal	Future Release	enhancement	new	has-patch	2025-09-08T11:33:06Z	2025-09-29T15:26:28Z	"Current there is a cache in wp_count_posts function. See 

{{{#!php
	$cache_key = _count_posts_cache_key( $type, $perm );

	$counts = wp_cache_get( $cache_key, 'counts' );

}}}

As this use the `counts` cache group, this cache does not persistent between page requests. However the SQL query that is run in this function, can take a long time and can result in the admin list page to render slowly. This cache should be made to persistent. "	spacedmonkey
1	65070	Move inline JS from admin_head hooks in options screens into options.js		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-04-14T09:26:02Z	2026-04-14T21:10:51Z	"src/wp-admin/includes/options.php contains three functions that print inline <script> blocks via admin_head hooks:
1. options_discussion_add_js() — hooked in options-discussion.php
2. options_general_add_js() — hooked in options-general.php
3. options_reading_add_js() — hooked in options-reading.php

These should be migrated into src/js/_enqueues/admin/options.js, which was introduced in [https://github.com/WordPress/wordpress-develop/pull/10927] as the central enqueued JS file for options screens.
"	anukasha
1	48887	New action hooks: admin_body_open, login_body_open & embed_body_open		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2019-12-05T17:29:43Z	2019-12-17T08:06:35Z	"== Background ==

In changeset [changeset:""45042"" 45042] WordPress 5.2 finally introduced the long waited [https://developer.wordpress.org/reference/functions/wp_body_open/ wp_body_open()] function which fires the [https://developer.wordpress.org/reference/hooks/wp_body_open/ wp_body_open] action hook immediately after the opening `body` tag.

This little action helps developers to insert JavaScript right after the opening body tag required by 3rd party services like Google Tag Manager.

Dev note: https://make.wordpress.org/core/2019/04/24/miscellaneous-developer-updates-in-5-2/

We did a very good job but the hooks are not consistent on other pages (dashboard, login pages and embed templates). This will allow developers to insert code not only to the theme.

=== Theme Structure ===

The new theme structure uses several basic functions which fires action hooks:

* `wp_head` action fired by `wp_head()`
* `wp_footer` action fired by `wp_footer()`
* `wp_body_open` action fired by `wp_body_open()`

But the front end is not the only place where developers need to insert JavaScript.

=== WP Admin ===

The WordPress dashboard uses the following action hooks:

* `admin_head` action
* `admin_footer` action

Missing `admin_body_open` action.


=== Login Page ===

The login page uses the following action hooks:

* `login_head` action
* `login_footer` action

Missing `login_body_open` action.


=== Embed Templates ===

The embed templates uses the following action hooks:

* `embed_head` action
* `embed_footer` action

Missing `embed_body_open` action.

=== Other ===

The attached patch added the missing `{$page}_body_open` hooks.

If you know about other pages that missed, please comment bellow and I'll update the patch.
"	ramiy
1	45864	On list page All(x) count does not consider Trash items. Hence Trash should appear differently		Administration	5.0.2	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2019-01-08T13:29:48Z	2025-09-03T14:25:20Z	"I find it confusing with the way WordPress shows `All(xx)` along with a broken down counts of each status when we have trashed items, `All(xx)` only considers un-trashed posts.

So I feel displaying `Trash(xx)` exactly as rest of the status is not visually right. Since Trashed items are not considered in `All` count, it needs to be displayed a bit differently.

I think if we can do something like the following it will look more logical.

1. Increase left margin before `Trash(xx)` so that it looks a bit separated.
2. Change the color of Trash link to `#dc3232`. Since `Delete Permanently` and `Trash` links are also using red color.
3. One more observation. We are writing `Published`, `Scheduled`, so I think rather `Trashed` could be used instead of `Trash` to match the rest.

Here is a proposed solution:

File: `/wp-admin/css/common.css`


{{{
.subsubsub li.trash-posts {
    margin-left: 2rem;
}

.subsubsub li.trash-posts a {
    color: #dc3232;
}
}}}



File: `wp-admin/includes/class-wp-list-table.php`

{{{#!php
<?php
public function views() {
...
   foreach ( $views as $class => $view ) {
     if(  'trash' === $class ) {
       $views[$class] = ""\t<li class='$class trash-posts'>$view"";
     } else {
       $views[$class] = ""\t<li class='$class'>$view"";
     }
   }
...
}
}}}


File: `wp-includes/post.php`

{{{#!php
<?php
register_post_status( 'trash', array(
  'label'       => _x( 'Trash', 'post status' ),
  ...
  ...
  'label_count' => _n_noop( 'Trash <span class=""count"">(%s)</span>', 'Trashed <span class=""count"">(%s)</span>' ),
  ...
) );

}}}

Please let me know if this makes sense."	subrataemfluence
1	54026	One admin menu item from different plugins		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-08-27T14:43:43Z	2021-09-03T15:11:56Z	"Hello.

In this example i have two plugins (which cannot be merged) which should use one admin menu item.

plugin 1:
{{{
function test1_admin_menu() {
	
    add_menu_page(""Test Plugin"", ""Test Item"", ""manage_options"", ""test-plugin-admin"");
	
    add_submenu_page(""test-plugin-admin"", """", ""Subitem for plugin 1"", ""manage_options"", ""test1-admin-subitem"");
	
    // remove the automatically created submenu
    remove_submenu_page(""test-plugin-admin"", ""test-plugin-admin"");
	
}

add_action(""admin_menu"", ""test1_admin_menu"");
}}}

plugin 2:

{{{
function test2_admin_menu() {
	
    add_menu_page(""Test Plugin"", ""Test Item"", ""manage_options"", ""test-plugin-admin"");
	
    add_submenu_page(""test-plugin-admin"", """", ""Subitem for plugin 2"", ""manage_options"", ""test2-admin-subitem"");
	
    // remove the automatically created submenu
    remove_submenu_page(""test-plugin-admin"", ""test-plugin-admin"");
	
}

add_action(""admin_menu"", ""test2_admin_menu"");
}}}

This works - and the menu is also shown, if only one plugin is active/enabled.

BUT:
The menu ""Test Item"" in the admin backend is shown twice. Same ID in HTML, same subitems, same links, same names ... completly copied.

Is there a way to avoid that behaviour ?

I will use a clean admin menu and all my plugins should use one (own) admin menu item as parent."	kimjo
1	66018	Remove the admin menu auto-fold feature & move responsive viewport trigger to 960px.		Administration		normal	normal	7.3	enhancement	new	has-patch	2026-09-01T18:38:08Z	2026-10-13T19:26:14Z	"Since slightly before the dawn of time (definitely before r20749, but hard to pin down exactly when), the admin menu has automatically collapsed to a reduced width icon-only display on small viewports.

Originally, this occurred on viewports smaller than 900px; later that was expanded to be below 960px. 

When the responsive state of the admin menu was introduced in WordPress 3.8 as part of the MP6 redesign, the scope of the auto-fold behavior was limited to between 782px and 960px.

On today's devices, those widths only occur in a handful of limited scenarios: intentionally narrowed viewports, iPad Air in portrait mode, and smaller iPad Pro devices in portrait mode are the primary cases.

The collapsed menu can still be useful for some users, and this is not proposing to remove the ability to fold the menu; but the automatic folding behavior is now obsolete.

This proposal is limited to removing the behavior that automatically triggers a folded menu & to move the trigger for the responsive menu to happen at 960px.

This would help resolve issues like #46307, in that this menu would only ever appear if a user has explicitly made the choice to use it, and they would be able to change that choice if they needed clarification on a specific item in the menu. Right now, if you are inside that narrow viewport range, your only option for the menu is a version that has no visible labels at the top level and can be difficult to understand."	joedolson
1	52871	"Space added after the ""option"" tag on the options-writing.php file"		Administration		normal	normal	Awaiting Review	enhancement	new	close	2021-03-20T13:00:07Z	2023-05-29T15:44:27Z	"Space added after the ""option"" tag on the options-writing.php file as a standard workflow."	Laxman Prajapati
1	49055	Standardise Plugin Notices With a Fly-Out Right-Hand Menu		Administration		normal	normal	Awaiting Review	enhancement	new	close	2019-12-20T16:19:38Z	2019-12-20T19:18:56Z	"Following on from my previous ticket, I have another suggestion, borne out of frustration.

Background: I'm primarily a developer, but with a background in UI design. I've been building with WP for 8 years, and work with client sites day-to-day when they're loaded with plugins, rather than 'vanilla' installs.

I'd like to suggest standardising plugin notices.

There's such a varying approach to plugin notices. In addition to the top 'header area', being misused for adverts:
* Some plugin authors post notices under the 'upgrade' link in the plugin list (Woo is bad for this)
* Some launch a notice in the header area after upgrading their plugin, and loading a page, with a 'What's new' etc. 
* Random adverts displaying occasionally 'do you like our plugin?'
* I've started seeing notices pop-up on the front end. An analytics plugin, notifying you if you're signed in that you're not tracked.

Plugin authors all think their notices are useful, but they're not if you update 15 plugins doing the same thing, all in different ways, often at inconvenient times, within the **global template**.  The plugins own pages are fair-game though.

My suggestion for standardisation would be a right-hand fly-out menu for plugin notices.  Perhaps an icon top right could indicate new notices are available - click the icon to fly-out the right-hand menu.

Within the right-hand menu, plugins can place a notice of their choice - whether informative, up-selling or whatever.  End-users could then dismiss an individual notice, or mute a plugin entirely."	crdunst
1	65185	Tests: Add unit tests for wp_color_scheme_settings()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-06T21:30:43Z	2026-10-31T16:50:00Z	 This ticket adds unit tests for the wp_color_scheme_settings() function in wp-admin/includes/misc.php. The tests will verify that the function correctly outputs the color scheme picker and manages the associated scripts and settings for the user profile.	pbearne
1	65196	Tests: Add unit tests for wp_refresh_post_lock()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-07T16:29:05Z	2026-05-07T16:32:37Z	This ticket adds comprehensive unit tests for the wp_refresh_post_lock() function in wp-admin/includes/misc.php. These tests ensure that the function correctly updates the post lock, handles invalid post IDs, and returns the appropriate Heartbeat response data (including updated lock and nonces if necessary).	pbearne
1	65146	Unit Tests: Add tests for save_mod_rewrite_rules()		Administration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-04-28T21:35:02Z	2026-05-07T16:20:44Z	The function save_mod_rewrite_rules() in src/wp-admin/includes/misc.php currently lacks unit tests. This ticket covers the addition of comprehensive unit tests for this function, ensuring it correctly manages the .htaccess file based on multisite status, server support, and rewrite rules provided by the WP_Rewrite component.	pbearne
1	60640	"Use of ""selected"" function for ""Week Starts On"" on General Setting page"		Administration	6.5	normal	minor	Future Release	enhancement	new	has-patch	2024-02-26T17:20:21Z	2024-04-23T22:13:16Z	"For the dropdown of weekdays for the ""Week Starts On"" field is using the following turnery operation for ""selected=selectd""

`$selected = ( get_option( 'start_of_week' ) == $day_index ) ? 'selected=""selected""' : '';`

We should use WP's `selected` function instead of turnery operation"	bhargavbhandari90
1	57200	WP_List_Table::pagination use singular and plural		Administration		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2022-11-24T23:33:23Z	2022-12-03T11:23:40Z	"WP_List_Table::pagination() currently hardcodes the number of records display as ""1 item""/""XX items"". It would be nice if it used the singular and plural set in the constructor, defaulting to item/items if none are set."	RoscoHead
1	19707	admin-ajax.php requests via http regardless of force_ssl_admin() state		Administration		normal	normal	Awaiting Review	enhancement	reopened		2012-01-01T00:53:52Z	2018-03-06T13:31:02Z	"Noticing these requests failing:

""NetworkError: 403 Forbidden - http://HOSTNAMEwp-admin/admin-ajax.php""


My server explicitly denies http to wp-admin.  SSL only.

Looks like admin_url() is giving http rather than https. I suspect this bug actually lies somewhere in get_site_url(), but I don't have time to triage this right now.

This is technically a security bug since WP should always obey force_ssl_admin(), but I don't think anything is being leaked or compromised.  You don't get access to anything, and nothing being sent over the wire is sensitive since it still obeys the rules of the protocol (cookie is secure).  It's just a nuisance."	robertaccettura
1	30527	function to add separator		Administration		normal	minor	Future Release	enhancement	new	close	2014-11-27T15:07:32Z	2025-06-30T20:12:26Z	"added the function `add_menu_separator( $position )`.

Usage:
{{{
add_action('admin_menu', 'separator');

function separator() {
   add_menu_separator(61);
}
}}}
Adds a separator after 'Appearance'. - Just an example.
"	cfoellmann
1	64187	Detailed image view in the media admin too large		Administration	6.8.3	normal	normal	Awaiting Review	feature request	new		2025-11-03T22:49:24Z	2025-11-03T22:49:24Z	"Hi,  The image preview in the media detail view in admin is too large and hides the custom fields below (especially those added by Code Snippets). I can no longer access my metadata without scrolling excessively. Could you either: Limit the maximum height of the image preview (max-height: 400px for example) Or add an option to reduce/enlarge the preview This affects my daily workflow because I use these custom fields to manage my image metadata."" I manage an art and poetry site and therefore the handling of images on this site is a fundamental subject. Thank you. Regards. Muv Fayard"	lucfayard
1	62074	Hooks to remove Add New links		Administration		normal	normal	Awaiting Review	feature request	new		2024-09-18T14:02:01Z	2024-09-18T17:48:29Z	"A came across actions that been used for menus and realise that ""+ New"" content area at the top bar in admin panel are cannot be replaced or removed.
For example I need to hide or replace ability to add new custom post type.
Now there is now way to do that.

Suggesting add some filter to the loop 
**File: ""wp-includes/admin-bar.php""**
**Function ""wp_admin_bar_new_content_menu""**
**Before:**
{{{#!php
<?php
foreach ( $cpts as $cpt ) {
	if ( ! current_user_can( $cpt->cap->create_posts ) ) {
		continue;
	}

	$key             = 'post-new.php?post_type=' . $cpt->name;
	$actions[ $key ] = array( $cpt->labels->name_admin_bar, 'new-' . $cpt->name );
}
}}}

**After:**
{{{#!php
<?php
foreach ( $cpts as $cpt ) {
	if ( ! current_user_can( $cpt->cap->create_posts ) ) {
		continue;
	}

	$key             = 'post-new.php?post_type=' . $cpt->name;
	if ( ! apply_filters( ""show_new_content_{$cpt->name}_in_admin_bar"",true, $key, $cpt ) ) {
		continue;
	}

	$actions[ $key ] = array( $cpt->labels->name_admin_bar, 'new-' . $cpt->name );
}
}}}

Usage Example:
{{{#!php
<?php add_filter( ""show_new_content_my_post_type_in_admin_bar"", ""__return_false"", 999 );
}}}

"	markuscode
1	39635	Make insertion of generic dismissible notices in frontend code possible		Administration	4.7.1	normal	normal	Awaiting Review	feature request	new		2017-01-19T02:51:45Z	2020-02-15T10:41:45Z	"As a plugin developer I want to employ dismissible notices on an admin screen. All is fine as long as I use the hook in server-side code to insert them on page load.

But if I want to use them in frontend code (for example to notify users of Ajax events), the only way to access the initialisation code is to hijack one of the events in [source:trunk/src/wp-admin/js/common.js#L415 common.js#L415] - with possibly heavy side effects.

It would be easy to add a generic event like `wp-notice-added` that is not used by specific actions to make the live of developers easier."	ccprog
1	62700	Permalink settings for pagination		Administration		normal	normal	Awaiting Review	feature request	new		2024-12-17T16:19:45Z	2024-12-17T16:19:45Z	"A huge number of websites have different approaches to pagination and their SEO optimization.

Now by default - all pagination pages are static pages, to change this you need to make changes to the code, use templates, etc. Unfortunately, many websites do not have the proper technical and financial resources for this.

Proposal:
In the admin in the /wp-admin/options-permalink.php section, add a pagination settings block with 2 structure options:
- static URLs
- dynamic URLs (GET requests, for example, https://website.com/?page=2)"	tunyk
1	66026	User Profile: Add option for custom admin color scheme	aduth	Administration		normal	normal	Awaiting Review	feature request	assigned		2026-09-02T15:41:09Z	2026-10-06T18:53:23Z	"Related: #65776

**Task:** Add a new ""Custom"" option to the Administration Color Scheme setting on the Users > Profile settings page that allows the user to select an accent color and sidebar background color to apply to their WordPress admin interface.

**Context:**

With the [https://make.wordpress.org/core/2026/07/31/design-system-theming-in-wordpress-7-1/ design system theming color tokens] added in WordPress 7.1, one of the intended next steps from the original [https://make.wordpress.org/core/2026/07/07/merge-proposal-design-system-theming/ merge proposal] is to explore ""Enhanced user customization through theming"".

There's a long-term ambition here to enable full configurability for customizing the entire WordPress admin interface, including the content area and ""dark mode"" themes. There have been [https://github.com/WordPress/gutenberg/issues/42388 some concepts for this] as far back as 2022 and the [https://make.wordpress.org/core/2023/07/12/admin-design/ ""Admin Design"" phase 3 overview].

What's proposed in this ticket is a smaller, incremental step that enables user customization and builds upon existing support for color schemes and design system theming.

**Design Notes:**

The attached image can give an idea of how it could be integrated into the existing settings. It is not a design proposal (I am not a designer) and I'd welcome design input on a final design.

**Implementation Notes:**

This would likely depend on (be blocked by) API improvements proposed in #65776. 

This should also integrate with site editor improvements in r62454 ([https://github.com/WordPress/gutenberg/pull/78397 Gutenberg#78397]).

Generated styles for wp-admin interface elements may use parts of [https://github.com/WordPress/gutenberg/tree/trunk/packages/theme `@wordpress/theme`], either the ThemeProvider itself (React-based) or [https://github.com/WordPress/gutenberg/tree/trunk/packages/theme/src/color-ramps internal color ramp logic], which may require changes in the package to expose this as a generalized JavaScript utility not bound to React."	aduth
1	43366	_default_wp_die_handler() Need filter code for update css style.		Administration	4.9.4	normal	normal	Awaiting Review	feature request	new	reporter-feedback	2018-02-20T10:49:46Z	2020-12-20T01:14:28Z	"wp-includes\functions.php Line no 2768.

"	ravipatel
1	62070	PHP Deprecated warnings with null values for success and reject URLs		Application Passwords	5.6	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-09-18T10:31:35Z	2024-10-28T19:59:17Z	"If the `$success_url` or `$reject_url` are set to `null`, then running `esc_url()` on those for [https://github.com/WordPress/wordpress-develop/blob/c4752a11cfc53a49b63d4b786bac9fe62eba1604/src/wp-admin/authorize-application.php#L243-L244 hidden inputs] could produce PHP warnings.

`PHP Deprecated:  ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in /.../wp-includes/formatting.php on line 4482`"	dhruvang21
1	36479	Improve autosave in the browser		Autosave		normal	normal	Future Release	defect (bug)	new		2016-04-11T14:55:10Z	2024-10-10T02:27:37Z	"Several improvements that can make this quite better:

- Try to better detect when a restore may be needed.
- Make in-browser autosaves a ""higher priority"" than remote/server autosaves. The in-browser content is fresher. If both are available, prefer/emphasis the in-browser data.
- Add some subtle, always present UI for restoring a post from in-browser autosave. This should (probably) be only available before the users start typing.
- Consider adding the in-browser data to the revisions or display a preview/diff with the current data in some other way.

"	azaozz
1	49859	Post autosave called multiple times		Autosave	5.4	normal	major	Awaiting Review	defect (bug)	new		2020-04-09T12:15:18Z	2020-04-09T12:15:18Z	"Hi everyone.

I found an issue, which is mostly not related to wordpress core but the fix should be handled in wp core itself.

autosave.js works just great except one point. 

If there is move than one wysiwyg editor in admin post edit screen (no matter how it is added, in my case it is created ACF plugin, but it can be just a custom meta box field implemented as wysiwyg editor field ), and there is and autosave for current post, then 'tinymce-editor-init.autosave' jquery event triggered on jQuery(document) will call checkPost() js method wysiwyg editors count times. As a result ""The backup of this post in your browser is different from the version below"" notice is rendered the same count times.

If there are 6 wysiwyg editors including wp native one (I have 5 custom ones), 'tinymce-editor-init.autosave' is called 6 times, and as a result ""The backup of this post in your browser is different from the version below"" notice is rendered 6 times.

This is very easy to reproduce.

Please review.

Thanks in advance.
Rafik I."	Rufus87
1	63446	Preview Changes show wrong revisions		Autosave	6.8	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-05-14T08:11:09Z	2025-05-15T09:16:39Z	"Since WordPress 6.8, the wp_get_post_autosave() function has been updated to use WP_Query instead of a direct SELECT query. However, this change introduces unexpected behavior when retrieving the autosave revision, particularly when using the Preview Changes button on a Page.

These following are 2 MySQL query I got 

- Before WordPress 6.8

`SELECT * FROM wp_posts WHERE post_parent = 20 AND post_type = 'revision' AND post_status = 'inherit' AND post_name = '20-autosave-v1' ORDER BY post_date DESC LIMIT 1` 

--> Returns page with ID = 945 (the correct one).

- After WordPress 6.8

`SELECT wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.ID = 352 AND wp_posts.post_parent = 20 AND wp_posts.post_type = 'revision' AND ((wp_posts.post_status = 'inherit')) ORDER BY wp_posts.post_date DESC` 

--> Returns incorrect (oldest) revision (ID = 352)

So when I click Preview Changes in Page, I always see the wrong revision despite there are multiple revisions created.

I think the issue we have is the param `name` in `WP_Query` from `wp_get_post_autosave` didn't work properly for all the cases we have."	daomapsieucap
1	60314	Revisions: PHP Warning:  Undefined array key 0 in .../wp-includes/meta.php on line 642		Autosave	6.4.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-01-22T06:57:06Z	2024-10-25T03:15:59Z	" - Call register_post_meta() with single = true, type = object and revisions_enabled = true.
 - Save your meta value as an associative array.
 - Next, call get_post_meta on a post that has a revision.
 - The following filter will fire:

{{{#!php
<?PHP
    add_filter( 'get_post_metadata', '_wp_preview_meta_filter', 10, 4 );
}}}

 - Then return a single associative array.
 - WordPress will treat this as multiple meta values and then try to return the first index hence leading to the above notice.

If this is the intended behaviour then at least add a notice to the register_post_meta function.
"	picocodes
1	47743	autosave locks db and is slow		Autosave		normal	normal	Awaiting Review	defect (bug)	new		2019-07-20T18:00:47Z	2019-07-20T18:32:35Z	"If I have 2 tabs open editing pages, they have apparently got synchronised autosaves. These seem to compete for the db connection resulting in delays and occasional failures to autosave. 

As a suggested way to fix this, you should consider only autosave queuing in the server side. 

Another annoyance in autosave is that it prevents a normal save. If autosave is in progress I should be able to queue up a proper save to happen immediately after the autosave. "	lamaan
1	59094	postChanged() is not working correctly in Text mode editor		Autosave	6.3	normal	major	Awaiting Review	defect (bug)	new		2023-08-13T13:40:12Z	2023-08-13T13:40:12Z	"The javascript function `wp.autosave.server.postChanged()` from autosave.js always returns `true` if we change the post content in **Text** mode in the classic editor, even after autosave kicked-in as seen with ""Draft saved at ..."".

It is supposed to return `false` after the post has been autosaved.

If you switch to **Visual** mode editor, the function immediately returns `false` and after any content change, it switches from `true` to `false` in a few seconds.

Easy steps to reproduce:
– open the editor on any post
– change the post content in Text (not Visual) mode
– wait for autosave to kick in (watch the editor status bar)
– in the browser console, type: `wp.autosave.server.postChanged()`
– it will return `true`
– switch to Visual mode editor
– same command will return `false` (meaning “autosave” is OK)
– switch back to Text mode editor
– same command will return `true` again, even if you didn’t change anything more

Tested on a brand new WP 6.3 default install with Twentytwentythree theme.

It causes an issue when I try to schedule a new revision with the plugin PublishPress Revisions in Text mode after changing the post content. The button hangs and the revision never gets saved. The workaround is to click on the Visual tab to unstuck the button. The JS code of this plugin is checking postChanged(), if true it triggers an autosave with triggerSave(), waits 250ms and checks again if postChanged() is false. If not, it hangs.

Also, this bug causes the editor to always warn you (with a javascript prompt) about unsaved content in Text mode if you try to close the tab or change the URL after having changed the post content, even after it has been autosaved."	skylex69
1	41180	ABSPATH definition - incorrect on chrooted vhost		Bootstrap/Load	4.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-06-27T08:17:39Z	2025-03-12T06:45:16Z	"ABSPATH defined in wp-load.php (and in other files) returns incorrect string on chrooted vhosts (double slash '/' instead of a single):

{{{#!php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	define( 'ABSPATH', dirname( __FILE__ ) . '/' );
}
}}}


On chrooted vhost - output of dirname( __FILE__ ) is '/' and no need to add additional '/' at the end of string.

It would be nice if the ABSPATH definition looked like the following:

{{{#!php
<?php

if ( ! defined( 'ABSPATH' ) ) {
	define( 'ABSPATH', ('/' === dirname( __FILE__ )) ? dirname( __FILE__ ) : dirname( __FILE__ ) . '/' );
}

}}}
"	dacartpl
1	45958	Errors displayed on shutdown handler		Bootstrap/Load		normal	normal	Awaiting Review	defect (bug)	new	close	2019-01-12T13:59:04Z	2026-01-27T22:37:15Z	"PHP errors are displayed on shutdown handler screen for REST API requests. 

See attached screenshot."	spacedmonkey
1	54117	Changing memory limit descriptions		Bootstrap/Load	5.8.1	normal	minor	Awaiting Review	enhancement	new	has-patch	2021-09-13T11:22:55Z	2025-01-03T06:04:07Z	"Hi,

A couple of things that stand out, WP_MAX_MEMORY_LIMIT is for the admin side of the site and WP_MEMORY_LIMIT is for the visitor side. If these were updated in the next version to more friendly names like WP_VISITOR_MEMORY_LIMIT and WP_ADMIN_MEMORY_LIMIT, it would be easier to set up these limits.

How is the memory limit decided for WordPress? I've overridden the defaults since my server has 1GB max memory for PHP, so I've set them to 512 and 1024 respectively but is there a reason why the memory limits are set to arbitrary figures and not a percentage of the limit?"	fyremoon
1	60419	Emails: Your Site is Experiencing a Technical Issue		Bootstrap/Load	5.2	normal	normal	Awaiting Review	enhancement	new		2024-02-02T00:30:15Z	2024-11-13T12:55:31Z	"I have noticed that the emails regarding:

""Your Site is Experiencing a Technical Issue""

Seems to have the same phrasing even though some errors will bring the site down while other errors will not. 

I have received these error types of emails

**Error Details

=============

An error of type E_ERROR was caused in line 52 of the file....**

I jump a bit when I get these emails as I wonder if the site has gone down. It seems the E_ERROR errors do not bring the site down. It seems really nothing happens when this error is seen. I have been told over and over to ignore these types of errors.

This then comes back to...
Whether messaging is/can/should be tailored depending on the type of error?

I know it would be helpful if the really fatal errors show an more seriousness tone than the errors that are usually not that fatal. Having different wording based on the type of error will be very helpful.

Thanks.

"	paaljoachim
1	43159	Introduce helper function for XMLRPC checks		Bootstrap/Load		normal	normal	Awaiting Review	enhancement	new	has-patch	2018-01-25T20:30:35Z	2026-09-26T18:40:37Z	Similar to #25669, it would be nice if there was a helper function for checking if WordPress is doing a XML-RPC request.	NathanAtmoz
1	64665	Add mu-plugins loading filter		Bootstrap/Load		normal	normal	Awaiting Review	feature request	new	has-patch	2026-02-18T05:30:38Z	2026-02-18T08:43:49Z	"There are some occasions where having the ability to filter the mu-plugins being loaded would be useful.

Regular plugins and network activated plugins can be filtered through option filters, but the mu-plugins can't, as no option exists.

In my case, I'd like to avoid loading any plugin content via a sunrise.php file, before a `wp-env` environment is fully configured, but without having to have to start the environment without mappings and then add them in.

The attached PR adds filters to `wp_get_mu_plugins()`, `wp_get_active_network_plugins()`, `wp_get_active_and_valid_plugins()`, and `wp_ get_active_and_valid_themes()` for good measure."	dd32
1	65043	Consider adding wp_doing_cli() to wrap WP_CLI constant checks		Bootstrap/Load		normal	normal	Awaiting Review	feature request	new	dev-feedback	2026-04-08T19:18:31Z	2026-04-08T19:18:31Z	"See #42061.

I think WordPress core should come with a `wp_doing_cli()` function to provide a centrally supported, familiar, and filterable way for plugins and tools to check whether or not the `WP_CLI` constant is set.

While the WP-CLI project is an external library, it is obviously part of the WordPress Foundation, so it is the canonical command line interface for WordPress itself.

Mostly, honestly, I get annoyed seeing `defined( 'WP_CLI' ) && WP_CLI` everywhere. 😇

{{{
/**
 * Determines whether the current request is a WordPress CLI request.
 *
 * @since 7.1.0
 *
 * @return bool True if it's a WordPress CLI request, false otherwise.
 */
function wp_doing_cli() {
	/**
	 * Filters whether the current request is a WordPress CLI request.
	 *
	 * @since 7.1.0
	 *
	 * @param bool $wp_doing_cli Whether the current request is a WordPress CLI request.
	 */
	return apply_filters( 'wp_doing_cli', defined( 'WP_CLI' ) && WP_CLI );
}
}}}

(I set the Component to Bootstrap/Load because that's where this function would likely end up.)"	johnjamesjacoby
1	56545	Add a gutenberg plugin enabled run to PHPUnit Tests workflow	desrosj	Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	assigned	close	2022-09-11T17:59:28Z	2022-10-10T15:26:10Z	[54118] caused a fatal if you are running trunk and the gutenberg plugin.  This isn't the first time that something has happened when backporting code. I think we may want to add a run of the automated PHP tests with the current stable gutenberg plugin enabled to prevent this. I think we should only worry about trunk for this. 	jorbin
1	54064	Add phpcs run command to Docker		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-09-02T19:35:48Z	2021-09-03T18:40:33Z	"I keep on getting formatting error in githib actions but have no easy way to see what they are so have added phpcs commands to the Docker build
this runs phpcs on the tests folder

{{{
npm run phpcs:tests
}}}
 

This runs phpcs in the src folder

{{{
npm run phpcs:src
}}}


"	pbearne
1	36786	Can't pass filter names to `MockAction::get_call_count()`		Build/Test Tools		normal	normal	Future Release	defect (bug)	new	has-patch	2016-05-09T04:20:03Z	2026-11-03T15:43:42Z	"The first of these tests works as expected, but the second generates an ""Undefined index"" notice.

{{{#!php
<?php
function test_get_call_count_action() {
	$action = rand_str();
	$ma = new MockAction();

	add_action( $action, array( $ma, 'action' ) );
	do_action( $action );

	$this->assertSame( 1, $ma->get_call_count( 'action' ) );
}

function test_get_call_count_filter() {
	$filter = rand_str();
	$ma = new MockAction();

	add_filter( $filter, array( $ma, 'filter' ) );
	apply_filters( $filter, rand_str() );

	$this->assertSame( 1, $ma->get_call_count( 'filter' ) );
}
}}}

The attached patch attempts to fix the notice and allow passing filter names to `get_call_count()`.
"	dlh
1	45149	Configure NPM to save exact versions		Build/Test Tools		normal	normal	Future Release	defect (bug)	new		2018-10-23T06:59:33Z	2019-01-18T05:27:27Z	"In #43055 and [https://github.com/WordPress/gutenberg/pull/2512 #GB2512] an `.npmrc` file was added to `/trunk` to Gutenberg to save npm package versions as exact versions in the `package.json` file.

This should also be performed for the 5.0 branch, this will ensure everyone is using the same p[ackage versions

> Exact versions are ensured by configuring a project-level `.npmrc` with `save-exact = true`.
>
> Using exact versions helps avoid avoid and reduce debugging cost of bugs by guaranteeing that two installations of ~~Gutenberg~~ WordPress are running the same dependency versions. It is typically recommendable for applications, whereas a library may want to allow some flexibility in the dependencies it supports (assuming trust in SemVer).


Note: ''Due to the complexity of the commits in #43055 I'm creating this ticket instead of reopening that ticket''"	netweb
1	48229	Console error when running QUnit Test Suite		Build/Test Tools		normal	minor	Awaiting Review	defect (bug)	new	close	2019-10-06T14:48:03Z	2023-06-20T20:09:43Z	"There is a 404 (Not Found) error reported in the browser console for the `admin-ajax.php` file while running QUnit Test Suite.

After selectively running the tests, I could narrow it down to the [https://core.trac.wordpress.org/browser/trunk/tests/qunit/wp-admin/js/widgets/test-media-image-widget.js#L11 image widget control] tests in the `Image Media Widget` module.

Although all the tests are passing, this error should be fixed."	Hareesh Pillai
1	60016	Fixed wp_suspend_cache_invalidation to always return bool/empty		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-12-05T22:55:41Z	2023-12-05T23:16:19Z	"this function can be passed a random string 
where the Gobal value set by is used we check if it is not empty
the doc say to set a bool but is allows you set any value eg 'false' which on empty

So I have added a cast to make sure the value set is bool

see pre fix tests
https://core.trac.wordpress.org/ticket/60015"	pbearne
1	36898	Have `grunt precommit` fail if the test DB is unreachable.		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new		2016-05-21T06:18:15Z	2019-02-25T01:46:28Z	"`grunt precommit` passes if the test DB is unreachable, preventing phpunit from running.

To recreate:

1. Disable your local database
2. Add a test guaranteed to fail
3. Run `grunt precommit`
4. The result will be `Done, without errors.`

This could happen in the hypothetical event someone forgets to start their virtual machine."	peterwilsoncc
1	65950	Make sure all scripts and tasks provided to developers are always functional	afercia	Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2026-08-24T12:44:16Z	2026-09-04T11:35:28Z	"Related: #65923 and #65939

Not all the NPM scripts and Grunt tasks provided by Core are included in the automated testing pipeline. Some of them are provided as sort of 'developers utility' as in: tools that developers can use for plugin development or to perform tasks on some parts of Core during development. For example: `grunt jshint:plugins` and `npm run lint:jsdoc`.

Given that they are not included in any automated testing, they can break at any time with little chances Core contributors would notice that promptly.

Turns out that:

- `lint:jsdoc` is broken since 5 months, when ESLint [https://github.com/WordPress/gutenberg/commit/a445c44378903fa72a08756d512713e9d8a0be88 was upgraded to version 10].
- `grunt jshint:plugins` (assuming it is still useful to some extent) fails with any plugin that uses minified / uglified JavaScript files or a `node_modules` directory, which is pretty the norm today.

Once they are fixed in the related tickets, WordPress should make sure they are also tested so that any future breakage is detected automatically.

Re: `lint:jsdoc`:
I don't see a reason why it is not included in the precommit tasks. By adding it there, it would also be automatically tested in CI.


Re: `grunt jshint:plugins`:
I'm not sure how this could be included in some sort of automated testing. Still, it's a script provided by Core and we should make sure that it works. Otherwise, we should consider to remove it.

I didn't go any deeper with checking all the scripts and tasks in `package.json` and in the Gruntfile. There mey be other scripts / tasks that aren't actually tested in any way it would be worth double checking."	afercia
1	37207	Multiple unit tests for add_rewrite_endpoint lose custom endpoints		Build/Test Tools	4.5.3	normal	normal	Future Release	defect (bug)	new	has-patch	2016-06-28T02:47:28Z	2026-08-18T08:39:29Z	"When registering multiple endpoints through `add_rewrite_endpoint()`, tests for the existence of each endpoint in `$GLOBALS['wp']->public_query_vars` fails.

I have attached a simple plugin that illustrates the problem. Steps to reproduce: 

1. Download the plugin.
2. Run `phpunit` inside of it.
3. Test #1 succeeds while test #2 fails.

The relevant excerpts from the plugin are included below.

Endpoint registration:
{{{
add_action( 'init', function() {
	add_rewrite_endpoint( 'custom-endpoint', EP_ROOT );
	add_rewrite_endpoint( 'custom-endpoint-2', EP_ROOT );
});
}}}

Tests:
{{{
class TestRewriteEndpoint extends WP_UnitTestCase {
	public function setUp() {
		parent::setUp();
		$this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );
		$this->qvs = $GLOBALS['wp']->public_query_vars;
		// print_r( $this->qvs );
	}
	public function tearDown() {
		$GLOBALS['wp']->public_query_vars = $this->qvs;
		parent::tearDown();
	}
	public function test_is_custom_endpoint_added() {
		$this->assertContains( 'custom-endpoint', $GLOBALS['wp']->public_query_vars );
	}
	public function test_is_custom_endpoint_2_added() {
		$this->assertContains( 'custom-endpoint-2', $GLOBALS['wp']->public_query_vars );
	}
}
}}}

This may possibly be related to #34346, though in this case I am not using `go_to()`."	ericdaams
1	53842	Review the type of select return values		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2021-07-30T22:06:25Z	2021-07-30T22:06:25Z	"In addressing ticket #46149, four tests were encountered which were testing (part of) a return value of WP Core functions, but were found to be using the wrong value type in this comparison.

This was discovered due to the fact that the `assertContains()` method in PHPUnit uses strict type comparisons as of PHPUnit 8.0.2.

For the time being, the tests will be updated to reflect the REAL return type per proposed commit https://github.com/jrfnl/wordpress-develop-official/commit/64dd09d5c292c3eac80419d5a1a325dab453a5ed

This ticket is being opened to follow up on this as it should be investigated whether the return type of these WP Core function as-is is actually correct and the test update was therefore justified. Or whether the test update should be reverted and the actual WP Core functions should be updated.

== Details

=== `Tests_Comment_GetPageOfComment::test_page_number_when_unapproved_comments_are_included_for_current_commenter()` and `Tests_Comment_GetPageOfComment::test_page_number_when_unapproved_comments_are_included_for_current_user()`

Both these tests generate a comment ID using a test Factory class:
{{{#!php
<?php
$new_unapproved = self::factory()->comment->create(
	$comment_args
);
}}}

`$new_unapproved` will now contain a comment ID as an integer.
This integer is expected to be included in a list retrieved via the [https://developer.wordpress.org/reference/functions/get_comments/ `get_comments()`] function and filtered via [https://developer.wordpress.org/reference/functions/wp_list_pluck/ `wp_list_pluck()`].

Based on these two tests, the `comment_ID` as returned in the array retrieved via `get_comments()` is a string, not an integer.

So the questions for these two tests are:
* Should the `comment_ID` returned by `get_comments()` be a string or an integer ?
* If the `get_comments()` function should remain unchanged, should the TestCase::factory()->comment->create()` method be adjusted to return a string for the ID value instead of an integer ?
* If the answer to both the above questions is ""no"", no further action is needed once the proposed commit mentioned above has been committed.

=== `WP_Test_REST_Post_Meta_Fields::test_set_value_multiple_custom_schema()` and `WP_Test_REST_Term_Meta_Fields::test_set_value_multiple_custom_schema()`

These two tests both update the post meta of a WP post via a REST API POST request.
The data to be set is passed as integers:
{{{#!php
<?php
$data = array(
	'meta' => array(
		'test_custom_schema_multi' => array( 2, 8 ),
	),
);
$request->set_body_params( $data );
$response = rest_get_server()->dispatch( $request );
}}}

The test subsequently requests the post meta information via a call to [https://developer.wordpress.org/reference/functions/get_post_meta/ `get_post_meta()`] and ensures that the returned array contains both values.
The values returned in the array from `get_post_meta()`, however are ''strings'', not integers.

So the questions for these two tests are:
* Where does the type change from integer to string happen ?
* Is the data when set via the REST API being saved correctly ?
* Does the Core code need to change or is the test update correct ?

In this case, I suspect the type change ''may'' be due to the fact that all data received from `$_POST` will always be in string format, however, the handling of these API requests should be investigated to be sure.

"	jrf
1	62463	The `precommit:emoji` script no longer works in branches 6.4 and earlier		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new		2024-11-18T17:41:12Z	2024-12-02T02:06:17Z	"In r57758 the `precommit:emoji` script was updated to fetch the list of Twemoji files via a GraphQL query to the `jdecked/twemoji` repo.

This script in branches 6.4 and earlier still tries to fetch the list from the `trunk` branch of the `twitter/twemoji` repo. The `trunk` branch no longer exists, therefore this command fails.

r57758 should be backported.

Previously:

* #57600
* #60520
"	johnbillion
1	65496	Theme testing workflow will fail when multiple themes have uncommitted changes to built files.		Build/Test Tools		normal	normal	Future Release	defect (bug)	new	has-patch	2026-06-19T18:39:45Z	2026-09-16T12:54:50Z	"When the `test-and-zip-default-themes.yml` workflow detects unexpected changes to built files, a patch file is uploaded as an artifact for the `commit-built-file-changes.yml` workflow to apply and commit before pushing the changes back to the pull request `HEAD` branch.

However, if multiple themes have uncommitted changes the workflow will fail due to `actions/upload-artifact` rejecting artifacts with identical names on the same workflow run (`pr-built-file-changes` is used for every job).

The workflow needs to be updated to use a unique name for each theme, and `commit-built-file-changes.yml` needs to be updated to handle multiple patch files from a single triggering workflow (currently only the first artifact is processed).

The `check-built-files.yml` also uploads artifacts using the same name. But these patches are for the main WordPress build script. There should only ever be one artifact attached to these triggering workflow runs.

The `name` of the artifact is configured as `pr-built-file-changes` because that is the name `commit-built-file-changes.yml` expects. However, only the first artifact is uploaded when a workflow attempts to upload multiple artifacts with the same name (each additional attempt receives a failure and the workflow fails)."	desrosj
1	45088	Update package-lock.json for Mac, Linux, and Windows cross-platform compatibility		Build/Test Tools		normal	minor	Future Release	defect (bug)	new		2018-10-12T11:53:43Z	2018-10-29T12:07:42Z	"Doing a ""clean"" `npm install` after #45064 on Windows 10 changed the package-lock.json a bit, adding a few `""optional"": true`. "	azaozz
1	54397	e2e timeout errors: waiting for selection `.components-snackbar`		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new		2021-11-08T14:39:21Z	2022-10-04T02:42:33Z	"The CI is experiencing too many e2e time out errors, which may indicate a flaky test or instability. This ticket is opened to investigate and monitor for stability improvements.

Error:
{{{
TimeoutError: waiting for selector `.components-snackbar` failed: timeout 30000ms exceeded
    at new WaitTask (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/puppeteer-core/src/common/DOMWorld.ts:780:28)
    at DOMWorld.waitForSelectorInPage (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/puppeteer-core/src/common/DOMWorld.ts:632:22)
    at Object.internalHandler.waitFor (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/puppeteer-core/src/common/QueryHandler.ts:78:19)
    at DOMWorld.waitForSelector (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/puppeteer-core/src/common/DOMWorld.ts:490:25)
    at Frame.waitForSelector (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/puppeteer-core/src/common/FrameManager.ts:1163:47)
    at Page.waitForSelector (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/puppeteer-core/src/common/Page.ts:2100:29)
    at publishPost (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/@wordpress/e2e-test-utils/build/@wordpress/e2e-test-utils/src/publish-post.js:19:14)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at Object.<anonymous> (/home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/edit-posts.test.js:25:3)
}}}

Capturing CI job runs where it failed:
* [https://github.com/WordPress/wordpress-develop/actions/runs/1435049894/attempts/1 CI job run] and [https://wordpress.slack.com/archives/C02RQBWTW/p1636380358381800 Slack]
* [https://github.com/WordPress/wordpress-develop/actions/runs/1434946118/attempts/1 CI job run] and [https://wordpress.slack.com/archives/C02RQBWTW/p1636378213379000 Slack]
* [https://github.com/WordPress/wordpress-develop/actions/runs/1422639019/attempts/1 CI job run] and [https://wordpress.slack.com/archives/C02RQBWTW/p1636050213205300 Slack]"	hellofromTonya
1	46804	wp-phpunit calls _delete_all_posts() too early during bootstrap		Build/Test Tools		normal	normal	Awaiting Review	defect (bug)	new		2019-04-04T23:55:17Z	2019-04-05T06:40:05Z	"Bootstrap file looks like so
{{{#!php
<?php

// ...

_delete_all_posts();

require dirname( __FILE__ ) . '/testcase.php';
require dirname( __FILE__ ) . '/testcase-rest-api.php';
require dirname( __FILE__ ) . '/testcase-rest-controller.php';
require dirname( __FILE__ ) . '/testcase-rest-post-type-controller.php';
require dirname( __FILE__ ) . '/testcase-xmlrpc.php';
require dirname( __FILE__ ) . '/testcase-ajax.php';
require dirname( __FILE__ ) . '/testcase-canonical.php';
require dirname( __FILE__ ) . '/exceptions.php';
require dirname( __FILE__ ) . '/utils.php';
require dirname( __FILE__ ) . '/spy-rest-server.php';
}}}

In one of my mu-plugins, I have a function hooked into before_delete_post and wp_trash_post

{{{#!php
<?php
add_action( 'before_delete_post', function() {
    wp_remote_request( ... );
} );
}}}

But since file spy-rest-server.php isn't loaded yet, I can't run test units (errors regarding Spy_Server class which does not exist).

The ''_delete_all_posts()'' should be called AFTER requiring the files
"	mynameiskermit
1	66169	Add grunt ticket:<n> to read a Trac ticket, and restore grunt patch:<n>, by fetching through the Playwright browser core already ships		Build/Test Tools	trunk	normal	normal	Awaiting Review	enhancement	new	has-patch	2026-09-23T23:50:31Z	2026-09-28T17:56:54Z	"core.trac.wordpress.org now answers every non-browser request with a JavaScript proof-of-work challenge (`Checking your browser...`, HTTP 403). That includes the plain HTML, `?format=rss`, `?format=csv`, the attachment listing, and raw attachments. Two consequences for contributors and committers:

 1. `grunt patch:<ticket>` fails for every ticket. Reproduced today against #66079: {{{Running ""patch:66079"" (patch) task >> getPatchFromTicket fail >> status: 403}}}. This is tracked upstream as [https://github.com/WordPress/grunt-patch-wordpress/issues/210 grunt-patch-wordpress#210] (August 2026), with no fix.
 2. There is no way to read a ticket from the command line at all. Anyone scripting a triage or commit workflow, including AI-assisted ones, has to paste ticket text by hand.

The durable fix is a structured read API, proposed in [https://meta.trac.wordpress.org/ticket/8202 meta:#8202]. That ticket is currently unowned (owner removed June 2026) and the discussion there favours either Systems restoring access for identified clients or a Trac-native MCP plugin. Neither is on a timeline.

== Proposal ==

core already ships a real browser: `@playwright/test` 1.61.1 is a devDependency, and the end-to-end and performance workflows install Chromium with `npm exec --no -- playwright install chromium`. The challenge is designed to let browsers through, so a headless Chromium page passes it in a few seconds and can then read the rendered ticket, the attachment list, and raw attachments.

Two tasks, both implemented in the `grunt-patch-wordpress` package that core already depends on, then picked up here with a dependency bump:

 * `grunt ticket:<n>` (new): prints the ticket summary, properties, description, attachments with raw URLs, linked pull requests, and the full change history. `--json` for structured output.
 * `grunt patch:<n>` (existing): swap the two `request()` calls in `getPatchFromTicket()` and `getPatch()` for fetches made through the same Playwright page, so the attachment listing and download work again. Also make the failure message say ""Trac returned a bot-protection challenge"" instead of ""Nothing to patch"", as issue 210 asks.

Prerequisite for both: `npx playwright install chromium` once, the same step the e2e suite needs. If no browser is installed the task should say exactly that and exit, not fall through to the old usage help.

A working proof of concept for the read half is at [https://github.com/whyisjake/trac-ticket whyisjake/trac-ticket]. It reads core and meta tickets, keeps the challenge cookie across runs, and takes about 6 seconds per ticket.

== Caveats worth deciding up front ==

 * This routes tooling through a protection Systems put in place. It is the project's own tool on the project's own Trac, using the exact path the challenge is meant to allow, but Systems should be looped in so they are not surprised by headless-browser traffic from committers. An allowlisted client would make all of this unnecessary.
 * It is a stopgap. When meta:#8202 or an equivalent API lands, both tasks should switch to it and drop the browser dependency.
 * Downloading Chromium is roughly 95 MB. That is already true for contributors running e2e tests; it becomes true for anyone who wants `grunt patch` back.

== Related ==

 * [https://github.com/WordPress/grunt-patch-wordpress/issues/210 grunt-patch-wordpress#210] – grunt patch fails for every ticket
 * [https://github.com/WordPress/grunt-patch-wordpress/issues/83 grunt-patch-wordpress#83] – list PRs along with patches (the new task covers this)
 * meta:#8202 – structured JSON API for Trac

AI assistance: Yes. Tool(s): Claude Code (Claude Fable 5.1). Used for: confirming the 403 behaviour and the grunt patch failure, locating the upstream issue and meta ticket, building the proof-of-concept script, and drafting this ticket.
"	whyisjake
1	50412	Add support for common PHPUnit arguments when watching		Build/Test Tools		normal	normal	Awaiting Review	enhancement	new		2020-06-17T16:32:14Z	2020-09-04T21:55:33Z	"r42760 added the `watch:phpunit` task, but it only supports the filtering tests by the group. In ticket:42282#comment:18 @soulseekah asked about adding support PHPUnit filters, etc.

That seems very desirable, and there are other PHPUnit arguments that would be useful too, like filtering by test name, and file.

Rather than building all that from scratch, though, we could switch to using  [https://github.com/spatie/phpunit-watcher phpunit-watcher] instead. It already has support for all of those, plus an interactive mode where you can switch between them at will, rather than having to restart the task with different args.

I've been using it lately and it seems to work well^1^.

@netweb, it looks like you've contributed to it in the past; do you think it'd work well for Core?

[[br]][[br]]
![1] Since Core is such a large repo, we'd probably need to wait until [https://github.com/spatie/phpunit-watcher/pull/116 #116-phpunit-watcher] is merged."	iandunn
1	62944	Allow a single theme to be tested/built		Build/Test Tools		low	normal	Future Release	enhancement	new		2025-02-11T17:04:56Z	2025-02-11T17:04:56Z	It's not uncommon for an update to a subset of default themes to be published. It would be nice if the workflow responsible for testing and building the default themes could accept a single or comma separated list of themes to avoid needlessly building all themes when running via the `workflow_dispatch` event.	desrosj
1	64634	Build/Tools: Update PHPCompatibilityWP to 3.0.0-alpha2		Build/Test Tools		normal	normal	Future Release	enhancement	new	dev-feedback	2026-02-12T19:41:42Z	2026-11-04T18:55:47Z	"This ticket proposes updating PHPCompatibilityWP from ~2.1.3 to 3.0.0-alpha2. WordPress currently uses PHPCompatibilityWP ~2.1.3 (resolves to 2.1.8), which depends on PHPCompatibility 9.3.5, released in December 2019. This means the PHP compatibility checks have very limited coverage for PHP 8+ changes.

PHPCompatibilityWP [https://github.com/PHPCompatibility/PHPCompatibilityWP/releases/tag/3.0.0-alpha2 3.0.0-alpha2] was released in December 2025 and depends on PHPCompatibility [https://github.com/PHPCompatibility/PHPCompatibility/releases/tag/10.0.0-alpha2 10.0.0-alpha2], which provides more comprehensive coverage for PHP 8+ compatibility checks.

=== Why update

Without this update, WordPress has very little automated detection for PHP 8+ compatibility issues.

=== About the alpha status

PHPCompatibility 10.0.0 does not have a stable release yet, and there is no timeline for one. However, @jrf (the lead maintainer of PHPCompatibility and PHPCompatibilityWP) actively recommends using version 3.0.0-alpha2 of PHPCompatibilityWP:

* She recently opened a PR to do the same change that I'm proposing here for YoastCS: [https://github.com/Yoast/yoastcs/pull/426 Yoast/yoastcs#426].
* There are a few comments she left recommending both PHPCompatibility 10.0.0@alpha and PHPCompatibilityWP 3.0.0@alpha: [https://github.com/PHPCompatibility/PHPCompatibilityWP/issues/84#issuecomment-3591642658 PHPCompatibilityWP#84], [https://github.com/PHPCompatibility/PHPCompatibilityWP/issues/40#issuecomment-3632877563 PHPCompatibilityWP#40] and [https://github.com/PHPCompatibility/PHPCompatibility/issues/2017#issuecomment-3612954618 PHPCompatibility#2017].
* She discussed this topic with @desrosj before and recommended that WP should start using PHPCompatibilityWP 3.0.0@alpha.

Also, the [https://github.com/PHPCompatibility/PHPCompatibility?tab=readme-ov-file#composer-project-based-installation PHPCompatibility GitHub README] documents `^10.0.0@dev` as the recommended version.

The alpha status reflects that sniff coverage for all new PHP syntaxes isn't yet complete. However, the alpha is substantially more complete than the 6+ year old stable release.

=== Discussion points

Running the compat check with the updated version surfaces 124 new violations (47 errors, 77 warnings) across 44 files. I checked them, and they fall into the following categories:

1. **Violations blocked by existing tickets**: the largest group (40 errors) is `NewHTMLEntitiesFlagsDefault.NotSet`, which is already tracked in #53465. `utf8_encode` deprecations (3) are tracked in #55603. These can be temporarily excluded or annotated with references to the blocking tickets.

2. **Intentional use of `#[\SensitiveParameter]`**: 33 warnings for `NewAttributes.PHPNativeAttributeFound`. The use of this attribute is intentional (see #57304). It is silently ignored on PHP < 8.2 and active on 8.2+. I suggest this sniff be excluded in `phpcompat.xml.dist`.

3. **Version-guarded deprecated calls**: functions like `curl_close()`, `imagedestroy()`, `xml_parser_free()`, and `finfo_close()` are called inside `PHP_VERSION_ID < 80000` or `function_exists()` guards. PHPCompatibility flags them because it doesn't check for the existence of such guards (see [https://github.com/PHPCompatibility/PHPCompatibility/issues/301 PHPCompatibility/PHPCompatibility#301]). There is existing prior art for handling these with inline `phpcs:ignore` annotations and I think this should be the approach used.

4. **Third-party bundled library issues**: violations in Requests, SimplePie, getID3, and Snoopy that need exclusions in `phpcompat.xml.dist` as previously done for other files in those libraries. For Requests, these violations were already addressed upstream in [https://github.com/WordPress/Requests/pull/988 Requests#988] (merged in v2.0.16); WordPress currently bundles 2.0.11, so the exclusions would be temporary until the bundled copy is updated. The best path for the other libraries will need further investigation.

5. **Error code changes in v10**: some existing exclusions and inline annotations need updating because PHPCompatibility 10.0 renamed error codes for functions that are both deprecated and removed (e.g. `*Deprecated` → `*DeprecatedRemoved`). See [https://github.com/PHPCompatibility/PHPCompatibility/pull/1186 PHPCompatibility#1186] and [https://github.com/PHPCompatibility/PHPCompatibility/pull/1199 #1199].

Additionally, besides updating the PHPCompatibilityWP version constraint, `composer.json` needs `""minimum-stability"": ""dev""` and `""prefer-stable"": true` because PHPCompatibilityWP's own dependencies use `@dev` stability flags. This affects Composer's resolution behavior for the entire project, though `prefer-stable` ensures stable versions are chosen when available.

I'd appreciate feedback on whether updating to an alpha version of PHPCompatibilityWP is acceptable for Core, and if so, whether the suggested approaches for handling the new violations are reasonable. If there's agreement on the general direction, I'm willing to prepare a patch."	rodrigosprimo
1	64971	Build: Synchronize .gitignore and svn:ignore		Build/Test Tools		normal	normal	Future Release	enhancement	new		2026-03-27T19:01:15Z	2026-09-25T17:39:16Z	"The Core `git` repo and `svn` repo have mismatched methods for excluding files, which increases the burden of developing in the `git` repo and in generating the proper commits for the “build repo.”

At the heart of this is the distinction between how `git`’s `.gitignore` contains patterns which apply recursively down the directory hierarchy, but `svn`’s `svn:ignore` //property// applies only to the directory on which it’s set.

In [62155], part of the `.gitignore` was ported into a `svn:global-ignores` property, but only as much as was required to fix some broken pieces of the 7.0 release process.

This ticket proposes three actions:

 - Audit all of the existing ignores in both repos to discover all discrepancies.
 - Move all `subversion` ignores out of per-directory properties and into a single global property.
 - Provide a new script or automation to raise issues when the ignore sets diverge.

== Related

 - This first appeared during the work on #64393.
 - A `svn:global-ignores` property was introduced in [62155]"	dmsnell
1	57426	Coding Standards: mark warnings that trigger CI failures as errors.		Build/Test Tools		normal	normal	Awaiting Review	enhancement	new	close	2023-01-05T21:46:54Z	2023-01-06T22:21:19Z	"The GitHub workflow for linting PHP currently fails for both warnings and errors, see this [https://github.com/WordPress/wordpress-develop/actions/runs/3526768168/jobs/5915073412 example run in which warnings error out].

As warnings trigger CI errors, I think it would be beneficial to set the phpcs.xml.dist file to bump the severity of all warnings to errors.

For developers using linting tools that default to showing errors only, this will ensure their editor/pre-merge script highlight anything that will cause the CI to fail. "	peterwilsoncc
1	64958	Copy React vendor scripts from Gutenberg, update version number		Build/Test Tools		normal	normal	7.3	enhancement	new	has-patch	2026-03-26T11:37:18Z	2026-10-19T11:31:24Z	"Gutenberg started building its own bundles for the `react`, `react-dom` and `react-jsx-runtime` vendor scripts. Previously we've been copying React's own UMD bundles shipped as part of their NPM packages, but React 19 is going to remove these UMD bundles, and we are preparing for the migration by abandoning the UMD bundles in advance.

Instead of copying the UMD files, we'll copy them from the Gutenberg build.
We'll also update the version strings of the packages by appending a `-wp` suffix, so that we can differentiate them from previous versions. Even though it's still the same React 18.3.1, the build method has changed."	jsnajdr
1	48050	Development Build: Provide structure to auto-install plugins		Build/Test Tools		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2019-09-16T16:39:11Z	2025-07-31T15:47:36Z	"When doing local development, I never use a completely blank version of WordPress. I always install a plugin like Query Monitor to help me debug and monitor development on the fly.

Additionally, for some themes and plugin development, a developer may always or often need particular plugins installed.

I propose automatically installing Query Monitor (FYI @johnbillion ) for Core development while also creating a structure to allow other developers using this box for other types of work to define as an environmental variable other options.

I suggest only installing, not activating, to ensure that the running code is intentional as compared to the pristine environment.

In our Travis config, for tests, we should not have anything different than a production build, so a `false` variable will disable anything from being installed.

For other uses, a comma-separated list would provide a way to install multiple plugins.

cc: @pento"	kraftbj
1	53480	Existing config files lost when installing local-env		Build/Test Tools		low	normal	Awaiting Review	enhancement	new		2021-06-22T17:25:48Z	2025-09-04T17:49:20Z	"=== Problem

`npm run env:install` overwrites existing `wp-config.php` and `wp-tests-config.php` files without warning. Those files aren't versioned, so they have to be restored from a local backup, if one exists.

That makes sense in hindsight, but it wasn't obvious to me before running the command.

I normally use a local nginx/php/mysql stack (via homebrew), but the unit tests don't work locally because I'm running PHP 8 (#46149), so I wanted to use local-env to run the tests. Running the install broke my normal environment, but luckily I had a backup.

Even if someone is only using local-env, they may have changes they want to preserve between installs. e.g., if they re-install to try and fix something that's not working.


=== Potential solution: manual intervention

One approach would be to remove the `--force` param when creating `wp-config.php`, so WP-CLI errors out. Folks could then manually backup/remove the file and run the command again.

For `wp-tests-config.php`, the install script could check if the file exists before creating it, and abort with a warning if it does.

That won't affect contributors installing for the first time.

=== Potential solution: automatic backups

To avoid manual intervention, another approach would be to rename existing files to `wp-config.php.backup1`, `wp-config.php.backup2`, so that each version is preserved.

=== Potential solution: prompt before running

A simpler solution might be to just print a warning to the console at the start of the script, and prompt the user to continue. That'd introduce unnecessary friction for new contributors, though.

At the very least, though, I think there should be a warning in the `README`."	iandunn
1	44351	"Fix ""Foreign key constraint is incorrectly formed"" when running unit tests"		Build/Test Tools	4.9.6	normal	normal	Awaiting Review	enhancement	new		2018-06-11T17:09:19Z	2021-11-09T23:22:23Z	"I kept getting ""Foreign key constraint is incorrectly formed"" when running tests on my plugin. This drove me nuts for a few hours. The reason is [https://github.com/WordPress/wordpress-develop/blob/9e38c2847e5f3b94785378094d17f09577215d3c/tests/phpunit/includes/testcase.php#L335 WP_UnitTestCase::start_transaction()]


The WordPress testing framework changes all 'CREATE TABLE' queries to 'CREATE TEMPORARY TABLE'.

[https://dev.mysql.com/doc/refman/5.5/en/create-table-foreign-keys.html From the MYSQL manual]:

> Foreign key relationships involve a parent table that holds the central data values, and a child table with identical values pointing back to its parent. The FOREIGN KEY clause is specified in the child table. The parent and child tables must use the same storage engine. **They must not be TEMPORARY tables**.

Please add something like:

{{{#!php
<?php
add_filter( 'query', [ $this, '_alter_temporary_tables' ] );
// ... snip ...
public function _alter_temporary_tables( $query ) {
    if ( 'ALTER TABLE' === substr( trim( $query ), 0, 11 ) && strpos( $query, 'ADD CONSTRAINT' ) !== false && strpos( $query, 'FOREIGN KEY' ) !== false ) {
        return 'SELECT 1'; // Replace borken foreign key query with a fake query
    }
    return $query;
}
}}}

To `WP_UnitTestCase::start_transaction()`

Thank you for your consideration."	conner_bw
1	49274	Grunt copy:files should ignore node_modules		Build/Test Tools		normal	normal	Awaiting Review	enhancement	new		2020-01-22T23:14:52Z	2021-03-08T17:13:56Z	"I've gotten this error several times when run `grunt watch`, and [https://wordpress.slack.com/archives/C02RQBWTW/p1569233071368200 several] [https://wordpress.slack.com/archives/C18723MQ8/p1510735332000041 others] [https://wordpress.slack.com/archives/C18723MQ8/p1472636852000040 have] [https://wordpress.slack.com/archives/C18723MQ8/p1463866743000131 too]:

`Maximum call stack size exceeded`

It happens because there's a `node_modules` folder somewhere in `src/`, and they typically contain too many files for Grunt to handle.

Configuring `copy:files` to always ignore `node_modules` folders seems like it'd remove that friction for people."	iandunn
1	50266	Had to specify mysql socket to run php automated test		Build/Test Tools		normal	minor	Awaiting Review	enhancement	new	close	2020-05-27T18:13:49Z	2024-11-12T18:14:00Z	"I had to add mysql socket information to be able to run `phpunit`. Without it, phpunit complained that it could not connect to database. Hopefully someone can confirm this and add this information to the docs. 

Example in wp-tests-config.php: 
define( 'DB_HOST', 'localhost:/Applications/MAMP/tmp/mysql/mysql.sock' );

I followed all the instructions from here: https://make.wordpress.org/core/handbook/testing/automated-testing/phpunit/ . I am using MacOS Catalina 10.15.2."	mmarco9
1	41425	Killing phpunit may result in a broken database		Build/Test Tools	4.9	normal	normal	Awaiting Review	enhancement	new	has-patch	2017-07-24T15:50:00Z	2018-06-13T20:03:59Z	"While running phpunit for wordpress-develop under Windows I hit ctrl-break during the Install processing. 

The next time I ran phpunit it didn't work.


=== Actual output ===
""Error establishing a database connection"" 
<p>One or more database tables are unavailable. The database may need to be <a href=""maint/repair.php?referrer=is_blog_installed"">repaired</a>.</p></body>

=== Expected output ===
The install routine should drop and recreate the tables during Install 

=== Explanation ===
The process was killed after the wp_options table was dropped but before wp_install() had completed. 

=== Workaround ===
Either change $table_prefix in wp-tests-config.php or drop all the other tables that are missing and re-run. 
"	bobbingwide
1	63883	Podman Local Environment Setup Scripts		Build/Test Tools	6.9	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2025-08-26T17:41:09Z	2026-02-24T04:29:51Z	"Due to a restriction, Docker is cannot be installed on my Mac and Podman must be used.

The instructions for getting the local environment set up require the use of docker, https://github.com/WordPress/wordpress-develop/?tab=readme-ov-file#local-development. 

We can add support for Podman via an argument would be helpful in the case that docker cannot be installed. 



/tools/local-env/scripts/docker.js 

Output:

> WordPress@6.9.0 env:start
> node ./tools/local-env/scripts/start.js && node ./tools/local-env/scripts/docker.js run -T --rm php composer update -W

/bin/sh: docker: command not found
/Users/<User>/wordpress-develop/tools/local-env/scripts/start.js:26
		throw new Error( 'Could not retrieve Docker system info. Is the Docker service running?' );
		^

Error: Could not retrieve Docker system info. Is the Docker service running?
    at Object.<anonymous> (/Users/<User>/wordpress-develop/tools/local-env/scripts/start.js:26:9)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
    at node:internal/main/run_main_module:28:49

Node.js v20.17.0
"	andrewkarch
1	65279	Prevent non css files from being placed in CSS folders and prevent non JS files from being placed in the JS folders		Build/Test Tools		normal	normal	Future Release	enhancement	new	has-patch	2026-05-20T15:07:49Z	2026-11-07T14:52:18Z	Currently, it's possible to place php files in `/wp-includes/css`, `wp-includes/js`, `wp-admin/js`, and `wp-admin/css`.  These folders should only ever contain their respective file types and these file types should only ever be in these folders. And automated check should be run to enforce this. 	jorbin
1	56021	Rename or deprecate assertDiscardWhitespace()		Build/Test Tools		normal	normal	Future Release	enhancement	new		2022-06-20T18:12:26Z	2022-09-19T22:26:15Z	"There are a few custom assertion methods in `WP_UnitTestCase_Base`:

* `assertWPError()`
* `assertNotWPError()`
* `assertIXRError()`
* `assertNotIXRError()`
* `assertEqualFields()`
* `assertDiscardWhitespace()`
* `assertSameIgnoreEOL()`
* `assertEqualsIgnoreEOL()`
* `assertSameSets()`
* `assertEqualSets()`
* `assertSameSetsWithIndex()`
* `assertEqualSetsWithIndex()`
* `assertNonEmptyMultidimensionalArray()`
* `assertQueryTrue()`

`assertDiscardWhitespace()` is the odd one out, as it does not match the naming of other methods. Existing since [760/tests], it appears to have never been used in the test suite.

I think we can rename it to `assertEqualsDiscardWhitespace()` and keep the old name as an alias just in case, or deprecate it altogether, maybe suggesting `assertSameIgnoreEOL()` as a replacement, though it's not quite the same.

While it is possible that plugins may use the method in their tests, searching in the directory [https://wpdirectory.net/search/01G614PXD6J2Q67FDKS8DYS6S3 shows zero results]."	SergeyBiryukov
1	42278	Speed up tests by using shared user fixtures		Build/Test Tools		normal	normal	Future Release	enhancement	new	needs-unit-tests	2017-10-19T09:09:44Z	2019-01-08T10:13:51Z	"There are a lot of tests that require user fixtures. These are then created, and afterwards deleted, as part of the test class set up and tear down methods.

These fixtures could all be reused between tests, if a user for every role in Core would be created in the database as part of the unit test setup process.

If we had that, all the tests that need for example a user with the `editor` role could just grab the existing user from the database, instead of creating this as a test fixture."	anonymized_8769252
1	62784	Test theme build processes on more setups		Build/Test Tools		normal	normal	Future Release	enhancement	new	changes-requested	2025-01-07T17:00:27Z	2025-01-07T17:09:35Z	Similar to how the Core build process is tested on multiple operating systems in the Test Build Process workflow, the theme build processes should be tested the same way to ensure contributors are able to submit fixes regardless of their specific setup.	desrosj
1	53987	add tests for wp_list_filter		Build/Test Tools		normal	normal	Future Release	enhancement	new	has-patch	2021-08-23T22:08:17Z	2026-10-31T00:06:41Z		pbearne
1	41781	do not forcefully phpunit delete fixtures data		Build/Test Tools	4.8.1	normal	normal	Awaiting Review	enhancement	new		2017-09-02T02:06:22Z	2024-05-29T20:01:15Z	"When phpunit runs, there are at least three places where test-data are removed (see below).

Fixture deletion is good in its principle. But it's also sometimes painful, especially when one is in the process of developing tests and need to run the testsuite many times.

WP (re)installation + shared XML fixture loading could easily be '''very''' slow (especially given XML importer slowness).
If your plugin's testsuite does not even contains destructive operations (or controlled destructions) then all that time spent in testsuite (re)installation is very frustrating. (In my case it's 1 minutes 50 versus 2 seconds)


It would be good if developers could control whether or not fixtures are deleted & database cleaned, when phpunit starts/finishes.


Places that need change:
* [https://github.com/WordPress/wordpress-develop/blob/ce8a915/tests/phpunit/includes/bootstrap.php#L68 system( WP_PHP_BINARY ... install.php)]
* [https://github.com/WordPress/wordpress-develop/blob/ce8a915/tests/phpunit/includes/bootstrap.php#L101 _delete_all_posts()]

There is also: [https://github.com/WordPress/wordpress-develop/blob/ce8a91/tests/phpunit/includes/testcase.php#L83 _delete_all_data() inside tearDownAfterClass()] but this one can be easily overriden.


Could a couple of filter/action/define/whatever could be made so that data cleanup, being the default, could be disabled if developer wants to?
thx"	drzraf
1	39159	Add APC to automated test matrix		Build/Test Tools		normal	normal	Awaiting Review	feature request	new		2016-12-07T19:58:12Z	2020-11-09T19:50:50Z	We already have a test run using memcache, but APC is different and @jaquith's object cache drop-in is heavily used enough that it makes sense to also run the automated tests using it. Inspired by #39132	jorbin
1	55429	Coding Standard: Use spaces for JSON instead of tabs		Build/Test Tools		normal	normal	Awaiting Review	feature request	new	needs-refresh	2022-03-21T09:15:09Z	2026-03-14T10:19:00Z	"When PHP outputs JSON using `json_encode`, there's no option to output it with tabs instead of spaces. This is particularly relevant in since https://github.com/WordPress/gutenberg/pull/39048 merged - we now convert theme.json files that were using tabs to spaces.

We could use a regex to convert these spaces back to tabs, but maybe its simpler to default to spaces for JSON files since that is the format that PHP uses.

Opening this ticket to start the discussion..."	scruffian
1	59659	Run Gutenberg e2e tests in core		Build/Test Tools		normal	normal	Awaiting Review	feature request	new		2023-10-17T14:27:15Z	2026-01-06T13:20:46Z	"Occasionally there are cases where a change in WordPress core can break the end-to-end tests in Gutenberg because of an uncaught bug. Right now, such bugs are only discovered once a change lands in WordPress trunk.

Ideally, we find a way to run the Gutenberg e2e tests against trunk or, even better, merge them into the core repository so that the tests run on PRs as well.

Previously this couldn't even be done because of the whole Puppeteer vs. Playwright difference, but now both projects use Playwright.

Footnotes is an example where this happened before and would be a valuable test to port over."	swissspidy
1	60967	Introduce a GitHub Actions workflow for syncing package updates to a branch		Build/Test Tools		normal	normal	Future Release	task (blessed)	new	close	2024-04-09T15:34:56Z	2026-03-18T00:48:13Z	"Syncing Gutenberg package updates back to a WordPress core branch can be done with the `npm run sync-gutenberg-packages -- --dist-tag=wp-x.x` command, but this can slow down the release of branches, especially when multiple backports are needed. Ideally this could be done ahead of time in a GitHub Actions workflow which allows the build and tests to run to ensure they're passing before backports are started.

A GitHub Actions workflow should be introduced which:

* Accepts a WordPress version number input in `major.minor` format
* Runs `npm install`
* Runs `npm run sync-gutenberg-packages -- --dist-tag=wp-x.x` where `x.x` is the branch
* Commits and opens a PR against the branch
* Runs the build and the tests
"	johnbillion
1	66210	Tests: Add a separate PHPUnit configuration file for PHPUnit 10.1 and later		Build/Test Tools		normal	normal	Future Release	task (blessed)	new	has-patch	2026-09-29T21:38:30Z	2026-11-10T22:20:20Z	"Split from #62004 (problem 1 there).

PHPUnit 10.0 and 10.1 changed the XML configuration file, and `--migrate-configuration` doesn't carry over the top-level `<phpunit>` settings. Trunk still has to run on PHPUnit 9 for PHP 7.4, so it needs two files: the current `phpunit.xml.dist` for PHPUnit 9 and earlier, and a new one for PHPUnit 10.1 and later.

Scope:
 * add the second configuration file
 * pick the right file in CI based on the installed PHPUnit version
 * document which file to use: Composer scripts and the handbook

A draft of this sits on the Build/Test Tools project board."	lancewillett
1	59482	Tests: Introduce Reflection API helper methods.	costdev	Build/Test Tools		normal	normal	Future Release	task (blessed)	assigned	has-patch	2023-09-28T02:39:22Z	2024-07-03T19:28:39Z	"In unit tests, the Reflection API is often used to get or set a `private` or `protected` property's value, or to invoke a `private` or `protected` method.

To do so, the `Reflection<Method|Property>::setAccessible()` method must be called with `true` before use, then should be called again with `false` afterwards. There are quite a lot of instances in the test suite where the Reflection API is used, and for a decent number of these, accessibility is not reset.

For brevity, much like `assertSameSets()`, and to ensure that accessibility is always reset, this ticket aims to introduce new methods to the `WP_UnitTestCase_Base` class:

`::reflect_and_invoke( object $obj, string $method, mixed ...$args ) : mixed`
  - Reflects a `private` or `protected` method and invokes it.
  - Returns the method's return value.
`::reflect_and_get_value( object $obj, string $property ) : mixed`
  - Reflects a `private` or `protected` property and gets its value.
  - Returns the property's value.
`::reflect_and_set_value() : mixed`
  - Reflects a `private` or `protected` property and sets its value.
  - Returns the previous value for convenient resetting.

While this means the creation of new `Reflection<Method|Property>` objects and two calls to `::setAccessible()` for each, I think that this is worthwhile as it helps us have a more robust test suite, with less code to write in test methods. Plus, we could also explore possible caching in future."	costdev
1	53011	Tests: review all setUp() and tearDown()		Build/Test Tools		normal	normal	Awaiting Review	task (blessed)	new	has-patch	2021-04-09T16:21:16Z	2022-06-04T15:32:27Z	"The `setUpBeforeClass()`, `setUp()`, `tearDown()` and `tearDownAfterClass()` (and the WP test suite native variants of these) methods in test classes are used to set up fixtures which will be used by all tests in the test class.

Also see: https://phpunit.readthedocs.io/en/9.5/fixtures.html

For tests to properly be able to test just and only that which is being tested, we need to make sure that changes to the ""global state"" are undone after each test.

This includes:
* Changes to variables in `$GLOBALS`, changes to global variables via `global $var_name`.
* Changes to superglobals, like `$_GET`, `$_POST` or `$_REQUEST`.
* Filters being hooked or ''un''hooked to WordPress using `add_filter()`, `remove_filter()`, `add_action()`, `remove_action()` (and all their variations) calls in `setUp()` methods - or in the tests themselves.
* Changes in the file system - file being created by a test should be deleted after the test.
* And more contentiously: changes in the database ought to be undone after a test as well. This doesn't mean that any posts being created for a test and only being used by that test need to be deleted, but it does mean that any schema changes, any new tables created etc ''should'' be undone after the test.

At this time, the WP Core test suite does not consistently ""undo"" changes to the global state for each test, as @hellofromTonya and me found while reviewing tests for an unrelated patch.

We would like to recommend a full review of the test suite for best practices regarding global state resetting after each test.

Note: if a ""reset"" action is being done within the code of a test ''function'', it may not get executed when the tests fails. To that end, these type of ""reset""s should generally be done in the `tearDown()`, even when they only apply to one test in the test class.
The ""reset"", in that case, should be accompanied by a comment pointing to the test to which it applies."	jrf
1	66636	Update 4.7-7.1 branches to use Node.js 24.x (whereever possible)		Build/Test Tools		normal	normal	7.3	task (blessed)	new		2026-11-09T20:30:29Z	2026-11-09T20:39:55Z	"Follow up to #65451.

[63539] updated `trunk` to Node.js 24.x (`24.18.0`) and npm `11.16.0`, and [63870] added the matching `devEngines` configuration to the bundled themes. With Twenty Twenty now updated in #65451, every part of `trunk` with Node.js tooling requires 24.x.

None of the branches that still receive security updates have been updated. They currently require one of two Node.js versions, both of which have reached end of life:

||= Branches =||= `.nvmrc` =||= `engines` =||= Node.js EOL =||
|| 4.7 – 6.3 || 14 || `node >=14.15.0`, `npm >=6.14.8` || April 2023 ||
|| 6.4 – 7.1 || 20 || `node >=20.10.0`, `npm >=10.2.3` || April 2026 ||

This ticket is for continuing the 24.x work by backporting the update to as many of these branches as possible.

This has been done before. In #52341, the 4.7 branch and later were updated to support Node.js 14.x ""allowing the same version to be used across all WordPress branches that receive security updates"" (see [50204] for the 4.7 branch). The Node.js 20.x update in #59663 was also merged to the 6.4 branch in [57214].

== Open questions

 * How far back is this practical? Is it worth updating the 4.7 – 6.3 branches, or should the focus be on 6.4 and newer?
 * Should the `devEngines` enforcement (`onFail: error`) be backported as well, or only the `.nvmrc` and `engines` changes?

Related: #65451, #66099, #52341, #59663."	desrosj
1	62166	"Bundled themes: PHPCS ""exactly one blank line after the file comment"""		Bundled Theme		normal	minor	Awaiting Review	defect (bug)	new	has-patch	2024-10-04T11:24:46Z	2026-09-13T15:21:39Z	"This ticket is created to serve as the base for resolving the phpcs error such as 
""There must be exactly one blank line after the file comment"" for the whole codebase

Command to check for this Error :- 
`phpcs --standard=WordPress --extensions=php file_path `

Currently the error has been resolved in the following themes:-

Twenty Thirteen, Twenty Fifteen :- By this patch [https://core.trac.wordpress.org/attachment/ticket/62160/62160.patch 62160.patch]

Twenty Fourteen: #62098 / [59158]

Twenty Sixteen: #62160"	dhruvang21
1	61022	"Twenty Eleven: ""Follow Blog"" pattern has black text on black background"		Bundled Theme	6.4	normal	normal	Future Release	defect (bug)	new	has-patch	2024-04-17T04:04:50Z	2025-09-09T13:06:18Z	"In Twenty Eleven, the custom pattern ""Follow Blog"" uses a cover block with a black overlay and no image.

In WordPress 6.5, this results in black text over black background, and the text is unreadable.

-I did not test the pattern on previous versions of WordPress.


Testing Instructions
With the default theme color settings:

Create a new post or page.
Open the block inserter.
Select Patterns.
From the pattern category list, select ""Twenty Eleven"".
Insert the pattern called ""Follow Blog"":  You may need to focus on or hover over the pattern to find the pattern name.

Confirm that both the pattern preview, and the inserted pattern, has black text on black background.
"	poena
1	63034	Twenty Eleven: Table cells font appearance does not change with block settings		Bundled Theme		normal	minor	Awaiting Review	defect (bug)	reopened	has-patch	2025-02-28T07:04:07Z	2026-10-19T04:33:42Z	"In the Twenty Eleven theme, when applying font appearance or weight to table cells via the block editor, the styles render correctly in the editor interface but do not apply on the frontend.

**Steps to Reproduce :**

1. Activate the Twenty Eleven theme.
2. Create a new post or edit an existing one.
3. Insert a Table Block in the Gutenberg editor.
4. Add multiple columns and rows.
6. Apply a font appearance to the table.
7. Save the post and view it on the frontend.

**Expected Behavior:**
Styles applied to table cells in the editor should display consistently on both the editor and frontend.

"	sainathpoojary
1	62983	Twenty Eleven: Table header cells' font size does not change with block settings		Bundled Theme		normal	normal	Future Release	defect (bug)	new	has-patch	2025-02-18T09:49:36Z	2025-02-28T06:08:31Z	"In the Twenty Eleven theme, the blog table header inside the Gutenberg editor does not resize properly, causing misalignment. Additionally, the text color settings applied in the editor are not reflected on the frontend.

Steps to Reproduce :
1. Activate the **Twenty Eleven** theme.
2. Create a new post or edit an existing one.
3. Insert a **Table Block** in the Gutenberg editor.
4. Add multiple columns and rows.
5. Resize the table by adjusting column widths.
6. Apply a custom text color to the table.
7. Save the post and view it on the frontend.

Expected Behavior:
- The **table header** should resize dynamically along with the table columns.
- The **text color** applied in the editor should be reflected on the frontend.


Testing Environment
- Browser: Chrome Version 132.0.6834.159 (Official Build) (64-bit)
- WordPress Version: 6.7.2
- Theme: Twenty Eleven (Version 4.8)"	truptikanzariya
1	59692	Twenty Fifteen theme having multiple issue with pullquote block.		Bundled Theme		normal	normal	Future Release	defect (bug)	new	has-patch	2023-10-20T09:19:13Z	2025-12-30T18:36:35Z	"Steps to reproduce the issue:-
1. Activate Twenty Fifteen theme.
2. Choose PullQuote block.
3. Apply some border with color 

You can able to see that applied color is only seen in editor side front side border remains same.
If you have applied the text color then border takes that same color front side.

Issue 2:-
Now Change Font size.
You can able to see there is no change in font size both the side.

I have attached video for better understanding.
Video URL :- https://share.cleanshot.com/tK1tywrx33bQgLRBD3z0
"	nidhidhandhukiya
1	50446	Twenty Fifteen: Regression in updated sticky sidebar code		Bundled Theme	5.4.2	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2020-06-22T16:19:57Z	2024-04-07T09:22:34Z	"Hi all,

the behavior of the sticky scrollbar in the Twenty Fifteen default theme changed unexpectedly upon updating the theme to version 2.6.

Steps to reproduce: Create a page where both the sidebar and the content are long enough (relative to the window height) to cause scrolling, the content being longer than the sidebar. Scroll down, past the point where the sidebar stops scrolling. Scroll back up.

Behavior up to 2.5: The sidebar immediately starts scrolling up.

Behavior in 2.6: The sidebar remains fixed until you scroll back up beyond the point where it initially stopped when scrolling down.

The original behavior seems to allow for more efficient navigation, and since this change was not mentioned in the changelog for version 2.6, I believe this is a bug.

This regression seems to have been introduced in #46308 and previously discussed in #37536. @DvanKooten, @whyisjake, please have a look?"	mechter
1	63309	Twenty Fifteen: Table block border not appear properly.		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-04-18T10:43:48Z	2026-09-17T13:57:05Z	"Hello Team,

I have checked ""Table"" block and I found that its border is not appear properly into the ""twentyfifteen"" theme.

The table border not appear into the front-end, But at editor end it looks good. So, I think that it should be work similar at both(Front-end & Editor-end).

I have tested this into the below mentioned configurations:

- WordPress version: WordPress 6.8.0 running
- Theme: Twenty Fifteen
- Browser: Google Chrome, Version 135.0.7049.96 (Official Build) (arm64)
- Device: MacBook Air M1
- OS: macOS 15.4.1 (24E263)
- Gutenberg plugin: Version 20.6.0

For better understanding, here I have attached its screenshots.

Thanks,
"	viralsampat
1	63624	Twenty Fourteen: Quote block does not apply user-defined text color to citation		Bundled Theme		normal	normal	Future Release	defect (bug)	new	changes-requested	2025-06-26T15:03:09Z	2025-07-09T16:30:30Z	"Steps to reproduce the issue :-
1. Activate Twenty Fourteen theme.
2. Choose Quote block.
3. Add some text.
4. Change color from parent Quote.

You can able to see that applied color is not applicable on the citation."	nidhidhandhukiya
1	47044	Twenty Nineteen: Add padding for full-aligned text blocks inside of a full-width column block.		Bundled Theme		normal	normal	Future Release	defect (bug)	assigned	changes-requested	2019-04-25T13:19:46Z	2024-07-29T10:38:47Z	"As noted by @dianeco, after #46999, text-based blocks inside of a full-width columns block now bump up against the edges of the screen: 

[[Image(https://cldup.com/KnBH49tlCQ-3000x3000.png)]]

In the case of media/image blocks, it's likely that users ''will'' want these to bump right up against the edge of the page, so we should try adding some padding only to text-based blocks if possible. 

Note that this needs to be fixed in both the editor and front-end. "	kjellr
1	61770	Twenty Nineteen: Preformatted block font size is not same in editor		Bundled Theme	5.0	normal	normal	Future Release	defect (bug)	new	has-patch	2024-07-26T07:50:10Z	2025-07-01T08:38:23Z	"Hello,

I have reviewed the **""Preformatted block""** and found that its font-size is not same in editor & front-end sides. I have checked this twenty-nineteen theme.

I think that it should be same on both editor & front-end sides.

Also, I have found same issue for other themes and posted it. **#60993**

Here, I have attached its screenshots.

**Environment info:**

----

- WordPress version: WordPress 6.6.1 running,
- Themes: Twenty Nineteen Version: 2.9
- Browser: Google Chrome, Version 126.0.6478.183 (Official Build) (arm64)
- Device: MacBook Air M1
- OS: macOS 14.5 (23F79)
- Gutenberg plugin: Version Version 18.8.0

Thanks,"	viralsampat
1	63469	Twenty Nineteen: Table block Stripes style does not show borders in the editor		Bundled Theme	6.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-05-21T09:39:42Z	2025-07-28T13:54:41Z	"Hello Team,

I noticed that the Table block does not render correctly on the front-end when the ""**Stripes**"" style is applied. The appearance differs from what is shown in the editor.

Upon investigation, it seems that the issue is caused by the theme's CSS overriding the default styling of the table block on the front-end.

I believe the visual output should remain consistent between the editor and front-end for better user experience.

For the reference, Here, I have attached the video along with the corresponding screenshots.

Thanks,"	viralsampat
1	60408	Twenty Nineteen: Theme block styles are not applied to blocks in the widget area		Bundled Theme	5.8	normal	normal	Future Release	defect (bug)	new	dev-feedback	2024-02-01T08:36:13Z	2026-09-20T11:45:20Z	"Twenty Nineteen adds extra styling for some blocks, but on the front, the styles use 
the class names {{{.entry .entry-content}}} as part of the selector:

{{{
.entry .entry-content .wp-block-button .wp-block-button__link:not(.has-background) {
  background-color: #0073aa;
}
}}}

So the styles are applied in the post content area, but not applied to blocks placed in the widget area.

The blocks in the widget area on the front does not match what is in the widget admin screen.
"	poena
1	45906	Twenty Nineteen: Wide alignment does not match front-end when the sidebar is active		Bundled Theme	5.0.2	normal	normal	Future Release	defect (bug)	new		2019-01-10T16:28:48Z	2024-05-14T10:01:56Z	"Originally reported in Twenty Nineteen's GitHub repo by @afercia:

When viewing in the editor, the 'wide' block is not the same width as it appears on the front-end, when the sidebars in the editor are open.

In the front-end, the wide image is always larger than the paragraph content even at smaller viewports, until it goes fully responsive under 768. This is not the case in the editor, so the views don't match.

Steps to replicate:

1. In the editor, add an Image block and set it to 'wide' width.
2. Add a paragraph block, and give it a background colour (to better see it's size). 
3. Compare their widths when the editor sidebars are open; the paragraph and wide image appear to be the same width.
4. Publish the page.
5. View the front-end, and note the 'wide' image and paragraphs are not the same width. 

Original ticket here: https://github.com/WordPress/twentynineteen/issues/667"	laurelfulford
1	55994	Twenty Seventeen: Header image zooms in when scrolling down on Mobile Safari		Bundled Theme		normal	trivial	Future Release	defect (bug)	new		2022-06-16T14:44:08Z	2024-08-25T15:03:15Z	"Steps to replicate
- Open TwentySeventeen demo site in Mobile Safari (https://twentyseventeendemo.wordpress.com).
- Watch the header image as you scroll down the page.

(Note that this only seems to happen in Mobile Safari, and doesn't appear in Chrome/Safari on the desktop even with a small window)

The header image zooms in slightly when scrolling down, providing a jarring experience for the viewer. The header image should not change size when scrolling.

Originally reported here: https://github.com/Automattic/themes/issues/678"	mrfoxtalbot
1	63344	Twenty Seventeen: Inconsistent Search Block Input Padding		Bundled Theme	5.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-04-24T16:36:14Z	2025-04-24T17:58:19Z	"Inconsistency in the padding applied to the search block input field between the editor and the frontend when using the Twenty Seventeen theme.

=== Steps to Reproduce
1.	Activate the Twenty Seventeen theme.
2.	Add a Search block using the editor.
3.	Note the padding of the search input field within the editor.
4.	View the same page/post on the frontend.
5.	Observe that the padding of the search input is visually different.


=== Screenshot

Frontend:

[[Image(https://rioudcpuyg.ufs.sh/f/PL8E4NiPUWyOrN7HAHtMk7y2dfFYKmqLWZt4AHpRVDaCBlso)]]

Editor:
[[Image(https://rioudcpuyg.ufs.sh/f/PL8E4NiPUWyO91B4imfEFACY0dej4LmhwrRp2qTtuWnBUoas)]]"	sainathpoojary
1	63386	Twenty Seventeen: Latest Posts block having issue with alignment options		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-05-02T11:07:29Z	2026-09-20T12:08:52Z	"Steps to reproduce the issue:-
1. Activate Twenty Seventeen theme.
2. Choose Latest posts block.
3. Choose alignment any left, right or center.

In both the editor and front-end, Left and Right alignment show no visible effect. When Center is selected, it aligns only the text on the front-end, not the entire block. This behavior is inconsistent—alignment should apply uniformly across all options for clarity and consistency."	nidhidhandhukiya
1	40796	Twenty Seventeen: Overriding WordPress globals is prohibited		Bundled Theme	4.7.5	normal	normal	Awaiting Review	defect (bug)	new	needs-unit-tests	2017-05-18T06:04:14Z	2025-01-03T07:01:35Z	"In Twenty Seventeen theme, global variable $post is overridden at line 145 of /inc/template-tags.php

As per theme review guidelines Overriding WordPress globals is prohibited. "	maneshtimilsina
1	42598	Twenty Seventeen: Sticky header offset issue		Bundled Theme		normal	normal	Future Release	defect (bug)	assigned	changes-requested	2017-11-17T10:17:07Z	2026-09-20T11:58:17Z	"Theme: Twenty Seventeen
Version: 1.3+ (not tested below 1.3)

The theme has an option to make the header/ menu ""sticky"" or fixed position.

The theme also has a function that handles the position of the viewport, so that the menu does not sit on top of content navigated from internal links.

For example if you were to jump to a section of the page using '#about' the theme's JS would fire and amend the viewport in relation to the height of the fixed menu. 

'''The bug'''
If a link goes to a section of content another page the theme's JS that amends the viewport no longer works.

I've tried debugging this from the support forums on someone's website and I think the issue is related to the order in which the JS fires;
1) When the page loads the header height is not fully calculated;
2) The theme's JS then moves the viewport to fix the sticky menu overlap, which uses the position of the scrollbar as reference;
3) The theme's JS then applies a margin-bottom on the header, causing a shift in the scrolling position
4) The result is that the offset is incorrect and the fixed menu sits on top of the content.

Steps to replicate:
- Enable the sticky header
- Create a ""Continue reading"" link that goes to a new page (with a hash to the section)
- Press that ""Continue reading"" link to see the problem in the linked page

"	anevins
1	62798	Twenty Seventeen: sanitize output of twentyseventeen_custom_colors_css()		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-01-10T05:38:07Z	2025-06-24T12:51:00Z	"Hello Team,

I have checked WordPress fork and found PHPCS Warning in functions.php file for ""TwentySeventeen"" theme.

i.e

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'twentyseventeen_custom_colors_css'.


{{{
<style type=""text/css"" id=""custom-theme-colors"" <?php echo $customize_preview_data_hue; ?>>
	<?php echo twentyseventeen_custom_colors_css(); ?>
</style>
}}}

**Note:** I have checked the core trac and found the similar issue. #62787

Thanks,
"	viralsampat
1	61287	Twenty Sixteen: Code block is not reflecting selected background color in frontend		Bundled Theme		normal	normal	Future Release	defect (bug)	new	dev-feedback	2024-05-24T06:23:07Z	2024-07-01T18:21:41Z	"In theme Twenty Sixteen, The code Block Background color is not being reflected in the Frontend side 
"	pitamdey
1	60012	Twenty Sixteen: Pullquote block Appearance setting is not working properly		Bundled Theme		normal	normal	Future Release	defect (bug)	new	has-patch	2023-12-05T09:37:35Z	2026-02-03T23:04:28Z	"The appearance of PullQuote blocks is not working correctly in Twenty-Sixteen. Though there are many options like semi-bold, medium, italic, etc. it seems only two things get applied no matter what I choose. It's either normal, bold or extra bold. And the extra bold is just as same as Black. No changes with any kind of italic. 

Steps to reproduce the issue:-
1. Activate Twenty Sixteen theme.
1. Choose Pullquote block.
1. Write something in Citation
1. Change the appearance"	ashikur698
1	63455	Twenty Sixteen: Quote block negative margin		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-05-16T10:08:53Z	2025-06-14T07:21:38Z	"**Steps to Reproduce the Issue:**
1. Activate the Twenty Sixteen theme.

2. Add a Quote block to a post or page.

3. Enter some text along with a citation.

4. Set the font size to XL using the block settings.

5. View the page on the frontend at a screen width greater than 1200px.

**Expected Behavior:**
The quote text should remain properly aligned within the content area, respecting the theme’s layout and margins.

**Actual Behavior:**
At screen widths above 1200px, the quote text overflows to the left and extends outside the visible content area.

"	nidhidhandhukiya
1	62792	Twenty Ten: Editor styles conflicts with the block editor styles		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-01-09T06:31:56Z	2025-05-12T01:38:46Z	"There is CSS in twentyten/editor-style.css that use the {{{*}}} selector and affects part of the block editor that is not intended to be styled by themes.

Examples:
The font family of the block placeholders is wrong. You can test this by adding a columns block or Media & text block.

The inserter inside the buttons block has a dark text color over dark background, so the + icon is the wrong color and not as visible.

____

Wen creating a patch for this issue, remember that the editor style must still work for all versions of WordPress that the theme supports, including versions before the block editor was implemented.


"	poena
1	61594	Twenty Thirteen: Search block button background does not reflect block setting of solid color		Bundled Theme	6.5.5	normal	normal	Future Release	defect (bug)	new	dev-feedback	2024-07-08T13:18:14Z	2024-08-25T10:37:51Z	"Hello Team,

I have reviewed** ""Search""** block and found that when we trying to change it's button background color using block setting then it not would not change on frontend side. It appear only on editor side.

So, I think that it should be same on both( **Editor & Front-end** ) sides.

For more understanding here, I have attached its screenshots:

Thanks,"	viralsampat
1	62010	Twenty Twelve: fix heading typography in the editor		Bundled Theme		normal	normal	Future Release	defect (bug)	reopened	has-patch	2024-09-08T10:47:20Z	2026-11-06T11:11:39Z	> When activating the 'Twenty Twelve' theme and creating any post then display 'Add title' font size is very low compare to others	dilip2615
1	62235	Twenty Twenty : Date Block Font family is different in both side		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-10-16T05:55:18Z	2024-10-16T10:56:16Z	"In theme Twenty Twenty,
The Date Block font family is different on editor side and front side

I have attached a screenshot for proper understanding and also a patch to resolve it"	pitamdey
1	52683	"Twenty Twenty-One: Block ""more"" text in link can't be changed"		Bundled Theme	5.6.2	normal	normal	Future Release	defect (bug)	reviewing	has-patch	2021-03-01T14:03:56Z	2026-11-10T16:22:28Z	"Hi team,
Hope you are well.
I am on basic theme 5.6.2

Quick TT about the block ""more"" that we can add in article to have the link read more on the home page.

When I add this block I can change the text of the link but for some reason it doesn't show up on home page. Doesn't matter what I change I have always ""Poursuivre la lecture de"" as a link on my home page. I am on french version. 

I didn't find any fix on your doc.

Regards"	neokendev
1	58991	Twenty Twenty-One: Button block link does not use font-weight from Appearance setting		Bundled Theme	6.1	normal	normal	Future Release	defect (bug)	reopened	dev-feedback	2023-08-07T12:31:18Z	2024-08-02T07:45:02Z	"Originally reported by @upadalavipul in the Gutenberg project.
https://github.com/WordPress/gutenberg/issues/53338

The Button block can have their font-weight changed using the Appearance control in the block sidebar. This style is applied to the element with the `.wp-block-button` class as inline style. However, Twenty Twenty One applies font-weight to the element with the `.wp-block-button__link` class in it, so that style is not applied."	wildworks
1	63888	"Twenty Twenty-One: Search block ""Button inside"" input border appears on front end but not in block editor"		Bundled Theme	6.1	normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2025-08-27T12:54:02Z	2026-09-15T23:33:26Z	"Theme: TwentyTwentyOne.

In the TwentyTwentyOne theme for WordPress, when using the Search block with the Button position set to ""Button inside"", the block editor (editor view) may not display a border around the search input, even though it appears correctly on the front-end (site view)."	levinbaria
1	56638	Twenty Twenty-One: submit button colors inside a block with background color		Bundled Theme	6.0.2	normal	normal	Future Release	defect (bug)	reopened	changes-requested	2022-09-23T14:10:49Z	2025-05-21T11:10:39Z	"When we use Post Comments Form Block and change the block setting like background color & font color in the specific Twenty Twenty-One theme. then front side post comments button design breaks. 

For better understanding, I have provided below video link.

URL: https://share.cleanshot.com/8SDCpoyOds4BwHDvtAFR"	upadalavipul
1	56904	"Twenty Twenty-Two: Block Navigation ""no decoration"" does not work"		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-10-25T09:28:27Z	2026-04-13T16:07:52Z	"The ""decoration"" option in the Navigation Block has an option NOT to underline links in the menu (decoration:none). This option works correctly on some themes (Twenty Twenty-Three, Sparkle FSE) but not in Twenty Twenty-Two:

https://cloudup.com/cwGQKTvnyzF

Upstreamed from this original report: https://github.com/WordPress/gutenberg/issues/42766"	mrfoxtalbot
1	56626	Twenty Twenty-Two: Elements with alignfull in the content provoke a horizontal scrollbar		Bundled Theme	6.1	normal	normal	Future Release	defect (bug)	new	dev-feedback	2022-09-22T16:09:12Z	2024-08-25T11:24:47Z	"Add a cover block with full alignment to the content and you'll see a horizontal scrollbar. 

Current CSS:

{{{
margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
}}}

Fix:

{{{
margin-left: calc(-0.5 * var(--wp--custom--spacing--outer)) !important;
margin-right: calc(-0.5 * var(--wp--custom--spacing--outer)) !important;
}}}
"	markhowellsmead
1	55934	"Twenty Twenty: ""Add citation"" text font-weight issue in Quote block"		Bundled Theme	5.3	normal	normal	Awaiting Review	defect (bug)	reopened	has-patch	2022-06-06T10:51:25Z	2025-06-17T11:39:41Z	"In Twenty Twenty Theme, when we add a text on ""Add citation"" in Quote block and make the text as italic then in editor side it is visible as italic without font-weight. But when we see the same formatted text at front side, then it is with italic and having font-weight as bolder which is different from editor side.

Steps to replicate:
1: Activate the Twenty Twenty Theme
2: Add Quote block
3: Add text in ""Add citation"" section
4: Select the added text and make them as italic
5: Save Page/Post
6: View the page/post at front side

For better understanding I provide video attachment.

Thank You."	kmadhak
1	56360	Twenty Twenty: Font size issue in H1 Heading block		Bundled Theme	6.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-08-10T10:53:10Z	2025-07-21T07:39:51Z	"In Twenty Twenty Theme, when we add Heading block in editor side and change heading level to H1 and applied the background color, it is reflected proper in editor side but it is reflected in front side into the larger font size.

Steps to replicate:
1: Activate the Twenty Twenty Theme
2: Add Heading block
3: Choose H1 heading level
4: Choose background color.
5: View the page/post at editor side
6: Save page/post
7: View the page/post at front side

For better understanding I provide video attachment link.
Video link: https://share.cleanshot.com/hUvyB1LHodVizNDuqxvB

Thanks"	kajalgohel
1	51599	Twenty Twenty: Image wrap problem on wide viewports		Bundled Theme	5.5.1	normal	normal	Future Release	defect (bug)	new		2020-10-22T03:45:43Z	2024-06-03T22:03:36Z	"Using the wordpress test data. The 2020 theme has a problem with text wrapping around the 150x150 sample image. If the window is small it works correctly. but making the window wider it doesn't wrap and instead goes behind the image. Confirmed with Safari, Google Chrome, Firefox. All newest versions.

Correct when window is small:


Wrong when window is wide:

"	kenthinson
1	59706	Twenty Twenty: Latest Posts block colors and padding		Bundled Theme	6.3.2	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2023-10-23T11:59:17Z	2025-06-24T09:13:49Z	"Hello Team,

I have worked on the **""Twenty Twenty""** theme and found that the ""Twenty Twenty"" theme contains an issue for the **""Latest Post""** block. The text color does not change when we try to select text color from block settings.

Also, When we select the background color, the padding is added in admin, But in the front end, the post text displays a sticky, The padding is not added for the front end.

Here, I have provided the issue video:

Issue: [https://share.cleanshot.com/5mkR0sVQ25VYM6xp434Y]

Thanks,"	viralsampat
1	63860	Twenty Twenty: Pullquote block quotation mark does not align with text alignment options		Bundled Theme	5.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-08-22T09:42:57Z	2025-08-26T19:47:38Z	"Steps to reproduce the issue:-
1. Activate Twenty Twenty theme.
2. Choose Pullquote block.
3. Add some text and change the alignment to left or right.
4. Add border for better understanding the padding issue.

You can able to see that the quote sign **""** is not working as per our alignment.
and also padding is missing from left and right sodesign not looks good when border is applied."	nidhidhandhukiya
1	58500	Twenty Twenty: Separator block's Default style is wider than Wide Line style in editor		Bundled Theme	6.2.2	normal	minor	Awaiting Review	defect (bug)	assigned	changes-requested	2023-06-09T08:22:02Z	2025-05-29T15:52:43Z	"Steps to reproduce the issue.
1. Activate Twenty Twenty theme.
2. Take separator block.
3. Choose wide-width and check that editor and front both side.

In front side default and wide width working as expected but in editor side it not works proper.

I have attached video for better understanding.
Video URL :- https://share.cleanshot.com/xLbqrymSPhRf1kPpSw7B"	nidhidhandhukiya
1	52543	Twenty Twenty: Vendor prefix build steps are missing configuration		Bundled Theme	5.3	normal	normal	Future Release	defect (bug)	assigned	reporter-feedback	2021-02-16T18:16:02Z	2026-11-03T18:02:10Z	"When building Twenty Twenty, there are two steps that run over CSS files, a vendor prefixer and RTL conversion. The vendor prefixer uses postcss, but there is no `postcss.config.js` file. It looks like this wasn't brought over from github when the theme was initially committed. When `build` is run currently, we can see an error:

> You did not set any plugins, parser, or stringifier. Right now, PostCSS does nothing. Pick plugins for your case on https://www.postcss.parts/ and use them in postcss.config.js.


We should either remove the postcss commands from `build` (if so, we can also remove the dependencies), or add in a postcss config."	ryelle
1	58030	Twenty Twenty: button block does not act on appearance change.		Bundled Theme		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-03-31T05:00:45Z	2026-10-20T15:02:26Z	"Steps to reproduce the issue:-

1. Activate Twenty Twenty theme.
2. Choose a button block.
3. Change appearance to bold, semibold or anyone.

You can be able to see any changes in the letter.

I have attached a video for better understanding.
Video URL :- [https://share.cleanshot.com/XDJkj2srjyMgc18cmQGQ]
"	himshekhar07
1	64109	Bundled themes: Stylesheets should be minified in classic themes	rutviksavsani	Bundled Theme		normal	normal	7.3	enhancement	assigned	has-patch	2025-10-16T22:48:26Z	2026-10-28T17:53:28Z	"This is a follow-up to #63012 which minified stylesheets in bundled block themes. The same remains to be done for bundled classic themes. This includes dedicated stylesheets for blocks, which would then allow them to be inlined per #58519. See also #63007 which enabled the stylesheets for bundled block themes to be inlined.

Blocking:

* #58519"	westonruter
1	56487	Bundled themes: opt-in to appearance tools		Bundled Theme		normal	normal	Future Release	enhancement	new	has-patch	2022-09-01T14:40:28Z	2025-05-12T01:37:59Z	"Core themes are not getting the latest design tools in the editor because they require the theme to opt in. 

Previously it was only possible to opt-in via a setting in theme.json, but a theme support check was recently added: https://github.com/WordPress/gutenberg/pull/43337.

I think we should add this theme support to bundled themes:

`add_theme_support( 'appearance-tools' );`

This will allow themes to use editor features like setting the border styles and spacing, as well future enhancements. I am not sure how far back we should go, but I think at least TT1 and TT."	jffng
1	61290	Twenty Eleven: Add theme support for HTML5		Bundled Theme		normal	normal	Future Release	enhancement	assigned	dev-feedback	2024-05-24T10:56:04Z	2024-09-14T21:19:21Z	"By proactively adding theme support for HTML5 and fixing any styling issues,
we can prevent problems if the HTML5 theme support becomes the default for all themes.

''But not least, it updates the markup to more modern standards.''

Without HTML5 support enabled, the comment form in Twenty Eleven uses the text input field for the email input.

With HTML5 support enabled, the comment form is switched to using the email input field, and this changes the positioning of the field, breaking the layout.

Related to #61183
Follow up to #20579"	poena
1	63349	Twenty Fifteen: center Calendar block text		Bundled Theme		normal	normal	Awaiting Review	enhancement	new	changes-requested	2025-04-25T11:06:02Z	2026-10-20T15:04:26Z	"Hello Team,

I have checked ""Calendar"" block and I found that its text alignment is not properly displaying into the ""twentyfifteen"" theme.

The calendar block align text on center on a back-end side. while on a front-end side, it displaying text into the left align.

I think that it should be the same on both(Front-end & Back-end) sides.

I have tested this into the below mentioned configurations:

WordPress version: WordPress 6.8.0 running
Theme: Twenty Fifteen
Browser: Google Chrome, Version 135.0.7049.96 (Official Build) (arm64)
Device: MacBook Air M1
OS: macOS 15.4.1 (24E263)
Gutenberg plugin: Version 20.6.0
For better understanding, here I have attached its screenshots.

Thanks,"	viralsampat
1	61138	Twenty Nineteen: Latest Posts block top/bottom spacing is not same on editor side and front-end side when we change its background.		Bundled Theme	6.5	normal	normal	Future Release	enhancement	new	dev-feedback	2024-05-03T07:37:22Z	2025-04-02T15:44:30Z	"Hello,

I have reviewed ""**Latest Post**"" block and found that when we are trying to change it background color, Its text color and **top/bottom** space are not same on editor side & front-end side.

I think that it should be same on both sides(Editor & Front-end)

Here, I have attached its screenshots:

Thanks,"	viralsampat
1	65111	Twenty Sixteen: Center text in image captions		Bundled Theme	4.4	normal	normal	Awaiting Review	enhancement	new	has-patch	2026-04-22T10:53:20Z	2026-09-20T11:38:39Z	It seems to me that this would be a better default choice. Ideally, we should be able to change it via the UI, but as far as I know, that’s not possible at the moment. One workaround is to use a centered paragraph via the code editor, which feels like a hack.	gaelbonithon
1	65108	Twenty Sixteen: barely visible bold text in 'blockquote'		Bundled Theme	4.4	normal	normal	Future Release	enhancement	new	has-patch	2026-04-21T18:00:18Z	2026-07-10T08:42:37Z	"The current code is

{{{
#!css
blockquote strong,
blockquote b {
  font-weight: 400;
}
}}}

, which makes very little difference. It seems to me that this would be better:
{{{
#!css
blockquote strong,
blockquote b {
  font-weight: bold;
}
}}}
"	gaelbonithon
1	62868	Twenty Twenty-Five: make font-weight more consistent cross-browser for strong elements in body text		Bundled Theme	6.7	normal	normal	Awaiting Review	enhancement	new		2025-01-27T05:06:02Z	2026-10-18T10:39:48Z	"This bug was identified in a support request here. https://wordpress.org/support/topic/strong-bold-does-not-work-on-2025-theme-win-firefox-only/

When I use Rich Text Editor (RTE) to bold a passage inside a P block while using the 2025 theme, the bold text will NEVER render as bold on  Firefox 134.0.2 on Windows 11.

Bold renders fine on other Win browsers (Edge, Chrome, DudkDuckGo). Also, on Android, bold renders fine on Android Firefox, Chrome, etc.. 

I first discovered it when making a personal site. But I have been able to reproduce the bug on many different pages on the same site. Then today I did a fresh install on wordpress.com  with 6.71 using a 2025 theme. I made absolutely no customizations to this theme or even the wordpress install. 

https://robertistest.wordpress.com/ 

Two things to note: 

1. If I change the p block to h1 and h3 and use RTE to bold certain words, Win Firefox will render the bolds correctly. This only happens on the p block on Win Firefox. 

2. I created  a simple static HTML page with the strong tag inside a P tag on a Win Firefox browser. It rendered bold successfully.  it's just not doing so on WordPress/2025. 



"	rjnagle
1	64482	Twenty Twenty-One: Efficiency refactor of excerpt-generation with Block Processor.		Bundled Theme		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-01-07T22:21:22Z	2026-05-20T04:23:51Z	"Refactors `twenty_twenty_one_print_first_instance_of_block()` to rely on `WP_Block_Processor` where available. This brings an uplift in efficiency in two separate ways:
 - The Block Parser only needs to parse as far into a document as it needs to read, and lazily parses block attributes. This can result in a dramatic reduction in memory overhead as long posts do not need to be fully parsed and temporarily stored in memory, just to be ignored.
 - By doing less work the Block Processor is able to stop its processing and move on, while `parse_blocks()` has to pause the world while it builds the full block tree.

This is not supposed to change any existing behavior, though it does rearrange some of the code from the legacy approach to harmonize with the logic in the refactor. While separate functions in the refactor would be more testable, this function lacks testing and the combined logic may be simpler to maintain over time. Given that the minimum supported WordPress version will remain at 5.6, the check for the existence of the class will have to stay, and grouping common logic in a single function will be less effort than maintaining those potential changes across two functions."	dmsnell
1	32452	Cache optimizations	pbearne	Cache API	4.1	normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2015-05-20T23:54:50Z	2025-01-23T21:44:32Z	"Hi,

I've recently been making some custom modifications to wordpress core that reduce the resource load on our object-caching system.
I cannot see any drawbacks to these modifications, but I have to defer to the wp-core development team on this one and therefore assume I've missed something.
I want to know if there is anything I overlooked while making these modifications.
If there are no drawbacks, then perhaps the changes could be rolled into wp-core officially (and then I won't have svn showing files as modified all the time)

Explanation: (broken down into sections)
1) I noticed a huge amount of 'extra' queries to the object-cache. 
Many of them originating from calls to wp_load_alloptions()
I believe with my modifications wp_load_alloptions() only needs to be called in one place instead of many, and that is within the definition of the object-cache itself.

2) I've also reduced redundant queries by changing the assumption that a key doesn't exist to a key does exist. Check the cache for the key first instead of checking the 'negative' cache for the key first.

3) Some minor fixes in options.php
---- removed untrailingslashit on line#109 // function does not yet exist if called from within functions.php
---- added ! $result == 0 line#288 // if a database update effects zero rows the cache should still be updated
---- pre-emptively negatively cache (into notoptions) the just deleted option  line#477


All file changes (from svn diff) available at this link:
http://pastebin.com/5vPGCCt7"	Relevad
1	32848	Null values for Update Options does not reset in $all_options	pbearne*	Cache API	4.2.2	normal	normal	Future Release	defect (bug)	accepted	dev-feedback	2015-06-30T22:04:47Z	2025-06-21T23:42:07Z	"This is a fun, extremely niche case. 

We were using the Settings API to save out options for a plugin when we came across a really frustrating scenario. Half the time our setting was returning values that were not accurate to the setting that was stored in the database and in cache. 

Come to find, the value being returned from wp_load_alloptions was incorrect while every other instance was correct. In our case, these values were in the database, memcache, and the single value in wp-object-cache. 

On [https://core.trac.wordpress.org/browser/tags/4.2.2/src/wp-includes/option.php#L319 ""line 319 of option.php""], we're using isset to check the value in the array. This returns false if the value is NULL. This leads to all kinds of sadness. 

I would propose we instead use `array_key_exists` here to ensure we're getting true if the key is present in the array at all. "	MikeNGarrett
1	38285	Object lookups by ID (or primary key) are not managed properly, lots of memory leaks		Cache API		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2016-10-11T17:02:42Z	2019-04-01T15:00:53Z	"tl;dr this affects every object that uses the `WP_Post::get_instance()` paradigm of ""managing instances"" (spoiler: they are not)

`WP_Post` and friends are supposed to add more sanity to caching and sanitization. They are not models, they are read-only data objects that strongly-type database rows. As such, it should be easy to maintain only one reference to any given row = one object per row, regardless of method of query, you should always get the exact same object. This tends to work if you pass around objects, but not when passing around IDs.

Passing around IDs is a common use-case:

{{{
$ids = get_favorite_posts();

foreach ( $ids as $id ) {
    $post = get_post( $id );

    // wreak havoc
}
}}} 

In a theme:

{{{
get_the_title( get_the_ID() );
}}}

In Doctrine (or Hibernate, or any other ORM), each type is an Entity that is managed by an Entity Manager. There is never more than one instance of a single item. In WordPress, we get `get_post()` and a built-in non-persistent Array Cache. We also get `WP_Post::get_instance( $id )`, which makes us believe that `WP_Post` is managing instances. It is not. The Array Cache is maintaining all of these references. 

A few problems:
* calls to `::get_instance()` will always touch the cache
* The Array Cache clones objects before storing them, and clones objects before returning them
* The Array Cache is storing `stdClass` instances, not `WP_Post` instance, so every item out of the cache also has to become a brand new instance of `WP_Post`.

Storing the items as `WP_Post` objects would seemingly remove the need to return new instances, but they would be new instances nonetheless, since the cache clones every object before saving / returning.

What needs to be done:
* Object rows are stored strongly-typed
* Cache does not clone objects

How to test that this is happening (using WP-CLI):

{{{
<?php
class Prof {
	public function objects() {
		$store = new \SplObjectStorage();

		$mem1 = memory_get_usage();

		$p = get_post( 27 );
		foreach ( range( 1, 20 ) as $i ) {
			$p = get_post( $p );
			if ( ! $store->contains( $p ) ) {
				$store->attach( $p );
			}
		}

		$mem2 = memory_get_usage();

		\WP_CLI::line( round( ( $mem2 - $mem1 ) / 1024, 2 ) );
		\WP_CLI::line( $store->count() );
	}

	public function ids() {
		$store = new \SplObjectStorage();

		$mem1 = memory_get_usage();

		foreach ( range( 1, 20 ) as $i ) {
			$p = get_post( 27 );
			if ( ! $store->contains( $p ) ) {
				$store->attach( $p );
			}
		}

		$mem2 = memory_get_usage();

		\WP_CLI::line( round( ( $mem2 - $mem1 ) / 1024, 2 ) );
		\WP_CLI::line( $store->count() );
	}
}

if ( class_exists( '\WP_CLI' ) ) {
	\WP_CLI::add_command( 'prof', Prof::class );
}
}}}

Both should print out 1. Without the patch, `ids` will print out 20 + a bunch of leaked memory.

Patch for `WP_Post` + `WP_Object_Cache` attached"	wonderboymusic
1	57366	WP 6.1 - Performance Regression		Cache API	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-12-21T12:45:49Z	2023-04-20T13:25:04Z	"Hi team,

I am experiencing some significant performance regression when I upgrade from 6.0 to 6.1 (and 6.1.1). Page load time roughly triples across the site.

I do not have a profiler running but using Query Monitor I can see a significant increases in object cache hits (14k to 110k). I understand this is partially expected due to the caching improvements. 

I am running a fairly large (170k posts) site with Woocommerce and a number of plugins. 

I am happy to provide more detailed analysis but not sure what is the best profiling tool or method to understand where the regression is coming from. If you can provide some guidance I will try to collect more data.

Thanks,
Jason"	galapogos01
1	63618	"`is_object_in_term` object cache uses ""set"" instead of ""add"""		Cache API		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-06-23T19:41:25Z	2025-12-01T03:19:01Z	"`is_object_in_term` should respect [`wp_suspend_cache_addition`](https://developer.wordpress.org/reference/functions/wp_suspend_cache_addition/) and use `wp_cache_add` instead of `wp_cache_set` as in [`get_the_terms`](https://github.com/WordPress/WordPress/blob/c6041fd40a9d499a5d602be791349068699ef695/wp-includes/category-template.php#L1297-L1303)

Blamed line: https://github.com/WordPress/WordPress/blob/c6041fd40a9d499a5d602be791349068699ef695/wp-includes/taxonomy.php#L4895


I stumbled upon this building a long running WP-CLI command and noticed a memory leak issue while having object cache suspended. Turns out I had a `has_category` that filled the whole cache with `category_relationships` keys.

"	nlemoine
1	55999	wp_suspend_cache_addition should also disable cache setting?		Cache API		normal	normal	Future Release	defect (bug)	new	dev-feedback	2022-06-17T09:30:15Z	2024-06-05T20:46:09Z	"Right now wp_suspend_cache_addition is only checked when ""add"" to cache.

However most plugins/developers only use wp_cache_set for updating/adding to the cache.
This means in most plugins/cases, wp_suspend_cache_addition has no use, in fact it's rather unexpected behavior that only some functions can add to cache (namely: set, incr, decr)

I propose we also check wp_suspend_cache_addition before setting the cache.
This would also be in line with its function description:
>Stops more data being added to the cache, but still allows cache retrieval.

As ""set"" also ""adds"" (or at least modifies if already exists therefore adds/subtracts) data in cache."	malthert
1	58356	Gravatar local image cache		Cache API		normal	normal	Awaiting Review	enhancement	new		2023-05-19T10:38:52Z	2023-05-19T10:40:09Z	"One of the native features of WordPress is the ability to use images in comments or for users. By default, these images are based on email accounts and are loaded from Gravatar.

Each time one of these images is to be uploaded, a call is made to the Gravatar CDN, which implies, every so often, a DNS request, downloading from an external server and reliance on a third-party service.

NOTE: This proposal does not go into legal issues such as whether MD5 is secure or not, or whether privacy legislation such as GDPR must be complied with. This proposal is purely for performance.

The idea would be to give the user the possibility to store the images every N hours, for example with an extra option in Settings → Comments.

The images would be called once to be downloaded every N hours, a Cron system may be used for downloading, and a flag that warns if the image is in local or not (and not to make requests to the disk to check it, since it would be cached in the user data, which have to be loaded anyway).

It is possible that on small sites the impact would be minimal, but on larger sites, or sites with many comments, the number of external calls would be reduced.

In addition, this should also help the sustainability of the sites, since the decision of how often things are cached does not depend on Gravatar but on the user, in addition to the configurations that can be made by the hosting.

Related: #14682 #16020 #44268 #55062."	JavierCasares
1	45417	Lack of actions when wp_cache_flush is called		Cache API		normal	trivial	Future Release	enhancement	new	dev-feedback	2018-11-26T14:08:25Z	2018-12-02T22:48:40Z	"The function definition of wp_cache_flush doesn't have a do_action call, and neither does WP_Object_Cache->flush.

https://core.trac.wordpress.org/browser/tags/4.9.8/src/wp-includes/cache.php#L97
https://core.trac.wordpress.org/browser/tags/4.9.8/src/wp-includes/cache.php#L498

I want to be able to run additional code whenever the object cache is flushed but currently I can't. 

Fixing this should be as trivial as adding 
{{{
do_action('wp_cache_flush');
}}}

to the function definition of wp_cache_flush. 

I don't care about the name of the action or if it runs before or after the flush, I'd just like to have this functionality in the core. Preferably before WordPress 6.0. "	k1sul1
1	65485	Performance: Avoid redundant cache invalidation in wp_insert_* functions when processing meta_input		Cache API		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-06-18T20:44:26Z	2026-10-31T00:09:07Z	"== The Problem ==
Functions like `wp_insert_post()`, `wp_insert_comment()`, `wp_insert_site()`, and `wp_insert_user()` accept a `meta_input` parameter (or equivalent) to create or update multiple pieces of meta data at once via a `foreach` loop. 

However, Core hooks the cache invalidation function `wp_cache_set_posts_last_changed` (and its equivalents for users, comments, and sites) directly to the meta action hooks:
{{{#!php
<?php
add_action( 'added_post_meta', 'wp_cache_set_posts_last_changed' );
add_action( 'updated_post_meta', 'wp_cache_set_posts_last_changed' );
add_action( 'deleted_post_meta', 'wp_cache_set_posts_last_changed' );
}}}

Because these are fired on every individual meta update, passing an array of 5 meta keys results in the cache being invalidated 5 consecutive times during a single insertion process. This is highly redundant and wasteful. Furthermore, `wp_insert_post()` already calls `clean_post_cache()` at the end of its execution, which inherently handles the necessary cache clearing.

== The Proposed Solution ==
To optimize database and object cache performance, we should temporarily unhook the `_last_changed` cache invalidation callbacks before iterating through the `meta_input` loop, and re-hook them immediately after the loop finishes. 

For example, in `wp_insert_post()`:

{{{#!php
<?php
// Temporarily unhook to prevent redundant cache invalidation per meta key
$has_action = remove_action( 'updated_post_meta', 'wp_cache_set_posts_last_changed' );

foreach ( $meta_input as $meta_key => $meta_value ) {
    update_post_meta( $post_id, $meta_key, $meta_value );
}

// Re-hook after the loop completes
if ( $has_action ) {
    add_action( 'updated_post_meta', 'wp_cache_set_posts_last_changed' );
}
}}}

== Scope of Impact ==
This optimization pattern should be applied across all major `wp_insert_*` functions that handle bulk meta input loops:
 * `wp_insert_post()`
 * `wp_insert_comment()`
 * `wp_insert_user()`
 * `wp_insert_site()`

By preventing these redundant internal cache sets, we can noticeably reduce object cache overhead during bulk creation/import processes."	spacedmonkey
1	46388	WP_User::get_data_by(): Cache non-existent users to prevent triggering multiple queries		Cache API	5.2	normal	normal	Future Release	enhancement	new	reporter-feedback	2019-03-01T11:24:01Z	2026-06-19T13:06:59Z	"Assume you use the WP_User::get_data_by() function to get the main user fields queried against an ID:

{{{
WP_User::get_data_by('ID', 1337);
}}}

If you call this function multiple times - by calling the function directly or indirectly by using functions like get_userdata or get_avatar - and an user with the given ID does not exist, the database-query is getting executed multiple times resulting in duplicate queries:

{{{
SELECT * FROM wp_users WHERE ID = '1337'
}}}

To prevent triggering multiple queries, non-existing users should get stored inside the WP Object Cache similar as in the get_option() function for non-existing options.

The attached patch checks if the user ID exists in the WP Object Cache inside of the notusers-array so the WP_User::get_data_by() function returns FALSE if this is the case:

{{{
// Prevent non-existent users from triggering multiple queries
$notusers = wp_cache_get( 'notusers', 'users' );
if ( isset( $notusers[ $user_id ] ) ) {
	return false;
}
}}}

If the user is not existent in the notusers-array but he also does not exist inside of the database, the user gets added to the WP Object Cache before the WP_User:get_data_by() function returns FALSE:

{{{
// User does not exist, so we must cache its non-existence
if ( ! is_array( $notusers ) ) {
	$notusers = array();
}

$notusers[ $user_id ] = true;
wp_cache_set( 'notusers', $notusers, 'users' );
}}}
"	Asgaros
1	62236	Why do wp_cache_incr / wp_cache_decr not allow negative values?		Cache API	6.6.2	normal	normal	Awaiting Review	enhancement	new		2024-10-16T08:14:33Z	2024-10-16T09:30:07Z	"Both functions have this line of code:

[https://developer.wordpress.org/reference/classes/wp_object_cache/decr/
]
[https://developer.wordpress.org/reference/classes/wp_object_cache/incr/
]

{{{#!php
<?php
if ( $this->cache[ $group ][ $id ] < 0 )
$this->cache[ $group ][ $id ] = 0;
}}}


== Why are negative values turned to zero, making it impossible to inc/dec negative values?

wp_cache_set accepts any integer – so negative values can be set, but once incr/decr are called this value will be set to zero or zero + offset.

No other programming language handles inc/dec this way.

PHP, Javascript, C++ and so on have the inc/dec operator ++, -- that work with negative values.

When it comes to caching and APCu is used for example.

[https://www.php.net/manual/en/function.apcu-inc.php
]

APCu handles negative values.

Same with redis and memcached:

[https://redis.io/docs/latest/commands/incr/
]

[https://www.php.net/manual/en/memcache.increment.php
]

I think this is inconsistent unless there is a special reason to prevent negative values – but then, negative values should not be allow in the first place (wp_cache_set).




"	docjojo
1	53574	404 redirect guessing should not apply on URLs with trailing slashes		Canonical		normal	normal	Awaiting Review	defect (bug)	new		2021-07-01T16:21:27Z	2021-07-01T16:21:27Z	"The original intent of the 404 redirect guessing functionality was to resolve URLs that got split in half by e-mail clients and the like. Some of them would see a dash in a URL and assume they could wrap it to the next line like a multi-syllable word, so you'd have people clicking links like `https://example.com/some-post-` because `with-a-long-slug/` got wrapped to the next line in the e-mail.

But currently if you navigate to `https://example.com/bad-slug/` where that doesn't exist, but `https://example.com/bad-slug-exists/` does, you'll get redirected.

This doesn't make much sense. The trailing slash on `https://example.com/bad-slug/` conclusively indicates that you didn't click a slug-truncated URL. In this case, it makes more sense to just let it be a 404."	markjaquith
1	51725	Canonical redirect and user_trailingslashit()		Canonical	5.5.2	normal	trivial	Awaiting Review	defect (bug)	new	needs-unit-tests	2020-11-07T01:06:54Z	2024-01-25T11:39:58Z	"Hi,

this bug is quite difficult to spot and it appears only when ''redirect_canonical()'' function is used to force the canonical redirect on front page and the trailing slashes are not added to the permalinks. Happily it is nothing serious.

**How to reproduce this bug?**

**Step 1. Remove the trailing slashes from WP permalinks:**
First of all, you need to use ""Custom structure"" mode in Permalinks settings and remove the trailing slash (''/%postname%/'' => ''/%postname%'') in the adjacent input field. Therefore, the value of ''$wp_rewrite->use_trailing_slashes'' is changed to false.

**Step 2. Trigger the canonical redirect on front page**
Now let's disable the feed URL by redirecting the visitors trying to access it:
{{{#!php
<?php
function disable_feed() {
	if(is_feed() && is_front_page()) {
		redirect_canonical();
	}
}
add_action('template_redirect', 'disable_feed', 1);
}}}


Now, when one tries to access the feed URL linked to front page, (eg. http://example.com/feed), the above hook will be triggered and visitor redirected to the canonical URL (''http://example.com/feed'' => ''http://example.com'').

The problem is that the PHP notice is displayed then:
''<b>Notice</b>:  Undefined index: path in <b>/var/www/vhosts/maciejbis.net/example.com/wp-includes/canonical.php</b> on line <b>576</b><br />''

I guess that the source of the problem is here (line 501):
https://core.trac.wordpress.org/browser/tags/5.5.1/src/wp-includes/canonical.php#L501

{{{#!php
$redirect['path'] = user_trailingslashit( $redirect['path'] );
}}}


Unfortunately because of ''user_trailingslashit()'' function, the slash is removed and value is set to ''null''. The value of `$redirect['path']` should not be changed in this particular case (value '/' should be preserved). 

My first suggestion is to exclude ''user_trailingslashit()'' function there and not use it when value of `$redirect['path']` variable is just a single slash '/':

{{{#!php
$redirect['path'] = ( $redirect['path'] === '/' ) ? $redirect['path'] : user_trailingslashit( $redirect['path'] );
}}}

Another idea is to do the same but directly in ''user_trailingslashit()'' function:

https://core.trac.wordpress.org/browser/tags/5.5.1/src/wp-includes/link-template.php#L51 

Basically this piece of code:
{{{#!php
if ( $wp_rewrite->use_trailing_slashes ) {
	$string = trailingslashit( $string );
} else {
	$string = untrailingslashit( $string );
}
}}}

can be replaced with:

{{{#!php
if ( $wp_rewrite->use_trailing_slashes ) {
	$string = trailingslashit( $string );
} else if ( $string !== '/' ) {
	$string = untrailingslashit( $string );
}
}}}
"	mbis
1	41577	Fix Notice fixing		Canonical	4.8.1	normal	normal	Awaiting Review	defect (bug)	new		2017-08-07T00:09:12Z	2021-03-19T11:53:15Z	"The file wp-includes/canonical.php produces Notices for undefined indexes when a requested uri has no path or query.

The attached patch sets the indexes to empty strings.

#6977 (which was not used) had a different approach.  The currently used ""Notice fixing"" approach does not fix up $original which is used afterwards.
"	glehner
1	65163	Force URLs/URIs of Posts and Feeds to Redirect (301) to All Lowercase		Canonical		normal	normal	Awaiting Review	defect (bug)	new		2026-05-04T17:29:07Z	2026-05-13T23:29:24Z	"Two problems exist with the current WordPress setup:

1. An otherwise correct write-up of an RSS feed that has some uppercase letters will result in a 404. This is very bad for user experience. I can set up redirects to ignore casing for the “wrong” version for the redirect (so that `/feed/`, `/FEED/`, `/Feed/`, and `/fEed` can go to `/feed`^[#note1 1]^), but if I have a redirect that ignores casing on `/feed` and redirects to `/feed` or make a redirect that ignores casing and trailing slash for `/feed` or `/feed/` that redirects to `/feed`, then I have created a loop. An infinite loop creates breakage because “Ignore Case” will also redirect the correct version to itself, and then again to itself, and yet again, ad infinitum. \\ \\
  I have no way to redirect all instances except the correct one. I can only redirect URLs/URIs that have right or wrong casing *and also* the wrong presence or absence of a trailing slash. \\ \\
2. All posts, regular posts, create duplicates with the wrong case. This means that `https://www.example.com/bar` and `https://www.example.com/Bar` both exist, and that destroys page ranking. Incorrect absence of a trailing slash will 301 to the other version, but it will not fix the casing. If the presence or absence of a trailing slash is right, then nothing happens not all. The URL/URI goes through and the page loads a duplicate of the canonical version.

**Hence, the site should force lowercase on everything (both feeds and posts, as well as pages).**

I would even say it is good universally if the user knows that all media library assets must be in lowercase. (In a more complicated way, WordPress would have to rename all previously uploaded files and check for conflicts before flipping a mandatory switch, but that solution is a major request.)

Thank you for your time.

[=#note1 ^1^] By the way, I set up permalinks etc. to not add a trailing slash. Also, I prefer the slash-less version of the feed(s), and WordPress makes both version anyway, and so I set up redirects there in any case, with the Redirection plugin from John Godley."	chiarella86
1	62007	PHP warning in wp-includes/canonical.php when accessing custom feed with specific permalink structure		Canonical		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-09-07T21:34:44Z	2024-09-08T09:00:18Z	"
Problem:
Path lookup fails within `redirect_canonical()` when accessing custom feeds for certain permalink structures.

Error Message:


{{{
<b>Warning</b>:  Undefined array key ""path"" in <b>/path/to/wordpress/wp-includes/canonical.php</b> on line <b>618</b><br />
<br />
<b>Warning</b>:  Undefined array key ""path"" in <b>/path/to/wordpress/wp-includes/ccanonical.php</b> on line <b>618</b><br />
<br />
<b>Warning</b>:  Undefined array key ""path"" in <b>/path/to/wordpress/wp-includes/ccanonical.php</b> on line <b>730</b><br />
<error>
}}}


Error location (6.6 branch):
https://github.com/WordPress/wordpress-develop/blob/6.6/src/wp-includes/canonical.php#L617-L618
https://github.com/WordPress/wordpress-develop/blob/6.6/src/wp-includes/canonical.php#L730

Reproduction steps:
- Install WordPress 6.6.1
- Set permalink structure to `/%category%/%post_id%`
- Access {WordPress URL}/?feed=test

*`?feed=test` is a non-existent feed template

Version confirmed this issue:
WordPress: 6.6.1
Theme: Twenty Twenty-Four
Plugin: None"	mt8.biz
1	36737	Single site reachable on multiple subdomains always redirected to site_url		Canonical	4.5	normal	normal	Awaiting Review	defect (bug)	new	close	2016-05-03T07:21:29Z	2021-01-14T22:11:33Z	"We run a site which is reachable by multiple subdomains (nb. not multisite) For example customer1.site.nl, customer2.site.nl. A plugin uses the subdomain to display different data for each customer. The site url is set to www.site.nl.

Since a recent update this stopped working. The visitor is always redirect to the site url www.site.nl.

I tracked down the problem to canonical.php. When I replace this file with the version from 4.4.2 the old behaviour is back, ie. the subdomains are not redirected.

There are no rewrite rules for these sub domains.
"	jsoft
1	51348	Trailing slash redirect removes pipes from query strings		Canonical	5.5.1	normal	normal	Awaiting Review	defect (bug)	new		2020-09-18T15:31:29Z	2021-03-18T06:58:36Z	"We are using some query strings for tracking and campaign purposes and some of them contain pipes.
An example:
{{{https://example.com/page?key=value1|value2}}}

When using one of the template permalinks a trailing slash is added at the end and WordPress will redirect from non trailing slash url to a trailing slash one. Same goes the other way around when a custom permalink is set without a trailing slash and an url with a trailing slash is accessed.

We noticed, that during this redirect all pipes in the query string are lost/removed/stripped.
The example above will result in:
{{{https://example.com/page/?key=value1value2}}}"	simjost
1	55993	Wrong canonical redirect for paged posts page		Canonical		normal	normal	Awaiting Review	defect (bug)	new		2022-06-16T13:55:21Z	2025-05-12T01:37:57Z	"- Setup a site with a static front page and a posts page (let's call it ""Posts""). 
- Take note of the page_id of the posts page. 265 in my case.
- Make sure to use pretty permalinks.
- Create sufficient posts to be able to display the page 2 of the posts page.
- In the address bar, type `https://mysite.com/?page_id=265` (the posts page plain permalink) => The site is correctly redirected to `https://mysite.com/posts/`
- In the address bar, type `https://mysite.com/?paged=2&page_id=265` (the paged posts page plain permalink) => The site is wrongly redirected to `https://mysite.com/page/2/` and displays an empty content. I would expect the url to be redirected to `https://mysite.com/posts/page/2/`
"	Chouby
1	50506	PHP warning appearing in 404 page and 'post_type' query var is Array		Canonical	5.4.2	normal	normal	Awaiting Review	enhancement	new	needs-unit-tests	2020-06-29T11:34:44Z	2020-06-29T11:46:39Z	"Fixed PHP warning appearing in 404 page and 'post_type' field is Array (not string), more exactly function: `redirect_guess_404_permalink` line 700 in '''wp-includes/canonical.php'''

To replicate this issue simply add this code inside plugin/theme:

{{{
function _debug_php_warning_on_404( $query ) {
	$query->set( 'post_type', [ 'post', 'portfolio', 'page' ] );
} 
add_action( 'pre_get_posts', '_debug_php_warning_on_404' );
}}}

Then try a missing page slug __domain.test/missing-content__ it will show a warning:


  wpdb::prepare was called incorrectly. The query only expected one placeholder, but an array of multiple placeholders was sent. Please see Debugging in WordPress for more information. (This message was added in version 4.9.0.)

The fix is to replace line 700 and check for array ""post_type"" query var:

{{{
if ( $post_type = get_query_var( 'post_type' ) ) {
	if ( is_array( $post_type ) ) {
		$where .= "" AND post_type IN ('"" . implode( ""', '"", esc_sql( $post_type ) ) . ""')"";
	} else {
		$where .= $wpdb->prepare( ' AND post_type = %s', $post_type );
	}
}
}}}"	arl1nd
1	40082	Pretty links for users when searching		Canonical	4.7.3	normal	normal	Awaiting Review	enhancement	reopened		2017-03-09T15:12:23Z	2018-08-14T09:50:45Z	"When using the site search, users are shown the ugly URL when taken to the results page:

> example.com/?s=keyword

It appears as though search results can have pretty URLs:

> example.com/search/keyword

Maybe show the pretty URL in the browser instead?"	henry.wright
1	38186	Database Collations Bypassed by determine_charset() in wp-db.php		Charset	4.6.1	normal	major	Awaiting Review	defect (bug)	new		2016-09-29T14:26:56Z	2017-02-10T14:32:55Z	"The function 'determine_charset' in wp-db.php, since 4.6.0 will try to set the database collation to the best option available, 'utf8mb4_unicode_520_ci'. This makes sense when the collation is not explicitly defined in wp-config.php, and most likely beneficial to novice developers. 

However, this assumptive behavior occurs even when the DB collation ''is'' explicitly defined in wp-config, effectively ignoring 'utf8_general_ci', 'utf8mb4_unicode_ci', and collations starting with 'utf8_' in certain environments.

There appears to be no way to force these collations when defined by the developer. If the developer has set the collation in the config file, shouldn't the software obey the word of the developer?

In short, ''a valid database collation set in wp-config should not be bypassed by WP Core.'' There is no workaround that vindicates the logic in determine_charset().

A possible solution would involve determine_charset() checking for a config setting such as 'FORCE_DB_COLLATE'. If true, use the collation defined in wp-config without assuming otherwise.
"	natecf
1	59868	Database insert with emoji fails when table has columns with both utf8mb3 (utf8) and utf8mb4 charsets		Charset	4.2	normal	normal	Future Release	defect (bug)	new	has-patch	2023-11-09T14:41:41Z	2025-09-23T18:17:39Z	"The `wpdb::get_table_charset()` function currently sets the charset to `utf8` when it detects that both `utf8` and `utf8mb4` charsets are present in the table's column definitions.

That same function also swaps in `utf8` for `utf8mb3` as they are effectively the same thing.

This means that the `wpdb::strip_invalid_text_from_query()` function used early by the `wpdb::query()` function to determine whether text is safe to be inserted, ends up stripping `utf8mb4` safe characters because it forces the use of `utf8` in the called `wpdb::strip_invalid_text()` function.

This results in insert queries failing where a table has columns with both `utf8mb3/utf8` and `utf8mb4` collations used, and there are emojis or other 4 byte characters being used in the column that has a `utf8mb4` charset and collation defined.

I propose that the `wpdb::get_table_charset()` function should use `utf8mb4` as the returned charset when it detects that 2 charsets are defined on the table, and they are `utf8` and `utf8mb4`, instead of the current behaviour of returning `utf8`."	ianmjones
1	35144	Sorting Greek characters		Charset	4.4	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2015-12-17T21:52:15Z	2026-09-17T18:06:58Z	There's an abnormal behaviour in alphabetically sorted lists containing terms in Greek. The expected order would be Latin characters on top, then Greek; two consecutive lists. However, the Greek list is actually further split into two other lists, one with terms starting with an upper case character and the other with terms starting with lower case. So it's Latin Aa-Zz, then Greek Α-Ω, then Greek α-ω. A real-world example is a tag cloud. See this for example: [http://www.tastefull.gr/tagcloud]	beerallica
1	25693	blog_charset should be checked for null values		Charset	3.8	normal	major	Future Release	defect (bug)	new	has-patch	2013-10-25T04:10:29Z	2025-03-18T09:12:36Z	"We've encountered an error wherein a blog in a multisite network's `blog_charset` was nuked. This led to posts entered from the editor (visual and text) having random bits eaten. This was particularly pronounced when using text copied from Word documents.  This is related to #23688, I think.

It seems as though PHP 5.4 makes some weird assumptions when you have a blank/null charset.  Suggest we check for null values and fall back to, say, UTF-8 if none is found.

@grantlandram, @dkotter and I found this one under duress."	ZaMoose
1	64473	Embrace WHATWG Encoding Standards	dmsnell	Charset		normal	normal	Future Release	enhancement	assigned	has-patch	2026-01-04T07:42:37Z	2026-07-10T12:41:57Z	"Text encoding can be extremely complicated. Worse, it can draw in a wide array of security issues. Because of this complexity and because of the issues which arise when different systems interpret the same text differently, even through such basic actions as using text decoders which have different internal behaviors, the WHATWG established the [https://encoding.spec.whatwg.org/ Encoding standard].

This specification standardizes many different aspects of the text data flow, including, but not limited to:
 - How can the encoding for a stream of bytes be guessed?
 - When someone says their text is “1252” or “UTF7” or “UTF-8;ASCII” or any number of invalid or non-standard declarations, what should the system pick as the correct encoding declaration?
 - How should certain security-sensitive encodings be handled?
 - How exactly should certain kinds of errors be handled when decoding multibyte characters?

It also strongly asserts that all systems should ideally use UTF-8 (see #62172).

----

The specification is rather short and would provide considerable value to the tricky parts of WordPress’ encoding woes.

It should be designed in a way to answer questions that developers have when using WordPress, touching notable parts such as:

 - Parsing HTML when an encoding is uncertain or unknown.
 - Converting text from the database to HTML.
 - Converting text when exporting to WXR.
 - Converting text when existing decoders aren’t available (polyfilling conversion).
 - Providing security-sensitive aids to text-handling code.

== Related Tickets

 - #7813, #38479, #39190 export functions need reliable conversion from a likely-unknown legacy encoding into UTF-8 (and //not// `utf8_encode()` — see #55603).
 - #20368 `htmlspecialchars()` woes when charset not provided. a separate issue, but the proposed patch includes a simplified form of a `name_from_label` table.
 - #49355 seems like posts can fail to save into a database when supplied invalid encodings. this is a bigger issue requiring coordination with `wpdb`
 - #63864 MIME decoding from email should be cautious about what it decodes"	dmsnell
1	32917	Tests_DB_Charset tests don't fully cover wpdb::strip_invalid_text_for_column()		Charset	4.2	normal	normal	Future Release	enhancement	new	has-patch	2015-07-08T00:20:27Z	2024-11-14T18:59:30Z	"Related / previously:

 * #32351
 * #32308
 * #32127
 * #21212

`Tests_DB_Charset` includes a data provider that feeds various charsets into its `wpdb::strip_invalid_text()` test, but not for its `wpdb::strip_invalid_text_for_column()` test, which means it's not being tested fully. It should be."	johnbillion
1	63913	WordPress assumes that the UTF-8 PCRE flag is available.		Charset	6.9	low	normal	Future Release	enhancement	new	has-patch	2025-09-02T23:21:29Z	2025-09-22T22:50:08Z	"There are several places in Core where code assumes that the UTF-8 flag (`PCRE_UTF8`) is available and performs matching or substitution with no alternative. When this happens, the `preg_` functions fail silently. Data corruption ensues in ways which are hard to track to this source.

The `_wp_can_use_pcre_u()` function indicates support for this flag, but resolving this issue is not as simple as wrapping the `preg_` calls in a check. The existing code provides no fallback mechanism and it may be necessary to define such in the absence of support for the flag.

One such example is `shortcode_parse_atts()`.

{{{#!php
<?php
$text    = preg_replace( ""/[\x{00a0}\x{200b}]+/u"", ' ', $text );
}}}

In this case, when `PCRE_UTF8` is not supported, `$text` becomes `NULL` and the function fails to parse any shortcode attributes. This is an example of a function which doesn’t require UTF-8 regex patterns, because the above replacement is trivial to replace.

A more complicated example is `get_avatar_data()`, which searches based on script properties of characters which has no replacement. In the lack of support there, it may not be possible to provide an equivalent fallback.

{{{#!php
<?php
if ( preg_match( '/\p{Han}|\p{Hiragana}|\p{Katakana}|\p{Hangul}/u', $name ) || false === strpos( $name, ' ' ) ) {
	$initials = mb_substr( $name, 0, min( 2, mb_strlen( $name, 'UTF-8' ) ), 'UTF-8' );
} else {
	$first    = mb_substr( $name, 0, 1, 'UTF-8' );
	$last     = mb_substr( $name, strrpos( $name, ' ' ) + 1, 1, 'UTF-8' );
	$initials = $first . $last;
}
}}}

An incomplete PCRE pattern I used to find sources in the codebase using the `/u` flag follows. It would be better to build a search based off of a PHP parser, but finding a comprehensive list of places assuming the UTF-8 flag is left as an exercise for future work on this ticket.


{{{
('|"")((?!\1)[^_a-zA-Z0-9-])((?!\1).)+\2[idsxumrADSUXJ]*?u[idsxumrADSUXJ]*?\1
}}}

This looks for string literals starting and ending with the same delimiter, followed by a set of PCRE modifiers including the `u`, terminated by the opening quote. It does not find `HEREDOC` or `NOWDOC` patterns and it does not find unmatched delimiters like parentheses or other brackets.

h/t @tusharbharti"	dmsnell
1	60693	"""Previously approved comment"" for logged out users bug"		Comments	6.4.3	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2024-03-05T14:30:41Z	2024-03-07T17:00:03Z	"When ""Comment author must have a previously approved comment"" is checked in the discussion settings, comments made by registered users who are logged out, go to moderation every time. The check comment function looks for previous comments under their user id but if they have only commented while logged out, no id is recorded. This bug has caused our users and our team major frustration. Can someone please address? Thanks!"	jmorti
1	43695	$depth and $args are switched when using custom callback in wp_list_comments()		Comments	4.9.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-04-05T05:55:31Z	2021-11-26T11:12:27Z	"For the custom function I am using the [latest function from walker](https://github.com/WordPress/WordPress/blob/master/wp-includes/class-walker-comment.php#L343) as a base.

When you use custom callback in comments.php template:
{{{#!php
<?php
// comments.php
$args = [
    'type' => 'comment',
    'format' => 'html5',
    'style' => 'ol',
    'short_ping' => true,
];
// Use our custom callback if it's available
if( function_exists( 'custom_render_comment' ) ){
    $args['format'] = 'custom';
    $args['callback'] = 'custom_render_comment';
}
wp_list_comments( $args );
}}}

The arguments that get passed to custom_render_comment function are switched:
{{{#!php
<?php
// custom_render_comment.php
function custom_render_comment( $comment, $depth, $args ) {
/*
var_dump($depth):
array(15) { [""walker""]=> NULL [""max_depth""]=> string(1) ""5"" [""style""]=> string(2) ""ol"" [""callback""]=> string(21) ""faeiv2_render_comment"" [""end-callback""]=> NULL [""type""]=> string(7) ""comment"" [""page""]=> int(0) [""per_page""]=> int(0) [""avatar_size""]=> int(32) [""reverse_top_level""]=> bool(false) [""reverse_children""]=> string(0) """" [""format""]=> string(6) ""faeiv2"" [""short_ping""]=> bool(true) [""echo""]=> bool(true) [""has_children""]=> bool(true) }
}
var_dump($args):
int(1)
*/
}
}}}

The result is this error:

{{{
Warning: array_merge(): Argument #1 is not an array in [...]/wp-content/themes/mytheme/inc/render-comment.php on line 56
}}}


I haven't found any mention of switching arguments in the WordPressCodex.

The fix is easy, just switch those variables, but I think it should be addressed somewhere in the documentation."	vincurekf
1	40319	Apostrophe in commenter's name prevents comment_whitelist setting from working.		Comments	4.0	normal	normal	Future Release	defect (bug)	new	changes-requested	2017-03-30T18:30:04Z	2026-04-16T06:33:36Z	"If a commenter has an apostrophe in their name, and they have a previously approved comment, and the comment_whitelist setting is enabled (""Comment author must have a previously approved comment""), the commenter's comment will always end up in moderation.

The cause of this can be traced to r38738. If the name has an apostrophe, it will be slashed; the author name was previously included directly in the SQL, with the slash properly escaping the apostrophe, but when the query was updated to use `prepare()`, the author name was not unslashed.

Affects 4.7, 4.7.1, 4.7.2, 4.7.3, and trunk.

I've attached a patch that addresses the issue by unslashing the two `expected_slashed` parameters."	cfinke
1	32851	Comment e-mail address of registered user not updated when user's e-mail address is changed		Comments		normal	major	Future Release	defect (bug)	new	dev-feedback	2015-07-01T05:13:01Z	2020-09-30T20:17:48Z	"when i have register on blog and i have add 4 comment on different post.
Now 2'nd day i have change  my email address on my profile.

now any one comment's reply is email gone my old email address which is not change after profile update on comments.

i have fix this issue on one member please review it 2 link for more info.

i hope u will understand me.

[https://wordpress.org/support/topic/update-old-comments-with-new-registered-user-email-address?replies=6]

[https://wordpress.org/support/topic/development-bump]


now i have fix this bug using this one code


{{{
function user_profile_update($user_id) {
     $commentarr = array();
     global $wpdb;

     if( !current_user_can( 'edit_user', $user_id ) ){
        return false;
     }

     if(isset($_POST['email'])):
            echo $email = esc_attr($_POST['email']);
            $wpdb->query(""UPDATE $wpdb->comments SET comment_author_email='$email' WHERE user_id=$user_id"");
     endif;
}
add_action('personal_options_update','my_profile_update', 10,2);
add_action('profile_update', 'user_profile_update', 10,2);
}}}
"	ravipatel
1	66272	"Comments: ""Mine"" view count not updated via AJAX after moderation actions"		Comments		high	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-08T17:31:26Z	2026-10-08T17:31:46Z	"On the Comments screen (edit-comments.php), performing an AJAX moderation
action — Approve, Unapprove, Spam, Trash, Delete Permanently, or Undo —
live-updates several of the view tab counts in the DOM without a full page
reload. `edit-comments.js`'s `delAfter` handler bumps:

- `span.all-count`
- `span.pending-count` (via `updatePending()`)
- `span.approved-count` (via `updateApproved()`)
- `span.spam-count`
- `span.trash-count`

`span.mine-count` is never touched by this code. As a result, after e.g.
trashing or deleting one of your own comments via the inline row actions,
the ""Mine (N)"" tab keeps showing the old count until the page is fully
reloaded — inconsistent with every other tab, which updates immediately.

Steps to reproduce:

1. Log in as a user who has left at least one comment on the site
   (comment's `user_id` matches the logged-in user).
2. Go to Comments in wp-admin. Note the ""Mine (N)"" count in the view tabs.
3. Click the ""Mine"" tab to filter to your own comments.
4. Use the inline ""Trash"" (or ""Delete Permanently"" / ""Approve"" / etc.) link
   on one of your own comments.

Expected: ""Mine (N)"" decrements immediately, matching how ""All"" and
""Trash"" update.

Actual: ""Mine (N)"" stays at its old value until the page is reloaded.

Root cause: ""Mine"" uses the same status scope as ""All"" (approved +
pending comments; see `WP_Comments_List_Table::get_views()`, which queries
with no `status` arg and defaults to `'all'`), just filtered to the
current user's own comments via `user_id`. The AJAX handler updates ""All""
but has no way to know, client-side, whether the affected comment belongs
to the current user, so it was never extended to also update ""Mine"".

Suggested fix: render a `data-comment-user-id` attribute on each comment
row (`WP_Comments_List_Table::single_row()`), localize the current user's
ID to the `admin-comments` script, and in `edit-comments.js` compare the
two to decide whether to also bump `span.mine-count` alongside
`span.all-count` for the same `pendingDiff`/`approvedDiff` changes."	abditsori
1	65537	Comments: Add a filter for the comment types excluded from queries by default	adamsilverstein	Comments		normal	normal	7.3	defect (bug)	assigned	has-patch	2026-06-24T21:19:41Z	2026-11-08T01:25:33Z	"== Summary ==

`WP_Comment_Query` now excludes the `note` comment type from results unless `'all'` or `'note'` is explicitly requested (introduced in 6.9 for the editor Notes feature). The list of excluded-by-default types is hard-coded:

{{{#!php
// class-wp-comment-query.php, get_comment_ids()
if (
    ! in_array( 'all', $raw_types['IN'], true ) &&
    ! in_array( 'note', $raw_types['IN'], true ) &&
    ! in_array( 'note', $raw_types['NOT IN'], true )
) {
    $raw_types['NOT IN'][] = 'note';
}
}}}

There is no extension point here, so a plugin that introduces its own ""private"" comment type (one that should never appear in standard comment listings, counts, or feeds) has to rewrite the SQL through `comments_clauses` in every context, and re-check that work on each release. The [https://wordpress.org/plugins/alpaca-issue-tracker/ Alpaca issue-tracker plugin] maintains a [https://github.com/rareview/alpaca-issue-tracker/blob/main/lib/private-comments.php dedicated library] to do exactly this, and reports playing ""whack-a-mole"" with each core update (see the [https://github.com/WordPress/gutenberg/issues/76316#issuecomment-4749810490 Gutenberg Notes iteration discussion]).

== Proposal ==

Add a filter that lets extenders contribute additional comment types to the default-excluded set, generalizing the existing hard-coded `note` handling:

{{{#!php
/**
 * Filters the comment types excluded from WP_Comment_Query results by default.
 *
 * Types in this list are excluded unless the query explicitly requests
 * 'all' or that specific type via 'type', 'type__in', or 'type__not_in'.
 *
 * @since 6.10.0
 *
 * @param string[]         $types Comment types excluded by default. Default array( 'note' ).
 * @param WP_Comment_Query $query The current WP_Comment_Query instance.
 */
$excluded_types = apply_filters( 'default_excluded_comment_types', array( 'note' ), $this );

foreach ( $excluded_types as $excluded_type ) {
    if (
        ! in_array( 'all', $raw_types['IN'], true ) &&
        ! in_array( $excluded_type, $raw_types['IN'], true ) &&
        ! in_array( $excluded_type, $raw_types['NOT IN'], true )
    ) {
        $raw_types['NOT IN'][] = $excluded_type;
    }
}
}}}

Because `WP_Comment_Query` backs the majority of comment outputs (admin list table, `get_comments()`, counts via `WP_Comment_Query`, REST collection queries, feeds), a single registration point here removes most of the per-context filtering a plugin currently needs.

== Scope / non-goals ==

This is deliberately a small step, not the full custom-comment-types API tracked in #35214. It does not add a registration object, labels, capabilities, or admin UI. It only generalizes the existing default-exclusion behavior so private types can opt in without rewriting query SQL.

A few outputs compute counts with their own hard-coded `comment_type != 'note'` SQL (e.g. `get_comment_count()` / approved-count helpers) rather than going through `WP_Comment_Query`; those can be addressed as follow-ups, or by having them consult the same filtered list, and should be noted in the patch.

== Backward compatibility ==

The default value `array( 'note' )` preserves current behavior exactly. No change for sites that don't use the filter.
"	adamsilverstein
1	61468	DivisionByZero issue for comments on PHP8.0+		Comments		normal	major	Awaiting Review	defect (bug)	new	dev-feedback	2024-06-19T14:39:32Z	2025-04-03T13:52:04Z	"=== Quick summary

I have found an issue with PHP 8.0+ where if the `comments_per_page` option is set to 0, which really shouldn't be possible, PHP 8.0+ fires a DivisionByZero exception. This means that any blog post with the comments section and form showing then hits a fatal error.


=== Steps to reproduce

1. Set the site's PHP version to 8.0+
2. Visit `Settings > Discussion` and set the `Break comments into pages with x` option to 0.
3. Save changes
4. Visit a blog post with comments active
5. See the blank post and fatal error in the logs

=== A clear and concise description of what you expected to happen.

The blog post should load and show any existing comments above the comment form.

=== What actually happened

When comments are activated on blog posts, loading the blog post in the front end causes a blank screen and a fatal error in the logs.

{{{
PHP Fatal error:  Uncaught DivisionByZeroError: Division by zero in /wordpress/core/6.5.4/wp-includes/comment-template.php:1520
}}}

In `wp-includes/comment-template.php` on line 1520 we find this code:

{{{
$comment_args['offset'] = ( (int) ceil( $top_level_count / $per_page ) - 1 ) * $per_page;
}}}

If the `comments_per_page` option is always going to be used for this math, it should not be possible to set it to zero in `Settings > Discussion`."	hideandgeek404
1	58058	Fix PHP open and close tag placement in /wp-admin/comment.php LineNo 175		Comments		normal	normal	Awaiting Review	defect (bug)	new	changes-requested	2023-04-02T10:55:40Z	2023-04-02T16:29:51Z	This PR fixes a PHP open and close tag placement issue on line 175 of the WordPress file /wp-admin/comment.php. The original code embeds a multi-line PHP snippet within an HTML block, but the PHP open tag is not on a line by itself. The updated code moves the PHP open tag to a new line so that it is on a line by itself, as required by best practices. This improves the readability and maintainability of the WordPress core codebase.	moinrrahmed
1	43946	Inconsistent encoding of comment_content		Comments	4.9.5	normal	normal	Awaiting Review	defect (bug)	new		2018-05-03T10:50:13Z	2026-10-15T11:43:53Z	"The contents of the comments.comment_content field in the WordPress database are stored inconsistently depending on whether the user creating the comment was logged in or not. 

{{{
> select comment_ID, comment_content, comment_type from wp_comments where comment_ID > 7;
+------------+-----------------------------------------------------+--------------+
| comment_ID | comment_content                                     | comment_type |
+------------+-----------------------------------------------------+--------------+
|          8 | This is a good &amp; strong comment (comment, anon) |              |
|          9 | This is a good & strong comment (comment, auth)     |              |
+------------+-----------------------------------------------------+--------------+
}}}

In the example above, comment 8 was left by an anonymous user, and comment 9 was left by an authenticated user. Notice how the comment_content field has been HTML-escaped for ID 8, but not for ID 9. 

=== Steps to reproduce:

* Install a fresh copy of WordPress
* As the site administrator, navigate to the default ""hello-world"" post
* Leave a comment including characters that should be escaped when output to HTML, e.g. &
* Log out
* Navigate to the default ""hello-world"" post
* Leave a comment including characters that should be escaped when output to HTML, e.g. &

Compare the contents of the two comments in the wp_comments table.
"	leewillis77
1	63675	Sanitize request values and improve translatable strings in edit-comments.php		Comments		normal	minor	Awaiting Review	defect (bug)	new	close	2025-07-08T17:54:04Z	2025-07-09T07:02:44Z	"This patch addresses a small security and translation-related improvement in the `wp-admin/edit-comments.php` file:


1. Sanitization of Request Inputs

Currently, `$_REQUEST['comment_status']` and `$_REQUEST['pagegen_timestamp']` are used directly after `wp_unslash()`:
{{{
$comment_status = wp_unslash( $_REQUEST['comment_status'] );
$delete_time    = wp_unslash( $_REQUEST['pagegen_timestamp'] );
}}}

2. Translatable String Formatting

{{{
$messages[] = __( 'This comment is already approved.' ) . sprintf(
    ' <a href=""%1$s"">%2$s</a>',
    esc_url( admin_url( ""comment.php?action=editcomment&c=$same"" ) ),
    __( 'Edit comment' )
);
}}}
is refactored into a single `sprintf()`-wrapped translatable string:
{{{
$messages[] = sprintf(
    __( 'This comment is already approved. <a href=""%s"">Edit comment</a>' ),
    esc_url( admin_url( ""comment.php?action=editcomment&c=$same"" ) )
);
}}}"	sandippatel11
1	53228	Unspamming a comment should respect `comment_previously_approved` setting		Comments		normal	normal	Awaiting Review	defect (bug)	new		2021-05-18T21:28:27Z	2021-05-18T21:32:57Z	"On the ""Settings > Discussion"" page, the ""Comment author must have a previously approved comment"" setting (`comment_previously_approved`) allows a user's comments to be automatically set to `approved` status (a.k.a. `comment_approved = 1`).

However, if a comment from a previously-approved author is incorrectly-marked as spam (either internally via `check_comment()` or from an anti-spam plugin like Akismet) and later, a moderator marks the comment as ""Not spam"", this comment is not automatically approved. Instead, the comment is placed in the moderation queue (`comment_approved = 0`).

WordPress makes this determination during unspamming here: https://github.com/WordPress/WordPress/blob/f4631a98f50f6275d0284527cf9fd7009e439e55/wp-includes/comment.php#L1717-L1722

Specifically, if the comment has a previously-trashed status from the `_wp_trash_meta_status` meta value, WordPress will use it. Otherwise, an unspammed comment's status will be marked as `pending` or `0`.

Our users believe this is a UX issue. Previously-approved authors should not have their comments placed in `pending` after the comments are unspammed.

We're working around this issue at the moment, but thought we would ask if this is a bug or if this is by design."	r-a-y
1	43015	function get_previous_comments_link not working in front page		Comments	4.9.1	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2018-01-03T11:44:16Z	2019-06-24T16:29:01Z	"Hey,
function get_previous_comments_link generate wrong url in front page, but it's ok in typical page, it's because of the permalink, wordpress hasn't full permalink in front page."	devlife
1	47413	nested paragraphs in comment post errors		Comments	4.5	normal	normal	Future Release	defect (bug)	reviewing	has-patch	2019-05-28T05:32:48Z	2021-05-15T22:42:25Z	"Line 30 in ‘wordpress/wp-comments-post.php’:

{{{#!php
<?php
'<p>' . $comment->get_error_message() . '</p>'
}}}

An example of the Html code generated:


{{{
<p><p><strong>ERROR</strong>: please fill the required fields (name, email).</p></p>
}}}

The reason is that in function **_default_wp_die_handler**, line 3072 in ‘wordpress/wp-includes/functions.php’ (WordPress 5.2.1), there already is a paragraph tag.

{{{#!php
<?php
$message = ""<p>$message</p>""
}}}

I would suggest removing the paragraph in ‘wp-comments-post.php’. Simply:

{{{#!php
<?php
$comment->get_error_message()

}}}

ought to do.
"	tnbnicer
1	58604	title_reply_to Value of comment_form() Function Isn't Working		Comments	6.2.2	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2023-06-22T18:37:20Z	2025-07-16T16:17:20Z	"Hello everyone, friends;

I encountered a problem when customizing the comment form. If I add the **title_reply_to** value to the **comment_form()** function, get the **reply_to_text** value in the **get_comment_reply_link()** function.

Has anyone had this problem before? Or am I experiencing this problem due to an error?

{{{#!php
<?php
$fields        = array(
    'author' => '...',
);
$args          = array(

    'title_reply' => __('Leave a Reply', 'xxx'), // This value works
    'title_reply_to' => __('Leave a Reply to %s', 'xxx'), // This value doesn't work
    'title_reply_before' => '<h2 id=""reply-title"" class=""comment-reply-title""><i></i>', // The problem is when I add an icon to this value
    'title_reply_after' => '</h2>',
    'fields' => apply_filters('comment_form_default_fields', $fields)
);
comment_form($args);
}}}
"	metinmete
1	63332	wp_editor_settings filter hook not working as expected in WordPress Admin		Comments	6.8	normal	normal	Awaiting Review	defect (bug)	new		2025-04-22T10:55:10Z	2026-11-06T16:54:16Z	"I am using classic editor in my local WordPress installation. 

I enabled comments form in single post admin screen.

I need to show the tinymce editor inside comment form by default, so for this I used wp_editor_settings filter hook mentioned here -> https://developer.wordpress.org/reference/hooks/wp_editor_settings/.

I use the following code for enabling classic editor and showing tinymce by default in comments form:

add_filter( 'use_block_editor_for_post', '__return_false' );
add_filter( 'use_widgets_block_editor', '__return_false' );
add_action( 'wp_enqueue_scripts', function() {
    wp_dequeue_style( 'wp-block-library' );
    wp_dequeue_style( 'wp-block-library-theme' );
    wp_dequeue_style( 'global-styles' );
    wp_dequeue_style( 'classic-theme-styles' );
}, 20 );


add_filter( 'wp_editor_settings', 'modify_call_comment_box', 10, 2 );
function modify_call_comment_box( $settings, $editor_id ) {
	$settings = array(
		'default_editor' => 'tinymce',
	);
	return $settings;
}


Issue:

When I create or edit the post and hit the Add comment button, tinymce editor in comments form is showing but I am not able to add any content inside the editor. Moreover, I can see a javascript error in the console also which shows some error in wp-includes/js/tinymce/wp-tinymce.js file.

There are no plugins installed and twenty-twenty-four theme is installed in my wordpress installation."	jaspinder91
1	48480	Add comment_form_opening_tag and comment_form_closing_tag filters		Comments		normal	normal	Awaiting Review	enhancement	new		2019-11-01T12:12:17Z	2019-12-03T15:38:11Z	"I'd like to be able to customize the `div#respond.comment-respond` wrapper around the comment form and replace it with a suitable HTML5 element, but it seems to be one of the few things one _can't_ change within the form.

Therefore I'd like to suggest two filters added to `comment-template.php:2451`:

`apply_filters( 'comment_form_opening_tag', '<div id=""respond"" class=""comment-respond"">' );`

And `comment-template.php:2643`:

`apply_filters( 'comment_form_closing_tag', '</div>' );`"	powerbuoy
1	47447	Allow client-side storing of comment meta		Comments		normal	normal	Awaiting Review	enhancement	new		2019-05-31T15:46:52Z	2019-05-31T15:46:52Z	"As a modern counterpart to #12431, I think it'd be nice if plugins could add comment meta from the client side as well.

An example use case would be [https://github.com/iandunn/compassionate-comments a plugin that identifies toxic comments, and then encourages the author to rephrase it to be more kind before it gets submitted].

It's currently possible by adding a `preprocess_comment` callback that examines `$_POST`, verifies and sanitizes the data, and then adds it to `$commentdata` before that gets passed to `wp_insert_comment()`. It could be much easier and standardized, though.

Ideally, I think a client-side script should be able to just append a hidden input field named `comment_meta[]` to the `.form-submit` element, and have it be automatically added via `wp_insert_comment()`, rather than being ignored by `wp_handle_comment_submission()`.

Since it's coming from the client side, the data can't be trusted. We need to verify that it was added by the enqueued script, and then sanitize it. Maybe there could be something similar to `register_post_meta()` with a `allow_in_form` boolean param, and a `sanitize_callback` param."	iandunn
1	30979	Check for context menu before closing commentReply	SergeyBiryukov*	Comments		normal	normal	Future Release	enhancement	accepted	has-patch	2015-01-11T14:40:41Z	2021-08-27T13:34:20Z	"Login to WP-Admin, go to the comments section and ""Quick edit"" or ""Reply"" to a comment.

Bring up the context menu either with a right-click or the menu key, press ESC and the context menu and the comment box will close.

[[Image(https://i.imgur.com/xnhrZDr.png)]]

I understand that this is the expected behaviour but this can be frustrating at times.

If you bring up the context menu while typing a long reply but decide not to autocorrect and press ESC to close the context menu everything you've typed so far is gone :(

The ""Compose email"" section of both Gmail and Outlook.com close themselves when ESC is pressed but don't if the context menu is open. So I thought WordPress should also have the same behaviour.

The patch checks for a right click or menu key press before doing `commentReply.revert()`."	jesin
1	39028	Comments on private posts or specific edge cases can get a confusting white screen error.		Comments	4.4	normal	normal	Awaiting Review	enhancement	new		2016-12-02T14:29:01Z	2017-08-03T14:00:53Z	"I have a plugin that uses the private status for a custom post type used in private BuddyPress groups.

When a group member tries to comment on one of the post type he's getting a white screen. I've fixed the issue on my side, problem was about caps mapping.

But still, i was pretty confused by this behavior. At first i thought it was a fatal error, but xdebug returned nothing, so i've looked in my error.log again nothing ??

Then i've found some returned WP_Error was missing data like the 403 status in `wp_handle_comment_submission()`. As this function was introduced in 4.4, i guess it first appeared in 4.4.

I think it could be interesting to have a screen looking like this in this kind of cases :

[[Image(https://cldup.com/ymyxLMacts.png)]]

I suggest the attached patch."	imath
1	66260	Comments: Hide zero-count status filters on the Comments list table		Comments		normal	normal	7.3	enhancement	new	dev-feedback	2026-10-06T19:27:35Z	2026-10-28T07:57:47Z	"The Posts list table (`WP_Posts_List_Table::get_views()`) hides any status
filter link — other than ""All"" — whose post count is zero:

{{{
if ( ! in_array( $status_name, $avail_post_stati, true ) || empty( $num_posts->$status_name ) ) {
	continue;
}
}}}

`WP_Comments_List_Table::get_views()` has no equivalent check. As a result,
""Pending"", ""Approved"", ""Spam"", ""Trash"", and ""Mine"" are always rendered as
filter links above the Comments list table, even when their count is `(0)`.

On a typical site with few or no pending/spam/trashed comments, this clutters
the screen with filter links that lead to an empty list, rather than only
showing filters that are actually useful.

Steps to reproduce:

1. Go to a site where every comment is approved (no pending, spam, or
   trashed comments).
2. Go to Comments in wp-admin.
3. Observe the filter row above the list: ""All | Mine | Pending (0) |
   Approved (12) | Spam (0) | Trash (0)"".

Expected behavior: filters with a zero count, other than ""All"", should not
be shown — consistent with how the Posts list table already behaves for
post statuses."	abditsori
1	63995	Comments: show top commentors		Comments		normal	normal	Awaiting Review	enhancement	new		2025-09-17T17:43:16Z	2025-09-17T18:39:03Z	"This first came up from Matt in the core committers channel: https://wordpress.slack.com/archives/C18723MQ8/p1757999549392979

The idea is to run a query that allows someone moderating comments to then view top commentors more readily over doing manual searches. "	annezazu
1	22579	Confusion of  WP admin Discussion settings		Comments		normal	normal	Future Release	enhancement	new		2012-11-24T20:46:05Z	2019-11-05T13:26:24Z	"On the ""Settings>Discussion"" page:

1) ""'''Default article settings'''"" should be replaced by ""'''Default comment settings'''"" (because these important settings do not only apply to posts (''articles'')), but also to pages!

2) ""'''Allow people to post comments on new articles'''"" should be replaced by:

--> ""'''Allow people to post comments'''"" (best option in my opinion)

or

--> ""Allow people to post comments on new pages and posts""

Sorry if this is not the right place to make such suggestions."	Lorangeo
1	41110	"Display full content of ""Pending"" comment on WP Dashboard"		Comments	4.8	normal	normal	Awaiting Review	enhancement	new	has-patch	2017-06-21T05:42:37Z	2017-06-21T06:23:25Z	"""Recent Comments"" widget in WP dashboard displays a list of Pending and recent comments. 
A ""Pending"" comment has all the action items - approve, reply, edit, trash, spam. But, these items are of no use, because the complete comment text is not visible. 



It will be good to display the full content of the ""Pending"" comments. 

OR 

Add a toggle to display the full content without having to go to ""Comments"" page. "	puneetsahalot
1	65313	Extend `WP_Comment_Query` 'fields' parameter to support individual column names		Comments		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-22T04:45:37Z	2026-05-22T19:35:36Z	"== Background ==

`WP_Comment_Query` currently accepts only two values for `fields`:

* `''` (default) — full `WP_Comment` objects.
* `'ids'` — comment IDs only.

This is asymmetric with `WP_User_Query`, which accepts any valid user column as `fields` (e.g. `fields => 'user_email'`, or an array of column names), returning a flat or shaped result without hydrating `WP_User` objects.

A common pattern in plugins that build ""discussion-style"" features on top of comments is to ask //""give me the distinct `comment_post_ID`s where comments match X""// — for example, listing posts the current user has commented on, or listing
posts with comments tagged with a particular meta value. Today there are three options, none good:

1. Use `fields => ''` and `array_column( $query->comments, 'comment_post_ID' )` — hydrates every comment object only to throw all but one field away.
2. Use `fields => 'ids'` and then `get_comment( $id )->comment_post_ID` in a loop — N+1 cache lookups, still O(comments).
3. Drop to raw SQL — works, but bypasses `WP_Comment_Query`'s filters, caching, and meta-query machinery.

== Real-world example ==

The `gp-translation-helpers` plugin (translate.wordpress.org) was hydrating ~32K `WP_Comment` objects per page load for a heavy validator just to extract the distinct post IDs:

{{{
#!php
<?php
$query = new WP_Comment_Query( array(
    'meta_key'   => 'locale',
    'meta_value' => $locale_slug,
    'user_id'    => $user_id,
) );
$post_ids = array_unique( array_column( $query->comments, 'comment_post_ID' ) );
}}}

That call took ~6.6 s on the live database. The equivalent direct SQL returned the same 25,694 distinct post IDs in ~610 ms (an ~11× speedup), purely because it stopped hydrating comments. The plugin had to fall back to raw SQL
([https://github.com/GlotPress/gp-translation-helpers/pull/236 PR #236]) for this reason.

== Proposal ==

Allow `fields` to accept any valid column name from the `$wpdb->comments` table, matching the `WP_User_Query` behaviour. At minimum, `'comment_post_ID'`, `'user_id'`, and `'comment_parent'` are high-value projections.

Suggested API:

{{{
#!php
<?php
// Returns array of post IDs.
$post_ids = ( new WP_Comment_Query() )->query( array(
    'meta_key'   => 'locale',
    'meta_value' => 'nl',
    'user_id'    => 42,
    'fields'     => 'comment_post_ID',
) );

// Optional: support array of column names, returning stdClass per row.
$rows = ( new WP_Comment_Query() )->query( array(
    'fields' => array( 'comment_ID', 'comment_post_ID', 'comment_date' ),
) );
}}}

== Backwards compatibility ==

`'ids'` and `''` (default) keep their current meaning; new column-name values are purely additive.

== Related ==

* #28434 — original ticket that added the `fields` parameter (closed/fixed, 2014).



''This ticket was drafted with AI, and reviewed before submit''"	dd32
1	41731	Make it Easier to Locate Restored Comments	SergeyBiryukov	Comments	4.8.1	normal	normal	Future Release	enhancement	assigned		2017-08-25T19:30:34Z	2019-06-21T17:56:20Z	"When a comment is in the trash, WordPress does not allow you to edit its details without restoring it first. After restoring the comment, it disappears from the Trash and the user is then required to locate it either by memorizing the post it's on or searching for it in the backend. It doesn't show up on the approved comments page because of its original published date.

I suggest that if a single comment is restored, it takes users to the post it's on. Even better would be taking the user straight to where the comment is in the Discussions meta box. However, since users can hide this meta box via the screen options, I'm unsure how to account for that. 

Perhaps redirecting users to the post where the comment is displayed is enough?"	jeffr0
1	66276	Notes: Add a filter for the emoji a note can be reacted with	adamsilverstein	Comments		normal	normal	7.3	enhancement	assigned	has-patch	2026-10-09T08:42:17Z	2026-11-11T06:26:03Z	"Follow up to https://github.com/WordPress/wordpress-develop/pull/10930 - emoji reactions on Notes ship with a fixed set of five emoji. This adds a way for sites to change that set.

''Claude wrote the rest of this ticket; I checked it against the code:''

> Reactions accept a fixed set of five emoji (heart, celebration, smile, eyes, rocket). Right now the list is hardcoded in a private `WP_REST_Comments_Controller::get_note_reaction_keys()` method, so a site can't add an emoji its team uses, remove one that doesn't fit, or turn reactions off.
>
> The proposed change:
>
>  * Add a `wp_note_reaction_emojis` filter. Each entry has a `hexKey` (the emoji's code points in hex, eg. `1f984` for the unicorn) and a translatable `label`. Returning an empty array turns off adding reactions. Existing reactions still show and their authors can still remove them.
>  * Add `wp_get_note_reaction_emojis()` and `wp_get_note_reaction_keys()`, plus `wp_normalize_note_reaction_key()`, which normalizes filtered keys the same way reactions are stored: lowercase, padded to four digits, U+FE0F dropped. Malformed keys, surrogates, values past U+10FFFF, empty labels and duplicate keys are dropped.
>  * The REST API validates reactions against the filtered list instead of the hardcoded one.
>  * The list is passed to the editor as the `noteReactionEmojis` block editor setting, so the reaction menu offers exactly the emoji the server accepts.
>
> Example:
>
> {{{#!php
> <?php
> add_filter( 'wp_note_reaction_emojis', function ( $emojis ) {
> 	$emojis[] = array(
> 		'hexKey' => '1f984',
> 		'label'  => __( 'unicorn', 'my-plugin' ),
> 	);
> 	return $emojis;
> } );
> }}}
>
> The filter docs note that the editor renders emoji as text, so newer emoji and flags may not display on every system. Choosing emoji that work for a site's users is left to the site for now.
>
> Gutenberg PR: https://github.com/WordPress/gutenberg/pull/84200
>
> The patch is stacked on the backport (https://github.com/WordPress/wordpress-develop/pull/10930) and needs that to land first.
"	adamsilverstein
1	60238	Remove comments completely option		Comments	6.4.2	normal	normal	Awaiting Review	enhancement	new		2024-01-12T08:43:00Z	2024-01-12T08:43:00Z	"Hi,

On my site [https://www.casivo.se casivo.se] and other sites in our network I've noticed that even if comments is turned off, it keeps sneaking in random comments for approval and I can't seem to figure out why, I don't have a comment field anywhere on the site in the code. Is it through some wierd place I'm overlooking? It's on posts but I don't have any comment-code inside the single.php

Would be nice if we can just have a option to ""disable comments""

Best regards"	linus89
1	40073	"WP_Comment_Query should support a comment type of ""comment"""		Comments	4.8	normal	normal	Future Release	enhancement	new		2017-03-08T20:44:29Z	2017-03-13T16:18:07Z	"Scenario: User is leveraging the `comment_type` field in their theme or a plugin, and desires all comments to have a type. They assign ""regular"" comments a `comment_type` of ""comment"" as that seems to make sense. 

If they then ask for those comments using `get_comments` or another function which leverages `WP_Comment_Query`:

{{{
$comments = get_comments( [
    'type' => 'comment',
] );
}}}

The returned list will not return any comments which have `comment_type` set to ""comment"", only those with no type at all. 

As this behavior (the swallowing of ""comment"" as a type entirely, rather than looking for `['','comment']`) is undocumented, perhaps `WP_Comment_Query` could be altered as such:

{{{
715   case 'comment':
716   case 'comments':
717     $comment_types[ $operator ][] = ""''"";
___     $comment_types[ $operator ][] = ""'comment'"";
___     $comment_types[ $operator ][] = ""'comments'"";
718     break;
719	
720   case 'pings':
721     $comment_types[ $operator ][] = ""'pingback'"";
722     $comment_types[ $operator ][] = ""'trackback'"";
___     $comment_types[ $operator ][] = ""'pings'"";
723	break;
}}}

A sounder approach would probably be to allow a flag to be passed:

{{{
708   foreach ( $_raw_types as $type ) {
___      if ( empty( $this->query_vars['ignore_default_types'] ) ) {
709         switch ( $type ) {
...
729         }
___      } else {
___         $comment_types[ $operator ][] = $wpdb->prepare( '%s', $type );
___      }
...
735   }
}}}

An alternative might be to throw an exception when setting `comment_type` to one of the default values using `wp_new_comment`, `wp_insert_comment` and similar functions. 

(I feel since there is no way to retrieve a comment when the type is one of these ""reserved"" words with standard WP functions, comments should probably not be able to be saved with a ""reserved"" type using standard functions if `WP_Comment_Query` is not altered.)

At the very least, the documentation for comment ""insert"" functions should mention that there are reserved keywords on `comment_type`, note what they are, and that if you use one of them you will need to use the `comments_clauses` filter to allow them to be retrieved."	rogerlos
1	50538	WP_Comments_List_Table should not show views that have a count of 0	pbiron	Comments		normal	normal	Awaiting Review	enhancement	assigned	dev-feedback	2020-07-02T17:14:28Z	2021-03-12T11:00:37Z	"Other core list tables that have a get_views() method do not output a view if the count for that view is 0, e.g., `WP_Posts_List_Table` doesn't output ""Pending (0)"" if there are no posts with $post_status === 'pending').
However, `WP_Comments_List_Table` does output ""Pending (0)"" if there are no pending comments.

For consistency's sake, I think `WP_Comments_List_Table` should skip views with count of 0.

Related: #47495"	pbiron
1	41339	WP_Comments_Query::__construct() should allow a 'status__not_in' parameter		Comments	4.9	normal	normal	Future Release	enhancement	new	has-patch	2017-07-15T19:47:02Z	2026-10-13T18:06:29Z	"`WP_Comments_Query::__construct()` (and hence, `get_comments()`) currently allows a `status` parameter to get comments with a specific status.

It would be useful to also allow `$status__not_in` to exclude comments with specific stati.

Related: #41338"	pbiron
1	47306	comment reply event listener:  need ability to run custom js function		Comments	5.1	normal	normal	Future Release	enhancement	reopened		2019-05-17T16:24:11Z	2019-06-20T16:32:16Z	"I wrote the comment-tweaks plugin, which adds the tinymce editor to the comments field.  When threaded comments are enabled, clicking on a Reply link moves #comment within the dom, and that breaks tinymce - I need to be able to run a bit of js when a Reply link is clicked to remove the editor, then move the element, then add the editor back.

Prior to 5.1, the comment reply link had an onclick attribute calling moveForm(), and I simply overwrote the single onclick handler with a custom one.  This is/was a bit of a hack, but worked fine (as long as no other plugin was hoping to also take over onclick).

Recent changes (#46260) to comment replying changed how event listeners are handled for the comment Reply and Cancel reply buttons, which now uses a MutationObserver to (re)add click/touchstart listeners every time the document body changes.  I can no longer overwrite the onclick handler, as it will be re-added in subsequent document changes.

I could probably add my own MutationObserver, handle the race of which fires first, and continue to overwrite the core click/touchstart event handlers, but this is just another hack and I would rather fix it correctly, where other plugins could utilize event handlers on those links as well.

Note that I need more than just the ability to add my own event listeners, as they fire in the order they were added, and I need to remove the editor prior to moving #comment (addComment.clickEvent() firing), and add it again afterwards.

A javascript ""action hook"" that fires in clickEvent() ahead of moveForm() and another which fires afterwards may be a viable solution.  (And another pair of ""action hooks"" in cancelEvent().)  Probably could make the entire click/cancel event handlers just call the action hook and add the current clickEvent/cancelEvent code in functions called via those same hooks, so they could be overridden if needed?  (I don't need to overwrite them myself if I can order a call before and after them, but perhaps other plugins would.)"	jnorell
1	58156	finetune wp_update_comment_count		Comments		normal	normal	Awaiting Review	enhancement	new	has-patch	2023-04-19T05:42:00Z	2023-07-08T22:20:01Z	"there is a @todo in {{{function wp_update_comment_count}}} and I see no reason for not changing the code, which would make it a bit more effective.


current:
{{{#!php
if ( $do_deferred ) {
	$_deferred = array_unique( $_deferred );
	foreach ( $_deferred as $i => $_post_id ) {
		wp_update_comment_count_now( $_post_id );
		unset( $_deferred[ $i ] );
		/** @todo Move this outside of the foreach and reset $_deferred to an array instead */
	}
}
}}}

new:
{{{#!php
if ( $do_deferred ) {
	$_deferred = array_unique( $_deferred );
	foreach ( $_deferred as $i => $_post_id ) {
		wp_update_comment_count_now( $_post_id );
	}
	$_deferred = array(); // for clarity, it is not even needed
}
}}}"	Presskopp
1	53215	get_comments_number should also need comment_type		Comments		normal	normal	Awaiting Review	enhancement	new		2021-05-16T03:12:29Z	2021-05-16T10:56:30Z	Currently, I can use comments_template for custom comment types. For easier manageability, developers don't need to make their own function to get a custom comment count. Its a lot easier if WP have additional 'comment_type' parameter for its get_comments_number() function	erikdemarco
1	35650	title_reply_to should work when javascript is enabled		Comments		normal	normal	Future Release	enhancement	new		2016-01-28T21:51:05Z	2019-06-21T01:16:40Z	"`title_reply_to` is a parameter in the `comment_form` function, and has even been around since 2.7 in the `comment_form_title` function, allowing you to display a different heading when replying to a comment, including who you are replying to. While a cancel comment reply link does appear, having a different heading is a very useful concept for making it clear to users exactly what they are doing.

Except, nobody ever sees it because it only applies when javascript is disabled. Everybody* has javascript enabled.

The javascript for replying to comments should be updated to change the heading based on this parameter.

"	smerriman
1	64506	wp_dashboard_recent_comments executes an unnecessary SQL query		Comments	6.9	normal	normal	Awaiting Review	enhancement	reopened	has-patch	2026-01-15T08:33:00Z	2026-10-27T13:49:22Z	"The function fetches comments from the DB in a loop that breaks when the target number of comments is reached, or the query returns no results.

If the very first query returns, e.g., just a single comment, this logic causes an unnecessary DB query.

While it's not an issue for smaller instances, for WooCommerce stores with many orders/products, even a few comments, avoiding unnecessary DB queries (expensive in the mentioned setups) improves dashboard performance.

To reproduce, you'll need a testing site with fewer than 25 comments (e.g., just one) and the Query Monitor plugin (to explore DB queries): log in to the admin area, and after you get automatically redirected to the dashboard, note two queries fetching comments (with limit `0, 25`, `25, 50`).

I'll create a GitHub PR shortly - for reviews and better highlighting the technical side of the issue. "	kalessil
1	41760	wp_list_comments callback params		Comments		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-08-30T18:44:15Z	2017-08-31T09:05:53Z	"In `wp-includes/class-walker-comment.php`, methods `comment()` and `html5_comment()` have following order of @params: `$comment, $depth, $args`. 

However, when you try to modify comment markup using `callback` argument for `wp_list_comments()`, order of params is `$comment, $args, $depth`. 

Is it possible to make the same order of params?"	milana_cap
1	57732	Add a filter for comment template block		Comments	6.1.1	normal	normal	Awaiting Review	feature request	new		2023-02-16T10:01:03Z	2023-02-16T10:01:03Z	"It would be good to be able to filter the block content when rendering comments in the comment template block.

This would enable developers to inject content in / before / after specific comments.

Ideally something like this on line 68 of /wp-includes/blocks/comment-template.php ...

{{{#!php
<?php

/**
 * Filters each comment before being added to the comment template block
 *
 * @since 6.2.0
 *
 * @param string $block_content The content of the comment block.
 * @param object $comment The comment object.
 */
$block_content = apply_filters( 'comment_template_comment_block_content', $block_content, $comment );

}}}

Would this be possible?

Thank you,

Oliver"	domainsupport
1	63996	Comments: create a dedicated view that shows all comments from someone		Comments		normal	normal	Awaiting Review	feature request	new		2025-09-17T17:45:41Z	2025-09-17T18:36:47Z	"This first came up from Matt in the core committers channel: https://wordpress.slack.com/archives/C18723MQ8/p1757999549392979

The idea is that you can click on a commentor and be sent to a dedicated view where you can see all approved comments from them. This would make managing comments closer to discussion management where you can engage with and see the full scope of how someone interacts with your content. "	annezazu
1	63438	Admin: Standardize accordions UI on Menus screen and in Customizer		Customize	6.7	normal	minor	Awaiting Review	defect (bug)	new	has-patch	2025-05-13T07:35:24Z	2025-12-01T03:11:50Z	"There are padding inconsistencies within the ""Add menu items"" accordion sections on both the main Appearance > Menus screen and the Menus panel within the Customizer. This affects the lists of available items (like Pages, Posts) and the content of the ""Custom Links"" section.

Issues:

Available Item Lists (Pages, Posts, etc.):
- The `.available-menu-items-list` (inside #available-menu-items .accordion-section-content) has a padding-top of 1px, while its left, right, and bottom paddings are 15px.
- Effect: The first item in these lists appears too close to the top border of the accordion content area.
- Context: This 1px top padding is a legacy value. For instance, in customize-nav-menus.css, changeset [51727] refactored CSS shorthand for a similar rule (padding: 1px 15px 15px 15px; to padding: 1px 15px 15px;), carrying over the 1px top padding. This suggests the 1px wasn't an active design decision during that refactor but an existing value that was preserved.


Custom Links Section:
- The `.accordion-section-content` for `#new-custom-menu-item` has `0px` top padding.
- Effect: The ""URL"" input field and its label are flush against the top border of the accordion content area, creating a cramped appearance.

These inconsistencies lead to an unbalanced and slightly unpolished UI in these core features."	abcd95
1	25333	Can't remove theme support for certain custom header arguments		Customize	3.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2013-09-16T18:10:17Z	2017-02-14T18:44:16Z	"While working on a ticket I tried to `remove_theme_support` the `custom-header` feature and add it back with a different default image, which did not work. Removing theme support *does* remove the feature array from the features global, but adding anything back resurrects the old values ignoring the new ones for:

* header-text
* height and width
* default-text-color
* default-image

This seems to be happening because of the back-compat code that works with the older constants. It defines the constants if they were not defined, and uses the values next time `add_theme_support` is called, bringing back the values from the first call to `add_theme_support`.

The workaround would be to not use `remove_theme_support` and instead call `add_theme_support` with the needed values *before* the call you're trying to override, which was sort of intended for child themes, because they run earlier, so this issue is far from major, but still lame. Run this during theme setup to reproduce:

{{{
add_theme_support( 'custom-header', array( 'default-image' => '%s/foo.png', ) );
var_dump( get_theme_support( 'custom-header', 'default-image' ) ); // foo.png

remove_theme_support( 'custom-header' );
add_theme_support( 'custom-header', array( 'default-image' => '%s/bar.png', ) );
var_dump( get_theme_support( 'custom-header', 'default-image' ) ); // expected bar.png but got foo.png
}}}

Excuse my debugging skills ;)"	kovshenin
1	44820	CodeMirror in Customize - copy & paste bug		Customize	4.9	normal	minor	Future Release	defect (bug)	new	has-patch	2018-08-20T16:10:30Z	2025-06-27T14:42:59Z	"Wrong behavior in CodeMirror: 
I go to **Customize > Additional CSS** and copy one selector including the opening curly bracket ""{"". I paste the copied text at the end of the content of the CSS textarea and press enter to create a new line. The new line won't be created, instead Autocompletion of CodeMirror is executed and the CSS attribute **''align-content''** is added. 

Animated screen capture as GIF:
[https://hipp.design/media/code-mirror-copy-paste.gif]

It only happens, when the selector is pasted at the end (of the textarea) and if the CSS field was already filled out and the Customize have been saved before. "	dionysous
1	46128	"Custom header ""Hide image"" button not displayed when randomizing images via theme setup"		Customize	3.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2019-01-28T16:10:39Z	2026-08-18T08:40:33Z	"**DESCRIPTION**

When registering multiple [https://codex.wordpress.org/Custom_Headers custom header] images via theme code, and setting them to randomize (by enabling `random-default` custom header attribute), there is no ""**Hide image**"" button displayed. But the image should be displayed even in this case.

The only way to enable ""**Hide image**"" button is to set `default-image` attribute during custom header registration in the theme code. But this actually effectively disables images randomization...


----


**HOW TO TEST/REPRODUCE**

Append this code to Twenty Nineteen theme's `functions.php` file (without opening `<?php`) to test - see the code comments for more details:
{{{#!php
<?php

function test_custom_header_hide_button() {

	/**
	 * Registering custom header support.
	 *
	 * The issue description:
	 * ======================
	 * When 'default-image' is set, there is ""Hide image"" button
	 * displayed in ""Header Image"" section of customizer. But now
	 * the 'random-default' does not work.
	 * On the other side, if 'default-image' is not set, ""Hide image""
	 * button is not displayed in ""Header Image"" section of customizer
	 * when we have 'random-default' enabled.
	 * In both cases the ""Hide image"" button should be available.
	 *
	 * How to test:
	 * ============
	 * Simply (un)comment the 'default-image' to see the difference
	 * in ""Header Image"" section of customizer.
	 * But do not save/publish your customizer as we are testing
	 * how the theme code is treated in customizer!
	 */
	add_theme_support( 'custom-header', array(
		// 'default-image' => 'https://via.placeholder.com/1000x200/000099/ffffff?text=Image+default',
		'random-default' => true,

		// Irrelevant, but required options:
		'height' => 200,
		'width'  => 1000,
	) );

	// Registering some images to randomize from:
	register_default_headers( array(
		'image-1' => array(
			'url'           => 'https://via.placeholder.com/1000x200/990000/ffffff?text=Image+1',
			'thumbnail_url' => 'https://via.placeholder.com/250x50/990000/ffffff?text=Image+1',
			'description'   => 'Image 1',
		),
		'image-2' => array(
			'url'           => 'https://via.placeholder.com/1000x200/009900/ffffff?text=Image+2',
			'thumbnail_url' => 'https://via.placeholder.com/250x50/009900/ffffff?text=Image+2',
			'description'   => 'Image 2',
		),
	) );

}
add_action( 'after_setup_theme', 'test_custom_header_hide_button' );
// Display the custom header in theme footer for preview:
add_action( 'wp_footer', 'the_custom_header_markup' );
}}}


----


**SCREENSHOT**

[[Image(custom-header-setup-via-theme.png)]]"	webmandesign
1	63181	Customize Colors and Style Guide Mismatch		Customize	6.7.2	normal	normal	Awaiting Review	defect (bug)	new		2025-03-26T18:49:50Z	2025-03-27T09:12:16Z	"In Customize >> Global >> Colors

In the left administration panel at the top there are palette presents you can select, and directly underneath those are your current site's global color selections in a horizontal row of circles. Hover over each one and the color's use is displayed:

Brand, Alternate Brand, Headings, Text, Secondary Background, Primary Background, Subtle Background, Alternate Background, Other Supporting.

On the same page, at the very top left there is a paintbrush icon for the Style Guide. Click it and your overall site styles are displayed, however, in the Colors section, the colors and site elements don't match the above. The colors are in the correct order, but have different site elements.

The first four are okay but the remaining colors have different descriptors. It is unclear to me which is correct.

Style guide color descriptors:

Brand, Alt Brand, Headings, Text, Primary*, Secondary*, Border*, Subtle Background*, Extra*


"	goddin
1	48902	Customizer code editor CSS breaks on activate() (Or breaks when loaded later)		Customize	4.9	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-12-06T13:37:55Z	2026-01-31T14:28:23Z	"I've added css editor via {{{ WP_Customize_Code_Editor_Control() }}} which is hidden by default with provided active_callback. 

When activating control via JS in Customizer ex: {{{ wp.customize.control('my_custom_css').activate(); }}} it shows, but CodeMirror CSS is broken. "	vukvukovich
1	64231	Customizer fails to save when switching themes due to an orphaned setting left over from a previously active plugin	westonruter	Customize	6.8.3	normal	normal	Future Release	defect (bug)	reviewing	has-patch	2025-11-11T13:02:17Z	2026-10-26T13:20:29Z	"= Description =
When using the Customizer and switching themes with live preview, WordPress fails to save due to an unrecognized setting.
This happens when a plugin adds a custom setting to the Customizer, then gets deactivated before switching back to another theme.

⸻

= Environment =
	•	WordPress v6.8.3
	•	Active Theme: Twenty Twenty-One (v2.6)
	•	Other used theme Twenty Twenty (v2.9)
	•	Plugin: ""Adds a testing option in customizer"" (used to register “test_orphaned_setting”)

⸻

= Steps to Reproduce =
	1.	Activate the plugin that adds a testing option in the Customizer.
	2.	Go to Appearance > Customize.
	4.	Edit the setting under Site Identity > Test Orphaned Setting.
	5.	Without saving, switch to the Twenty Twenty theme using Live Preview, then click Activate & Publish.
	6.	Deactivate the plugin (“Adds a testing option in customizer”).
	7.	Go to Appearance > Customize again.
	8.	Switch the theme back to Twenty Twenty-One using Live Preview.
	9.	Click Activate & Publish.

⸻

= Plugin that adds a testing option =

{{{#!php
<?php

/**
 * Plugin Name: Adds a testing option in customizer
 */

add_action( 'customize_register', function ( $wp_customize ) {
	$wp_customize->add_setting( 'test_orphaned_setting', array(
		'default'    => '',
		'type'       => 'theme_mod',
		'capability' => 'edit_theme_options',
		'transport'  => 'refresh',
	) );

	$wp_customize->add_control( 'test_orphaned_setting', array(
		'label'   => 'Test Orphaned Setting',
		'section' => 'title_tagline',
		'type'    => 'text',
	) );
} );
}}}

⸻

= Observed Behavior =
A POST request is sent to /wp-admin/admin-ajax.php with the following parameters:

{{{
wp_customize	“on”
customize_theme	“twentytwentyone”
nonce	“d3c3bbbe0e”
customize_changeset_uuid	“b92bc4d4-8665-49df-80ec-52ba9d8ec526”
customize_autosaved	“on”
customized	‘{“old_sidebars_widgets_data”:{“wp_inactive_widgets”:[“block-11”,“block-12”,“block-13”,“block-14”],“sidebar-1”:[“block-2”,“block-3”,“block-4”,“block-5”,“block-6”,“block-7”,“block-8”,“block-9”,“block-10”]},“nav_menu_locations[primary]”:3}’
customize_changeset_status	“publish”
action	“customize_save”
customize_preview_nonce	“bbf9d73816”
}}}


The JSON response returns:

{{{
{
  ""success"": false,
  ""data"": {
    ""message"": ""Unable to save due to 1 invalid setting."",
    ""code"": ""transaction_fail"",
    ""setting_validities"": {
      ""test_orphaned_setting"": {
        ""unrecognized"": {
          ""message"": ""Setting does not exist or is unrecognized."",
          ""data"": null
        }
      },
      ""old_sidebars_widgets_data"": true,
      ""nav_menu_locations[primary]"": true
    }
  }
}
}}}

⸻

= Expected Behavior =
Customizer should skip unrecognized (orphaned) settings left over from inactive plugins and allow the theme to be saved successfully.

⸻

= Relevant Code =
File: [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/class-wp-customize-manager.php#L1772-L1776 src/wp-includes/class-wp-customize-manager.php]

== Original Code ==

{{{#!php
if ( isset( $stashed_theme_mods[ $stylesheet ] ) ) {
   $values = array_merge( $values, wp_list_pluck( $stashed_theme_mods[ $stylesheet ], 'value' ) );
}
}}}

== Proposed fix ==

{{{#!php
if ( isset( $stashed_theme_mods[ $stylesheet ] ) ) {
   $stashed_values = wp_list_pluck( $stashed_theme_mods[ $stylesheet ], 'value' );

   $valid_stashed_values = array_filter( $stashed_values, function ( $setting_id ) {
      return $this->get_setting( $setting_id );
   }, ARRAY_FILTER_USE_KEY );

   $values = array_merge( $values, $valid_stashed_values );
}
}}}

= Additional Notes =

This issue occurs because Customizer stashed theme mods may include references to settings that no longer exist after a plugin deactivation.
The fix ensures only recognized settings are restored, preventing “unrecognized setting” errors and allowing the theme activation to complete successfully."	alessandrolioce
1	46301	Customizer iframe warning		Customize	5.1	normal	minor	Awaiting Review	defect (bug)	new	reporter-feedback	2019-02-21T22:46:34Z	2025-01-30T08:48:02Z	"The preview in customizer (customize.php) causes a warning message in the browser console:

An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can remove its sandboxing. 
Content Security Policy: Ignoring ‘x-frame-options’ because of ‘frame-ancestors’ directive."	mensmaximus
1	43168	Customizer: Iris color picker handle above section title		Customize		normal	normal	Future Release	defect (bug)	new		2018-01-27T18:58:05Z	2019-12-16T00:49:42Z	"When Iris color picker is opened, the handle displays bevor the section title – if section is visible during scroll-up.

Section title styles:

{{{
#customize-controls .customize-info.is-in-view,
#customize-controls .customize-section-title.is-in-view {
    z-index: 9;
}
}}}

Handle styles:

{{{
.iris-picker .iris-square-handle {
    z-index: 10;
}
}}}"	crstnio
1	32667	Customizer: autofocus should load as soon as the panel/section/control is active		Customize	4.3	normal	normal	Future Release	defect (bug)	new		2015-06-17T06:06:18Z	2020-11-29T16:34:19Z	Currently, autofocusing waits until the preview loads fully, which can take quite a while on a lot of pages and themes. Widgets need to wait for this to determine whether they should be activated, but for most other sections, we should be able to autofocus as soon as the Customizer controls finish loading. For menus, this would shave seconds off of the percieved loading time of the Customizer. See https://make.wordpress.org/flow/2015/06/14/menus-in-the-admin-and-the-customizer-ux-flow-performance-comparisons/.	celloexpressions
1	43585	Dynamically created setting not received on previewer		Customize		normal	normal	Future Release	defect (bug)	new	reporter-feedback	2018-03-20T14:38:12Z	2019-12-15T04:40:24Z	"I try to create dynamic setting & control on customizer, but setting is not propagated on previewer when setting created. Setting that dynamically created will only available on previewer when previewer refreshed.

i create a simple plugin to explain this issue : https://gist.github.com/jegbagus/e6bfe04fe45f4fa91b1fdc1c3b5b7a89

please take a look at browser console to see the message"	jegbagus
1	52208	Favicon - Error when choosing / cropping an image		Customize	5.6	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-01-03T11:47:53Z	2022-05-05T07:33:08Z	"Hi,

Steps to reproduce (using either Firefox or Chrome, latest versions in both cases):
- WordPress 5.6 (Theme Twenty Fourteen 3.0)
- Go to change the favicon of your theme
- Select any image in the media library

Two issues happen from here:
- If your image is already 512x512px then nothing happens, you can not choose the image, you get stuck in the media library.
- If your image is not already a square one, you can crop it but when hitting ""crop"", an error shows up (and no issues appear in the debug console) => https://i.ibb.co/sgqhHsx/Word-Press-Favicon.jpg

I'm not sure if this issue is related to WordPress 5.6 or if it was already there before 5.6.
I'm also not sure if the theme might be related to this issue as I haven't tested other themes.

Thank you for your help.

BR,
Stephane."	stfa76
1	54184	HTML entities get decoded in Customizer text fields		Customize	5.8.1	normal	normal	Awaiting Review	defect (bug)	new		2021-09-26T00:19:10Z	2026-01-12T23:28:04Z	"= Part 1

1. Use `WP_Customize_Manager::add_setting()` and `WP_Customize_Manager::add_control()` to create a `text` setting/control with the default value `&copy;`;
2. Navigate to the newly added setting in the Customizer.

== Expected Result

The literal text `&copy;` is in the edit box (as specified for the default value).

== Actual Result

A copyright symbol (`©`) is in the edit box.

= Part 2

1. Enter the text `&amp;` in the above edit box (replacing what was there);
2. Publish (save) settings;
3. Reload the page and navigate to the setting once again.

== Expected Result

The literal text `&amp;` is in the edit box (as originally entered).

== Actual Result

Only a single ampersand symbol (`&`) is in the edit box.

= Note

Same results if the setting is given type `textarea`.

Whatever is entered into text controls, or provided for a default value, should be preserved as is.  The WordPress Customizer has no knowledge of how it is going to be used and should not make presumptions that it is going to be used in HTML output.
"	jqz
1	37586	Menu customizer: search results not properly filtered		Customize	4.3	normal	normal	Future Release	defect (bug)	new	has-patch	2016-08-05T16:36:50Z	2025-07-02T11:42:03Z	"{{{customize_nav_menu_available_item_types}}} is a filter located in {{{class-wp-customize-nav-menus.php}}}.

The purpouse of this filter is to restrict item types available in the Menu Customizer.

This filter should be applied even if I perform a research using the search field in Menu Customizer.
But this does not happens.

While in Menu Customizer, doing a research, in search results shows up even items of specific types excluded with {{{customize_nav_menu_available_item_types}}} filter.

We can resolve this issue using another filter always located in the same class: the {{{customize_nav_menu_searched_items}}} filter.
With this filter we can restrict the selections of items received from the search result just before sending them to the frontend (ajax response).

But this could be considered only a workaround and not a solution, because items should be filtered/excluded by type BEFORE wordpress performs the query to the database.

We should suppose that, if we uses the {{{customize_nav_menu_available_item_types}}} to filter item types available on Menu Customizer, most likely we do not want search for elements of theese item types. "	virgodesign
1	42533	New pages scheduled via Customizer viewable as admin, 404 as visitor		Customize	4.9	normal	normal	Future Release	defect (bug)	new		2017-11-13T15:12:36Z	2021-05-29T18:38:36Z	"'''I'm not 100% if this is a bug, but here's the issue I am seeing:'''

If I add a new page via the Customizer and schedule the changes for 5 minutes in the future:
* As an admin viewing the '''Share Preview Link''', I can view the new page.
* As a visitor viewing the '''Share Preview Link''', I get a 404 when trying to access the new page.


----


I posted a Google Doc with steps to reproduce and screenshots here:
https://docs.google.com/document/d/1tiTjWjlUnVGNDaUZjFWmyg1BFRz6nF7tCTO-jjaXXUs/edit?usp=sharing

'''If the document is unreachable, here are the steps from the doc:'''
1. Install a new WordPress site via Softaculous
1. Install WordPress Beta Tester plugin and upgrade to latest WordPress versions:
1. Access the Customizer
1. Menus > Top Menu > Add Items > ''Add New Page'' '''New Page 1''' > Add
1. Schedule the changes for the future, like 1 hour in the future.
1. Copy the Share Preview Link, you’ll need it in step 10.
1. Click the Share Preview Link
1. Click the link in the menu for '''New Page 1'''. You’re currently logged in as an admin, and you can see it.
1. Logout of WordPress.
1. As a visitor, access the '''Share Preview Link''' (the link you copied in step 6).
1. Click '''New Page 1''' in the menu. You’ll get a 404.

This 404 I believe is a bug. If I’ve been working on ''New Page 1'' and I want a client to preview my draft, I would expect them to be able to see it without logging in.
"	bwmarkle
1	47564	Protect against recursive customizer navigation menu data		Customize		normal	normal	Future Release	defect (bug)	new	has-patch	2019-06-19T19:54:58Z	2025-06-27T14:02:43Z	"Recursive data can slip into navigation menu structure but client-script currently has no protection against, resulting in browser freezing when trying to edit navigation menus.

Attached patch changes `getDepth()` to keep track of parent navigation menu item ID to avoid recursion."	donpark
1	40146	Starter content can be silently published with other themes		Customize	4.7	normal	normal	Future Release	defect (bug)	new		2017-03-13T18:07:33Z	2017-11-02T18:59:40Z	"To replicate on a fresh install, open the Customizer with Twenty Seventeen active, preview a different theme, then ""Save & Activate"" the new theme. All of the Twenty Seventeen starter content will be published along with the new theme.

The potentially confusing part of this behavior is that starter content might or might not have been in the preview, depending on the new theme. 

For example, in Twenty Eleven, some of the Twenty Seventeen starter widgets are visible in the preview, but the menu items aren't.

I'm not quite sure what the preferred behavior would be in this scenario, assuming it's not the current behavior. The attached patch would have `WP_Customize_Manager::unsanitized_post_values()` skip any changeset values flagged as starter content when the current theme doesn't support it, but that might not be desirable."	dlh
1	62681	The theme count in Customizer > Change > WordPress.org Themes displays incorrect results		Customize		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-12-12T07:43:10Z	2026-01-20T06:49:18Z	"When navigating to Customize > Change > WordPress.org Themes, selecting filters for theme search and then deselecting the filters immediately results in an incorrect theme count being displayed.

Steps to Reproduce:
1. Go to Appearance > Customize > Change > WordPress.org Themes.

2. Apply any filter to search for themes (e.g., Accessibility Ready, Block Editor Patterns, Block Editor Styles, etc).

3. Deselect the applied filters instantly.

4. Notice that the theme count displayed is incorrect.

[[Image(https://i.postimg.cc/J7vXVFzD/image.png)]]

Video:
https://utfs.io/f/TnWMEUzoUd855CZXZgBsSwYB9kjRr72FlZL3UcDuaPMOHhCG"	ankitkumarshah
1	51947	When Customizer `setup_theme` action fails during wp-settings.php, WordPress crashes due to missing global $wp_locale		Customize	4.6	normal	major	Future Release	defect (bug)	new	has-patch	2020-12-06T12:48:49Z	2026-08-18T08:20:52Z	"The `wp-settings.php` sets up the global `$wp_locale` (line 499 in WordPress 5.5.3) but before doing that it calls `do_action( 'setup_theme' );` (line 478).

The problem is that `WP_Customize_Manager::setup_theme()` has several failure actions that call the class's `wp_die()` ""wrapper"" which - depending on the value of the `messenger_channel` might try to call `wp_enqueue_scripts()`, which will eventually call `wp_localize_jquery_ui_datepicker()` that expects `$wp_locale` to be already set. The result is a crash.

Here is one such stack trace:

{{{
PHP Fatal error:  Uncaught Error: Call to a member function is_rtl() on null in /var/www/html/wp-includes/script-loader.php:1684
Stack trace:
#0 /var/www/html/wp-includes/class-wp-hook.php(287): wp_localize_jquery_ui_datepicker('')
#1 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#2 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /var/www/html/wp-includes/script-loader.php(2001): do_action('wp_enqueue_scri...')
#4 /var/www/html/wp-includes/class-wp-customize-manager.php(454): wp_enqueue_scripts()
#5 /var/www/html/wp-includes/class-wp-customize-manager.php(551): WP_Customize_Manager->wp_die(0, 'Non-existent ch...')
#6 /var/www/html/wp-includes/class-wp-hook.php(287): WP_Customize_Manager->setup_theme('')
#7 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#8 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#9 /var/www/html/wp-settings.php(478): do_action('setup_theme')
#10 /var/www/html/wp-config.php(97): req...
in /var/www/html/wp-includes/script-loader.php on line 1684, referer: https://somesite.com/
}}}

Moving the `do_action( 'setup_theme' );` line down a few lines until after the local has been setup, and just before loading the active theme's `function.php` file (which is arguably where it was supposed to be in the first place) solves the problem. "	Guss77
1	50730	_wpCustomizeSettings has invalid data for starter-content widgets		Customize		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2020-07-21T21:52:08Z	2020-11-05T19:41:21Z	"Copying from https://github.com/WordPress/gutenberg/issues/20827.

  When Gutenberg is installed, and a site is set to ""fresh"", error messages are shown in the customizer for widgets included in a theme's starter content. The site with the starter content can not be published until the widgets are edited. In my tests, changing the widget title or content removed the error.

  It does not seem to be theme dependent, I tested different themes that includes starter content. It's reproducible on 5.4.2.

**To reproduce**
Steps to reproduce the behavior:

1. Create a new WordPress site or reset an existing install
2. Activate Gutenberg
3. Activate a theme with starter content, for example Twenty Twenty or Twenty Seventeen.
4. Go to the Customizer.
5. Press Publish
6. See the error: Unable to save due to 2 invalid settings.

**Expected behavior**
I expect the starter content to be saved without errors.

**Additional info**
I investigated the forementioned GitHub issue and it seems that `_wpCustomizeSettings` has invalid widget data when customizer is used on a fresh site with starter content. By invalid, I mean it fails the check in [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-customize-manager.php#L2359 this line].  

I'll send a PR on GitHub."	alshakero
1	30969	adding theme support  for  'custom-header' or 'custom-background' results to duplicate admin menu items		Customize	4.1	normal	normal	Awaiting Review	defect (bug)	reopened	dev-feedback	2015-01-09T21:54:06Z	2021-05-22T19:51:04Z	"Wordpress 4.1 shows double 'Header' and 'Background' menu items in admin navigation menu on front-end when using
add_theme_support( 'custom-header', $args );
add_theme_support( 'custom-background', $args );

Here is a screenshot of Twentyfourteen theme. 

http://snag.gy/djDFm.jpg


This issue also exists in other themes I tested using the above hooks.
This issue is not seen in previous WordPress version using the Twentyfourteen theme. 


"	edville101
1	24844	get_theme_mods doesn't return the theme customizer preview's new values.		Customize	3.5.2	normal	normal	Future Release	defect (bug)	new		2013-07-26T13:41:52Z	2017-02-14T18:44:32Z	"Using the theme customizer API, you can call get_theme_mod($option) to return the value for a specific theme option.

In the case of the user interacting with the theme customizer, if they have changed an option, the theme customizer replaces the saved option with the previewed / new setting by hooking onto the {{{theme_mod_$name}}} filter applied in {{{get_theme_mod}}}.

However, should the user need or desire to retrieve all theme mods at once, the filter is not applied, and the new settings are never injected into the saved settings array.

There's a workaround to simply loop through the settings and manually apply the filter, but it would be better if {{{get_theme_mods}}} had an argument like {{{$use_filter}}} and could add the filter in the core functionality.

{{{get_theme_mods}}} is in [source:tags/3.5.2/wp-includes/theme.php#L746 wp-includes/theme.php] on line 746.
{{{get_theme_mod}}} is in [source:tags/3.5.2/wp-includes/theme.php#L776 wp-includes/theme.php] on line 776.
{{{theme_mod_$name}}} filter is applied in [source:tags/3.5.2/wp-includes/theme.php#L780 wp-includes/theme.php] on lines 780 and 785.
{{{ theme_mod_$name}}} filter is added in [source:tags/3.5.2/wp-includes/class-wp-customize-setting.php#L72 wp-includes/class-wp-customize-setting.php] on line 72."	nessworthy
1	39362	Checkbox control for 'Automatically add new top-level pages to this menu' not wrapped in checkbox customize control		Customize	4.7	normal	normal	Awaiting Review	enhancement	new	close	2016-12-21T11:48:34Z	2026-02-05T14:58:57Z	"When you go to set the menu in the customizer you have the option to check the Menu Options for Adding the top-level pages automatically to the current menu. This option isn't wrapped in the 
{{{
<li class=""customize-control customize-control-checkbox""></li>
}}}

This isn't a bug, but a hindrance if you want to customize the look of the customizer and would like to have all the checkboxes look the same.

One could say that all one needs to add is the style for
{{{
.input[type=""checkbox""]
}}}

but this is not true if you have a custom control that has a checkbox input, and you want to style it differently. In that case you'd need to overwrite additionally. Plus the current style is styled via {{{.customize-control-checkbox input[type=""checkbox""]}}} as well as with just {{{input[type=""checkbox""]}}}."	dingo_d
1	42115	"Customize Menus: Add ""Your theme already has a basic menu"" view"	bpayton	Customize	4.9	normal	normal	Future Release	enhancement	assigned		2017-10-05T19:33:34Z	2021-05-29T18:22:01Z	"When your theme creates a menu by default, we should display the following text:

> Your theme already has a basic menu, to help readers find all your pages. If you’d like to choose what appears instead, create a new menu to replace the default. 
>
> Click the button to start.
>
> [ Replace default menu ]

See screenshot."	melchoyce
1	38957	Customize Menus: Menu locations should be able to opt-out of menu item types that can be added to associated menus		Customize	4.3	normal	normal	Future Release	enhancement	new		2016-11-26T22:24:31Z	2026-08-05T09:17:00Z	"Certain menu locations are often designed to use a particular type of menu item - for example, social menus only make sense with custom links, or a custom nav menu walker may be used to display a deeper index of posts within taxonomy terms featured in a menu location.

If themes could specify what types of content a particular menu location is intended to contain, the menus UI could correspondingly show/hide or prioritize the types of menu items in the available menu items panel. This should be handled with the `object` and `object_type` menu item parameters.

As with #38956, this is difficult due to the current way the menu locations API works, and the fact that menus can be added to multiple locations. This should be considered a usability enhancement that is more conservative in hiding available menu items for items in multiple locations, and that adapts as menu locations are changed."	celloexpressions
1	38956	Customize Menus: menus assigned to locations with limited depths should not allow deeper depths		Customize	4.3	normal	normal	Future Release	enhancement	new		2016-11-26T22:16:54Z	2019-04-03T03:59:02Z	"`wp_nav_menu()` allows themes to control how many levels of depth will be displayed in the menu hierarchy. However, the menus UI doesn't reflect this or explain why submenu items may not always be visible. There are often valid situations where menus can only accept one level of hierarchy (such as social menus), and the API allows this on the theme side but doesn't address the usability side of the issue.

This may be tricky because depth is defined here a menu is displayed, not where a location is registered. Menus can also be assigned to multiple locations. A better API for menu locations may facilitate this improvement."	celloexpressions
1	33469	Customizer Menus: Restore active menu to a location after selecting and unsetting another menu		Customize	4.3	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2015-08-20T18:40:47Z	2021-05-23T17:52:53Z	"When a location is specified for a menu and another menu is assigned to that location in the Customizer, the first menu is removed even if the new settings aren't saved.

1. Assign a menu to a location in the customizer. Click ""Save & Publish"".
1. Assign a different menu to that location, but do not save.
1. Uncheck the location from the second menu.

Expected: The previously selected menu for that location should be restored.
Actual: The location now has no menu assigned to it."	morganestes
1	39599	Customizer: when no title on page it adds weird content in navigation link		Customize		normal	normal	Awaiting Review	enhancement	new	has-patch	2017-01-16T12:40:14Z	2017-07-26T01:46:39Z	"I understand that that there may need to be a title, however if you have a page and remove the title you then get the following:

[[Image(https://cldup.com/sc4tmiokFB.png)]]

The output being `#20 (no title)` does make sense but couldn't we increase the usability here and just have it say 'no title'? Do we have to have `#20`?"	karmatosed
1	50290	Edit Post and Edit Page is not showing in Admin Bar, When I open any Post or Page in new tab while in Customize		Customize		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2020-05-31T16:49:51Z	2025-07-16T11:48:30Z	"In Customize, When I try to open any post or any page with the 	'''open link in new tab	''' or '''open lin in new window''', Edit Post or Edit Page is not showing in Admin Bar. But when I try to open any Category or Tag with the open link in a new tab or new window, it showing Edit Category and Edit Tag in Admin Bar. 

I have attached a gif file and screenshots for a better understanding."	dhruvpandya
1	42331	Improve setting up header images in Customizer		Customize	3.9	normal	normal	Future Release	enhancement	new		2017-10-25T11:47:08Z	2018-01-15T19:05:10Z	"I think the process of setting up header images in Customizer can be more streamlined.

When only 1 image is there (uploaded or suggested), why do we offer the 'randomize' option? If you click the button, it gets the 'selected' class, the preview greys out, but nothing has been changed (how could it having only 1 image) - 

1) Shouldn't this button rather be only there if we have more then 1 image?

2) Small glich

Scenario:
Current header image is not set
We have 1 uploaded image 
Set it to 'Randomizing uploaded headers'
then delete the image (clicking 'X')
Publish
It's still set to 'randomize headers' instead of 'no image selected'

I think it should switch to 'No image set' in the moment the image is deleted

There was a lot of activity in #21785 I'm unable to sum this all up"	Presskopp
1	47990	Opening/Closing the 'Add Items' slideout in the Customizer Menu editor loses the check icon		Customize	4.3	normal	normal	Future Release	enhancement	new		2019-09-06T08:09:50Z	2021-06-01T00:47:14Z	"Hello,

While testing [https://core.trac.wordpress.org/ticket/46830 46830] I came across a separate issue I'll open here. The checkbox to indicate an item (page/post) is in the menu gets reverted to the + add icon if you click 'All Items' button to open and close the select menu item drawer. 

It would be nice if the checkbox icon was persistent to continue to indicate to the user what items are selected in the menu.

Thank you
"	garrett-eclipse
1	43464	Search Options in Customizer		Customize		normal	normal	Future Release	enhancement	new		2018-03-04T07:05:30Z	2021-05-30T17:34:24Z	"If a theme has more than few settings, finding the setting gets frustrating at times. A search functionality in the customizer will be helpful.

Here is a plugin that we have developed as a POC:
https://wordpress.org/plugins/customizer-search/

But I believe, it will benefit if it is added in the core.
"	brainstormforce
1	53807	Add function or filter to send all customizer setting default values to the database upon theme installation		Customize		normal	normal	Future Release	feature request	new	dev-feedback	2021-07-27T23:41:15Z	2021-08-02T13:18:23Z	"I am learning theme development and developing my first WordPress theme from scratch.

My new theme contains ''many'' customizer settings, most of which include default values.

I discovered recently that upon theme installation, these customizer default values only appear in the customizer view, but are not entered into the database and are not shown on the front end.

To insert the customizer default values into the database so that they display on the front end upon theme installation, I believe (?) each theme mod must be manually entered into the database by using set_theme_mod().

This requires duplication of every default value twice within the theme code, and the addition of many lines of code for themes that create many new customizer settings.

I recommend creating a function or filter that theme developers can activate within functions.php to send all default customizer values to the database upon theme installation.

This will avoid having to duplicate default values in both add_setting() and set_theme_mod() and reduce lines of code in themes."	curtiskessler
1	43664	$wpdb->get_results fails in specific cases with non-latin charaters in where clause		Database	4.9.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-03-30T08:37:47Z	2026-09-02T16:44:16Z	"Let's say we have user with display name 'Алексей';

{{{$wpdb->get_results(""SELECT user_login FROM $wpdb->users where `display_name`='Алексей' "", ARRAY_A);}}}

executes normally


{{{$wpdb->get_results(""SELECT user_login AS 'russian person' FROM $wpdb->users where `display_name`='Алексей' "", ARRAY_A);}}}

executes normally as well

but

{{{$wpdb->get_results(""SELECT user_login AS 'person from Russia' FROM $wpdb->users where `display_name`='Алексей' "", ARRAY_A);}}}

returns empty array and results in error:
[table <table_prefix> Russia.doesn't exist]
SHOW FULL COLUMNS FROM `Russia`

That means 'from' in 'person from Russia' somehow gets in sql

It's an obscure enough situation, but might signify that something is wrong with wpdb query handling"	altert
1	54801	Avoid WPDB errors when examining installation state of a site/network		Database	3.0	normal	normal	Future Release	defect (bug)	new	has-patch	2022-01-12T15:15:04Z	2022-09-27T19:12:20Z	"When trying to discover whether a given site is already installed properly or still needs to have its installation routine triggered, the queries that are executed by default generate a two WPDB errors on empty sites that cannot easily be avoided:
- Enumeration of site IDs triggers an error for the missing `wp_blogs` table;
- Setting of the site name property triggers an error for the missing `wp_sitemeta` table.

[[Image(https://p141.p3.n0.cdn.getcloudapp.com/items/xQuzDx5J/af6ecbf1-e74a-4237-82d6-47cb0b18fd26.jpeg?v=d5c251cf4ad17f9c808bdf8394034636)]]

This is an operation that is commonly done via WP-CLI, and while the errors do not change the outcome (i.e. the check will fail either way), they do fill up the logs unnecessarily for an operation that should be safe to do.

~~I'd suggest doing a quick check on these fundamental operations to see if the tables are present before manipulating them.~~

~~**Performance considerations**~~

~~The suggested fix (see PR that will follow) adds two DB requests which, even though they should be very cheap, should be properly cached to ensure no important negative performance impact.~~

~~The alternative would be to change the logic in WPDB so that it can be silenced for operations that are known to be failing in an expected manner. However, that seems like a major change throughout multiple parts of the code.~~

~~I'm happy to discuss alternative ways of fixing this, as I'm not too happy with introducing two DB requests like that.~~

I suggest using `$wpdb->suppress_errors()` around the two problematic calls to avoid showing these errors."	schlessera
1	60077	Class UnexpectedValueException not found		Database	6.4.2	normal	critical	Awaiting Review	defect (bug)	assigned	has-patch	2023-12-14T20:22:35Z	2026-10-25T18:08:03Z	"I'm seeing the following error when running certain wp cli commands -

{{{
PHP Fatal error:  Uncaught Error: Class ""WpOrg\Requests\UnexpectedValueException"" not found in wp-includes/Requests/src/Iri.php:726
}}}

I believe this bug was introduced recently in this commit - https://core.trac.wordpress.org/changeset/56835. {{{UnexpectedValueException}}} is missing the backslash {{{\}}} and hence PHP is trying to find it in the {{{WpOrg\Requests}}} namespace instead of the global namespace. The lines of code that are referencing {{{UnexpectedValueException}}} should be updated to the following -
{{{
throw new \UnexpectedValueException();
}}}

Full stack trace -


{{{
PHP Fatal error:  Uncaught Error: Class ""WpOrg\Requests\UnexpectedValueException"" not found in wp-includes/Requests/src/Iri.php:726
Stack trace:
#0 [internal function]: WpOrg\Requests\Iri->__wakeup()
#1 phar:///usr/share/wp-cli.phar/vendor/wp-cli/search-replace-command/src/WP_CLI/SearchReplacer.php(86): unserialize()
#2 phar:///usr/share/wp-cli.phar/vendor/wp-cli/search-replace-command/src/WP_CLI/SearchReplacer.php(57): WP_CLI\SearchReplacer->run_recursively()
#3 phar:///usr/share/wp-cli.phar/vendor/wp-cli/search-replace-command/src/Search_Replace_Command.php(580): WP_CLI\SearchReplacer->run()
#4 phar:///usr/share/wp-cli.phar/vendor/wp-cli/search-replace-command/src/Search_Replace_Command.php(400): Search_Replace_Command->php_handle_col()
#5 [internal function]: Search_Replace_Command->__invoke()
#6 phar:///usr/share/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func()
#7 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}()
#8 phar:///usr/share/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func()
#9 phar:///usr/share/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(417): WP_CLI\Dispatcher\Subcommand->invoke()
#10 phar:///usr/share/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(440): WP_CLI\Runner->run_command()
#11 phar:///usr/share/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1237): WP_CLI\Runner->run_command_and_exit()
#12 phar:///usr/share/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#13 phar:///usr/share/wp-cli.phar/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process()
#14 phar:///usr/share/wp-cli.phar/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
#15 phar:///usr/share/wp-cli.phar/php/boot-phar.php(11): include('...')
#16 /usr/share/wp-cli.phar(4): include('...')
#17 {main}
}}}

More details -

- WordPress version - 6.4.2
- WP CLI command - {{{wp search-replace foo bar --regex --skip-plugins --skip-themes}}}
- The database needs to have a certain format of serialized data to reproduce this but I'm not exactly sure what that format is.

"	vikram6
1	38921	Defining filter pre_get_table_charset causes errors		Database	4.2	normal	normal	Future Release	defect (bug)	new	has-patch	2016-11-23T23:17:46Z	2025-12-18T14:52:15Z	"In wp-db.php::get_table_charset(), a filter is defined, '''pre_get_table_charset'''.

However, if this filter is defined, wp-db.php::get_col_charset() throws errors. This is because the latter assumes that it can find cached results cached in:
{{{
$this->table_charset[];
}}}

The assumption seems to be that if you add the '''pre_get_table_charset''' filter, you will also define the '''pre_get_col_charset''' filter.
 
Code reference: [https://github.com/WordPress/WordPress/blob/master/wp-includes/wp-db.php#L2437] 

Note: defining this filter lets you hard-code the charset of tables, rather than doing a database lookup every time. This can be done quite safely because the most recent upgrade forced our DB tables to be '''utf8mb4'''."	haoran
1	61889	Function dbDelta() splits queries on semi-colon in column COMMENT and table COMMENT		Database	1.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-08-16T19:06:04Z	2025-04-28T05:46:54Z	"When creating custom tables in Custom Plugins, the function `dbDelta()` is splitting the query with a semi-colon inside column comments and table comments and the query fails.

I suggest we use `preg_split`, instead of `explode`. I have attached a patch for the same.

For example the following query would fail:
{{{#!php
<?php
dbDelta( 'CREATE TABLE `' . $wpdb->prefix . 'aividbox_chat` (
	`id` bigint(11) NOT NULL auto_increment,
	`user_id` int(11) NOT NULL DEFAULT 0,
	`chat_txt` varchar(5000) NOT NULL DEFAULT ""Chat text;"",
	`chat_from` int(11) NOT NULL DEFAULT 0 COMMENT ""user_id:X;"",
	`added_date` datetime NULL DEFAULT NULL,
	`status` int(11) NOT NULL DEFAULT 0 COMMENT ""status => 0 = inactive; 1 = acttive; 2 = hidden by admin"",
	`parent_id` int(11) NOT NULL DEFAULT 0,
	PRIMARY KEY  (`id`),
	KEY `k_user_id` (`user_id`)
) ENGINE=InnoDb  COMMENT ""chat table;"";

CREATE TABLE `' . $wpdb->prefix . 'aividbox_message` (
	`id` bigint(11) NOT NULL auto_increment,
	`user_id` int(11) NOT NULL DEFAULT 0,
	`message_txt` varchar(5000) NOT NULL DEFAULT ""mesage text;"",
	`message_from` int(11) NOT NULL DEFAULT 0 COMMENT ""user_id:X;"",
	`added_date` datetime NULL DEFAULT NULL,
	`status` int(11) NOT NULL DEFAULT 0 COMMENT ""status => 0 = inactive; 1 = acttive; 2 = hidden by admin"",
	PRIMARY KEY  (`id`),
	KEY `k_user_id` (`user_id`)
) ENGINE=InnoDb COMMENT ""message table;"";');
}}}
"	msolution
1	55610	HTTP response should not be 200 when returning error-page		Database		normal	major	Awaiting Review	defect (bug)	reopened		2022-04-23T09:21:41Z	2025-08-22T14:38:34Z	"Current behavior: 
When WordPress web site was under high concurrency access, the database connections may reach the limitation of the system resource. WordPress was still returning 200 of HTTP response code when database connection error happens. 

The page with error information as:
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at dbhost. This could mean your host's database server is down.

Expected behavior: Returns HTTP code with 500 or other error codes to indicate error happens, when showing error pages."	april213
1	50789	Improve WPDB logic around information_schema		Database	5.5	normal	normal	Awaiting Review	defect (bug)	new		2020-07-27T17:43:37Z	2021-06-11T16:29:40Z	"WooCommerce uses a query on `information_schema.table_constraints` to determine whether it needs to add a foreign key constraint to one of its tables.

{{{
SELECT
  COUNT(*) AS fk_count
FROM
  information_schema.TABLE_CONSTRAINTS
WHERE
  CONSTRAINT_SCHEMA = ''
  AND CONSTRAINT_NAME = 'fk_wp_12345_wc_download_log_permission_id'
  AND CONSTRAINT_TYPE = 'FOREIGN KEY'
  AND TABLE_NAME = 'wp_12345_wc_download_log'
}}}

`$wpdb->get_table_from_query` returns `information_schema` which is not a table, it is a database containing the table `TABLE_CONSTRAINTS`. So it seems there is room to improve this method to extract the table name in cases where it is preceded by a database name. However, this is not the goal of this ticket. In the specific case of `information_schema` tables, we're more interested in the table referenced in the `WHERE` clause.

My use case involves a `wpdb` drop-in, WordPress.com's hyperdb, which was the original source of this method when it was added in [30345]. We use hyperdb to map queries to database servers using table names as map keys. Given a table like `wp_12345_posts` we connect to the right database.

The database `information_schema` exists in all database servers. When WooCommerce queries the table `table_constraints` it's looking for information about the table `wp_12345_wc_download_log`. To route the query to the appropriate database server, we are interested in this table name.

I would propose adding this before the first `preg_match` in  `get_table_from_query`:

{{{
		// SELECT FROM information_schema.* WHERE TABLE_NAME = 'wp_12345_foo'
		if ( preg_match('/^\s*'
				. 'SELECT.*?\s+FROM\s+`?information_schema`?\.'
				. '.*\s+TABLE_NAME\s*=\s*[""\']([\w-]+)[""\']/is', $q, $maybe) )
			return $maybe[1];
}}}

This returns `wp_12345_wc_download_log` which allows us to route the query to the correct database server.

I am able to patch WordPress.com's drop-in to check this pattern before calling the parent method in core's `wpdb`. So there is no need to rush on our behalf.

Does anyone know of a use case that relies on the existing implementation?

It might be argued that a caller of this function would expect the return to be `TABLE_CONSTRAINTS` in this case. However, I was unable to find any tickets requesting a fix for the current behavior. I believe the best fix would be to return the table name from the `WHERE` clause."	andy
1	54834	Mysql gone away when importing DB on create wp_posts indexes		Database		normal	blocker	Awaiting Review	defect (bug)	new		2022-01-16T13:10:48Z	2023-02-17T00:10:51Z	"Already imported the table and its data.
When I execute the following:

ALTER TABLE `wp_posts`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `post_name` (`post_name`(191)),
  ADD KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`),
  ADD KEY `post_parent` (`post_parent`),
  ADD KEY `post_author` (`post_author`);

I have 2013 error (in console) or 2006 (in phpmyadmin) immediately."	jasmines
1	52648	Problem with certain passwords not working to login to mysql db		Database	5.2	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2021-02-25T03:26:23Z	2021-02-25T14:41:39Z	"After migrating my WordPress blog from 1and1 hosting to a FAMP server the blog would not come up and complained it couldn't connect to the database. When the database was migrated the same username and password were retained from the 1and1 site. I traced the problem to wp-db.php in wp-includes on the following line:

 @mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags );

By hardcoding this password into this line:
 @mysqli_rea$this->dbpasswordl_connect( $this->dbh, $host, $this->dbuser, ""SpivknocKs3%"", null, $port, $socket, $client_flags );

The WordPress blog would come up. (Note this is no longer the password for the database.)

I also echoed $this->dbpassword and it was the same as the hard coded password but  only the hardcoded version of the password would allow a connection to the database.

I changed the password for the database to one containing only upper and lowercase characters and numbers and it would connect fine and the blog would work. The problem was not quite this easy however. It also depended on whether I was logging in as ""user""@""localhost"" or ""user""@""127.0.0.1"". Both users existed on the mysql database and both had the same GRANTS. 

I tested the mysqli_real_connect() call independent of WordPress using the CONSTANT declarations from wp-conf.php pasted into the php manual reference code for this call and got similar results. 

I had moved the blog to a server running FreeBSD 12, apache 2.4, php 7.4, and mysql 5.7 when this problem started. I am currently running WordPress 5.2.9 running Arclite theme."	kellnerp
1	43893	The maybe_create_table() function has two definitions		Database		low	normal	Awaiting Review	defect (bug)	new	dev-feedback	2018-04-28T14:22:56Z	2020-09-01T16:05:56Z	"The `maybe_create_table()` function has two definitions:

1. https://github.com/WordPress/wordpress-develop/blob/c71a898f784d8435c07bcf9ec9e30560dd3abe19/src/wp-admin/includes/upgrade.php#L2187-L2219
2. https://github.com/WordPress/wordpress-develop/blob/c71a898f784d8435c07bcf9ec9e30560dd3abe19/src/wp-admin/install-helper.php#L40-L70

The latter is contained within a `function_exists()` check, but this still means the function's behaviour can differ depending on which definition happens to load.

The function is not used at all in WordPress core. It (they?) should probably be deprecated."	johnbillion
1	43589	WPDB Update change NULL values to acceptable values		Database		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-03-20T19:43:32Z	2019-01-17T01:19:44Z	"Hello,

I'm creating a plugin in which i need to create a new SQL table, that I connect to REST API. My table has several fields that can't be NULL and some that can be NULL.

If i do the update via the wpdb object (cf. below), NULL fields are updated with a NOT NULL value that I've never typed (a float that can't be NULL become 0.00000, a date -0001-00-00, ....).
The expected behaviour would be to not update the line because the request is not OK.

If I allow NULL values on these fields, values are NULL. It's like if somewhere the value was changed to be accepted by the sql engine.


NB: the generated request is OK, when i access to the wpdb->last_query value.




--------- code example ---------
global $wpdb;
$wpdb->update($table, $fields, $where, $fieldsformats, $whereformats);

where $fields = array(""mynotnulldate""=> null, ""mynotnullfloat"" => null);


Dorian
"	dorianrd
1	58133	WordPress database error Illegal mix of collations		Database	6.1.1	normal	major	Awaiting Review	defect (bug)	reopened		2023-04-15T00:27:53Z	2023-04-24T14:31:43Z	"Please see attached WordPress database error. I have run query in local database to check if those post exists in wp_posts table. But they do not exist anywhere in database, site-content and codebase. 

Site Info
PHP version	8.0.25 (Supports 64bit values)

Extension	        mysqli
Server version	        5.7.12
Database charset	utf8mb4
Database collation	utf8mb4_unicode_520_ci
"	varinupadhyay
1	46932	dbDelta does not account for MySQL keywords being used as key names		Database		normal	minor	Awaiting Review	defect (bug)	new		2019-04-15T12:14:29Z	2019-04-16T00:46:51Z	"This, is a bug, but it is an edge case. I realize that.

In processing data coming from a third party, my plugin sets up a table in MySQL that uses the field name `key`. MySQL allows this because it is wrapped in back-ticks. 

The field does not cause a problem in the WordPress code, but I also index on that field and that does cause a problem.

{{{
KEY `i_key` (`key`)
}}}

This causes a small problem with `dbDelta()`. The regex starting at line 2650 will not properly identify the index. Thus, the next line, 2676, will try to use the array element `$index_type['index_type']` which does not exist. This throws a warning in PHP.

There are two possible solutions I see.

1. The simple solution is to add a check for an empty array above 2767. This won't solve the problem but it will stop the warning.
2. The more complete solution would be to change the regex to exclude the keyword matches if they are inside of backticks. This will solve the problem properly.

There may be other solutions, those are just the ones I have identified.

Cheers! :)
=C=
"	CalEvans
1	55206	wp core api memory leaks		Database		normal	normal	Awaiting Review	defect (bug)	assigned	dev-feedback	2022-02-20T05:37:43Z	2022-04-29T04:44:55Z	"I've experienced the following two memory leaks in WP core.  One involves $wpdb when `SAVEQUERIES` is defined truthy, and the other involves `$wp_object_cache` growing as a consequence of calling core api functions that themselves save to the object cache.  Both have happened for me in cases where I'm doing large batch processing involving thousands or tens of thousands of posts.  I've had memory usage exceed 512MB and cause crashes.  

I'm including unit tests here showing each memory leak and also the fix that I've used to prevent the memory leak and keep my batch jobs running.  

{{{#!php
<?php

/**
 * Class WP_Memory_Leak_Tests
 *
 * This class tests two cases that cause memory leaks in WordPress that could
 * lead to crashes, particularly in CLI jobs that work on larger batches.  For
 * each of the cases ( one for the wpdb class and one for the global
 * $wp_object_cache ), we perform some seemingly innocuous task many times -
 * enough times to require that PHP allocate more memory because of a specific
 * action.
 *
 * Neither of the tests here show a particularly large memory increase, but I've
 * personally had both occur for me on large jobs hitting WP API functions.  The
 * one with $wpdb->queries particularly has a tendency to blow up.
 */
class WP_Memory_Leak_Tests extends WP_UnitTestCase {

	/**
	 * This tests a condition which exposes a memory leak in the WPDB class.
	 * If 'SAVEQUERIES' is defined as truthy, then the $wpdb->queries property
	 * can grow indefinitely.
	 */
	public function test_WPDB_Memory_Leak() {

		// Once a constant is defined, it can't be undefined, it's often defined in dev or staging environments.
		define( 'SAVEQUERIES', true );

		// I'll just start my cron job to read the import file I've got.  It's
		// got a decent number of records.
		$number_of_records = 1000;

		global $wpdb;
		$memory = memory_get_usage( true );
		$peak   = memory_get_peak_usage( true );
		foreach ( [ 'first', 'second' ] as $pass ) {
			// first pass through, we'll apply a fix for this memory leak.
			// second pass through, we'll bypass the fix and the tests will fail.
			for ( $i = 1; $i <= $number_of_records; $i ++ ) {
				if ( 'first' === $pass ) {
					$wpdb->queries = [];
				}

				// for this test, we'll do direct calls to $wpdb
				$wpdb->query( $wpdb->prepare( ""SELECT * FROM $wpdb->posts WHERE ID = %d"", $i ) );
			}
			$this->assertEquals( $memory, memory_get_usage( true ), ""$pass pass"" );
			$this->assertEquals( $peak, memory_get_peak_usage( true ), ""$pass pass"" );
		}

	}

	/**
	 * This tests a condition which exposes a memory leak in wp cache API.  If
	 * a large batch job attempts to do a lot of something that ends up caching
	 * things ( like, for example, get_post or wp_insert_post ), then unless
	 * the cache is flushed regularly, the memory usage grows indefinitely.
	 */
	public function test_WP_Cache_Memory_Leak() {

		// I'll just start my cron job to read the import file I've got.  It's
		// got a decent number of records.
		$number_of_records = 1000;

		global $wpdb;
		$memory = memory_get_usage( true );
		$peak   = memory_get_peak_usage( true );
		foreach ( [ 'first', 'second' ] as $pass ) {
			// first pass through, we'll apply a fix for this memory leak.
			// second pass through, we'll bypass the fix and the tests will fail.
			for ( $i = 1; $i <= $number_of_records; $i ++ ) {
				if ( 'first' === $pass ) {
					wp_cache_flush();
				}

				// Because our last test defined 'SAVEQUERIES', we need to
				// always apply this fix, otherwise that memory leak manifests.
				// With us doing a core API function `wp_insert_post`, the number
				// of queries is quite large and memory __really__ grows.
				$wpdb->queries = [];

				// let's say we're inserting posts, maybe from an excel file.
				// this caches some things, so $wp_object_cache grows.
				wp_insert_post([
					'post_type' => 'post',
					'post_title' => ""post $i"",
					'post_content' => ""pass $pass""
				]);
			}
			$this->assertEquals( $memory, memory_get_usage( true ), ""$pass pass"" );
			$this->assertEquals( $peak, memory_get_peak_usage( true ), ""$pass pass"" );
		}

	}

}

}}}
"	sllimrovert
1	61338	wpdb::prepare function null value convert to empty String		Database		normal	normal	Awaiting Review	defect (bug)	new		2024-05-31T15:15:04Z	2024-10-02T18:59:49Z	In WordPress core, there is an issue where prepare functions null values convert to empty strings when interacting with the database. This causes problems for database table columns defined with NOT NULL constraints, leading to the insertion of empty strings instead of retaining null values.	mazharul78
1	55202	A proper (error) message should be show when mysql setting autocommit=0		Database	5.9	normal	normal	Awaiting Review	enhancement	new		2022-02-19T16:35:11Z	2022-02-19T20:03:07Z	"A proper (error) message should be show when mysql setting autocommit=0

Somewhere is the text:
[https://make.wordpress.org/core/handbook/contribute/design-decisions/#some-esoteric-mysql-settings-are-not-supported Some esoteric MySQL settings are not supported]

But why not add a simple error message?
(Just because it takes tooo long to find out why the installer will not work without this message).

"	Luuk34
1	54642	Add prepared query builder support for `$wpdb` to build prepared queries across multiple location.		Database		normal	normal	Future Release	enhancement	new	has-patch	2021-12-17T09:07:50Z	2022-09-19T20:29:29Z	"This requests scopes adding a query builder like API to WordPress, so that queries can be built across multiple functions, without needing to disable any PHPCS sniffs. 

Currently, if the query is not completely being built nearby, developers will eventually have to disable phpcs sniff, since they would need to combine or interpolate queries. Some examples of this are present in WP core as well, such as in the [https://github.com/WordPress/wordpress-develop/blob/954e9c153fe9d1b4f74d76bab9dd5175fd36cebc/src/wp-includes/class-wp-meta-query.php#L668 meta query], [https://github.com/WordPress/wordpress-develop/blob/954e9c153fe9d1b4f74d76bab9dd5175fd36cebc/src/wp-includes/taxonomy.php#L1585 taxonomy] etc. Although WP does a great job generally to avoid disabling phpcs, in the general plugin ecosystem, these examples are more prevalent.

Note that most of the examples of disabling phpcs can be refactored to not needing to disable. However, as far as I can tell, building a query this way (across multiple functions/places) is not considered a bad practice, if this assumption is correct then we should support doing it better.

This eventual disabling of PHPCS is risky and removes a major and effective protective layer.

== Solution

The solution for WordPress would be to provide an API where developers can build a prepared query in steps, and join them before executing in a safe manner.

I looked at query builders for various ORMs such as Doctrine (Symphony), ActiveRecord (Rails), Laravel etc. While such extensive APIs would likely be overkill for WordPress, one possible solution is this hopefully simpler API that I am proposing in [https://github.com/WordPress/wordpress-develop/pull/2062 this PR 2062].

This PR adds a new class called `WP_DB_Partial_Query` which implements `__toString()` magic method so that it can be interpolated in sprintf calls. The objects of this class will represent a partial query and a new method `$wpdb->prepare_partial()` which will create and return these objects.

This `$wpdb->prepare_partial()` method internally calls `$wpdb->prepare()` and takes exactly the same arguments. This PR also introduces a new placeholder `%q` (although this isn't necessary and `%s` can be used as well) which can be used to pass these prepared partial queries. I have added some examples to use the API in [https://github.com/vedanshujain/wordpress-develop/pull/1 this PR on my fork].

Note that this is only a PoC and implementation is not complete. Specifically, along with tests, a major component missing is to match against `%q` placeholders and quote the args if they are not objects of the `WP_DB_Partial_Query` class.

I can polish the PoC more to get in an acceptable state if this is a direction that WordPress is interested to explore at all and there are no obvious problems with the general approach that I have missed.

"	vedjain
1	59106	Add secondary index on `wp_posts` table to improve media queries performance		Database	6.4	normal	normal	Awaiting Review	enhancement	new		2023-08-15T11:49:34Z	2023-08-15T11:50:28Z	"I've been recently been involved in migrating a large site database to MySQL 8.0.

Upon testing the site, we've noticed that the MySQL 8 queries related to the Media library seem to take much longer than on MariaDB.

Debugging the issue, it seems that MySQL 8, due to its Cost optimiser https://dev.mysql.com/doc/refman/8.0/en/cost-model.html, seems to prefer to drop the type_status_date index and to a full table scan to retrieve the results.

Doing a FORCE INDEX(type_status_date) on the media query, like



{{{
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts
FORCE INDEX(type_status_date)
WHERE 1=1
AND wp_posts.post_type = 'attachment'
AND ((wp_posts.post_status = 'inherit'
OR wp_posts.post_status = 'private'))
ORDER BY wp_posts.post_date DESC
LIMIT 0, 20
}}}



seems to improve the response time.

However, a second alternative seems also to show better results, specifically targeting only the post_type, post_date and ID, something like

{{{
create index idx_type_date on wp_posts(post_type, post_date, ID);
}}}

Running the explain analyze on the queries with each index, we seem to get a better cost number when the new index is used, 142 vs  744, which would indicate a better performance at the MySQL level, this being confirmed in our tests on a large database

{{{
EXPLAIN ANALYZE SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts
FORCE INDEX(type_status_date)
WHERE 1=1
AND wp_posts.post_type = 'attachment'
AND ((wp_posts.post_status = 'inherit'
OR wp_posts.post_status = 'private'))
ORDER BY wp_posts.post_date DESC
LIMIT 0, 20

-> Limit: 20 row(s) (no early end due to SQL_CALC_FOUND_ROWS)  (cost=744 rows=20) (actual time=12..13.1 rows=20 loops=1)
    -> Sort: wp_posts.post_date DESC  (cost=744 rows=3620) (actual time=12..12.8 rows=7407 loops=1)
        -> Filter: ((wp_posts.post_type = 'attachment') and ((wp_posts.post_status = 'inherit') or (wp_posts.post_status = 'private')))  (cost=744 rows=3620) (actual time=0.0505..8.37 rows=7407 loops=1)
            -> Index range scan on wp_posts using type_status_date over (post_type = 'attachment' AND post_status = 'inherit') OR (post_type = 'attachment' AND post_status = 'private')  (cost=744 rows=3620) (actual time=0.0459..5.63 rows=7407 loops=1)
}}}

{{{
EXPLAIN ANALYZE SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts
FORCE INDEX(idx_type_date)
WHERE 1=1
AND wp_posts.post_type = 'attachment'
AND ((wp_posts.post_status = 'inherit'
OR wp_posts.post_status = 'private'))
ORDER BY wp_posts.post_date DESC
LIMIT 0, 20

-> Limit: 20 row(s) (no early end due to SQL_CALC_FOUND_ROWS)  (cost=142 rows=20) (actual time=0.214..15.3 rows=20 loops=1)
    -> Filter: ((wp_posts.post_status = 'inherit') or (wp_posts.post_status = 'private'))  (cost=142 rows=688) (actual time=0.211..15 rows=7407 loops=1)
        -> Index lookup on wp_posts using idx_type_date (post_type='attachment') (reverse)  (cost=142 rows=3619) (actual time=0.207..13.4 rows=7407 loops=1)
}}}

To replicate this, we've installed latest WordPress version and MySQL 8, and create the following post_status count structure:

{{{
mysql> select post_status, count(*) from wp_posts group by post_status;
+-------------+----------+
| post_status | count(*) |
+-------------+----------+
| inherit     |     7407 |
| draft       |        1 |
| publish     |       23 |
| auto-draft  |        1 |
+-------------+----------+
4 rows in set (0.01 sec)
}}}

Can this be considered as a core improvement to the wp_posts table that would directly benefit the Media related queries?

Basically, if MySQL 8 decides that the new index is faster, specially for Media search queries, it will simply pick that on up as opposed to using the original index or dropping it fully if it considers its much more efficient to do a full table scan.

From our database, a search query for term `test` shows an improvement of 0.5 seconds of this basic search media query:


{{{
MySQL []> SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts FORCE INDEX(type_status_date) WHERE 1=1 AND wp_posts.post_type = 'attachment' AND ((wp_posts.post_status = 'inherit' OR
wp_posts.post_status = 'private')) and post_title like ""%test%"" ORDER BY wp_posts.post_date DESC LIMIT 0, 1;
+---------+
| ID      |
+---------+
| xxxxxxx |
+---------+
1 row in set, 1 warning (3.867 sec)

MySQL []> SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts FORCE INDEX(idx_type_date) WHERE 1=1 AND wp_posts.post_type = 'attachment' AND ((wp_posts.post_status = 'inherit' OR wppp_posts.post_status = 'private')) and post_title like ""%test%"" ORDER BY wp_posts.post_date DESC LIMIT 0, 1;
+---------+
| ID      |
+---------+
| xxxxxxx |
+---------+
1 row in set, 1 warning (3.244 sec)

}}}

Thanks for considering this."	ovidiul
1	61856	Add support for MySQL SSL connections		Database	6.7	normal	normal	Awaiting Review	enhancement	new	has-patch	2024-08-11T05:50:53Z	2024-08-13T00:38:49Z	"Hello

I have seen demand for enabling secure database connections across WordPress.org forums, Reddit, and other communities. There is also an older ticket discussing it. https://core.trac.wordpress.org/ticket/24816

I have created a pull request that enables secure database connections."	markhadjar
1	52527	Better RAM handling in wp-db.php		Database	5.6.1	normal	normal	Awaiting Review	enhancement	new		2021-02-15T11:26:08Z	2021-02-15T11:26:08Z	"Hello!

I have to start by apologizing if I am in the wrong place, or if I am structuring this ticket badly. I don't have much experience here inside trac.

I stumbled upon a fatal error when trying to load the WooCommerce status page. The system runs out of memory on line 2022 in wp-db.php.

While the actual bug most certainly lies elsewhere, I got some hints from my host that the solution on line 2022 is not the best. I have no clue about this, but I thought I at least could submit a ticket and let the community decide!

To paraphrase a translation, they say:

wp-includes/wp-db.php line 2022 is a bad solution because of a database call that loads all results into RAM instead of iterating them one by one. But independent of this the error seems to be caused by a very large SQL-query that returns way too much data. Probably a bug somewhere.

This is not a ticket to handle the bug that returns way too much data, but it's a ticket to flag the possible issue of bad RAM handling in wp-db.php.
"	Dekadinious
1	56259	Database Repair doesn't check for missing primary keys / A.I.		Database		normal	minor	Awaiting Review	enhancement	new		2022-07-20T15:55:41Z	2023-03-09T10:44:21Z	"Hi amazing WP community,

This is the second time I've come across this issue in the wild.

The built-in DB repair functionality (repair.php) doesn't attempt to verify or repair missing primary key / autoincrement attributes of the core wp_posts table (and possibly other important core tables). This affects fringe/edge cases where this core table has been corrupted due to third-party plugins or other user misfortune.

We just need add some SQL to check for this health database attribute, such as:

{{{
SELECT COLUMN_NAME 
FROM information_schema.KEY_COLUMN_USAGE 
WHERE TABLE_NAME = 'wp_posts' 
  AND CONSTRAINT_NAME = 'PRIMARY';
}}}

{{{
SELECT COLUMN_NAME 
FROM information_schema.KEY_COLUMN_USAGE 
WHERE TABLE_NAME = 'wp_options' 
  AND CONSTRAINT_NAME = 'PRIMARY';
}}}

(Adapted from source: https://stackoverflow.com/a/52288527/8800423)

These should each return 1 result each. 

As part of 'repair', we could have auto-fix SQL to re-enable the auto-increment / primary key. There is obviously sometimes a 'market' for that fix:

https://webshop.mijnpress.nl/shop/plugins/wpdb-wp-core-database-sql-index-primary-keys-fix-script/ (commercial; no association)

There are quite a few edge/fringe cases recorded that this could help:
• https://wordpress.stackexchange.com/questions/353713/wordpress-database-problem-wp-posts-primary-key
• https://wordpress.stackexchange.com/questions/237076/resetting-auto-increment-primary-key
• https://www.alexgeorgiou.gr/repair-auto_increment-primary-key-wordpress-mysql/
• https://wordpress.stackexchange.com/questions/329162/is-it-possible-to-fix-repair-all-index-primary-key-unique-and-all-other-stru
• https://wordpress.stackexchange.com/questions/225641/wordpress-database-lost-auto-increment

Additionally, in a sense this is a core functionality break if these database attributes are not present because posts will fail to create in the DB. 

Perhaps the detection and fix shouldn't be on advanced user’s manual use of repair.php.

In which case, running a regular check with mosts WP requests would be non-performant. So perhaps this could be included as a CRON'd/infrequent health check within the WP Site Health scope?

N.B. The popular non-core ""WP-DBManager"" plugin does not (at latest version 2.80.8) check for (let alone repair) this issue either."	harryfear
1	39748	Function to insert or update DB value		Database		normal	normal	Awaiting Review	enhancement	new		2017-01-31T10:00:01Z	2017-10-29T17:06:57Z	"Hello.
I have been searching for long and couldnt found a good solution to the simple problem:

lets say,in my plugin, I create a new table. 
Then I want to have a function, that updates a row in table, which's column (named EventId) equals i.e. 734 (if such row not exists, then create it).

for that, I use my custom-created function:

{{{#!php
function UPDATE_OR_INSERT($tablename, $NewArray, $WhereArray){	global $wpdb; $arrayNames= array_keys($WhereArray);
	//convert array to STRING
	$o=''; $i=1; foreach ($WhereArray as $key=>$value){ $o .= $key . ' = \''. $value .'\''; if ($i != count($WhereArray)) { $o .=' AND '; $i++;}  }
	//check if already exist
	$CheckIfExists = $wpdb->get_var(""SELECT "".$arrayNames[0]."" FROM "".$tablename."" WHERE "".$o);
	if (!empty($CheckIfExists))	{ return $wpdb->update($tablename,	$NewArray,	$WhereArray	);}
	else				{ return $wpdb->insert($tablename, 	array_merge($NewArray, $WhereArray)	);	} 
}
}}}


//usage:   
{{{
 UPDATE_OR_INSERT('my_table',  array('new_page_content'=>'blabla'),   array('EventId'=>734));
}}}



it's good if there was built-in function that replaces this custom method"	tazotodua
1	44292	Make use of protected process_fields		Database		normal	normal	Awaiting Review	enhancement	new		2018-06-01T12:23:58Z	2018-06-01T12:23:58Z	"I have written an 'upsert' routine and thought it would be nice to have this functionality in WordPress core. Searching for results in this ticket https://core.trac.wordpress.org/ticket/22196.

Not having a method for it, is okay. I already have my own implementation. However I need some field processing like the same way has been done for the insert and update routines. Unfortunately the method for that (process_fields) has been made protected.

Is it desirable to make that method public or should I copy the logic of those routines to be able to use it?"	andizer
1	46565	Mixed engine in tables, could bring to major WP failure! Also there is a small fix that could avoid that.		Database	4.9.8	normal	normal	Awaiting Review	enhancement	new		2019-03-19T18:49:44Z	2019-03-20T07:40:01Z	"''First of all ... after MySQL decided to make InnoDB the default engine ... many of us have mixed database with both InnoDB and MyisAM labeled tables.

If a plugin add a new table now (it happened to us with both WPML and Woocommerce) the new table will be mostly InnoDB but old table could be MyIsAM.

That can bring to JOIN failures, that in our case made us lost primary key or foreign key links, but will definitely cause also tables **permanent locks** (due to plugin/software crash), and that took finally to the main problem:
**data (rows) inserted with ID = 0**

THAT alone should be advertised a lot around plugin developers, that should check if their plugin tables are equal to the current-default-engine and if they are not, they should:
""alter TABLENAME engine = current-default-engine"".''

**Straight to the point:**
Data with ID = 0 actually can make crash WordPress because of this:
wp-includes/post.php:4867

Please note that this code will make WordPress go into a recursive infinite loop (causing ""fatal error memory exhausted"") if the ID = 0.
I know that ID = 0 is an abnormal situation, but believe me, if having locked tables makes this happen, you want to add a handbreak to that.

**This is a small fix, but you surely can do better:**


{{{
        // Start the search by looking at immediate children.
        if ( isset( $children[ $page_id ] ) ) {
                // Always start at the end of the stack in order to preserve original `$pages` order.
                $to_look = array_reverse( $children[ $page_id ] );

                while ( $to_look ) {
                        $p = array_pop( $to_look );
                        if (!array_key_exists($p->ID,$pidx)) {
                                $pidx[$p->ID]=true;
                                $page_list[] = $p;
                                if ( isset( $children[ $p->ID ] ) ) {
                                        foreach ( array_reverse( $children[ $p->ID ] ) as $child ) {
                                                // Append to the `$to_look` stack to descend the tree.
                                                $to_look[] = $child;
                                        }
                                }
                        }
                }
        }
}}}
"	Nokao
1	61071	Need to display appropriate error messages when the database table is empty or corrupted.		Database	6.4	normal	normal	Awaiting Review	enhancement	reopened	dev-feedback	2024-04-24T14:18:36Z	2025-01-06T12:29:04Z	"A few days ago, I received a new issue from the client regarding the ""Error Establishing Database Connection."" Upon investigation, I discovered that this error occurred due to an empty or corrupted wp_options table. After repairing the table, the site functioned normally.

Given that the error message may mislead frontend developers into troubleshooting database connection issues unnecessarily, I recommend implementing a specific error message indicating that the connection is intact but the site is experiencing issues due to a corrupted or empty table. This will provide clearer guidance for troubleshooting.

Please review this suggestion and let me know if you have any questions or concerns.

Thank you!"	vishalvaland
1	58826	Please add a default post relations table		Database		normal	critical	Awaiting Review	enhancement	new		2023-07-17T22:10:52Z	2023-07-17T22:10:52Z	"As I am sure you know, people have bee using wordpress for a lot of things other than a simple blogging platform. And while your structure allows for basic functionality and relationships, There is a lot of room for improvement. As people continue to add more and more custom post types and related meta, the default posts/post meta tables will quickly become filled and make web queries slow. 

In addition, the taxonomy system is very limiting, as that is not the only way one would want to group like items. The most common way, would be POST relationships. If a Class has many students, and students have many classes, Displaying an intermediary page between the two is very difficult with the current set up. Therefore, I'd like to request an extension to the database structure as described below in the link below. At minimum the 1st option should be considered as an alternative to archive pages with taxonomies. 

[https://imgur.com/a/L9q4bAf]

If I type  domain.exp/articles/for/baseball where baseball is a sports custom post type and arcticles is just one of several custom post types, I expect a query  select * from articles where hobby_slug = 'baseball'

Currently everyone expects me to make the sport CPT  a taxonomy, but if the sport has its own custom fields, and taxonomies already attached, that does not work.  This system would be usable in a thousand different use cases and would make your platform more versatile.  USERS, comments, posts and custom post types are all Models. Make it easier to establish any relation between them please. 
"	jcc5018
1	54324	Rename Table Function - maybe_rename_table()		Database		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-10-26T17:22:22Z	2023-01-09T16:23:27Z	"I would like to see a helper function to rename tables, similar to maybe_create_table() in /wp-admin/install-helper.php.

Having a maybe_delete_table() would be very useful as well."	bhubbard
1	61604	Split `wp_insert_post` in two		Database		normal	minor	Awaiting Review	enhancement	new		2024-07-09T13:28:40Z	2024-07-09T13:39:58Z	"I suggest to split this function in two, after the `wp_insert_post_data` filter (before the `if ( $update ) {` clause)

This key function is huge and its first half is idempotent but does handy processing on a post array (filtering/sanitation/defaults).
If could be named something like `preprocess_post_data()`


By splitting it in two, the first half would become a dedicated routine a developer could rely on in order to go from ""raw"" post-data to an insertable one.

In my use-case I need to insert temporary posts (inside a temporary table sharing the structure of wp_posts). The first half of `wp_insert_post` is exactly how I would like to process my data but I've currently no way to reuse that code.

Another benefit would be more granular and easier-to-test interfaces."	drzraf
1	41054	Use sargable date filtering where possible		Database		normal	trivial	Awaiting Review	enhancement	new		2017-06-15T07:54:13Z	2024-12-05T21:12:18Z	"Currently, many queries generated by WP use post_date in a non-sargable fashion, namely by filtering based on the output of a MySQL function taking post_date as a parameter.

These can be easily rewritten to use the index on post_date without, to my eyes, breaking anything to boost performance.

Here's an example:

{{{
MariaDB [blog]> EXPLAIN SELECT * FROM blog.wp_posts WHERE YEAR(post_date) = 2017;
+------+-------------+----------+------+---------------+------+---------+------+------+-------------+
| id   | select_type | table    | type | possible_keys | key  | key_len | ref  | rows | Extra       |
+------+-------------+----------+------+---------------+------+---------+------+------+-------------+
|    1 | SIMPLE      | wp_posts | ALL  | NULL          | NULL | NULL    | NULL | 2684 | Using where |
+------+-------------+----------+------+---------------+------+---------+------+------+-------------+

}}}

vs

{{{
MariaDB [blog]> EXPLAIN SELECT * FROM blog.wp_posts WHERE post_date >= ""2017-01-01"" AND post_date < ""2018-01-01"";
+------+-------------+----------+-------+---------------+-----------+---------+------+------+-----------------------+
| id   | select_type | table    | type  | possible_keys | key       | key_len | ref  | rows | Extra                 |
+------+-------------+----------+-------+---------------+-----------+---------+------+------+-----------------------+
|    1 | SIMPLE      | wp_posts | range | post_date     | post_date | 8       | NULL |  262 | Using index condition |
+------+-------------+----------+-------+---------------+-----------+---------+------+------+-----------------------+

}}}

This optimization can be applied to any comparison between post_date and an already known parameter (from query_var). The only time it wouldn't be possible would be when comparing a portion of the date of two different posts (e.g. WHERE MONTH(x.post_date) == MONTH(y.post_date))


It's not much, but it's something. "	ComputerGuru
1	8924	autoload should be boolean in add_option()		Database		lowest	normal	Awaiting Review	enhancement	reopened		2009-01-22T23:51:48Z	2019-03-15T00:30:00Z	"Regarding: CREATE TABLE `wp_options` (`autoload` varchar(20) NOT NULL DEFAULT 'yes',

Why not boolean binary, or one character long?



"	jidanni
1	46287	Add insert_ignore() method to wpdb to avoid unecessary boilerplate code		Database		normal	normal	Awaiting Review	feature request	new	has-patch	2019-02-20T09:43:09Z	2025-05-26T14:29:53Z	It's a very useful query, and easy to add to the core. Its usage would be less error prone, and code a lot DRYer if it were officially supported.	lev0
1	63966	Database Extensions for Federation Support and Compatibility at the WordPress Core Level		Database		normal	normal	Awaiting Review	feature request	new	close	2025-09-12T13:54:13Z	2025-09-12T17:05:11Z	"### Database Extensions for Federation Support and Compatibility at the WordPress Core Level

The extension of the ActivityPub protocol in WordPress is currently being developed not by the community but under the leadership of Automattic. However, this is only because the current implementation has not yet matured enough to be directly integrated into the Core. This does not mean that the Core team can simply ignore the issue.

Of course, I should not state it too definitively, but personally I am convinced that in the future it will inevitably be integrated into WordPress Core. Therefore, even if this issue is not yet being directly addressed at the global community level, I would like to raise it as something that should be considered.

* https://wordpress.org/plugins/activitypub/
* https://wordpress.com/support/enter-the-fediverse/fediverse-blocks/
* https://wordpress.com/blog/2023/10/11/activitypub/
* https://www.theverge.com/2023/10/11/23913278/wordpress-activitypub-official-plugin-automattic-fediverse-mastodon

For these reasons, I believe it is important to raise compatibility concerns on Trac as well. If the philosophical gap between WordPress Core logic and the ActivityPub protocol grows larger, it will become increasingly difficult to align them in the future.

And I do not think this is unrelated to improving the structure of Core itself. If WordPress evolves toward a more modern and interoperable structure, future integration will be smoother and WordPress will avoid drifting into a “Galápagos” model that ignores broader web standards.

The reason I am raising this issue is that (if I remember correctly) the ActivityPub plugin prioritizes integration with the existing structure and does not add separate database tables, so that it can be cleanly removed if needed.

Simply put, the ActivityPub vocabulary has **actor, activity, and object**. Actors can be understood as WordPress authors, and objects as WordPress posts or media.
On the other hand, activities (likes, reposts, follows, etc.) are handled in a way similar to [WordPress.com Reader Notifications](https://wordpress.com/reader/notifications).
Does Core DB have a table to handle notifications? No, it does not. Isn’t that why notifications are implemented by mass-sending emails?
Why can’t self-hosted WordPress receive in-app notifications via PWA? Why must it always be connected to Jetpack or flood users with email notifications?

Why, when we visit another WordPress blog and leave a comment, do we have to enter our name, email, and URL as “anonymous”? Why must impersonation and spam be tolerated?
Why can’t we “follow” another site from “My Site” or compose a comment on my site and have it “sent” directly to a post on another site?

In conclusion, it seems inevitable that ActivityPub integration into Core will eventually happen. Currently, there is no table in Core to handle activities (which is why they are being stored in `comments`, but that is actually incorrect). What is needed is not only a local profile but also a remote actor table capable of handling proxy profiles, and a remote object table to subscribe to and “repost” those actors.

However, such tables may not be strictly necessary in the existing Core, and since the ActivityPub plugin does not add new tables, a situation has arisen where responsibility is shifted back and forth. If the integration of the ActivityPub protocol into WordPress Core is to be seriously considered, then even if the operational logic is implemented by the plugin, the database tables themselves should be implemented at the Core level. That is my conclusion.

---

### Four Key Points

1. **Current Reality**

   * The ActivityPub plugin is currently developed by Automattic as a third-party project.
   * It avoids creating new DB tables and instead forces mapping onto the existing `comments` structure.
   * This was intentional, to ensure *removability* and *compatibility with existing structures*.

2. **Problem Statement**

   * The ActivityPub object model (actor, object, activity) does not map 1:1 to the WordPress DB schema.
   * In particular, *activities* (likes, follows, reposts, notifications) have no corresponding table in Core.
     → The lack of a `notifications` table means Core still relies on bulk email delivery.
   * As federation grows, this creates a “responsibility gap” between Core and the plugin.

3. **Philosophical Concern**

   * If Core remains indifferent, the gap between WP’s comment structure and federated replies will widen.
   * Later, when Core integration is attempted, “Galápagos-style” divergence could make compatibility or refactoring impossible.
   * Core needs to evolve toward a more modern and interoperable DB schema.

4. **Conclusion & Proposal**

   * ActivityPub integration into Core is, in the long term, *virtually inevitable*.
   * Even if plugin logic handles the functionality, **Core should provide base DB tables (actors, activities, objects, notifications)**.
   * This ensures federation standards can be adopted, without pushing all responsibility to plugins.

---

### For Trac

Since Trac focuses on specific bug/ticket-level issues, the higher-level schema discussion should eventually be raised as a *Core proposal* or *dev note*. If you open a Trac ticket, keep it concise, for example:

* “The current ActivityPub plugin avoids extending the DB schema, but long-term federation support will require Core-level DB tables for compatibility.”
* “Core currently lacks tables for concepts like Notifications and Activities. At minimum, schema design discussions are needed to ensure future interoperability.”"	kimjiwoon
1	51762	Unix authentication support via unix_socket		Database		normal	normal	Awaiting Review	feature request	new		2020-11-12T12:15:50Z	2020-11-12T12:15:50Z	"Hi,

It seems WordPress supports unix_socket for the database, but not unix authentication - it would greatly increase the security of deployments (one less password is always better) and accelerate deploying speed, as you can just use the unix user for authentication.

More info here:
https://mariadb.com/kb/en/authentication-from-mariadb-104/

Cheers!"	biztems
1	61223	Date Time and UTC / GTM Timezone is not synchronizing		Date/Time	6.5.3	normal	minor	Awaiting Review	defect (bug)	new	close	2024-05-15T14:16:50Z	2025-01-14T21:50:13Z	"Hello Core Team, 

I have found one serious bug in WordPress Related to post publish Date Time. The issue is Time of published post is not synchronizing UTC timezone.

Scenario, I am in Nepal and My WordPress site is set in +0 GMT. Now, I change the timezone of Site to Kathmandu, Nepal (Local Timezone). And, I create a post and publish at 8:00pm (local time +5:45 GMT). Now I get back to setting and changed the timezone ( +0 GMT ). Now I get back to my previos post. And I get my post published time is 8:00PM +0 UTC. This is not a correct time of my post is published. 

I have attached the video link and also attached the quick demo video.
https://www.awesomescreenshot.com/video/27695979?key=eacbfc62438d79ed5dc00b8f095b0009

If you have question please let me know,

Thanks, 
Rajan Lama (@lamarajan)

    "	lamarajan
1	49012	Date format output incorrect in Finnish		Date/Time	5.3.1	normal	normal	Awaiting Review	defect (bug)	new		2019-12-17T15:31:34Z	2024-05-27T11:47:17Z	"Pretty much exactly the duplicate of previous tickets reporting this issue with at least Italian and Russian languages, like here: #48606

In my case the problem occurs with Finnish using 5.3.1. The date format ""F j, Y"" shows up as ""2 joulukuun, 2019"", which basically has F and j reversed."	kipex
1	66142	Empty custom date/time fields are saved instead of remaining null in WordPress 7.1.1		Date/Time	7.1.1	normal	normal	Awaiting Review	defect (bug)	new	close	2026-09-19T12:26:47Z	2026-09-28T08:17:29Z	"A regression appears to have been introduced in WordPress 7.1.1 involving the custom date and time format fields in Settings → General.

In WordPress 7.1, this behavior was resolved. However, after updating to WordPress 7.1.1, the issue appears again.

When the Custom date or time format option is selected and the custom input field is left blank, saving the General Settings still saves the empty value.

Ideally, when no custom date or time format has been entered, the corresponding setting should remain null rather than saving an empty custom value.

Steps to reproduce
Install WordPress 7.1.1.
Go to Settings → General.
Locate the Date Format or Time Format setting.
Select the Custom option.
Leave the custom date/time input field completely blank.
Click Save Changes.
Check the saved setting value.
Actual result

The settings are saved even though the custom date/time field is empty.

An empty custom value is stored instead of leaving the setting as null.

Expected result

If the custom date/time field is empty, WordPress should not save an empty custom value.

The corresponding setting should remain null until a valid custom date/time format is provided.

Regression

This behavior was resolved in WordPress 7.1, but appears to have regressed in WordPress 7.1.1.

Environment
WordPress: 7.1.1
Tested on: [Browser]
PHP: [PHP version]
Theme: [Theme]
Plugins: [Plugins / default installation]
Additional notes

The issue appears to be related to how the empty custom date/time fields are handled when the General Settings form is submitted.

The relevant handling is in wp-admin/options.php, where the custom date and time format values are processed before the options are updated."	sanayasir
1	46609	Incorrect posts date on saving scheduled posts draft		Date/Time	5.1	normal	normal	Awaiting Review	defect (bug)	new		2019-03-22T16:19:24Z	2022-12-05T15:16:15Z	"Hello:
When a scheduled post is saved, the created post date is keept, instead of the scheduled date the user wanted to program. So, when the user make a preview of the post, the date showed is incorrect, because not correspond to the scheduled post date but to the present date.
The date is corrected only when the post is programmed. I think the date of the post must be changed when the post was saved as a draft too.
Best regards,
Javier."	Marlimant
1	63348	Missing “Create Date” on Draft Products		Date/Time	6.8	normal	critical	Awaiting Review	defect (bug)	new		2025-04-25T11:04:41Z	2025-04-25T22:35:07Z	"Hi Team

I created ticket under WooCommerce, because this issue affected my products.
After (my) investigation I realise that the issue is related to WordPress.

Looks like communication between Woocommerce support and Word Press support is broken or doesn't exist at all I would like to share this bag for investigate.

I found solution but this is only temporary solution.

All details in provided post.
https://wordpress.org/support/topic/missing-create-date-on-draft-products-possible-bug/#post-18435628"	baxzibi
1	55242	Time options in Settings have changed to uppercase AM and PM instead of lowercase		Date/Time	5.9.1	normal	normal	Awaiting Review	defect (bug)	new		2022-02-23T19:06:14Z	2025-09-10T12:07:31Z	"Not sure exactly when this change has crept in, but it should ideally be reverted as uppercase use of AM and PM isn't considered correct.

https://writingexplained.org/am-or-a-m-pm-or-p-m-do-i-capitalize-am-and-pm
https://capitalizemytitle.com/ufaqs/are-am-and-pm-capitalized/
https://en.wikipedia.org/wiki/Date_and_time_notation_in_the_United_Kingdom

All of the sources above state that lowercase use of am and pm should be used.

"	leecollings
1	29390	add filter for get_date_from_gmt()	pbearne	Date/Time	1.2	normal	normal	Future Release	defect (bug)	assigned	has-patch	2014-08-27T08:53:24Z	2025-07-09T07:36:00Z	"Please add filter for i18n date`s in get_date_from_gmt();

Buddypress use this function in admin section for display posts time, and we can't change dates via i18n and filters for Persian dates (Jalali Calendar).

get_date_from_gmt() is located in wp-includes/formatting.php 

Thank you"	zakrot
1	63772	get_calendar() shows incorrect month-end due to current_time() timezone issue		Date/Time	6.8.2	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-07-31T13:55:20Z	2025-08-02T12:05:48Z	"The get_calendar() function in WordPress incorrectly calculates the number of days in the current month when the site timezone is set to UTC+9 (e.g., Asia/Tokyo) and the current time is near the end of the month (e.g., July 31st around 22:00–23:59 JST).
🔁 Steps to Reproduce:

1. Set your WordPress site timezone to Asia/Tokyo (UTC+9).

2. Visit a page that displays the default calendar widget.

3. On July 31, 2025, at 22:37 JST, observe that the calendar for July only shows up to the 30th, even though July has 31 days.

4. Inspect wp-includes/general-template.php, where get_calendar() uses the following:

$thisyear  = (int) current_time( 'Y' );
$thismonth = (int) current_time( 'm' );
$unixmonth = mktime( 0, 0, 0, $thismonth, 1, $thisyear );
$last_day  = gmdate( 't', $unixmonth );

This calculation yields an incorrect $thismonth = 8 (August), causing $last_day = 30 instead of 31 for July.
🧠 Technical Cause:

current_time('Y') and current_time('m') are localized string values, but they are influenced by UTC time logic internally, especially near the date change boundary. As a result, the calendar may ""roll over"" to the next month prematurely.
✅ Suggested Fix:

Use current_time('timestamp') or better yet, rely on the correct timezone-aware approach using wp_timezone():

$dt = new DateTimeImmutable( 'now', wp_timezone() );
$thisyear = (int) $dt->format( 'Y' );
$thismonth = (int) $dt->format( 'm' );
$unixmonth = $dt->setDate( $thisyear, $thismonth, 1 )->getTimestamp();
$last_day = gmdate( 't', $unixmonth );

✅ Confirmed Result:

On 2025-07-31 22:37 JST, this code correctly yields:

$thisyear = 2025
$thismonth = 7
$last_day = 31

This provides accurate calendar generation behavior, aligned with local timezone settings.

Please consider updating get_calendar() to use timezone-aware logic in future versions to prevent subtle bugs in calendar rendering for international users."	smilkobutawp
1	57955	wp_localize_jquery_ui_datepicker parsing general settings date_format wrong		Date/Time	6.1.1	normal	minor	Awaiting Review	defect (bug)	new	changes-requested	2023-03-20T10:23:54Z	2023-03-20T19:08:16Z	"Hi,

I found that function **wp_localize_jquery_ui_datepicker** under wp-includes/script-loader.php isn't formatting **date_format** right.

**date_format** settings may include scaped characters as in spanish: ""j \d\e F \d\e Y""
and this function using php **str_replace** isn't having in consideration that posibility so we end up having: ""d \dd\e MM \dd\e yy""

Expected output should be: ""d \d\e MM \d\e yy""

[https://developer.wordpress.org/reference/functions/wp_localize_jquery_ui_datepicker/ wp_localize_jquery_ui_datepicker]

Thanks,



"	naamb
1	49414	wp_read_image_metadata should look for timezone offset		Date/Time		normal	normal	Awaiting Review	defect (bug)	new		2020-02-12T08:00:57Z	2020-02-15T19:56:57Z	"Related: #49413

This function should look for where cell phones and cameras store timezone offset data.

Storing the time as a timestamp is a mistake as the time in exif data is minus the timezone and in whatever time the device was set to, it would have been better to store as a formatted time as converting to timezone means that everything is off.

EXIF supports storing timezone offset in several places, if there we should use it, otherwise assume site timezone.

"	dshanske
1	16478	"""Get Shortlink"" button disappears if you edit the permalink"		Editor	3.0	normal	normal	Future Release	defect (bug)	reviewing	has-patch	2011-02-07T08:44:02Z	2021-09-22T13:25:54Z	"Go to edit a post and change the permalink. The ""Get Shortlink"" button is overwritten by the AJAX response. I think it's a simple case of moving where the shortlink is added, see patch."	solarissmoke
1	53029	'separate_items_with_commas' does not display in Block editor meta section		Editor	5.7	normal	normal	Awaiting Review	defect (bug)	new		2021-04-14T11:24:54Z	2022-01-06T15:53:02Z	"I made a custom taxonomy and changed the label for 
{{{
'separate_items_with_commas'
}}}
but the value I entered does not display in the block editor.

I checked with the forum and it was discovered that it displays in the old editor but not the new.

[https://wordpress.org/support/topic/separate_items_with_commas-not-showing-in-ui/]"	imconfused4sure
1	47187	<!--more--> tag on same line as content prevents any edits to that line	SergeyBiryukov*	Editor	5.2	normal	normal	Awaiting Review	defect (bug)	accepted	has-patch	2019-05-08T17:42:54Z	2020-11-23T02:56:44Z	"Hi,

We have noticed a bug in WordPress that prevents any edits to the line with a <!--more--> tag if the tag is on the same line at the end, like so:

{{{
Test. <!--more-->

Test2
}}}

If you enter this into Text mode, then switch to Visual mode and move the cursor right after ""Test."" you won't be able to insert any characters.

I tested this on 5.1 and 5.2."	archon810
1	54907	After upgrading to 5.9 I get blank screens when trying to edit or add posts		Editor	5.9	normal	normal	Awaiting Review	defect (bug)	new		2022-01-25T23:09:34Z	2022-02-07T18:00:16Z	"I upgraded eturbonews.com to 5.9 and now I can no longer add or edit posts.
It gives a white blank screen.

I tried various browsers.
I changed the theme.
I disabled plug ins

Nothing helps."	eTurboNews
1	31416	An accessibility issue with the Publish metabox		Editor	4.1.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2015-02-22T22:03:33Z	2025-12-03T17:33:23Z	"Taking a closer look at the Publish metabox for posts I realise that it has what I would call a bug. Take a look at the image attached. It tells me a post is published, while it's still asking for confirmation to be published. This screen shows up when first a post is set to private -and so gets published privately- and next is set to public, without hitting the 'Publish' button.

The post is actually published privately, which should show up as it's status, as it normally does. It tells me though it's published (which impies it should be published publicly).

I stumbled upon this, while I was searching for a more intiutive solution for inexperienced posters on one of my sites to post privately. I found two threads in forums which adress this issue:

https://wordpress.org/support/topic/how-to-set-new-post-visibility-to-private-by-default?replies=14

http://wordpress.stackexchange.com/questions/118970/set-posts-of-a-custom-post-type-to-be-private-by-default

Neither of threads mention (or seem to be aware?) of this shortcoming, while both try to solve the same issue I'm having. I question whether this problem can be solved, while the Publish metabox has such shortcomings.

I hope that by fixing this little bug, it might actually be possible to create a more accessisble Publish metabox for guests on a site, maybe by a hack or plugin, but preferably within the WP core files.

[[Image(http://www.basbva.nl/wp-content/uploads/2015/02/publish-metabox-bug.jpg)]]"	basbva
1	44310	Apostrophe and/or Hyphen in Titles Rendered as &#8217; and &#8211; When Added as Link in Editor		Editor	4.9.6	normal	normal	Awaiting Review	defect (bug)	reopened		2018-06-05T19:08:28Z	2023-10-23T20:54:27Z	"I searched but did not see this issue reported previously.

When an apostrophe and/or a hyphen is present in a blog post title or page title and those posts are added as links using the Insert Link option in the WordPress Editor, the apostrophe and hyphen are rendered as the following:

- An apostrophe in a title is rendered as &#8217; in the Link Text (see attached images)
- A hyphen (which is surrounded by spaces) in a title is rendered as &#8211; in the Link text (see attached images)

I have tested on a vanilla WordPress 4.9.6 install with no other plugins active both on live installs on two different servers and a local development server and can reproduce this consistently.

"	midihead
1	41511	Attachment page URL not created correctly for image uploaded directly to library before being added to post		Editor	4.8	normal	normal	Awaiting Review	defect (bug)	new		2017-08-01T10:11:55Z	2018-03-22T20:36:13Z	"=== To replicate: ===

1. Visit Media ->Add New and upload a media file
2. Visit Posts ->Add New
3. Click Add Media
3. Select the media file previously uploaded and set Link To setting to Attachment Page
4. Publish the post
5. View post and click on image

=== What I expected: ===

To be taken to the attachment page for the image

=== What happened instead: ===

I got a Page not found error. Additionally the URL is formed as `http://SITE_URL/FILE_SLUG/` which is not the correct format for media attachment pages.

I went back to the editor, clicked the image and clicked the edit icon. The Link To setting now shows that I have a Custom URL set instead of Attachment Page.

Updating the setting to attachment page again changes the URL to `http://SITE_URL/YEAR/MONTH/POST_SLUG/FILE_SLUG/` 

If I now update the post, I can click the image to view the attachment page.

=== Context: ===

Reported via the [http://en.forums.wordpress.com/topic/problems-with-images-and-attachment-page-custom-url-settings WordPress.com support forums], but I've confirmed it on a non-WordPress.com site as well."	kokkieh
1	49393	Author user role, Gutenberg add picture from someone else, rest_forbidden_context crash, image size crash		Editor	5.3.2	normal	normal	Awaiting Review	defect (bug)	new		2020-02-10T06:07:06Z	2020-10-25T04:43:08Z	"Login as a user with role Author (important, user editor works normaly).

Create post, add **existing picture from the gallery** to your article.
In the console you'll get an error : 
[[Image(https://i.ibb.co/Xpkh5zs/bug-wordpress.png)]]

/wp-json/wp/v2/media/11133?context=edit&_locale=user
{code: ""rest_forbidden_context"",

and you can't change the image size.

- User roles Editor and Admin are not affected.
- Uploaded picture by the Author are not affected.
"	debricon
1	45404	Autosave fails for custom post type item that belongs to a non-publicly_queryable post type		Editor	5.0	normal	normal	Future Release	defect (bug)	new		2018-11-23T13:34:35Z	2018-12-11T15:30:21Z	"To reproduce this create a CPT:

{{{#!php
<?php
function custom_post_type() {

	$labels = array(
		'name'                  => _x( 'Post Types', 'Post Type General Name', 'text_domain' ),
		'singular_name'         => _x( 'Post Type', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'             => __( 'Post Types', 'text_domain' ),
		'name_admin_bar'        => __( 'Post Type', 'text_domain' ),
		'archives'              => __( 'Item Archives', 'text_domain' ),
		'attributes'            => __( 'Item Attributes', 'text_domain' ),
		'parent_item_colon'     => __( 'Parent Item:', 'text_domain' ),
		'all_items'             => __( 'All Items', 'text_domain' ),
		'add_new_item'          => __( 'Add New Item', 'text_domain' ),
		'add_new'               => __( 'Add New', 'text_domain' ),
		'new_item'              => __( 'New Item', 'text_domain' ),
		'edit_item'             => __( 'Edit Item', 'text_domain' ),
		'update_item'           => __( 'Update Item', 'text_domain' ),
		'view_item'             => __( 'View Item', 'text_domain' ),
		'view_items'            => __( 'View Items', 'text_domain' ),
		'search_items'          => __( 'Search Item', 'text_domain' ),
		'not_found'             => __( 'Not found', 'text_domain' ),
		'not_found_in_trash'    => __( 'Not found in Trash', 'text_domain' ),
		'featured_image'        => __( 'Featured Image', 'text_domain' ),
		'set_featured_image'    => __( 'Set featured image', 'text_domain' ),
		'remove_featured_image' => __( 'Remove featured image', 'text_domain' ),
		'use_featured_image'    => __( 'Use as featured image', 'text_domain' ),
		'insert_into_item'      => __( 'Insert into item', 'text_domain' ),
		'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),
		'items_list'            => __( 'Items list', 'text_domain' ),
		'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),
		'filter_items_list'     => __( 'Filter items list', 'text_domain' ),
	);
	$args = array(
		'label'                 => __( 'Post Type', 'text_domain' ),
		'description'           => __( 'Post Type Description', 'text_domain' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor' ),
		'taxonomies'            => array( 'category', 'post_tag' ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'show_in_admin_bar'     => true,
		'show_in_nav_menus'     => true,
		'can_export'            => true,
		'has_archive'           => true,
		'exclude_from_search'   => false,
		'publicly_queryable'    => false,
		'capability_type'       => 'page',
		'show_in_rest'          => true,
	);
	register_post_type( 'post_type', $args );

}
add_action( 'init', 'custom_post_type', 0 );
}}}

Then create an item and publish. After the item is saved, edit the title and wait until the autosave is triggered. The autosave fails without any JS error.

Also if you make the CPT set ""public"" to false but ""publicly_queryable"" to true and create and publish an item after I refresh the editor I get the following JS error:


{{{
TypeError: Cannot read property 'prefix' of null
    at PostLink (edit-post.js?ver=3.1.2:4769)
    at ph (react-dom.min.js?ver=16.6.3:97)
    at eg (react-dom.min.js?ver=16.6.3:125)
    at fg (react-dom.min.js?ver=16.6.3:126)
    at wc (react-dom.min.js?ver=16.6.3:138)
    at fa (react-dom.min.js?ver=16.6.3:137)
    at gg (react-dom.min.js?ver=16.6.3:135)
    at Ca (react-dom.min.js?ver=16.6.3:133)
    at Object.enqueueSetState (react-dom.min.js?ver=16.6.3:191)
    at ComponentWithSelect.q.setState (react.min.js?ver=16.6.3:20)
}}}


"	kmgalanakis
1	58432	"BUG: Custom Core Block Variation details not updated in ""Settings Sidebar"" section"		Editor		normal	major	Awaiting Review	defect (bug)	new		2023-05-31T06:10:30Z	2025-05-12T01:38:09Z	"**Issue:**

When adding a custom **core block variation**, the details ( title, icon, description ) are not updated in the **""Settings Sidebar""** section. Hence there is no way to distinguish between custom core block **variations** and core **blocks** once a block is added.

**How to reproduce:**

1. Add support for block variations to your existing theme.

{{{

function prefix_editor_assets() {
	wp_enqueue_script(
		'prefix-block-variations',
		get_template_directory_uri() . '/assets/js/blocks/block-variations.js',
		array( 'wp-blocks' )
	);
}
add_action( 'enqueue_block_editor_assets', 'prefix_editor_assets' );

}}}


2. Create a custom **core block variation**


{{{
wp.blocks.registerBlockVariation(
	'core/group',
	{
	    name: 'card-group',
	    title: 'Card group',
            description: 'A group with card styling',
            label: 'Card group',
            icon: 'wordpress',
            attributes: {
	       className: 'card-group',
            },
            innerBlocks: [
                [ 'core/heading', { content: '' } ],
                [ 'core/paragraph', { content: '' } ],
            ]
	}
);

}}}

3. Check inside editor for new core block variation.

4. Add new core block variation and check the siderbar with the block selected.

Attaching pic & screen recording of the issue as well.


Note: I used the following tutorial by **Carolina Nymark** to create the variation
https://fullsiteediting.com/lessons/block-variations/



"	deepakvijayan
1	56080	Block Editor Search Function Choke		Editor	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-06-27T20:10:32Z	2022-06-27T20:10:32Z	"The WP block editor has a problem in the search function. When in editor, using a search function in the add link box, WP sends out so many requests that the server cpu gets backed up, chokes the webpage, makes it inaccessible in a 508 or 503 resource limit stop.  This is new with wp 6.0.  

Using he classic editor this does not happen. Searches in classic are rather prompt, as is adding tags in classic, rather quick.  Switched to classic editor to avoid constant sever/cpu chokes while composing.

WP needs to address this issue as the block editor is unusable on a low end server hosting package. Hosts just want to sell a bigger package, which is not necessary for a simple blog.  "	willburpig
1	53785	Block Styles dropdown should use 'Default' instead of 'Not set'		Editor		normal	normal	Awaiting Review	defect (bug)	new	close	2021-07-26T14:41:11Z	2025-07-09T20:43:34Z	"Issue: 
After registering a new Block Style to the WordPress Core Paragraph block I noticed the text used in the dropdown states ''""Not set""'' instead of ''""Default""'', which is used as a caption in the image. This is confusing to (new) users.

Proposed solution: 
Change the text in the dropdown into ''default''. This matches the image caption and clearly indicates that this style is the default style. "	BjornW
1	46655	Block editor adding line breaks between blocks		Editor	5.1	normal	minor	Awaiting Review	defect (bug)	new		2019-03-26T13:09:51Z	2020-09-24T09:50:37Z	When a post is created in the block editor the generated HTML receives 3 line breaks in between blocks. This isn't much of an issue in the browser but the line breaks are also inserted into feeds which are then displayed in some RSS readers.	jchristopher
1	61018	Block editor color selector displays incorrect color information		Editor	6.5	normal	minor	Awaiting Review	defect (bug)	new		2024-04-16T16:34:29Z	2024-04-16T16:34:29Z	"I'm loading my own color palette to the theme.json.

The colors are dynamic and retrieved from the DB. These colors can have any valid CSS value for a color.

So a color value in the palette can actually take the value of another color from the same palette by using `var(--wp--preset--color--another-color)`.

This creates a bug in the Block Editor. Although the color is displayed in the palette and it keeps its identifier, when you choose it the checked color will be the one it is making reference to, and the name and color displayed at the top will be those from the referenced color instead of the selected one.

Also, you cannot deselect the color by clicking again on it.

Let me set a simplified example of my code:

{{{#!php
<?php
function filter_theme_json_theme( WP_Theme_JSON_Data $theme_json ): WP_Theme_JSON_Data {
	$palette = array(
		array(
			'name'  => 'Greeen',
			'slug'  => 'green',
			'color' => '#55C42D',
		),
		array(
			'name'  => 'Pink',
			'slug'  => 'pink',
			'color' => 'var(--wp--preset--color--green)',
		),
	);
	$new_data = array(
		'version'  => 2,
		'settings' => array(
			'color' => array(
				'defaultPalette' => false,
				'palette'        => $palette
			),
		),
	);

	return $theme_json->update_with( $new_data );
}
add_filter( 'wp_theme_json_data_theme', 'filter_theme_json_theme' );
}}}

With this we'll have two theme colors displayed in the color selector in the Block Editor (Gutenberg). Both color circles will be green as it is supposed to be.

Everything will work as expected for the first color (Green).

When you click on the second color, the selection border will appear on the second color, but the checkmark will appear on the first color.

The preview displayed on top will be:


{{{
[#55C42D background]
Green
#55C42D
}}}


But it should be:


{{{
[#55C42D background]
Pink
var(--wp--preset--color--green)
}}}

Clicking again on the second color will not deselect it either.

The tooltip when the cursor is on the second color displays 'Pink', as expected.

Saving the post will correctly store the pink. If you change now its value on the previous code to another color (without using `var()`) and reload the editor page, you will see how the color changes, so there is no problem with the association.

**So what it needs a fix is:**

1. Checkmark appearing on the wrong color.
2. Color preview information
3. Color not being able to be deselected by clicking again.

I understand that using `var()` instead of a color format wasn't an expected usage, however there are cases where this makes sense. I may have for example a primary, secondary, and accent color. And then I may have other colors such as 'Background', 'Button', 'Text', 'Link On Hover', etc. These are being used as utility colors and are meant to reference one of the already defined colors and not to have their own custom value."	gerardreches
1	59896	Block editor default styles not loaded when stylesheet with the same name as the theme is registered		Editor	6.4	normal	normal	Future Release	defect (bug)	new	reporter-feedback	2023-11-13T16:59:09Z	2023-12-18T21:42:36Z	"I've got a custom theme that lives in a directory called ""coderpad"". Inside the theme I load a custom stylesheet with the handle ""coderpad"" which is registered via the ""init"" hook and enqueued via the ""wp_enqueue_scripts"" hook. I don't load any sort of custom editor styles as part of this theme. 

After upgrading to WordPress 6.4 the block editor fails to load any default styles. The content in the editor looks like a big wall of text without any formatting. My simple workaround is to only register the stylesheet when it's not an admin request:


{{{
if ( ! is_admin() ) {
    wp_register_style(
        'coderpad',
	get_template_directory_uri() . '/assets/css/coderpad.min.css',
	array(),
	null,
	'all'
    );
}
}}}

This issue also appears to not happen if I rename the stylesheet handle to something like ""coderpad-foo""

Here are two screenshots of what is happening: https://imgur.com/a/kgKkrmw

I'm not sure if there is logic somewhere that detects if a stylesheet with the same handle as the theme directory is registered then don't load default styles but thought I would post about this unexpected behavior. "	kingkool68
1	65876	Block style variations emit a duplicate copy of the same CSS for every block instance		Editor	7.0.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-14T07:04:05Z	2026-08-14T07:10:13Z	"`wp_render_block_style_variation_support_styles()` mints a fresh instance class for every block that uses a block style variation, and enqueues a complete copy of that variation's CSS for each one. The generated CSS is identical apart from the instance number, so a page with N blocks sharing a variation ships N copies of the same rules.

In `src/wp-includes/block-supports/block-style-variations.php`, line 112 on trunk:

{{{
$variation_instance = wp_unique_id( $variation . '--' );
$class_name         = ""is-style-$variation_instance"";
}}}

The variation data is read from the merged theme.json and its `ref` values are resolved against that same tree. Nothing block-specific is involved, so for a given block type and variation the generated CSS is identical every time apart from the scope class.

== Steps to reproduce ==

 1. Activate Twenty Twenty-Five with no plugins active.
 2. Create a page containing 20 Button blocks, each using the Outline style:

{{{
<!-- wp:button {""className"":""is-style-outline""} -->
<div class=""wp-block-button is-style-outline""><a class=""wp-block-button__link wp-element-button"">Button 1</a></div>
<!-- /wp:button -->
}}}

 3. View the page on the front end and inspect the `<style id=""block-style-variation-styles-inline-css"">` element.

== Expected behaviour ==

One copy of the variation's rules, shared by every block using it.

== Actual behaviour ==

One full copy per block instance, under `is-style-outline--2`, `is-style-outline--3`, `is-style-outline--4` and so on.

||=  Outline buttons on page  =||=  Inline CSS  =||=  Rules emitted  =||=  Distinct rules  =||
||  3  ||  1,663 bytes  ||  6  ||  2  ||
||  20  ||  10,782 bytes  ||  40  ||  2  ||

Growth is linear and unbounded. Normalising the instance number collapses all of it to the same two rules.

There is no rendering difference: computed border colour, width, background and padding are identical no matter how many copies are emitted. This is purely wasted payload.

== Proposed fix ==

Reuse the previous instance only when the immediately preceding variation instance is the same one. Nothing else was emitted in between, so re-emitting would be a no-op in cascade terms and the class can safely be shared. Anything interleaved forces a fresh instance, so current ordering is preserved exactly.

== Why a broader dedupe is unsafe ==

Caching by variation slug for the whole request looks like the obvious fix, but it silently breaks the cascade. Every variation rule is wrapped in `:where()`:

{{{
:root :where(.wp-block-button.is-style-outline--2 .wp-block-button__link) { ... }
}}}

so all variation rules share the same specificity and source order alone decides which one wins. The per-instance class is what places a nested variation's styles after its ancestor's.

Tested with two `core/group` variations that style paragraphs differently, `demo-a` red and `demo-b` blue, laid out as a standalone A followed by a B containing an A:

||=  Implementation  =||=  Emission order  =||=  Inner paragraph  =||
||  trunk today  ||  `demo-a--2 -> demo-b--3 -> demo-a--4`  ||  red (correct)  ||
||  cache by slug  ||  `demo-a--2 -> demo-b--3`  ||  blue (wrong)  ||

With the slug cache the nested `demo-a` reuses the class emitted before `demo-b`, so `demo-b` wins and the paragraph changes colour.

Worth noting for anyone verifying: Twenty Twenty-Five's own section styles set descendant colours with `currentColor`, so nesting `section-1` inside `section-2` produces byte-identical descendant rules and shows no visible change even when the ordering is broken. Testing against the bundled section styles alone would wrongly suggest the slug cache is safe.

== Results with the proposed fix ==

||=  Case  =||=  Before  =||=  After  =||
||  3 outline buttons  ||  1,663 bytes / 6 rules  ||  593 bytes / 2 rules  ||
||  20 outline buttons  ||  10,782 bytes / 40 rules  ||  593 bytes / 2 rules  ||
||  Nested section styles  ||  6,130 bytes / 58 rules  ||  unchanged, byte for byte  ||
||  Nested `demo-a` / `demo-b`  ||  inner paragraph red  ||  still red  ||

Known limitation: an alternating `A B A B` sequence still emits a copy per instance. Fully deduplicating would require collecting variations during render and emitting them ordered by nesting depth rather than document order, which is a considerably larger change.

== Related ==

Reported against the Gutenberg plugin at https://github.com/WordPress/gutenberg/issues/81583, with a plugin-side PR at https://github.com/WordPress/gutenberg/pull/81609. The same code path exists in core, and the issue reproduces with the Gutenberg plugin deactivated.

== Environment ==

Tested on WordPress 7.0.4, Twenty Twenty-Five 1.5, PHP 8.3, with no plugins active other than, separately, the Gutenberg plugin for comparison.
"	sanket.parmar
1	50146	Blocks: `serialize_block()` doesn't support `WP_Block_Parser_Block`		Editor	5.3.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-05-11T18:07:28Z	2021-03-20T07:40:58Z	"`serialize_block()` is documented as accepting a `WP_Block_Parser_Block`, but it treats the passed value as an array. Because `WP_Block_Parser_Block` doesn't implement `ArrayAccess`, passing one to `serialize_block()` generates a fatal error.

The attached patch would allow instances of `WP_Block_Parser_Block` to be used with `serialize_block()` by casting them to arrays. It would make the same change to `filter_block_kses()`, which exhibits the same mismatch in behavior.

If adding support for `WP_Block_Parser_Block` to these functions is seen as too risky from a perspective of maintaining compatibility with future iterations on block parsing, then simply changing the DocBlocks on these two functions might instead be the way to go."	dlh
1	56859	Blocks: register_block_script_handle() does not account for symlinks		Editor	6.0.3	normal	normal	Awaiting Review	defect (bug)	new		2022-10-20T00:05:06Z	2022-10-20T00:24:27Z	"I love the fix added by #55513 and #54647 to detect if a block is being registered from a theme and to alter the enqueued URI appropriately. However, the way that a theme block is detected does not take symlinks into account. I have all of my custom themes/plugins in one location in my file system, and I symlink the folders I'm working on into a local WP install. I imagine there are other scenarios where a symlink might be used for theme folders as well.

The output of `wp_normalize_path( get_theme_file_path() )` is the location of my local WP install:

/Users/coryhughart/Dev/web/local/website/app/public/wp-content/themes/website-theme

The output of `wp_normalize_path( realpath( dirname( $metadata['file'] ) . '/' . $script_path ) )` is the original path to the theme outside of the WP install:

/Users/coryhughart/Dev/Blackbird/Client/website.com/website-theme/dist/blocks/hero/script.js

Obviously symlink resolution is part of what `realpath` does. Is there a similar function/solution that could expand the path without resolving symlinks? Or is symlinking outside the scope of what is expected in a WordPress environment?
"	cr0ybot
1	58709	Bug 6.3 beta-3: Black screen when selecting blocks in List view outside the block editor viewport.		Editor		normal	major	Awaiting Review	defect (bug)	new		2023-07-04T06:06:04Z	2025-05-12T01:38:11Z	"When using the List View in the block editor, if a block is not currently visible in the viewport of the editor, selecting that block from the List View results in a black screen.

Steps to Reproduce:
- Install WordPress **6.3 Beta-3**.
- Create a new post or page.
- Add multiple blocks, ensuring that some of them are not currently visible within the viewport of the block editor.
- Switch to List View to see the list of blocks.
- Choose ""Select"" from Tools.
- Attempt to select a block from the List View that is not currently visible in the viewport.

Screenshot - https://share.getcloudapp.com/p9uZbOz2"	abhijitnage
1	64967	Bug report – Whitespace / non-breaking spaces removed after save in Gutenberg		Editor		normal	normal	Awaiting Review	defect (bug)	new		2026-03-27T15:19:17Z	2026-04-06T07:59:40Z	"Hello,

I would like to report a critical regression observed in recent WordPress versions (likely introduced in an update around January or February 2026), related to Gutenberg.

🔴 Issue

When editing content in Gutenberg, spaces are removed after saving, resulting in:

words being concatenated
significant readability degradation
extremely time-consuming manual fixes for editorial teams

The issue is not immediately deterministic, but consistently appears after multiple saves or autosaves.

🔁 Steps to reproduce
Copy text from:
Microsoft Word
Google Docs
Paste into a Gutenberg paragraph block
Edit content normally
Save (or let autosave run multiple times)

👉 Observed result after some time:

spaces between certain words disappear
text becomes “merged” without separation
🧪 Expected behavior
Spaces (including &nbsp; / \u00A0) should be preserved
No alteration of text content after saving
❌ Actual behavior
Silent removal of certain spaces
Incorrect conversion or loss during parsing / serialization
Cumulative effect over multiple saves
🧠 Technical analysis (hypotheses)

Several factors may be interacting:

1. Trim / DOM cleanup conflict
Some functions treat \u00A0 as removable whitespace
Aggressive cleanup at end of nodes or before closing tags
2. Double normalization issue
Browser inserts &nbsp;
Gutenberg attempts conversion to raw text (JSON serialization)
Mapping fails → fallback to empty string """"

👉 Result: character is lost entirely

3. Gutenberg input rules
Automatic transformations (typing / paste handling)
Interaction with RichText and normalization pipeline
4. blockGap / layout engine
Dynamic spacing injection via blockGap
Resolved before styles → difficult to override
May interfere with or mask whitespace behavior
🌍 Scope
Observed across multiple WordPress installations
Reproduced on:
Chrome
Firefox
Independent of:
OS
theme

👉 This strongly suggests a Gutenberg core issue, not environment-specific

📉 Impact
Critical for editorial websites
Degradation of published content quality
High manual correction cost
Potential SEO impact (readability, UX)
❓ Questions
Is a fix currently planned or in progress in Gutenberg?
Is there any temporary patch or filter available?
Is it possible to disable aggressive whitespace normalization?
🛠️ Workarounds tested (not reliable)
Pasting as plain text → reduces issues but does not fully solve them
Manual proofreading → too time-consuming
CSS fixes → ineffective (issue affects content, not rendering)
📌 Conclusion

This appears to be a recent regression in the Gutenberg parsing / serialization pipeline, likely related to improper handling of non-breaking spaces (\u00A0).

The bug is difficult to isolate precisely, but clearly reproducible and affecting multiple production environments.

Thank you in advance for your help 🙏
Happy to provide additional tests or a reproducible environment if needed."	testwp75
1	64088	Button to add a post tag breaks into new line in German translation		Editor	2.8	normal	minor	Awaiting Review	defect (bug)	new	close	2025-10-09T11:20:22Z	2025-10-10T01:48:27Z	"Hi there,

I noticed that in the German translation the ""Add Post Tag"" button breaks into a new line in the ""Tags"" widget on post pages. This is due to the 180px fixed width of the input field and the translated word ""Hinzufügen"" being significantly longer than the original ""Add"".

This can be easily reproduced on a new install with the German translation activated in the settings and the ""Classic Editor"" plugin installed. I understand that reproducing this bug requires the external plugin, but since the faulty CSS is still located in the Core, I would suggest it being fixed here.

Please have a look at the attached screenshots of the English and German widgets to see the problem."	stromhalm
1	55509	CSS conflict in Custom Fields table		Editor	5.9.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-03-31T21:33:26Z	2022-04-29T09:49:44Z	"When using the [https://wordpress.org/support/article/custom-fields/ Custom Fields] feature, there are two conflicting CSS styles.

More specifically the background-color in the following CSS bit:


{{{
#postcustomstuff table {
  margin: 0;
  width: 100%;
  border: 1px solid #dcdcde;
  border-spacing: 0;
  background-color: #f6f7f7;
}
}}}


with the background-color in the following CSS bit:

{{{

.alternate, .striped > tbody > :nth-child(2n+1), ul.striped > :nth-child(2n+1) {
  background-color: #f6f7f7;
}
}}}


resulting in all rows of the table in div#postcustomstuff to have the same background color (#f6f7f7)"	princeofabyss
1	62030	Can't Access Some Block Templates in Classic Themes		Editor	6.6.2	normal	normal	Awaiting Review	defect (bug)	new		2024-09-10T19:02:48Z	2024-09-23T03:02:40Z	"In classic themes that have the `block-templates` theme support I've found that block templates with certain names become unmanageable after creation. This seems to be because their slugs are special or reserved in some way. 
The two names I've found so far are ""home"" and ""archive"".

If you create a block template with these names, they are still used on the frontend as normal. However, they do not appear in the list of templates you can edit and trying to access them from the template editor's command palette leads to an error reporting: ""The theme you are currently using is not compatible with the Site Editor.""

This means that I can create a template that will potentially get used as my site's archive template, but I cannot edit or remove it.

I would expect any block template I can create in a classic theme through the template editor to be manageable from there as well. 
Otherwise, if I shouldn't be able to manage these templates, then I shouldn't be able to create them either.

**My Test Environment**
- WordPress: 6.6.2
- PHP: 8.1.9
- MySQL: 8.0.16
- Theme: Twenty Twenty One with `block-templates` theme support added.
- Plugins: none

**Steps to Reproduce**
- Create a new page.
- Click the template button.
- Choose to create a new template.
- Name the template ""archive""
- Save the template. (you may see an error that saving failed)
- Check the wp_posts table for a new wp_template post, see that the ""archive"" template is in the table.
- Load an archive page on your site, see that the new ""archive"" block template is being applied. 
- Go back to editing the page and refresh the page
- Click the template button.
- The ""archive"" template just created does not appear here and cannot be edited.

Here is a video of the issue as well: https://www.loom.com/share/005335d1ca0e4869b4980976f96a6a5b"	woodardmc
1	61664	Can't insert a reusable block and other problems		Editor		normal	critical	Awaiting Review	defect (bug)	new		2024-07-17T02:37:12Z	2024-07-17T02:37:12Z	"Hello, I cannot insert a reusable block, I changed the theme and the problem persists. Some plugins do not load, which worked fine before the new version. I can't do anything on my site right now.

TY

Dalia"	daliasued
1	60317	Cannot select an author from dropdown due to truncated users list		Editor		normal	normal	Awaiting Review	defect (bug)	new		2024-01-22T14:19:54Z	2025-03-02T17:28:24Z	"Hello team!

Currently, when we have over 50 users with same email signatures, e.g. over 50 users with email `@zemail.com` (with usernames starting with characters preceding z), and there is a user with username `zemail`, the user `zemail` can never appear in the dropdown since the request made by the dropdown
`http://<wordpress-link>/index.php?rest_route=%2Fwp%2Fv2%2Fusers&context=view&who=authors&per_page=50&_fields=id%2Cname&search=zemail&_locale=user` is sorted alphabetically.

This makes it impossible for the user to be selected as an author of a new post.
Would the search be better limited to usernames?"	yanksyoon
1	59087	Can’t Paste Markdown Into WP 6.3 Gutenberg, Old Posts are Wonky		Editor	6.4.3	normal	normal	Awaiting Review	defect (bug)	new		2023-08-13T01:25:29Z	2024-02-06T21:10:51Z	"Not sure if this is a bug, but you can’t paste markdown into WP 6.3 Gutenberg. I mean you can paste it in the editor, but the page will be all screwy and uneditable.

Also, all old posts where you previously pasted markdown are similarly messed up, many block errors, uncentered images, can’t edit, etc.

I replicated this by creating a new post and just adding one block at a time, everything works fine.

I then created a new post and pasted in markdown like I have been doing for years all the way up through WP 6.2.2, and the post was completely messed up and uneditable again.

I sure hope they fix tihs! I write all of my posts in Obsidian using markdown and then paste them into the block editor. If I can no longer do this, no way I’ll ever upgrade to 6.3 again … had to roll back to 6.2.2 to fix everything."	hmnvtn
1	54040	Changing element text or background color should only affect color		Editor	5.8	normal	normal	Awaiting Review	defect (bug)	new		2021-08-31T11:40:02Z	2021-09-07T13:33:39Z	"Page elements get unintended padding when changing background or font color, violating the [https://en.wikipedia.org/wiki/Principle_of_least_astonishment principle of least astonishment].

In effect, the end-user is expecting that a change to the background color would have only one outcome. Instead, there is a second side-effect where the element gets padding. 

Padding is added to many elements via CSS selectors that mostly target "".has-background,"" such as the following.

- https://github.com/WordPress/WordPress/blob/8df663cbfafedd6e594c3df8101e6085dfe18035/wp-includes/blocks/heading/style.css#L76-L78
- https://github.com/WordPress/WordPress/blob/8df663cbfafedd6e594c3df8101e6085dfe18035/wp-includes/blocks/heading/style-rtl.css#L76-L78
- https://github.com/WordPress/WordPress/blob/8df663cbfafedd6e594c3df8101e6085dfe18035/wp-includes/blocks/list/style.min.css#L1
- https://github.com/WordPress/WordPress/blob/8df663cbfafedd6e594c3df8101e6085dfe18035/wp-includes/blocks/list/style-rtl.min.css#L1
- https://github.com/WordPress/WordPress/blob/270f2011f8ec7265c3f4ddce39c77ef5b496ed1c/wp-content/themes/twentytwentyone/assets/sass/05-blocks/group/_editor.scss#L18-L23
- https://github.com/WordPress/WordPress/blob/8df663cbfafedd6e594c3df8101e6085dfe18035/wp-includes/blocks/list/style-rtl.css#L72-L74
- https://github.com/WordPress/WordPress/blob/8df663cbfafedd6e594c3df8101e6085dfe18035/wp-includes/blocks/list/style.css#L72-L74
- https://github.com/WordPress/WordPress/blob/8df663cbfafedd6e594c3df8101e6085dfe18035/wp-includes/blocks/paragraph/style-rtl.css#L101-L103
- https://github.com/WordPress/WordPress/blob/8df663cbfafedd6e594c3df8101e6085dfe18035/wp-includes/blocks/paragraph/style.css#L101-L103
- https://github.com/WordPress/WordPress/blob/270f2011f8ec7265c3f4ddce39c77ef5b496ed1c/wp-content/themes/twentytwentyone/assets/sass/05-blocks/rss/_editor.scss#L104-L107
- https://github.com/WordPress/WordPress/blob/270f2011f8ec7265c3f4ddce39c77ef5b496ed1c/wp-content/themes/twentytwentyone/assets/sass/05-blocks/rss/_style.scss#L104-L107
- https://github.com/WordPress/WordPress/blob/8a11188d0f5728bc9bbdf331ff9174d45b1768a6/wp-content/themes/twentytwentyone/assets/sass/03-generic/vertical-margins.scss#L159-L161
- https://github.com/WordPress/WordPress/blob/270f2011f8ec7265c3f4ddce39c77ef5b496ed1c/wp-content/themes/twentytwentyone/assets/sass/05-blocks/paragraph/_editor.scss#L4-L6
- https://github.com/WordPress/WordPress/blob/1a7033e75ff6b5911b2b9d34ceee38e80084b85e/wp-content/themes/twentytwentyone/assets/sass/05-blocks/query-loop/_style.scss#L3-L8
- https://github.com/WordPress/WordPress/blob/1a7033e75ff6b5911b2b9d34ceee38e80084b85e/wp-content/themes/twentytwentyone/assets/sass/05-blocks/query-loop/_editor.scss#L3-L7
- https://github.com/WordPress/WordPress/blob/270f2011f8ec7265c3f4ddce39c77ef5b496ed1c/wp-content/themes/twentytwentyone/assets/sass/05-blocks/paragraph/_style.scss#L6-L8
- https://github.com/WordPress/WordPress/blob/0a2b52dfeb4e28e4ff3714899a2890a779c3748f/wp-content/themes/twentytwentyone/assets/sass/05-blocks/latest-posts/_style.scss#L112-L115
- https://github.com/WordPress/WordPress/blob/8df663cbfafedd6e594c3df8101e6085dfe18035/wp-includes/blocks/preformatted/style.css#L75-L77
- https://github.com/WordPress/WordPress/blob/8df663cbfafedd6e594c3df8101e6085dfe18035/wp-includes/blocks/preformatted/style-rtl.css#L75-L77
- https://github.com/WordPress/WordPress/blob/8df663cbfafedd6e594c3df8101e6085dfe18035/wp-includes/blocks/group/editor.css#L83-L86
- https://github.com/WordPress/WordPress/blob/8df663cbfafedd6e594c3df8101e6085dfe18035/wp-includes/blocks/group/editor-rtl.css#L83-L86
- https://github.com/WordPress/WordPress/blob/c3ea09ebb8034be04f42e5aaf5f523cbead7e2a4/wp-includes/blocks/columns/style.css#L85-L87
- https://github.com/WordPress/WordPress/blob/c3ea09ebb8034be04f42e5aaf5f523cbead7e2a4/wp-includes/blocks/columns/style-rtl.css#L85-L87
- https://github.com/WordPress/WordPress/blob/0638de4c60de0d9cf800ca887177b67ba8ad68f0/wp-content/themes/twentynineteen/style-editor.scss#L868-L880
- https://github.com/WordPress/WordPress/blob/270f2011f8ec7265c3f4ddce39c77ef5b496ed1c/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css#L496-L498"	brylie
1	48787	"Classic Editor user interface CSS inconsistencies when toggling ""Enable full-height editor ..."""		Editor	5.2	normal	normal	Future Release	defect (bug)	assigned	has-patch	2019-11-25T10:28:30Z	2026-11-07T20:30:31Z	"Splitting this out from #47477 after @johnjamesjacoby's feedback.

When toggling the ""Enable full-height editor and distraction-free functionality"" setting, it appears the Classic Editor toolbar gets some CSS rules that make it look inconsistent depending on the state of the setting.

Part of these inconsistencies are new in WordPress 5.3, while other inconsistencies can be reproduced on WordPress 5.2 thus are pre-existing to the recent CSS changes.

Please refer to the attached animated GIFs below for better clarity.

- #48101 changed the border color of various ""boxes"" in the admin from `#e5e5e5` to `#ccd0d4`. In the Classic Editor, seems that the new color applies only to the toolbar top border and only when ""Enable full-height ..."" is on. 
- The other toolbar borders and the bottom padding change when toggling the setting also on WordPress 5.2. Not sure this is intentional or if there's a good reason to have a different styling. I'd tend to think these are probably inconsistencies happened over time that should be fixed.

Worth noting the Classic Editor will still be supported for a couple years but it's not meant to get new functionalities or improvements. Only bug fixes will be addressed. Personally, I'd be in favour of fixing these inconsistencies because they don't appear to be terribly complicated and the fix won't likely break anything. I'd also suggest to use the new border color `#ccd0d4` for better contrast."	afercia
1	56039	Classic Editor: Current selection is not preserved when switching Visual to Text editor		Editor		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-06-22T11:58:49Z	2023-04-19T13:25:23Z	"Plugin: Classic Editor

== Problem

In some cases (when formatting HTML attributes is disabled), the current selection when switching Visual to Text editor is not preserved. The selected text gets unselected and the editor does not jump to the previous selection position.

This is because the regular expression is not appropriate.

**Line 774 in `wp-admin/editor.js`**
The regular expression to find the selection position is:
{{{#!js
var startRegex = new RegExp(
  '<span[^>]*\\s*class=""mce_SELRES_start""[^>]+>\\s*' + selectionID + '[^<]*<\\/span>(\\s*)'
);
}}}

This works well with:
{{{#!xml
<span class=""mce_SELRES_start"" style=""display: inline-block; ..."">
}}}

However, it does not work **when ""class"" is the last attribute**:
{{{#!xml
<span style=""display: inline-block; ..."" class=""mce_SELRES_start"">
}}}

----


== Solution

Changing `+`(1 or more) to `*`(0 or more) in the regular expression makes it work.

`wp-admin/editor.js`

**Line 775**
{{{#!js
'<span[^>]*\\s*class=""mce_SELRES_start""[^>]+>\\s*' + selectionID + '[^<]*<\\/span>(\\s*)'
}}}
↓
{{{#!js
'<span[^>]*\\s*class=""mce_SELRES_start""[^>]*>\\s*' + selectionID + '[^<]*<\\/span>(\\s*)'
}}}

**Line 779**
{{{#!js
'(\\s*)<span[^>]*\\s*class=""mce_SELRES_end""[^>]+>\\s*' + selectionID + '[^<]*<\\/span>'
}}}
↓
{{{#!js
'(\\s*)<span[^>]*\\s*class=""mce_SELRES_end""[^>]*>\\s*' + selectionID + '[^<]*<\\/span>'
}}}"	shge
1	60396	Color Picker picks color by hex value		Editor		normal	normal	Awaiting Review	defect (bug)	new		2024-01-31T10:01:25Z	2024-01-31T10:01:25Z	"If the theme contains colors which have same values but different name and slug, then if one of these colors is applied in editor, Colors declared first in theme.json is applied to the element.

This will cause bug incase the style of Website is changed.
"	anonymized_18474634
1	55142	Custom, external or 3rd party styles are not loaded inside the preview iframe		Editor	5.9	normal	normal	Awaiting Review	defect (bug)	new		2022-02-11T12:10:29Z	2022-02-11T12:10:29Z	"Hello,

Unfortunately, you messed a lot of things with the new iframe editor preview, conditional you set are ""crazy"" and work only for your cases otherwise you blocked or removed any custom/external/3rd party scripts.

In this file src/components/iframe/index.js you made function **styleSheetsCompat** and that function has 2 problems:
1. If we include any external CSS file that file will not be loaded because of this case
{{{
try {
	// May fail for external styles.
	// eslint-disable-next-line no-unused-expressions
	styleSheet.cssRules;
} catch ( e ) {
	return;
}
}}}

External files on Chrome browser will be blocked and cssRules result will be ""Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules at CSSStyleSheet"" - https://stackoverflow.com/questions/48753691/cannot-access-cssrules-from-local-css-file-in-chrome-64/49160760#49160760

Please check Google Font file issue - https://imgur.com/a/SPIPNvZ

2. The Second problem is 3rd party styles or theme custom styles. In the same file -> same function -> you can find this piece of code
{{{
const isMatch = Array.from( cssRules ).find(
	( { selectorText } ) =>
		selectorText &&
		( selectorText.includes( `.${ BODY_CLASS_NAME }` ) ||
			selectorText.includes( `.${ BLOCK_PREFIX }` ) )
);
}}}
where
{{{
const BODY_CLASS_NAME = 'editor-styles-wrapper';
const BLOCK_PREFIX = 'wp-block';
}}}

If we have for example 3rd party style - Swiper.css you will block it because inside that file there is no **editor-styles-wrapper** or **wp-block** classes as selector https://www.screencast.com/t/YxASDqA97u0 and that file will not be executed/loaded. 

The same issue is with any custom theme or plugin styles that don't contain these classes. In my case, I have several CSS files which don't contain these classes and all files are blocked.

Could you please consider changing this logic or adding some hooks/JS variables so we can be able to extend/change or add our items?

Best regards,
Nenad Obradovic"	Nenad Obradovic
1	50648	Different behavior for default category term with editors		Editor	5.5	normal	normal	Awaiting Review	defect (bug)	new		2020-07-13T13:42:14Z	2021-04-09T19:28:35Z	"During some tests related to #43517 I found a different behaviors on how default `category` term is handled with block/classic/quick/REST API/XML-RPC API editors.
I haven't found similar ticket on trac, so sorry in advance if it's a duplicate and you have already experienced a similar thing 

Here are the test I've done with table of results.

=== New post with empty `category` taxonomy

||= Editor =||=`category` result =||
||Block||`Uncategorized`||
||Classic||`Uncategorized`||
||Quick||`Uncategorized`||
||REST API||`Uncategorized`||
||XML-RPC API||`Uncategorized`||

=== Updating post by removing all `category` terms

||= Editor =||= `category` result =||= Notes =||
||Block||—||||
||Classic||`Uncategorized`||||
||Quick||`Uncategorized`||||
||REST API||—||This can be done by explicitly setting `categories` key to an empty string.||
||XML-RPC API||`Uncategorized`||This cannot be done through XML-RPC interface||

=== Updating a post there doesn't has any `category` terms (and without changing that taxonomy)

||=Editor=||= `category` result =||
||Block||`Uncategorized`||
||Classic||`Uncategorized`||
||Quick||`Uncategorized`||
||REST API||`Uncategorized`||
||XML-RPC API||`Uncategorized`||

This different behaviour seems to be related to block editor that send taxonomy fields values only if they have been changed.
And if you remove all categories, block editor will send explicitly an empty array: REST post controller calls `wp_set_object_term()` a second time in `handle_terms()` method: so it's the why the empty array will remove all terms.
This isn't currently possible with classic/quick/XML-RPC API editors.

The problem is with custom taxonomies as well.
"	enrico.sorcinelli
1	60225	Directional Keyboard Scrolling Jump Bug		Editor	6.4.2	normal	normal	Awaiting Review	defect (bug)	new		2024-01-10T14:09:36Z	2024-01-23T11:49:14Z	Before 6.4, scrolling through your content in the edit post page using keyboard behaved normally, the cursor moved either one line (up/down) or character (left/right) with the entire editor moving. With 6.4, keyboard scrolling makes the entire classic editor page jumps either to top or bottom depending on the position and direction. See video below attached.	samikip
1	61058	Edit Permalinks, Date, Time and Visibility not working on 6.5.2		Editor	6.5	normal	normal	Awaiting Review	defect (bug)	new		2024-04-23T15:54:57Z	2024-06-20T04:11:10Z	"Hi,

There are multiple issues with Edit functionality on Classic Editor after I updated WordPress to 6.5.2.

I'm unable to Edit the URL, Date & Time and Visibility once I published the post.
The Edit button & edit links are not clickable.

The edit function is working once I revert back to version 6.4.4"	struckzero
1	39574	Editor patterns: add empty headings/quotes		Editor	4.3	normal	normal	Future Release	defect (bug)	new		2017-01-13T14:49:16Z	2019-07-18T06:46:04Z	"Currently some patterns normally only work if there's other text after the leading character(s). I you type `## Test` and press enter, a new h2 element will be created. If you type `##` followed by zero or more spaces, no heading is added and the `##` stays ""normal"" text. I think this is and should be the intended behaviour, so no empty elements are created.
But if yout enter `## Test`, then move the cursor between `##` and Test followed by pressing enter, an empty heading will be created and the resulting html looks like this:
{{{
<h2></h2>
Test
}}}
Until switching to the text editor and back, you are not able to add text to the heading because it doesn't show up in visual mode.

When doing the same with `>`, it doesn't create an empty blockquote, but removes the leading char. The visual editor is then adding an additional line of whitespace, where you can't put your cursor in. This line disappears also after switching to text mode and back.

I've tested with WP 4.3 and 4.7.1.
"	mahu2401
1	61270	Error notice Updating failed. The response is not a valid JSON response.		Editor	6.5.3	normal	critical	Awaiting Review	defect (bug)	new		2024-05-22T15:48:22Z	2024-05-22T15:48:22Z	"There's an error notice when saving a draft on WordPress. 

""Error notice Updating failed. The response is not a valid JSON response.""

This occurred today, 5/22/2024 at 8am. I am using the latest WordPress version. "	franknez888
1	55271	Featured Image Section Disappears In Block Editor		Editor		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-02-28T05:37:56Z	2025-05-12T01:37:55Z	For some reason, the Featured Image Section just plain disappears in the Block Editor.  I have to download the Classic Editor Plugin to see it.  I thought this was a one time problem but it's a constant one when using WordPress 5.9.1	zennie62
1	45370	Filter Issue blocks.registerBlockType		Editor	5.0	normal	normal	Future Release	defect (bug)	new		2018-11-18T12:48:48Z	2019-01-12T12:36:59Z	"My developer tells me there are changes regarding this filter within the latest Gutenberg release not yet added to WP5 beta

blocks.registerBlockType

We are using this for block visibility controls for 3rd party blocks."	davedunn
1	62624	Fix global styles for Separator blocks when theme defines non-background colors		Editor	6.9	normal	normal	Future Release	defect (bug)	new	has-patch	2024-12-02T07:19:29Z	2025-10-30T21:52:50Z	"This ticket tracks the backport of PHP files for the following Gutenberg updates:

https://github.com/WordPress/gutenberg/pull/67269

These updates include a fix so a user's selection of background color for the Separator block in Global Styles is honored regardless of whether a theme also defines non-background colors for that block.

Further background and context is available within the original issue:

- https://github.com/WordPress/gutenberg/issues/57297
"	aaronrobertshaw
1	62871	Font Library Install Fonts not accessible after migrating website		Editor	6.7.1	normal	normal	Awaiting Review	defect (bug)	new		2025-01-27T12:10:13Z	2025-01-27T12:10:13Z	"I need to test this more to find scenarios where the issue occurs. But at the moment if I make a website locally, then migrate it to a live or staging link, I'm not able to access the Install Fonts tab on the WP Font Library. The editor throws an error. 

I have a side-by-side comparison, of the same website with a default theme and no active plugins running, showing that the local site (which was created first), can access Install Fonts, and the staging site, which cannot access Install Fonts.

 https://start2finishmarketing-my.sharepoint.com/:v:/g/personal/luke_seager_s2fmarketing_co_uk/EcEgh7k9qjxNvCF69QJG1rMBZOBm5FgZ8kVdgGAlJyFuCQ?nav=eyJyZWZlcnJhbEluZm8iOnsicmVmZXJyYWxBcHAiOiJPbmVEcml2ZUZvckJ1c2luZXNzIiwicmVmZXJyYWxBcHBQbGF0Zm9ybSI6IldlYiIsInJlZmVycmFsTW9kZSI6InZpZXciLCJyZWZlcnJhbFZpZXciOiJNeUZpbGVzTGlua0NvcHkifX0&e=5B97Hn

In the console, all requests complete with a 200 status and are the same on both local and live/staging sites in terms of requests and responses. 

I wondered if the issue was to do with the 'allow access to Google fonts' button that shows the first time you try to Install Fonts, but I don't think this is the case. I deleted a Google Fonts transient from my staging sites database just in case it was related in some way, but it made no difference. 

As I say, I need to test more scenarios, but this seems to be a definite scenario where the Install Font view can't be accessed."	lukeseager
1	49857	Groups disappear after inserting something inside it in Gutenberg		Editor	5.4	normal	normal	Awaiting Review	defect (bug)	new		2020-04-09T08:41:57Z	2020-04-09T16:10:16Z	"**Description:**

Since upgrading to 5.4, when I create a group using the Gutenberg editor, and then add something inside, the **group disappears from the UI**, but it remains in the source code.

As we use this feature everyday as part of our company workflow, this bug is seriously affecting our daily operations as it causes layout havoc when we try to display an article's contents.

This bug is related to ticket #49748.

**Actions taken so far:**

- Flushed browser cache
- Ensured that assets are not cached
- Reinstalled WP 5.4
- Disabled all plugins


**Steps to reproduce:**

1. Create a new post (this issue also occurs on existing articles, but this bug is more easily highlighted in a blank article).

2. Create a new group.

3. Click on the (+) to add, say, a paragraph within it.

4. The group completely disappears from the editor, only the paragraph can be interacted with. The group no longer appears on the outside of the inserted paragraph, as it used to be in WP 5.3. The group itself still exists in the code editor."	ple33
1	63113	Gutenberg bug for non latin		Editor	6.7.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2025-03-16T11:42:11Z	2025-03-17T20:19:37Z	"Hi,
When I go to edit the pages ""Properties"" in Greek, it gives me this message. ""You attempted to edit an item that doesn't exist. Perhaps it was deleted?"" 
When i deactivate Gutenberg and activate Classic editor the page is editable normally.
Is there any prospect of solving this problem from WordPress?
thanks"	art7
1	47971	HTML markup bugs when using custom HTML editor		Editor		normal	normal	Awaiting Review	defect (bug)	new		2019-09-04T15:10:26Z	2019-09-04T15:52:30Z	"Bonjour,

Je hurle. Ca fait 10 versions que ce bug n'est toujours pas corrigé ! Quand on utilise à l'ancienne un seul champ pour les articles et pages et qu'on fait de l'édition HTML, l'éditeur rajoute des balises à la volée en ajax avant même que l'on est fini de terminer son code de fermeture de balise par exemple. Pire quand il manque une balise il fait des copier coller hallucinants de codes qui peuvent se répéter jusqu'à 10 fois partout : ce qui  oblige à se retaper tout le code de la page pour enlever les dizaines d'ajouts inutiles mis à la volée par WordPress. Ce qui devait partir d'une bonne intention est en fait une catastrophe. Il n'est plus possible d'éditer le code html et à la moindre erreur toute la page est à refaire par le code rajouté..

Merci de corriger ce problème qui pour moi est très grave. Editer le code html à la main dans WordPress, c'est une base. 


Hello,

I scream. It's 10 versions that this bug is still not fixed! When using an old field for articles and pages and making the HTML edition, the editor adds tags on the fly in ajax even before we are done finishing his code of tag closure for example. Worse when it misses a tag it makes copy glue hallucinating of codes that can be repeated up to 10 times everywhere: which forces to retype all the code of the page to remove the dozens of useless additions put on the fly by WordPress. What had to start from a good intention is actually a disaster. It is no longer possible to edit the html code and the slightest error the whole page is to be redone by the code added ..

Thank you for correcting this problem which for me is very serious. Edit html code by hand in WordPress is a base."	nantesweb
1	60075	Heading-Level Tooltip prevents from selecting a level		Editor	6.4.2	normal	normal	Awaiting Review	defect (bug)	new		2023-12-14T18:54:34Z	2024-02-13T12:09:09Z	"It now happened a few times that I wanted to change the heading level, but when the tooltip is visible, it is overlaying the next level, making it (sometimes) not clickable/selectable.

[[Image(https://ekesto.com/wordpress/wp-content/uploads/2023/12/Screenshot-2023-12-14-at-19.48.37.jpg)]]"	ekesto
1	63608	Hooked blocks not inserted		Editor	6.8	normal	normal	Awaiting Review	defect (bug)	new		2025-06-20T13:55:06Z	2025-07-07T15:32:13Z	"Hooked blocks (whether registered via block.json or the hooked_block_types filter) are registered correctly, but are not inserted. 

To reproduce:
- Create a new block plugin using `npx @wordpress/create-block copyright-date-block --template @wordpress/create-block-tutorial-template`
- Edit the block.json (copyright-date-block/src/block.json) and add the following:
`""blockHooks"": {""core/post-author"": ""after""},`
- Build the plugin using `npm run build`
- Log into WordPress and activate the Copyright Date Block plugin
- Create a new post or page, insert the ""Author"" block into the content and save the post

At this point, the copyright date block should have been automatically added after the author block, however that doesn't happen. 

The post content in the database will look something like this:

{{{
<!-- wp:post-author {""metadata"":{""ignoredHookedBlocks"":[""create-block/copyright-date-block""]}} /-->
}}}

ie, the ignoredHookedBlocks metadata has been added, but the actual block has not. "	leewillis77
1	51449	Image caption missing after saving in multisite with non super administrator account		Editor	5.5.1	normal	major	Awaiting Review	defect (bug)	new		2020-10-05T08:21:56Z	2025-03-05T18:27:15Z	"I created a new multisite environment and create a new post with a plugin classic editor activated. Edit using the Editor account, adding media, and add caption then save the post. Switch to the HTML tab and back to Visual tab, the caption will be gone.

I can confirm this of not happening just to me but also to my client which originally reported the issue."	gochisiyan
1	54439	In block editor for page/post setting, the 'P' not showing properly inside the drop-down		Editor		normal	normal	Awaiting Review	defect (bug)	assigned		2021-11-14T06:54:51Z	2021-11-14T18:05:33Z	"
Steps to reproduce: 
1. Create/edit any page/post. 
2. Go to settings and observe the drop-down value for the template. 

https://nimb.ws/IPKapT"	pavanpatil1
1	54587	In some gutenberg blocks the styles setting is not displaying image.		Editor	5.8.2	normal	normal	Awaiting Review	defect (bug)	new		2021-12-06T12:41:51Z	2021-12-06T12:41:51Z	"I am using the wordpress latest version and in all the themes, the gutenberg block having styles setting is not displaying img/text. 

Steps to reproduce:
1. Add Quote block.
2. Now in settings section the styles section has 2 options default and large.
3. But this both options are not displaying the image.

I am attaching the images of this issue. Thank you."	smit08
1	59149	Inconsistent Behaviour of Block Editor while Adding/Searching for Blocks		Editor	6.3	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2023-08-19T05:56:17Z	2026-01-21T15:38:22Z	"WP Version 6.3

I'm facing an strange issue while searching the fields from the block editor.
When I'm at the end of page or when scroll to end of page then I'm trying to search a custom block it suddenly jump from its position. for details refer the below video url for same.

https://www.awesomescreenshot.com/video/20061317?key=12384a49ae5e729e95556d9498c1a107
  "	dhruval04
1	50110	Incorrect property docblocks in WP_Block_Type	peterwilsoncc	Editor	5.0	normal	minor	Awaiting Review	defect (bug)	assigned		2020-05-07T10:08:41Z	2021-02-09T05:33:50Z	"In the class WP_Block_Type the docblocks declare `@var #TYPE#` for several properties of the class. 

Below I will use `attributes` as an example, but this counts for all the following properties:
- render_callback
- attributes
- editor_script
- script
- editor_style
- style


The docblock defines that the property must be a certain value ('array' in the case of attributes), but it is not set in the constructor and is optionally set in the `set_props()` method, if `args` has been supplied with the correct property.

{{{#!php
/**
 * Block type attributes property schemas.
 *
 * @since 5.0.0
 * @var array
 */
public $attributes;
}}}

This allows the property to be null, which conflicts with de docblock.

== Proposed solution(s)

=== 1. Declare default value:
This might change behavior, where null is expected (see `get_attributes()` for example) 

{{{#!php
/**
 * Block type attributes property schemas.
 *
 * @since 5.0.0
 * @var array
 */
public $attributes = array();
}}}

=== 2. Add possible null to docblock
This would lead might lead to other conflicts, such as using the the null value as an array without a type check.

{{{#!php
/**
 * Block type attributes property schemas.
 *
 * @since 5.0.0
 * @var array|null
 */
public $attributes;
}}}

=== 3. Do not declare @var
The `set_props()` method currently does not do any type checking, so in theory all the properties listed above are `mixed`.

''(intentionally borked example)''
{{{#!php
new \WP_Block_Type( 'name', array( 
    'attributes' => 'This is not an array.'
) );
}}}

This places responsibility of type checking on implementing code, which would be most 'correct' with the current `set_props()` method."	nielsdeblaauw
1	36159	Inserting Image on iOS Doesn't Respect Cursor Position		Editor	4.2	normal	normal	Future Release	defect (bug)	new		2016-03-07T16:18:59Z	2019-06-05T07:07:40Z	"When using Press This as a launch pad to edit a longer blog post, additional images added are inserted at the top of the post, rather than in the space in which the cursor has been placed.

Here's a quick video displaying the issue. http://www.screencast.com/t/NtdCWRoJsWI

"	mrjarbenne
1	54220	Issue with link tool in block editor		Editor	5.8.1	normal	normal	Awaiting Review	defect (bug)	new		2021-10-04T22:30:42Z	2021-10-06T02:48:00Z	After updating to 5.8.1, the link tool doesn't always work correctly. After I enter the text and press enter to add a link, it only links some of the words I highlighted. This is happening in Chrome on a Mac desktop. I haven't been able to recreate the issue on a PC. 	kristinelm
1	58145	JS error: Uncaught ReferenceError: Element is not defined		Editor	6.2	normal	normal	Awaiting Review	defect (bug)	new		2023-04-17T13:20:21Z	2023-11-22T12:35:42Z	"I've got a console error on editor level

uncaught ReferenceError: Element is not defined
 
file: wp-polyfill-inert.js 
line:30 


{{{
(function () {
    // Return early if we're not running inside of the browser.
    if (typeof window === 'undefined') {
      return;
    }

    // Convenience function for converting NodeLists.
    /** @type {typeof Array.prototype.slice} */
    var slice = Array.prototype.slice;

    /**
     * IE has a non-standard name for ""matches"".
     * @type {typeof Element.prototype.matches}
     */
    var matches = Element.prototype.matches || Element.prototype.msMatchesSelector;
}}}

suggestion
{{{
(function () {
    // Return early if we're not running inside of the browser.
    if (typeof window === 'undefined' || window?.Element) {
      return;
    }

    // Convenience function for converting NodeLists.
    /** @type {typeof Array.prototype.slice} */
    var slice = Array.prototype.slice;

    /**
     * IE has a non-standard name for ""matches"".
     * @type {typeof Element.prototype.matches}
     */
    var matches = Element.prototype.matches || Element.prototype.msMatchesSelector;
}}}
"	jankyz
1	41130	Link boundaries for links contaning images look bad		Editor	4.8	normal	normal	Future Release	defect (bug)	new		2017-06-22T18:31:40Z	2017-11-20T22:59:27Z	"In 4.8, the new link boundaries were introduced. For normal links they are fine and they highlight the link really nice.

But if there's an image (inline-block element) in the link, the link boundaries look quite ugly. This is the case when you embed an image from the media library. The following code was used to generate the screenshot:

{{{
[caption id=""..."" align=""alignnone"" width=""300""]<a href=""IMAGE_FILE""><img class=""size-medium ..."" src=""IMAGE_FILE"" alt=""Test"" width=""300"" height=""200"" /></a> Test[/caption]
}}}

If you click on the image, two narrow link boundary markers appear above and below the image (see screenshot). These are taking up extra vertical space, so the image 'jumps' a bit.

Maybe it would be the best to disable the link boundary feature for links containing only images, in my opinion they don't provide any useful information and may irritate the user."	mahu2401
1	54051	Making a sentence or paragraph bold is intermittent		Editor	5.8	normal	normal	Future Release	defect (bug)	new		2021-09-01T13:16:09Z	2025-05-12T01:37:52Z	When I highlight a sentence and attempt to bold it, only part of the sentence gets bold. I then highlight and press bold again and might get the full sentence bold. Sometimes I have to go through this process a number of times to make the sentence bold. This slows me down and is a bug.	MikeLev
1	62894	Media Library functionality in the block editor causes CSP 'unsafe-eval' error		Editor	6.7.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-02-02T00:31:21Z	2025-02-06T18:07:49Z	"Trying to change a page post's featured image or attempting to ""Open Media Library"" action on `wp:image` blocks in the block editor causes the following error:

{{{
[react-dom.min.js?ver=18.3.1:10] Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: ""script-src https: 'self' 'unsafe-inline'"".

    at new Function (<anonymous>)
    at Function.template (underscore.min.js?ver=1.13.7:2:15243)
    at n.template (wp-util.min.js?ver=6.7.1:2:328)
    at n.render (wp-backbone.min.js?ver=6.7.1:2:2895)
    at n.attach (media-views.min.js?ver=6.7.1:2:86078)
    at n.open (media-views.min.js?ver=6.7.1:2:86461)
    at i.2836._.each.s.<computed> [as open] (media-views.min.js?ver=6.7.1:2:83610)
    at d.openModal (media-utils.min.js?ver=e10cc6bfcff4fe474479:2:5562)
    at n.<computed> (components.min.js?ver=130172abbae720694b1f:19:24767)
    at Object.Xa (react-dom.min.js?ver=18.3.1:10:105719)

template @ underscore.min.js?ver=1.13.7:2
(anonymous) @ wp-util.min.js?ver=6.7.1:2
render @ wp-backbone.min.js?ver=6.7.1:2
attach @ media-views.min.js?ver=6.7.1:2
open @ media-views.min.js?ver=6.7.1:2
i.2836._.each.s.<computed> @ media-views.min.js?ver=6.7.1:2
openModal @ media-utils.min.js?ver=e10cc6bfcff4fe474479:2
n.<computed> @ components.min.js?ver=130172abbae720694b1f:19
Xa @ react-dom.min.js?ver=18.3.1:10
B @ react-dom.min.js?ver=18.3.1:10
W @ react-dom.min.js?ver=18.3.1:10
qe @ react-dom.min.js?ver=18.3.1:10
Ke @ react-dom.min.js?ver=18.3.1:10
(anonymous) @ react-dom.min.js?ver=18.3.1:10
dl @ react-dom.min.js?ver=18.3.1:10
V @ react-dom.min.js?ver=18.3.1:10
Je @ react-dom.min.js?ver=18.3.1:10
pe @ react-dom.min.js?ver=18.3.1:10
fe @ react-dom.min.js?ver=18.3.1:10
}}}

**Context/Notes:**
* UnderscoreJS does not seem willing to resolve this CSP vulnerability per https://github.com/jashkenas/underscore/issues/2995
* Gutenberg does not seem responsible per https://github.com/WordPress/gutenberg/issues/47619#issuecomment-2545695011
* CSP unsafe-inline has been discussed in depth on https://core.trac.wordpress.org/ticket/39941 and https://core.trac.wordpress.org/ticket/51407"	michelleblanchette
1	60998	Multiple block recovery error		Editor	6.5	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-04-12T05:18:14Z	2024-04-15T13:38:02Z	After updating WordPress to version 6.5 and 6.5.2, I saw that hundreds of blocks Gutenberg were in error. And I couldn't fix the bug.	fredericjaillet
1	55886	Need to check query loop block thumbnail issue in post template		Editor	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-06-01T07:13:26Z	2022-06-08T07:35:20Z	"In wordpress 6,We need to check query loop block thumbnail issue in post template row and stack arrangement.In both arrangment default post thumbnail width are not full width.So we need align it in full width.
Below i have shared video link:
https://share.cleanshot.com/kQrdSKDzVfIiK19MeHsh"	multidots1896
1	63537	New version blows up when i just try to copy text		Editor		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2025-06-05T17:23:32Z	2025-06-05T21:05:22Z	"The latest ""improvement"" is a wreck.........I need to learn to stop doing these upgrades. The mere act of swiping text in a draft and doing a Ctrl-C causes it to vomit. Here's the error:

TypeError: Cannot read properties of undefined (reading 'count')
    at uP (https://slopeofhope.com/wp-includes/js/dist/block-editor.min.js:21:781009)
    at ht (https://slopeofhope.com/wp-includes/js/dist/vendor/react-dom.min.js:10:45730)
    at Qs (https://slopeofhope.com/wp-includes/js/dist/vendor/react-dom.min.js:10:120536)
    at wl (https://slopeofhope.com/wp-includes/js/dist/vendor/react-dom.min.js:10:88637)
    at bl (https://slopeofhope.com/wp-includes/js/dist/vendor/react-dom.min.js:10:88565)
    at yl (https://slopeofhope.com/wp-includes/js/dist/vendor/react-dom.min.js:10:88428)
    at il (https://slopeofhope.com/wp-includes/js/dist/vendor/react-dom.min.js:10:85252)
    at fl (https://slopeofhope.com/wp-includes/js/dist/vendor/react-dom.min.js:10:85639)
    at Nn (https://slopeofhope.com/wp-includes/js/dist/vendor/react-dom.min.js:10:32474)
    at https://slopeofhope.com/wp-includes/js/dist/vendor/react-dom.min.js:10:83204"	timprophet
1	63153	Onscreen keyboard obscures post body and Custom Fields input on mobile		Editor	6.7.2	normal	normal	Awaiting Review	defect (bug)	new		2025-03-23T21:56:19Z	2025-09-01T16:51:40Z	"When keyboard focus enters the ""Value"" textarea for a Custom Field, the onscreen keyboard covers the field.

- Safari
- iOS 18.3.2
- WP 6.7.2
- Theme: Twenty Fifteen 3.9
- No plugins"	topdownjimmy
1	58815	Opinionated styles (add_theme_support(wp-block-styles)) set margin top to 0 for image and other blocks		Editor	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-07-16T23:53:36Z	2023-08-23T07:36:52Z	"Is `add_theme_support('wp-block-styles')` being deprecated in WP 6.3?  If not, maybe it needs to be updated.

The extra block styles include margin settings, for example
{{{
.wp-block-image {
   margin: 0 0 1em;
}
}}}

This is done for image, audio, embed, table or video blocks.

The top margin styling is overridden in WP 6.2 by styles with targeting such as
{{{
body .is-layout-flow > * + * {
   margin-block-start: var(–wp–preset–spacing–normal);
}
}}}
so the blocks get the `margin-top` which they require as per the page layout.

However, WP 6.3 changes the targeting of these styles to, for example
{{{
:where(body .is-layout-flow) > * {
   margin-block-start: var(–wp–preset–spacing–normal);
}
}}}
This is less specific, with the result that the `wp-block-styles` margin setting overrides it and will set the margin-tops to 0 for the above blocks.

This will affect existing content on many sites which use this `add_theme_support` and these blocks.

Twenty twenty-two theme is an example.

To test, create a page with a paragraph followed by an image, in twenty twenty-two theme."	aileenf
1	29643	Ordered List Problem When Switiching between Visual Editor and HTML editor		Editor	4.0	normal	normal	Awaiting Review	defect (bug)	new		2014-09-12T14:24:40Z	2026-10-26T16:08:56Z	"1. I create an ordered list in the Visual Editor.

2. I switch to the HTML editor so I can add a paragraph of text (or an image) within the ordered list, but NOT inside a list tag.

3. I return to the Visual Editor and notice something doesn't look right.

4. I go back to the HTML editor and see that my ordered list is now all messed up. Extra ordered list tags have been added that I don't want.

Here's the code from the HTML editor BEFORE I switched back to the Visual Editor:

{{{
<ol>
	<li>Ordered list item 1</li>
            Block of text inserted into list but not inside an li tag.
	<li>Ordered list item 2</li>
	<li>Ordered list item 3</li>
	<li>Ordered list item 4</li>
</ol>
}}}

Here's the code after switching to the Visual Editor and then back to the HTML editor:

{{{
<ol>
<ol>
	<li>Ordered list item 1</li>
</ol>
</ol>
Block of text inserted into list but not inside an li tag.
<ol>
	<li>Ordered list item 2</li>
	<li>Ordered list item 3</li>
	<li>Ordered list item 4</li>
</ol>
}}}"	pavankumarp
1	55039	Page template automatically changed when page is reload		Editor		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-02-02T06:36:21Z	2022-02-02T08:08:26Z	"I am noticing some issues with page and post templates in production site.
If I make an update on a page or a post that has a specific template, it reverts back to ""default template"".

Example: This page should have ""Card Review"" template, but it has automatically changed to ""default template"". If template is changed, it reverts again to ""default template"" after page reload. This is not normal behavior.

I have already updates wordpress version. current version is 5.9.

Thanks & Regards,
Sapna Vaghela."	sapnamonocept
1	58720	Page-Specific template in Site Editor detaches itself from the page when page slug is updated.		Editor		normal	normal	Awaiting Review	defect (bug)	new		2023-07-05T19:15:26Z	2023-10-31T03:16:11Z	"If the page slug is updated, the Page-Specific template that was created within the Appearance > Editor section will detach itself from the page.\\
\\
**Steps to Reproduce**\\
1. Create a new page.\\
2. Create a new page-specific template within Appearance > Editor specifically for the page you created.\\
3. Change the slug (URL) of the newly created page.\\
4. Upon changing the slug, you will notice that the page-specific template becomes detached from the page, meaning it is no longer associated with it."	talhaqureshi
1	51410	Patterns examples		Editor	5.5.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-09-29T09:29:27Z	2026-01-28T09:20:05Z	"Hi, 
There is no more patterns tab in Gutenberg menu if you doesn't create one pattern.
No more pattern examples."	eddystile
1	54913	Post / Update Post button does not work		Editor	5.9	normal	normal	Awaiting Review	defect (bug)	reopened		2022-01-26T05:18:55Z	2022-02-02T12:21:48Z	"Hi,

After updating the WordPress, I can no longer click on publish a new post or update the existing post button.

Kindly fix it, I am downgrading the version for now.

Reference SS: https://prnt.sc/26jfhco

Regards,"	couponzania
1	41732	Potential Core Issue		Editor	4.8.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2017-08-26T01:56:27Z	2020-11-16T06:53:16Z	"I posted [https://wordpress.org/support/topic/wordpress-core-issue/ this] a couple of weeks ago and I haven't heard anything so I assume its not in the ideal place.

I asked one of the developers of the products I initially thought the issue was associated with (and who have also recreated/tested this issue without their products present) for a suggestion and they recommended posting a ticket here.

I've been battling to narrow this problem down for a long time now. Over a year ago I discovered an issue which as it turns out impacts the editor view in visual mode. Sorry I don't recall the version this started happening in. I assume it was around 4.0

Initially I thought it was either the GeneratePress theme or Yoast SEO plugin however their support/developers have helped me to recreate the issue without their products installed.

I'm not sure why but at this stage the issue occurs using WordPress and twenty-sixteen theme when various types of content are present in visual mode but not when using the twenty seventeen theme to my knowledge.

After a load of time and testing the common denominator in all the tests is WordPress itself.

I attached an image below which shows the area in the code which fluctuates. It may help cut through some of the info and get to the problem.

There are a number of other attachments found within the associated thread above.

[https://1drv.ms/f/s!AjEGKOtzUwy1gclEHoZZ9-DCW52S4Q]

Thanks"	doubledworks
1	51989	Preview does not reflect layout change on published posts		Editor		normal	normal	Awaiting Review	defect (bug)	new		2020-12-09T12:19:58Z	2020-12-09T12:19:58Z	"Hello. I've been hoping this bug/oversight would be fixed for some years but it hasn't. When there is a post published in one particular layout format (e.g. three column, two columns or one column) and you decide to change the layout, you cannot preview your work unless you update the live version. 

So in a nutshell, I have hundreds of articles I published in the three column format with ads down the right column. I needed to redesign each article to get rid of the right column. This requires a complete re-edit. But when I edit one of the three column posts and change the three column layout to the one column layout - I cannot preview my work. The ""Preview Changes"" button continues to display the post in three columns. In order to edit a page in the new one column format I have to ""update"" the page. This means you have to post a live version of a half edited page, which is very undesirable.

Andy

PS I work in the classic editor so don't know if it's same in block editor"	XyZed
1	37829	Problem when adding a link and searching published articles		Editor	4.5	low	normal	Awaiting Review	defect (bug)	new		2016-08-25T17:47:28Z	2019-04-19T18:03:59Z	With WordPress 4.6 (was already in 4.5 actually), there’s a problem when you wanna put a link and search published articles. Here, if you search “iOS 9“, every article with iOS 9 in the title show up. Although, if you search “iOS 9.3.5“, nothing is found. Same thing with an apostrophe and maybe other punctuations.	Djibs13
1	59741	Public-facing content using Page template is not displaying (since Gutenberg plugin Version: 16.9.0)		Editor	6.3.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-10-26T05:01:27Z	2024-04-15T12:06:57Z	"I'm not sure if this is a Gutenberg plugin problem, or a Core problem (because the error is coming from wp-includes/post-template.php, so I am posting it here.  

I updated the Gutenberg plugin this afternoon, and the public-facing content that uses the Page template is no longer appearing to the public.  The title still displays to the public, and the content is still in the database and visible in the Admin area, but the Content block is not rendering properly to the public.  

This is the error displayed at the top of my content pages:  

Warning: Undefined array key -1 in /Users/[site-name]/Local Sites/vnb/app/public/wp-includes/post-template.php on line 330

Here's the relevant line of code on wp-includes/post-template.php


{{{#!php
<?php
 $page_no = $elements['page'];
	$content = $elements['pages'][ $page_no - 1 ];
	if ( preg_match( '/<!--more(.*?)?-->/', $content, $matches ) ) {
		if ( has_block( 'more', $content ) ) {
			// Remove the core/more block delimiters. They will be left over after $content is split up.
			$content = preg_replace( '/<!-- \/?wp:more(.*?) -->/', '', $content );
		}
}}}


This line in the above code version is line 330:  {{{#!php
<?php
$content = $elements['pages'][ $page_no - 1 ];
}}}


When I turned the WP Debug to true, this is the error that displayed:

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /Users/[site-name]/Local Sites/vnb/app/public/wp-includes/post-template.php on line 331


When I disabled the Gutenberg plugin, all of the error messages disappeared and the Content block resumed rendering properly to the public-facing side of the website pages.

Again, I am not sure if this is a core problem or a Gutenberg problem.

The content displayed properly when it was rendering through custom templates.  This problem seemed to happen on pages that used the Page template.

Thank you! "	tdmarsol
1	62734	Regression in custom CSS loading order for `wp_enqueue_global_styles()`		Editor	6.7	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2024-12-23T05:24:12Z	2026-10-22T18:57:56Z	"In changeset [58703] / #61395, the behaviour of the `wp_enqueue_global_styles()` function was altered as part of WordPress 6.7. This change affects how global styles' custom CSS is output.

Previous behaviour (Before 6.7):
Global styles' custom CSS was appended at the end of the inline CSS, ensuring it loaded after individual block styles.

Current behaviour (After 6.7):
Following the changes introduced in [58703], the custom CSS now loads before the individual block styles, potentially affecting styling and overriding expectations for CSS specificity and hierarchy."	mukesh27
1	50653	Remove the _doing_it_wrong from WP_Block_Patterns_Registry::unregister()		Editor	5.5	normal	normal	Future Release	defect (bug)	new	dev-feedback	2020-07-13T21:51:41Z	2020-07-26T01:50:07Z	"There's a `_doing_it_wrong()` call inside `WP_Block_Patterns_Registry::unregister()` when you try to unregister a block pattern that doesn't exist.

IMO this is incorrect usage of `_doing_it_wrong()` because the function hasn't been incorrectly called, it's just been called with invalid data.

----

In addition, the `register()` and `unregister()` functions in this class ought to be returning a `WP_Error` instead of boolean `false`. Should we improve this for 5.5?"	johnbillion
1	66046	Rename Editor to Edit Site in the Dashboard (for Block Themes)		Editor		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-09-04T12:24:12Z	2026-10-23T05:58:54Z	"In the Omnibar we link to the Site Editor with the text ""Edit Site"" but in the Dashboard it's called ""Editor"". We should align these two labels to be the same. I think that ""Edit Site"" is clearer than ""Editor"" so I propose we use that."	scruffian
1	55315	SVGs in editor (beta)		Editor	5.9.1	normal	normal	Awaiting Review	defect (bug)	new		2022-03-04T00:11:38Z	2022-03-04T00:11:38Z	When adding an SVG to the header as logo or image, it uploads fine (after installing an SVG plugin) and is displayed when viewing the site, but it disappears in the editor.	garnitchique
1	49443	Safari Browser - Component Color Picker not getting closed on Custom Color Picker button click		Editor	5.4	normal	normal	Awaiting Review	defect (bug)	new		2020-02-15T13:05:58Z	2025-07-25T14:27:02Z	"When I am trying to close color picker on the `**Custom color picker**` button click. It's not getting closed. It's working properly on **Chrome** browser but somehow not working on the **Safari** browser.

Here is a screencast :

Safari - https://share.getcloudapp.com/8LuJ49lP (Version-13.0.5)
Chrome - https://share.getcloudapp.com/Qwu762od (Version 80.0.3987.106)"	monikarao
1	53267	Search Form Doesn't Return Results Found in Reusable Blocks		Editor	5.7.2	normal	normal	Awaiting Review	defect (bug)	new		2021-05-24T19:07:50Z	2025-09-17T08:40:02Z	"Example...This page...

https://narrativiumreviews.com/the-colour-of-magic-persons-alphabetic/

...(and the entire site) uses Reusable Blocks extensively. The first such block on the Page referenced above is for ""Alohura"". A search, using the form in the sidebar, returns nothing for that term (Alohura).

All plugins are up-to-date as is the Astra theme. The Search Form is actually Ivory Search (which I just installed to see if it worked as needed), but the results are the same with the default WP form."	glsonn
1	48151	Setting featured image appears to use site URL instead of WordPress URL		Editor	5.2.3	normal	normal	Awaiting Review	defect (bug)	new		2019-09-26T13:56:15Z	2019-10-09T13:51:31Z	"Steps to reproduce:
- have a site with a different WordPress URL and site URL (i.e. our site uses WPML and is configured to have the English site on example.com and the Dutch site on example.nl)
- go to a page/post/custom post type
- try to set a featured image

WP does a fetch call to https://www.example.com/wp-json/wp/v2/media/2919?context=edit&_locale=user instead of https://www.example.nl/wp-json/wp/v2/media/2919?context=edit&_locale=user which fails because I am logged in to the .nl site, not the .com site

The request fails, no featured image is stored and the spinner keeps spinning."	ZanderZ
1	57095	Shortcode's query are executing at backend because of the_content filter		Editor	6.1	normal	normal	Awaiting Review	defect (bug)	new		2022-11-13T18:55:52Z	2022-11-15T04:37:33Z	"Steps to reproduce the issue & main issue description are available on this GitHub issue https://github.com/WordPress/gutenberg/issues/45732

I investigated this issue more and found a couple of new things.

So if you'll check the callers-tracks image, you'll see `block_editor_rest_api_preload` is being called, then from REST_API call `apply_filters('the_content')` being used and which I think executes the shortcode.


In file `wp-admin/edit-form-blocks.php`, I removed the `add_query_arg( 'context', 'edit', $rest_path )` on line no 65, after this change I don't see the issue.

After and before this change, I see changes in XHR requests, I am attaching both screenshots.


"	vijayhardaha
1	55254	Site Editor: Template Part Areas are not exported		Editor	5.9	normal	normal	Awaiting Review	defect (bug)	new		2022-02-24T20:32:43Z	2022-03-08T13:39:37Z	"To reproduce:
1. Open any block theme template in the Site Editor.
2. Add a Header block, with any content.
3. Save the template, and the template part.
4. Go into the database. You'll see the `wp_template` and `wp_template_part` post types, as well as the `wp_template_area` term all working well together.
5. Export the template and template part. Copy these to the theme, and reset any customizations.
6. See that the Header block is now a generic Template Part block.

Cause: During the export, the template part area is not added to the template part block.

The saved block might me something like `<!-- wp:template-part {""slug"":""header""} /-->`, but it needs to be `<!-- wp:template-part {""slug"":""header"",""area"":""header""} /-->`
"	anonymized_8769252
1	58085	Some dialogs are blurry on HiDPI devices		Editor	6.2	normal	normal	Awaiting Review	defect (bug)	new		2023-04-04T17:02:32Z	2025-05-12T01:38:07Z	"Some dialogs are scaling text instead of using hiDPI properly. The publish calendar and the link attachment dialog are blurry when they should not be. 

See attached file and note the difference between the two words marked ""Publish"""	stuartsweet
1	25886	Sortable items gets stuck when dragging over TinyMCE		Editor		normal	normal	Awaiting Review	defect (bug)	new		2013-11-08T22:37:45Z	2020-11-24T06:09:01Z	"When dragging a metabox over an active TinyMCE instance in a post/page edit screen, the metabox can get ""stuck"" (i.e., it stopping moving with the mouse). This only happens with TinyMCE and not the ""Text"" textarea.

'''To reproduce:'''

1. Uninstall plugins
1. Install a default theme (I used Twenty Thirteen)
1. Go to ''Pages > Add New''
1. If it is not activated already, click the ""Visual"" tab to activate the TinyMCE instance
1. Grab the featured image metabox to activate the sortable (i.e., drag and drop) functionality
1. Move the box over the TinyMCE area
1. Continual movement over the area will cause it to get stuck

The following screen grab shows how the cursor separates from the metabox as it gets stuck:

[[Image(http://f.cl.ly/items/0j2s0f2f2D3M2e393P3K/Screen%20Shot%202013-11-08%20at%202.33.36%20PM.png)]]

It's kinda hard to understand it with that image, so here's a movie that shows the issue:

http://f.cl.ly/items/1B151E3N0i3j092Z062m/broken-drag-and-drop.mov

I have tested this in Safari, Firefox, and Chrome on OS X. All browsers produce the same issue. The issue persists with MP6 as well."	tollmanz
1	55803	Span is removed from title due page saving		Editor	5.9.3	normal	normal	Future Release	defect (bug)	new		2022-05-24T12:31:54Z	2025-05-12T01:37:57Z	"Hello,

since the update to wordpress 5.9 we detected some strange behavior, when editing existing posts, that contains HTML-Tags in their post title.
The problem is, when editing the post, the HTML-Tags in the post title, are not displayed in the editor. The tags are just cutted out from the title. This problem have only editor group, admin group is ok with saving span in title.

Steps to reproduce:

1. Create a new post with HTML-Tags in the title for example: ""<span>This is my title</span>""
2. Save and publish the post with this title
3. Go back to the ""All posts"" list
4. Post is correctly displayed with ""<span>This is my title</span>"" in the list
5. Edit the post
6. post title lost the <span>-Tags
7. Change the post title to ""This is my title 2"" 
8. Save the post
9. <span>-Tags are totally gone, even in the ""All posts"" list."	joyster
1	66199	Style Engine collapses significant whitespace inside quoted CSS strings		Editor		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-09-28T03:38:00Z	2026-10-05T12:54:26Z	"The Style Engine keeps a declaration's value twice: once as the value it was given, and once as the CSS it compiles. The two disagree when the value contains a run of whitespace inside a quoted string, because every value is filtered through `wp_strip_all_tags( $value, true )`, whose second argument replaces each run of `\r`, `\n`, `\t` or space with a single space.

== Reproduction ==

A font family whose name contains two spaces, which needs nothing but core:

{{{#!php
<?php
$styles = wp_style_engine_get_styles(
    array( 'typography' => array( 'fontFamily' => '""My  Font"", sans-serif' ) )
);

$styles['declarations']['font-family'];  // ""My  Font"", sans-serif
$styles['css'];                          // font-family:""My Font"", sans-serif;
}}}

The serialized CSS no longer names exactly the family that was supplied, so it may match a different family or fall back. Nothing reports that the value was changed.

== Where it happens ==

`WP_Style_Engine_CSS_Declarations::filter_declaration()`:

{{{#!php
<?php
$filtered_value = wp_strip_all_tags( $value, true );
}}}

and in `wp_strip_all_tags()`:

{{{#!php
<?php
if ( $remove_breaks ) {
    $text = preg_replace( '/[\r\n\t ]+/', ' ', $text );
}

return trim( $text );
}}}

The helper's `$remove_breaks` parameter is documented as removing ""left over line breaks and white space chars"", so this behavior is consistent with its contract. It is unsafe for CSS values where whitespace inside a quoted string is data rather than formatting, and the Style Engine applies it to every declaration it writes.

== How this came up ==

While adding `font-variation-settings` in [https://github.com/WordPress/wordpress-develop/pull/13789 #13789] (Trac #66198). The [https://learn.microsoft.com/en-us/typography/opentype/spec/dvaraxisreg OpenType Design-Variation Axis Tag Registry] defines an axis tag as four bytes beginning with a letter, and allows a tag with fewer than four letters or digits to be padded with trailing spaces, so `""abc ""` and `""a   ""` are valid tags. Accepting them produced this:

{{{
value given:   array( 'a   ' => 12 )
declarations:  font-variation-settings: ""a   "" 12
compiled CSS:  font-variation-settings: ""a "" 12
}}}

`""a ""` is a different tag from `""a   ""`, so the axis is not the one that was asked for.

That pull request now refuses a padded tag. That is a limit rather than a fix: it keeps the Style Engine from writing a tag other than the one requested, and it leaves WordPress unable to carry a space-padded axis tag at all. The tags in ordinary use are four characters, so the practical cost is small, but the reason it was chosen is this ticket.

== Scope ==

This is not specific to typography. Any CSS value whose meaning depends on repeated whitespace inside a quoted string is affected, and the family-name case above needs no new feature to reproduce.

I am not proposing a particular fix here, because the call sits on the path of every declaration the Style Engine emits: narrowing it changes output well beyond typography, and it is part of a sanitization path, so it deserves to be looked at with that in mind rather than patched from inside a feature branch.

Related: Trac #66198, [https://github.com/WordPress/wordpress-develop/pull/13789 wordpress-develop#13789]."	kimjiwoon
1	53814	Template Editor has no URL to access it		Editor	5.8	normal	normal	Awaiting Review	defect (bug)	new		2021-07-28T12:30:51Z	2021-07-28T12:30:51Z	"The Template Editor is loaded into the existing Edit Post screen.

However the loading happens entirely through a user action in JavaScript. Meaning that when you reload the page, you're looking at the Content Editor again.

Obviously this makes it nearly impossible for developers to style the content of the editor.

But more importantly this breaks an existing convention in WordPress. You cannot construct a URL that will direct users to the Template Editor.

Both the Content Editor as well as the future Site Editor have their own URL. In addition it should be possible to pass additional arguments to the Site Editor to either load an existing template, or create a new one."	anonymized_8769252
1	60893	This block has encountered an error after update 6.5		Editor	6.5	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-04-03T03:26:54Z	2024-04-03T08:27:58Z	"Two website I manage were updated to 6.5 today and both websites have same error message-﻿
This block has encountered an error and cannot be previewed.

Have deactivated plugins and used a default theme, still have the same message. Also tried creating a new page."	lcfair1937
1	56953	TypeError: Cannot destructure property 'themeSupportsLayout' of '(0 , p.useSelect)(...)' as it is undefined		Editor	6.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-11-02T10:43:03Z	2022-11-03T16:33:26Z	"Hi

this morning with update of WP to 6.1 have a lot of problems. I tried to deactive all plugins and I think that is an error of Core.

TypeError: Cannot destructure property 'themeSupportsLayout' of '(0 , p.useSelect)(...)' as it is undefined.
    at https://domain.com/wp-includes/js/dist/block-editor.min.js?ver=d39738cb7c1202964677:26:193469
    at ct (https://domain.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9:43430)
    at os (https://domain.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9:111136)
    at Ur (https://domain.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9:77643)
    at Ir (https://domain.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9:77571)
    at Dr (https://domain.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9:77434)
    at Pr (https://domain.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9:74429)
    at https://domain.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9:30173
    at unstable_runWithPriority (https://domain.com/wp-includes/js/dist/vendor/react.min.js?ver=17.0.1:9:7431)
    at xn (https://domain.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9:29950)

I tried to reinstall WP but the link is on 404:

https://downloads.wordpress.org/release/it_IT/wordpress-6.1.zip

I've bug on editor of themes, on create new content and on front-end

Please fix the problem"	pigot4
1	54046	Uncaught SyntaxError: Invalid regular expression		Editor	5.8	normal	normal	Awaiting Review	defect (bug)	new		2021-08-31T22:34:14Z	2021-09-11T23:50:56Z	"Hi

I am trying to install a fresh version of WordPress on my server
but the problem is, on the add new post page, I am getting this error:

{{{
Uncaught SyntaxError: Invalid regular expression: /[!-/:-@[-`{-~б─-б©ц≈ц╥Б──-Б╞©Б╦─-Б╧©]/: Range out of order in character class
    at new RegExp (<anonymous>)
    at Module.pC98 (wordcount.min.js?ver=61ab1af9326f4d5fda7ed01990e1be70:2)
    at t (wordcount.min.js?ver=61ab1af9326f4d5fda7ed01990e1be70:2)
    at wp.wordcount.YLtl (wordcount.min.js?ver=61ab1af9326f4d5fda7ed01990e1be70:2)
    at wordcount.min.js?ver=61ab1af9326f4d5fda7ed01990e1be70:2
}}}

however everything is fine even with this error until I try to install SEO plugins, like Yoast SEO and Rank Math SEO, but the cause of the problem is WordPress 


I tried everything to see if this problem will gone away or not
Tested with php 7.4 and 8.0
Tested with chrome, firefox and opera
Tested with mysql and mariadb, also tested with different charset
"	mmakenzi
1	55548	"Unchecked ""Uncategorized"" checkbox re-checks itself upon publish or update of a post"		Editor	5.9.3	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-04-08T21:02:10Z	2022-04-08T21:02:10Z	"A WordPress-based news website's editorial team has problems with the ""Uncategorized"" category. 

1. They create a post and check the desired category and uncheck the default ""Uncategorized"" category.
2. Then they click ""Publish"".
3. At the last second during the Publish operation, the Block Editor unchecks the user-selected category and re-checks ""Uncategorized"". 
4. Then they have to go back into the post and attempt to uncheck ""Uncategorized"" and recheck the desired category.

They have to do step 4 three or four times to get the result they want. Or they just use ""Quick Edit"" to change it in the post list.

It doesn't happen every time and is sometimes difficult to reproduce. But it happens often enough to be a problem. I cannot find a way to consistently reproduce it. Nor can I find any indication that this is a known issue with WordPress. It will happen with or without plugins enabled.

If there's no easy way to investigate or fix this in core, is there a way to add a script somewhere in the theme's functions.php or a jQuery script somewhere to ensure that ""Uncategorized"" *never* gets checked and that the originally-intended category remains checked? All the searches I do on Google for this topic ironically just reveal a bunch of posts on peoples' blogs that are set to ""Uncategorized""."	rcwatson
1	64216	Undefined array key 0 in wp-includes/block-editor.php on line 468		Editor	6.8.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-11-07T14:28:50Z	2026-11-10T04:04:40Z	"Hi there,
I'm using `register_block_template` (with WordPress version 6.8.3) to register a custom template from within a plugin for a specific custom post type (the template slug I chose isn't in the `single-{cpt_name}` form, not sure it matters...).

The new template shows up in the template picker (select) on the cpt **block editor screen**, but as soon as I choose it, I get the following PHP warning logged:

{{{
[07-Nov-2025 13:55:18 UTC] PHP Warning:  Undefined array key 0 in /shared/httpd/wptest/wordpress/wp-includes/block-editor.php on line 468
}}}
https://github.com/WordPress/WordPress/blob/ba9e7f97f08a7fbb88fbfa35641bcc230500b37a/wp-includes/block-editor.php#L468

I've found the issue being here:
https://github.com/WordPress/WordPress/blob/bc7f6b462ddd8cfb4a095da8a9af9311e4bca3ab/wp-includes/block-template-utils.php#L1243

where {{{$query_result}}}, a standard array (of `WP_Template`), is merged with `$matching_registered_templates`, which is basically the associative array in the form 
`$template_name => $template pairs`
resulting from https://github.com/WordPress/WordPress/blob/bc7f6b462ddd8cfb4a095da8a9af9311e4bca3ab/wp-includes/block-template-utils.php#L1218

see:
https://developer.wordpress.org/reference/classes/wp_block_templates_registry/get_by_query/#return


The issue (warning) could be easily fixed by turning
https://github.com/WordPress/WordPress/blob/bc7f6b462ddd8cfb4a095da8a9af9311e4bca3ab/wp-includes/block-template-utils.php#L1243

Into:
{{{#!php
$query_result = array_merge( $query_result, array_values( $matching_registered_templates ) );
}}}


This only happens in the **block editor** but I'm not sure I should open the issue on https://github.com/WordPress/gutenberg/issues/new/choose as suggested, because the code generating the issue is in wp core, right?"	d4z_c0nf
1	43073	Undo leaves a big blank spot where content wp-view was		Editor	4.9.1	normal	normal	Future Release	defect (bug)	new		2018-01-11T22:11:14Z	2019-06-05T07:09:00Z	"1. Add a Wordpress audio playlist (or video playlist, or others)
2. Select and click ""x"" to remove.
3. Undo, ctrl+z.

Now there is a big blank spot... where is it?? It's there but transparent.

Tested in the Twenty Fifteen theme and another theme, so it's not the theme."	programmin
1	53439	Updating failed. The response is not a valid JSON response.		Editor	5.7.2	normal	major	Awaiting Review	defect (bug)	new	dev-feedback	2021-06-17T10:57:16Z	2021-06-24T23:44:00Z	"Hi, There seems to be a issue where when one tries to save a page you get the error ""Updating failed. The response is not a valid JSON response."" The only thing that seems to work is to set the permalink setting to plain. 

I believe the issue has something to do with paths. I am running PHP 7.0.27

I have installed a fresh install of WP in wwwroot on a hosted service Hostek. Updated to 5.7.2. The only plugin I have is gutenberg using 2021 Theme. Set the permalink to Post Name. No problems with this setup.

Then I installed a test WP installation into wwwroot/_test/abc. Updated to 5.7.2. This only has gutenberg and 2021. Set the permalink to Post name. - WP throws the error and refuses to save the page - I do get offered to restore the backup so some sort of saving takes place. Following online guidance, I change the permalink to plain and then WP will save the page.

It seems that the issue has something to do with json not liking that WP is not installed at the root of the server. Possibly json is testing the slug and erroring out due to path conflict. 

error site would be abc.com/_test/abc/slug.
good site is abc.com/slug

Kind Regards
Richard

"	lupussolaris
1	61426	Upload Fonts: Invalid parameter(s): font_family_settings		Editor	6.5	normal	normal	Future Release	defect (bug)	new		2024-06-13T07:13:36Z	2024-06-20T13:45:05Z	"Hello,
as I try to upload fonts in woff2 format, I get the error message.
Invalid parameter(s): font_family_settings

I have uploaded the same font (same name) earlier in a ttf format and have deleted it to replace it with a woff2 version.
When I now upload the woff2 font I get the error:

{{{
{
   ""code"":""rest_invalid_param"",
   ""message"":""Invalid parameter(s): font_family_settings"",
   ""data"":{
      ""status"":400,
      ""params"":{
         ""font_family_settings"":""font_family_settings[ slug ] cannot be empty.""
      },
      ""details"":{
         ""font_family_settings"":{
            ""code"":""rest_invalid_param"",
            ""message"":""font_family_settings[ slug ] cannot be empty."",
            ""data"":{
               ""status"":400
            }
         }
      }
   }
}
}}}
When I upload the ttf font again and then the woff2 font, it works.

I found out the reason why this is happening is because the font name is missing in the metadata of the font. https://fontdrop.info/

If this happens, it would be nice to have the option to select the name yourself."	benniledl
1	43071	User without the ability to publish are unable to edit post status		Editor		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-01-11T21:46:21Z	2026-07-24T11:04:12Z	"If a user is able to edit a post but unable to publish a post, they can change the post status from the `wp-admin/edit.php?post_type=post_type` page using the quick edit dropdown feature. However, if the user goes to the `wp-admin/post.php?post=ID&action=edit` page, they are unable to edit the post status.

User who are able to edit post_type should be able to do so from the post edit page."	NathanAtmoz
1	60005	Video block shows a blank white square with play button instead of video placeholder in mobile view.		Editor	6.4	normal	normal	Awaiting Review	defect (bug)	new		2023-12-04T09:43:02Z	2023-12-04T09:43:02Z	"Hello!

I am using Sensei LMS to create fitness courses on my clients website. I am using video block in the editor to add short instructional videos in the course. Everything works great but when i check the course in mobile the video shows as a blank white page with play button. When i click play the video starts and everything works, but we would like to have video shown correctly like in the pc and tablet view. I contacted Sensei support and they troubleshooted it, they said that the issue is not related to their plugin.

"	rednasp1
1	52741	Video embeds (YouTube and Wistia) do not show on page.		Editor	5.6.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-03-09T20:56:33Z	2021-04-08T20:16:52Z	"When adding a Wistia video embed using the Gutenberg editor's ""embed"" block the video embed does not show in the page.  Upon inspection of the DOM, I noticed that if you toggle the .wp-block-embed__wrapper from position: relative to off the video shows. 

The offending CSS style is located ""/wp-includes/css/dist/block-library/style.css"" on line: 502. I've simply deleted this style and the embed seems to work again without any issues across browsers and devices.

To reproduce the issue, create a new post and add an embed block in between a heading and above a paragraph. Paste in a Wisitia video link and save. "	kevinwoodfield
1	58886	When editing a pattern getting console error on chrome browser		Editor		normal	normal	Awaiting Review	defect (bug)	new		2023-07-24T07:49:43Z	2023-07-24T07:49:43Z	"Chrome: Version 115.0.5790.102 (Official Build) (64-bit)

screenshot: https://prnt.sc/3XQEoNPkzv1A
"	chiragrathod103
1	55314	When saving edits to the footer in editor (beta), saving fails		Editor	5.9.1	normal	normal	Awaiting Review	defect (bug)	new		2022-03-04T00:09:24Z	2022-03-04T00:09:24Z	"When editing the page template, saving changes made to the footer fails while saving changes to other blocks works. When saving changes to the footer, this request



{{{
POST	https://apgtest.dreamhosters.com/wp-json/wp/v2/template-parts/twentytwentytwo//footer?_locale=user
}}}



{{{
<!-- wp:group {""style"":{""spacing"":{""padding"":{""top"":""var(\u002d\u002dwp\u002d\u002dcustom\u002d\u002dspacing\u002d\u002dlarge, 8rem)""}}},""layout"":{""inherit"":true}} --><div class=""wp-block-group"" style=""padding-top:var(--wp--custom--spacing--large, 8rem)""><!-- wp:group {""align"":""full"",""layout"":{""inherit"":true}} --><div class=""wp-block-group alignfull""><!-- wp:group {""align"":""wide"",""style"":{""spacing"":{""padding"":{""top"":""4rem"",""bottom"":""4rem""}}},""layout"":{""type"":""flex"",""justifyContent"":""space-between""}} --><div class=""wp-block-group alignwide"" style=""padding-top:4rem;padding-bottom:4rem""><!-- wp:site-title {""level"":0} /--><!-- wp:image {""id"":8,""sizeSlug"":""large"",""linkDestination"":""none""} --><figure class=""wp-block-image size-large""><img src=""https://apgtest.dreamhosters.com/wp-content/uploads/2022/03/Artboard-1-1024x665.png"" alt="""" /></figure><!-- /wp:image --><!-- wp:paragraph {""align"":""right""} --><p class=""has-text-align-right"">Proudly powered by <a href=""https://wordpress.org"" rel=""nofollow"">WordPress</a></p><!-- /wp:paragraph --></div><!-- /wp:group --></div><!-- /wp:group --></div><!-- /wp:group -->
}}}


results in this response


{{{
418 I'm a teapot
}}}
"	garnitchique
1	44980	When using a mobile browser (iOS 12) and the Visual Editor you won’t be able to properly select/highlight text		Editor	4.9.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-09-21T23:46:00Z	2019-03-02T06:35:18Z	"Hi folks!

I was able to reproduce this issue by using the latest version of WordPress.org and also on a WordPress.com site.

**Steps to reproduce the problem:**

1. Log in to your WordPress site using a browser (Safari or Chrome) on any device with iOS 12.
2. Edit or create a post/page with text on it using the Visual Editor
3. Select/highlight any word. Then try to highlight the next or previous word.

**What happens**

It won't let you highlight what you want. Instead, it will highlight all the paragraph or nothing.
Here's a video:

http://cld.wthms.co/NwMb1X

(You will notice this only happens with the Visual Editor and not the Text Editor)

**What I expected**

To be able to highlight the text as in the Text Editor


----


**Devices where I was able to replicate this:**
iPhone 6 Plus and iPad Air 2 (A1567)

**OS:**
iOS 12.0

**Browser:**
Safari & Chrome"	Geost
1	40964	WordPress 4.8 Pasting into editor functionality changed		Editor	4.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-06-09T05:43:45Z	2020-11-16T06:48:14Z	"Hi there,

With 4.8 the paste functionality seems to have changed in the visual editor. 

When I paste a list of items into the 4.8 visual editor from a text editor it now strips all ""line breaks"" and I end up with one big paragraph. I can still paste the list in text view and switch back to visual view and it keeps the line breaks.

This has changed in this new version. I do this process as a daily activity. "	AngusMcKinnon
1	52918	WordPress 5.7 block parent focus bug for reusable block		Editor	5.7	normal	normal	Awaiting Review	defect (bug)	new		2021-03-26T08:59:53Z	2021-04-24T10:17:44Z	"Hi, I just made the change to WordPress 5.7 from Wordpress 5.6.2 and I experience a rather strange behavior for reusable blocks.

On 5.6.2 when I click on a reusable block I am prompted with an info box showing me the name of the block and an option to edit what's inside the block. That's perfect and make completely sense. 

In 5.7 this behavior changed, if I click on a reusable block by default it selects the child inside and I don't see the info box anymore. To select the parent I need to hover the block icon to see the parent icon. That's not really easy to understand and I made multiple mistake by adding additional blocks in a reusable block just because I was not aware that the focus was on the children and not the parent.

I check the release note and was surprise to see that this was supposed to have changed:  https://make.wordpress.org/core/2021/02/23/inner-blocks-api-changes/

Is it a wrong setting I put, something I miss or a bug?
"	paulbouisset
1	54098	WordPress 5.8 - Cannot read properties of undefined (reading 'clientId')		Editor		normal	blocker	Awaiting Review	defect (bug)	new		2021-09-09T09:45:40Z	2021-09-21T13:38:46Z	"Hi,

We updated our wordpress to 5.8 (we also tried 5.8.1 today), and just after that, we have an error on post edit page, in the console

{{{
data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2 An error occurred while running 'mapSelect': Cannot read properties of undefined (reading 'clientId')
The error may be correlated with this previous error:
TypeError: Cannot read properties of undefined (reading 'clientId')
    at we (https://mywebsite.com/wp-includes/js/dist/block-editor.min.js?ver=fc8c27c6e95e7e0d59b4e344cb9ddfed:12:100185)
    at https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2:13742
    at r (https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2:13559)
    at https://mywebsite.com/wp-includes/js/dist/block-editor.min.js?ver=fc8c27c6e95e7e0d59b4e344cb9ddfed:12:285498
    at Object.current (https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2:21206)
    at https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2:20809
    at __experimentalMarkListeningStores (https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2:16751)
    at Object.__experimentalMarkListeningStores (https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2:17238)
    at https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2:20171
    at e (https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2:20801)

Original stack trace:
}}}

When we downgrade to version 5.7.2 of wordpress, error disappear

We found the problem, and it is coming from our custom post taxonomy named ""selection"", in the args we put ""show_in_rest"" true, when it is false it is ok but we dont see that in Gutenberg so it is not the solution, and when we rename ""selection"" to ""selectiontest"" for example it is works but we lost our datas inside this taxonomy

We looked at ""Reserved Terms"" of wordpress, but ""selection"" is not in the list ([https://codex.wordpress.org/Reserved_Terms])

Our code

{{{#!php
<?php
		$args = array(
			'labels'            => $labels, // $labels is our labels array
			'hierarchical'      => true,
			'public'            => false,
			'show_ui'           => true,
			'show_admin_column' => true,
			'show_in_nav_menus' => true,
			'show_in_rest'      => true,
			'show_tagcloud'     => false,
			'rewrite'           => false
		);

register_taxonomy('selection', array('post'), $args);
}}}


For the args, we are using the same config for other taxonomies too but the only ""selection"" is a problem, maybe something was added in the 5.8 and create a conflict with this name ?"	ahsynv
1	52305	WordPress Classic & Gutenberg Editor - ENTER key casing Textarea View Position To Jump		Editor		normal	normal	Awaiting Review	defect (bug)	new		2021-01-15T11:10:01Z	2021-02-09T20:12:24Z	"Steps to reproduce: (on Windows 10 x64, Chrome latest browser version)

1) Install latest and greatest WordPress*

- with ""2021"" theme as active (theme is irrelevant, actually)
- absolutely no plugins should be active EXCEPT WordPress Classic Editor: **wordpress.org/plugins/classic-editor/**

* NOTE: exact/latest WP version is not actually relevant, either, because this bug is an ongoing issue for at least a 6-12 months now - can't say for sure - it's just that I finally found the time to investigate it on a clean fresh system.

- Activate plugin, switch to **Classic Editor** mode for new posts, and switch from **Visual** to **Text** input mode (this is very important!).

2) Create new post in Text mode

- Simply copy-paste provided demo html text (demo lorem ipsum text with sufficient length should be used, to provide enough ""page scroll"" or reduce browser's window width to approx 1200 pixels to emulate older laptop computer) + add some h3 tags (for easier orientation, as long as you do not scroll all the way down to the end of the text, but position mouse cursor to the end of a paragraph somewhere in the middle you should be able to reproduce this bug.

- save the post
- now edit the post (it is best to activate DevTools and disable browser caching just to be sure everything is freshly loaded every time)

- when you **position mouse cursor somewhere in the middle** of the article **at the end of a paragraph or html element** and hit **ENTER** key on the keyboard (to create new paragraph line), Editor will jump its position and text will completely shift outside visible area to the top!

This is a bug that exists for about a year or so and it is very annoying (to say at least), particularly to us who are used to work directly with html tags in Text mode.

Bug seems to originate in TinyMCE editor's scroll function that is triggered when we hit Enter key (according to debugger). It uses math function to calculate position of the top toolbar with commands. (?)

See provided video recording to visualize the bug itself. Sometimes it may not occur, but try to repeat it again, and it should reproduce.

I would likely to know if there's an easy fix for this. Thanks!"	Darko A7
1	52308	"WordPress Editor does not preserve ""blank"" (empty) lines in Code/Text mode"		Editor		normal	normal	Awaiting Review	defect (bug)	new		2021-01-15T13:51:13Z	2021-01-15T13:51:13Z	"This issue exists in WordPress Classic (TinyMCE) Editor for ages, and similar issue exists in new Block editor, when used in Code mode.

I will try to explain it as briefly as possible, but there's a video attached for a quick demonstration, as well.

**1) WordPress Block Editor**

- Switch to Code mode
- Type a lot of html text with some tags (e.g. h3, h4, h5 sections and paragraphs)
- Whenever you insert an empty line between title tags (h1-h6), on scroll action Editor will remove them! This condenses all the text and makes our brains short circuiting e.g. we can no longer easily visualize different paragraphs and sections when working with huge amount of text / lengthy articles!

This behavior should be fixed / js code that is doing this must be optional and left disabled, if we desire so. Or removed completely, as it is counter-intuitive and counter-productive.

**2) WordPress Classic Editor**

- Situation with Classic editor is little better. As long as we stay in Text mode, editor will keep our line spacings between header titles/tags and other tags and paragraphs.
- However, as soon as we switch to Visual Editing mode, and update the article, all the line spaces / ""custom formatting"" will be lost! Now, I need to switch on occasion to Visual, but I like to mostly work in Text mode, because of full control and freedom.

The HTML output produced in Code/Text modes does not actually change, so this annoying thing is not even justified by WYSIWYG standard e.g. it does not affect the end result. But it makes our lives miserable with the editor's mind of its own.

To be honest, I'd like to have a simple editor, much like this one we have here on Track during posting issues. It presents us with a plain textarea input and commands on top, and that's it! It works.

Please see attached video for illustration.

Thanks!"	Darko A7
1	53254	YouTube blocks becomes uneditable		Editor	5.7.2	normal	normal	Awaiting Review	defect (bug)	new		2021-05-21T20:25:55Z	2021-05-22T05:20:42Z	"Sometimes embed YouTube blocks become uneditable in Gutenberg. It happens when you try to click them and they try to play, sometimes I don't understand why it happens. Below an example of a post with youtube blocks that I tried on empty installation. Blocks randomly become bugged and uneditable in Gutenberg on Chrome 90.0.4430.212 and 76.0.4017.123. To reproduce the bug
1. Enter the code below on a new post in Gutenberg
2. Make several random clicks on youtube block
3. Look at the description of the blocks, sometimes it becomes uneditable and unclickable

I'm not a developer, just a user, so I try to tell you about the bug and I hope it will be resolved sometime. 

{{{
<!-- wp:embed {""url"":""https://youtu.be/fsFXomXVqrY"",""type"":""video"",""providerNameSlug"":""youtube"",""responsive"":true,""className"":""wp-embed-aspect-16-9 wp-has-aspect-ratio""} -->
<figure class=""wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio""><div class=""wp-block-embed__wrapper"">
https://youtu.be/fsFXomXVqrY
</div><figcaption><em>Запись прямого эфира анонсирующей части мероприятия PDXCON REMIXED</em></figcaption></figure>
<!-- /wp:embed -->

<!-- wp:paragraph -->
<p>Завершилась анонсирующая часть мероприятия PDXCON, которое в этом году получило название PDXCON REMIXED. Если у вас нет времени на просмотр полной записи прямого эфира или вы не понимаете на английском, то эта статья для вас. Читайте о всех анонсах, сделанных на мероприятии, ниже. </p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Victoria 3</h2>
<!-- /wp:heading -->

<!-- wp:embed {""url"":""https://youtu.be/siZXs4d5Gqg"",""type"":""video"",""providerNameSlug"":""youtube"",""responsive"":true,""className"":""wp-embed-aspect-16-9 wp-has-aspect-ratio""} -->
<figure class=""wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio""><div class=""wp-block-embed__wrapper"">
https://youtu.be/siZXs4d5Gqg
</div></figure>
<!-- /wp:embed -->

<!-- wp:paragraph -->
<p>Самым главным по значимости анонсом, несомненно, стала глобальная стратегия Vicotira 3, которую ждут фанаты предыдущих частей уже длительное время. Её ожидание было настолько долгим, что геймеры начали проводить параллели с Half-Life 3 и начали склоняться к выводу, что третьей части выйти не суждено. Однако Paradox удивили всех и всё же анонсировали долгожданное продолжение.</p>
<!-- /wp:paragraph -->

<!-- wp:image {""sizeSlug"":""large"",""linkDestination"":""media""} -->
<figure class=""wp-block-image size-large""><a href=""https://cdn.akamai.steamstatic.com/steam/apps/529340/ss_1c61cf3516a3b596fbf65ee16db176c4b14d8162.1920x1080.jpg?t=1621622723""><img src=""https://cdn.akamai.steamstatic.com/steam/apps/529340/ss_1c61cf3516a3b596fbf65ee16db176c4b14d8162.1920x1080.jpg?t=1621622723"" alt=""""/></a></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Victoria 3 – это глобальная стратегия, в которой игроки смогут взять под своё управление любое государство XIX-XX веков. В третьей части будет расширена знаменитая система менеджмента населения, в которой присутствует несколько классов и различные политические течения, а также улучшена торговля. Строительство заводов, импорт и экспорт, а также другие элементы Paradox обещают сделать не только лучше и проработанное, но и доступнее новичкам. И, конечно же, игра будет выполнена на самой последней версии графического движка и предложит приятную картинку. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Дата выхода Victoria 3 оглашена не была.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Prison Architect: Second Chanses</h2>
<!-- /wp:heading -->

<!-- wp:embed {""url"":""https://youtu.be/OwrHv8eNlr4"",""type"":""video"",""providerNameSlug"":""youtube"",""responsive"":true,""className"":""wp-embed-aspect-16-9 wp-has-aspect-ratio""} -->
<figure class=""wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio""><div class=""wp-block-embed__wrapper"">
https://youtu.be/OwrHv8eNlr4
</div></figure>
<!-- /wp:embed -->

<!-- wp:paragraph -->
<p>Стратегия о строительстве и управлении тюрьмой <a href=""https://strategycon.ru/prison-architect/"">Prison Architect</a> получит дополнение Second Chanses, посвящённое программам реабилитации заключённых. С помощью занятий по конфликтологии, зоотерапии и психологическим встречам игроки смогут попытаться реабилитировать самых злостных нарушителей и сделать из них адекватных членов общества. Разумеется, это поможет им раньше освободиться из тюрьмы.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Кроме того, дополнение позволит увеличивать сроки наказания за плохое поведение и уменьшать за хорошее. За рецидивистов игроки получат штрафы, а за досрочно освобождённых – приятные бонусы. Опытные заключённые смогут торговать в булочных, ресторанах и тюремных мастерских.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Дополнение выйдет <strong>16 июня</strong>.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Crusader Kings III: Royal Court&nbsp;</h2>
<!-- /wp:heading -->

<!-- wp:embed {""url"":""https://youtu.be/cvid3edWqcg"",""type"":""video"",""providerNameSlug"":""youtube"",""responsive"":true,""className"":""wp-embed-aspect-16-9 wp-has-aspect-ratio""} -->
<figure class=""wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio""><div class=""wp-block-embed__wrapper"">
https://youtu.be/cvid3edWqcg
</div></figure>
<!-- /wp:embed -->

<!-- wp:paragraph -->
<p><a href=""https://strategycon.ru/crusader-kings-3/"">Crusader Kings III</a> также получила анонс нового дополнение под названием Royal Court. DLC будет посвящено королевскому двору как средству демонстрации власти и могущества правящей династии. Игроки смогут создать величественный королевский двор, который понравится вассалам и привлечёт множество других людей.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Дополнение добавит в игру тронный зал, возможность проводить суды над вассалами и придворными, судя последних по справедливости (или политическим мотивам). С помощью еды и изысканных украшений можно будет произвести впечатление на влиятельных персон, а ко двору смогут прибыть влиятельные мыслители и талантливые художники, которые смогут создать новые шедевры.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Дата выхода Royal Court пока что <strong>не уточняется</strong>.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Hearts of Iron IV: No Step Back</h2>
<!-- /wp:heading -->

<!-- wp:embed {""url"":""https://youtu.be/pPrxHwovzUs"",""type"":""video"",""providerNameSlug"":""youtube"",""responsive"":true,""className"":""wp-embed-aspect-16-9 wp-has-aspect-ratio""} -->
<figure class=""wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio""><div class=""wp-block-embed__wrapper"">
https://youtu.be/pPrxHwovzUs
</div></figure>
<!-- /wp:embed -->

<!-- wp:paragraph -->
<p>Пока что без особых подробностей был показан тизер-трейлер нового дополнения No Step Back для глобальной стратегии о Второй мировой войне <a href=""https://strategycon.ru/hearts-of-iron-4/"">Hearts of Iron IV.</a> Исходя из тизера, DLC ""Ни шагу назад"" (если перевести название на русский) будет посвящено странам советского блока и расширит контент при игре за них. В тизере демонстрируется знаменитая советская промышленная машина.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Дата выхода No Step Back пока что <strong>не уточняется</strong>.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Empire of Sin: Make it Count!</h2>
<!-- /wp:heading -->

<!-- wp:embed {""url"":""https://youtu.be/RyyjrfFHIBM"",""type"":""video"",""providerNameSlug"":""youtube"",""responsive"":true,""className"":""wp-embed-aspect-16-9 wp-has-aspect-ratio""} -->
<figure class=""wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio""><div class=""wp-block-embed__wrapper"">
https://youtu.be/RyyjrfFHIBM
</div></figure>
<!-- /wp:embed -->

<!-- wp:paragraph -->
<p>Дополнение Make it Count! добавит в гангстерскую стратегию о преступном Чикаго 1920-х годов <a href=""https://strategycon.ru/empire-of-sin/"">Empire of Sin</a> нового босса, Меера Лански по прозвищу ""Бухгалтер"". Он вместе со своими ребятами по прозвищу the Fixers умеет решать проблемы за определённую стоимость. В DLC можно будет пройти новые миссии сюжетной линии Бухгалтера, разблокировать новые игровые возможности и познакомиться с наставником Лански, Арнольдом Ротштейном. Все указанные персонажи являются реальными историческими личностями.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Дополнение выйдет <strong>скоро</strong>, и пока что не уточняется конкретная дата выхода.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Cities: Skylines: Content Creator Pack: Bridges &amp; Piers</h2>
<!-- /wp:heading -->

<!-- wp:embed {""url"":""https://youtu.be/O1TGm7tGgC8"",""type"":""video"",""providerNameSlug"":""youtube"",""responsive"":true,""className"":""wp-embed-aspect-16-9 wp-has-aspect-ratio""} -->
<figure class=""wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio""><div class=""wp-block-embed__wrapper"">
https://youtu.be/O1TGm7tGgC8
</div></figure>
<!-- /wp:embed -->

<!-- wp:paragraph -->
<p>И наконец, наиболее незначительный анонс мероприятия: пак моделей для градостроительной стратегии Cities: Skylines. Мини-дополнение Bridges &amp; Piers добавит новые здания, которые позволят разнообразить береговую линию ваших городов, которые были разработаны мододелом Андресом Кортинь, известным под ником Armesto. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Дополнение <strong>уже доступно</strong> в Steam за символическую стоимость.</p>
<!-- /wp:paragraph -->
}}}
"	arskrigitsioniets
1	66062	_restore_wpautop_hook() re-adds wpautop at priority -1 when a later the_content callback runs the_content again		Editor	5.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-09-07T17:18:48Z	2026-09-11T13:15:29Z	"== Summary ==

If a shortcode (or any `the_content` callback) calls `apply_filters( 'the_content', ... )` on a block post, WordPress ends up with `wpautop` registered at priority -1 for the rest of the request. Every post rendered after that point on the same page is run through `wpautop` twice: once on the raw block markup and once on the rendered blocks. The visible result is stray `</p>` tags, empty paragraphs, and `<br />` after hidden inputs in things like Query Loop > Post Content, reusable blocks, and form plugin blocks that appear later on the page.

The post with the nesting shortcode looks fine. The damage lands in unrelated content further down the page. In my case it showed up as broken form markup in a reusable block below the article, and it took a while to trace back to a table of contents shortcode in the post body.

This is a follow-up to #45495 / r45139, which fixed nested `the_content` calls that start ''inside'' `do_blocks()`. This ticket covers a different ordering: with the default hook priorities, a shortcode starts a nested `the_content` run at priority 11, before the pending `_restore_wpautop_hook` callback at that same priority.

Real-world trigger: Easy Table of Contents ([https://github.com/ahmedkaludi/easy-table-of-contents/issues/982 easy-table-of-contents#982]).

== Steps to reproduce ==

No plugins or theme needed. Save this as `repro.php` and run `wp eval-file repro.php --skip-plugins --skip-themes`:

{{{
#!php
<?php
// Any callback that runs the_content while the_content is already running.
add_shortcode( 'nested', function () {
	return apply_filters( 'the_content', 'Nested text.' );
} );

$post_a = ""<!-- wp:paragraph -->\n<p>[nested]</p>\n<!-- /wp:paragraph -->"";
$post_b = ""<!-- wp:html -->\n<form action=\""/\"">\n<input type=\""hidden\"" name=\""a\"" value=\""1\"">\n<input type=\""hidden\"" name=\""b\"" value=\""2\"">\n<button>Send</button>\n</form>\n<!-- /wp:html -->"";

echo ""wpautop priority before: "", var_export( has_filter( 'the_content', 'wpautop' ), true ), ""\n"";
echo ""Post B before:\n"", apply_filters( 'the_content', $post_b ), ""\n"";

apply_filters( 'the_content', $post_a );

echo ""wpautop priority after:  "", var_export( has_filter( 'the_content', 'wpautop' ), true ), ""\n"";
echo ""Post B after:\n"", apply_filters( 'the_content', $post_b ), ""\n"";
}}}

Output on 7.1:

{{{
wpautop priority before: 10
Post B before:

<form action=""/"">
<input type=""hidden"" name=""a"" value=""1"">
<input type=""hidden"" name=""b"" value=""2"">
<button>Send</button>
</form>

wpautop priority after:  -1
Post B after:
</p>
<form action=""/"">
<input type=""hidden"" name=""a"" value=""1""><br />
<input type=""hidden"" name=""b"" value=""2""><br />
<button>Send</button><br />
</form></p>
}}}

Same content, filtered before and after post A. The only difference is that post A was rendered in between.

To see it in a browser on stock Twenty Twenty-Five: put `[nested]` in post A, an HTML block like `$post_b` in post B, and add a Query Loop > Post Content block showing post B to the `single` template. View post A.

== Why it happens ==

1. `do_blocks()` (priority 9) sees blocks in post A, so it removes `wpautop` from 10 and adds `_restore_wpautop_hook` at 11.
2. At priority 11, `WP_Hook` loops over `do_shortcode` and then `_restore_wpautop_hook`. PHP `foreach` iterates a copy of the array, so removing callbacks during the loop does not change what it visits.
3. `do_shortcode` runs `[nested]`, which starts an inner `the_content` run. The inner run reaches priority 11 and calls `_restore_wpautop_hook`, which puts `wpautop` back at 10 and removes itself.
4. Back in the outer loop, `_restore_wpautop_hook` is called a second time from the stale copy. `has_filter( 'the_content', '_restore_wpautop_hook' )` now returns `false`, so `$current_priority - 1` evaluates to `-1`, and `wpautop` is added at priority -1.
5. From then on, every `the_content` run autops twice: at -1 on raw block markup, and at 10 because `do_blocks()` only removes the first `wpautop` it finds (the -1 copy) and leaves the 10 copy in place.

r45139 does not help here because the nested run does not start inside `do_blocks()`; it starts from a sibling callback after the restore hook is already queued.

== Proposed fix ==

Make `_restore_wpautop_hook()` a no-op when it is no longer registered, which means an inner run already restored `wpautop`:

{{{
#!diff
--- a/src/wp-includes/blocks.php
+++ b/src/wp-includes/blocks.php
@@ function _restore_wpautop_hook( $content ) {
 	$current_priority = has_filter( 'the_content', '_restore_wpautop_hook' );
 
+	if ( false === $current_priority ) {
+		return $content;
+	}
+
 	add_filter( 'the_content', 'wpautop', $current_priority - 1 );
 	remove_filter( 'the_content', '_restore_wpautop_hook', $current_priority );
 
 	return $content;
 }
}}}

With this guard the script above prints priority 10 both times and post B renders identically. Verified on a 7.1 site and in a standalone `WP_Hook` simulation.

[https://github.com/WordPress/wordpress-develop/pull/13427 PR #13427] contains the guard and regression tests covering nested plain-text and block content, restoration of the original `wpautop` registration, and subsequent block and classic content formatting.
"	BigBugsy
1	55586	`get_block_wrapper_attributes` generates PHP notices.		Editor	5.6	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-04-18T16:12:37Z	2026-02-07T11:18:13Z	"To replicate this issue:

1. Set both `WP_DEBUG` and `WP_DEBUG_LOG` in wp-config.php to `true` so that errors will be logged to `wp-content/debug.log`. 
2. Using WP-CLI, run `wp shell`.
3. Call `get_block_wrapper_attributes();` in the terminal.
4. Note the errors and call stack output in `wp-content/debug.log`. It will look something like this:

[18-Apr-2022 16:05:27 UTC] PHP Notice:  Trying to access array offset on value of type null in wp-includes/class-wp-block-supports.php on line 94
[18-Apr-2022 16:05:27 UTC] PHP Notice:  Trying to access array offset on value of type null in wp-includes/class-wp-block-supports.php on line 96

`get_block_wrapper_attributes()` makes a singleton call to retrieve the `WP_Block_Supports` object, which in turn calls `apply_block_supports` on that object. The `apply_block_supports` method presumes that there is an editor block already assigned to the object, and attempts to retrieve the block type by using the `blockName` set on in the array of the `$block_to_render` property. Since the default value on the `WP_Block_Supports` object is `null`, this generates the error.

It seems that the easiest solution here is to return an empty array from `apply_block_supports` if `$block_to_render` is not set. Since `get_block_wrapper_attributes` is a public function that does not accept a block, it can be called outside of a sequence where `WP_Block_Supports` might already have set properties on the object. "	jmichaelward
1	53620	add_meta_box $callback firing after publish or update but not updating dom html		Editor	5.7.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-07-07T15:02:56Z	2023-08-11T19:42:17Z	"Basically, the callback in add_meta_box is firing after I update my post (got the spinning circle in the meta box header), returning new updated html, but the new html is not applied to the actual page.

The following metabox just renders a random number:

{{{#!php
<?php
add_action('admin_init', function () {
	// Add our meta box for the ""post"" post type (default)
	if ( current_user_can(""send_notifications"") ) {
		$post_types = [""post"", ""go_live""];
		foreach ($post_types  as $post_type) {
			add_meta_box(
				'cabtv_notif_on_post',
				'Notifications',
				function ($post) {
					echo rand();
				},
				$post_type,
				'side',
				'high'
			);
		}
	}
	
});
}}}

After the post is published / updated, the metabox should regenerate and a new random number should display... presumably... otherwise why is it called?

I notice the entire wp-admin/post.php page is downloaded in the developer tools network tab after updating the post, and if I inspect the response I can see that the random number is different, however the original page remains the same."	hedgehog90
1	61953	aspect-ratio setting for image in overwritten pattern not working		Editor		normal	normal	Awaiting Review	defect (bug)	new		2024-08-29T02:56:57Z	2025-09-24T07:06:30Z	"After building a syned pattern with an image (aspect-ration 16/9) and a headline and making both of them over writable. Add two of this to a page. Overwriting one of the instances.

Now the overwritten image doesn't use the aspect-ratio. 
If you add any with and height values to the HTML of the overwritten image the aspect-ratio jumps into effect.

The size attributes and src-sets seem not be be added to the output."	Drivingralle
1	55728	baseURL missing for remotely fetched editor styles		Editor	5.9.3	normal	normal	Awaiting Review	defect (bug)	new		2022-05-13T23:29:40Z	2022-05-13T23:29:40Z	"Note: I would have created a ticket rather in the Gutenberg repository, but the affected code is in the WordPress core.


When an editor style is added (using `add_editor_style`) as remote URL (not as path to a file), the editor style definition from `get_block_editor_theme_styles()` passed to the Gutenberg Block Editor doesn't contain a `baseURL` field.

Relevant code:
https://core.trac.wordpress.org/browser/tags/5.9.3/src/wp-includes/block-editor.php#L538

This missing `baseURL` field prevents the Gutenberg CSS post-processing from rewriting the stylesheet-relative URLs inside the CSS, resulting in broken `url(...)` references and preview.

When the `baseURL` is added to remotely fetched styles, too, using the known CSS file URL, the URL rewrite issues are fixed and everything looks correctly:
{{{#!php
<?php
// [...]
$styles[] = array(
    'css'            => wp_remote_retrieve_body( $response ),
    'baseURL'        => $style, // added
    '__unstableType' => 'theme',
);
// [...]
}}}
"	strarsis
1	59104	duotone is not applied to videos in the cover block in safari		Editor	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-08-14T16:01:43Z	2023-08-22T20:49:58Z	"Dear Team,

duotone (svg filter) is not applied to videos in cover block in safari (screenshot safari). In edge for example it works (screenshot ms edge).

I would be very happy about a solution.

Many greetings
Kiril"	kiandept
1	54931	get_block_template filter not fired when template saved in posts		Editor	5.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-01-26T15:45:54Z	2023-10-15T14:56:16Z	"The `\get_block_template()` function fires a 'get_block_template' filter at the end that allows for plugins to filter the content etc.

However, this only works if the template was retrieved from a theme's template file, if the template has been edited it is saved into the `posts` table.

When a template (part) is found in the `posts` table the function exits early with the found template but does not wrap the return in a call to the 'get_block_template'.

This means plugins and custom code do not get a chance to filter the template's content or properties when re-editing after a template has had an initial edit."	ianmjones
1	45744	post preview does not work		Editor		normal	critical	Awaiting Review	defect (bug)	new		2018-12-22T19:43:15Z	2018-12-28T15:34:08Z	"As I mentioned in my issue with revisions, there seems to be a real problem with the Preview feature in v 5.02

I created a NEW post using the Blocks editor. When I ask to Preview I get a page which does a continuous re-draw of the WordPress logo and the message Generating preview… The URL says only ""about:blank""

And again when I go to save I get the error Updating failed

If I attempt to go to another part of admin I get the message ""Changes you made may not be saved.


The theme I am using is Twenty Seventeen Version: 1.9"	kyborn
1	63765	register_block_pattern() returns true even when disallowed blocks are used, causing silent failure in the editor.		Editor	6.8.2	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-07-29T06:15:27Z	2025-08-20T15:09:52Z	"== Description ==
This issue was initially reported in the Gutenberg GitHub repo (https://github.com/WordPress/gutenberg/issues/59413).

When registering a block pattern using `register_block_pattern()`, if the pattern includes blocks that are not explicitly allowed via the `allowed_block_types_all` filter, the function still returns `true`. However, the pattern does not appear in the editor's pattern inserter, and no warning or error is shown.

This behavior is inconsistent. For example, the `core/column` block is usable inside the editor if `core/columns` is whitelisted, even without explicitly allowing `core/column`. But when used in a pattern, `core/column` must be separately whitelisted, or the pattern is silently skipped.


== Steps to Reproduce ==
1. Use `allowed_block_types_all` to only allow `core/columns`.
2. Register a pattern containing both `core/columns` and `core/column`.
3. Visit the editor and open the pattern inserter.
4. The pattern will not appear, though `register_block_pattern()` returned true.

== Expected Behavior ==
- Either register_block_pattern() should return false or log a warning when the pattern includes disallowed blocks.
- Or nested blocks (like core/column) should be implicitly allowed when their parent (like core/columns) is whitelisted, for consistency.

== Actual Behavior ==
- register_block_pattern() returns true.
- The pattern does not appear in the inserter.
- No error or warning is provided.

== Proposal ==
Add block-type validation to `register_block_pattern()` that checks pattern content against the current block whitelist (`allowed_block_types_all`). If disallowed blocks are found, return `false` or trigger a developer warning."	tusharbharti
1	53026	"register_block_type_from_metadata fails if path points to a JSON file that is not named ""block.json"""		Editor	5.5	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2021-04-13T14:43:43Z	2021-04-26T18:06:11Z	"If a path to a file is given that does not end with ""block.json"", the function will exit early and the block won't be registered because the path to the json file is not found.

The documentation states that either a directory or a path to a JSON file can be given:


{{{
Parameters #Parameters
$file_or_folder
(string) (Required) Path to the JSON file with metadata definition for the block or path to the folder where the block.json file is located.

}}}



Example:

register_block_type_from_metadata() is called with $path = path_join(__DIR__,'block-section.json'):

{{{#!php
<?php
$path = path_join(__DIR__,'block-section.json');
register_block_type_from_metadata($path);

}}}

in register_block_type_from_metadata this test is performed:

{{{#!php
<?php

function register_block_type_from_metadata( $file_or_folder, $args = array() ) {
195	        $filename      = 'block.json';
196	        $metadata_file = ( substr( $file_or_folder, -strlen( $filename ) ) !== $filename ) ?
197	                trailingslashit( $file_or_folder ) . $filename :
198	                $file_or_folder;
199	        if ( ! file_exists( $metadata_file ) ) {
200	                return false;
201	        }

}}}

wich results in 

""ction.json""

""ction.json"" is not equal to $filename (""block.json""), so the $metadata_file will be assigned to a wrong path, in this case

{{{
""/var/www/html/wp-content/plugins/artifacts-section-block/block-section.json/block.json""

}}}




"	artifacts
1	63580	render_block does not render innerblocks when used explicitly		Editor		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-06-17T08:46:33Z	2025-12-01T03:28:32Z	"When using render_blocks explicitly, it doesn't render the nested blocks if they don't have any innerContent defined in them.

I believe this shouldn't be the case as some parent blocks like core/column shouldn't won't necessarily have innerContent when other blocks are present inside them.

For example, this doesn't render the content of the nested paragraph blocks

{{{#!php
<?php
$first_column_blocks = [
	[
		'blockName' => 'core/paragraph',
		'attrs' => [],
		'innerBlocks' => [],
		'innerHTML' => '<p>This is the first column demo content.</p>',
		'innerContent' => [
			'<p>This is the first column demo content.</p>',
		],
	],
];

$second_column_blocks = [
	[
		'blockName' => 'core/paragraph',
		'attrs' => [],
		'innerBlocks' => [],
		'innerHTML' => '<p>This is the second column demo content.</p>',
		'innerContent' => [
			'<p>This is the second column demo content.</p>',
		],
	],
];

$column_layout_block = [
	'blockName' => 'core/columns',
	'attrs' => [],
	'innerBlocks' => [
		[
			'blockName' => 'core/column',
			'attrs' => [],
			'innerBlocks' => $first_column_blocks
		],
		[
			'blockName' => 'core/column',
			'attrs' => [],
			'innerBlocks' => $second_column_blocks
		],
	]
];
}}}

For markup generated by Gutenberg, there is some innerContent generated hence, it doesn't the same issue. But I don't think a developer is expected to pass this content in explicitly [demonstrated in linked image]

More info present in Gutenberg ticket linked below

----

This issue was originally reported by Andreas Lindahl as an Issue on Gutenberg repository
https://github.com/WordPress/gutenberg/issues/69307"	yashjawale
1	45743	revisions  issue with block editor		Editor	5.0.2	normal	major	Awaiting Review	defect (bug)	new		2018-12-22T19:17:24Z	2018-12-28T15:33:50Z	"Okay, I just upgraded my site to WordPress 5.0.2

I tried to edit an existing post, when I converted the contnt to block editor, the auto save kept telling me update did not happen ""Updating failed"", when I tried a preview, it never showed just keeps drawing he WordPress logo and ""Generating preview…""


I installed and activated the ""classic editor"" plugin and tried to edit the edit box is totally blank! 

I went back and deactivated the classic plugin then went to the post to edit but it was totally blank except for the header box and bellow a faint box with the title of ""Classic""

Fortunately I found an option ""Convert to Blocks"" when i did that, the content re-appeared but the ""preview still does not genrate.

My current theme is Twenty Seventeen Version: 1.9

I  went back to the post to try to recover a previous version, but there is no revisions history and found no option to activate.

I searched the forum for help on reviosions and found * * adding line to save post revisions  per WordPress 
{{{
 */ https://codex.wordpress.org/Revisions 
 */ and at https://codex.wordpress.org/Editing_wp-config.php#Post_Revisions
 */
}}}

I have edited wp-config  with these lines, I am guessing I have o log out close the browser and revisit the site for that code change to activate. I have no idea what to do from there."	kyborn
1	57061	social-icons block not working		Editor	6.1	normal	major	Awaiting Review	defect (bug)	new		2022-11-10T13:55:53Z	2022-11-15T16:57:30Z	"Hi, I had social-icons(links) in several places in my website but now all disappeared.
I tried to add them again but after you ass social-icons block it does nothing but shows the block editor as expected but can~t add it to the page "	mariamorais
1	53682	tags (keywords) with umlauts don't get saved in german locale		Editor	5.7.2	normal	minor	Future Release	defect (bug)	new		2021-07-17T15:41:20Z	2023-07-09T16:44:05Z	"
== This report is about assigning keywords to an article.

**First keyword:** ""Gärten"" with slug ""gaerten"" (exists already)

**Second keyword:** ""Garten"" with slug ""garten"" (was not created yet)

I tried to apply the new keyword ""Garten"", but once I saved the article, the keyword ""Gärten"" was assigned in the preview. I removed it and tried to assign ""Garten"" once again, but WordPress keeps applying ""Gärten"" to the article, even though **the editor showed ""Garten"" in the sidebar** (as expected).

I then created the keyword ""Garten"" with slug ""garten"" manually in the keyword management interface. Now I have both keywords in my database.

But still, when I try to assign ""Gärten"" in the editor, WordPress keeps changing it to ""Garten"", once the article is saved and I view the preview. The slugs are different (gaerten vs. garten), but it seems like the editor confuses the German umlauts in Gärten with Garten.

I am using the latest WordPress 5.7.2 and the Classic Editor."	spielautomat4
1	54522	unsaved edits should consistently trigger pop-up alert		Editor	5.6	normal	major	Awaiting Review	defect (bug)	new		2021-11-26T12:49:29Z	2023-04-30T08:01:12Z	"https://wordpress.org/support/topic/unsaved-content-and-autosave/ described the steps to reproduce the bug.

Background: I use the classic editor to write posts every day. Like many users, I often forget my unsaved edits, and try to leave the edit page. This is such a common user error that WP has multiple protections. The autosave is one protection but I won't talk about it. 

A second protection is a local cache in my browser. This is the (unsatisfactory) protection used in the current WP version (5.8.2). It's unsatisfactory because the forgetful user is allowed to leave the edit page with unsaved changes. When she returns to edit the same post, she may fail to notice a warning message in a banner. 

This warning is triggered presumably because the local cached version differs from the latest saved version in MySQL.

I have seen (or missed) this banner warning more than 100 times. Not as good as the traditional protection that I have seen in 5.5.3.
 
The traditional protection is a pop-up alert whenever user attempts to ""leave"" the post-edit page. 

(Leaving means Either closing the browser, or going to another website, or clicking on a link.) 

Whenever the editor content differs from the last published version, the alert would ''reliably'' pop up. I would either hit cancel then save my changes, or hit Leave to discard my change **knowingly**.

Needless to say, the pop-up protection is more proactive, more preemptive than the second protection (local cache). That's why current WP version still uses this pop-up protection, but unreliable. In https://wordpress.org/support/topic/unsaved-content-and-autosave/ I discussed when the pop-up shows/doesn't show. To reproduce the bug (no pop-up) you need to be patient. 

Even if you can't reproduce the bug, I can guarantee that it does exist. The attached screenshot is the banner warning in 5.8.2. It won't show up if the pop-up has always worked. In 5.5.3 I have not seen this banner."	tiger40490
1	63695	viewStyle is loaded in the footer when the active theme is the classic theme		Editor		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-07-12T02:58:52Z	2026-05-30T12:21:39Z	"Related to #59673
Originally reported at [https://github.com/WordPress/gutenberg/issues/70673#issuecomment-3062987346 GB 70673]

The block.json has two fields that define the styles that will be enqueued on the frontend.

- `style`: enqueue in both the front-end and the editor
- `viewStyle` enqueued only in the front-end

How these styles are loaded depends on the active theme and whether the page has the block.

Of the four patterns below, the behavior in the classic theme is not what I expect. My understanding is that in the classic theme, by default, both styles should be loaded in the head tag, regardless of whether or not there are blocks on the page.

=== ✅ The block theme is active, and there are blocks on the page

Both styles are loaded in the head tag.

{{{
#!xml
<!DOCTYPE html>
<html lang=""en-US"">
<head>
<style id='create-block-test-style-inline-css'>
.wp-block-create-block-test{background-color:red}
</style>
<style id='create-block-test-view-style-inline-css'>
.wp-block-create-block-test{background-color:blue}
</style>
</head>
<body></body>
</html>
}}}

=== ✅ The block theme is active, and there are no blocks on the page

Both styles are not loaded.

=== ❌ The classic theme is active, and there are blocks on the page

- The `style` is loaded in the head tag
- The `viewStyle` is loaded outside the head tag

{{{
#!xml
<!DOCTYPE html>
<html lang=""en-US"" >
<head>
<style id='create-block-test-style-inline-css'>
.wp-block-create-block-test{background-color:red}
</style>
</head>
<body>
<style id='create-block-test-view-style-inline-css'>
.wp-block-create-block-test{background-color:blue}
</style>
</body>
</html>
}}}

=== ❌ The classic theme is active, and there are no blocks on the page

- The `style` is loaded in the head tag
- The `viewStyle` is not loaded

{{{
#!xml
<!DOCTYPE html>
<html lang=""en-US"" >
<head>
<style id='create-block-test-style-inline-css'>
.wp-block-create-block-test{background-color:red}
</style>
</head>
<body></body>
</html>
}}}"	wildworks
1	56218	wp-block-columns no margins or padding in WordPress 6		Editor	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-07-14T11:23:25Z	2022-08-04T15:26:17Z	"This issue has been recreated in 4 different themes, Twenty Twenty-Two, Astra, & 2 Genesis themes. Also, with all plugins disabled, and all caches cleared.

I've been using the `div class=""wp-block-columns""` markup via the code editor on over 300 articles on my WordPress site. I originally copied all of the markup directly from the WordPress block editor, so it was totally valid markup.

Everything worked fine through several WordPress updates, until WordPress 6. Now, when using WordPress 6, this markup no longer styles the block columns, and all columns merge into one block and lose their margins and padding.

If I look at the current WordPress 6 block editor columns markup, it has changed, and now has the markup enclosed in several “remarks” – e.g. 
{{{
<!-- wp:columns -->
<div class=""wp-block-columns""><!-- wp:column -->
}}}

So this shows that WordPress 6 has changed how it deals with `wp-block-columns` markup, but has not ensured backward compatibility with the previous markup. This essentially breaks my website, so I am unable to update to WordPress 6.

"	XyZed
1	63993	wp_ajax_wp_remove_post_lock does not remove a post lock		Editor		normal	normal	Awaiting Review	defect (bug)	new		2025-09-17T11:23:44Z	2025-09-17T11:23:44Z	"Unsure if the functions' documentation should be updated, or the function itself, but the current function does not remove a post lock, but updates the expiry.

A request is triggered upon leaving an edit post screen, through:

`window.addEventListener( 'beforeunload', releasePostLock );`
"	paulkevan
1	41106	wp_editor() doesn't support attributes besides id and class		Editor		normal	normal	Awaiting Review	defect (bug)	new		2017-06-20T20:31:16Z	2020-09-22T05:37:31Z	"I'm replacing a generic textarea with a WYSIWIG field. My textarea has an `aria-describedby` attribute, but wp_editor()  -- really `_WP_Editors::editor()` -- can't set any HTML attributes besides ID and class on the WYSIWIG.

Would be better if I could do something like this:

{{{
	wp_editor( 'hi-roy', 'Some text', array(
		'attrs' => array(
			'aria-describedby' => 'description'
		)
	));
	echo '<p id=""description"">Some description</p>';
}}}
"	Shelob9
1	66183	wp_get_global_settings() and wp_get_global_styles() return the entire array when the requested path does not exist		Editor		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-09-25T08:55:41Z	2026-09-25T10:34:55Z	"When a `$path` is passed to `wp_get_global_settings()` or `wp_get_global_styles()` and that path does not exist, both functions return the '''entire''' settings/styles array instead of an empty value.

This makes it impossible for callers to distinguish ""this setting is not set"" from ""here is every setting"", so defensive code has to sniff for expected keys and guess.

Originally reported in Gutenberg: https://github.com/WordPress/gutenberg/issues/39657

== Steps to reproduce ==

{{{#!php
<?php
add_action( 'init', function () {
	var_dump( wp_get_global_settings( array( 'layout', 'contentSize' ) ) ); // string, e.g. '645px'
	var_dump( wp_get_global_settings( array( 'foo', 'bar' ) ) );            // entire settings array (12 top-level keys)
	var_dump( wp_get_global_styles( array( 'foo', 'bar' ) ) );              // entire styles array
}, 9999 );
}}}

== Expected ==

`null` when the requested path does not exist.

== Actual ==

The full settings (or styles) array.

== Cause ==

In `src/wp-includes/global-styles-and-settings.php`:

{{{#!php
return _wp_array_get( $settings, $path, $settings ); // wp_get_global_settings()
return _wp_array_get( $styles, $path, $styles );     // wp_get_global_styles()
}}}

The third argument of `_wp_array_get()` is the default returned when the path is not found, and here it is the whole array.

== Proposed fix ==

Return `null` for a missing path (i.e. drop the third argument / pass `null`), while keeping the existing behaviour of returning everything when `$path` is empty:

{{{#!php
if ( empty( $path ) ) {
	return $settings;
}
return _wp_array_get( $settings, $path, null );
}}}

Why `null` rather than an empty array:
 * It is `_wp_array_get()`'s own default for a missing path.
 * It distinguishes ""not set"" from a setting whose value legitimately ''is'' an empty array.
 * It makes the `?? $fallback` idiom work for callers.

== Backward compatibility ==

This is a behaviour change. Callers of both functions should be audited for any that pass a path that may be absent. In practice, a caller currently receiving the full array for a missing path is already getting an unusable value, so impact should be minimal. A dev note may be warranted.

Also needs unit tests covering: existing path, missing path, and empty path (returns full array)."	devansh2002
1	65120	Add `wp_elements_block_supports_class_name` filter to `wp_get_elements_class_name()`		Editor		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2026-04-23T18:57:36Z	2026-05-20T05:57:15Z	"== Description

This patch introduces a new filter, `wp_elements_block_supports_class_name`, to the `wp_get_elements_class_name()` function. This allows developers to customize the generated CSS class name for block elements.

== Current Behavior

Currently, the function generates a class name by serializing the entire block array and creating an MD5 hash:

{{{
$class_name = 'wp-elements-' . md5( serialize( $block ) );
}}}

There is no mechanism for developers to modify or override the generated class name without hijacking the entire function.

== Proposed Change

The patch adds a filter to enable customization:

{{{
return apply_filters( 'wp_elements_block_supports_class_name', $class_name, $block );
}}}

== Use Cases

This filter is valuable for:

 1. **Performance optimization** – Replace `serialize()` + `md5()` with more efficient class name generation for complex blocks.
 2. **Cache-friendly class names** – Generate human-readable names for easier debugging.
 3. **Custom hashing logic** – Implement alternative algorithms or naming conventions.
 4. **Integration with build tools** – Align class names with external CSS processes.

== Example

A developer could use the filter to create more readable class names:

{{{
add_filter( 'wp_elements_block_supports_class_name', function( $class_name, $block ) {
    if ( isset( $block['attrs']['id'] ) ) {
        return 'wp-elements-' . $block['blockName'] . '-' . $block['attrs']['id'];
    }
    return $class_name;
}, 10, 2 );
}}}

== Impact

 * **Backward compatibility:** Yes – existing behavior remains unchanged when the filter is not used.
 * **Performance overhead:** Negligible – only executes when hooked.
 * **Functional change:** None – additive only.

== Testing

Patch verified:
  * Existing functionality unchanged without filter.
  * Filter properly receives both `$class_name` and `$block` parameters.
  * Filter return value properly replaces the default class name.

== Additional Notes

 * `@since` tag used: `7.1.0`
 * Props: `@baikare.sandeep007`
"	baikare.sandeep007
1	61265	Add class name for block variations		Editor		normal	normal	Future Release	enhancement	new	has-patch	2024-05-22T08:20:16Z	2025-05-12T01:38:21Z	"In order to allow block authors to add custom styling for individual block variations, it would be convenient to have a class name automatically added for the variation.

There's some [https://github.com/WordPress/gutenberg/blob/c70633dabadb1c9ea846663d4d2b086394993035/packages/block-library/src/social-link/index.php#L53-L56 precedent] in the Social Icon block, which e.g. for its `WordPress` variation adds the `wp-social-link-wordpress` class name (in addition to `wp-social-link`)."	Bernhard Reiter
1	64608	Add support for Terms Query Pagination blocks		Editor		normal	normal	Awaiting Review	enhancement	new	changes-requested	2026-02-05T18:39:52Z	2026-05-30T22:10:47Z	"Introduce new blocks to enable pagination for terms queries, including ""Previous"", ""Next"", and ""Page Numbers"" links."	jillro
1	60830	Advanced Editor Tools - SIMPLE SORT		Editor	5.9.2	normal	normal	Awaiting Review	enhancement	new		2024-03-22T22:22:40Z	2024-03-23T05:54:32Z	"Under the Edit button, add SORT SELECTED TEXT.  Here is an example of what I am trying to sort.  I currently copy it to Libre Office, do a sort, then return it to the web page - which is:  https://xml3.com/songs/songs-for-smaller-scale-ukuleles/

    • Achy Breaky Heart    
    • Banana Boat Song  
    • Billy Boy  
    • Hush Little Baby  
    • It Ain’t Gonna Rain No More  
    • Jambalaya (On the Bayou)   
    • Skip to my Lou  
    • Tom Dooley    
    • Tulsa Time    
    • Waltz Across Texas     
    • You Never Can Tell  
    • Born in the USA 
    • Everyday People 
    • Feelin Alright "	robtcyn
1	63067	Allow non queryable taxonomies to be queried in Query Block		Editor		normal	normal	Awaiting Review	enhancement	new		2025-03-06T16:08:56Z	2025-10-08T13:11:54Z	"This ticket is branched out here[https://github.com/WordPress/gutenberg/issues/60301]. It allows querying and filtering posts based on non queryable taxonomies. To do this we need to perform the changes in the wp-includes/blocks.php to remove the following function when querying the post.
{{{
is_taxonomy_viewable()
}}} 

"	vedantgandhi28
1	48279	Avoid block markup in starter content and default pages		Editor	5.0	normal	normal	Awaiting Review	enhancement	new		2019-10-10T17:28:28Z	2020-11-24T04:11:49Z	"In #45151 the Hello World, Sample Page and Privacy Policy content were updated to supply block markup for the editor. The Privacy Policy was the only one that took into account the classic editor and avoided providing the markup in that case as it was also used on the guide which isn't an editor page.

In #48130 the starter content is being updated to account for the block editor by adding the necessary markup.

It would be nice for users of the classic editor to suppress that markup when they're not using the block editor similar to what was done for the Privacy Policy content."	garrett-eclipse
1	64725	Background block support: render uploaded images as <img> for responsive image support		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-02-25T19:18:12Z	2026-05-20T06:13:05Z	"For blocks using the background block support (e.g. Group), uploaded background images sized Cover or Contain with no tiling are now rendered as a native <img> element instead of CSS background-image.

This gives browsers access to srcset/sizes for responsive image selection, loading=""lazy"" for deferred loading, and decoding=""async"" for non-blocking decode benefits that CSS background-image cannot provide.

'no-repeat' is treated the same as unset (both compatible with object-fit). Only explicit tiling values (repeat, repeat-x, repeat-y) and background-attachment:fixed keep the CSS path.

The block wrapper receives position:relative to contain the absolutely-positioned <img>.
A guard prevents stomping any existing position: rule already on the wrapper.

== Gutenberg PR ==

https://github.com/WordPress/gutenberg/pull/75885

== Core PR ==

https://github.com/WordPress/wordpress-develop/pull/11050"	JosVelasco
1	66269	Block Supports: Add PHP helpers for generating styles and classes when serialization is skipped		Editor	trunk	normal	normal	7.3	enhancement	new	has-patch	2026-10-08T07:34:56Z	2026-10-16T10:13:15Z	"This ticket tracks backporting changes from Gutenberg to WordPress Core.

Gutenberg PRs:
https://github.com/WordPress/gutenberg/pull/84207
https://github.com/WordPress/gutenberg/pull/84205
https://github.com/WordPress/gutenberg/pull/84208
https://github.com/WordPress/gutenberg/pull/84206
https://github.com/WordPress/gutenberg/pull/84209

It adds a PHP helper for each of the border, shadow, spacing, color and background block supports, wp_get_border_classes_and_styles() and so on, mirroring the JS getBorderClassesAndStyles() family. Each takes block attributes and returns the support's class and style. The block supports now build their output with these helpers, and blocks that skip serialization can use them instead of rebuilding styles by hand.

Avatar, Post Featured Image, Icon, Post Navigation Link, Navigation Submenu, Comment Author Avatar, Calendar and Button currently copy parts of this logic, and the copies have drifted. Those blocks move onto the helpers when the Gutenberg package is next updated.

This is a behaviour-preserving change, so the block support output should be identical to before. It depends on https://github.com/WordPress/gutenberg/pull/13491 (background clip) landing first.
"	aaronrobertshaw
1	60587	Block hooks: Allow filtering of block data on traversal		Editor		normal	normal	Awaiting Review	enhancement	new		2024-02-20T23:32:27Z	2024-02-20T23:32:27Z	"When parsing blocks, it would be useful to be able to update block attributes, add metadata, or even potentially update a block name in a template for use in the client.

In the WooCommerce product editor, block templates are used ""statically"" in that the product form template is provided to the merchant without the ability to add/remove/reorder blocks.  If static templates are a valid use case for blocks, I believe many static template blocks will need to be editable to allow third parties some level of configuration.  In this case, we need to allow adding of metadata to blocks to control their visibility, but this can also be useful for updating the titles of blocks or adding block bindings to the templates.

{{{#!php
<?php
$block_to_modify = array(
  'blockName' => 'woocommerce/product-tab',
  'attrs'     => array(
    'id'       => 'pricing',
    'title'    => 'Pricing', // Extensions may want to update this property.
    'metadata' => array(), // Need the ability to add product type association, block bindings, and block hiding conditions here.
  ),
);
}}}

Templates and template parts that are parsed and retrieved via the REST API pass through the [traverse_and_serialize_blocks](https://github.com/WordPress/wordpress-develop/blob/bd78247617da4e23c02876423f400030eb0c75a3/src/wp-includes/blocks.php#L1356) function.  Adding a hook to the top of this function would allow flexibility in not only static templates, but also traditional persisted templates where an extension wants to replace block types with newly added blocks.

{{{#!php
<?php
$block = apply_filters( 'pre_traverse_and_serialize_block', $block );
}}}

Note that this is already possible by hooking into `get_block_templates` and re-traversing the tree but is less convenient and means poorer performance since all templates will have to be traversed at least twice."	joshuaflow
1	50803	Button link missing from block settings		Editor		normal	normal	Awaiting Review	enhancement	new		2020-07-29T13:22:52Z	2021-03-09T17:37:03Z	"When making a new post, adding a link to a button from the right side Block settings doesn't work, but adding it from the quick settings that appear next to block works.
Here is a video regarding the problem https://www.loom.com/share/6cf1f260edb7441d8a46f6bab0cfe804"	irinelenache
1	62791	Could `pre_render_block` come later		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2025-01-08T21:19:44Z	2026-02-02T10:44:45Z	"In the course of some investigations, I noticed that [https://github.com/WordPress/wordpress-develop/blob/d2a7bee9a6201f0276492ff29afd8c509480d266/src/wp-includes/blocks.php#L2113 `pre_render_block`] comes before [https://github.com/WordPress/wordpress-develop/blob/d2a7bee9a6201f0276492ff29afd8c509480d266/src/wp-includes/blocks.php#L2151 `render_block_data`] and [https://github.com/WordPress/wordpress-develop/blob/d2a7bee9a6201f0276492ff29afd8c509480d266/src/wp-includes/blocks.php#L2187 `render_block_context`]

This means I am not able to conditionally use `pre_render_block` with conditions based on either block context or programmatically added attributes. This seems limiting. (or at least it is in my current project, where I am trying to modify an existing block when it's part of my block - using my block's context)

Could `pre_render_block` come before actual rendering, but after these other filters? Or could we add another filter at the beginning of [https://github.com/WordPress/wordpress-develop/blob/287b2f8c961e8a67b2a232d37273b6ddfa611c28/src/wp-includes/class-wp-block.php#L451 `render()`]?



"	helgatheviking
1	60968	Create action `edit_form_before_title`		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-04-09T15:47:51Z	2024-04-09T16:02:11Z	"Triggered on the ""classic"" add/edit post pages before the title field is displayed. Will be the pair of already existing `edit_form_after_title`.

Helps hooking in before the title input field being displayed, so it would make it possible for plugins like ACF (or plugins extending ACF) to show custom fields even before the title input.

Note: I have a pretty valid use-case for it - the title should be automatically generated based on field(s) I should put above the title input field."	zoliszabo
1	55913	Custom Fields table can have extra-wide checkboxes and radio buttons		Editor	6.0	normal	normal	Awaiting Review	enhancement	new		2022-06-03T20:11:08Z	2022-06-04T00:33:37Z	"In [https://wordpress.org/support/article/custom-fields/ Custom Fields] feature, there is an unforeseeable problem in a specific CSS rule defined for ''div#postcustomstuff''.

More specifically there is this defined in wp-admin/css/edit.css:


{{{
#postcustomstuff table input, #postcustomstuff table select, #postcustomstuff table textarea {
  width: 96%;
  margin: 8px;
}
}}}

While this works well in the situation the rule was written for, it hides a problem when attempted to reuse the code for other cases, where a checkbox or checkbox or radio button is used, as it stretches them out.

[[Image(https://i.ibb.co/hmX30Nx/Screenshot-2022-06-03-230840.jpg)]]

You might want to consider excluding those two from the CSS rule...

{{{
#postcustomstuff table input:not([type=checkbox]):not([type=radio]),
}}}
"	princeofabyss
1	60001	Deprioritize categories		Editor		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2023-12-01T19:26:44Z	2024-02-14T00:08:28Z	"In the old days of blogging, we used categories. Nice, hierarchical structures which we all understood how they worked. However, as I was recently discussing the many issues around tags and categories with @matt, he made a strong point: people coming into blogging these days might understand tags a whole lot better than categories.

We also agreed that the fact that by default, WordPress ships with two taxonomies, (categories and tags), is less than ideal from a new user UX perspective.

So I'm proposing a change (for which @matt should actually get credit as he said it first in our conversation): we should (slowly) deprioritize categories. To start, on the pre-publish checks, we should not suggest people add a category to their post if they've never done so, or if they only have posts in the ""Uncategorized"" category.

I'd also suggest removing the Categories panel if that's the case. Would love to hear other opinions, or see implementations :)"	joostdevalk
1	59017	Duotone not working in 6.3		Editor	6.3	normal	normal	Future Release	enhancement	new		2023-08-09T07:35:24Z	2023-10-03T20:49:01Z	"When the WordPress Accessibility Day website updated to 6.3 today the duotone filters we have set on images stopped working. Rolling core back to 6.2.2 solves this problem. 

#58994 references changes to duotone in 6.3, however, bugs still exist.

Here's an example page on a site running 6.3 where duotone is no longer working: https://2023.wpaccessibility.day/about/organizers/. "	alh0319
1	57421	Editor: add new parameter to hook when enqueuing block assets		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2023-01-05T10:12:09Z	2023-01-10T18:16:16Z	"This trac ticket is part 1 of a larger discussion spanning multiple issues, about the **potential issues plugin authors may face when developing blocks that rely on the @wordpress/editor dependency**.

- This trac ticket is **part 1**: it suggests an option to make conditional asset enqueuing easier in the different block editors.
- In **part 2**, I would like to suggest an option to declare support for specific editors at block registration. Discussion about this is happening in [https://github.com/WordPress/gutenberg/issues/46900 this Gutenberg issue].

----

When enqueuing assets for a block registered in a plugin, one can rely on `block.json`, or hook into the `enqueue_block_editor_assets` hook to enqueue necessary scripts and styles in the block editor.

This works well, but offers some challenges with some specific blocks. For instance, your block may rely on the `@wordpress/editor` dependency to handle some of its functionality. That dependency is available in the post editor, but cannot be used in the widget editor or the site editor. See #53569 and [https://github.com/WordPress/gutenberg/issues/33203 33203-gutenberg] for more information on this topic.

In this scenario, one may want to enqueue the block's scripts (and its `wp-editor` dependency) **only in the post editor**. 

The `enqueue_block_editor_assets` hook doesn't currently offer this flexibility. As a result, folks wanting to do that must add a check before they enqueue. Something like this for someone not wanting to load in the widget editor for example.

{{{#!php
<?php
function enqueue_block_assets() {
    global $pagenow;

    // Return early when viewing the customizer or widgets screen.
    if ( is_customize_preview() || 'widgets.php' === $pagenow ) {
        return;
    }

    wp_enqueue_script( 'here' );
}
}}}


I was consequently wondering if it were possible to extend the `enqueue_block_editor_assets` hook a bit, so it could be used just like the `admin_enqueue_scripts` hook today, so we could do something like this:

{{{#!php
<?php
function enqueue_block_assets( $hook ) {
    // We only need our script in the post editor
    // not in the widget editor or the site editor.
    if ( ! in_array( $hook, array( 'post.php', 'post-new.php' ), true ) ) {
        return;
    }

    wp_enqueue_script( 'here' );
}
}}}"	jeherve
1	57595	Filter comments_array not called for Block comments		Editor		normal	normal	Awaiting Review	enhancement	new	close	2023-02-01T00:38:55Z	2025-10-06T15:44:26Z	"This is the code for `render_block_core_comment_template()`:
{{{
	// Get an array of comments for the current post.
	$comments = $comment_query->get_comments();
	if ( count( $comments ) === 0 ) {
		return '';
	}

	$comment_order = get_option( 'comment_order' );

	if ( 'desc' === $comment_order ) {
		$comments = array_reverse( $comments );
	}

	$wrapper_attributes = get_block_wrapper_attributes();

	return sprintf(
		'<ol %1$s>%2$s</ol>',
		$wrapper_attributes,
		block_core_comment_template_render_comments( $comments, $block )
	);
}}}

But that doesn't allow a plugin author to provide a custom ordering. In my case I am adding comment voting and we want to reorder comments by their up/down votes. I believe that the following line should be inserted prior to the `$wrapper_attributes` assignment:

{{{
	$comments = apply_filters( 'comments_array', $comments, $block->context[postId] );
}}}
"	cmautner
1	65126	Implement a lock mechanism for Site Editor templates (wp_template, wp_template_part) similar to the existing Heartbeat-based post locking system.		Editor	5.9	normal	normal	Future Release	enhancement	new	has-patch	2026-04-24T16:07:35Z	2026-07-10T02:17:49Z	"Currently, the WordPress Heartbeat API provides a reliable post locking mechanism for standard post types (e.g., post, page, article) where a postID is available. This prevents concurrent editing and ensures content integrity.

However, this mechanism does not function correctly for Site Editor entities such as wp_template and wp_template_part. Since these are managed through the Site Editor and do not follow the traditional post editing flow, the default locking behavior fails, leading to potential conflicts when multiple users edit the same template simultaneously.

This creates a gap in collaborative editing workflows, especially for teams working extensively with Full Site Editing (FSE).

A custom solution has been identified to address this limitation by introducing a lock mechanism tailored for Site Editor entities. The proposed approach ensures:

Proper identification and locking of wp_template and wp_template_part entities
Prevention of simultaneous edits across multiple users
Consistent behavior aligned with the existing Heartbeat-based locking system

Further implementation details and validation of the solution can be provided."	sparshie
1	60829	Improve shortcode support for link fields		Editor		normal	normal	Awaiting Review	enhancement	new		2024-03-22T16:55:25Z	2024-03-26T16:44:12Z	"Using a shortcode in a link field currently prepends {{{http://}}} to the field. They still render on the frontend, but this makes them functionally unusable because the resulting href is always prepended by that {{{http://}}}.

This is due to the JS function {{{correctURL}}} (in [https://github.com/WordPress/wordpress-develop/blob/4.4/src/wp-includes/js/wplink.js#L88 wp-includes/js/wplink.js]), which adds it if the URL does not start with {{{http:}}}, {{{https:}}}, {{{?}}} {{{#}}} or {{{/}}}.

I suggest adding {{{[}}} to that list of allowed characters, so shortcodes can be used too."	Code Muffin
1	46129	Inconsistent logic in allowed_block_types		Editor		normal	normal	Awaiting Review	enhancement	reopened		2019-01-28T18:05:51Z	2021-02-11T21:44:41Z	"There are many filters like that in WP (for example `mime_types`, `manage_posts_columns`, and so on) and all of them are getting a full list of items as `$allowed` param. This way developers can easy manipulate the list (add, remove and so on).

On the other hand `allowed_block_types` takes a totally different approach. If all blocks are allowed, you get ""true"" as list of allowed blocks. 

OK, it may look convenient, but...

1. It's inconsistent with any other WP filter...
2. It makes it really hard to blacklist blocks (let's say we want to remove only 2 blocks).
3. It makes getting the list of registered blocks impossible.

PS. I know - you can do this in JS. But I don't think that it's very convenient to put some options in PHP, store these options in DB and then in every request pass this value to JS and process it on client-side..."	drozdz
1	52659	Insert Link tool should not apply anchor tag before anchor has been applied		Editor		normal	normal	Awaiting Review	enhancement	new		2021-02-25T16:42:37Z	2021-02-25T18:27:21Z	With the anchor around the text before any link is applied, the user sees the text as underlined and can mistakenly believe the link is already applied.  If the user believes the link is already applied s/he may hit the escape key to hide the insert-link tool and they of course lose their work as the text reverts to its pre-linked state.	stevesicherman
1	60654	Install several formats of the same font one by one is not possible		Editor	6.5	normal	normal	Future Release	enhancement	new		2024-02-28T17:12:31Z	2024-09-16T07:19:34Z	"== Bug Report
=== Description
It's not possible to install multiple formats of the same font by installing one format at a time, but it works if you select different formats for the same upload.

=== Environment
- WordPress: 6.5-beta3
- PHP: 8.1.15
- Server: Apache/2.4.54 (Win64) OpenSSL/1.1.1q mod_fcgid/2.3.10-dev
- Database: mysqli (Server: 8.0.30 / Client: mysqlnd 8.1.15)
- Browser: Chrome 122.0.0.0 (Windows 10/11)
- Theme: Twenty Twenty-Four 1.0
- MU-Plugins: None activated
- Plugins: 
  * WordPress Beta Tester 3.5.5
  * Debug Log Manager 2.3.1

=== Steps to Reproduce
1. Go to Apparence > Editor > Styles. 
2. Click on Edit styles button then Typography (in settings sidebar).
3. Click on Manage fonts button then Upload.
4. Click on Upload font and select the font on your computer. Choose a font for which several formats are available (ttf, woff, woff2) and select only one format, e.g. ttf.
5. The font is uploaded and installed.
6. Then click again on Upload font and select another format for the same font, e.g. woff.
7. 🐞 The following error message is displayed: ""No font faces were installed. Fetch error: A font face matching those settings already exists."" But if you upload several formats (ttf, woff and woff2) of the same font at once, then all 3 files are imported and the font is installed 3 times.

=== Expected Results
1.  ✅ It should be possible to install different formats of the same font, at once or in several times.

=== Actual Results
1.  ❌ When uploading different formats of the same font at once, all files are uploaded and installed, with no error message. But if you've already uploaded a format for a font (e.g. ttf), you can't upload the font in another format (such as woff or woff2), and an error message is displayed."	jdy68
1	53287	Make SEO Meta Data Easy		Editor	5.7.2	normal	normal	Awaiting Review	enhancement	new		2021-05-27T12:48:18Z	2025-09-30T17:52:31Z	"**What problem does this address?**
Having SEO meta data is an important part of SEO. I am frustrated because in order to just add simple meta data to a page or post, a plugin must be downloaded or code must be inserted. Usually the plugin adds extra features that create additional notifications and bloat on the website.

Google sees proper SEO titles and descriptions as important that is why pages without these features show up with errors in Google Lighthouse.

**What is your proposed solution?**
My solution is to have the Gutenberg editor use the post excerpt for the meta description, the post tile for the meta title, and the post's tags for the meta tags. That way users can have basic SEO features when they use the Gutenberg editor instead of installing an additional plugin.

My solution makes it easier for new users who might not understand much about SEO to have an optimized website to compete in search engines better. Many WordPress users don't have the time or the budget to learn how to use SEO so making the editor SEO-friendly from the beginning is a start.

This also removes the SEO error a page will get in Google Lighthouse for not having a proper SEO title and description.

Originally from [https://github.com/WordPress/gutenberg/issues/32208]"	deborah86
1	39624	Misleading warning when editing the page_for_posts page		Editor	4.2	normal	normal	Awaiting Review	enhancement	new		2017-01-18T14:58:00Z	2025-09-25T14:32:35Z	"Whilst I was using Twenty Seventeen, I discovered some unusual page locking. It seemed the blog page was locked and I was unable to edit it, despite it being apparently not locked. I've not experienced this before and whilst it feels like a rare experience, I wanted to bring it to attention incase there was something deeper wrong.

[https://cldup.com/qn5iA2HXBR.mp4 Here is the video.]

Along with this, I experienced a further issue that I almost feel needs another ticket but going to throw it in together. I found I could upload and change featured images, despite a page lock. This felt weird and something I'd expect to not be able to happen.

Note: I can't see a pages component so putting under posts but unsure if correct placement."	karmatosed
1	65361	Modify the notes capability model		Editor		normal	normal	Awaiting Review	enhancement	new		2026-05-28T06:35:36Z	2026-05-28T06:37:40Z	"From what i can determine notes are stored as WP_Comments with a comment_type of note, so all standard comments APIs work — you can query them with get_comments() or via the REST API. WordPress


However it appears the permission model is tied to the post_type in that users must have the edit_post capability for that post to create or view notes. 

The core problem is that Notes are bolted onto the existing edit_post capability rather than getting their own capability axis. It conflates ""can give feedback on content"" with ""can change content"" — which are different roles in any real editorial or community workflow.
Almost every real-world use case wants to separate those, for example:

A club member who should be able to comment on a draft event page but not edit it
A client who reviews copy but doesn't touch it
A subject matter expert who annotates without authoring

The WP_Comments storage choice makes sense — it's the obvious place — but there should be a view_notes / create_notes capability pair independent of edit access."	shawfactor
1	65628	PHP-only blocks: in-canvas editing		Editor	7.1	normal	normal	Awaiting Review	enhancement	new	has-patch	2026-07-14T12:09:50Z	2026-07-14T14:02:23Z	"WordPress 7.0 introduced PHP-only block registration through `supports.autoRegister`. These blocks currently use a `render_callback`, so the editor displays a server-rendered preview rather than editable blocks, and can't be editable in-canvas.

This ticket tracks the WordPress Core changes for the in-canvas editing of PHP-only blocks, in particular the pattern-based approach explored in [https://github.com/WordPress/gutenberg/pull/80182 Gutenberg PR #80182]:

- It lets a PHP-only block provide a pattern instead of a render callback, so its content can be edited directly in the canvas.
- Patterns stay synced by default, and block authors choose which fields can be edited on each instance through pattern overrides.
- A PHP-only block can provide either a `render_callback` or a pattern. If both are registered, WordPress reports incorrect usage and uses the pattern."	priethor
1	60020	Padding issue on adding background color		Editor		normal	normal	Awaiting Review	enhancement	new		2023-12-06T10:27:27Z	2024-02-15T16:23:10Z	"When we add background colour to the paragraph it takes the padding automatically.
Video : https://drive.google.com/file/d/1c2nyyTsPIZEiPG8e30OZ0cfsIvgVK5LX/view?usp=sharing"	pitamdey
1	48789	Provide ability to drag and drop images among and between Gutenberg Blocks		Editor	5.3	normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2019-11-25T17:59:19Z	2020-11-24T23:44:04Z	"It is not possible to drag and drop images between the different GB blocks. For Example, if I make an image Block I cannot drag the image out of the block and drop into another block.


Therefore, to improve UX WordPress should provide the ability to drag and drop images among and between Gutenberg Blocks"	Pcosta88
1	57626	Searches to add a link in post-edit, to be sortable/filterable to better find tags		Editor		normal	trivial	Awaiting Review	enhancement	new	reporter-feedback	2023-02-03T14:30:14Z	2023-03-20T13:51:02Z	"Currently when adding a link to a post, I can search for a term and get back a mix of posts, pages and tags. This is the intended behaviour.

However, if the search term I am using is broad (e.g. 'Movies') and there are more than 20 posts on my site featuring the word Movies (this is often the case for a broad term), then WordPress will prioritise returning me 20 search results that are all posts, and will not return the Movies tag.

This is a general sorting issue, the search function prioritises posts over tags. 

I'd like see a change where an exact tag match would always appears as the top result.

If not, then an option to filter the search, perhaps with checkboxes to show Posts/Pages/Tags etc."	joshduffetywong
1	66105	Site Editor: Preserve block search state when returning from a block in Styles		Editor	7.1	normal	normal	Awaiting Review	enhancement	new		2026-09-14T14:46:58Z	2026-09-26T06:24:40Z	"When working in the Site Editor under Styles > Blocks, the search field is useful for finding related blocks.

The problem is that the search is cleared after opening one of the results and then going back to the Blocks list.

For example, if I search for ""Post"", open the Post Title block, make or review some style changes, and then go back, the search field is empty again and the full list of blocks is shown.

When working through several related blocks, this means entering the same search again after every block.

I think the previous search should be preserved when returning to the Blocks screen.

== Steps to reproduce ==

1. Open Appearance > Editor.
2. Open Styles.
3. Go to Blocks.
4. Search for something, for example ""Post"".
5. Open one of the blocks from the search results.
6. Open or change its styles.
7. Go back to the Blocks list.

== Current result ==

The previous search is cleared and the full list of blocks is shown.

== Expected result ==

The search term should still be present and the previous filtered results should still be shown.

For example:

Search ""Post""
-> Open Post Title
-> Edit/review styles
-> Go back
-> Search ""Post"" is still active

This would make it easier to work through multiple related blocks without having to repeat the same search every time."	smhz101
1	65614	Site Editor: skip block-theme-only preloads for classic themes		Editor	7.1	normal	normal	Awaiting Review	enhancement	new		2026-07-13T00:13:41Z	2026-07-13T00:13:41Z	"Since classic themes gained access to the Site Editor (Patterns screen for all themes, template parts mode via `block-template-parts` theme support), `wp-admin/site-editor.php` executes its full static REST preload list on every load — but several of those preloads exist only for the block theme canvas and are never requested by the classic theme editor UI.

Measured on Twenty Twenty-One (both plain and with `add_theme_support( 'block-template-parts' )`), using a WordPress Playground sandbox with a browser request waterfall: of the static preload set, only the site index, `/wp/v2/types?context=view`, active theme, settings, and the active global styles entries were consumed by the client. The following preloads executed server-side and were never fetched in either classic mode:

 * `/wp/v2/templates?context=edit&per_page=-1` — fetch-all, the most expensive entry
 * `/wp/v2/template-parts?context=edit&per_page=-1` — fetch-all
 * `/wp/v2/types/wp_template?context=edit`
 * `/wp/v2/types/wp_template_part?context=edit`
 * `/wp/v2/global-styles/themes/{stylesheet}/variations?context=view`
 * `/wp/v2/block-patterns/categories`

Each preload path runs a full internal REST dispatch during the admin page render, so classic theme sites pay time-to-first-byte cost for responses that are discarded. The two `per_page=-1` queries scale with template/template part count.

Proposal: gate the block-theme-only entries on `wp_is_block_theme()`. The template part related entries could remain when `current_theme_supports( 'block-template-parts' )` if measurement shows the template parts mode consumes them.

Related: #65206 added route-aware canvas preloads which are already guarded with `wp_is_block_theme()` after the same measurement showed classic themes never consume them (see the discussion with @t-hamano on https://github.com/WordPress/wordpress-develop/pull/11766). The reproducible measurement workload and full consumed/wasted tables per theme: https://github.com/chubes4/homeboy-rigs/pull/676

Happy to submit a PR with the guard if this direction looks right.
"	extrachill
1	65834	Tabs block: Extract Tab Panel content when generating automatic excerpts		Editor	7.1	normal	normal	Future Release	enhancement	new		2026-08-08T03:20:37Z	2026-08-12T10:48:43Z	"The new **Tabs block** can contain meaningful content inside its Tab Panels. However, when WordPress automatically generates an excerpt for a post containing a Tabs block, the content inside the Tab Panels is not included in the generated excerpt.

The Tabs block has the following structure:

{{{
Tabs
├── Tab List
│   ├── Tab
│   └── Tab
└── Tab Panels
    ├── Tab Panel
    │   ├── Heading
    │   ├── Paragraph
    │   └── List
    └── Tab Panel
        └── ...

}}}


For example, the first Tab Panel may contain:

{{{
Welcome to WordPress 7.1

WordPress 7.1 introduces several improvements and new features.

• Feature 1
• Feature 2
• Feature 3

}}}


When the post does not have a manually defined excerpt, this content is currently not considered when generating the automatic excerpt.

=== Steps to reproduce

1. Create a new post.
2. Add a **Tabs** block.
3. Add at least two tabs.
4. In the first **Tab Panel**, add:
   * A Heading.
   * A Paragraph.
   * A List with a few items.
5. Add different content to the second Tab Panel.
6. Publish the post without adding a manual excerpt.
7. Open the post through the REST API: `yoursiteurl/wp-json/wp/v2/posts/<post-id>`
8. Check the `excerpt.rendered` value.

=== Actual result

The content inside the Tab Panel is not included in the automatically generated excerpt.

For example:
{{{
""excerpt"": {
    ""rendered"": """",
    ""protected"": false
}
}}}



=== Expected result

The automatically generated excerpt should include meaningful text from the Tab Panel.

For example:

{{{
""excerpt"": {
    ""rendered"": ""<p>Welcome to WordPress 7.1 WordPress 7.1 introduces several improvements and new features. Feature 1 Feature 2 Feature 3</p>"",
    ""protected"": false
}
}}}


=== Proposed solution

Consider extracting text content from the **first Tab Panel** when generating an automatic excerpt.

The first Tab Panel is the initially visible/default panel, so its content could be used as the primary source for the generated excerpt.

Nested text-based blocks such as **Headings, Paragraphs, and Lists** should be considered.

Using only the first Tab Panel would also avoid combining potentially unrelated content from multiple panels.


=== Testing

A test should cover a post containing:

* A Tabs block.
* Multiple tabs and Tab Panels.
* A Heading, Paragraph, and List inside the first Tab Panel.
* Different content inside a second Tab Panel.
* No manually defined excerpt.

The test should verify that the generated excerpt contains the text from the first Tab Panel and does not unexpectedly include content from subsequent Tab Panels.

"	huzaifaalmesbah
1	60393	Test with Gutenberg active		Editor		normal	normal	Awaiting Review	enhancement	new		2024-01-31T03:53:44Z	2024-01-31T07:21:37Z	"On the back of #60315, an issue that keeps occurring on some sites ([https://wordpress.slack.com/archives/C02QB8GMM/p1706630823300079 For example, wordpressfoundation.org earlier today]) is that WordPress trunk ends up being incompatible with the latest stable release of Gutenberg. Usually this happens around PHP back-porting from Gutenberg to Core, but I guess could happen with some of the JS too (I just don't see it).

Generally, WordPress trunk has been treated in the past as ""it should be stable"", and as a result, is run on many WordPress.org properties as a way to [https://en.wikipedia.org/wiki/Eating_your_own_dog_food dogfood] and find out about bugs before it hits every other WordPress site in the world. Over the years, this has identified many issues that wouldn't have otherwise been noticed until after release. Often these sites consume the SVN/Git repo's directly, and as such [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/update-core.php#L1844 the upgrade routines] don't protect those sites.

I'd like to propose two changes to the unit tests in Core, as a way to hopefully notice these incompatibilities before it happens.
 1. Run a unit test run with Gutenberg stable active (Similar to how we run multisite vs not-multisite, but we can probably slim it down to Gutenberg stable + Trunk + Single PHP version, just to reduce action time)
 2. If it's a packages update, run all the tests with Gutenberg active (in addition to without)

For PRs such as the one that lead to the most recent issue, it'd have flagged that the commit would make trunk incompatible with the stable release, and either a) the core commit could've been delayed 12 hours, or b) the release of an updated Gutenberg could've been done first.

For other PRs/commits, it would highlight when a change in Core has caused Gutenberg to fatal or act oddly - Something that should be highly unlikely, but is plausible, and given how close Gutenberg and Core are, it just makes sense to me. This wouldn't replace the Gutenberg unit tests, but would act as a separate double-check."	dd32
1	59562	edit_form_after_title Hook Not Functional in Block Editor on New Post Page.		Editor	6.3.2	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2023-10-07T09:31:44Z	2026-02-07T00:24:08Z	"Hey Team,

We trying to add custom button before Post/Page Title, but it seems not working with Block Editor UI. 

Please check the following bug report -

**Problem**: `edit_form_after_title` Hook Not Functional in Block Editor on New Post Page

**Version**: WordPress Latest Version of WordPress

**Description**:

**Steps to Reproduce**:

1. Log in to your WordPress dashboard.
2. Go to the ""Posts"" section.
3. Click on ""Add New"" to create a new post.
4. Ensure you are using the Block Editor (Gutenberg).

**Expected Behavior**:

The `edit_form_after_title` hook should work correctly in the Block Editor on the New Post page, just as it does in the Classic Editor.

**Actual Behavior**:

The `edit_form_after_title` hook is not functioning as expected in the Block Editor on the New Post page. However, it works fine in the Classic Editor.

**Additional Information**:

- This issue is specific to the Block Editor.
- The `edit_form_after_title` hook is crucial for developers who rely on it to add custom content or functionality after the post title in the editor.
- It appears that this hook is not properly integrated or supported in the Block Editor on the New Post page.
- This issue could be affecting a wide range of WordPress users and developers who are transitioning to the Block Editor.

**Proposed Solution**:

1. Investigate and identify the root cause of the `edit_form_after_title` hook not working in the Block Editor on the New Post page.
2. Provide a fix or workaround for this issue.
3. Ensure that the Block Editor fully supports the `edit_form_after_title` hook, bringing it in line with the Classic Editor's functionality.
4. Test the fix thoroughly to confirm that it resolves the problem without introducing new issues.

**Impact**:

This bug affects developers and users who rely on the `edit_form_after_title` hook to extend the WordPress editor's functionality. Failure to address this issue could lead to a suboptimal user experience and hinder the adoption of the Block Editor.

**References**:

- [WordPress Plugin Handbook - edit_form_after_title Hook](https://developer.wordpress.org/reference/hooks/edit_form_after_title/)
- [Gutenberg Handbook - Block Editor Overview](https://developer.wordpress.org/block-editor/)"	danishwebaashi
1	64360	enqueue_block_assets action ignores script modules		Editor		normal	normal	Awaiting Review	enhancement	new	has-patch	2025-12-04T18:26:27Z	2026-01-26T16:35:24Z	"[https://developer.wordpress.org/reference/hooks/enqueue_block_assets/ The enqueue_block_assets action] is used to add scripts and styles in the block editor's iframe.

It should be possible to add script modules to the block editor's iframe as well.

See:

- [https://github.com/WordPress/wordpress-develop/blob/0b50baa5d164bedd17d3ae9e2eafc6286d6255b6/src/wp-includes/block-editor.php#L285-L390 _wp_get_iframed_editor_assets] and [https://developer.wordpress.org/reference/functions/_wp_get_iframed_editor_assets/ its documentation].
- [https://github.com/WordPress/wordpress-develop/blob/0b50baa5d164bedd17d3ae9e2eafc6286d6255b6/src/wp-includes/class-wp-script-modules.php#L16 The WP_Script_Modules class].
- [https://github.com/WordPress/gutenberg/blob/2314c0ceaf727c08a6091fd6ae82bb1759fb3c02/packages/block-editor/src/components/iframe/index.js#L99-L279 The block editor Iframe component in Gutenberg.]

This will likely require a new method or exposing more of the script modules internal data so that a specific WP_Script_Modules instance can be used for the iframed assets. See #60597."	jonsurrell
1	65332	Custom HTML block should display the HTML code by default		Editor	7.0	normal	major	Awaiting Review	feature request	new		2026-05-23T23:06:43Z	2026-05-26T16:16:20Z	"The Custom HTML block currently displays the Preview by default. This has major drawbacks in the following areas:

(1) Searchability – Users can no longer Ctrl+F/Cmd+F on the Editor page to search through all of the Custom HTML blocks at once; instead, users are made to click on one Custom HTML block at a time.
(2) Efficiency – Users are made to click on the Custom HTML block multiple times before being able to edit the code.
(3) Visual Experience – Many HTML tags do not render accurately in Preview, making it useless as a way to check whether the code renders correctly.

In sum, please bring back the old Custom HTML block where the HTML code was displayed by default, or at least please give users the ability to choose which view they want as their default."	kenjihayakawa
1	61001	"Hide the Editor Page Title when the current Template is ""Page No Title"""		Editor	6.5	normal	trivial	Awaiting Review	feature request	new		2024-04-12T08:33:13Z	2024-04-15T05:44:03Z	"In the TwentyTwentyFour Theme, 
i would like the Title of the page to be less visible when the current template is ""Page No Title"".

It might be subjective but i would say it's kind of confusing for the user that the title has the same presence as the rest of the content, but is not visible on the actual page.

I've created a example plugin implementing a suggestion for a possible behaviour. It decreases the titles opacity when the template is set to ""Page no Title""
[https://github.com/smetzdev/twentytwentyfour-hide-editor-title]
"	smetzdev
1	41953	Improved Meta Box Save Hook		Editor		normal	normal	Awaiting Review	feature request	new	close	2017-09-22T07:55:37Z	2025-09-22T10:56:34Z	"Hi,

This is suggestion how to reduce some conditionals for saving meta boxes with function for example. Below is code of meta box save function with all conditions for security and inside that function we always write some core condition for security that can be separated in one or more core functions to do that for us, so we can just call that function.

{{{
if ( ! function_exists( 'save_admin_meta_boxes' ) ) {
	/**
	 * Saves admin meta box to postmeta table
	 *
	 * @param $post_id int - id of post that meta box is being saved
	 * @param $post WP_Post - current post object
	 */
	function save_admin_meta_boxes( $post_id, $post ) {
		
		// If we're doing an auto save, bail
		if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
			return;
		}

                // If default wp nonce isn't there, bail
		if ( ! isset( $_POST['_wpnonce'] ) ) {
			return;
		}
		
		// If current user can't edit this post, bail
		if ( ! current_user_can( 'edit_post', $post_id ) ) {
			return;
		}
		
		// If current post type are not in list, bail
		$post_types = apply_filters( 'wp_allowed_post_types_for_meta_boxes', array( 'post', 'page' ) );
		
		if ( ! in_array( $post->post_type, $post_types ) ) {
			return;
		}
		
		// If our nonce isn't there, or we can't verify it, bail
		$meta_boxes  = apply_filters( 'add_meta_boxes_filter', array() );
		$nonce_array = array();
		
		if ( is_array( $meta_boxes ) && ! empty( $meta_boxes ) ) {
			foreach ( $meta_boxes as $meta_box ) {
				$nonce_array[] = 'extensive_vc_meta_box_' . esc_attr( $meta_box ) . '_save';
			}
		}
		
		if ( is_array( $nonce_array ) && count( $nonce_array ) ) {
			foreach ( $nonce_array as $nonce ) {
				if ( ! isset( $_POST[ $nonce ] ) || ! wp_verify_nonce( $_POST[ $nonce ], $nonce ) ) {
					return;
				}
			}
		}
		
		// Make sure your data is set before trying to save it
                global $meta_boxes_options;

		foreach ( $meta_boxes_options as $key => $value ) {
			$field_key = $_POST[ $key ];
			
			if ( isset( $field_key ) && trim( $field_key !== '' ) ) {
				update_post_meta( $post_id, $key, esc_html( $field_key ) );
			} else {
				delete_post_meta( $post_id, $key );
			}
		}
	}
	
	add_action( 'save_post', 'save_admin_meta_boxes', 10, 2 );
}
}}}

Example function with that conditionals

{{{
if ( ! function_exists( 'wp_meta_boxes_security_check' ) ) {
	/**
	 * Check is meta box secure and valid for saving
	 *
	 * @param $post_id int - id of post that meta box is being saved
	 * @param $post WP_Post - current post object
	 *
	 * @return boolean
	 */
	function wp_meta_boxes_security_check( $post_id, $post ) {
		$return_value = true;
		
		// If we're doing an auto save, bail
		if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
			$return_value = false;
		}
		
		// If default wp nonce isn't there, bail
		if ( ! isset( $_POST['_wpnonce'] ) ) {
			$return_value = false;
		}
		
		// If current user can't edit this post, bail
		if ( ! current_user_can( 'edit_post', $post_id ) ) {
			$return_value = false;
		}
		
		// If current post type are not in list, bail
		$post_types = apply_filters( 'wp_allowed_post_types_for_meta_boxes', array( 'post', 'page' ) );
		
		if ( ! in_array( $post->post_type, $post_types ) ) {
			$return_value = false;
		}
		
		return $return_value;
	}
}
}}}

and then finally code for saving meta boxes will be

{{{
if ( ! function_exists( 'save_admin_meta_boxes' ) ) {
	/**
	 * Saves admin meta box to postmeta table
	 *
	 * @param $post_id int - id of post that meta box is being saved
	 * @param $post WP_Post - current post object
	 */
	function save_admin_meta_boxes( $post_id, $post ) {
		
		// If meta box doesn't paste check, bail
		if ( ! wp_meta_boxes_security_check( $post_id, $post ) ) {
			return;
		}
		
		// If our nonce isn't there, or we can't verify it, bail
		$meta_boxes  = apply_filters( 'add_meta_boxes_filter', array() );
		$nonce_array = array();
		
		if ( is_array( $meta_boxes ) && ! empty( $meta_boxes ) ) {
			foreach ( $meta_boxes as $meta_box ) {
				$nonce_array[] = 'extensive_vc_meta_box_' . esc_attr( $meta_box ) . '_save';
			}
		}
		
		if ( is_array( $nonce_array ) && count( $nonce_array ) ) {
			foreach ( $nonce_array as $nonce ) {
				if ( ! isset( $_POST[ $nonce ] ) || ! wp_verify_nonce( $_POST[ $nonce ], $nonce ) ) {
					return;
				}
			}
		}
		
		// Make sure your data is set before trying to save it
		global $meta_boxes_options;
		
		foreach ( $meta_boxes_options as $key => $value ) {
			$field_key = $_POST[ $key ];
			
			if ( isset( $field_key ) && trim( $field_key !== '' ) ) {
				update_post_meta( $post_id, $key, esc_html( $field_key ) );
			} else {
				delete_post_meta( $post_id, $key );
			}
		}
	}
	
	add_action( 'save_post', 'save_admin_meta_boxes', 10, 2 );
}
}}}

Also I added some filter for allowed post types inside that function

{{{
$post_types = apply_filters( 'wp_allowed_post_types_for_meta_boxes', array( 'post', 'page' ) );
}}}

which allows authors to easily add their own custom post type with meta boxes for saving. 

Best regards,
Nenad"	Nenad Obradovic
1	63498	Improvement Native Lightbox Function		Editor	6.8	normal	normal	Awaiting Review	feature request	new	close	2025-05-28T13:19:51Z	2025-06-28T14:07:18Z	My suggestion is that, in the WordPress native lightbox function, there should be the possibility of zooming in on the image on mobile. The native lightbox makes life much easier, but when used on mobile, images with smaller information are difficult to read.	detonasaurus
1	54580	Latest Posts Gutenberg Block not supporting args filter.		Editor	5.8.2	normal	normal	Awaiting Review	feature request	reopened	reporter-feedback	2021-12-05T17:46:09Z	2022-01-31T13:24:43Z	"Shouldn't we add the filter for recent posts widget arguments in the Latest Posts Block?

{{{#!php
<?php
$args = apply_filters(
		'widget_posts_args',
		$args
	);
}}}

I didn't find it in the core wp-includes/blocks/latest-posts.php

This breaks the functionality in my plugin for hiding posts in the Recent Posts Widget.
 "	martin7ba
1	52990	Account for single quoted attributes when lazy loading images and iframes.		Embeds	5.5	normal	normal	Awaiting Review	defect (bug)	new	needs-unit-tests	2021-04-07T00:24:58Z	2024-04-12T08:10:42Z	"`wp_iframe_tag_add_loading_attr()` and `wp_img_tag_add_loading_attr()` includes a check to ensure the elements have a `src`, `width` and `height` attribute before adding the lazy loading attribute.

In both functions the check only considers attributes using double quotes so the lazy loading tag is not added for elements using single quoted attributes. [https://github.com/WordPress/wordpress-develop/blob/895d6a691d7ccdfe80cdf999bc0c8a78d11ad55a/src/wp-includes/media.php#L1893-L1895 img ref], [https://github.com/WordPress/wordpress-develop/blob/895d6a691d7ccdfe80cdf999bc0c8a78d11ad55a/src/wp-includes/media.php#L2012-L2015 iframe ref].

As WordPress does not normalize attribute tags to use double quotes, single quoted attribute tags ought to be considered.

Image version 5.5, iframe version 5.7.

Follow up to #50756, #52768."	peterwilsoncc
1	44399	Add unique capability for oembed		Embeds		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2018-06-18T20:11:34Z	2026-10-08T21:09:33Z	"Ran into a very specific use case today wherein I have a custom user role with a custom WYSIWYG editor on their profile. The user role has unique capabilities for a couple custom post types with unique capabilities. The user needs to be able to paste a YouTube URL in their profile editor, but I found that it doesn't work.

After some digging, I found that the oEmbed ajax function `wp_ajax_parse_embed()` checks for `current_user_can('edit_posts')`. Also, the oEmbed REST API does the same thing in the `WP_oEmbed_Controller::wp_ajax_parse_embed()` method.

This is a problem for custom post types with custom capabilities. We don't want the user to have the `edit_posts` permission, but they do have the `edit_custom_posts` equivalent. While this isn't a problem for `current_user_can('edit_post', $post_id)` calls, as it uses the post to grab the post object and thereby post object capabilities, the `edit_posts` primitive check has no context.

Since we can't rely on being able to gather post object context (as, in my case, there may be no post object as we're on the user profile), I propose creating a single (or group) of oEmbed capabilities. Something like `create_oembeds`.

Wanted to gather some feedback and thoughts from the community before putting together a patch. Let me know what you think! :)"	jason_the_adams
1	51328	Classic Editor adds extra p tags to Instagram Embed		Embeds	5.5.1	normal	normal	Awaiting Review	defect (bug)	new		2020-09-17T07:27:18Z	2023-07-31T11:04:26Z	"Issue:

On Classic editor with wpautop enabled, when adding an Instagram url to be embedded, the editor adds extra p tags.

Steps to replicate:

1. Use Classic Editor.
2. Place Instagram post url to editor (doesn't matter Visual, Text, with or without p tags)
3. Save Post.
4. Check frontend code. 

The output:

1. Closing </p> tag after the first link:


{{{
<blockquote class=""instagram-media"" data-instgrm-captioned data-instgrm-permalink=""https://www.instagram.com/p/XXX"" data-instgrm-version=""12"" style="" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:640px; min-width:326px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);"">
<div style=""padding:16px;""> <a href=""https://www.instagram.com/p/XXX style="" background:#FFFFFF; line-height:0; padding:0 0; text-align:center; text-decoration:none; width:100%;"" target=""_blank""> </p>
}}}


2. Closing </a> is inside p tag: {{{<p></a> </p>}}}

3. Script tag is inside p tag: {{{<p><script async src=""//www.instagram.com/embed.js""></script></p>}}}

Expected output:

No extra p tags, eg what you get with {{{remove_filter( 'the_content', 'wpautop' );}}}."	HannaIris
1	63667	Delete oEmbed postmeta if the related embed block is deleted / no longer present in the content		Embeds	2.9	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-07-06T14:01:52Z	2025-07-09T23:18:15Z	"While the post is updated/saved, oEmbed cache can be evaluated and updated. 

I want to use information about embeds, and it is much more convenient to use post meta than parsing blocks."	oglekler
1	59552	Rest api not returns embedded data,if i use at least one field.		Embeds		normal	normal	Awaiting Review	defect (bug)	new		2023-10-05T19:41:32Z	2025-08-26T21:00:11Z	"Hello. after updating of wordpress,rest api not returns embedded data,if we use at least one field,so we downgraded wordpress,but created test subdomain,which contains latest wordpress. Please compare requests:
https://опиши-мне.рф/wp-json/wp/v2/posts/5926/?_fields=content&_embed=author,wp:term
and
https://2019.опиши-мне.рф/wp-json/wp/v2/posts/5926/?_fields=content&_embed=author,wp:term

in second case it returns only content field,but in first - content field and embedded data. Please help to us fix this issue. Thank you very much."	sashakozlovskiy
1	34335	URL shorteners ( redirects) should to be supported by the embed handling for couple of hops		Embeds	2.9	normal	normal	Future Release	defect (bug)	reviewing		2015-10-16T22:35:15Z	2023-05-29T10:40:57Z	"It should be possible to use URL shorteners ( redirects) to load embeds.

I have been testing the new embeds feature and have found that a Bit.ly link doesn't work, but the resolved link does

I believe we should support at least one hop if not two 

"	pbearne
1	49271	Video Player not responsive when inserting YouTube or Vimeo URL		Embeds	4.9.8	normal	normal	Awaiting Review	defect (bug)	new		2020-01-22T16:17:47Z	2020-02-03T09:58:25Z	"When inserting YouTube and Vimeo Videos by URL into Editor, the automatically embedded player is not responsive.

Seen with WP 4.9.13, but ticket form Version dropdown menu does not offer this version, so I selected 4.9.8 instead."	TRILOS
1	53935	Vimeo oembed force player with large height on blog post		Embeds	5.8	normal	minor	Awaiting Review	defect (bug)	new	reporter-feedback	2021-08-16T17:08:49Z	2021-08-18T19:46:11Z	"Hi,

When embedding a Vimeo Video Player on a blog post, the admin automatic embed display the player correctly but the published version have height that is way bigger than the player.

How to reproduce : 
- create a new blog post
- insert text before
- embed a Vimeo video with link : player.vimeo.com/video/VIDEOID
- insert text after
- publish post

-> the vimeo video player is with large blank space on top and bottom

More details :

Seems like this is the iframe code on the WP Public page :

<iframe src=""https://player.vimeo.com/video/VIDEOID"" width=""1500"" height=""844"" frameborder=""0"" webkitallowfullscreen="""" mozallowfullscreen="""" allowfullscreen=""""></iframe>

>> this width / height seems large and does not seems to come from the site theme either.

"	Trouffman
1	42733	WordPress Embed URLs don't work for draft and scheduled posts with pretty permalinks		Embeds		normal	normal	Future Release	defect (bug)	assigned	has-patch	2017-11-28T16:46:36Z	2024-11-07T21:58:40Z	"This came up during work on #41451. Two tests fail with ''is_embed is false but is expected to be true'':
- `Tests_Embed_Template::test_oembed_output_draft_post`
- `Tests_Embed_Template::test_oembed_output_scheduled_post`

Without pretty permalinks, the return of `get_post_embed_url()` is `http://example.org/?p=8&embed=true`. This URL is recognised as an embed URL when the request is parsed.

But with pretty permalinks enabled, the return is `http://example.org/?p=8/embed/`. This is not recognised as an embed URL.

The reason for the mixed URL structure seems to be `get_permalink()`. This function does not return pretty permalinks for draft or future posts, see https://core.trac.wordpress.org/browser/tags/4.9/src/wp-includes/link-template.php#L165"	anonymized_8769252
1	44231	XML oembed discovery is not implemented correctly		Embeds		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-05-25T16:38:50Z	2026-07-23T11:36:33Z	"When using XML in oembed discovery, WordPress still tries to encode it as JSON and fails. It doesn't retry to check if XML would work. 

How to reproduce this: 
- Add a link tag for an XML oembed: this is clearly tagged as `text/xml+oembed` and also has the file extension `.xml`: `<link rel=""alternate"" type=""text/xml+oembed"" href=""http://example.com/oembed.xml?url=http://example.com/blah"">
- WordPress will now correctly resolve the provider as `http://example.com/oembed.xml?url=http://example.com/blah`
- Wordpress will send a request to: `http://example.com/oembed.xml?url=http://example.com/blah&maxwidth=525&maxheight=788&dnt=1&format=json`. Note how it adds `format=json` but still uses the `.xml` file extension
- The provider correctly returns an XML response, with HTTP status code 200
- Wordpress tries to parse it as JSON and fails
- Wordpress doesn't retry with `format=xml` since it only tries XML if the JSON endpoint failed with HTTP status code 501


Background info from the spec: 
- If the format of the request is given in the file extension (e.g. `/oembed.xml`), the provider should ignore the `format` parameter. (See https://oembed.com/#section2.2). 
- For discovery the provider should specify the full oembed endpoint, including the `format` paramter. It's therefore wrong to override it in Wordpress. (See https://oembed.com/#section4)"	rivalitaet
1	42074	YouTube Auto-Embed Does Not Work with Video+Playlist Links		Embeds		normal	normal	Awaiting Review	defect (bug)	new		2017-10-03T14:01:22Z	2025-05-07T06:52:38Z	"Hi,

When we past a video URL into the editor, it works fine:
`https://www.youtube.com/watch?v=0yGrCbYDUvQ`

But when embedding the ''playlist''-based URL, '''WordPress always shows the first video in the playlist''', despite the `v=0yGrCbYDUvQ` being set (see below what I am pasting). This is even if I ''don't'' have their `index` parameter set (indexes can move around):

`https://www.youtube.com/watch?v=0yGrCbYDUvQ&list=PLpxGtvV4Cq_IacCuIMunwiFx3c4G5h0mE`

To make it work, I always have to use YouTube's physical embed code, but then I don't get the benefits of WordPress auto-sizing it.

Any chance to get this parsed out a bit better?

Thanks!"	MicroBerto
1	60729	YouTube embed start=		Embeds	6.4.3	normal	minor	Awaiting Review	defect (bug)	new		2024-03-08T07:24:54Z	2025-03-06T09:55:33Z	"Hi. I am experiencing an issue where I am seeing the video start time being either randomized or shifted for each load.

Expected behavior: YouTube video embedded with a timestamp like {youtube_url}start=5064, video starts at 1:24:24 each time video is loaded on a blog post.

Issue 1: if ""resize for smaller devices"" is active the start point is randomized before posting. E.g. at 5064 it start approximately 30 seconds before it should (say 5034). I shift the start time to 5094 to try and compensate, resulting in it starting earlier than previously (say 5004). I leave it at 5064 and publish the blog post, with the result of it starting at 0 seconds (incognito mode, fresh browser, logged in).

Issue 2: Resize for smaller devices is turned off. Now the first time the video is loaded it starts where it is supposed to start at 5064 seconds (steps: start video -> refresh page -> start video -> refresh -> ...). But, for each time the blog post is loaded and the viewers presses play, the start time shifts back approximately 30 seconds. This does not happen in incognito mode, here it loads at the correct timestamp each time the page is reloaded and video started."	chrdre
1	42825	[embed] shortcode  - oembed_cache not being updated when $cached_recently is false		Embeds		normal	normal	Awaiting Review	defect (bug)	new		2017-12-07T12:32:01Z	2019-01-17T01:31:35Z	"For my plugin ( oik ) I developed a Shortcode help facility that shows examples of my shortcodes, syntax etc. It also shows examples of the WordPress core shortcodes. 
For [embed] it uses a YouTube URL
[embed width=""480"" src=https://www.youtube.com/watch?v=nH228-XQ-A8]

During PHPUnit testing in multiple environments I found I was getting different results. In one environment the content of oembed_cache was
{{{
<iframe width=""480"" height=""360"" 
src=""https://www.youtube.com/embed/nH228-XQ-A8?feature=oembed"" 
frameborder=""0"" gesture=""media"" allowfullscreen>
</iframe>
}}}
In other environments I was getting a different result.

{{{
<iframe width=""480"" height=""360"" 
src=""https://www.youtube.com/embed/nH228-XQ-A8?feature=oembed"" 
frameborder=""0"" gesture=""media"" allow=""encrypted-media"" allowfullscreen>
</iframe>
}}}

Note: The shortcode expansion is being performed in wp-admin with no global post.


Trace analysis of the `shortcode` method in shortcodes/class-wp-embed.php indicates
that the `$cached_post_id` is being set by `find_oembed_post_id`, which means that `$cache` is set to the content. But the post_modified_gmt of the first example is 25th November; so `$cached_recently` is false. 

Since `$this->usecache` is initially set to true then the `$cached_recently` logic is ignored and the route taken is to apply the first 'embed_oembed_html' filter then return.
 
The subsequent updating doesn't kick in. 

== Partial fix ==
It doesn't look at all logical but setting `$this->usecache=false` before the return of `$oembed_post_id` in `find_oembed_post_id` partially resolves the problem.

However, since there's no further checking of `$cached_recently`, this happens every single time. Obviously, more work is needed to update out of date cached items. 
 

This is a follow on to #34115"	bobbingwide
1	23431	[embed] shortcode doesn't work with do_shortcode()		Embeds	3.5	normal	normal	Future Release	defect (bug)	new	dev-feedback	2013-02-09T15:05:02Z	2025-07-07T21:43:39Z	It would be preferable to use the [embed] shortcode through do_shortcode rather than apply_filters( 'the_content',... in order to avoid sharing plugins, related posts plugins etc appending content to something that could simple be post meta, i.e. looking to convert a youtube url to a video.	jtsternberg
1	52935	oEmbed cache is no longer refreshed upon post update		Embeds	5.0	normal	normal	Awaiting Review	defect (bug)	new		2021-03-29T10:36:17Z	2021-03-29T10:36:17Z	"Before the Block editor was introduced, an AJAX request was used for refreshing oEmbed cache of a given post upon it's update.

See related code:

https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-embed.php?rev=48586#L81

and

https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/ajax-actions.php?rev=48586#L253

However, this code is no longer being triggered by the block editor for multiple reasons ( post update is happening via REST API, thus there is no redirect and the `edit_form_advanced` action prints only hidden fields in the block editor ), and even if it were, the `WP_Embed::cache_oembed` does not seem to properly parse the Block's editor notation. So, even switching to classic editor and updating the post won't make the oEmbeds to refresh.

The only way to refresh oEmbeds is a WP CLI command ( see https://developer.wordpress.org/cli/commands/embed-2/cache/ ).

Due to the way the Block editor handles display during the editing part and it's discrepancy in the front-end displaying part, an embed which, for whaterver reason failed to cache ( there is this `{{unknown}}` post meta for the URL stored in the database ), the embed may appear working in the edit post screen, but would appear broken when rendered on frontend.

Steps to reproduce / debug the issue would be:
1. adding a mu-plugin blocking any oEmbeds ( eg.: `add_filter( 'pre_oembed_result', function() { return false; }, 11 );` ),
1. create a new post with YouTube oembed
1. view the post, see it's broken
1. remove the mu-plugin
1. open the post in editor, see YouTube working, eventually try to re-save the post
1. view the post on front-end, see it's still broken

The above steps do not produce broken oEmbed in the last step, when all are performed in the classic editor.

While there is a WP CLI command for refreshing the oEmbed cache, there is no longer an easy way for a user w/o access to the server to refresh the oEmbed cache (which used to be as easy as re-saving the post).

Perhaps a cache refreshing logic could be introduced server-side, during the post update action?"	david.binda
1	37597	served oEmbed from cache even when expired		Embeds	4.0	normal	normal	Awaiting Review	defect (bug)	reopened		2016-08-08T11:37:17Z	2025-08-08T09:13:59Z	"There is wrong condition in wp-includes/class-wp-embed.php
Embeds are pulled from cache even if $cached_recently is false = expired.

This condition:

{{{#!php
<?php
if ( $this->usecache || $cached_recently ) {
}}}

should be changed to:

{{{#!php
<?php
if ( $this->usecache && $cached_recently ) {
}}}"	zabatonni
1	59299	Add Felt.com to the list of oEmbed providers		Embeds		normal	normal	Awaiting Review	enhancement	new		2023-09-06T15:45:40Z	2023-10-08T23:10:54Z	"I'd like to request whitelisting the Felt.com's oEmbeds. Their mapping platform is both robust and user-friendly, and would be a great addition to WordPress users interested in sharing maps online. 

Here's an example URL: https://felt.com/map/Learn-to-Use-Felt-Tutorial-0xljGYVlRzGfxNgRV9A6akC?loc=40.7849,-73.97533,13.94z&share=1

**Is the service is popular enough for core developers to have heard of it before? Is it “mainstream?”**

It's probably not mainstream yet, but it's a very well-known service in the GIS community.

**If similar services are already supported, how does this service compare in terms of size, features, and backing?**

As far as I know, core doesn't whitelist embeds for other mapping platforms. To embed maps from other providers (OpenStreetMaps, Google, Mapbox, etc.), a map block is required.

**Does this service have an established social media presence?**
Yes. 

https://twitter.com/felt
http://threads.net/@feltmaps
http://mas.to/@felt
https://www.youtube.com/@feltmaps

**Is its oEmbed endpoint clearly established and properly documented? (Sometimes, they are just a developer’s pet project that may not be supported.)
**
It's supported, but as far as I know, it's not documented in their dev documents https://feltmaps.notion.site/Getting-Started-With-The-Felt-API-69c8b02b7d8e436daa657a04a2dbaffa

**Does the oEmbed endpoint work with WordPress’ oEmbed auto-discovery? If not, could it be made to work with additional HTML tags or attributes being added to the allow-list?**

Yes, the embed is discoverable. 

**Does the service make an effort to build relationships with developers, such as through robust APIs?**

**How old is the service?**
The company was founded in 2021, the platform was launched at the beginning of 2022.

**Does it have a well-established Wikipedia article? (Seriously.)**
No, but they are contributors to several big open-source projects. More information https://felt.com/open-source, https://felt.com/blog/felt-flagship-member-of-qgis, and https://blog.qgis.org/2023/03/21/felt-is-our-first-sustaining-member

**Has anyone written a WordPress plugin that leverages the service in some way, whether adding it as an oEmbed provider, creating a shortcode, or leveraging other APIs of the service? Do these plugins have any noticeable adoption or traction that would indicate usage and demand?**
No, as far as I know.

**Is the provider frequently proposed?**
No, this would be the first time."	javiarce
1	62467	Add Gravatar as oembed provider		Embeds		normal	normal	Future Release	enhancement	new	reporter-feedback	2024-11-18T22:05:04Z	2025-06-25T00:36:07Z	"Gravatar recently began supporting oembeds to show a profile card. You can preview the card by appending .card to the end of any profile. For example: https://gravatar.com/matt.card

Is the service popular enough for core developers to have heard of it before? Is it “mainstream?”

Yes. 75+ million users and growing.


Does this service have an established social media presence?

Yes, via the parent Automattic brand. 


Is its oEmbed endpoint clearly established and properly documented? (Sometimes, they are just a developer’s pet project that may not be supported.)

https://docs.gravatar.com/api/profiles/embedding-profile-card/


Does the oEmbed endpoint work with WordPress’ oEmbed auto-discovery? If not, could it be made to work with additional HTML tags or attributes being added to the allow-list?

Yes.
Does the service make an effort to build relationships with developers, such as through robust APIs?

Yes: https://docs.gravatar.com/api/profiles/rest-api/

How old is the service?
~20 years.

Does it have a well-established Wikipedia article? (Seriously.)
https://en.wikipedia.org/wiki/Gravatar


Has anyone written a WordPress plugin that leverages the service in some way, whether adding it as an oEmbed provider, creating a shortcode, or leveraging other APIs of the service? Do these plugins have any noticeable adoption or traction that would indicate usage and demand?

The Gravatar Enhanced plugin (https://wordpress.org/plugins/gravatar-enhanced/) supports oembed in WordPress."	burtrw
1	51738	Adding Adventr as an oEmbed provider		Embeds		normal	normal	Future Release	enhancement	new		2020-11-09T22:13:12Z	2023-05-30T17:12:26Z	"This ticket is a request to have *.adventr.io added to the list of whitelisted oEmbed providers.

Adventr.io is a popular smart video creation tool that allows any creator to make and publish branching videos with personalized choose-your-own-adventure outcomes. It also allows creators to make parts of their videos into clickable links, so that viewers can learn more about things they see in the video. 

**Is the service is popular enough for core developers to have heard of it before? Is it “mainstream?”**

Adventr is being used by major brands and has been covered in mainstream press such as TechCrunch, Rolling Stone, and more. 
https://techcrunch.com/2014/05/13/adventr-launch/
https://www.rollingstone.com/music/music-country/texas-gentlemen-floor-it-movie-1076359/

**If similar services are already supported, how does this service compare in terms of size, features, and backing?**

Adventr would be the **only** white-listed provider of interactive video experiences. Adventr is the most feature-rich and robust platform for creating and publishing smart videos.

**Does this service have a large following on Twitter, Facebook, or other social media? Is its Twitter account verified?**
Adventr is not very active on social media (handle is adventrhq), but its founder & CEO has a verified Twitter account: https://twitter.com/springsteezy

**Is its oEmbed endpoint clearly established and properly documented? (Sometimes, they are just a developer’s pet project that may not be supported.)**
We have oembed API documentation: 
https://help.adventr.io/en/articles/4613290-adventr-oembed-api
Adventr is also supported by Embedly: https://embed.ly/provider/adventr

**Does the oEmbed endpoint work with WordPress’ oEmbed auto-discovery? If not, could it be made to work with additional HTML tags or attributes being whitelisted?**
It only partially works. WordPress's sandbox settings disable links and sharing within the embed, resulting in making some interaction elements and all share options non-responsive. Wordpress also prevents full-screen playback.
In the Rolling Stone article (which is powered by Wordpress) where they embedded an Adventr, clicking any share option fails, fullscreen fails, and links outside of the video also fail: https://www.rollingstone.com/music/music-country/texas-gentlemen-floor-it-movie-1076359/

**Does the service make an effort to build relationships with developers, such as through robust APIs?**
Adventr currently offers a realtime javascript API that our creators can use to make in-video interactions affect other parts their page. Details on this API are available here: https://help.adventr.io/en/articles/4467154-using-the-adventr-realtime-player-api
This API will be developed over time and allow creators to do more and more interesting things in the future.

**How old is the service?**
Adventr was originally founded in 2014 and rebranded with a new look and a brand-new HTML5 player in 2020.

**Does it have a well-established Wikipedia article? (Seriously.)**
Adventr's founder has a well-established Wikipedia article: https://en.wikipedia.org/wiki/Devo_Springsteen

**Has anyone written a WordPress plugin that leverages the service in some way, whether adding it as an oEmbed provider, creating a shortcode, or leveraging other APIs of the service? Do these plugins have any noticeable adoption or traction that would indicate usage and demand?**
Not yet, but there is plugin potential if someone wants to take advantage of the realtime player API and integrate it with other Wordpress plugins like WooCommerce etc.

**Is the provider frequently proposed?**
I believe this is the first time it is being proposed here. 
Our own users have written multiple support requests due to issues with Wordpress embeds, leading us to write a support article explaining how to use Custom HTML instead of Wordpress Embeds. However, this adds complexity to the use of Wordpress and makes it harder to take advantage of Wordpress's responsive sizing. For Wordpress users who are posting content created by other Adventr users (as in the Rolling Stone example above), we believe they expect the content to work correctly when embedded on their Wordpress site."	adventrpeter
1	55079	Allowed post tags and allowed tags iframe		Embeds	5.9	normal	normal	Awaiting Review	enhancement	new	has-patch	2022-02-04T13:16:44Z	2022-02-04T16:33:10Z	I have already checked wp-includes/kses.php file but now allowed iframe tags. iframe is very important for displaying youtube, vimeo videos and other platforms.  	csesumonpro
1	56489	An extra post lookup in WP_Embed::shortcode for known post		Embeds		normal	normal	Awaiting Review	enhancement	new		2022-09-01T16:34:26Z	2022-09-01T16:37:10Z	"`WP_Embed::shortcode` caches embeds into post_meta for known posts (ie.: embed in a post_content) or into a post of the `oembed_cache` post type in case the global post is not set (ie.: outside the loop).

However, [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-embed.php?rev=53269#L251 the code] always tries to lookup the `oembed_cache` post, even in case the global post is set, which results in an extra SQL query, since the `oembed_cache` post is never created, if there is a known global post.

The `$cached_post_id` variable populated by the `WP_Embed::find_oembed_post_id` function call is really only used in case there is no global post set, and thus, IMHO, should be only populated in such case."	david.binda
1	63468	Dark mode support for WordPress embeds		Embeds	4.4	normal	normal	Future Release	enhancement	new	dev-feedback	2025-05-20T18:58:17Z	2025-10-07T22:03:16Z	"WordPress embeds in version 6.8 and earlier do not support dark mode. They are always displayed with a white background with dark text, regardless of the user's system-wide light or dark mode settings.

This is because WordPress embeds do not include CSS rules for dark mode support. They were added before browsers widely supported the `prefers-color-scheme` media query.

On websites optimized for dark mode, the embedded WordPress posts stand out harshly and can create an unpleasant visual experience. Since embeds are rendered within iframes, embedding sites have little control over their styling.

Other platforms that support oEmbed, such as Bluesky, adjust their embed appearance based on the user's system preferences. Ideally, WordPress should adopt the same approach.

If this is an issue, it affects all websites that embed WordPress posts. Therefore, it might make sense for dark mode support to be implemented in WordPress core rather than relying on plugins. Otherwise, every WordPress instance would need to install a plugin to ""play nice"" with the rest of the websites.

Although dark mode is often seen as an aesthetic feature, it can also offer accessibility benefits and contribute to power savings:
- https://web.dev/articles/prefers-color-scheme
- https://www.nngroup.com/articles/dark-mode-users-issues/
- https://web.dev/case-studies/terra-dark-mode"	meszarosrob
1	63948	Distinguish between “Link Preview Card” and “Embed WordPress (full post)”		Embeds		normal	normal	Awaiting Review	enhancement	new		2025-09-09T15:11:21Z	2025-09-11T07:13:59Z	"### Summary

 - https://github.com/Automattic/wordpress-activitypub/issues/2152
 - https://github.com/WordPress/gutenberg/issues/71564

When embedding a WordPress link in the Block Editor today, it’s rendered in a **URL preview card** style. However, on some WordPress sites (e.g., those using the **Avada** theme), the embed attempts to render the **entire site** within the block. While that may be a theme–embed compatibility issue, the net result is **inconsistent behavior** depending on which theme powers the target site. We’ve tolerated this ambiguity because there hasn’t been a clean alternative.

By contrast, on the Fediverse side, **Mastodon** exposes a clearly defined **PreviewCard** (OpenGraph-driven) concept:

* [https://docs.joinmastodon.org/entities/PreviewCard/](https://docs.joinmastodon.org/entities/PreviewCard/)
* [https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/](https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/)

And when going through a **Mastodon proxy** to embed a WordPress post, we can successfully retrieve **the full post body**.

**Core point:**

* Today, “Embed WordPress” behaves like a **URL preview card** (title + excerpt + image), cannot embed the **full post body**, and is sensitive to target theme quirks.
* If we say “Embed WordPress,” it should—strictly speaking—fetch and render the **post content**, not just show a preview.

---

### Problem

* **Conflation of two concepts:**

  1. **Preview** (OpenGraph/Twitter Card/Mastodon PreviewCard—lightweight summary), and
  2. **Embed** (oEmbed or compatible transform that renders the actual post content).
* **Inconsistent UX** depending on the target site’s theme (e.g., Avada), where the block may try to embed the entire site wrapper or behave unpredictably.
* **ActivityPub context:** The Fediverse already distinguishes previews from content (e.g., PreviewCard vs. Article/Note bodies). WordPress should mirror that separation for predictable embeds.

---

### Proposal

Introduce **two explicit embed modes** in the Block Editor (and expose the distinction to ActivityPub if/where relevant):

1. **Link Preview Card (lightweight)**

   * Driven by OpenGraph/PreviewCard-like data.
   * Always consistent: title, description/excerpt, preview image, source domain.
   * Theme-agnostic outcome.

2. **Embed WordPress Post (full content)**

   * Fetches and renders the **post body** (within a safe, sanitized container).
   * Theme-agnostic; does **not** attempt to embed the entire site shell.
   * Clearly labeled as “Full post embed,” with fallbacks if full content retrieval fails.

**Behavior:**

* Default to **Preview Card** for any external URL.
* When the target is a **WordPress post**, allow switching to **Full Post Embed** (explicit control).
* For ActivityPub contexts, keep Preview vs. Full distinct in the UI and payload.

---

### Why this helps

* **Consistency:** No more theme-dependent surprises (Avada or otherwise).
* **Clarity:** Authors choose Preview vs. Full explicitly.
* **Parity with Fediverse:** Mirrors Mastodon’s PreviewCard vs. actual post content distinction.
* **Better journalism/long-form:** Aligns with ongoing work to represent long-form content cleanly across platforms.

---

### Edge Cases / Risks

* Full-content embeds require robust **sanitization** and **styling isolation** (e.g., shadow root or scoped styles) to avoid CSS/JS bleed.
* Fallback to Preview Card when full content retrieval fails or is disallowed by the target.
* Caching and revalidation policy to avoid stale embeds.

---

### Repro (current behavior)

1. In the Block Editor, paste a WordPress post URL.
2. Observe it renders as a **preview card** (not full content).
3. Try a site using **Avada**; you may see inconsistent or site-shell embeds.
4. Compare with a **Mastodon proxy** path where the **full post body** can be retrieved.

---

### Suggested UI

* Block: **“Link Preview”** vs **“Embed WordPress Post”** toggle (auto-detected for WP targets).
* Clear labels/tooltips explaining the difference.

---

e.g. https://designbusan.wpcomstaging.com/2025/09/09/embed-2/

| Case | Screenshot | Notes |
|------|------------|-------|
| **1. Current “Preview Card” for WordPress links** | <img src=""https://github.com/user-attachments/assets/45d50f0d-8193-4429-8890-d7585479bfee"" width=""500"" /> | Title, excerpt, image only. Not the full post body.<br>Behavior can vary depending on the theme. |
| **2. Mastodon proxy → WordPress post (full body)** | <img src=""https://github.com/user-attachments/assets/f72a5c68-a23b-4a6d-b2ef-5e5decd52dcf"" width=""500"" /> | Shows that full content retrieval is possible.<br>Demonstrates the case for a distinct **“Full Post Embed.”** |
| **3. Avada-themed site link → inconsistent embed** | <img src=""https://github.com/user-attachments/assets/461060f0-339e-435d-9e14-b9dd42e90d9f"" width=""500"" /><br><img src=""https://github.com/user-attachments/assets/32ab5736-1e61-4f08-bf00-4a12a60d76c2"" width=""500"" /> | Attempts to embed the entire site shell.<br>Highlights why we need to separate **Preview vs. Full Content modes.** |


---

### Open Questions

* Should the **Full Post Embed** rely on oEmbed, a dedicated REST endpoint, or a sanitized server-side transform?
* What is the **cache invalidation** strategy for embedded content updates?
* For ActivityPub contexts, should “Full Post Embed” be exposed as a distinct block/type or remain a WordPress-only authoring affordance?
"	kimjiwoon
1	61127	Make `wp_filter_oembed_result` less strict		Embeds	4.4	normal	normal	Awaiting Review	enhancement	new	has-patch	2024-05-02T10:09:08Z	2025-02-12T06:37:04Z	"This is something I noticed while reviewing the Bluesky oEmbed endpoint in #61020.

Said provider returns data such as this:


{{{
{
type: ""rich"",
version: ""1.0"",
author_name: ""Bluesky (@bsky.app)"",
author_url: ""https://bsky.app/profile/bsky.app"",
provider_url: ""Bluesky Social"",
cache_age: 86400,
width: 600,
height: null,
html: ""<blockquote class=""bluesky-embed"" data-bluesky-uri=""at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3kqjaq2begs2s"" data-bluesky-cid=""bafyreiemvzul73xccne3qzfn2jbinn5yq3yk2gpvi2xlr2bxfva6fvb6m4""><p lang=""en"">We&#39;re always excited to welcome journalists and news organizations to Bluesky! 🗞️

Journalists have continuously been one of the backbones of social media. It&#39;s incredibly important to have a space for healthy real-time discussion.

📧 press@blueskyweb.xyz
🙋 Press FAQ: bsky.social/about/blog/p...</p>&mdash; <a href=""https://bsky.app/profile/did:plc:z72i7hdynmk6r22z27h6tvur?ref_src=embed"">Bluesky (@bsky.app)</a> <a href=""https://bsky.app/profile/did:plc:z72i7hdynmk6r22z27h6tvur/post/3kqjaq2begs2s?ref_src=embed"">2024-04-19T21:21:32.853Z</a></blockquote><script async src=""https://embed.bsky.app/static/embed.js"" charset=""utf-8""></script>""
}
}}}

The HTML contains a `<blockquote>` with some `<p>` and `<a>` in it, and a `<script>` tag.

Right now, this provider isn't in the allowlist, so when I try to embed it, WordPress successfully gets the HTML, but then `wp_filter_oembed_result` strips all markup because while it contains a `<blockquote>` (which is allowed), it does not contain an `<iframe>` (which the function requires). So `wp_filter_oembed_result` and ultimately the `wp-json/oembed/1.0/proxy` REST endpoint return `false` for the `html` property, which means no embed is happening, and all you get on the frontend is the URL of the Bluesky post, and it is not even linked.

To improve the experience with such untrusted providers, I think we could at least allow standalone `<blockquote>` and `<p>` tags without requiring an `<iframe>`."	swissspidy
1	54414	Support embedding Mobile Twitter URLs		Embeds	5.0	normal	normal	Awaiting Review	enhancement	new		2021-11-10T16:04:55Z	2021-11-10T16:47:18Z	"When embedding a mobile variant of a Tweet URL, the Gutenberg Embed block considers the URL to be an invalid embed. 

== Steps to Reproduce

1. Add an Embed block via the web or native mobile Gutenberg block editor. 
2. Set the Embed block URL to a mobile Twitter URL: https://mobile.twitter.com/rauchg/status/807626710350839808
3. Save the Embed block settings, persisting the URL. 

== Expected Result

The Embed block displays a preview of the Tweet as an embed. 

== Actual Result

The Embed block marks the URL as invalid, resulting in a error message or a plain text URL. 

== Related

* [https://github.com/WordPress/gutenberg/issues/35357 Gutenberg Issue]
* [https://github.com/WordPress/wordpress-develop/blob/f2d146d3f1ebd5661af2efd3099b0c988df538c8/src/wp-includes/class-wp-oembed.php#L67-L72 Relevant oembed code]
* oEmbed API response message: 
{{{
{
    ""code"": ""oembed_invalid_url"",
    ""message"": ""Not Found"",
    ""data"": {
        ""status"": 404
    }
}
}}}

== Environment
* **WordPress:** 5.8.1
* **Theme:** Twenty Twenty-One
* **Plugins:** none
* **Browser:** macOS Safari 15.1"	dpcalhoun
1	39850	WordPress embedded links drop query vars from URL		Embeds		normal	normal	Awaiting Review	enhancement	new		2017-02-11T23:02:51Z	2017-02-11T23:29:04Z	"When embedding a WordPress page within another post, any query strings that are passed in the URL get dropped.

For example, if embedding http://example.com/page-name/?foo=bar, the actual URL that gets passed to the oEmbed function (and later on to the template files) is http://example.com/page-name/embed/  (foo=bar gets dropped).

The link inside the blockquote also drops the url query variable and links to http://example.com/page-name/ instead of http://example.com/page-name/?foo=bar

As I see, this occurs because the `wp_filter_pre_oembed_result` function in `embed.php` uses `url_to_postid` to get the embeded post's ID, and later `get_post_embed_url` uses that ID to create the embed permalink. So naturally any url query vars are not preserved in the final URL construction.
Similarly in `get_post_embed_html`, the function uses `esc_url( get_permalink( $post ) )`, thus  reconstructing the permalink without knowledge of the initial url.

I encountered this when embedded a specific photo gallery (from nextcellent plugin), but I assume some other plugins such as language/translation ones may also be affected.

I don't think the URL's should be dropping any of the query variables.
However, if that is a requirement, it would be good to also pass on the original url in the `post_embed_url` hook to allow plugin developers to make sure to add any parameters from the original url that got dropped off in the embedded url."	charleslf
1	65087	oEmbed dynamic aspect ratio handling in block themes without $content_width		Embeds		normal	normal	Awaiting Review	enhancement	new		2026-04-17T10:45:39Z	2026-04-17T10:45:39Z	"oEmbed handling in block themes is good for well known players like YouTube with the embed block aspect ratio class handling, but some embeds are just coming out at 500px per the default `wp_embed_defaults()` settings, especially now that block themes don't necessary set `$content_width` - the theme.json content width replaces it many ways but it can have a unit other than px.

I think that block themes should set default embed max widths to the same dimension as the large image width, and then if the oembed data response contains `width` and `height` values, generate a class name and add supporting styles to set the aspect-ratio and auto height, or output inline styles on the iframe.

This will improve the output and behaviour to match user expectations for more built in, custom and discoverable embeds.

One example is using the player.vimeo.com video embed endpoint - used for non publicly listed videos, try embedding https://player.vimeo.com/video/1138248349 and make the block full width.

In summary:

* Setting `$content_width` is no longer viable as a simple pixel value for settings embed width and may be missing
* theme.json can use number + units for the `contentWidth` and `wideWidth` so can't reliably set `$content_width` from it
* The default embed size from `wp_embed_defaults()` is 500px wide without `$content_width` set to something else
* Passing `width` or `maxwidth` to the provider URL via the `oembed_fetch_url` filter gets a larger embed within the iframe, but it isn't responsive e.g. height remains fixed"	sanchothefat
1	46537	Can't use Emoji in the Custom HTML widget	SergeyBiryukov	Emoji	4.8.1	normal	normal	Future Release	defect (bug)	reopened		2019-03-16T07:21:54Z	2019-10-09T17:15:11Z	Type emoji. Then the cursor does not move.	hirofumi2012
1	58663	Emoji: Consider eliminating expiry-based invalidation of wpEmojiSettingsSupports sessionStorage cache		Emoji	6.3	lowest	trivial	Future Release	defect (bug)	new		2023-06-28T20:06:05Z	2026-10-08T06:20:59Z	"Currently the results of the emoji-loader's tests for whether or not emoji are supported get cached in the browser's `sessionStorage` for 1 week. For most users, this expiration will never be reached since the browser tab would be closed and the `sessionStorage` cleared anyway. For the minority of users who keep a single tab open for weeks at a time, including those who restore tabs after installing an OS update, there can be scenarios where (1) the OS or Twemoji was updated to support emoji but the cache causes Twemoji to still be loaded, or (2) the emoji support was not changed and yet the browser re-checks support after a week unnecessarily. 

See [https://github.com/WordPress/wordpress-develop/pull/4562#discussion_r1243983163 GitHub pull request discussion] for more context and possible solutions.

Nevertheless, as of #58472 the emoji tests have been greatly optimized so the cost of re-calculating support unnecessarily is not a meaningful performance hit, especially since ever since emoji support was introduced until now, the tests were being run on every page load anyway. This may not be worth the effort to resolve."	westonruter
1	59716	Deprecated messages exporting post meta with meta_value null from PHP 8.1		Export		normal	normal	Awaiting Review	defect (bug)	new		2023-10-24T13:55:00Z	2023-10-30T18:20:11Z	"Today I attempted to export some products from one database to import into another.
I encountered several Deprecated messages emanating from code within `wxr_cdata()`

It appears that the export code doesn't specifically cater for meta data with null values.
Prior to PHP 8.1 the null values were treated as empty strings. 

There are several plugins that are ''guilty'' of producing post meta data containing nulls. Two of them are in the top 12 plugins by total downloads: All-In-One-SEO-Pack and WooCommerce.

=== Actual output 
Here's the exported post meta for WooCommerce's `_stock` field.
{{{
						<wp:postmeta>
		<wp:meta_key><![CDATA[_stock]]></wp:meta_key>
		<wp:meta_value><br />
<b>Deprecated</b>:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in <b>C:\apache\htdocs\gardenvista\wp-includes\formatting.php</b> on line <b>885</b><br />
<br />
<b>Deprecated</b>:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in <b>C:\apache\htdocs\gardenvista\wp-admin\includes\export.php</b> on line <b>207</b><br />
<![CDATA[]]></wp:meta_value>
		</wp:postmeta>
}}}

Both of these Deprecated messages can be avoided by a simple change as the first line of `wxr_cdata()`

{{{
if ( null === $str ) {
            $str = '';
        }
}}}

=== Expected output:

- The export should complete without producing the Deprecated message output in the post meta value. 
- Null values should continue to be treated as empty strings


=== Environment:
- PHP 8.1.23 or PHP 8.2.10
- WordPress 6.4-RC1
- Plugins: WooCommerce and/or All-In-One-SEO 







"	bobbingwide
1	34798	Export Bug		Export		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2015-11-27T05:00:43Z	2017-10-03T07:52:59Z	"
We found a bug in export process that prevents post data changes going to actual export.
In wp\wp-admin\includes\export.php L416 you select all matching posts from DB, having $posts array of stdClass objects as result. Then you call setup_postdata for every post, that goes to wp\wo-includes\query.php setup_postdata which calls  $wp_query->setup_postdata after passing the $post. 
In function setup_postdata L4754 you check instance of the $post which will always be stdClass and create a new $post object. It breaks the reference link original $post from export.php so all changes in function setup_postdata will not be reflected to original object.

A possible fix would be converting $post object to WP_Post before calling setup_postdata in expost.php Please see patch attached

"	eugenekireev
1	52470	Exported WXR contains terms twice		Export		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-02-08T16:31:25Z	2023-08-04T12:32:58Z	"How to reproduce: after a fresh WordPress install (no active plugins) go make a WXR export file. If you open the WRX file you'll notice the Uncategorized appears twice: the first time as `wp:category` element, the second as a `wp:term`.
The `wp:category` comes from https://github.com/WordPress/WordPress/blob/5.6.1/wp-admin/includes/export.php#L158, the `wp:term` from https://github.com/WordPress/WordPress/blob/5.6.1/wp-admin/includes/export.php#L162-L167. With the setup described (no plugins) the only registered taxonomies are the builtin ones, therefore `$custom_taxonomies` contains an empty array. When `get_terms()` receives an empty array as the `taxonomies` param it will return all terms, of every taxonomy.
This also means that if there are other taxonomies registered the issue doesn't show up.

This is a regression: on WordPress 4.4 it doesn't happen.
A `git bisect` pointed to https://github.com/WordPress/WordPress/commit/3f7441d674d304a8ad0912831aa9685cdc8bff93 as the culprit.
The commit states that it maintains backwards compatibility, but it does not in case an empty array is passed as `taxonomy` param."	karl94
1	52815	Wrap long Category name drop down when export post on export.php screen		Export	5.7	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-03-15T06:24:12Z	2026-09-01T15:42:15Z	"Hi

When our category name long then getting UI issue. You can see mentioned screenshot.

Thank you."	sumitsingh
1	39298	Add filters for the exporter		Export		normal	normal	Awaiting Review	enhancement	new		2016-12-15T15:25:36Z	2019-03-15T01:06:47Z	"I think being able to enhance the exporter with plugins would be very helpful. If there was a filter for the export options where custom export queries could be made to possibly return the $post_ids to be exported I think that would be a great addition because I recently had to edit the core export file to build a custom export query. I noticed one plugin attempted this but resorted to completely replacing the export.php file.

"	stormrockwell
1	55762	All export xml files have same name		Export		normal	normal	Future Release	enhancement	new	dev-feedback	2022-05-18T09:09:58Z	2025-02-20T12:06:12Z	​All download export files​, whether posts or pages ​give the same file name.​ Its difficult to manage if you have several of them because unlike a picture or a word file that you can open and see the contents, a user cannot see the content of the xml file until they upload into a WordPress panel. Loading the wrong file means one needs to clean up and then go back to look for the right file. I suggest each xml download from the Export panel bear the unique name of the file. ​	martiniwebb
1	48366	Export valid paragraphs HTML with wpautop applied		Export		normal	normal	Awaiting Review	enhancement	new		2019-10-18T12:26:13Z	2021-05-25T18:23:11Z	"WordPress exports post content mostly as is from database. It runs through `the_content_export` filter, which does not by default have any of the typical `the_content` filters added.

The most visible impact is that `wpautop()` is not applied and paragraphs have no `<p>` tags around them.

Effectively this makes exported content corrupted for systems other than WordPress itself.

In spirit of ""own your data"" I suggest this is reconsidered, in favor of exporting valid platform-agnostic HTML markup.

From a quick look on implementation levels it seems just adding `wpautop()` might not be sufficient due to a special blocks-related logic in WP 5+ ? Or can that be ignored for export purposes?"	Rarst
1	26311	Updated (responsive) Tools -> Export admin screen		Export	3.8	normal	normal	Awaiting Review	enhancement	new	needs-refresh	2013-11-29T05:02:40Z	2019-02-26T02:25:27Z	"Updated Tools -> Export admin screen

Switched from un-ordered lists based html to tables based HTML based on Permalinks admin screen.

''No javascript was harmed in this patch...''


"	netweb
1	50013	[Feature Request] Tools: Export: Post, Categories: All - but exclude these		Export		normal	normal	Awaiting Review	feature request	new		2020-04-26T09:22:54Z	2020-04-26T09:22:54Z	"When exporting Posts, you can select which post categories you want to export. My FR is about a inverse selection - export all but the selected categories. Means having category A, B, C, D, I want to export all but A.
This could be made with an additional checkmark defining it is a inverse selection."	mmattel01
1	51142	Invalid Moment.js locale from get_user_locale()		External Libraries	5.0	normal	normal	Future Release	defect (bug)	new	needs-unit-tests	2020-08-25T22:28:16Z	2023-06-30T08:37:12Z	"`get_user_locale()` returns a locale in the format `en_US`, which is passed directly to Moment.js, e.g. `moment.updateLocale( 'en_US', {...} )`.

Since Moment.js doesn't actually support two-part locales, this causes some issues. For example, `moment().format( 'Do' )` returns `25` where it should return `25th`. This is because the local *ordinal* is lost as a result of setting an undefined locale.

The locale should either be passed in a format that Moment.js understands, such as `en`, or `moment.defineLocale( 'en_US', { parentLocale: 'en' } )` should be called before `moment.updateLocale( 'en_US', {...} )`. AFAIK these are equivalent.

You can see the issue reproduced here: https://codepen.io/slightlyfaulty/pen/WNwpMmG

Of course, swapping out old dusty Moment.js for its super modern and popular drop-in replacement [https://day.js.org/ Day.js] is also an option "	slightlyfaulty
1	34130	Thickbox previous arrow		External Libraries	4.3.1	normal	minor	Awaiting Review	defect (bug)	new	close	2015-10-02T15:22:51Z	2021-03-15T21:51:46Z	"The previous arrow in Thickbox does not work reliably. It sometimes displays 2 images, sometimes displays just the caption. 

Since that problem does not happen with the buttons, I suggest using the ""trigger"" function instead. The following code seems to work more reliably (staring at line 137):
{{{
function goPrev(){
	if(jQuery(document).unbind(""click"",goPrev)){jQuery(document).unbind(""click"",goPrev);}
	jQuery(""#TB_window"").remove();
	jQuery(""body"").append(""<div id='TB_window'></div>"");
	tb_show(TB_PrevCaption, TB_PrevURL, imageGroup);
	return false;
}
jQuery(""#TB_prev"").click(goPrev);

function goNext(){
	jQuery(""#TB_window"").remove();
	jQuery(""body"").append(""<div id='TB_window'></div>"");
	tb_show(TB_NextCaption, TB_NextURL, imageGroup);
	return false;
}
jQuery(""#TB_next"").click(goNext);

jQuery(document).bind('keydown.thickbox', function(e){
	if ( e.which == 27 ){ // close
		tb_remove();
	} else if ( (e.which == 190) || (e.which == 39) ){ // display next image
		jQuery(""#TB_next"").trigger( ""click"" );
	} else if ( (e.which == 188) || (e.which == 37) ){ // display previous image
		jQuery(""#TB_prev"").trigger( ""click"" );
	}
	return false;
});
}}}"	Eric3D
1	54034	Update jQuery UI Touch Punch to the latest version	Hareesh Pillai	External Libraries		normal	normal	Future Release	enhancement	assigned	dev-feedback	2021-08-28T19:39:10Z	2026-10-06T00:13:53Z	A new version of jQuery UI Touch Punch is available ([https://github.com/furf/jquery-ui-touch-punch/blob/master/jquery.ui.touch-punch.min.js v 0.2.3]). However, this version was released 7 years ago and might have issues while updating.	Hareesh Pillai
1	51306	Add inline documentation for atomlib.php		Feeds	5.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-09-14T08:09:30Z	2025-09-05T12:20:25Z	Doc: Add $msg parameter entry for _p($msg) function	anonymized_18274256
1	52239	CREA DDF blacks out in latest WordPress		Feeds	5.6	normal	critical	Awaiting Review	defect (bug)	new		2021-01-06T17:51:52Z	2021-01-18T17:35:01Z	"I'm not sure if this problem lies here in WP or on the DDF's side, but I do know that if I force lower the version of WordPress, my feed works, but in 5.6 it shows a black screen and nothing else, any time you click anywhere on a page where the DDF is running. 

So right now I have sites with CREA DDF feed that are running lower WP versions because it is incompatible with 5.6 to the point that it is completely useless.

Note, I have used two different plugins for the DDF on two different sites, with the same result, so I don't believe the fault lies with the plugin. The WP version that does function as expected is 5.5.3.

If you advise me to approach the plugin developers or DDF providers I certainly will, but the fix of downgrading was a clue to 5.6 being the culprit.

Thanks!"	responseit
1	44283	Enclosure can't deal with CDN media files - WPCore redirects the URL		Feeds	4.9.6	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2018-05-31T15:36:55Z	2021-06-07T09:58:21Z	"When using WP as audio collection, RSS2 is needed to get podcasts spread around f.i. to iTunes ect.\\
\\
To validate the feed right from WP 4.9.6 at http://www.feedvalidator.org from source https://ferrie.audio/cat/podcasts/feed/ we recieve several errors where the most important one is the **redirection** of CDN URL's to WP URL\\
\\
**example:** **cdn.**ferrie.audio/blablabla/Can-You-hear-Me.m4a - the CDN.(= AWS3) location of the file\\
**becomes:** ferrie.audio/blablabla/Can-You-hear-Me.m4a\\
\\
**without** the CDN. urlprefix there is no audio stream - all streams are at CDN.\\
adding the CDN. urlprefix enclosure by hand and then save the blogpost results is 2 enclosures - 1 with CDN. - 1 without\\
adding the enclosure but NOT save the blogpost shows the correct enclosure - but - the RSS output shows the URL **without** the CDN. urlprefix\\
\\
have been looking into the /wp-includes/feed.php - but there is for me no place to find where this redirection takes place - an feed expert might be able to correct this problem - sorry that i can't - i'm no coder i make music."	researcher
1	62627	PHP warning or fatal error if user supplies array instead of string		Feeds	6.7.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-12-02T10:53:45Z	2025-05-12T01:38:45Z	"A request for `http://localhost/?feed[]=` will produce errors implying no checks are made to see if
a string is actually a string.

(This is via `parse_query()` `class-wp-query.php:1018`)

on PHP 7.4:

{{{
PHP Warning:  strpos() expects parameter 1 to be string, array given in /var/www/html/wp-includes/compat.php on line 498
PHP Warning:  Illegal offset type in isset or empty in /var/www/html/wp-includes/feed.php on line 777
PHP Warning:  strpos() expects parameter 1 to be string, array given in /var/www/html/wp-includes/compat.php on line 498
PHP Notice:  Array to string conversion in /var/www/html/wp-includes/functions.php on line 1612
}}}

on PHP8.3:

{{{
PHP Fatal error:  Uncaught TypeError: str_contains(): Argument #1 ($haystack) must be of type string, array given in /var/www/html/wp-includes/class-wp-query.php:1018
...
}}}

We have logging switched on and are currently seeing a lot of probes by unknown third-parties that consist of providing arrays where user-supplied strings would normally be expected. (Presumably looking for changes in output that might indicate an exploitable bug. This can currently be used to see if a WordPress site is running with a PHP version below 8.)"	leedxw
1	57661	Scheduled Posts not updating lastBuildDate in feed		Feeds	6.1.1	normal	major	Awaiting Review	defect (bug)	new		2023-02-07T19:32:43Z	2023-09-30T03:32:14Z	"For the past few months, I've been running into an issue where scheduled posts are not updating the lastBuildDate field in the XML. The post itself gets put into feed just fine, it's just the single field that doesn't get updated. Unfortunately, MailChimp uses this field to detect if anything new has happened, so from its side, there are no changes.

To update the lastBuildDate, I have to edit the newly published post, and then click Update (without making changes). Once I do that lastBuildDate is updated. If you diff the XML from before and after, that field updating is literally the only change."	tempspace
1	37763	Target server overload due to invalid RSS feed URL in RSS widget	stevenkword	Feeds	4.6	normal	normal	Awaiting Review	defect (bug)	assigned		2016-08-22T11:09:00Z	2024-05-16T20:33:12Z	"Was roped into helping a friend figure out why a Wordpress site he managed was constantly registering 100% CPU usage. Turns out that they used the RSS widget and had it pointed to an RSS feed for their site. At some point the RSS feed had been deactivated and began generating a 404, and the server began getting four or five calls ''per second'' to the feed URL, effectively DoSing their own server. Although the widget was displayed on every page, they only average a few hundred unique visitors a day, so the number of requests from the widget far exceeded the number of page views.

I took some time trying to figure out why it might be doing this, but decided to stop looking through the trash WordPress code when I got to the fetch_feed() function. I just don't care enough. But I do care if there is a bug that causes that many requests when the feed URL returns a 404. I don't know how often feed names are changed or removed, but this could cause a huge number of unwanted requests.

My initial guess is that the SimplePie class is like ""oh hey a 404 how about I try again. oh hey a 404 how about I try again. oh hey a 404 how about I try again. oh hey a 404 how about I try again."" until it tires itself out. But like I said, too much trash code to care since I'm not getting paid to fix it. 

Summary:

1. RSS Widget on page.
2. Invalid RSS feed URL, pointed to same server as page, returned a 404.
3. Generated a number of requests for the RSS feed that was substantially higher than the number of page views.
4. Caused 100% CPU usage on server."	bstovall
1	50044	The function get_self_link() in feed.php does not include the port		Feeds	5.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-05-01T02:19:21Z	2023-05-25T06:21:58Z	"Hi,

The function get_self_link() in /wp-includes/feed.php re-constructs the URL for the website. This is used for the atom site URL.

I have the situation where my WordPress site is running on a non-standard port. When the link for ATOM is constructed, it is missing the port.

As an example my site is running at https://wp.example.com:8080

But the get_self_link() prints it as https://wp.example.com

This might be solved by this change set: [45772]

Though in the time I spent looking it seems to be only used to generate the home root/home url of the site without any extra paths. It may or may not solve this problem correctly."	damienwhaley
1	55215	Unknown file in WordPress core: wp-includes/SimplePie/Cache/adf416701234bb74c7b67e4f1dc6eede.spc Type: File		Feeds		normal	normal	Awaiting Review	defect (bug)	new		2022-02-21T14:18:11Z	2022-02-21T16:03:28Z	"Hi,
Just got three notices as above. Is it an issue or a leftover file causing a problem?

Thanks"	marian57
1	65853	Using is_feed() does not always work		Feeds		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-11T22:18:36Z	2026-08-12T02:57:03Z	"There are code paths where `is_feed()` is being used, but it does not do what was intended because the query hasn't been parsed yet.  That puts `is_feed()` into a state where `$wp_query` exists, so `_doing_it_wrong()` does not get called, but it still incorrectly returns `false` for `is_feed()`.  Because `$wp_query->is_feed( $feeds );` defaults to `false`.

This can be an issue for things that run via `init`.

I've got a PR that will add a new function ( and tests ) to check if the request looks like a one for a feed.  It will also replace a few `is_feed()` calls that were not working correctly.  "	josephscott
1	3260	XML output (rss, atom, rdf ...) should always use UTF-8 or CDATA for user input	stevenkword	Feeds	2.8.2	normal	normal	Future Release	defect (bug)	assigned	has-patch	2006-10-18T02:33:58Z	2024-02-11T12:23:24Z	"If none UTF-8 is used, user generated text like titles or categories may contain unallowed entities. The elements <title>, <tagline>, <dc:subject>, <category> (there may be more) are not protected width <![[CDATA ]]>.

The conversion can be done width the PHP MulitByte function. If MB is not available, the <![[CDATA should be used instead.

Please contact me for development help."	deremder
1	63292	atom_enclosure doesn't always get MIME type - inconsistency with rss_enclosure		Feeds	6.8	normal	minor	Awaiting Review	defect (bug)	new	has-patch	2025-04-16T08:49:47Z	2026-06-23T19:14:37Z	"The function `atom_enclosure()` does not always select MIME types correctly. This bug is not present in `rss_enclosure()`

`rss_enclosure` gets the MIME type like this:
{{{#!php
// Only get the first element, e.g. 'audio/mpeg' from 'audio/mpeg mpga mp2 mp3'.
$t    = preg_split( '/[ \t]/', trim( $enclosure[2] ) );
$type = $t[0];
}}}

The equivalent `atom_enclosure` is more complex, brittle, and subtly different:

{{{#!php
for ( $i = 1; $i <= 2; $i++ ) {
  if ( isset( $enclosure[ $i ] ) ) {
    if ( is_numeric( $enclosure[ $i ] ) ) {
      $length = trim( $enclosure[ $i ] );
    } elseif ( in_array( $enclosure[ $i ], $mimes, true ) ) {
      $type = trim( $enclosure[ $i ] );
    }
  }
}
}}}

If I var_export the `$enclosure` variable in the `atom_enclosure()` function, this is what I see:


{{{
array (
  0 => 'https://video.twimg.com/ext_tw_video/1432767873504718850/pu/vid/720x960/sS9cLdGn93eUmvKC.mp4?tag=12',
  1 => '1546364',
  2 => 'video/mp4',
  3 => '',
)array (
  0 => 'https://shkspr.mobi/blog/wp-content/uploads/2025/03/Move-roomba-to-a-new-location.mp3^M',
  1 => '46188^M',
  2 => 'audio/mpeg^M',
  3 => '',
)
}}}

I do not know *why* some of my media has the DOS carriage return at the end!

This can be fixed by trimming the string before checking whether it is in the MIME type array:

{{{#!php
…
    } elseif ( in_array( trim( $enclosure[ $i ] ), $mimes, true ) ) {
      $type = trim( $enclosure[ $i ] );
    }
…
}}}

Given that the type is trimmed anyway, this seems like a sensible precaution.

A longer-term solution might be to ensure that both rss_enclosure and atom_enclosure functions behave in the same way.

For more details, see https://wordpress.org/support/topic/missing-mime-type-using-atom_enclosure/"	edent
1	43860	Dead code in feed_links_extra()		Feeds	3.7	normal	normal	Future Release	enhancement	new	has-patch	2018-04-25T17:34:26Z	2019-01-09T06:03:08Z	"Probably a detail, but in {{{general-template.php}}}, function [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/general-template.php#L2799 feed_links_extra()] contains two {{{elseif}}} statements with the same condition {{{if ( is_post_type_archive() )}}}. 

The second one can't be reached and can be considered as dead code."	dmenard
1	48414	Enhancement: feed_links_extra needs filter to remove a feed from pages		Feeds		normal	normal	Awaiting Review	enhancement	new		2019-10-23T19:40:25Z	2019-10-23T19:40:25Z	"Use case: If your site doesn't have comments, or uses a service like disqus, the singletitle feed is useless and always empty (since comments are open, just not using wordpress native commenting).  I'd like to be able to remove it from the header.  Other use cases are if people do not want to provide an RSS feed for a tags or authors.

Suggestion:  allow a filter on feed_links_extra to eliminate the echoing of that feed into the header.    This ticket proposes filtering the default values:  https://core.trac.wordpress.org/ticket/43225   Perhaps modify that to accept null or false values for things like 'singletitle' and if false, skip the creation of that item.  

"	sgatz
1	40587	Feed link markup should contain rel and type attributes		Feeds		normal	normal	Future Release	enhancement	new	has-patch	2017-04-27T18:31:44Z	2017-05-19T15:01:56Z	"The markup of feed links should really contain a {{{rel}}} and a {{{type}}} attribute. For example:

{{{<a rel=""alternate"" type=""application/rss+xml"" href=""https://example.com/feed"">#</a>}}}

The {{{post_comments_feed_link()}}} is an example of where this doesn't happen."	henry.wright
1	41905	Only loop over enclosure meta keys in rss_enclosure() and atom_enclosure()		Feeds	2.2	normal	normal	Awaiting Review	enhancement	new	has-patch	2017-09-18T10:26:38Z	2018-08-23T10:55:28Z	"Instead of getting all post meta keys for the current post and then filter out the {{{enclosure}}} keys:


{{{
foreach ( (array) get_post_custom() as $key => $val ) { 
	if ($key == 'enclosure') { 

}}}

we could only get the ones we need with:

{{{
$meta_enclosures = get_post_meta( get_the_ID(), 'enclosure', false );
foreach ( (array) $meta_enclosures as $key => $val ){ 

}}}


where {{{get_post_custom()}}} is a wrapper for {{{get_post_meta( get_the_ID() )}}}.

See {{{atom_enclosure()}}} [https://github.com/WordPress/WordPress/blob/bbb8d48086b7d10908f4fda673585ee122f2851d/wp-includes/feed.php#L463 here] and {{{rss_enclosure()}}} [https://github.com/WordPress/WordPress/blob/bbb8d48086b7d10908f4fda673585ee122f2851d/wp-includes/feed.php#L463 here].
"	birgire
1	49321	provide standard pagination links in RSS/Atom feeds		Feeds	5.4	normal	normal	Awaiting Review	enhancement	new		2020-01-29T17:09:52Z	2022-06-03T15:21:16Z	"Since feeds use the same query parameters as the rest of WordPress, it's already possible to get RSS/Atom-format lists of older posts in addition to the newest 10 (or whatever `posts_per_rss` is set to). However, a client has to know it's looking at a WordPress-generated feed, and manually construct the right paginated feed URLs.

I'd like WordPress to implement the Atom pagination links standardized in 2007 by [https://tools.ietf.org/html/rfc5005 RFC 5005], which also has an appendix on using them in RSS.

I've written a plugin demonstrating how to do this in a spec-conformant way (https://github.com/jameysharp/wp-fullhistory). The spec requirements that enable aggressive caching in feed readers make the ""obvious"" ways to do this not work, but the plugin is still quite simple. I've included extensive comments if you're interested in the details, and the plugin passes WordPress coding standards 2.2.0. But PHP isn't one of the languages I normally use, so I'd certainly appreciate code review.

I brought this up in the forums a while back ([https://wordpress.org/support/topic/add-rfc5005-support-to-wordpress-generated-rss-feeds/ post]) and got very helpful starting points from Samuel Wood, but my current implementation is much simpler than I had thought it would be.

I've considered just encouraging people to use the plugin, rather than trying to get this standard supported in core. But there already aren't very many WordPress users who know what RSS is, let alone understand extensions. (I surveyed several dozen webcomic creators, in particular.)

So for the same reasons that it's good for the open web that WordPress just automatically provides feeds, I hope you'll automatically provide standard pagination in those feeds too."	jameysharp
1	62294	Automatic updates no longer work with via SSH2 from WP 6.6		Filesystem API	6.6	normal	normal	Awaiting Review	defect (bug)	new		2024-10-24T13:38:37Z	2024-10-24T13:38:37Z	"Since WordPress 6.6, automatic updates (core, plugins) no longer work via an SSH connection. All updates work normally if you trigger them manually.

Environment:

- PHP 8.2
- WordPress 6.6 and later (including 6.6.2)

Affected instances

- Clean installation of WordPress and 70 other websites that we run. So we can reproduce the problem.

We do not receive any information in the log file. To get more information, we used the ""Easy Updates Manager plugin. It does not work either and we received the following error:


{{{
[16-Oct-2024 13:39:21 UTC] PHP Fatal error: Uncaught TypeError: ftp_nlist(): Argument #1 ($ftp) must be of type FTP\Connection, null given in /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-filesystem-ftpext.php:438

Stack trace:
#0 /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-filesystem-ftpext.php(438): ftp_nlist()
#1 /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-filesystem-base.php(231): WP_Filesystem_FTPext->exists()
#2 /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-filesystem-base.php(58): WP_Filesystem_Base->find_folder()
#3 /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-upgrader.php(997): WP_Filesystem_Base->abspath()
#4 /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-automatic-updater.php(474): WP_Upgrader->maintenance_mode()
#5 /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-automatic-updater.php(676): WP_Automatic_Updater->update()
#6 /var/www/https/***.***.at/wp/wp-includes/update.php(855): WP_Automatic_Updater->run()
#7 /var/www/https/***.***.at/wp/wp-content/plugins/stops-core-theme-and-plugin-updates/includes/MPSUM_Admin_Ajax.php(1057): wp_maybe_auto_update()
#8 /var/www/https/***.***.at/wp/wp-content/plugins/stops-core-theme-and-plugin-updates/includes/MPSUM_Admin_Ajax.php(144): MPSUM_Admin_Ajax->force_updates()
#9 /var/www/https/***.***.at/wp/wp-includes/class-wp-hook.php(324): MPSUM_Admin_Ajax->ajax_handler()
#10 /var/www/https/***.***.at/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 11 /var/www/https/***.***.at/wp/wp-includes/plugin.php(517): WP_Hook->do_action()
#12 /var/www/https/***.***.at/wp/wp-admin/admin-ajax.php(192): do_action()
#13 {main} thrown in /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-filesystem-ftpext.php on line 438
}}}


A value is obviously missing. If we use the setting define('FS_METHOD', 'ssh2');, there is another fatal error:

{{{
[16-Oct-2024 15:41:54 UTC] Automatic updates starting...
[16-Oct-2024 15:41:54 UTC]   Automatic plugin updates starting...
[16-Oct-2024 15:41:54 UTC]     Upgrading plugin 'better-search-replace'...
[16-Oct-2024 15:41:54 UTC] PHP Fatal error:  Uncaught TypeError: ssh2_sftp_realpath(): Argument #1 ($sftp) must be of type resource, null given in /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-filesystem-ssh2.php:304

Stack trace:
#0 /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-filesystem-ssh2.php(304): ssh2_sftp_realpath()
#1 /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-filesystem-base.php(261): WP_Filesystem_SSH2->cwd()
#2 /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-filesystem-base.php(238): WP_Filesystem_Base->search_for_folder()
#3 /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-filesystem-base.php(58): WP_Filesystem_Base->find_folder()
#4 /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-upgrader.php(997): WP_Filesystem_Base->abspath()
#5 /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-automatic-updater.php(474): WP_Upgrader->maintenance_mode()
#6 /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-automatic-updater.php(676): WP_Automatic_Updater->update()
#7 /var/www/https/***.***.at/wp/wp-includes/update.php(855): WP_Automatic_Updater->run()
#8 /var/www/https/***.***.at/wp/wp-content/plugins/stops-core-theme-and-plugin-updates/includes/MPSUM_Admin_Ajax.php(1057): wp_maybe_auto_update()
#9 /var/www/https/***.***.at/wp/wp-content/plugins/stops-core-theme-and-plugin-updates/includes/MPSUM_Admin_Ajax.php(144): MPSUM_Admin_Ajax->force_updates()
#10 /var/www/https/***.***.at/wp/wp-includes/class-wp-hook.php(324): MPSUM_Admin_Ajax->ajax_handler()
#11 /var/www/https/***.***.at/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#12 /var/www/https/***.***.at/wp/wp-includes/plugin.php(517): WP_Hook->do_action()
#13 /var/www/https/***.***.at/wp/wp-admin/admin-ajax.php(192): do_action()
#14 {main}
  thrown in /var/www/https/***.***.at/wp/wp-admin/includes/class-wp-filesystem-ssh2.php on line 304
}}}

Configuration:

{{{
define(‘FTP_METHOD’,’ssh2′); 
define(‘FTP_PUBKEY’,’/xxx/xxx/xxx.xx’);
define(‘FTP_PRIKEY’,’/xxx/xxx/xxx.xx’);
define(‘FTP_USER’,’xxxxxxxx’);
define(‘FTP_PASS’,”);
define(‘FTP_HOST’,’127.0.0.1:22′);
}}}

There is no problem with the direct method."	srfg
1	51340	Stop chmodding files and folders		Filesystem API	5.3	normal	major	Awaiting Review	defect (bug)	new	dev-feedback	2020-09-18T08:38:34Z	2024-02-02T12:07:42Z	"WP's filesystem handler has a chmod function, that is used e.g. when updating,...

To conform with standards, enforce proper usage of umask by the server admin as well as avoid errors when the file owner is not the same as the user running WP, WP should not be chmodding files whatsoever.

Linux, for obvious security reasons, only allows chmod for the owner of the file (independent of permissions, except root).
Thus, it makes sense to have the WP files owned by user A, but run php(-fpm) by user B.

When WP now tries to chmod, which it shouldnt, as we have established that may cause a security issue, it will obviously create a PHP error."	malthert
1	64519	WP_Filesystem_FTP and WP_Filesystem_FTPext classes create orphaned temp/noise files		Filesystem API	6.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-01-16T10:04:00Z	2026-10-27T16:44:31Z	"The WP_Filesystem_FTP and WP_Filesystem_FTPext classes create temporary files during put_contents operations, but if the FTP connection is invalid or null, the method throws an exception without cleaning up the temp file, resulting in orphaned files in tmp.on busy sites you can easily end up with 100K files in matter of days not to mention the fact that the file name provided is not respected.

For example lets say you pass/var/www/html/wp-content/uploads/plugin/index.php

If ftp is not configured you will end up with:/tmp/plugin-{random string}.php

And then the FTP will throw exception and the file will remain"	lucianwpwhite
1	49865	_unzip_file_pclzip attempting to create directories all the way up to /		Filesystem API	5.4	normal	normal	Awaiting Review	defect (bug)	new	close	2020-04-09T20:33:07Z	2025-05-12T01:37:48Z	"In wp-admin/includes/file.php _unzip_file_pclzip looks to be attempting to create directories all the way up to / (the root directory of the server).

Line 1411:

{{{
$to          = trailingslashit( $to );

}}}
Adds a trailing slash to the destination path.

Line 1636:

{{{
$needed_dirs[] = $to . untrailingslashit( $file['folder'] ? $file['filename'] : dirname( $file['filename'] ) );

}}}
Adds the $to directory to $needed_dirs if there are files at the root level of the archive.

Line 1655:

{{{
if ( untrailingslashit( $to ) == $dir ) {
}}}
 
attempts to skip the $to directory, but since the top-level path in $needed_dirs includes a trailing slash this check fails.

So then lines 1663-1666:

{{{
while ( ! empty( $parent_folder ) && untrailingslashit( $to ) != $parent_folder && ! in_array( $parent_folder, $needed_dirs ) ) {
	$needed_dirs[] = $parent_folder;
	$parent_folder = dirname( $parent_folder );
}
}}}
add every directory all the way up to /, the root of the server to $needed_dirs

Finally line 1673:

{{{
if ( ! $wp_filesystem->mkdir( $_dir, FS_CHMOD_DIR ) && ! $wp_filesystem->is_dir( $_dir ) ) {
}}}

throws an error when checking if / is a directory and the entire unzip fails.

If I remove untrailingslashit from line 1655 (or wrap $dir in untrailingslashit as well) that check works as designed and the problem is avoided."	mwheelermindbox
1	46561	Make wp_normalize_path() on Windows resolve drive letter for drive–relative paths		Filesystem API	3.9	normal	minor	Awaiting Review	enhancement	new	dev-feedback	2019-03-19T09:18:48Z	2023-03-12T08:45:38Z	"Though rarely used, Windows allows to omit drive letter in file path to treat is as drive–relative.

This causes inconsistency where paths pointing to the same dir are not normalized to the same representation by `wp_normalize_path()`:

{{{#!php
<?php
var_dump( wp_normalize_path( 'C:\server\www\dev' ) );
// ""C:/server/www/dev

var_dump( wp_normalize_path( '\server\www\dev' ) );
// /server/www/dev << same path, but mismatch after normalize

var_dump( wp_normalize_path( realpath( '\server\www\dev' ) ) );
// C:/server/www/dev << resolved drive letter before normalize
}}}

I think drive letter should be explicitly resolved as part of normalization for this case."	Rarst
1	57725	Use of rand() function instead of wp_rand()		Filesystem API		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2023-02-15T11:14:13Z	2025-05-12T01:38:05Z	"Filesystem API function {{{wp_edit_theme_plugin_file}}} using PHP {{{rand()}}} function rather than WP's {{{wp_rand()}}}. Can we enhance this as {{{rand()}}} is discouraged?

File path: wp-admin/includes/file.php
Line: 524 and 526
"	haritpanchal
1	48261	"""noopener noreferrer"" mis-parses links with ""rel="" parameters"		Formatting	5.2.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2019-10-08T21:39:20Z	2019-10-09T22:55:14Z	"If a link contains a url parameter named ""rel"" and the rel=""noopener noreferrer"" attribute is triggered (ie. the link has the target=""_blank"" attribute as well) then it botches the parsing, and you wind up with a link that looks like:


{{{
<a href=""https://www.somesite.com/index.php?v=yes&amp;rel=0&quot; noopener noreferrer"" target=""_blank"">Anchor Text</a>
}}}

"	mvandemar
1	41304	Bad protocol sanitization in KSES for URLs NOT RFC 3986 compliant		Formatting	4.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-07-13T10:41:29Z	2026-11-01T07:05:04Z	"For URL's that are passed through the kses sanitizer.
As specified in RFC 3986, Section 3.3

  The path component contains data, usually organized in hierarchical form, that, along with data in the non-hierarchical query component (Section 3.4), serves to identify a resource within the scope of the URI's scheme and naming authority (if any). The path is terminated by the first question mark (""?"") or number sign (""#"") character, or by the end of the URI.

  If a URI contains an authority component, then the path component must either be empty or begin with a slash (""/"") character. If a URI does not contain an authority component, then the path cannot begin with two slash characters (""//""). In addition, a URI reference (Section 4.1) may be a relative-path reference, in which case the first path segment cannot contain a colon ("":"") character. The ABNF requires five separate rules to disambiguate these cases, only one of which will match the path substring within a given URI reference. We use the generic term ""path component"" to describe the URI substring matched by the parser to one of these rules.

So colon(':') is allowed inside URL's. When trying to split the URL like this:
{{{#!php
<?php
function wp_kses_bad_protocol_once($string, $allowed_protocols, $count = 1 ) {
	$string2 = preg_split( '/:|&#0*58;|&#x0*3a;/i', $string, 2 );
...
}}}
 
for URL's that do not contain a specified scheme and use colon (':') inside the URL this breaks and returns only the second part of the URL after the colon. Eg:

//t0.gstatic.com/images?q=tbn:ANd9GcSxT2q6fV-59s5hq5a03fpgsFYzVtL014iARzGRG7S_3CUjYpIGNlQx0ruGtVl5KCAEOxAtb_ZQ

will return: ANd9GcSxT2q6fV-59s5hq5a03fpgsFYzVtL014iARzGRG7S_3CUjYpIGNlQx0ruGtVl5KCAEOxAtb_ZQ

Also a “network-path reference” should be implied, in the current format you assume a scheme exists beforehand. 

Changing the split to:
{{{#!php
<?php
...
$string2 = preg_split( '/(:\/\/)|&#0*58;|&#x0*3a;/i', $string, 2 );
if ( isset($string2[1]) && ! preg_match('%/\?%', $string2[0]) ) {
  ...
  $string = $protocol . '//' . $string;
}
...
}}}

fixes this issue and is more compliant without breaking sensitization.
 

"	bogdanpreda
1	39153	Bug in wp_html_split with unclosed PHP tag (or HTML tag <)		Formatting	4.6.1	normal	normal	Awaiting Review	defect (bug)	new	needs-unit-tests	2016-12-07T17:48:32Z	2018-03-02T08:27:32Z	"The problem is in the ''shortcodes.php'' file, but exact problem is function ''wp_html_spli''t in ''formatting.php''

This bug is completely described in this question forum thread.

https://wordpress.org/support/topic/bug-in-wp_html_split-with-unclosed-php-tag/

Consider following post code.


{{{
Some amount of useless text <!--more-->

[code-highlight line-numbers=""table"" linenostart=""53"" highlight-lines=""1,3,8"" style=""native"" lang=""html+php"" pyg-id=""1"" ]
<?php
//This callback registers our plug-in
function wpse72394_register_tinymce_plugin($plugin_array) {
    $plugin_array['wpse72394_button'] = 'path/to/shortcode.js';
    return $plugin_array;
}

//This callback adds our button to the toolbar
function wpse72394_add_tinymce_button($buttons) {
            //Add the button ID to the $button array
    $buttons[] = ""wpse72394_button"";
    return $buttons;
}
?
[/code-highlight]

Some amount of useless text <strong>checkstyle</strong>

[code-highlight style=""native"" lang=""perl"" pyg-id=""2"" ]
(?:s+)(?:(/*([^*]|[rn]|(*+([^*/]|[rn])))**+/)|(//(?!.*(CHECKSTYLE)).*))
[/code-highlight]
}}}

Here dump after this line

{{{

$textarr = wp_html_split( $content );
    var_dump($textarr);
    exit;
}}}


{{{

                array(25) {
  [0]=>
  string(0) """"
  [1]=>
  string(3) ""<p>""
  [2]=>
  string(28) ""Some amount of useless text ""
  [3]=>
  string(11) ""<!--more-->""
  [4]=>
  string(0) """"
  [5]=>
  string(4) ""</p>""
  [6]=>
  string(1) ""
""
  [7]=>
  string(3) ""<p>""
  [8]=>
  string(121) ""[code-highlight line-numbers=""table"" linenostart=""53"" highlight-lines=""1,3,8"" style=""native"" lang=""html+php"" pyg-id=""1"" ]""
  [9]=>
  string(6) ""<br />""
  [10]=>
  string(1) ""
""
  [11]=>
  string(464) ""<?php
//This callback registers our plug-in
function wpse72394_register_tinymce_plugin($plugin_array) {
    $plugin_array['wpse72394_button'] = 'path/to/shortcode.js';
    return $plugin_array;
}

//This callback adds our button to the toolbar
function wpse72394_add_tinymce_button($buttons) {
            //Add the button ID to the $button array
    $buttons[] = ""wpse72394_button"";
    return $buttons;
}
?
[/code-highlight]

Some amount of useless text <strong>""
  [12]=>
  string(10) ""checkstyle""
  [13]=>
  string(9) ""</strong>""
  [14]=>
  string(0) """"
  [15]=>
  string(4) ""</p>""
  [16]=>
  string(56) ""
[code-highlight style=""native"" lang=""perl"" pyg-id=""2"" ]""
  [17]=>
  string(6) ""<br />""
  [18]=>
  string(72) ""
(?:s+)(?:(/*([^*]|[rn]|(*+([^*/]|[rn])))**+/)|(//(?!.*(CHECKSTYLE)).*))""
  [19]=>
  string(6) ""<br />""
  [20]=>
  string(19) ""
[/code-highlight]
""
  [21]=>
  string(3) ""<p>""
  [22]=>
  string(15) ""Some Text Again""
  [23]=>
  string(4) ""</p>""
  [24]=>
  string(1) ""
""
}
}}}


As you can see one shortcode was not splitted, and here the problem. If php closing tag is present (?>)
than everything works fine.

Problematic regex provider

{{{#!php
<?php
function get_html_split_regex() {
	static $regex;

	if ( ! isset( $regex ) ) {
		$comments =
			  '!'           // Start of comment, after the <.
			. '(?:'         // Unroll the loop: Consume everything until --> is found.
			.     '-(?!->)' // Dash not followed by end of comment.
			.     '[^\-]*+' // Consume non-dashes.
			. ')*+'         // Loop possessively.
			. '(?:-->)?';   // End of comment. If not found, match all input.

		$cdata =
			  '!\[CDATA\['  // Start of comment, after the <.
			. '[^\]]*+'     // Consume non-].
			. '(?:'         // Unroll the loop: Consume everything until ]]> is found.
			.     '](?!]>)' // One ] not followed by end of comment.
			.     '[^\]]*+' // Consume non-].
			. ')*+'         // Loop possessively.
			. '(?:]]>)?';   // End of comment. If not found, match all input.

		$escaped =
			  '(?='           // Is the element escaped?
			.    '!--'
			. '|'
			.    '!\[CDATA\['
			. ')'
			. '(?(?=!-)'      // If yes, which type?
			.     $comments
			. '|'
			.     $cdata
			. ')';

		$regex =
			  '/('              // Capture the entire match.
			.     '<'           // Find start of element.
			.     '(?'          // Conditional expression follows.
			.         $escaped  // Find end of escaped element.
			.     '|'           // ... else ...
			.         '[^>]*>?' // Find end of normal element.
			.     ')'
			. ')/';
	}

	return $regex;
}

}}}

Without any doubts this case should be included in regex. "	crosp
1	56709	Encountered a problem that no one has ever met Please help me		Formatting		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-10-01T11:21:46Z	2023-08-08T16:11:55Z	"As usual, I used the element to update the page. After clicking the update button, I clicked the update button for a few more times, and this problem occurred. The contents of my page were all gone, leaving only one line of errors, (`Warning: count(): Parameter must be an array or an object that implements Countable in/www/wwwroot/www.xxxx.com/wp-includes/formatting.php on line 3415`）And the same is true for publishing new pages. Please help me, thank you!

I used to update the page several times every month. It used to be normal, but the problem didn't appear until today

"	qq2094629698
1	62417	Excerpts don't include content from list-item blocks.		Formatting		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-11-13T21:30:35Z	2025-12-17T08:49:08Z	Currently, `excerpt_remove_blocks()` allows the list block, but not the newer (since 6.0) list-item block. This results in all content contained in lists from being excluded from the excerpt.	dougwollison
1	65838	Formatting: CSS function name matching in safecss_filter_attr() is case-sensitive		Formatting		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-09T10:16:16Z	2026-08-09T18:09:09Z	"Split off from [https://github.com/WordPress/wordpress-develop/pull/12942#discussion_r3740198813 a review comment on PR #12942].

CSS function names are [https://www.w3.org/TR/css-values-4/#functional-notation:~:text=function%20names%20are%20ASCII%20case%2Dinsensitive ASCII case-insensitive], so `CALC(1px + 2px)`, `rotatex(45deg)`, and `LINEAR-GRADIENT(red, blue)` are all valid CSS. However, every function-matching regular expression in `safecss_filter_attr()` is case-sensitive, so valid declarations using anything other than all-lowercase function names are silently dropped.

{{{#!php
// ""width: calc(100% - 10px)""
var_dump( safecss_filter_attr( 'width: calc(100% - 10px)' ) );

// """" — expected to be preserved
var_dump( safecss_filter_attr( 'width: CALC(100% - 10px)' ) );
}}}

Make the function matching case-**insensitive**, covering the `url()`, gradient, and generic function patterns alike. The change is small but relaxes the sanitizer rather than tightening it, so it needs strict checking that no malformed or unsafe value slips through,"	wildworks
1	47973	Invalid HTML output from image_caption + wpautop combination		Formatting		normal	normal	Awaiting Review	defect (bug)	new		2019-09-04T16:24:04Z	2020-07-11T17:55:50Z	"Hello,

We are using WordPress on our site https://www.bonus.ca, and the HTML output on the page contains extra </p> tags.

I have traced the problem into wpautop() function, which leaves these extra </p> tags on.

An example:

Caption shortcode like this:


{{{
[caption id=""attachment_4413"" align=""alignnone"" width=""800""]<img class=""size-full wp-image-4413"" src=""/images/online-gambling-bonuses.jpg"" alt=""top Online Gambling Bonuses"" width=""800"" height=""394"" /> Internet has changed the way we gamble. Live dealer casinos are a new way to enjoy the thrills of Roulette and Blackjack from the comfort of your own home, even on your phone. Visit <a href=""/leovegas"">LeoVegas</a> for the best <a href=""/casino/live"">live casino experience</a>. You can also get a rare live casino bonus at LeoVegas.[/caption]
}}}


After shortcode filter has run on the block, the result is:


{{{
<div id=""attachment_4413"" style=""width: 810px"" class=""wp-caption alignnone""><img aria-describedby=""caption-attachment-4413"" class=""size-full wp-image-4413"" src=""/images/online-gambling-bonuses.jpg"" alt=""top Online Gambling Bonuses"" width=""800"" height=""394"" /><p id=""caption-attachment-4413"" class=""wp-caption-text"">Internet has changed the way we gamble. Live dealer casinos are a new way to enjoy the thrills of Roulette and Blackjack from the comfort of your own home, even on your phone. Visit <a href=""/leovegas"">LeoVegas</a> for the best <a href=""/casino/live"">live casino experience</a>. You can also get a rare live casino bonus at LeoVegas.</p></div>
}}}


After running wpautop filter, the output is:


{{{
<div id=""attachment_4413"" style=""width: 810px"" class=""wp-caption alignnone""><img aria-describedby=""caption-attachment-4413"" class=""size-full wp-image-4413"" src=""/images/online-gambling-bonuses.jpg"" alt=""top Online Gambling Bonuses"" width=""800"" height=""394"" /></p>
<p id=""caption-attachment-4413"" class=""wp-caption-text"">Internet has changed the way we gamble. Live dealer casinos are a new way to enjoy the thrills of Roulette and Blackjack from the comfort of your own home, even on your phone. Visit <a href=""/leovegas"">LeoVegas</a> for the best <a href=""/casino/live"">live casino experience</a>. You can also get a rare live casino bonus at LeoVegas.</p>
}}}


Here, there is an extra </p> tag after the <img> tag.

The following part of wpautop() function is supposed to remove the closing tag, but it fails:

{{{#!php
<?php
        // If an opening or closing block element tag is followed by a closing <p> tag, remove it.
        $pee = preg_replace( '!(</?' . $allblocks . '[^>]*>)\s*</p>!', '$1', $pee );

}}}

The code doesn't remove the extra </p> because the regex only matches to defined block level tags, and in this case, the previous tag is an <img /> tag.

In general, I think the approach to use regex to modify a HTML document is an invalid one. One could generate proper regular expressions to properly match everything in HTML language, but the regular expressions will be huge.

The proper way to do this would be to somehow generate a DOM from the source code, and do the adjustments on that.

Or then it might be that the way WP is mixing HTML and plain text is simply impossible to implement correctly..."	terokilkanen
1	59056	LOST Formatting/Settings when Live Site is copied to Staging or Cloned		Formatting	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-08-10T17:06:13Z	2023-08-21T18:38:46Z	"== Bug Report
=== Description
**LOST Formatting/Settings when copied to Staging**. PDF with images attached.

I originally saw this at the end of RC3, but now see that it is in 6.3 Production also. WordPress 6.2.2 works normally.


Details Below:
--------------------------
Everything looks fine in the LIVE site, but as soon as it is copied to STAGING (SiteGround) and then accessed, you can see that the Menu has lost it's formatting. Also the Cover Block has lost it's formatting/settings.

I saw it orignally on a site I am developing, but then tested issue with bare bone site (WP 6.3, Theme 2023, No Plugins, just install & copy to staging).

It is same results in Firefox & Google Chrome.

Also, I just experienced the same results using WPEngine's LOCAL (Latest Version 7.1.2+6410).  I create a Vanilla Site (WP 6.3, Theme 2023), then I Clone the site ... and formatting has been LOST!


=== Environment
- WordPress: 6.3
- PHP: 7.4.33
- Server: Apache
- Database: mysqli (Server: 5.7.39-42-log / Client: mysqlnd 7.4.33)
- Browser: Firefox 116.0 (Windows 10/11)
- Theme: Twenty Twenty-Three 1.2
- MU-Plugins: None activated
- Plugins:
  * SiteGround Optimizer 7.3.4
  * SiteGround Security 1.4.5
  * WordPress Beta Tester 3.5.2

=== Steps to Reproduce
1. Create bare minimum 6.3 site
2. Install NO Plugins
3. View Site (Everything is Good So Far)
4. Copy Site to Staging -or- Clone Site in LOCAL Environment
5. View Site (Formatting/Settings have been LOST)
x. 🐞 Bug occurs.

=== Expected Results
1.  ✅ Both LIVE & STAGING Sites should be the SAME.

=== Actual Results
1.  ❌ Staged or Cloned Site has LOST Formatting/Settings."	lhe2012
1	55949	Prevent trailingslashit from removing backslash for valid filenames on linux systems		Formatting	6.0	normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2022-06-08T12:09:44Z	2022-06-08T12:10:14Z	"On *nix systems, a file or folder name can contain a backslash like document.pdf\ or folder-name\.

trailingslashit() as it is currently removes the backslash and breaks the original name of such a file.

**This PR fixes this issue and keeps the backslash character on *nix systems.**
**On Windows systems this PR will not change anything!**

Yes, this is an edge case and will not happen often but we experienced this issue on a real case on one of our clients who had a folder name with a backlash at the end.

trailingslashit() broke this folder name and we had to create our own version of trailingslashit() to get around this problem.

I don't like much the extra complexity that my solution adds to a function that exists for more than 8 years in its current form. So if you have a better idea or opinin, let's discuss this.

GitHub https://github.com/WordPress/wordpress-develop/pull/2796

"	ReneHermi
1	55563	The function get_allowed_mime_types should check wp_get_current_user		Formatting	5.9.3	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-04-12T10:19:16Z	2026-04-09T05:07:49Z	"The function get_allowed_mime_types checks if the function current_user_can before using it, as you can see at https://developer.wordpress.org/reference/functions/get_allowed_mime_types/.

The function current_user_can calls wp_get_current_user, as you can see at https://developer.wordpress.org/reference/functions/current_user_can/

If the function get_allowed_mime_types is called when wp_get_current_user doesn't exist yet, it triggers a fatal error.

I think get_allowed_mime_types should check also if wp_get_current_user exist. I would write something like this:

{{{#!php
<?php
function get_allowed_mime_types( $user = null ) {
    $t = wp_get_mime_types();
 
    unset( $t['swf'], $t['exe'] );
    if ( function_exists( 'current_user_can' ) && function_exists( 'wp_get_current_user' ) ) {
        $unfiltered = $user ? user_can( $user, 'unfiltered_html' ) : current_user_can( 'unfiltered_html' );
    }
 
    if ( empty( $unfiltered ) ) {
        unset( $t['htm|html'], $t['js'] );
    }
 
    /**
     * Filters list of allowed mime types and file extensions.
     *
     * @since 2.0.0
     *
     * @param array            $t    Mime types keyed by the file extension regex corresponding to those types.
     * @param int|WP_User|null $user User ID, User object or null if not provided (indicates current user).
     */
    return apply_filters( 'upload_mimes', $t, $user );
}
}}}



The function wp_get_current_user is defined in wp-includes/plugguble.php, so after all, plugins are loaded. This means that if you call sanitize_file_name inside a nu-plugin, or before the action 'plugin_loaded', you have the fatal error."	giuse
1	40528	Title with ascii paragraph separator is not being filtered on post save		Formatting	4.7.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-04-22T11:09:01Z	2025-09-01T17:30:48Z	While saving post, filter: title_save_pre only trim spaces before saving to database. In case of paragraph separator it get encoded with %e2%80%a9 . Same thing happen with permalink too. 	shpetimshala
1	50863	[playlist] + text = </p> error		Formatting	5.4.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-08-06T02:49:55Z	2026-10-27T19:17:14Z	"There is a bug that is very simple to reproduce - 
if you create a [playlist] and then add some text, such as
[playlist ids=""1,2,3""] Hey everyone, check out my new songs!

it will produce an html parsing error where </p> element is closed, but never opened.

Thank you"	hvar
1	53041	colors.css is using the old blue.		Formatting	5.7.1	normal	minor	Awaiting Review	defect (bug)	new	dev-feedback	2021-04-15T12:51:29Z	2021-04-15T12:51:29Z	"I love the new color pallet, but I noticed that colors.css overrules the new link color in common.css.
colors.css is still using hex 0073aa, while common.css is using hex 2271b1.
"	DuisterDenHaag
1	39847	force_balance_tags not properly balancing < with <strong> and </strong>		Formatting	4.7.2	normal	normal	Awaiting Review	defect (bug)	new		2017-02-11T19:12:04Z	2024-09-22T05:30:40Z	"Given following HMTL code which includes the ''\['' and ''\]'' Latex delimiters:

{{{
\[<\] <strong>We</strong>
}}}

the output of '''force_balance_tags''' is

{{{
\[<\] <strong>We
}}}

which is not correct as the bold tags are unbalanced. Expected output should be the input string.
"	jpmerx
1	66335	"sanitize_text_field() HTML-escapes & ' "" after a lone <, beyond the documented entity conversion"		Formatting	7.1.3	normal	minor	Awaiting Review	defect (bug)	new	has-patch	2026-10-19T00:36:20Z	2026-10-19T15:04:55Z	"The minimal reproduction
{{{
sanitize_text_field( ""I'm <3 & \""q\"""" )  →  I'm &lt;3 &amp; &quot;q&quot;
sanitize_text_field( ""I'm & \""q\"""" )     →  I'm & ""q""   (unchanged: no <)
}}}

The cause: 
{{{
_sanitize_text_fields() → wp_pre_kses_less_than() → wp_pre_kses_less_than_callback() → esc_html( $matches[0] ).
}}}

The behaviour comes from wp_pre_kses_less_than() (2.3) being reused by _sanitize_text_fields() (2.9); 7.1.3 is where it was observed.

The function's documentation (sanitize_text_field()) lists ""Converts single < characters to entities"" and says nothing about &, ' or "" being encoded.

A scoped patch: give _sanitize_text_fields() its own callback that encodes only the < of a lone span, and leave wp_pre_kses_less_than() alone for its pre_kses use, where the input is HTML and escaping a non-tag span is correct (kses normalises & itself anyway). That keeps the documented behaviour exactly and drops only the collateral.

Where it bites: any plugin that emits stored text outside HTML such as plain-text mail, ICS, JSON to another system as well as the developer-facing surprise that the apostrophe two lines later is escaped because of a heart."	kentstudiotoolbox
1	54138	wp_strip_all_tags should remove scripts/styles content recursively		Formatting		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-09-16T20:19:53Z	2021-09-16T20:31:18Z	"If we try to run the next code `<scri<script></script>pt>alert(""krya"");</script>` via the `wp_strip_all_tags` function it remove the script content only once. So, the next hack allows passing the script content throw the function.

## In details.

First iteration:
- input: `<scri<script></script>pt>alert(""krya"");</script>
- output: `<script>alert(""krya"");</script>`

Thankfully the `strip_tags` removes scripts tags later, but the content is still present.
"	wppunk
1	60793	wp_trigger error has a wrong wp_kses $allowed_html arguement.		Formatting	6.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-03-18T02:04:16Z	2024-03-18T02:15:45Z	"Elements and attributes need to be array keys, not values.

Came with: https://core.trac.wordpress.org/changeset/56707

Fix: https://github.com/WordPress/wordpress-develop/pull/6285"	nico23
1	64552	wp_trim_words fails with certain charsets in the Excerpt		Formatting	3.0	normal	normal	Future Release	defect (bug)	new	has-patch	2026-01-25T17:06:03Z	2026-03-15T07:30:00Z	"== Bug Report

Following the [https://github.com/WordPress/gutenberg/pull/74925 GB74925] we have noticed that the excerpts were not being adapted accordingly in the Editor. It was also noticed that the current regex trim was not applying for certain more edge character types of cases like

=== Environment
- WordPress: 7.0-alpha-61215-src
- PHP: 8.2.29
- Server: nginx/1.29.4
- Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
- Browser: Chrome 144.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Three 1.6
- MU Plugins: None activated
- Plugins:
  * Gutenberg 22.4.1

=== Testing Instructions
1. Ideally use the 2023 theme
2. Create a new post and add the following excerpt:

{{{
Fabio　vel　iudice　vincam,　sunt	in	culpa	qui　officia.
Inmensae　subtilitatis,　obscuris　et　malesuada　fames.
Ambitioni　dedisse　scripsisse　iudicaretur.
Nec　dubitamus　multa　iter　quae　et　nos　invenerat.
Petierunt　uti　sibi　concilium　totius　Galliae　in　diem　certam　indicere.
}}}

3. Go to Appearance > Editor 
4. Click on the canvas
5. Select the excerpt of the newly created Post
6. Adjust the Excerpt Max Number of Words (you need Gutenberg trunk to test this; if you don't use trunk, it will not work either in the Editor).
7. Set, for example, 30 words, and Save
8. Go to the front end. 
9. 🐞 The number of words is not the same as in the editor.

=== Expected Behaviour
- The number of words of the excerpt should be the same in the Editor and in the front end.

=== Additional Information
Apparently, it appears that the `wp_trim_words` is not trimming all types of spacing characters accordingly; hence, the word count is inconsistent. @wildworks proposed that the `/[\n\r\t ]+/` must be fixed for this purpose.

It appears that this was first introduced in [13942]/#10376"	SirLouen
1	38656	wpautop incorrectly handling paragraphs within block elements		Formatting	5.0	normal	normal	Future Release	defect (bug)	new	has-patch	2016-11-04T06:10:39Z	2026-01-29T14:22:11Z	"When there are two line breaks within a block element, `wpautop()` will replace it with `</p><p>`, but the corresponding opening and closing tags won't exist.

For example, `<div>a\n\nb</div>` will produce `<div>a</p><p>b</div>`, when it really should produce `<div>\n<p>a</p>\n<p>b</p>\n</div>`."	pento
1	49492	wpautop inserted p tags inconsistently alter visual space		Formatting	5.3.2	normal	normal	Awaiting Review	defect (bug)	new		2020-02-22T17:09:49Z	2020-02-22T17:12:21Z	"I wrote a custom shortcode to insert a <figure></figure> in my posts. wpautop inserts an empty <p></p> before the <figure>. 

If I place the shortcode before the first paragraph after a subheading, the inserted <p> increases the visual space between the subheading and the paragraph. But if I place the shortcode before the second paragraph, the extra <p> doesn't affect the visual spacing between paragraphs. 

I can work around the inconsistency by changing wpautop's priority. But that scrambles other things on the web site. 


{{{

   remove_filter( 'the_content', 'wpautop' );
    add_filter('the_content', 'wpautop', 12);

add_shortcode('hd_product', 'display_product');

function display_product($args){

	extract(shortcode_atts(array(
		'id' => null,
		'cat' => null,
		'tag' => null,
		'orderby' => 'rand',
		'limit' => 1,
		), $args));


		$product = wc_get_product( $id );
		
		$image =  $product->get_image($size = 'product-slider',  [""class"" => ""product-callout-image"",""alt""=>""mp3 for sale""] );
		$term = get_term_by( 'id',  $product->category_ids[0], 'product_cat' );


		$output = '<figure class=""product-callout"">';		
		$output .= '<a href=""' . get_permalink($id) . '"">' . $image ;
		$output .= '<figcaption class=""product-callout-caption""><b>' .  $term->name . '</b><br>' .  '$' . $product->price . '</figcaption>';
		$output .=   '</a></figure>';
		
		return $output;
}

}}}
"	mesmer7
1	58872	wpautop not disabled when blocks are inserted dynamically		Formatting	6.1.1	normal	minor	Awaiting Review	defect (bug)	new		2023-07-21T18:17:09Z	2023-07-21T18:17:09Z	"**WP Version** Tested on 6.1.1, but seems to still be present on the trunk.

**Context**

Our theme has multiple page-header styles.  Users can insert any one of those as the first block of a page, or leave it out.  If it's left out, we inject a default header block as the first block of the page using a customer WP_Block_Parser.

We've also imported a large number of pages from a previous pre-Gutenberg WP system, so not all posts have block content.

**The Problem**

On legacy posts that do not have block content, wpautop is enabled, ''even for the injected header block'', resulting in extraneous <br> and <p> tags.  If there's even a single block in the post content, the block renders normally.

The source of the issue is that do_blocks (https://core.trac.wordpress.org/browser/trunk/src/wp-includes/blocks.php#L1166) renders the blocks based on the results of the parser, but disables `wpautop` based on a call to has_blocks(), which uses the unparsed content to determine if there are any blocks in the post.

I recognize this is an edge case, as we're dealing with both legacy content and an (ab?)use of a custom block parser to inject blocks into blockless content, so it's not likely to be a high priority.  But if the ""block_parser_class"" hook is going to allow us to override the parser, do_blocks should respect the blocks that are returned regardless of the original content string, and override wpautop accordingly.

**Test Cases**

Attached are:

* A single.php page template file that succinctly captures the problem
* The contents of two pages.  One has no blocks and shows the wpautop problem.  The other contains a single block and shows wpautop being disabled correctly.  Use the Code Editor to enter this content into a page or post."	jbeninger
1	63148	wpautop() formatting function generate invalid HTML if the text end with an empty <p> tag		Formatting		normal	normal	Awaiting Review	defect (bug)	new	changes-requested	2025-03-22T15:08:41Z	2026-10-23T10:49:41Z	"It's probably my first ticket (hi there 👋 !).

When preparing a migration of an old WordPress, I was facing the following issue:

{{{#!php
<?php

$text = ""<p>test</p>
<p></p>"";

var_dump(wpautop($text);
// Output: string(16) ""<p>test</p></p>
// ""
}}}


You may ask, but why do you need to apply `wpautop()` on an already formatted text?
Because some of the content needed it (paragraphs only separated by newlines) and some was already formatted with HTML and Classic Editor.

My current countermeasure is to test if the content already have `<p>` and don't apply `wpautop()`.


Is this a know issue (I found nothing when searching) ?

"	gillesdoge
1	39724	Defining custom validation callbacks for tag/attribute values in wp_kses()		Formatting	4.8	normal	normal	Awaiting Review	enhancement	new		2017-01-27T17:54:04Z	2017-06-17T11:00:12Z	"This patch allows to define a custom validation callbacks to check tag/attributres values in `wp_kes()` etc.

The callbacks are defined through `wp_kses_allowed_html` filter. If a tag and/or tag attribute is a callable function/method, then it will be used to check/validate/process the value, for example:

{{{#!php
<?php

add_filter( 'wp_kses_allowed_html', 'my_wp_kses_allowed_html_flter' ), 10, 2 );

function my_wp_kses_allowed_html_flter ( $tags, $context ) {
   $tags['span']['style'] = function ( $name, $value, $element ) { 
      // return sanitized $value or empty to remove it
      return $value;
   };
   // iframe callback
   $tags['iframe'] = function ( $element, $attr ) { 
      // does something with complete attribute string or return empty to remove it
      return $attr;
      };
   return $tags;
}
}}}

While waiting for the core updates the list of allowed tags/attribitutes/values (for example for `style` attribute, see #24157, #37134, #37248 and probaly many others), this enhancement could offer the possibility of having the fine control over every tag attributes value.

Regards"	enrico.sorcinelli
1	65885	Formal Accessibility Complaint — Dyslexia, Cognitive Accessibility and WordPress Editor Usability		Formatting		normal	major	Awaiting Review	enhancement	new		2026-08-15T06:48:52Z	2026-08-28T07:21:31Z	"Hi,

I am writing to raise a formal accessibility complaint concerning the current WordPress editing and administration environment, particularly its impact on users with dyslexia and other cognitive accessibility requirements.

I am severely dyslexic. I have nevertheless spent most of my adult life reading, researching, writing, teaching and working professionally with complex information. My difficulty with WordPress is therefore not an inability to understand complicated material.

The problem is that WordPress repeatedly makes unnecessarily complicated what should be very simple editorial tasks.

My website exists for one principal purpose: to publish my writing.

My requirements are straightforward.

I write a post.

I decide which section of the website it belongs to.

I publish it.

For example, I have a Stories section and several separate Series. A post should appear in Stories, Series One, Series Two or Series Three according to my choice.

That should be a basic publishing decision.

Instead, I have had to understand and manipulate categories, special Posts Pages, Query Loops, taxonomy filters, block hierarchies, parent blocks, Post Templates, navigation objects, template parts and several different editing interfaces simply to control where a piece of writing appears.

On mobile, the problem becomes significantly worse.

Controls appear and disappear depending upon which block happens to be selected. Selecting the correct parent block can require moving through several nested levels. Drag-and-drop controls are unreliable. Some controls fail to respond. The same task can lead into different editing interfaces depending upon where it is approached from.

This creates a substantial cognitive burden.

For a user with severe dyslexia, long technical instructions, unfamiliar terminology, nested interfaces and inconsistent controls make a simple task considerably more difficult than it needs to be.

The terminology itself is part of the accessibility problem.

A writer should not need to understand expressions such as:

Query Loop

Taxonomy Filter

Post Template

Template Part

Parent Block

Query Type

in order to say:

Put this article in this section of my website.

WordPress may require those concepts internally. The user should not.

Plain English is an accessibility issue.

A publishing platform should present ordinary editorial decisions in the language used by the people actually making those decisions.

For example:

Where should this post appear?

Stories

Series One

Series Two

Series Three

Select one.

Publish.

The underlying software can process that choice however it needs to. The writer should not have to understand the architecture behind it.

I have now spent many hours administering WordPress when I should have been researching and writing. On several occasions I have seriously considered abandoning my website altogether because of the complexity involved in carrying out basic publishing tasks.

That should concern WordPress from an accessibility perspective.

I am exactly the sort of user a publishing platform should be capable of supporting: an independent writer using his own domain to publish original long-form work, historical research, photographs and field observations for readers who wish to follow that work.

Instead of allowing me to concentrate on writing, WordPress repeatedly requires me to become a website administrator.

I am asking the WordPress Accessibility Team to examine this not simply as a usability issue, but as a question of cognitive accessibility.

In particular, I would ask WordPress to consider the following:

• Basic publishing decisions should be expressed in plain English.

• Users should be able to decide where a post appears without understanding WordPress architecture.

• Mobile administration should provide the same essential controls clearly and reliably.

• Common publishing tasks should not require navigation through several nested block levels.

• Documentation intended for ordinary users should explain the task first and the technical mechanism only where necessary.

• Cognitive accessibility, including dyslexia and information-processing burden, should be treated as an integral part of accessibility.

• Technical terminology should not be the default language presented to ordinary writers carrying out ordinary editorial tasks.

WordPress states that accessibility is an ongoing concern and that the Accessibility Team exists to review and improve accessibility within WordPress.

I am asking that cognitive accessibility be considered with the same seriousness as visual, motor and assistive-technology accessibility.

WordPress may be technically capable of doing everything I require.

That is not enough.

If a straightforward publishing task is so difficult to discover, understand and execute that a severely dyslexic but experienced writer repeatedly considers abandoning the platform, then there is an accessibility problem.

The technology should serve the writing.

At present, too often, WordPress makes the writer serve the technology."	alan53crete
1	64151	Improve maintainability and robustness of sanitize_title_with_dashes()		Formatting	1.2	normal	normal	Future Release	enhancement	new	has-patch	2025-10-25T18:30:41Z	2026-04-06T05:37:10Z	"This is a follow-up to #64089.

As discussed in [https://github.com/WordPress/wordpress-develop/pull/10204 PR #10204], the `sanitize_title_with_dashes()` function is difficult to maintain because it has a lot of URL-encoded characters and numeric HTML entities 

I tried to improve the maintainability in [https://github.com/WordPress/wordpress-develop/pull/10204/commits/ff2d2a730144328591c4f654c41e06ad8499a7f6 ff2d2a7], but my approach was not as robust as it could have been, thanks to [https://github.com/WordPress/wordpress-develop/pull/10204/files#r2453809403 feedback] from @dmsnell:

> I strongly discourage replacements that attempt to match normative character references, or which mix UTF-8 characters and HTML character references. these lead to strange edge cases and can easily lead to situations where we cannot accomplish what should be allowable.
> 
> to that end if we want to make these replacements I would encourage backing up to the top of this function and replacing `strip_tags()` with a run through the HTML API to extract the title as decoded plaintext. once that’s done we can examine raw UTF-8 replacements and not have to concern ourselves if someone wrote `&nbsp;` or `&nbsp` or `&#xA0;` or `&#0000000160` — all of these decode into the same U+00A0 code point.
> 
> If not wanting to reconsider this function more holistically, this can still be decoded as `WP_HTML_Decoder::decode_text_node( $title )` before making these replacements. They can be done rather swiftly with `strtr()`. Further, since we are creating a static replacements array, we don’t have to use a potentially-missing runtime function to generate them: we can use Unicode string literals like `\u{2011}` for the patterns/matches.
> 
> Also a quick side note: HTML’s named character references are case-sensitive, so while I am guessing the use of `str_ireplace()` is to catch variations like `&NBSP;`, if it actually does that it will transform _plaintext_ content and not the placeholder for a no-break space.

See that entire comment thread as well as his [https://github.com/WordPress/wordpress-develop/pull/10204#pullrequestreview-3368107324 review]:

> we recently had similar work in [https://github.com/WordPress/wordpress-develop/pull/9103 PR #9103] (#62995).
>
> […] we could consider an approach similar to that taken over there, which is to rely on a Unicode-supported PCRE to replace [https://www.unicode.org/Public/17.0.0/ucd/PropList.txt everything with the `Dash_Punctuation` character property], and also the `Space_Separator`.
>
> {{{
> if ( _wp_can_use_pcre_u() ) {
> 	$title = preg_replace( '~[\p{Pd}\p{Zs}]~u', '-', $title );
> }
> }}}
> 
> Over time I think it’s okay to be more and more restrictive on these, but I hope we push more in the direction of finding ways to ensure the titles and filenames more closely match the content they are associated with."	westonruter
1	40933	Improvements for get_file_data() function		Formatting	4.7.5	normal	normal	Awaiting Review	enhancement	new	has-patch	2017-06-06T20:28:37Z	2017-07-18T09:20:04Z	"It seams as a bug or as imperfection at least.

I try to explain in example.

Assume we have such comments in file:

{{{#!php
<?php
/*
Plugin Name: My plug
Version: 1.0
*/

// and trying to get file data like:
$data = get_file_data( __FILE__, ['ver'=>'Version'] );
echo $data['ver']; //> 1.0
}}}

This is works as we need.

BUT if we change comments a little, the get_file_data() becomes broken:

{{{#!php
<?php
/*
Plugin Name : My plug
Version     : 1.0
*/

// and trying to get file data like^
$data = get_file_data( __FILE__, ['ver'=>'Version'] );
echo $data['ver']; //> ''
}}}

All we do just add spaces before `:` to make comments more readable...

-

Solution

I think it's better to improve regular expression of the get_file_data() and add `[\t ]*` before `:`

{{{#!php
<?php

if ( preg_match( '/^[ \t\/*#@]*' . preg_quote( $regex, '/' ) . ':(.*)$/mi', $file_data, $match ) && $match[1] )

to 

if ( preg_match( '/^[ \t\/*#@]*' . preg_quote( $regex, '/' ) . '[\t ]*:(.*)$/mi', $file_data, $match ) && $match[1] )

}}}



"	Tkama
1	49129	Incorrect German Umlaut substitutions		Formatting	5.4	normal	minor	Awaiting Review	enhancement	new	dev-feedback	2020-01-04T00:18:46Z	2020-01-04T09:39:30Z	"Hello,

as a native speaker, I find the German Umlaut substitutions quite strange.
Correctly, ü is turned into ue, but Ü is turned into Ue.
Since the second character should be considered as part of the former character, the former capitalization should be respected.

This is especially strange in uppercase text:
FRÖHLICH -> FROeHLICH
KÖNNEN -> KOeNNEN

If it was changed to be all uppercase, it would work much better:
FRÖHLICH -> FROEHLICH
KÖNNEN -> KOENNEN

When used at the start of a word, it would also work fine, if capitalized:
ÖFFENTLICH -> OEffentlich
ÜBERGANG -> UEbergang

Therefore, I would propose changing the table located in wp-includes/formatting.php:1941 (https://github.com/WordPress/WordPress/blob/master/wp-includes/formatting.php#L1941) to the following:


{{{

		if ( 'de_DE' == $locale || 'de_DE_formal' == $locale || 'de_CH' == $locale || 'de_CH_informal' == $locale ) {
			$chars['Ä'] = 'AE';
			$chars['ä'] = 'ae';
			$chars['Ö'] = 'OE';
			$chars['ö'] = 'oe';
			$chars['Ü'] = 'UE';
			$chars['ü'] = 'ue';
			$chars['ß'] = 'ss';
}}}

Though, to be entirely correct, the surrounding characters would have to be checked, which would be difficult, given the current architecture.
There even is a capital ß now, which would be substituted with SS.


I am happy to hear any second opinions on this.

Best regards,
Benedikt"	bmuessig
1	61501	KSES Allow more custom data attributes to align with browsers	dmsnell	Formatting	6.6	normal	normal	Future Release	enhancement	assigned	has-patch	2024-06-25T16:12:46Z	2026-07-10T12:42:58Z	"KSES data attribute handling is unnecessarily restrictive. There are a number of valid data attribute that will be handled well and predictably across all browsers that are not allowed by KSES.

KSES rules should be relaxed to allow more data attributes and better aligning with browsers.

Follow up to #61052."	jonsurrell
1	35201	Mobile email validation		Formatting	4.4	normal	normal	Awaiting Review	enhancement	new		2015-12-22T17:08:27Z	2017-02-06T09:14:45Z	"While testing form submission through Samsung Android devices (Galaxy S6 Edge and Galaxy Note 5), we noticed that when user selects their email from the field history dropdown, it appends a space at the end of the email address.  This invalidates the email when using the is_email validation function in wp-includes/formatting.php.

A fix I am currently using is simply adding a trim function to the email address in the first line of the function...

$email =  trim($email);

This resolves the Samsung bug and passes the email validation.  I hope this helps.
"	njbebop
1	39636	Smilies not converted when directly followed by punctuation marks		Formatting	4.7.1	normal	normal	Future Release	enhancement	new	dev-feedback	2017-01-19T10:29:30Z	2022-04-11T03:02:17Z	"Steps to recreate:

- Create a new post or comment
- Insert a smilie directly followed by a period or other punctuation mark such as :).
- View the post or comment

Expected:

Ideally the smilie would show followed by the punctuation mark.

I've attached a screenshot showing how a post with the following text appears. Smiles with a space between them and the punctuation mark show, but the others do not.


{{{
This is a test :). It uses smilies :)

If a smilie has punctuation directly after, it is not converted :(! :(

The expected behavior would be to look like this:
:) ! :) ,
However instead they appear as this
:)! :),
}}}
"	ourvalley
1	56663	`tag_escape()` does not follow naming convention.		Formatting		normal	normal	Awaiting Review	enhancement	new		2022-09-27T03:08:33Z	2022-09-27T14:06:24Z	"In WordPress, escaping functions generally use the naming convention `esc_thing()`.

The `tag_escape()` function and it's associated hook do not. Is it worth renaming each to either `esc_tag` or the more precise `esc_html_tag`?

There is some [https://wpdirectory.net/search/01GDYE8DKXN527KR6GDA24HCE2 use within the plugin repository] but not a huge amount.

"	peterwilsoncc
1	57909	"It's not logical that the ""Read more""-button disappears when you create a manual excerpt"		Formatting	1.5	normal	normal	Awaiting Review	feature request	new	close	2023-03-12T14:05:20Z	2023-03-14T10:35:34Z	"When you create a manual excerpt on a Post, the ""Read more""-button disappears on the Blog-page. That is NOT logical, if you ask me! 
I was told by the Astra Pro Theme support that this is a default behaviour of WordPress. 
To me, this is a bug, but formally I guess it's a feature request, to let the user decide whether to have a ""Read more""-button or not, and how it should look! And NOT let it depend on whether you have created a manual excerpt for that post!

I will try to add a screen shot which shows that the ""Read more""-button is only visible on Post-thumbnails where I have not manually created the excerpt."	hero2
1	63192	wptexturize add filter for disable some replacement		Formatting		normal	normal	Awaiting Review	feature request	new	changes-requested	2025-03-28T12:17:01Z	2025-04-10T06:43:08Z	I need to have ability to keep wptexturize but disable specific replacemnt. In my case I need to deactivate replace for double dash.	jubasik23
1	46241	Bug Report: Creating Multiple Gallerys with Gutenberg and Latest WordPress	antpb*	Gallery	5.0.3	normal	major	Future Release	defect (bug)	accepted		2019-02-12T17:55:22Z	2020-02-21T01:23:38Z	"Problem: All images in media library are added to Gallery after creating a new Gallery on the same page and choosing to edit it.

Exact Steps to Reproduce: 
1) Create a new gallery block using Gutenberg editor. Choose Upload and upload 3 images to the gallery.
2) Add a heading block to the page
3) Add another gallery block below that using the Gutenberg editor. Upload 3 new images to this gallery.
4) Once this is done, click the pencil icon to edit this gallery block

What happens:
You will see all the images in the entire media library are added and selected, and you have to manually deselect them. If you don't and hit Update Gallery it will add all of the images in the library to the gallery.
"	starcrescendo
1	63577	PHP Warning from `get_post_galleries()` when gallery items lack an ID.		Gallery		normal	normal	Future Release	defect (bug)	new	changes-requested	2025-06-17T04:21:51Z	2026-10-27T19:48:39Z	"As implemented in #43826 a PHP warning can be thrown pretty consistently with certain block contents

> E_WARNING: Undefined array key ""id"" in wp-includes/class-wp-list-util.php:170

This warning can be silenced via #59774, but it's specifically from `get_post_galleries()` due to the input that's being passed, as seen in the stack trace below:

{{{
get_post_galleries( $post = 121142, $html = FALSE )
wp_list_pluck( $input_list = [0 => ['width' => '188px', 'height' => 'auto'], 1 => ['width' => '251px', 'height' => 'auto']], $field = 'id', $index_key = ??? )
WP_List_Util->pluck( $field = 'id', $index_key = NULL )
}}}

It seems that we can likely just fix this invalid input to `wp_list_pluck()` rather than avoiding the warnings in that function specifically.

Given the code in question is fairly simple, we could just loop over the attributes and remove the need for `wp_list_pluck()` entirely. See attached PR."	dd32
1	51840	Single Image not loading after upgrade to 5.3.3		Gallery	5.5.3	normal	major	Awaiting Review	defect (bug)	new		2020-11-20T20:50:14Z	2020-11-20T20:59:22Z	"I updated my site wear freedom.ie to 5.3.3 and the product single image stopped displaying.  The hosting provider rolled back to my previous version and did the update again and the same issue occurred.

I can't leave my website in this state so we've had to revert to 5.2.9 again.  Can you please provide some guidance, this cannot have been tested prior to release.

Please note. When I clicked on the empty space where the produce image should be then the images open in a new window.  "	wearfreedom
1	61012	The mobile layout displays incorrectly when infinite scrolling is activated in the Media Gallery Modal.		Gallery	6.5	normal	normal	Awaiting Review	defect (bug)	new		2024-04-16T07:32:48Z	2024-04-16T11:55:47Z	"If I apply filter, the mobile layout displays incorrectly:

{{{#!php
<?php
 add_filter( 'media_library_infinite_scrolling', '__return_true' );
}}}

Preview:

[[Image(https://i.ibb.co/YysnCp7/bug.png)]]


"	tatthang96
1	47744	WordPress default galleries do not display properly on Safari 10.1 and possibly other older browsers		Gallery	5.2.2	normal	minor	Awaiting Review	defect (bug)	new		2019-07-20T20:48:07Z	2019-07-25T21:38:27Z	"The following thread details the problem: [https://stackoverflow.com/questions/33636796/chrome-safari-not-filling-100-height-of-flex-parent]

Images are nested inside a flex container. The child elements have a height of 100% which does not work on these older browsers such as Safari 10.1. This is because the parent element does not have a set height. So the child element doesn't know what 100% height is. The correct way to do it is to remove the 100% height from everything and use flex throughout the elements.


{{{
.wp-block-gallery .blocks-gallery-image, .wp-block-gallery .blocks-gallery-item {
		flex-direction: row;
	}
.wp-block-gallery .blocks-gallery-image figure, .wp-block-gallery .blocks-gallery-item figure {
		height: auto;
		align-items: stretch;
	}
.wp-block-gallery.is-cropped .blocks-gallery-image a, .wp-block-gallery.is-cropped .blocks-gallery-image img, .wp-block-gallery.is-cropped .blocks-gallery-item a, .wp-block-gallery.is-cropped .blocks-gallery-item img {
		height: auto;
		display: flex;
	}
.wp-block-gallery .blocks-gallery-image figcaption, .wp-block-gallery .blocks-gallery-item figcaption {
		left: 0;
	}
}}}

The above CSS fixes the issue and should replace the current CSS.
"	billybidley
1	29379	Add a hook to filter gallery classes		Gallery	3.9.2	low	normal	Future Release	enhancement	new	has-patch	2014-08-26T15:35:45Z	2024-05-05T09:45:15Z	"Hi, it would be really great to be allowed to filter the gallery classes.

Here's what I suggest :

instead of :


{{{
	$size_class = sanitize_html_class( $atts['size'] );
	$gallery_div = ""<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>"";
}}}

rather use


{{{
        $classes_str = null;
        $classes = array(
            'gallery',
            'galleryid-'.$id,
            'gallery-columns-'.$columns,
            'gallery-size-'.sanitize_html_class( $atts['size'] )
        );
        
        $classes = apply_filters('gallery_classes',$classes,$attr);

        if (!empty($classes)){
            $classes = array_filter($classes);
            $classes_str = "" class='"".implode(' ',$classes).""'"";
        }
        

	$size_class = sanitize_html_class( $atts['size'] );
	$gallery_div = ""<div id='$selector' $classes_str>"";
}}}"	grosbouff
1	66089	Disable sizes=”auto” for galleries with cropped images		Gallery	6.7	normal	minor	Awaiting Review	enhancement	new	has-patch	2026-09-10T14:08:43Z	2026-10-08T07:29:41Z	"WordPress added [https://make.wordpress.org/core/2024/10/18/auto-sizes-for-lazy-loaded-images-in-wordpress-6-7/ Auto Sizes for Lazy Loaded Images in WordPress 6.7].

In Galleries that use the setting ""Crop images to fit"" the images often overlap the box they need to cover by quite a bit (especially when Editors use landscape images in portrait boxes).

Browser heuristics don't seem to be considering the overlapping when calculating which image file to fetch for the layout box.

The result is quite often blurry images in such Galleries.

I'd therefore suggest to remove the ""auto"" keyword from the sizes attribute of images inside Galleries with the setting ""Crop images to fit"" enabled (or maybe, instead, when the image orientation does not match that of the layout box)."	captain.crash
1	43642	Gallery titles and labels erasing		Gallery	4.9.5	normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2018-03-27T11:42:19Z	2022-05-26T22:23:13Z	"It would be great to have some ""erase all titles and labels"" button when creating new gallery. Especially when you create large one with 50 or more pics.

It's very frustrating to do it manually on every imported photo."	marcinmichno
1	63223	6.7.2 fresh install		General	6.7.2	normal	normal	Awaiting Review	defect (bug)	new		2025-04-03T01:29:47Z	2025-04-03T22:32:49Z	"Hi,

Using the download link https://en-au.wordpress.org/latest-en_AU.zip

I have done a fresh install three times and wordpress-6.7.2.zip has failed each time.

I have installed from 6.7.1 and upgraded to 6.7.2 and so far it seems to be fine, so the issue seems to be with the installer.

First issue I noticed, the pwd strength checker does not work.

PHP 8.1 or 8.3
cPanel on linux

Please note, this has not been extensively tested, but you can do a quick test and if the pwd strength checker does not work, it's likely the whole install will not."	wharminda
1	60452	@category tag is considered deprecated by phpDocumentor		General		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2024-02-07T01:24:38Z	2024-02-23T23:27:59Z	"The @category tag is used in wp-includes/class-json.php. According to phpdoc.org it is deprecated and isn't recommended.

Ref https://docs.phpdoc.org/3.0/guide/references/phpdoc/tags/category.html

> This tag is considered deprecated and support may be removed in a future version of phpDocumentor. It is recommended to use the @package tag's ability to provide multiple levels instead."	henry.wright
1	60451	@subpackage tag is considered deprecated by phpDocumentor		General		normal	normal	Awaiting Review	defect (bug)	new		2024-02-07T01:13:08Z	2024-02-07T01:13:08Z	"The @subpackage tag is considered deprecated by phpDocumentor. Instead, the @package tag supports multiple levels.

Source https://docs.phpdoc.org/3.0/guide/references/phpdoc/tags/subpackage.html

> This tag is considered deprecated and support may be removed in a future version of phpDocumentor. It is recommended to use the @package tag's ability to provide multiple levels instead."	henry.wright
1	58050	A beacon api for WordPress		General		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-04-02T01:39:33Z	2024-10-11T14:51:08Z	"Forgive me is there is already a ticket for this, I could not find one

Core needs a standard way of sending a beacon as the user leaves a page, with the ability to to hook additional data to the request. Similar to how you can hook data to the heartbeat.

Of course it is possible to build your own solution on this BUT what if some other developer does the same. In the absence of a standard there will be multiple redundant http requests."	shawfactor
1	59016	Able to login successfully .. but I'm unable to open wordpress dashboard..		General	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-08-09T07:06:53Z	2023-08-09T14:53:49Z		skylerfashion
1	51806	Add an early exit for files with _deprecated_file() calls		General		normal	normal	Future Release	defect (bug)	new		2020-11-17T19:32:08Z	2022-06-08T00:38:25Z	"Background: #35835

[49619] added an early exit when calling the `wp-includes/rss-functions.php` file directly to avoid unnecessary errors in server logs.

There are ~30 other files in core with `_deprecated_file()` calls so it seems like a good idea to have a consistent policy for the other instances.

That said, it's not limited to `_deprecated_file()`, as noted in comment:3:ticket:35835 and comment:1:ticket:35835:
> You'll get a similar error if you access `wp-includes/default-filters.php` or any number of others too potentially.

So perhaps other files that can clutter server logs with unnecessary errors would benefit from an early exit too."	SergeyBiryukov
1	57494	An error is coming for data table as Apex Action error: Unable to read SObject		General		normal	normal	Awaiting Review	defect (bug)	new	close	2023-01-18T11:48:22Z	2025-10-06T13:58:49Z	Apex Action error: Unable to read SObject  this error is displaying while creating the record using datatable component in the screen flow.	ppreddy42
1	62828	Array should not be passed to get_page_by_path()		General	6.7.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-01-20T11:54:21Z	2026-11-03T14:37:19Z	"We have been logging the following, as a result of an unauthorised vulnerability scan on a site we host:

{{{
PHP Warning:  urldecode() expects parameter 1 to be string, array given in /var/www/html/wp-includes/post.php on line 6033
}}}

This occurs when an array is being passed to `get_page_by_path()`

I was able to reproduce using

{{{
curl -g ""http://localhost/?year[1]=1""
}}}

This specific instance occurred in `wp_resolve_numeric_slug_conflicts()` where user-supplied values of ""month"" ""year"" etc, are passed to `get_page_by_path()`"	leedxw
1	53368	Auto-generated skip-link gets added in classic templates and not just in block templates		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-06-09T08:25:57Z	2021-06-09T08:31:35Z	"In https://core.trac.wordpress.org/changeset/51003 we introduced the `the_block_template_skip_link` function which adds a skip-link for block themes/templates. However, since the `block-templates` theme-support is enabled by default and is opt-out, the skip-link gets added regardless of whether we're on a block template or not.

A check should be added to properly detect if the current template is block-template or not, and only add the skip-link when needed.

There is a PR in Gutenberg (https://github.com/WordPress/gutenberg/pull/32451) so it should be backported to core."	aristath
1	61613	Bug: Image attributes don't propogate to posts, pages, products, etc		General		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2024-07-09T20:03:35Z	2024-08-13T20:42:29Z	" This ticket is a bug report to track the effort to fix the WP bug where updating image attributes in the Media Library saves changes, but it does not actually update the image on posts, pages, and (woocommerce) products where the image was used.

Steps to reproduce:

  1. Write a post
  2. Create a gallery
  3. Upload a random picture
  4. Set caption to ""test""
  5. Publish Post
  6. Go to Media -> Select the picture from before
  7. Set caption to ""changed"" and save
  8. Go back to post
  9. Check the image
  10. Image caption still shows ""test"" -> Should be ""changed"" 

So if I ever update the media library with proper captions, alt text and titles it looks like they will never be updated on older posts.

Attribution: CasualBen https://wordpress.stackexchange.com/questions/403272/media-changes-not-updating-posts"	maltfield
1	58102	Check PHPcs Coding standard into the wp-includes folder		General		normal	normal	Awaiting Review	defect (bug)	new		2023-04-07T08:40:06Z	2024-10-02T17:27:51Z	"Hello Team,

I have reviewed the code and found a few errors in some of the below files. Please below files:

Files:

wp-includes/admin-bar.php
wp-includes/option.php

Thanks,"	viralsampat
1	66043	Classic Editor: `postboxes.add_postbox_toggles()`'s jQuery UI `.sortable()` init hangs the main thread indefinitely in Safari 26.0.1 (WebKit 605.1.15)		General		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2026-09-03T21:14:31Z	2026-11-02T10:17:56Z	"On a stock WordPress 7.1 install — default theme (Twenty Twenty-Five), zero plugins — opening any
post or page in the Classic Editor in Safari 26.0.1 on macOS hangs the browser tab's main thread
completely between `DOMContentLoaded` and `window.load`. The tab becomes fully unresponsive: no
scroll, no focus, no typing, no further script execution. Chrome and Firefox on the same machine
load the same screen normally. The block editor is unaffected in Safari.

This reproduces on the single default ""Hello world!"" post with no custom fields, no extra meta
boxes, and no plugins active, so it is not specific to any plugin, theme, or content type — it's in
WordPress core's own admin JS interacting with Safari 26.

**Steps to reproduce**

1. Fresh (or default-content) WordPress 7.1 install, default theme, no plugins active.
2. In Safari 26.0.1 on macOS, log in to wp-admin and open `post.php?post=1&action=edit` (or any
   post/page) — forced into the Classic Editor if the block editor is the default (e.g. via the
   Classic Editor plugin, or `add_filter('use_block_editor_for_post', '__return_false')`).
3. Watch the page: it paints, then the tab locks up before `load` fires. No user input registers.

**Isolation / root cause**

Bisected with an instrumented mu-plugin (PHP + browser lifecycle logging: heartbeat, rAF-gap and
main-thread-stall detection, per-request script/style dequeue and stub knobs) driving real Safari
via `safaridriver` for a deterministic HANG/OK verdict per trial (~20s/trial, ~40+ trials run).

- The hang sits in `wp-admin/js/post.js`'s `jQuery(document).ready` handler, specifically the
  statement immediately after `new ClipboardJS('.copy-attachment-url.edit-media')`
  (`wp-admin/js/post.js`, around line 315): `postboxes.add_postbox_toggles(pagenow);` (line 319).
- Inside `wp-admin/js/postbox.js`, `add_postbox_toggles()` calls `init()`, which runs
  `jQuery('.meta-box-sortables').sortable({ ..., forcePlaceholderSize: true, ... })` (jQuery UI
  Sortable).
- Decisive test: with the rest of `add_postbox_toggles()` left completely intact (its click-handler
  bindings for `.hndle`, `.handlediv`, `.hide-postbox-tog`, etc. all still run normally) and *only*
  `jQuery.fn.sortable` replaced with a no-op (`function(){ return this; }`) immediately before it
  would otherwise run, the hang disappears entirely — the page reaches `readyState: complete` and
  fires `load` normally. Every trial that leaves the real `.sortable()` call in place hangs;
  every trial that skips only that call does not. This isolates the loop to jQuery UI Sortable's
  own initialization (likely its internal geometry read/write for `forcePlaceholderSize` and
  per-item height calculation across `.meta-box-sortables`/`.postbox`), not to WordPress's own code
  around it.
- Removing all page CSS also prevents the hang, which rules out a pure logic loop (e.g. a bad
  `while` condition) and points at a layout-dependent loop: something in Sortable's init reads a
  geometry property (`outerHeight()`/`offsetHeight`), the browser performs a synchronous layout
  pass, and — specifically under Safari 26's WebKit engine — the loop never resolves. Google Chrome
  (Blink) does not reproduce it at all. An older Playwright WebKit build (2336) also does not
  reproduce it, suggesting this is a very recent WebKit/Safari 26 regression rather than a
  long-standing Sortable bug — though I have not identified a specific WebKit engine change or
  Bugzilla ticket to point to; I could not find one on a search of WebKit Bugzilla and would
  welcome a WebKit engineer's read on this from the WordPress side.
- This is unrelated to Advanced Custom Fields or any other plugin: initially observed on 4
  ACF-driven pages and suspected to involve ACF's `acf_after_title` field-group position, but that
  hypothesis was tested and disproved (forcing the field group to a standard `normal` position did
  not fix it), and the hang was then reproduced on a completely stock post with all plugins
  deactivated and the default Twenty Twenty-Five theme active.

**Environment**

- WordPress 7.1
- Safari 26.0.1, `AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0.1 Safari/605.1.15` (from the
  browser's own `navigator.userAgent`, captured during testing)
- macOS (Local by Flywheel dev environment); also reproduces on the same site in production
- Default theme (Twenty Twenty-Five) and separately the site's own theme; no plugins required

**Workaround**

Sites can avoid the Classic Editor for affected screens (the block editor does not hit this code
path and is unaffected in Safari 26) or supply their own `admin_enqueue_scripts` override that
prevents `postbox.js`'s `.sortable()` call from running.

**What I can provide on request
**
- The mu-plugin used for instrumentation/bisection (PHP + browser-side lifecycle logging with
  dequeue/stub/shim knobs) and the `safaridriver`-driven bisection script, if useful for others
  trying to reproduce or narrow this further.
- The full bisect trial ledger (~15 trials from initial symptom to this isolation).
"	neochrome
1	45939	Coding Standards: fix <br/> in core files		General		normal	normal	Future Release	defect (bug)	reopened	has-patch	2019-01-11T12:21:14Z	2025-07-09T07:40:56Z	"In order to [https://make.wordpress.org/core/handbook/best-practices/coding-standards/html/#self-closing-elements self-closing-elements], a single space should precede the self-closing slash.

I created this patch for version 5.0.3, but this version isn't on ticket version selector."	man4toman
1	59787	Control-Z editing HTML erases all changes since last save		General	6.3.2	normal	normal	Awaiting Review	defect (bug)	new		2023-11-01T17:59:34Z	2023-11-01T17:59:34Z	"I was directly editing the one line of the HTML in an HTML block and realized I had deleted a few more characters than intended. I hit Ctrl-Z to restore the last change.

TWO undesirable things happened.
1) When the page refreshed, it was positioned at the top of the page, not where I had been working. (This has been reported before, but has never been fixed.)
2) When I scrolled down to the point where I had been working, all the lines I had entered since the last save (about 10 minutes work) was gone, not just the last change I made. Surely this is not the expected behavior!

I would be happy to help the responder reproduce this problem."	lmarks
1	43306	Creating site using wpmu_create_blog() without / prefixed with $path causes get_id_from_blogname() to fail.		General	4.9.4	normal	normal	Awaiting Review	defect (bug)	new		2018-02-13T19:55:03Z	2019-04-01T22:10:10Z	"The below code will result in `NULL`:

		$id = wpmu_create_blog( 'example.org', 'example', 'neutralized', 1 );
		$result = get_id_from_blogname( 'example' );

But the below code will result in an `int`.

		$id = wpmu_create_blog( 'example.org', '/example', 'neutralized', 1 );
		$result = get_id_from_blogname( 'example' );

The difference is in the 2nd snippet I prefix `$path` with a `/`. Without that being apparent in docs we should strip the need for the `/` or update docs.

I found this while writing a unit test, and you can see it changing below:

[[Image(http://aubrey.pw/d/2018/BoaRz4J88N.gif)]]"	aubreypwd
1	59020	Critical error during database update and patterns directory		General	6.3	normal	critical	Awaiting Review	defect (bug)	new		2023-08-09T11:08:19Z	2023-10-24T22:19:45Z	"Hi there, 

The following critical error is triggered when WordPress updates the database, for example now with 6.3. 

My theme is using the patterns directory to define patterns. When i echo a constant - that is defined in the theme's functions.php - to one of the pattern files, I get a critical error (undefined constant) during the update process and cannot be complete it. The reason is probably, that WordPress loads the patterns directory during the database process, but not the functions.php.  

This is an example of the pattern file (path-to-theme/patterns/pattern-example.php):
{{{
<?php
/**
 * Title: Pattern Example
 * Slug: theme/pattern-example
 */
?>

<!-- wp:paragraph -->
<p><?php echo esc_html( THEME_CONSTANT ); ?></p>
<!-- /wp:paragraph -->

}}}


If I define the constant earlier, for example in the mu-plugins, the problem is solved. 

Let me know, if I need to provide more details "	margaritaperc
1	62656	"Customize > Manu > Reorder random shuffle after ""done"" and ""save changes"""		General		normal	normal	Awaiting Review	defect (bug)	new		2024-12-06T04:50:53Z	2025-05-12T01:38:45Z	"My secondary menu is quite large (left side on [floodstories.wordpress.com]) and since around yesterday (Dec. 4), when I make a small change by adding a few pages and posts, a lot of sub-items get randomly shuffled.
Thankfully they tend to stay under the items they were originally placed, but it still leads to disorganized sub-menus.
I'll list two examples, but sadly there are more:
1 Europe > 1.12 Serbian > 1.12 (a) Wealthy Gavan's Wife > four sub items (posts). They should be numbered by their Roman numerals: 1.12 (a.i), 1.12 (a.ii), 1.12 (a.iii), 1.12 (a.iv), but instead they are ordered i, iv, ii, iii.
Second example:
10 N. America (North) > 23 sub items (22 pages, 1 post) that should be orderd 1-22, followed by the Bibliography post. Instead they are ordered 1-14, 18-20, 15, 21, 16, 22, Bibliography, 17.
I can go in and change the order via the normal process (in fact, I just did that, including specifically these sub sections), even if it's slow, but after saving, only some of the changes I've made are corrected, and new random shuffles show up in different parts of the menu.

Context: this used to be an issue a few years ago (I did not submit a bug report then), but then it was fixed. Now it is suddenly back."	bramvandenheuvel
1	61879	Deprecation Warning		General	6.7	normal	minor	Awaiting Review	defect (bug)	reopened	has-patch	2024-08-15T14:33:59Z	2024-10-23T00:44:44Z	"When accessing the WordPress admin page, a deprecation warning is displayed in the error logs:

 WARNING: [pool www] child 7 said into stderr: ""NOTICE: PHP message: PHP Deprecated:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /public/wordpress/wp-includes/formatting.php on line 4720""

This issue arises because the strip_tags() function is being passed a null value. As of PHP 8.2, passing null to strip_tags() is deprecated and will trigger a warning. The code should ensure that a non-null value is passed to strip_tags() to prevent this warning."	pcalvo
1	51307	"Document title broken when ""Homepage"" isn't set in Settings > Reading"		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-09-14T09:10:22Z	2021-03-08T12:28:46Z	"Steps to reproduce the bug

1. Go to Settings > Reading
2. For ""Your homepage displays"" select ""A static page""
3. Do not set ""Homepage""
4. Set ""Posts page"" to a page you have already created
5. Save

Visit the homepage and check the document title. For example `<title>The document title is here</title>`

Instead of the expected {blogName} - {blogDescription} you will get just {blogName}
"	henry.wright
1	57246	Duotone SVG function does not check for CSS variable color format		General		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-12-01T15:12:35Z	2025-05-12T01:38:02Z	"The function `wp_get_duotone_filter_svg` and/or `wp_tinycolor_string_to_rgb` do not verify the format of the color code passed to it.   My theme uses a CSS variable `var(--nv-text-dark-bg)`.   After getting `$color` from `wp_tinycolor_string_to_rgb`, it assumes the color array has valid values.   Since the original color is not one of the expected formats, this generates the following warnings:
{{{
PHP Warning:  Trying to access array offset on value of type null in /wp-includes/block-supports/duotone.php on line 422
PHP message: PHP Warning:  Trying to access array offset on value of type null in /wp-includes/block-supports/duotone.php on line 423
PHP message: PHP Warning:  Trying to access array offset on value of type null in /wp-includes/block-supports/duotone.php on line 424
PHP message: PHP Warning:  Trying to access array offset on value of type null in /wp-includes/block-supports/duotone.php on line 425
}}}
Please change one or the other method to check for CSS variables before using values from `$color` array."	mattf10
1	59266	Fatal error: Uncaught Error: Call to undefined function list_files()		General		normal	normal	Awaiting Review	defect (bug)	new		2023-09-01T17:37:05Z	2023-09-04T06:14:12Z	Fatal error: Uncaught Error: Call to undefined function list_files()	brunobird
1	63783	Fix: uncaught exception error from wp-includes folder files		General	6.8.2	normal	critical	Awaiting Review	defect (bug)	new	has-patch	2025-08-02T18:35:47Z	2025-08-02T18:37:10Z	"
Stop direct loading of files in /wp-includes that should only be included.

This Changeset restricts direct access call in /wp-includes and its subdirectories.

Uncaught exception 'Error' with message 'Class ""ParagonIE_Sodium_Core32_Util"" not found' in /var/www/wp-includes/sodium_compat/src/Core32/Poly1305.php:10

Uncaught exception 'Error' with message 'Class ""ParagonIE_Sodium_Core_AES_KeySchedule"" not found' in /var/www/wp-includes/sodium_compat/src/Core/AES/Expanded.php:10

Uncaught exception 'Error' with message 'Class ""ParagonIE_Sodium_Core_XChaCha20"" not found' in /var/www/wp-includes/sodium_compat/namespaced/Core/XChaCha20.php:4

Uncaught exception 'Error' with message 'Class ""WP_Block_Supports"" not found' in /var/www/wp-includes/block-supports/aria-label.php:64

Uncaught exception 'Error' with message 'Class ""WP_Dependencies"" not found' in /var/www/wp-includes/class-wp-scripts.php:18

Uncaught exception 'Error' with message 'Class ""WP_REST_Controller"" not found' in /var/www/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php:17

Uncaught exception 'Error' with message 'Class ""WpOrg\Requests\Exception"" not found' in /var/www/wp-includes/Requests/src/Exception/ArgumentCount.php:20

Uncaught exception 'Error' with message 'Interface ""SimplePie\Cache\DataCache"" not found' in /var/www/wp-includes/SimplePie/src/Cache/BaseDataCache.php:56

Uncaught exception 'Error' with message 'Interface ""WpOrg\Requests\Transport"" not found' in /var/www/wp-includes/Requests/src/Transport/Curl.php:25

https://github.com/WordPress/wordpress-develop/pull/9378"	harishtewari
1	63922	FontSizePicker incorrectly measures units for selecting elements		General	6.8.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2025-09-03T19:07:48Z	2025-09-30T07:20:50Z	"I see that WordPress show incorrect information of units of [https://wordpress.github.io/gutenberg/?path=/docs/components-fontsizepicker--docs FontSizePicker] if user choose default to the labels 'S / M / L / XL / XXL'.

Example my component

{{{
<FontSizePicker
   __next40pxDefaultSize
   fontSizes={[
               {
                name: 'Small',
                size: 12,
                slug: 'small'
               },
               {
                name: 'Normal',
                size: 16,
                slug: 'normal'
               },
               {
                name: 'Big',
                size: 26,
                slug: 'big'
               }
               ]}
value={
	titleFontSize? parseFloat( titleFontSize ): undefined
}
onChange={ ( newSize ) => {
	  if ( newSize === undefined ) {
		setAttributes( {
		titleFontSize: '16',
		titleFontUnit: 'px',
	 } );
		return;
	}
setAttributes( {
		titleFontSize: String( newSize ),
		titleFontUnit: 'px',
	      } );
} }
withSlider />
}}}

I saw this. ->
[[Image(https://i.ibb.co/mCPjTVYX/WP-BUG.jpg)]] 

This component does not correctly indicate the units of measurement when switching between different states. Ideally it should show the font size in ""px"" but in fact it displays the value in ""rem"", but writes that it is ""px""

[[Image(https://i.ibb.co/5ht7qK6x/elementor-test-Google-Chrome-2025-09-03-22-04-47.jpg)]]
"	blackstar1991
1	62554	Front/Home page showing Date and URL on Search Engines now? This is a no-no for SEO		General	6.6	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-11-23T17:12:40Z	2024-11-26T13:19:22Z	"When building new wordpress websites, (realized this started happening on WordPress 6.6) your home page is now showing on SERP's with a date and the full URL is now listed instead of no date and Site Name (without the .com or dashes etc). However, when adding new pages that's not the home page, the date won't show on SERP. So it seems to be directly focused on the homepage once you've set it in Settings.

So far I have not had any issues ranking but the look and feel on SERP's doesn't strike ""official"" like the other older websites and given you need to change the date manually and republish to change it on SERP's. It's either suspicious looking and further on (years) if you don't republish it will surely affect your SERP rankings.

Was this recently changed? and can it be reverted?"	digitalkingdom
1	64560	Function get_stylesheet_directory_uri() can expose server path when using a theme directory outside the document root		General		normal	normal	Awaiting Review	defect (bug)	new		2026-01-27T22:00:52Z	2026-01-29T23:14:56Z	"For several years we have been using `register_theme_directory()` to register a theme directory outside of the document root. I understand that it is unconventional, but it has worked perfectly with no issues until now. It was done to follow best practices to keep PHP code (functions.php, classes, templates) above any public directories.

The Speculative Loading feature now excludes some base/default directories, and does not allow a real way to modify them via filter/action.

`WP_URL_Pattern_Prefixer::get_default_contexts()` has no filter.

`wp_speculation_rules_href_exclude_paths` filter specifically runs ''before'' those default contexts are added, so they cannot be removed.

`wp_load_speculation_rules` action does not allow modification of any rules as `WP_Speculation_Rules` has no method for removing/modifying rules, it can only fully replace them. So to remove the `template` or `stylesheet` context, one would need to duplicate the entire main rule conditions from `wp_get_speculation_rules()`, which is fragile at best.

Themes outside the document root is rare, but there doesn't seem to be anything preventing that, and everything else in WordPress seems to run just fine doing so.

A quick fix has been for us to use the filters `stylesheet_directory_uri` and `template_directory_uri` to remove the absolute server paths, but this still leaves a potentially valid and real WordPress page URL on the excluded list.

Example of output below, the server path is exposed in the HTML: `/home/USER/apps/APP_NAME/releases/485/theme-name/*`

{{{
<script type=""speculationrules"">
{
  ""prefetch"": [
    {
      ""source"": ""document"",
      ""where"": {
        ""and"": [
          {
            ""href_matches"": ""/*""
          },
          {
            ""not"": {
              ""href_matches"": [
                ""/wp-*.php"",
                ""/wp-admin/*"",
                ""/wp-content/uploads/*"",
                ""/wp-content/*"",
                ""/wp-content/plugins/*"",
                ""/home/USER/apps/APP_NAME/releases/485/theme-name/*"",
                ""/*\\?(.+)""
              ]
            }
          },
          {
            ""not"": {
              ""selector_matches"": ""a[rel~=\""nofollow\""]""
            }
          },
          {
            ""not"": {
              ""selector_matches"": "".no-prefetch, .no-prefetch a""
            }
          }
        ]
      },
      ""eagerness"": ""conservative""
    }
  ]
}
</script>
}}}
"	emrl
1	61202	Gallery Block Columns Broken		General	6.2.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-05-12T16:26:30Z	2024-05-24T20:13:17Z	"When creating a 2-column gallery in the block editor, the preview HTML looks like this:

{{{
<figure class=""wp-block-gallery has-nested-images columns-2 is-cropped wp-block-gallery-1 is-layout-flex"">
}}}

And unfortunately, the Twenty Fifteen stylesheets have no mention of {{{columns-2}}} nor {{{is-layout-flex}}}.

I looked in {{{twentytwentyone/style.css}}} and couldn't find those class names listed there either.

Clearly, this can't work.  Am I looking in the right place for the implementation?

One of the search results that came up dicussed implementing {{{is-layout-flex}}} which seems like a bad experience and non-implementation.  https://wordpress.org/support/topic/gallery-not-displayed-in-columns/

First tested on v6.2.5 with a child theme of Twenty Fifteen v3.7."	miqrogroove
1	58507	GitHub actions are failing		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-06-10T20:45:46Z	2023-06-10T20:58:12Z	"GitHub actions are failing due to the following error:


{{{
  - Installing squizlabs/php_codesniffer (3.6.0): Extracting archive

                                                                                                                                                                                                         
  [Composer\Plugin\PluginBlockedException]                                                                                                                                                               
  dealerdirect/phpcodesniffer-composer-installer contains a Composer plugin which is blocked by your allow-plugins config. You may add it to the list if you consider it safe.                           
  You can run ""composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer [true|false]"" to enable it (true) or disable it explicitly and suppress this exception (false)  
  See https://getcomposer.org/allow-plugins   
}}}
"	h71
1	59546	Gutenberg invalid json due to UTF-8 character E2 80 AF		General	6.3.2	normal	normal	Awaiting Review	defect (bug)	new		2023-10-05T10:02:37Z	2023-10-05T15:20:01Z	"I just inserted a text on a page, hit publish and was getting an error, which states, that the response is not a valid JSON response.

Further Inspection showed, that this error is occuring, if the text has the following char in it: 


{{{
U+202F	 	e2 80 af	NARROW NO-BREAK SPACE
}}}


Here is the plain text, the char is occuring betwenn ""auszuwerten"" and ""oder""


{{{
<p>auszuwerten oder Werbung anzuzeigen.</p>
}}}

"	jungb
1	47419	If emojis or embeds JavaScript is not loaded, variable wp is undefined in the front-end.		General		normal	normal	Awaiting Review	defect (bug)	new		2019-05-28T16:42:09Z	2019-05-29T14:01:40Z	"In my plugin I am using wp.createElement in the front-end and using `wp_enqueue_scripts( 'wp-element' )` to load it. If emojis are disabled, the error ""uncaught reference error, variable wp not defined"" happens when trying to access wp.createElement. 

I could be wrong, but I think the problem is that if emojis are disabled, this line, which sets up the `wp` variable does not run. 

https://github.com/WordPress/WordPress/blob/master/wp-includes/js/wp-emoji.js#L290-L295

Related bugs:
* https://github.com/wp-media/wp-rocket/issues/1720
* https://github.com/CalderaWP/Caldera-Forms/issues/3141
* https://wordpress.org/support/topic/2-errors-in-console/"	Shelob9
1	48497	"If preformatted block contains ""<script>"" tag page would not save"		General	5.2.4	normal	normal	Awaiting Review	defect (bug)	new	close	2019-11-05T06:02:20Z	2026-08-13T15:22:55Z	"If preformatted block content contains ""<script>"" (with or without any attributes), saving page fails with an error ""Updating failed"".

This happens even with < and > are encoded:


{{{
<pre class=""wp-block-preformatted"">&lt;script&gt;</pre>
}}}
"	martynasma
1	60206	"Images not showing in ""Latest Posts"" block"		General		normal	normal	Awaiting Review	defect (bug)	new		2024-01-07T13:49:50Z	2024-01-16T03:35:40Z	"When using the ""Latest Posts"" block, images show in the editor but not in the published page. See [https://piscesclub.wordpress.com/] near the bottom, note no images. However, if using the editor, images show OK."	cpcusteve
1	62877	Inconsistent behaviour of redirect guess when page is private		General	6.7.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-01-28T15:27:02Z	2025-01-29T10:27:53Z	"I have a blog post with the name ""Events Cancelled Due To Coronavirus"" accessible at the URL ""/news/2020/03/30/events-cancelled-due-to-coronavirus/"". If I create a new page with the name ""Events"" and URL ""/events"" and set it to ""Private"", then ""/events"" redirects to the blog post ""/news/2020/03/30/events-cancelled-due-to-coronavirus/"". If I delete the page, the redirect does not happen.

The redirect guessing code appears to check `get_query_var( 'name' )` and in the case of the private events page, this value is populated with ""events"" whereas for a missing page or a request for the URL ""/even"", this is not the case."	jamieburchell
1	60308	Inconsistent return of urls / get_bloginfo() vs get_template_directory_uri()		General	6.4.2	normal	normal	Awaiting Review	defect (bug)	new		2024-01-20T11:07:32Z	2024-01-20T11:07:32Z	"It doesn't seem to happen in all server environments but on a WP instance hosted on IONOS (former 1&1) I get unexpected returns when using: `get_template_directory_uri()`


* I'm calling the page including `https:` and `www.` in the browser.
* I have `WP_HOME` and `WP_SITEURL` configured having the `www.` included.
* All urls relating to the page in the database have `www.` included.
* `wp-admin/options-general.php` shows the `www.` in both urls

When trying to load assets (js files) using `get_template_directory_uri()` to build the full url-path the `www.` is omitted. Due to crossdomain restrictions the files don't get loaded of course.

After looking at my configuration to find the error I might have done I found out that I get the domain with `www.` included when using `get_bloginfo('url')`.

`get_bloginfo('stylesheet_url')` on the other hand does not return `www.` in the url. That is unexpected to me.

{{{#!php
<?php
// returns no 'www.'
$get_template_directory_uri = get_template_directory_uri();
echo (""<p><code>get_template_directory_uri()</code>:<br>"" . $get_template_directory_uri . ""</p>"");

// returns 'www.'
$get_bloginfo_url = get_bloginfo('url');
echo (""<p><code>get_bloginfo('url')</code>:<br>"" . $get_bloginfo_url . ""</p>"");

// returns no 'www.'
$stylesheet_url = get_bloginfo('stylesheet_url');
echo (""<p><code>get_bloginfo('stylesheet_url')</code>:<br>"" . $stylesheet_url . ""</p>"");
}}}


Environment:
* WordPress 6.4.2 (latest the time of writing)
* all plugins deactivated
* PHP 8.1.27
"	luckyfella73
1	59428	"Incorrect ""Last modified"" date for posts other than publish or future status"		General		normal	normal	Awaiting Review	defect (bug)	new		2023-09-22T14:47:42Z	2023-09-22T14:47:42Z	"In the list table, the **Date** column displays the post date with the prefix:

- **Published** for published posts
- **Scheduled** for future posts
- **Last modified** for all other post statuses

In fact, the post creation date is still displayed after the **Last Modified** label.

To reproduce:
1. Open list of posts
2. Pick a post which was published a while ago, remember the date displayed
3. Change the post status (Draft or Pending Review)
4. In the list of posts, the date remains the same but the label say ""Last Modified""

Expected behaviour:
- The last modification date (based on `post_modified` field) is displayed

A significant consequence: when posts are ordered by Date column, the `post_date` field is used to order. If we display `post_modified` field content in the column, it might be confusing."	cadic
1	60172	Incorrect APP1 Exif Identifier Code		General		normal	normal	Awaiting Review	defect (bug)	new		2024-01-01T08:28:44Z	2024-01-02T07:05:08Z	"A warning is triggered in WordPress when trying to read EXIF data from images using the `exif_read_data function`. This issue is encountered in the image processing workflow, specifically in the `wp_read_image_metadata` function.

Stack trace is below:

/wp-admin/includes/image.php in wp_read_image_metadata at line 856
/wp-admin/includes/image.php in wp_create_image_subsizes at line 258
/wp-admin/includes/image.php in wp_generate_attachment_metadata at line 504
/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php in WC_Regenerate_Images::resize_and_return_image at line 402
/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php in WC_Regenerate_Images::maybe_resize_image at line 251

The error handling for the exif_read_data function should be reviewed to ensure that it gracefully handles scenarios where EXIF data is not formatted as expected."	ainsleyclark
1	62249	Investigate Theme JSON Data Caching Inconsistencies		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-10-17T21:41:13Z	2026-10-19T09:53:53Z	"== Summary ==

`get_merged_data()` gathers data from up to four sources and merges them together. All four of those sources are filterable, but they are not always responsive to the latest filters due to improper cache validation.

However, fixing it is not easy and may not be necessary - given that the invalidation has been improper for two years, and no major issues have been found.

== The Four Data Sources ==

* `get_core_data()`
  * Calls the `wp_theme_json_data_default` filter.
* `get_block_data()`
  * Calls the `wp_theme_json_data_blocks` filter.
* `get_theme_data()`
  * Calls the `wp_theme_json_data_theme` filter.
* `get_user_data()`
  * Calls the `wp_theme_json_data_user` filter.

== Lack of Invalidation ==

In these functions, there is no mechanism to detect a changing filter. The filter is used when calculating the cached value, and the filter is not used when detecting to invalidate. All 4 sources follow the same pattern. Here is an outline:

{{{
#!php
public static function get_core_data() {
    if ( null !== static::$core && static::has_same_registered_blocks( 'core' ) ) {
        return static::$core;
    }

    ...compute $config...
    $theme_json = apply_filters( 'wp_theme_json_data_default', new WP_Theme_JSON_Data( $config, 'default' ) );

    static::$core = $theme_json->get_theme_json();
    return static::$core
}
}}}

We invalidate when:
 * the registered blocks change
 * when someone explicitly calls `wp_clean_theme_json_cache()`

There is no invalidation when a filter is added or removed, or when a filter changes behavior.

== A caching bug can make it appear like invalidation is happening. ==

To test this out, let's set up a simple function that we can use as a filter:

{{{
#!php
	public function add_custom_duotone_default( $theme_json ) {
		$data = $theme_json->get_data();
		$data['settings']['color']['duotone']['special1'] = array(
			'name'   => 'Cool Duotone',
			'colors' => array( '#000000', '#7f7f7f' ),
			'slug'   => 'cool-duotone',
		);
		return new WP_Theme_JSON_Data( $data );
	}
}}}

And let's do the simplest unit test possible, calling the function before, adding the filter, calling the function again and checking that the data the filter added is there:

{{{
#!php
	public function test_core_data_filter_responsiveness_1() {
		wp_clean_theme_json_cache();

		$data1 = WP_Theme_JSON_Resolver::get_core_data();
		add_filter( 'wp_theme_json_data_default', array( $this, 'add_custom_duotone_default' ) );
		$final_data = WP_Theme_JSON_Resolver::get_core_data();

		// This test passes, making it appear the function is always responsive to the filter changing.
		$this->assertEquals(
			array(
				'name'   => 'Cool Duotone',
				'colors' => array( '#000000', '#7f7f7f' ),
				'slug'   => 'cool-duotone',
			),
			$final_data->get_settings()['color']['duotone']['special1'],
			'Default duotone should be added'
		);
	}
}}}

It passes! That certainly makes it look like the function invalidates its cache when a filter is added.

However, making the seemingly inconsequental change of adding one extra call to `::get_core_data()` causes the filter to not run:

{{{
#!php
	public function test_core_data_filter_responsiveness_2() {
		wp_clean_theme_json_cache();

		$data1 = WP_Theme_JSON_Resolver::get_core_data();
		$data2 = WP_Theme_JSON_Resolver::get_core_data();   // <--- ADDED THIS
		add_filter( 'wp_theme_json_data_default', array( $this, 'add_custom_duotone_default' ) );
		$final_data = WP_Theme_JSON_Resolver::get_core_data();

		// This test fails, revealing that the function is not responsive to the filter changing,
		// and the first test only passed because of a bug causing the second call of the function
		// to never be cached.
		$this->assertEquals(
			array(
				'name'   => 'Cool Duotone',
				'colors' => array( '#000000', '#7f7f7f' ),
				'slug'   => 'cool-duotone',
			),
			$final_data->get_settings()['color']['duotone']['special1'],
			'Default duotone should be added'
		);
	}
}}}

This test now fails. What's going on? It's identical to the previous one except one extra `$data2 = WP_Theme_JSON_Resolver::get_core_data();` is added before adding the filter.

The cause is: A bug in the caching logic causes the second call to the function to never be cached.

In unchanging conditions:
 * '''What you expect''': Call 1 to the function is computed, and calls 2 through N quickly return a cached value.
 * '''What actually happens''': Calls 1 and 2 to the function are computed, and calls 3 through N quickly return a cached value.

Because the most common unit test setup is to call the function once, make a change, and then call the function again, the bug of ""the second call is never cached"" can make it look like invalidation is happening when there isn't.

In fact, there is a `test_get_core_data()` test that makes sure a newly added filter is actually called. This is only passing because of the ""the second call is never cached"" bug, and it can be broken by adding one extra call during the setup phase.

Passing (currently on trunk):

{{{
#!php
	public function test_get_core_data( $should_fire_filter, $core_is_cached, $blocks_are_cached ) {
		wp_clean_theme_json_cache();

		// If should cache core, then fire the method to cache it before running the tests.
		if ( $core_is_cached ) {
			WP_Theme_JSON_Resolver::get_core_data();
		}
		...rest of test omitted...
    }
}}}

Will fail:

{{{
#!php
	public function test_get_core_data( $should_fire_filter, $core_is_cached, $blocks_are_cached ) {
		wp_clean_theme_json_cache();

		// If should cache core, then fire the method to cache it before running the tests.
		if ( $core_is_cached ) {
			WP_Theme_JSON_Resolver::get_core_data();
			WP_Theme_JSON_Resolver::get_core_data();
		}
		...rest of test omitted...
    }
}}}

== Mechanics of the Caching Bug ==

The root cause of the caching bug lies in the logic at the beginning of the `get_core_data()` function:

{{{
#!php
public static function get_core_data() {
    if ( null !== static::$core && static::has_same_registered_blocks( 'core' ) ) {
        return static::$core;
    }
    // ... rest of the function
}
}}}

This conditional statement is intended to return cached data if it exists and if the registered blocks haven't changed. However, the implementation has two issues:

1. **Short-circuiting of the logical AND operator (`&&`):**
   - In PHP, the `&&` operator uses short-circuit evaluation.
   - If `static::$core` is `null`, the second part of the condition (`static::has_same_registered_blocks('core')`) is never evaluated.

2. **Side effect in `has_same_registered_blocks()`:**
   - The `has_same_registered_blocks()` method updates the stored state of registered blocks as a side effect.
   - If this method isn't called due to short-circuiting, the stored state isn't updated.

Here's how this plays out:

1. First call:
   - `static::$core` is `null`, so `has_same_registered_blocks()` isn't called.
   - The function computes and caches the data.

2. Second call:
   - `static::$core` is not `null`, so `has_same_registered_blocks()` is called.
   - This updates the stored state of registered blocks.
   - The function recomputes and caches the data again.

3. Third and subsequent calls:
   - Both conditions are true, so cached data is returned.

This explains why the second call always recomputes the data, creating the illusion of proper invalidation in some test scenarios.

== Recap of Current Behavior and Its Implications ==

The `get_merged_data()` function, gathers data from four sources (`get_core_data()`, `get_block_data()`, `get_theme_data()`, and `get_user_data()`), each of which exhibits overeager caching behavior.

- The caching mechanism doesn't properly invalidate when filters change.
- The second call to these functions always recomputes data, sometimes creating an illusion of proper invalidation.
- `get_merged_data()` is an intensive function, consuming up to 10% of a request's time.
- The function scales poorly with the number of registered and rendered blocks, leading to O(m * n) complexity, even when the data-gathering functions return cached data.

{{{
#!php
public static function get_core_data() {
    if ( null !== static::$core && static::has_same_registered_blocks( 'core' ) ) {
        return static::$core;
    }
    // ... computation and caching logic
}
}}}

This pattern is repeated across all four data-gathering functions, leading to potential inconsistencies in theme and block data.

== Why It May Not Be a Critical Issue ==

Despite the caching behavior not being responsive to filter changes, it might not be a critical issue:

- This caching mechanism has been in place for two years without major reported issues.
- Filters are often used for static changes or additions to settings, usually applied during the setup process before rendering begins.
- There are few scenarios where theme settings would need to change dynamically during rendering. Block attributes typically handle dynamic behavior at the block level.
- The current caching strategy, while imperfect, fixed a performance regression that may be reintroduced if the filtered functions are called more often.

== Possible Solutions - The Documentation Approach ==

1. Acknowledge and document the current behavior:
   - Clearly state that theme filters are not always recomputed.
   - Explain when cache clearing occurs (e.g., at the beginning of the main render process).

2. Set expectations for filter usage:
   - Advise developers to register their filters before the main render process begins.
   - Discourage reliance on dynamic filter changes during rendering.

'''Pros:'''
- Minimal risk of introducing new bugs or performance regressions.
- Provides clarity for developers working with these functions.

'''Cons:'''
- Doesn't address the underlying technical limitations.
- May be seen as avoiding the problem rather than solving it.

== Possible Solutions - Filter Change Detection ==

Develop a subscription mechanism to detect changes in filter hooks:

{{{
#!php
class FilterChangeDetector {
    private static $filter_state = [];

    public static function record_filter_state( $hook_name ) {
        self::$filter_state[$hook_name] = self::get_filter_signature( $hook_name );
    }

    public static function has_filter_changed( $hook_name ) {
        $old_signature = self::$filter_state[$hook_name] ?? null;
        $new_signature = self::get_filter_signature( $hook_name );
        return $old_signature !== $new_signature;
    }

    private static function get_filter_signature( $hook_name ) {
        global $wp_filter;
        $hook = $wp_filter[ $hook_name ] ?? null;
        if ( empty( $hook ) ) {
            return '';
        }
        $signature = '';

        foreach ( $hook->callbacks as $priority => $callbacks ) {
            $signature .= $priority . ':';
            foreach ( $callbacks as $idx => $callback_data ) {
                $signature .= $idx . ',';
            }
            $signature .= '|';
        }

        return md5( $signature );
    }

    // Alternate
    private static function get_filter_signature_alt( $hook_name ) {
        global $wp_filter;
        return md5( serialize( $wp_filter[$hook_name] ?? null ) );
    }
}
}}}

'''Pros:'''
- Provides more accurate invalidation
- Maintains most performance benefits

'''Cons:'''
- Adds complexity to the codebase
- May still miss some dynamic changes

== Possible Solutions - Post-Cache Filtering ==

Move filtering outside of the caching mechanism:

{{{
#!php
public static function get_core_data() {
    if ( null !== static::$core && static::has_same_registered_blocks( 'core' ) ) {
        $data = static::$core;
    } else {
        // ... computation logic
        static::$core = $data;
    }
    return apply_filters( 'wp_theme_json_data_default', new WP_Theme_JSON_Data( $data, 'default' ) );
}
}}}

'''Pros:'''
- Ensures filters are always applied
- Simplifies caching logic

'''Cons:'''
- Performance impact
- May worsen scaling issues with registered blocks
  - Creating new WP_Theme_JSON_Data instances causes schema validation to occur which scales with registered blocks.

== Conclusion ==

So I've uncovered an interesting situation with the theme JSON caching; but it has been working for quite a while with no major issues.

One more thing: I think I know how to fix `has_same_registered_blocks()` to kill the caching bug and make it slightly faster. But... it would break some unit tests that are actually relying on the bug. So that's another thing to consider.

What do you all think? I'd love to hear your thoughts on:
  - Any real-world issues you've seen because of this
  - Which solution you like best (or if you have a different idea)
  - Whether we should tackle that `has_same_registered_blocks()` issue

Or any other ideas for the best way forward here.


== References ==

[54493] - From 2022, fixes performance regression, introducing caching inconsistency
"	mreishus
1	55083	Link alternativa title		General	5.9	normal	normal	Awaiting Review	defect (bug)	new		2022-02-04T21:03:25Z	2022-02-04T21:03:25Z	"When you put one internal link, no write the original title as alternative title, (message) (when you pass the mouse hover of the link)

Another problem is when you select one word in the text for make one link, the popup some times is how outside de screen.
I collapse the menu for watch it when is to much to the left.
Also sometimes appear to much to the right, below of the config post, etc
This depend if the word I want make one link is too much to the left or right.

If the word you want make one link is up you need to scroll inside the post up for watch the link.
And when you search for one link, you always need scroll for watch what are the links that appear in the search.

Something is wrong with the new update"	Guillermo77
1	55524	Menus listing alphabetized bug, Upload pages cleanup, and Hide the browsers.		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-04-04T14:43:24Z	2026-08-21T16:55:35Z	"I continuously see new wordpress versions be released without addressing some of these problems...

1.) The Menus listing in the customizer is alphabetized either by default or something else spesific, and I think in my opinion this is a bad bug. The list should be listed the way I write the configuration or menu details, etc. For example, the menu title Footer should not be listed above the menu title Header.

2.) The upload page for the theme upland and the plugin upload, they both seem to function a little bit different visually. It would be a good idea to clean this up a bit so it looks more seamless.

3.) Feature request, ability to hide or disable completely the theme and plugin browsers. So then when disabled the only thing displayed would be the upload button for theme / plugin. I tried a partial disable with php exit script and this functions partly but looks visually bad so I think having a real filter or disable option would be great."	akissz
1	60849	Meta is saved twice in auto-draft mode		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-03-27T06:02:24Z	2024-03-28T02:35:17Z	"Steps to reproduce the bug:
    1. Go to Add new page for any post type.
    2. Add the first custom field (can be new or existing) » Click Add Custom Field
    3. Add a second custom field (can be new or existing) » optionally click Add Custom Field
    4. Click Save/Update.
    5. Notice that the first custom field entered has been saved twice.
"	79mplus
1	44406	Mismatch in the default value of the optional replacement argument in do_action_deprecated(), apply_filters_deprecated() and _deprecated_hook()		General	4.6	normal	normal	Awaiting Review	defect (bug)	new		2018-06-20T03:22:56Z	2018-09-17T01:51:39Z	"There's a mismatch in the default value of the optional ''replacement'' argument in the functions {{{do_action_deprecated()}}}, {{{apply_filters_deprecated()}}}  and {{{_deprecated_hook()}}}.

We have:
{{{
function do_action_deprecated( ..., $replacement = false, ... ) { ... }

function apply_filters_deprecated( ..., $replacement = false, ... ) { ... }
}}}

but then on the other hand:

{{{
function _deprecated_hook( ..., $replacement = null, ... ) { ... }
}}}

containing a {{{! is_null( $replacement ) }}} check.

''How to fix:''

I think adjusting the private function {{{_deprecated_hook()}}}, could be a safer route, as it's not supposed to be used by plugins or themes. Either adjust the optional input value to {{{false}}}, or e.g. replace {{{! is_null( $replacement )}}} with  {{{! $replacement }}} to handle both.

''How to replicate - Example:''

{{{
add_action( 'init', function() {
    add_action( 'foo_action', 'foo_action_callback' );
    do_action_deprecated( 'foo_action', array( '123' ), '4.9' );
    remove_action( 'foo_action', 'foo_action_callback' );
} );

function foo_action_callback( $var ) {
}

}}}

''Actual message:
''
{{{
foo_action is deprecated since version 4.9! Use instead.

}}}

''Expected message:
''
{{{
foo_action is deprecated since version 4.9 with no alternative available.

}}}

Related ticket #10441 and changeset [37861]"	birgire
1	63528	Mouse scroll wheel scrolls whole Post while editing when attempting to scroll through autocomplete pop-up of internal Posts		General	6.8	normal	trivial	Awaiting Review	defect (bug)	new		2025-06-04T14:13:23Z	2025-06-05T13:35:45Z	"When editing or adding a Post, if you highlight Paragraph text to turn into a link, if you begin typing a term to autocomplete the link with an internal Post, the scroll wheel scrolls the whole page, instead of just the pop-up with links you can choose from. 

1. Navigate to dev site and create a Post
2. Add paragraph text and highlight
3. Select 'Link' and begin to type in search term to pull up internal Posts to reference as link
4. Use mouse scroll wheel to scroll through autocomplete items
5. Note that entire page scrolls

This has been replicated on multiple browsers by multiple users. "	kanopikat
1	63971	Multiple select elements associated with tables in the admin (filters, user role changes) lack visible, persistent labels	joedolson*	General		normal	normal	7.3	defect (bug)	accepted	has-patch	2025-09-14T21:39:26Z	2026-11-09T17:19:24Z	"Throughout the admin, there are select elements that have labels hidden with screen reader text and that rely on the default or first option in the select to provide a visible label.

Here is an example, filters for the posts table:

{{{
<div class=""alignleft actions"">
				<label for=""filter-by-date"" class=""screen-reader-text"">Filter by date</label>
		<select name=""m"" id=""filter-by-date"">
			<option selected=""selected"" value=""0"">All dates</option>
		<option value=""202508"">August 2025</option>
		</select>
		<label class=""screen-reader-text"" for=""cat"">Filter by category</label><select name=""cat"" id=""cat"" class=""postform"">
	<option value=""0"">All Categories</option>
	<option class=""level-0"" value=""1"">Uncategorized</option>
</select>
<input type=""submit"" name=""filter_action"" id=""post-query-submit"" class=""button"" value=""Filter"">		</div>
}}}

[https://private-user-images.githubusercontent.com/13153456/489316152-9127bf2b-5112-4412-aaf8-e8bd9f808670.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTc4ODQ2MzcsIm5iZiI6MTc1Nzg4NDMzNywicGF0aCI6Ii8xMzE1MzQ1Ni80ODkzMTYxNTItOTEyN2JmMmItNTExMi00NDEyLWFhZjgtZThiZDlmODA4NjcwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA5MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwOTE0VDIxMTIxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJlYzBhYmYxMWZhZmIxMjYzNjRiMjc4YjAyNTU2ZDZlOGEyYTZlNzU2OTRmYWQzZWQwYmI2ODgzMTQ5NmMzMzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.4XjPhUl9Pd0j6RNRjS9_oGBSrhPjsQXlymtPScsM_SE See image of post filters missing visible lables.]

Other places that this technique has been used include:
* Bulk actions select
* Change user role select
* Media filters
* Comment filters

[https://www.w3.org/WAI/WCAG21/Understanding/labels-or-instructions.html WCAG 3.3.2: Labels or Instructions (Level A)] requires that labels or instructions be provided when content requires user input. This is generally interpreted to require visible and persistent labels.

In the current implementation, once a user has selected an option in the select, there is no longer a visible label for the select. It is posisble for users to link directly to filtered versions of these tables which would pre-fill the select with a date or category, for example, in which case any user following that link would not have access to the label for the select.

It is worth noting that to receive the accessibility-ready tag for a theme, we require all inputs and form fields to have visible and persistent labels. This technique in the admin would fail an accessibility ready review were it followed in a theme.

In addition, these fields also fail [https://www.w3.org/WAI/WCAG21/Understanding/label-in-name 2.5.3: Label in Name (Level A)], as the visible text for the first option (or any selected option) does not match the label. 

Example: The hidden accessible name for the date filter select is ""Filter by date"" and the visible text is ""All dates"" or any selected date, such as ""August 2025"". 

This mismatch between the visible text and the label would make it difficult for users who rely on voice control to interact with these fields.


The admin UI should be reworked so that selects have visible labels that don't rely on the default option in the select.
"	alh0319
1	49069	Multisite: 404 template isn't used in network installs when a file extension is used in the URL		General		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2019-12-23T15:31:00Z	2020-04-15T09:08:50Z	"The WordPress 404 template isn't used when certain URLs are visited. For example:

 - https://commons.gc.cuny.edu/sites/file.php
 - https://blogs.harvard.edu/file.php

Note this seems to happen in network installs only. I can't reproduce when using a single install."	henry.wright
1	59984	Need help to find out Paragraph block Deleting text		General	6.3	normal	major	Awaiting Review	defect (bug)	new		2023-11-29T09:18:45Z	2023-11-30T09:11:35Z	"Deleting text that has been bolded/Italic is not working as expected.

1. If the bolded text is selected with only part of the surrounding paragraph text, I am able to delete it.

2. If I select an entire paragraph containing bolded text, I am not able to delete it.

Issue found in WP 6.3 and Below till WP 6, But after updated to WP 6.4 working as expected, it means issue fixed in WP version 6.4 and above.

So I wanted to know the fix,  Because my website currently running WP 6.3 

"	dipankardipu
1	61263	Nested hook removal removes remaining hooks with higher priority		General		normal	normal	Awaiting Review	defect (bug)	new		2024-05-21T15:15:28Z	2024-05-21T15:15:28Z	"Hi there,

imagine the following nested hook code:

{{{#!php
<?php
add_action( 'wp_loaded', function() {
    var_dump(""loaded @ 1000"");
    exit();
}, 1000 );

add_action( 'wp_loaded', function() {
    var_dump(""loaded @ 999"");

    remove_all_actions( 'wp_loaded', 999 );
}, 999 );
}}}

What would the expected output be? I was expecting to see the ""loaded @ 999"" and the ""loaded @ 1000"" output followed by a break/exit. What actually happens is that there is only the ""loaded @ 999"" output print and nothing else. This seems to be related with the WP_Hook::resort_active_iterations() method which gets called right after removing a nested filter. It seems to be resetting the array keys of the priorities skips all the remaining, still registered filters when calling remove_filter(s) from inside a filter with the same priority as the current executed filter.

The example above doesn't make much sense as the wp_loaded hook is applied once per request only. There do exist other hooks that may be applied more than one time and therefor need to be cleared this way.
"	vendidero
1	56640	Notice error in WP_List_Util::pluck method at line 169		General	6.0.1	normal	normal	Awaiting Review	defect (bug)	new		2022-09-23T17:32:23Z	2022-09-27T16:03:24Z	"We are seeing intermittent notice errors in our error log:

{{{
PHP Notice:  Trying to access array offset on value of type null in /application/wp/wp-includes/class-wp-list-util.php on line 169
}}}

This is coming from the pluck method in this class on the 'else' portion of this code:

{{{
				if ( is_object( $value ) ) {
					$newlist[ $key ] = $value->$field;
				} else {
					$newlist[ $key ] = $value[ $field ];
				}
}}}

I don't know what is causing this error. Our site is large and complex and I haven't been able to ascertain a link that will generate this error reliably. 

However, it seems to me that this could be rewritten to be ""safer"". Something like this:

{{{
if ( is_object( $value ) && property_exists( $value, $field ) ) {
	$newlist[ $key ] = $value->$field;
} elseif( is_array( $value ) && array_key_exists( $field, $value ) ) {
	$newlist[ $key ] = $value[ $field ];
}
}}}
"	morriswanchuk
1	62407	PHP Notice: Undefined offset in WordPress core when using template registered in a plugin via register_block_template() in WordPress 6.7		General	6.7	normal	normal	Future Release	defect (bug)	new	has-patch	2024-11-13T11:14:49Z	2026-07-31T02:58:54Z	"Issue Description \\
With the release of WordPress 6.7, the register_block_template() function allows plugins to register block templates. While this functionality operates as intended, it triggers a PHP notice about an undefined offset within the WordPress core. \\ \\

Affected file: wp-includes/block-editor.php \\
Line: 467 \\
Code snippet: {{{#!php
<?php
$template_blocks    = parse_blocks( $current_template[0]->content );
}}} \\ \\

Cause of the Issue \\
The get_block_templates() function now returns an array with a mix of numerical keys and associative keys where the associative keys are the registered template IDs via plugin (e.g., 'my-plugin//my-template') instead of numerical keys.
The core code at block-editor.php line 467 expects $current_template to be a numerically indexed array.
When an associative key is encountered, it leads to a PHP notice: Notice: Undefined offset: 0 in /wp-includes/block-editor.php on line 467. \\
\\

Impact \\
PHP Notice: \\
Notice: Undefined offset: 0 in /wp-includes/block-editor.php on line 467 \\
\\ \\

Compatibility Issues: \\
Existing plugin code that relies on numerical keys within the templates array does not anticipate associative keys, potentially causing further functional discrepancies beyond the PHP notice.\\
\\
\\
Steps to Reproduce\\
\\
Environment Setup:\\
WordPress Version: 6.7\\
PHP Version: [PHP 7.4.33 (or higher)]\\
Active Theme: [Twenty Twenty-Five (the notice appears with other themes too)]\\
\\
Procedure:\\
Create a plugin that registers a block template using register_block_template().\\
{{{#!php
<?php
function add_template() {

	$template_id = 'my-plugin//my-template';
	$existing_template = get_block_template( $template_id );

	if ( $existing_template || is_wp_error( $existing_template ) ) {
		return;
	}

	$template_content =
		'<!-- wp:template-part {""slug"":""header""} /-->
		<!-- wp:post-content {""lock"":{""remove"":true}} /-->
		<!-- wp:template-part {""slug"":""footer""} /-->';

	register_block_template( $template_id, [
		'title' => __( 'Template title', 'my-plugin' ),
		'description' => __( 'Template description', 'my-plugin' ),
		'content' => $template_content,
		'post_types'  => array( 'page' ),
	] );
}
}}}
\\\\
Ensure DEBUG is set to true in wp-config.php to see the notice printed in HTML.\\
Navigate to Pages -> Add New Page. Assign newly created template to the page. Publish the page. Reload the editor page.\\
\\\\

Observation:\\
A PHP notice appears in the page HTML (it appears briefly in the editor and is better visible in browser developer tools when viewing the source HTML of the current page)\\

Notice: Undefined offset: 0 in /wp-includes/block-editor.php on line 467\\
And as additional result next PHP notice:\\
Trying to get property 'content' of non-object in /wp-includes/block-editor.php on line 467\\
\\
Expected Behavior\\
The WordPress core should handle templates registered via register_block_template() without triggering any PHP notices or errors. Specifically, the get_block_templates() function should return a numerically indexed array compatible with existing code expectations.\\
\\
Actual Behavior\\
A PHP notice about an undefined offset is displayed, indicating that get_block_templates() returns an associative array with template IDs as keys instead of a numerically indexed array. This discrepancy leads to compatibility issues with existing code that expects numerical keys."	Grigory Volochiy
1	61870	PHPCS Error found in bookmark.php		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-08-14T06:09:12Z	2024-08-14T06:24:27Z	"There is phpcs error in the bookmark.php file under wp-includes folder on line 36 and 365.

PHPCS : If control structure block found as the only statement within an ""else"" block. Use elseif instead."	dhruvang21
1	58707	Page looks fine, but after clicking to edit page, some text disappears, even after deactivating all plug-ins		General	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-07-04T02:10:13Z	2023-08-25T21:04:41Z	"My theme is Twenty Twenty-One.
Text after some footnotes seems to disappear in edit mode, but I have the same issue even after deactivating the footnote plug-in, as well as all other plug-ins.

This started happening after I upgraded to the latest version of WordPress. Before I upgraded, my site had quit working altogether. After I upgraded WordPress, my site came back, but the editing of pages is messing up, as described above."	avnerstein
1	39197	Page not found error on posts in different alphabets		General		normal	normal	Awaiting Review	defect (bug)	reopened		2016-12-09T09:48:07Z	2019-03-15T02:09:30Z	"Hi,

I have a question about the new WP 4.7. 

I noticed that the permalinks are not working well for languages that are using different alphabets (for example, cyrillic or arabic).

Before updating to 4.7, I was able to publish posts to my WP sites in Cyrillic, but now these posts are only visible in my Home page, but when I click on the title to open it, I'm sent to 'That page can't be found'. I still have one site that hasn't been updated to 4.7 and publishing posts in these alphabets are working fine.

Is this something that has to do with the recent changes in WP? 

Thanks in advance,

Arnela"	arnela
1	59273	Plugin: Create Block Theme Bug		General	6.3	normal	minor	Awaiting Review	defect (bug)	assigned		2023-09-03T18:40:57Z	2023-09-04T11:40:34Z	"I'm not sure where to file this bug. So please put it whereever it's relevant. 

When I use the Create Block Theme plugin with WP 6.3 and try to install a Google Font this error comes up:

""Error: `DISALLOW_FILE_EDIT` cannot be enabled in wp-config.php to make modifications to the theme using this plugin.""

I have tried to enable this in the wp_config.php, but this does not work. 

Adding fonts should be more easy in the theme. "	perthykjaerjensen
1	51582	Post type archive is loaded when post type does not allow		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-10-21T01:16:36Z	2020-10-21T01:26:45Z	"If a post type is registered with `'has_archive' = false`, it should not be possible to load an archive of its posts.

As per my testing, this can be fixed by unsetting `WP::query_vars['post_type']` when `WP::query_vars['name']` is empty and the post type does not allow archive."	manfcarlo
1	54851	Prevent unnecessary code comments from being output to the front end		General		normal	minor	Awaiting Review	defect (bug)	new		2022-01-18T13:01:39Z	2022-01-19T13:44:18Z	"Gutenberg's ""Post Comments"" block appears to pull its code from the WordPress' theme compat `comments.php` file here: 

https://github.com/WordPress/wordpress-develop/blob/a0b1f27de6c928fde51bbc7078b32ca9c9d6ed8d/src/wp-includes/theme-compat/comments.php#L30-L75

This includes some code comments that may be useful for developers, but don't actually need to be send to the front end:

[[Image(http://cldup.com/ebPNDuXdBe.png)]]

I'd suggest we change these from HTML comments to PHP comments, so they aren't visible in the outputted markup.


---

Related: https://github.com/WordPress/gutenberg/issues/37989

Tested with Gutenberg 12.4
WordPress 5.8.3"	kjellr
1	13779	Preview doesn’t work - WP installed in its own directory	SergeyBiryukov	General	2.9.2	normal	normal	Future Release	defect (bug)	reviewing	dev-feedback	2010-06-08T01:32:04Z	2022-07-13T17:21:56Z	"1.  Wordpress is installed on /wp/ subdirectory.

2. Then it was set up to be visible from the site root according to http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory  

3. Site works fine

4. [BUG] Preview for posts & pages isn’t working.  

When I press preview it goes to url like:  
http://example.com/?preview=true&preview_id=235&preview_nonce=aa28f04
and says ""You do not have permission to preview drafts."".

5. If I type subdirectory name “/wp/” in that url by hands, it shows correct preview:  http://example.com/wp/?preview=true&preview_id=235&preview_nonce=aa28f04

6. The situation is getting worse if i'm using permalinks. In that case - there is nothing i can do to see preview. 

ps: I’ve tested that on clean install. "	antares19
1	55336	Query strings with reserved characters get wrongly redirected to encoded variant at the root level.		General		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-03-08T09:18:23Z	2025-05-12T01:37:55Z	"The asterisk (""*"", ASCII 2A hex) and exclamation mark (""!"" , ASCII 21 hex) are reserved for use as having special significance within specific schemes. Source: https://www.w3.org/Addressing/URL/4_URI_Recommentations.html

More here: https://developers.google.com/maps/url-encoding

WordPress however, redirects to a URI encoded variant when the query string at the root level contains these reserved characters.

So, https://wordpress.org/plugins/?test=123*456 doesn't redirect.

While https://wordpress.org/?test=123*456 redirects to https://wordpress.org/?test=123%2A456.

This is quite problematic for all WordPress sites that use for example Google Analytics 4 (GA4) cross-domain tracking. GA4 relies on a query string containing asterisks. Source: https://support.google.com/analytics/answer/10071811?hl=en

"	madstegge
1	63776	RTL font family issue with server side render block component		General		normal	normal	Awaiting Review	defect (bug)	new		2025-08-01T05:45:43Z	2025-08-01T16:11:06Z	"RTL css loading font family upon using server side render component in gutenblock

{{{
.rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6 {
    font-family: initial;
    font-weight: 600;
}
}}}

which is overriding default font
"	pyrobd
1	42167	Reading -> Static Page - domain/page/1111 duplicates home page		General	4.8.2	normal	normal	Awaiting Review	defect (bug)	new	close	2017-10-10T13:59:18Z	2025-10-02T11:10:53Z	When I set a static page for Home, every url typing after domain with /page/<number> opens home page with http code 200. This is for all WP versions.	dqnisoma
1	18565	Scheduled or Published. Still confuses us.		General	3.2.1	normal	critical	Awaiting Review	defect (bug)	reopened		2011-09-01T08:26:21Z	2021-08-10T05:13:54Z	"It is impossible to move a post from Scheduled to Published.

Posts -> Edit - change Status to ""Published"" and Save -- nope, still Scheduled
Posts -> Quick Edit - change Status to ""Published"" and Save -- nope, still Scheduled

Posts -> Edit change Scheduled Time to less than one hour in the future -- doesn't publish
Posts -> Edit change Scheduled Time to more than an hour in the future -- posts on time.

This is repeatable on vanilla instances of WordPress 3.2.1 with no plugins.

The *ONLY* functional way to take a schedule post and make it Published right now is cut/paste to a new post."	jorhett
1	33141	Search form clear button is clipped in Safari (OS X)		General		low	minor	Awaiting Review	defect (bug)	new	has-patch	2015-07-27T15:06:53Z	2017-05-23T17:20:12Z	"Safari's search boxes have an ""X"" to clear the search terms. It is getting clipped. OS X.

The reason for this appears to be the padding on the search box, and that we're doing this:

{{{
input[type=""search""] {
	-webkit-appearance: textfield;
}
}}}

which we HAVE to do in Safari in order to control certain aspects of the display.

[[Image(https://cldup.com/J90Zt5PGQW-3000x3000.png)]]

There is a pseudo-selector we might be able to use to fix this:

`::-webkit-search-cancel-button {}`"	markjaquith
1	39977	"Search results for custom post type = ""ANY"""		General	4.7.2	normal	normal	Awaiting Review	defect (bug)	new		2017-02-27T20:58:56Z	2019-03-15T13:46:54Z	"There is a bug for search results query for post type ""ANY"", any returns only page and post. If we use:

{{{#!php
<?php
$args = array(
        's' => $s,
        'numberposts' => -1,
        'post_type' => array('post','page','gallery')
    );
$the_query = new WP_Query( $args );
}}}

Then works, also pre_get_post not working. 

Debug info from QM:


{{{
order	DESC
post_type	any
posts_per_page	10
s	Janis gallery
search_orderby_title	
Array
(
    [0] => wp_8b3200f070_posts.post_title LIKE '%Janis%'
    [1] => wp_8b3200f070_posts.post_title LIKE '%gallery%'
)
search_terms	
Array
(
    [0] => Janis
    [1] => gallery
)
}}}

If we use standart: 


{{{
<?php if (have_posts()) : while (have_posts()) : the_post();?>
}}}

Then custom post types is not showed on search results. "	foxsk8
1	55265	Setting colour in 5.9.1		General	5.9.1	normal	major	Awaiting Review	defect (bug)	new		2022-02-26T17:40:30Z	2022-04-27T07:59:39Z	"Hi! 
I have been used to changing the colour of text, headings and buttons by simply typing in the colour code; 043D06. This works on some things (advanced lists) but not on others (buttons, plain text, headings). I assume this is a glitch? 
The option to change colour is there, so is the colour wheel and what seems to be a typing box but there is no way of typing in the required code. The only way to change colour is to hover over the colour wheel - it is impossible to pick the precise colour needed in this way.
"	hicklingadmin
1	57825	Something's wrong with the way the 'admin_init' hook and/or the wp_update_post function works		General	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2023-02-28T19:54:51Z	2023-02-28T19:54:51Z	"Hi,

(I'm not sure what's happening here, so I left the Component dropdown with its default value.)

The issue in a nutshell: when hooked to `admin_init`, the below function's wp_update_post() call is executed even when the wrapper if-else statement evaluates to false, and it updates all `mac-submenus` post type entries' status to 'draft' regardless of the fact that the `$post_id` variable doesn't even have a value in this case.

I don't know how is this even possible, but it's happening - and if another admin hook is used ( for instance `in_admin_header` ), the function works perfectly, just as expected.

{{{#!php
<?php
function cpt_mac_submenus_create_delete_check_menu_items() {

	// Get all submenu posts
	$spq_Arr 			= array(
		'posts_per_page' 	=> -1,
		'post_type' 		=> 'mac-submenus',
		// We only check published submenu posts
		'post_status' 		=> array('publish'),
		'fields' 			=> 'ids',
	); 
	$submenu_post_ids_Arr 	= get_posts( $spq_Arr );

	// Get the custom item array of the menu associated with the 'primary_menu' location
	global $new_menu_Arr;

	// Get all menu items that are top-level and parent
	$parent_menu_items_Arr 		= mac_helper_search( 
		$new_menu_Arr, 
		'has_children', 
		true 			
	);
	$top_level_menu_items_Arr 	= mac_helper_search( 
		$new_menu_Arr, 
		'is_top_level', 
		true 			
	);
	$tlp_items_Arr 				= array_uintersect( 
									$parent_menu_items_Arr, 
									$top_level_menu_items_Arr,
									function( $val1, $val2 ) {
										return strcmp($val1['has_children'], $val2['has_children']);
									} 
								  );

	// Check if all 'mac-submenus' entries have their respective top-level & parent menu 
	// item in the menu associated with the 'primary_menu' location.
	// 
	// If a submenu entry DOESN'T have such corresponding menu item:
	// 		- check if it has a top-level BUT NOT PARENT corresponding menu item
	// 		- if it has, change the submenu post status to 'draft'
	// --------------------------------------------------------------------------------------------

	// 1. Get submenu posts having a corresponding top-level parent menu item. 
	$posts_with_tlp_Arr = array();	

	foreach ( $submenu_post_ids_Arr as $post_id ) :

		$post_has_tlp = false;
 
		foreach ( $tlp_items_Arr as $menu_item ) :

			$mi_title 	= html_entity_decode( $menu_item['title'] );
			$p_title 	= html_entity_decode( get_the_title( $post_id ) );

			if ( $mi_title == $p_title ) :

				$post_has_tlp = true;
				break;

			endif;

		endforeach;

		if ( $post_has_tlp )
			$posts_with_tlp_Arr[] = $post_id;

	endforeach;

	// 2. Get posts that don't have a corresponding top-level parent menu item, and
	// 	  change their status to 'draft';
	$posts_with_no_tlp_Arr = array_diff( $submenu_post_ids_Arr, $posts_with_tlp_Arr );

	if ( !empty($posts_with_no_tlp_Arr) ) :

		foreach( $posts_with_no_tlp_Arr as $post_id ) :

			$update_args_Arr = array(
		        'ID'    		=> $post_id,
		        'post_type' 	=> 'mac-submenus',
		        'post_status'   => 'draft',
			);
			wp_update_post( $update_args_Arr );				

		endforeach;

	endif;

}
add_action( 'admin_init', 'cpt_mac_submenus_create_delete_check_menu_items' );
}}}

I spent an hour with testing code variations, but couldn't find a problem with the above code or a fix of the issue."	lunule
1	63365	Sticky Posts Appear at the Top of Every Page in the Query Loop Block		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-04-28T12:18:02Z	2025-04-28T12:19:04Z	"See https://github.com/WordPress/gutenberg/issues/69867 (The author closed the issue, but I believe this is a valid bug that needs to be addressed.)

Steps to Reproduce

1. Create some regular posts and some sticky posts.
2. Add a Query Loop block to a page.
3. Visit the frontend of the page and navigate through different pages in the loop.
4. Observe that sticky posts appear at the top of every page.

[https://private-user-images.githubusercontent.com/82776409/432731711-a0853be6-0543-498e-8358-d936707b16d6.mp4?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDU4NDIzNzYsIm5iZiI6MTc0NTg0MjA3NiwicGF0aCI6Ii84Mjc3NjQwOS80MzI3MzE3MTEtYTA4NTNiZTYtMDU0My00OThlLTgzNTgtZDkzNjcwN2IxNmQ2Lm1wND9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA0MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNDI4VDEyMDc1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNlYzdlN2E3MzA1NDAyYWE0MDQwNjU0ZDU3OTY0YjYxNDJlZGQwM2E0MjdjNWFlYjM4ZDYxMDJhZjYwNWExZTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.FjBFR18hVGWlzKeL4XMi_mFdQn5gNqiieAQA_k8QqBQ Video]

Comment from the GB issue
https://github.com/WordPress/gutenberg/issues/69867#issuecomment-2796815674
> Sticky posts should be limited to the first page, or placed according to their natural order in the post listing. This is the standard and expected behavior from a user perspective. Repeating them on every page has no added value and negatively affects content discovery.
>
> Why it matters:
>
> Reduces content visibility: Newer/non-sticky posts are pushed further down on each page.

>Hurts usability: Users must scroll past the same content multiple times.
>Wastes space: The repeated sticky content adds no benefit beyond page 1."	karthikeya01
1	58015	Text over images not readable in Block: Cover Post		General	6.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-03-29T20:11:00Z	2026-01-19T08:39:27Z	Black-colored text over background images is not always readable. I have fixed CSS to make texts readable.	arafatjamil01
1	61461	The  pagination results in the Popular Plugins screen is broken		General		normal	normal	Awaiting Review	defect (bug)	new		2024-06-18T12:23:01Z	2024-07-11T15:05:19Z	"If we go to Add Plugins> Popular and select the last page which is 1534 (as of now), then if we start going back to previous pages from there like 1533. 15322, we can see that the result page remains the same.

Testing Environment
WordPress: 6.6-beta2-58392
PHP: 8.2.4
Server: Apache/2.4.56 (Win64) OpenSSL/1.1.1t PHP/8.2.4
Database: mysqli (Server: 10.4.28-MariaDB / Client: mysqlnd 8.2.4)
Browser: Chrome 109.0.0.0 (Windows 10/11)
Theme: Twenty Twenty-Four 1.1
MU-Plugins: None activated
Plugins:
WordPress Beta Tester 3.5.5

The issue is present in WordPress 6.5.4 also."	nithins53
1	40334	Trim siteurl and homeurl		General	4.7.3	normal	normal	Awaiting Review	defect (bug)	new		2017-04-01T19:20:34Z	2017-04-01T20:49:51Z	"I have seen some sites accidently put new line or space end of the '''siteurl''' and '''home''' in the '''wp_options'''
So whenever WordPress defines constants like '''WP_CONTENT_URL''' its not trimming the '''siteurl'''
''/wp-includes/default-constants.php''
{{{#!php
function wp_plugin_directory_constants() {
	if (!defined('WP_CONTENT_URL')) {
		define('WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
	}
}}}


If '''siteurl''' has the new line in the end and '''plugin_url()'''

gives the result as follow

{{{
https://example.com
/wp-content/plugins/myplugin/
}}}

As javascript is not supporting multiline string so it just broke my UI."	thamaraiselvam
1	60033	Twenty Fourteen : Quote block Typography option is not working properly		General		normal	normal	Awaiting Review	defect (bug)	new		2023-12-08T04:22:45Z	2023-12-14T15:04:29Z	"In Twenty Fourteen, The Quote block Typography option is not working properly. if we compare it with other themes when we change the typography size, the citation text changes but here nothing changes
Video Url- https://drive.google.com/file/d/1p_wEJwypktAOqQu34ZnwEI_At-4_UPEP/view?usp=sharing"	pranitdugad
1	62340	UI Overflow Issue on New Application Password Page		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-11-04T08:03:28Z	2024-11-05T08:41:57Z	"UI issue on the ""Authorize Application"" page where long application password names cause text overflow, breaking the layout."	anujrathore24
1	65431	URL generation fails when page/post titles contain emoji or unsupported special Unicode characters		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-06-07T00:11:43Z	2026-06-09T22:02:53Z	"Summary

When creating a post or page in WordPress, entering emoji characters or copying text that contains special Unicode characters into the title can result in an invalid or broken slug/URL.

Steps to Reproduce

1. Create a new post or page.
2. Enter a title containing emoji or special Unicode characters (for example: 🚀, 🎉, or copied text from external sources).
3. Publish the content.
4. Visit the generated permalink.

Expected Result

WordPress should safely sanitize unsupported characters and generate a valid, accessible URL without affecting page availability.

Actual Result

In some cases, the generated URL becomes malformed or inaccessible, which may cause the page to return an error, become unreachable, or create inconsistent permalink behavior.

Impact

This issue can affect users who copy titles from external sources or use emoji in titles. Since emoji and Unicode characters are commonly used today, WordPress should handle these cases more gracefully to prevent broken URLs and improve permalink reliability.

Suggestion

Consider adding additional validation and sanitization for emoji and unsupported Unicode characters during slug generation to ensure valid and stable URLs are always created.
"	trung855100
1	58398	"Unable to add blocks on WP 6.1 - ""+"" button does not work (it seems disabled)"		General	6.1	normal	normal	Awaiting Review	defect (bug)	new		2023-05-25T00:59:03Z	2023-05-30T15:14:54Z	I know that others have reported similar issues and some seem to be resolved - but not for me. I disabled all plugins and changed to the current theme but issue remains. Only if I roll back to 6.0.5 does the functionality return.	jawhalen
1	60418	Unwanted commented code		General	6.4.3	normal	normal	Awaiting Review	defect (bug)	new		2024-02-01T19:44:41Z	2025-05-12T01:38:17Z	"There are unwanted PHP commented code line showing when I update the wordpress theme. Test case: I have commented html code with PHP comment syntax in theme's functions.php file and then I start the theme to update on the ""Updates"" page. But when theme is updated, that commented code showing at top (Screenshot attached). I don't know it is a bug or not."	asgmehra
1	64121	Video media file is not aligned correctly in the classic editor TinyMCE		General	6.8.3	normal	normal	Awaiting Review	defect (bug)	new		2025-10-20T19:29:45Z	2025-10-22T15:38:39Z	"I use the [[https://wordpress.org/plugins/classic-editor/|Classic Editor]] plugin.

In the admin editor, when I select a video file, I don’t see any alignment controls like those available for images.

[[Image(https://i.ibb.co/5pSGm1r/c1.jpg)]]

However, although the video appears left-aligned in the editor by default, it’s correctly centered on the frontend.

[[Image(https://i.ibb.co/BHxTb1vS/c2.png)]]

Please add **alignment controls for video files**, similar to those for image media.
"	blackstar1991
1	46281	WP Query breaks if there are term_ids in tax_query are more than 192		General	5.0.3	normal	normal	Awaiting Review	defect (bug)	new		2019-02-19T16:30:06Z	2019-02-19T19:46:26Z	"Hello.
I have faced a very wired issue. I am using a WP_Query to get custom posts (more specific 'product') with a tax query of around 193 term_ids as array as NOT IN. The wired problem is that WordPress adds odd term_ids in the $query->request... It works great until I have 192 term_ids, but if I add more, the query gets wired and blocks everything.

I am attaching the args and the query on a txt file.

Check that I dont filter term_category 239 but you will see it in request"	Seldimi
1	62355	WP sets REQUEST_URI to an invalid value if it's not set		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-11-07T11:41:12Z	2024-12-30T09:36:27Z	"https://github.com/WordPress/wordpress-develop/blame/trunk/src/wp-includes/load.php#L39

This is invalid, since REQUEST_URI is always at least / and cannot be an empty string (you can test it, even for https://example.com it will be / - or read https://datatracker.ietf.org/doc/html/rfc3986, which shows it's possibly that it can be empty, but in that case PHP would not set the $_SERVER variable, therefore in context of PHP it's impossible it's an empty string for a valid request, unless someone incorrectly modifies it - like WP in this case)

This issue propagates e.g. https://github.com/WordPress/wordpress-develop/blame/trunk/src/wp-includes/load.php#L72 which then means we have an impossible ""?foo"" for example as request URI.

"	kkmuffme
1	44429	WP-CLI incompatibility with wp_redirect( https://... )		General		normal	major	Awaiting Review	defect (bug)	new	dev-feedback	2018-06-21T20:43:31Z	2018-07-24T12:28:57Z	"Hello,

My wordpress wouldn't update and I see errors below,
I also trying to update my site URL to include www to it but I can't change it due update failure.
{{{
Warning: The system could not load some of this WordPress installation’s data. Certain sections of this interface may not function correctly.
(XID nw85up) The system failed to run the wp-cli batch commands with the following issues: Warning: Some code is trying to do a URL redirect.
Backtrace:
#0 WP_CLI\Utils\wp_redirect_handler(https://)
#1 call_user_func_array(WP_CLI\Utils\wp_redirect_handler, Array ([0] => https://)) called at [/home/rsed43dqsw/public_html/wp-includes/class-wp-hook.php:288]
#2 WP_Hook->apply_filters(https://, Array ([0] => https://,[1] => 301)) called at [/home/rsed43dqsw/public_html/wp-includes/plugin.php:203]
#3 apply_filters(wp_redirect, https://, 301) called at [/home/rsed43dqsw/public_html/wp-includes/pluggable.php:1196]
#4 wp_redirect(https://, 301) called at [/home/rsed43dqsw/public_html/wp-content/plugins/force-https-littlebizzy/core/redirect.php:91]
#5 FHTTPS_Core_Redirect->redirect() called at [/home/rsed43dqsw/public_html/wp-content/plugins/force-https-littlebizzy/core/redirect.php:68]
#6 FHTTPS_Core_Redirect->start()
#7 call_user_func_array(Array ([0] => FHTTPS_Core_Redirect Object (),[1] => start), Array ([0] => )) called at [/home/rsed43dqsw/public_html/wp-includes/class-wp-hook.php:286]
#8 WP_Hook->apply_filters(, Array ([0] => )) called at [/home/rsed43dqsw/public_html/wp-includes/class-wp-hook.php:310]
#9 WP_Hook->do_action(Array ([0] => )) called at [/home/rsed43dqsw/public_html/wp-includes/plugin.php:453]
#10 do_action(plugins_loaded) called at [/home/rsed43dqsw/public_html/wp-settings.php:327]
#11 require(/home/rsed43dqsw/public_html/wp-settings.php) called at [phar:///usr/local/cpanel/3rdparty/share/wp-cli/wp-cli.phar/php/WP_CLI/Runner.php:1174]
#12 WP_CLI\Runner->load_wordpress() called at [phar:///usr/local/cpanel/3rdparty/share/wp-cli/wp-cli.phar/php/WP_CLI/Runner.php:1100]
#13 WP_CLI\Runner->start() called at [phar:///usr/local/cpanel/3rdparty/share/wp-cli/wp-cli.phar/php/WP_CLI/Bootstrap/LaunchRunner.php:23]
#14 WP_CLI\Bootstrap\LaunchRunner->process(WP_CLI\Bootstrap\BootstrapState Object ([] => Array ())) called at [phar:///usr/local/cpanel/3rdparty/share/wp-cli/wp-cli.phar/php/bootstrap.php:75]
#15 WP_CLI\bootstrap() called at [phar:///usr/local/cpanel/3rdparty/share/wp-cli/wp-cli.phar/php/wp-cli.php:23]
#16 include(phar:///usr/local/cpanel/3rdparty/share/wp-cli/wp-cli.phar/php/wp-cli.php) called at [phar:///usr/local/cpanel/3rdparty/share/wp-cli/wp-cli.phar/php/boot-phar.php:8]
#17 include(phar:///usr/local/cpanel/3rdparty/share/wp-cli/wp-cli.phar/php/boot-phar.php) called at [/usr/local/cpanel/3rdparty/share/wp-cli/wp-cli.phar:4]"	ecahost7
1	63522	Warnings related to get_queried_object returning null		General		low	minor	Awaiting Review	defect (bug)	new	has-patch	2025-06-04T01:57:36Z	2026-11-08T07:35:53Z	"Similar to #29660 and resolved for a lot of things in [54496], get_body_class() and wp_list_pages() throw many PHP warnings due to missing post objects when the request is singular, but no post is located.

These include in `get_body_class()`:
> E_WARNING: Attempt to read property ""ID"" on null in wp-includes/post-template.php:676
> E_WARNING: Attempt to read property ""post_type"" on null in wp-includes/post-template.php:677

and in `wp_list_pages()`:
> E_WARNING: Attempt to read property ""post_type"" on null in wp-includes/post-template.php:1356

and again in `feed_links_extra()`:
> E_WARNING: Attempt to read property ""comment_count"" on null in wp-includes/general-template.php:3351
> E_WARNING: Attempt to read property ""ID"" on null in wp-includes/general-template.php:3359
(although in this case, it's not get_queried_object(), just an expectation of `get_post(0)` working, which is effectively the same thing)

and finally, in `redirect_canonical()`, when the permalink to a post can't be found:
> Warning: Undefined array key ""scheme"" in wp-includes/canonical.php on line 752
> Warning: Undefined array key ""host"" in wp-includes/canonical.php on line xxx"	dd32
1	65040	"WordPress Paragraph block throwing ""Block contains unexpected or invalid content"" error inconsistently on brand new blocks in WordPress 6.9.4"		General	6.9.4	normal	major	Awaiting Review	defect (bug)	new		2026-04-08T15:08:38Z	2026-04-08T15:08:38Z	"I am experiencing a consistent but inconsistently triggered validation error on WordPress Paragraph blocks in WordPress 6.9.4 with automatic updates enabled.


Brand new WordPress Paragraph blocks are triggering ""Block contains unexpected or invalid content"" errors under WordPress 6.9.4.  The build structure is a container block housing a GenerateBlocks image block with a separate container block directly underneath containing the Paragraph block used as a caption text centered in bold text and this Paragraph block is where the validator error is occurring unevenly applied meaning it’s not rejecting every single container block within the new build area in this years old post I’m re-building.

The critical diagnostic detail: the error fires randomly across newly created blocks only not the original block farther down the page.  Every single item is built inside the identical block structure I detailed above.  I’m rebuilding this post taking it from one rather GIANT/TALL container block housing the content into a series of multiple container blocks so the underlying page structure is leaner and will render even faster for website visitors.  So, there’s the old (original content) below in that older very tall container block and brand new container blocks at the top of the post.  Each new container block up above is from scratch nothing is copied from down below. Same block type and build structure, identical formatting, same build process every time — yet the validator accepts some and rejects others inconsistently. A plugin conflict would produce consistent errors. This does not.

Clicking ""Attempt Recovery"" is destructive — it strips all formatting and content below the first line of my caption. It is not a viable solution and the other two options take me from bad to worse territory so all three in this instance are dead on arrival.

This is not a GeneratePress Premium theme or GenerateBlocks Pro issue. The error is on the WordPress core Paragraph block.

What I’m running building on:  WordPress version 6.9.4, GeneratePress Premium theme version 2.5.5, GenerateBlocks Pro version 2.5.0.
"	playagroup
1	54568	WordPress admin overwrite JS history.state		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-12-03T12:44:22Z	2024-04-10T08:41:43Z	"WordPress admin is injecting a piece of javascript at runtime (https://developer.wordpress.org/reference/functions/wp_admin_canonical_url/) that prevent accessing history.state. This is annoying because you cannot use {{{history.pushState()}}} and {{{history.replaceState()}}} functions properly in javascript.

Reproduce the bug:
1. Navigate to any wp admin page and open the browser developer console
2. Enter {{{window.history.replaceState({name: ""hello""}, null)}}} in console
3. Navigate to any other page
4. Go back and enter {{{history.state // result -> null}}}

Problem:
The code overwrites any history.state with {{{null}}} value: 
{{{
window.history.replaceState( null, null, document.getElementById( 'wp-admin-canonical' ).href + window.location.hash );
}}}

Solution:
Replace {{{null}}} value by {{{window.history.state}}} (which also default to null):
{{{
window.history.replaceState( window.history.state, null, document.getElementById( 'wp-admin-canonical' ).href + window.location.hash );
}}}

The fix is very easy and has no side effect."	maximeschoeni
1	63929	WordPress sitemap not indexing correctly when custom post types are used		General		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2025-09-04T16:37:05Z	2025-09-15T11:14:00Z	"While testing WordPress 6.6 on a live environment, I noticed that the sitemap generated via wp-sitemap.xml is not indexing custom post types correctly.

Steps to reproduce:

Install a fresh WordPress 6.6 setup.

Register a custom post type (e.g., [cement_price]cementsprice.coms) via register_post_type().

Publish at least 10 posts under this custom post type.

Visit the sitemap (/wp-sitemap.xml).

Expected result:
All published custom post type entries should appear in the sitemap.

Actual result:
Some custom post type entries are missing from the sitemap, even when published.

Example Environment:
This issue was first noticed on https://cementsprice.com/
 while running tests on cement price listings. The environment is:

WordPress 6.6

PHP 8.1

Nginx 1.22

No caching plugins enabled

Additional Notes:
Deactivating all plugins and switching to the Twenty Twenty-Five theme does not resolve the issue. It looks like the core wp_sitemaps_get_server() function might not properly register custom post types in all cases.

Type: defect (bug)
Severity: normal
Version: 6.6
Component: General
Contributor Focuses: rest-api, performance, seo"	abbuabbu
1	59088	WordPress6.3 has a cookie		General	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-08-13T02:21:56Z	2023-08-14T00:54:29Z	Wordpress6.3 has a cookie in homepage, but in previous WordPress version no any cookie in homepage, please check it in chrome. Can you please check it? Many thanks 	thejimjim
1	43665	XHR requests disregard the WP_DEBUG_DISPLAY flag		General		normal	normal	Awaiting Review	defect (bug)	new		2018-03-30T09:34:01Z	2018-03-30T10:41:17Z	"Within `wp-includes/load.php` and the `wp_debug_mode()` method it does

{{{#!php
<?php
if ( defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) || ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) || wp_doing_ajax() ) {
        @ini_set( 'display_errors', 0 );
}
}}}

This then turns off the rendering of PHP issues.

This makes it very problematic when actively developing ajax endpoints via `admin-ajax.php` as you have to keep turning them back on.

It seems that it should at least appreciate the `WP_DEBUG_DISPLAY` constant

Is this something we could look at getting addressed?"	OwenMelbz
1	64523	_do_query needs exception processing in class-wpdb.php		General	6.9	normal	normal	Awaiting Review	defect (bug)	new	needs-unit-tests	2026-01-16T21:40:38Z	2026-01-23T05:36:40Z	"When some plugins are loaded with error handling other plugins create exceptions with ex. ""DESCRIBE"" statements for tables that do not exist and an exception occurs, but does not when plugin is not loaded. Happens with Litespeed or most cache plugins and BotBanish.

**Original Code**

{{{#!php
<?php


	private function _do_query( $query ) {
		if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
			$this->timer_start();
		}

		if ( ! empty( $this->dbh ) ) {
			$this->result = mysqli_query( $this->dbh, $query );
		}

		++$this->num_queries;

		if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
			$this->log_query(
				$query,
				$this->timer_stop(),
				$this->get_caller(),
				$this->time_start,
				array()
			);
		}
	}
}}}


**Should be something like**

{{{#!php
<?php


	private function _do_query( $query ) {
		if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
			$this->timer_start();
		}

**		if ( ! empty( $this->dbh ) ) {

                   try {
			$this->result = mysqli_query( $this->dbh, $query );

                   } catch (Exception $f) {

                     // process exception here...
                   }

		}**

		++$this->num_queries;

		if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
			$this->log_query(
				$query,
				$this->timer_stop(),
				$this->get_caller(),
				$this->time_start,
				array()
			);
		}
	}
}}}"	randem06
1	63284	_prime_post_caches is getting called unchunked	joemcgill	General	6.7.2	normal	major	Awaiting Review	defect (bug)	reviewing		2025-04-15T17:24:15Z	2025-04-16T00:18:22Z	"I setup a local environment where I can reliably reproduce this issue.  The local environment has just two plugins active: Query Monitor and Redis Object Cache.  I also stripped away all of my functions.php except for registering my custom post types.  This environment has 16,000+ ""Article"" post types.

Steps to reproduce:
1. Navigate to the Article index on wp-admin (/wp-admin/edit.php?post_type=article)
2. Open Query Monitor -> Database Queries -> Slow Queries
3. Observe query for SELECT wp_posts.* FROM wp_posts WHERE ID IN (~16,000 individually listed IDs here)
4. If you do not see the giant query on Step 3, use the Object Cache-> Flush Cache tool provided by the Redis Object Cache toolbar at the top of the page.
5. Refresh the page and observe the query described in step 3.

[[Image(https://i.imgur.com/qZUpt9S.png)]]"	ckeeney
1	64118	`WP_Block_Type::render` doesn’t pass block instance argument to render_callback		General		normal	normal	Awaiting Review	defect (bug)	new		2025-10-20T13:21:14Z	2025-10-22T15:38:38Z	"The `WP_Block_Type` class has a `render` method that allows rendering an instance of a dynamic block, without actually creating a `WP_Block` instance. This can be used e.g. in combination with `WP_Block_Registry` to render an instance of a block whose name and attributes are known:

{{{#!php
$block_type = WP_Block_Type_Registry::get_instance()->get_registered( 'core/some-block' );
$output     = $block_type->render( array( 'someAttribute' => $attribute_value ) );
}}}

Internally, `WP_Block_Type::render` [https://github.com/WordPress/wordpress-develop/blob/f6cf8fae73d98c29d51d7c70a687211f8dd7f6dc/src/wp-includes/class-wp-block-type.php#L473 calls the block type's `render_callback`]:

{{{#!php
return (string) call_user_func( $this->render_callback, $attributes, $content );
}}}

However, a block's `render_callback` can include a third argument: a `WP_Block` instance. The latter is [https://github.com/WordPress/wordpress-develop/blob/f6cf8fae73d98c29d51d7c70a687211f8dd7f6dc/src/wp-includes/class-wp-block.php#L599 passed to the callback] when invoked from `WP_Block::render`:

{{{#!php
$block_content = (string) call_user_func( $this->block_type->render_callback, $this->attributes, $block_content, $this );
}}}

This means that for a dynamic block whose render callback expects three arguments (including the `WP_Block` instance), calling `WP_Block_Type::render` will fail, since it does not pass the latter.

---

An instance of this problem was observed and [https://wordpress.slack.com/archives/C02QB2JS7/p1760962525905939 reported] by @ellatrix while preparing the [https://github.com/WordPress/wordpress-develop/pull/10355 package sync PR] for WordPress 6.9. It was caused by unit tests that created block markup for the synced pattern block (`core/block`). She [https://github.com/WordPress/wordpress-develop/pull/10355/commits/c4b7eb739d44bc0068c7c99eadb69e50ea3fdd00 fixed it by changing the tests] to create an actual `WP_Block` instance."	Bernhard Reiter
1	54192	`get_header_image_tag` doesn't add `srcset`/`sizes`		General		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-09-27T16:38:57Z	2025-01-04T04:25:49Z	"Currently the `get_header_image_tag` method (and all other methods calling it like `the_custom_header_markup` and `get_custom_header_markup`) outputs an `<img>` without `srcset` and `sizes` attributes.

This is important for header images that are normally quite large.

The custom header image method doesn't use the normal WordPress `wp_get_attachment_image` method for outputting the actual `<img>`, instead it constructs the `<img>` markup with its own code.


Related issue: https://core.trac.wordpress.org/ticket/46134#comment:6"	strarsis
1	48425	`wp_is_mobile()` doesn't detect iPad Safari anymore		General		normal	normal	Awaiting Review	defect (bug)	new		2019-10-24T16:32:48Z	2019-10-24T22:19:48Z	With iOS 13.1.3 (at least) `wp_is_mobile()` doesn't detect Safari on iPad anymore, `$_SERVER['HTTP_USER_AGENT']` returns now exactly the same result you get on desktop.	manuelmasia
1	63462	add_query_arg() should handle encoded input URLs		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-05-20T01:46:04Z	2025-05-20T04:07:34Z	"When passing an already encoded URL to add_query_arg, it will make existing query args after # to be an anchor.
Since add_query_arg expects URL encoded params for key/value, people often assume this is the case for the URL too - that results in an unexpected result though.
Especially since it says:
>Values are expected to be encoded appropriately with urlencode() or rawurlencode().

and
>$value Optional. Either a query variable value, **or a URL** to act upon.

{{{#!php
<?php
echo add_query_arg('foo', 'bar', '/wp-admin/admin.php?page=hello&#038;tab=world&#038;abc=xyz' );
}}}


will result in

{{{
'/wp-admin/admin.php?page=hello&foo=bar#038;tab=world&#038;abc=xyz'
}}}

I guess add_query_arg should either add a ""doing it wrong"" when passing an encoded URL or automatically, correctly handle encoded URLs."	kkmuffme
1	60212	apply_filters_deprecated() should tell the caller location		General		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-01-09T12:57:09Z	2024-01-12T09:27:30Z	"When calling this inside a plugin:
{{{#!php
add_filter( 'contextual_help_list', function( $a ) { return $a; } );
}}}

We get:
* **Deprecated:** Hook contextual_help_list is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead. in **/www/public/wp-includes/functions.php** on line **6033**

This points directly to the `trigger_error()` call inside function `wp_trigger_error()`, which isn't useful in resolving the deprecation issue.

It'd be helpful to assert the location of the deprecated filter call."	Cybr
1	56905	css media query issue		General	6.0.3	normal	trivial	Awaiting Review	defect (bug)	new	reporter-feedback	2022-10-25T13:24:22Z	2022-10-25T16:29:28Z	"The media queries used for the responsivness for mobile use a max-width of 767px and the min-width for the tablet one is 768px. However max-width is exclusiv so when the screen is exactly 767px you are neither in mobile or tablet mode.

Unfortunately, when i put a window in half screen mode it is precisely 767px so this number is not that odd and other user could experience the same issue.

(Tested on wordpress 6.0.3 and google chrome)"	damien4444
1	61934	ctrl+shift+v - does not work in the editor		General	6.6.1	normal	critical	Awaiting Review	defect (bug)	new		2024-08-27T06:49:44Z	2025-05-12T01:38:40Z	"Hello!
The hotkey ""ctrl+shift+v"" (insert without formatting) has recently stopped working in the editor. 
Can you tell me if there are plans to fix this error? Because of this, it is impossible to use the editor normally now..."	philll1234
1	56679	"get_post_gallery_images() Does not return images if the gallery shortcode has type=""slideshow"""		General	6.0.2	normal	normal	Awaiting Review	defect (bug)	new		2022-09-28T15:47:58Z	2022-09-29T10:11:27Z	"Using does not return anything if the gallery shortcode includes ' type=""slideshow""' - removing the type allows it to work. But this means not being able to use slideshows for galleries."	MaFt
1	65921	get_test_opcode_cache() does not detect OPcache file cache		General		normal	normal	Awaiting Review	defect (bug)	new	close	2026-08-20T15:57:20Z	2026-08-20T18:18:55Z	"get_test_opcode_cache() uses opcache_get_status() to detect whether OPcache is active.

However, opcache_get_status() only reports the in-memory opcode cache. When using OPcache with only opcache.file_cache_only, the cache is therefore not correctly recognized.

As a result, tests relying on get_test_opcode_cache() may incorrectly assume that no opcode cache is enabled.

The function should also account for configurations where opcache.file_cache is enabled without the in-memory cache."	benniledl
1	57476	hash characters at start of wp post titles are stripped upon pasting		General	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2023-01-16T22:28:24Z	2023-02-02T13:14:54Z	"There is a bug in the latest version of WP 6.1.1.

When I paste a wordpress post title that has a # pound hash character as the first character, that character is stripped from the title upon pasting."	robinbrinkler
1	58188	is_user_logged_in can cause null pointer exception		General	2.0.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-04-24T20:20:27Z	2023-04-26T18:39:01Z	The `wp_get_current_user` has as documented return type a `WP_User` object. But it returns the result from `_wp_get_current_user` where the result can also be `0`. The problem is, that the `is_user_logged_in` function try to return `$user->exists()`. There should be a check like `0 !== $user`, `$user instanceof \WP_User` or something similar. 	preissdigital
1	58954	php 8.1 preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated		General	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-08-01T12:43:30Z	2025-01-08T16:43:21Z	"
Encountered when editing a page at /wp-admin/post.php?post=2&action=edit

On line 6811 of wp-includes/post.php

{{{
 $ext     = preg_replace( '/^.+?\.([^.]+)$/', '$1', $file );
}}}

I found a lot of these tickets on trac, but couldnt find any for this specific instance.
"	TwentyZeroTwo
1	59060	php-fpm7.4: time limit exceeded `Operation canceled' @ fatal/cache.c/GetImagePixelCache/1868.		General	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-08-10T19:35:17Z	2023-08-10T19:35:17Z	"Dear Devs!

We updated our site to WP 6.3, but still encounter this error in our logs:

{{{
php-fpm7.4: time limit exceeded `Operation canceled' @ fatal/cache.c/GetImagePixelCache/1868.
}}}

We had this error since WP 6.2 and updated to 6.3, but it seems WP 6.3 also has this bug. 

Warm regards,
Meder"	bakirov
1	57401	post-template.php fails to check if $elements['page'] is zero causing an array index error		General		normal	normal	Awaiting Review	defect (bug)	new		2022-12-29T17:20:43Z	2023-11-07T21:25:45Z	"This throws a warning:

Warning: Undefined array key -1 in /wp-includes/post-template.php on line 327

I'm not sure when this started showing up. I think it's happening in the handling scheduled posts.

Perhaps this is all that is needed?

326:         $page_no = $elements['page'] ? $elements['page'] : 1;
"	mjdewitt
1	61744	"preg_match fails when className when $block['attrs']['className'] is an array *which is case when ""extraClasses"" is set*"		General	6.6.1	normal	normal	Awaiting Review	defect (bug)	new		2024-07-24T16:08:37Z	2024-07-24T16:08:37Z	"extraClasses is not fount in wp-content, but in wp-includes

[24-Jul-2024 15:47:17 UTC] PHP Fatal error:  Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in wp-includes/block-supports/elements.php:248
Stack trace:
#0 wp-includes/block-supports/elements.php(248): 

[24-Jul-2024 15:47:45 UTC] PHP Fatal error:  Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in wp-includes/block-supports/block-style-variations.php:237
Stack trace:
#0 wp-includes/block-supports/block-style-variations.php(237): preg_match('/\\bis-style-(\\S...', Array, NULL)"	larslo
1	62675	register new pattern catogory possible docs bug		General		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-12-10T11:56:55Z	2025-01-02T10:55:13Z	"Hi,
in
https://developer.wordpress.org/themes/patterns/registering-patterns/#pattern-categories
the code to register a new pattern category does not work. Instead of ""themeslug/custom"" should be ""themeslug_custom"" both in functions.php  and pattern file.
functions.php
{{{#!php
<?php
add_action( 'init', 'themeslug_register_pattern_categories' );

function themeslug_register_pattern_categories() {
	register_block_pattern_category( 'themeslug_custom', array( 
		'label'       => __( 'Theme Name: Custom', 'themeslug' ),
		'description' => __( 'Custom patterns for Theme Name.', 'themeslug' )
	) );
}
}}}

pattern file:
{{{#!php
<?php
/**
 * Title: Hero
 * Slug: themeslug/hero
 * Categories: featured, themeslug_custom
 */
?>
<!-- Your block markup goes here. -->
}}}

Hope this is the right place (i did not find a bug document specific place)
Best regards."	backit
1	46321	"rel=""noopener noreferrer"""		General		normal	normal	Awaiting Review	defect (bug)	new		2019-02-22T14:59:08Z	2019-02-22T15:34:59Z	"It seems that version 5.1 adds noopener noreferrer to all links automatically. When i save blocks, they always crash beacause of this new feature. This happens, because when i save a block, it adds automatically rel=""noopener noreferrer"" to any of my a links. Then back in editor, the block breaks because the editor expects the rel value, but that value is no present.

in js console, i can see that the expected and actual difference is just missing the rel value. Funny is, when i check the differenc in editor mode with the diff tool, there is no difference. At this point, the rel value is added to all of the links."	berginformatik
1	31350	size_format() Displaying Incorrect Unit		General	4.1	normal	normal	Awaiting Review	defect (bug)	new		2015-02-16T19:32:10Z	2022-05-03T14:29:59Z	The `size_format()` function is using binary standards for displaying a human readable version of the file size, shouldn’t we use the IEC standard of KiB, MiB etc for the unit, or convert to SI and use 1000 instead of 1024 as the value of bytes in a kB etc (ref: http://en.wikipedia.org/wiki/Kilobyte)? It was even noted that it was technically incorrect in the comments of the function: https://core.trac.wordpress.org/browser/tags/4.1/src/wp-includes/functions.php#L194 (If we do fix it, we need to take into consideration the whitespace in front of the 'B ' fixed in: [31052])	brashell
1	52358	unable to update the price and stock in woocommerce after update		General		normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2021-01-25T11:54:59Z	2024-07-26T23:46:14Z	"after the update we are unable to update price and stock in woocommerce.
also we are unable to pubish any new page or update any of the old page..

"	spidersware
1	65681	using wp_is_mobile() with wp_head() does not allow insertion of tags		General	7.0.2	lowest	trivial	Awaiting Review	defect (bug)	new	close	2026-07-21T13:33:57Z	2026-07-22T16:52:54Z	"Using wp_is_mobile() as a condition for inserting tags with wp_head() does not work. For example, this code works as expected when added to functions.php:
{{{
        function mobile_test() {

        if ( wp_is_mobile() ) {
            echo 'mobile';
        }
        else {
            echo 'not mobile';
        }
    }
 
add_action('wp_head', 'mobile_test', 10);
}}}

But this code does not produce any output:
{{{
        function mobile_test() {

        if ( wp_is_mobile() ) {
            echo <mobile>;
        }
        else {
            echo <not mobile>;
        }
    }
    
add_action('wp_head', 'mobile_test', 10);
}}}

I have checked that it is not theme or plugin related. I'm pretty sure it used to work."	beachmat
1	65789	window.wp is vulnerable to DOM clobbering		General		normal	normal	Awaiting Review	defect (bug)	new		2026-08-02T10:28:12Z	2026-08-06T18:39:14Z	"(This was initially reported privately as a vulnerability but was rejected because it is theoretical with no real exploit.)

The window.wp object is defined like this in multiple JS files:
{{{
window.wp = window.wp || {}
}}}

This makes it vulnerable to DOM clobbering if an attacker can insert an HTML element with this ID:
{{{
<a id=""wp""></a>
}}}
Some browsers like Chrome will automatically create a window.wp variable that points to this HTML element.

It is also possible to clobber properties of the object like this:
{{{
<a id=""wp""></a><a id=""wp"" name=""api"" href=""clobbered""></a>
}}}

This will automatically create a window.wp.api property that points to this element.

The impact depends on how the website uses the wp object.
In most cases it will cause a broken feature (some JS code using window.wp will break unexpectedly because a property is not defined).
This could make a specific feature unusable.

In theory it could also lead to an XSS attack if some JS code uses a value from window.wp:
{{{
$(element).html('foo' + window.wp.customText);
}}}

An XSS payload could be injected like this:
{{{
<a id=""wp""></a><a id=""wp"" name=""customText"" href=""http://&lt;img src=x onerror=alert()&gt;""></a>
}}}
But I could not find any plugin doing something like this.

A solution would be to ensure that window.wp is always defined."	Rudloff
1	46780	wpColorPicker() close() method uses iris 'toggle' instead of 'hide' which can unexpectedly open the color pane		General	5.1	normal	minor	Awaiting Review	defect (bug)	new	has-patch	2019-04-03T07:09:04Z	2019-05-23T09:49:02Z	"Using the close() method, one would expect that the color picker will get closed anyway and that nothing else would happen, even if the picker in question was already closed. However, when calling the close() method on an already closed picker (e.g. when you call close() on a set of three pickers, where only 2 might be open), the color pane will get displayed.

While the close() method correctly will remove the wp-picker-open class and will set the aria-expanded attribute to false regardless, the actual iris picker is just using toggle: 
{{{
this.element.iris( 'toggle' );
}}}


Instead, it would be safer to use

{{{
this.element.iris( 'hide' );
}}}

which would also be more in line with how the class and attribute are handled."	maximus80
1	51855	wp_dropdown_categories allows multiple classes		General	2.8	normal	normal	Awaiting Review	defect (bug)	new		2020-11-23T20:50:26Z	2020-11-27T16:54:03Z	"The function wp_dropdown_categories() provides the argument for class in line with many other functions however it uses:
{{{#!php
$class    = esc_attr( $parsed_args['class'] );

}}}
Rather then then:
{{{#!php
sanitize_html_class( $class )
}}}
This means its not using the much more restrictive santization and is allowing multiple classes.
 "	tnash
1	44595	wp_insert_post() inserts wrong GUID (adds http:// prefix)		General		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2018-07-17T14:07:48Z	2018-07-17T19:36:41Z	"I manually set a GUID to e.g. `abc123` before calling `wp_insert_post()` and it was inserted as `http://abc123` to the database.

Expected: `abc123`"	Looimaster
1	65870	wp_is_stream() should align with PHP stream handler matching	jonsurrell*	General	3.5	normal	normal	7.3	defect (bug)	accepted	has-patch	2026-08-13T13:24:34Z	2026-11-05T16:33:56Z	"`wp_is_stream()` performs exact (case-sensitive) matching against the results of `stream_get_wrappers()`. This differs from PHP, so PHP may handle some streams that `wp_is_stream()` reports as `false`.

When matching a scheme to a registered stream wrapper, [https://github.com/php/php-src/blob/4f98314668803036e61dede05d12ae44b20ff19d/main/streams/streams.c#L1874-L1894 PHP will check for an exact match, then check for a lower case match of the scheme against the registered stream wrappers.] This has been the behavior since [https://github.com/php/php-src/commit/4427552b604e6ae3ccf781f72450e0bfcbb9fd8e 4427552] which I believe shipped with PHP 5.2 and remains largely unchanged. `wp_is_stream()` fails to recognize some common streams if the scheme is not lowercase:

{{{#!php
<?php
foreach ( array( 'file', 'FILE', 'fIlE' ) as $scheme ) {
  $f = ""{$scheme}://"" . php_ini_loaded_file();
  echo ""{$f} / is_stream: "" . var_export( wp_is_stream( $f ), true ) . "" / strlen: "" . strlen( file_get_contents( $f ) ) . ""\n"";
}
}}}

{{{
file:///internal/shared/php.ini / is_stream: true / strlen: 802
FILE:///internal/shared/php.ini / is_stream: false / strlen: 802
fIlE:///internal/shared/php.ini / is_stream: false / strlen: 802
}}}"	jonsurrell
1	66358	wp_json_encode() fallback ignores JsonSerializable::jsonSerialize()		General	4.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-21T13:26:07Z	2026-10-21T13:39:21Z	"When `json_encode()` fails, for example on a string that is not valid UTF-8, `wp_json_encode()` retries with the data passed through `_wp_json_sanity_check()`, which converts strings to UTF-8. That function does not use `JsonSerializable::jsonSerialize()`. It rebuilds each object from its public properties instead. An object that keeps its data in private properties is then encoded as `{}`.

{{{#!php
<?php
class Example implements JsonSerializable {
	private $data = array( 'kind' => 'serialized' );

	public function jsonSerialize(): array {
		return $this->data;
	}
}

echo wp_json_encode( array( 'object' => new Example() ) ), ""\n"";
echo wp_json_encode(
	array(
		'object' => new Example(),
		'text'   => ""caf\xE9"", // Not valid UTF-8.
	)
), ""\n"";
}}}

Output on trunk:

{{{
{""object"":{""kind"":""serialized""}}
{""object"":{},""text"":""caf?""}
}}}

In core, this affects `WP_Speculation_Rules`, whose rules are in a private property, and `WP_Secret`, which serializes to a mask. `WP_Interactivity_Dangerous_HTML` works around it with `getIterator()` ([64501], #66246), and `WP_Interactivity_API` documents the current behavior where it resolves bound objects (#65740).

The fallback has worked this way since `wp_json_encode()` was added in [30055]. #37856 looked at the same code and was closed in favor of #47699.

Proposed change: in the retry, use the value each `JsonSerializable` object serializes to, as `json_encode()` does, with its strings converted to UTF-8. Rebuild an object from its public properties, as now, only when its serialized value still cannot be encoded: it holds `INF`, `NAN` or a resource, its `jsonSerialize()` throws, or objects serialize to each other in a cycle. When the retry still fails as a whole, for example when the data is deeper than `$depth`, run the current fallback unchanged. Data that `json_encode()` encodes on the first try is not affected."	ekamran
1	57136	wp_list_pluck's key argument not working correctly when its zero		General	4.7	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-11-17T16:36:32Z	2026-09-23T07:59:52Z	"This is better explained with an example:
{{{
wp> var_dump( wp_list_pluck( [ [ 'key1', 'val1' ], [ 'key2', 'val2' ] ], 1, 0 ));
array(2) {
  [0]=>
  string(4) ""val1""
  [1]=>
  string(4) ""val2""
}
}}}

See the missing key?

If we try with array_column it works correctly:
{{{
wp> var_dump( array_column( [ [ 'key1', 'val1' ], [ 'key2', 'val2' ] ], 1, 0 ));
array(2) {
  [""key1""]=>
  string(4) ""val1""
  [""key2""]=>
  string(4) ""val2""
}
}}}"	dgwatkins
1	56025	wp_validate_boolean() not doing what it describes, causes issues with [video] shortcode		General	6.0	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-06-21T08:51:00Z	2025-09-22T15:05:09Z	"
== The function in question:

{{{
/**
* Filter/validate a variable as a boolean.
*
* Alternative to `filter_var( $var, FILTER_VALIDATE_BOOLEAN )`.
*
* @since 4.0.0
*
* @param mixed $var Boolean value to validate.
* @return bool Whether the value is validated.
*/
function wp_validate_boolean( $var ) {
    if ( is_bool( $var ) ) {
        return $var;
    }
 
    if ( is_string( $var ) && 'false' === strtolower( $var ) ) {
        return false;
    }
 
    return (bool) $var;
}
}}}


== Steps to recreate the issue:
Add the following shortcodes to a page:

{{{
[video src=""YOUR-SOURCE-HERE""]
[video src=""YOUR-SOURCE-HERE"" loop=""off""]
[video src=""YOUR-SOURCE-HERE"" loop=""0""]
[video src=""YOUR-SOURCE-HERE"" loop=""false""]
}}}

- The first shortcode works as intended, rendering a video on the frontend without the loop attribute.
- The second shortcode's <video> element will have the attribute {{{loop=""1""}}} despite the loop attribute being set to off.
- The third and fourth shortcode's <video> elements will **not** have the loop attribute set.


== Description:
wp_validate_boolean() says it 's an alternative to {{{ filter_var( $var, FILTER_VALIDATE_BOOLEAN ) }}}, however 
{{{filter_var( $var, FILTER_VALIDATE_BOOLEAN )}}} will return **FALSE** when you pass the string ""off"" whereas {{{wp_validate_boolean()}}} will return **TRUE** in this case.
(See this for the documentation for filter_validate_boolean: [https://www.w3schools.com/php/filter_validate_boolean.asp]).

Currently, {{{wp_validate_boolean()}}} only returns **FALSE** if the $var is a string and if it is === ""false"", or if the $var passed is the int 0.

This causes unexpected behaviour in the [video] shortcode. The documentation of the video shortcode ([https://wordpress.org/support/article/video-shortcode/]) mentions that the loop attribute needs to be either ""on""/""off"". Because they are strings {{{wp_validate_boolean()}}} will return **TRUE**, causing the loop attribute to always be added with a value of ""1"" unless you change the value of the attribute to be specifically the string ""false"", the int 0, or leave it completely empty.

The parsing of the attributes of the [video] shortcode happens here: ([https://github.com/WordPress/wordpress-develop/blob/6.0/src/wp-includes/media.php#L3322-L3344]).
As you can see on line 3340 it uses {{{wp_validate_boolean()}}} to get filter value of the loop attribute. Passing ""off"" here returns true, causing the loop attribute to always be added to the eventual HTML output later down the line with a value of ""1"".


== Potential fix:
- Change the working of {{{wp_validate_boolean()}}} to do as it says in its description. Make it smarter, and thus also return **FALSE** when the strings ""off"",""OFF"",""no"",""NO"", etc. are passed just like {{{filter_var( $var, FILTER_VALIDATE_BOOLEAN )}}} does (See this documentation link: [https://www.php.net/manual/en/function.filter-var.php#121263]).

- Change how the parsing of attributes happens in the [video] shortcode so that it also works as the documentation says: not adding certain attributes when they are set to ""off"". However there may be other instances where {{{wp_validate_boolean()}}} is used that I'm currently not aware of, so this would be more like a band-aid fix and similar issues may arise in the future.

"	arnodeleeuw
1	58346	A way for adding inline dynamic data		General		normal	normal	Awaiting Review	enhancement	new		2023-05-17T17:01:19Z	2024-09-06T20:32:01Z	"As the latest changes in 6.2.1 single, shortcodes might be slowly deprecated. Currently, shortcodes are the only way (that I'm aware of) for adding inline dynamic data (such as ACF field value) to block templates. I believe it is an essential functionality, that if deprecated, together with shortcodes, would leave a big functional gap.

If the intention is indeed to eventually deprecate shortcodes, I believe an alternative for adding inline dynamic data should be introduced before it happens."	asafm7
1	63796	Accidentally deleted Entire Menu and there’s no way to restore!!!		General		normal	normal	Awaiting Review	enhancement	new		2025-08-07T12:45:16Z	2026-07-15T20:31:00Z	"Hi, I’d like to suggest an UX improvement for the next update, because this is not the first time I accidentally remove the entire menu instead of just a menu item and it’s extremely frustrating!

For context: in some non-English languages a “menu item” is often referred to as just a “menu”, which makes it easy to make mistakes in the admin panel.

In the classic menu management, under Appearance > Menus, when I want to delete a new menu item that I added in error, because of the layout, it is too easy to click “Remove” menu by mistake, and by the time I realise that what I confirmed deletion of was NOT the menu item but the entire menu, it’s too late because there’s no way to undo/restore.

This problem occurs when one scrolls only half-way down to the menu item that needs removing (not completely to the bottom of the page) which can easily result in having the “Remove | Cancel” links of the menu item appear directly above the line with the “Save Menu” “Delete Menu” button+link that applies to the entire menu with all items in it. 

I would like to suggest to move “Delete Menu” (which deletes the entire menu including all its translations – and on some sites this could mean quite a lot of menus to restore manually!!) to the right of the screen, as far AWAY from the menu items as possible so that one can NEVER click on it by mistake unless they REALLY want to delete the entire menu!

If “Delete Menu” was further to the right, the worst that could happen by accident is clicking on “Save Menu” unintentionally, which just refreshes the page. 

This could save quite a lot of aggravation. 

Thank you in advance for considering.

Best regards"	webm
1	38223	Add indicators to off-site links in wp-admin		General		normal	normal	Awaiting Review	enhancement	new		2016-10-04T07:31:51Z	2020-03-16T18:10:46Z	"Now that `target=""_blank""` has been removed from links in the help tab on pages, off-site links will take the user away from their current screen.

While a fan of removing `_blank` links, we should set expectations for users, the tabs on one side open new panels, on the other side they take you to Codex articles on .org while still retaining a similar style.

I can see this as being a frustrating point for users who'd use the help tab and suddenly find them selves not only losing data from their forms etc that may not be fully filled in, but also taken to a completely new domain.

Introducing a new screen reader text alerting users to a link taking you to an external source, as well as an icon or similar for non-sr users would be good in regard to UX.
I believe the link icon of a box with an arrow going diagonally out of it has become a well established indicator of external links, we even have a [https://developer.wordpress.org/resource/dashicons/#external dashicon] ready for it"	Clorith
1	53868	Add option to `paginate_links` to apply format on all pages		General		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2021-08-03T11:26:08Z	2025-05-12T01:37:51Z	"`paginate_links` doesn't use the provided format when the page is `1`. This is great for the main query as it removes the extra query params making the URL shorter, but in the case of custom queries is problematic.

If no additional data is appended via. add args / add fragment, the string remains empty at the time of output, which browsers then default it to the current page URL.

The code for this behavior is this: `$link = str_replace( '%_%', 1 == $n ? '' : $args['format'], $args['base'] );`

My proposed solution is to add a new option in `paginate_links` that would enforce applying the `format` for all pages, including the first one."	ntsekouras
1	58442	Add parameters for the wp_get_archive function that allows to filter the archive for particular years and months.		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2023-06-02T09:00:49Z	2023-06-06T07:49:00Z	"Right now there is no way to get the monthly archive for particular year

{{{#!php
<?php

	// This is what will separate dates on weekly archive links.
	$archive_week_separator = '&#8211;';

	$sql_where = $wpdb->prepare( ""WHERE post_type = %s AND post_status = 'publish'"", $parsed_args['post_type'] );
}}}

In order to do that we have to use the filter to change the where clause as below.

{{{#!php
<?php
if ( ! empty( $parsed_args['in_year'] ) ) {
		$year       = absint( $parsed_args['in_year'] );
		$sql_where .= sprintf( ' AND YEAR(post_date) = %1$d', $year );
	}
	return $sql_where;
}}}

I am suggesting here to add optional argument that can filter the months for a particular year and weeks for particular month likewise.

"	sh4lin
1	53057	Added AJAX_DEBUG Constant for better ajax debugging		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-04-19T06:45:00Z	2021-04-23T15:09:16Z	"AJAX_DEBUG = true will added action as url parameter debug=AJAX_ACTION. This will help developers to filter out the ajax requests from Browser Developer Tools Network tab, without having to click every ajax request to check what it is for.

Its been bothering me a lot and i think it bothered lot or other developers too. for every ajax call I have to click on each request ( in case there are multiple network request listed ) and have to check the request data or the request parameters to figure out which is my request.

This will help developers to just use search filter from network tab for filtering out their own request or any other request he/she want to check.
"	parroty
1	66186	"After uploading a plugin zip, link to the Plugin settings instead of the ""Plugin Installer"""		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-09-25T17:14:29Z	2026-10-21T09:24:44Z	"After a plugin is installed by uploading a zip (Plugins > Add New Plugin > Upload Plugin), the result screen shows ""Activate Plugin"", and once that's done a ""Go to Plugin Installer"" link pointing to `plugin-install.php`.

Nobody who just uploaded a plugin needs the Plugin Installer next :)

They uploaded a zip, so they weren't browsing the directory. The useful place to go is the Plugin's settings page (?). 

""Go to Plugin Installer"" is the only way off the screen, and it goes to the wrong place.

=== History

Before [37221] (#35429, 4.6), uploads fell through to the default ""Return to Plugins page"" link. That changeset moved the upload form from its own page onto the Add Plugins screen and added a dedicated `'upload' === $this->type && 'plugins' === $from` branch pointing back to the installer. That branch seems to exist only to send users back to where the form now lives. Now that the upload form is a toggle on the installer screen, going back there has no purpose.

=== Proposed fix

Remove that branch from `Plugin_Installer_Skin::after()` so uploads use the existing `else` branch, ""Go to Plugins page"" (`plugins.php`).

Installs from the directory (`'web'`) keep ""Go to Plugin Installer"", since people often install several plugins in a row there. The importer flow is unchanged. There are no new strings, and sites can still change the link through the `install_plugin_complete_actions` filter.

Patch attached.

=== Testing instructions

 1. Go to Plugins > Add New Plugin > Upload Plugin and upload any valid plugin zip.
 2. On the result screen, confirm the secondary link reads ""Go to Plugins page"" and opens `plugins.php`.
 3. Install a plugin from the directory with JS disabled (`update.php?action=install-plugin`) and confirm it still shows ""Go to Plugin Installer"".

=== Related

 - #35429: moved the upload form onto the Add Plugins screen and introduced the installer link for uploads.
 - #60578: added the installer link to the upload error screen, a different case where the link makes sense.
 - #66184: same result screen, Activate button with unmet plugin dependencies.
 - #40651: finding plugin settings after activation, which would be the natural next step beyond this fix."	BusinessBloomer
1	53541	Arguments passed to load_template() should be extracted		General	5.8	normal	minor	Awaiting Review	enhancement	new	dev-feedback	2021-06-28T12:52:53Z	2021-06-28T16:24:41Z	"As was originally voiced in this thread when ability to pass arguments to templates was added in v5.5, these arguments should be extracted. As a plugin developer today, the new $args passing does provide as good an experience in terms of simplicity and documentation as the older method of passing query vars. This is because query vars are extracted. So if I'm building a plugin that has a product template and I want to render out $product variables, or pass an object in $product, then which would I prefer to offer to theme developers:

Use `$args['product']` to access the $product object. 

OR 

Use `$product` to access the product object. 

Clearly having the vars extracted makes them easier to access. Perhaps the objection to this is that aside from the exception made for query vars we normally try to avoiding using extract(). However in this case I think an exception is warranted. Otherwise the effort put into making argument passing available is somewhat wasted because plugin developers will likely prefer to use query vars simply because they are extracted automatically. 

Another potential way to enable this would be through an option argument passed to load_template (which would have to first go through locate_template() as well, and that would be $extract_args = false, or $extract_args = true. I'd opt for the later to set the default to extract, but just having that option would let developers control the naming of variables they make available in templates.

Reference to the announcement, argument passing in 5.5 https://make.wordpress.org/core/2020/07/17/passing-arguments-to-template-files-in-wordpress-5-5/

load_template() on trak: https://core.trac.wordpress.org/browser/tags/5.7.1/src/wp-includes/template.php#L709  "	caseymilne
1	63919	Block Bindings: Conditional rendering of HTML elements corresponding to block attrs		General		normal	normal	Future Release	enhancement	assigned		2025-09-03T15:06:32Z	2025-10-13T18:12:52Z	"An Image block will only include a `<figcaption>` HTML element in its saved markup if the block's `caption` attribute is not empty; the same applies to the Pullquote block's `citation` attribute, which corresponds to a `<cite>` element.

This poses a problem when adding Block Bindings support for those attributes, as the Block Bindings logic depends on the presence of those HTML elements in order to replace their inner HTML with the value obtained from the respective Block Bindings source.

One possible solution is to change the editor-side block logic so that includes those HTML elements whenever the corresponding attribute is bound to a Block Bindings source. This change needs to be made to the block JavaScript code, i.e. inside of Gutenberg.

This approach needs to be complemented by server-side logic that will remove those HTML elements prior to rendering if their value is empty. (E.g. if the Block Bindings source did not return a non-empty value for the given attribute after all.)"	Bernhard Reiter
1	43319	Bootstrap 4 Card issue in backend		General	4.9.1	normal	normal	Awaiting Review	enhancement	new		2018-02-14T16:35:15Z	2018-02-16T02:47:10Z	"Hello, 

While working in the back-end of WordPress, I noticed that a class of .card is being applied from forms.css which is located in wp-admin. Bootstrap 4 is coming out with cards in the next version. Right now I'm building a Card Builder for use at the CDC. This is causing issues with my card builder and we don't have a very good method of changing core wordpress files in our build process. Therefore, updates will be a nightmare. If the selector .card on line 766 of forms.css was scoped to have another selector in front of it, then we could avoid having to change WP core in our project. 

For the sake of having this issue pop up again later in the future I would advise prefixing .card in forms.css with form or something else to make it scoped differently. This will help avoid issues with Bootstrap 4 being brought into the back-end of WP. 

- Jim "	jimboobrien
1	62139	Broaden use of `addAdminNotice()`	joedolson*	General		normal	normal	Future Release	enhancement	accepted	has-patch	2024-09-30T16:59:48Z	2025-10-17T12:07:59Z	"#58479 added `addAdminNotice()` to `common.js` in order to display an on-demand notice with bulk editing. This function is largely duplicating `wp.updates.addAdminNotice()`, and `updates.js` has `common.js` as a dependency. 

We should abstract the new function and update `wp.updates.addAdminNotice()` to pass arguments into the new function. We'll then be able to use `addAdminNotice()` as a general mechanism in core to insert JS driven notices. 

See comments at https://core.trac.wordpress.org/ticket/58479#comment:42, see #57791 for PHP equivalent."	joedolson
1	60355	Can't save object to metadata  with `readonly` properties		General		low	major	Future Release	enhancement	new	needs-unit-tests	2024-01-26T15:45:41Z	2026-03-23T11:37:32Z	"If I have class with `readonly` property
{{{#!php
<?php
class Foo {
  __constructor(public readonly int $prop) {}
}}}

It throws an exception if you try to save it to medatata:

{{{#!php
update_metadata('post', 1, 'key', new Foo(1));
}}}

{{{#!php
Error:
Cannot modify readonly property App\Namespace\Foo::$prop

  at /var/www/html/web/wp/wp-includes/formatting.php:5148
  at map_deep(object(Foo), 'stripslashes_from_strings_only')
     (/var/www/html/web/wp/wp-includes/formatting.php:5148)
  at map_deep(object(Foo), 'stripslashes_from_strings_only')
     (/var/www/html/web/wp/wp-includes/formatting.php:5143)
  at map_deep(array(object(Foo), object(Foo), object(Foo)), 'stripslashes_from_strings_only')
     (/var/www/html/web/wp/wp-includes/formatting.php:2855)
  at stripslashes_deep(array(object(Foo), object(Foo), object(Foo)))
     (/var/www/html/web/wp/wp-includes/formatting.php:5804)
  at wp_unslash(array(object(Foo), object(Foo), object(Foo)))
     (/var/www/html/web/wp/wp-includes/meta.php:208)
  at update_metadata('post', 1, 'key', array(object(Foo), object(Foo), object(Foo)), '')
     (/var/www/html/web/wp/wp-includes/post.php:2558)
}}}

The issue cause in `map_deep` function since it tries to overwrite properties
{{{#!php
        $object_vars = get_object_vars( $value );
        foreach ( $object_vars as $property_name => $property_value ) {
            $value->$property_name = map_deep( $property_value, $callback ); // <---------
        }
}}}


"	Cawa-93
1	46484	Cleaning WP from any reference to php4		General		normal	normal	Future Release	enhancement	new	early	2019-03-13T17:17:50Z	2019-05-22T20:45:28Z	"I think the time as come !


[https://wordpress.org/news/2010/07/eol-for-php4-and-mysql4/ PHP 4 and MySQL 4 End of Life Announcement]
Posted July 23, 2010 by Mark Jaquith. Filed under Hosting.




{{{
wp51\wp-admin\includes\class-ftp.php
    281: // Validate the IPAddress PHP4 returns -1 for invalid, PHP5 false
wp51\wp-admin\includes\deprecated.php
    504: * PHP4 Constructor - Sets up the object properties.
wp51\wp-admin\includes\file.php
    201: 'php4',
    258: 'php4',
wp51\wp-includes\IXR\class-IXR-base64.php
     22: * PHP4 constructor.
wp51\wp-includes\IXR\class-IXR-client.php
     55: * PHP4 constructor.
wp51\wp-includes\IXR\class-IXR-clientmulticall.php
     22: * PHP4 constructor.
wp51\wp-includes\IXR\class-IXR-date.php
     32: * PHP4 constructor.
wp51\wp-includes\IXR\class-IXR-error.php
     24: * PHP4 constructor.
wp51\wp-includes\IXR\class-IXR-introspectionserver.php
     52: * PHP4 constructor.
wp51\wp-includes\IXR\class-IXR-message.php
     39: * PHP4 constructor.
wp51\wp-includes\IXR\class-IXR-request.php
     39: * PHP4 constructor.
wp51\wp-includes\IXR\class-IXR-server.php
     32: * PHP4 constructor.
wp51\wp-includes\IXR\class-IXR-value.php
     36: * PHP4 constructor.
wp51\wp-includes\pomo\entry.php
     67: * PHP4 constructor.
wp51\wp-includes\pomo\streams.php
     26: * PHP4 constructor.
    152: * PHP4 constructor.
    231: * PHP4 constructor.
    297: * PHP4 constructor.
    318: * PHP4 constructor.
wp51\wp-includes\Text\Diff\Renderer.php
     47: * PHP4 constructor.
wp51\wp-includes\Text\Diff.php
     59: * PHP4 constructor.
    339: * PHP4 constructor.
    398: * PHP4 constructor.
    430: * PHP4 constructor.
    462: * PHP4 constructor.
    494: * PHP4 constructor.
wp51\wp-includes\atomlib.php
    102: * PHP4 constructor.
wp51\wp-includes\cache.php
    740: * @todo This should be moved to the PHP4 style constructor, PHP5
wp51\wp-includes\class-json.php
    152: * PHP4 constructor.
    950: * PHP4 constructor.
wp51\wp-includes\class-phpass.php
     59: * PHP4 constructor.
wp51\wp-includes\class-phpmailer.php
   3558: 'php4'  => 'application/x-httpd-php',
wp51\wp-includes\class-pop3.php
     69: * PHP4 constructor.
    657: // For php4 compatibility
wp51\wp-includes\class-wp-widget.php
    177: * PHP4 constructor.
wp51\wp-includes\class-wp-widget-factory.php
     36: * PHP4 constructor.
wp51\wp-includes\functions.php
   4348: * remove PHP4 style constructors.
   4352: * This function is to be used in every PHP4 style constructor method that is deprecated.
wp51\wp-includes\general-template.php
   3437: case 'php4':
wp51\wp-includes\rss.php
    102: * PHP4 constructor.
    735: * PHP4 constructor.
}}}
"	arena
1	59432	Compliant with W3C coding standards		General	6.3.1	normal	minor	Awaiting Review	enhancement	new	has-patch	2023-09-23T08:04:02Z	2024-10-06T17:24:21Z	"When validating any WordPress site, warnings appear:
1. Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. Example: `<meta name='robots' content='noindex, nofollow'/>`
`<link rel=""alternate"" href=""https://samesite.com/"" hreflang=""en-US""/>`
Also in tags img, button etc
2. The type attribute for the style element is not needed and should be omitted.
Example: `<style id='global-styles-inline-css' type='text/css'>`
3.  The type attribute is unnecessary for JavaScript resources.
Example: `<script type='text/javascript' ...>`

A suggestion for improvement is to fix these warnings by removing attributes and symbols that are no longer needed. This will reduce the amount of code and relieve SEO optimizers from headaches)."	agypten
1	62848	Continuous requests for apple-touch-icon-precomposed.png returning 404		General	6.7.1	normal	minor	Awaiting Review	enhancement	new		2025-01-23T16:26:30Z	2025-01-23T16:26:30Z	"Good morning, as discussed [https://www.reddit.com/r/Wordpress/comments/1i826oy/continuous_requests_for/ here on Reddit], I am experiencing some anomalies in providing the correct favicon to Safari. I noticed several 404 errors while reviewing the logs and, after piecing everything together, I believe I’ve identified the issue. Despite WordPress declaring the correct URL for the favicon, Safari seems to expect something different.

Could this perhaps be a matter for the wonderful WordPress team to address?

Thank you."	griotta
1	56164	Create a way to reference function parameter documentation when complex parameters are passed to hooks		General		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2022-07-06T17:22:46Z	2022-07-06T17:30:09Z	"When a parameter is passed to a filter or action hook that is also passed to the calling function itself, it's common for the `@param` tag on the hook to very briefly explain the parameter.

For example, the `$postarr` parameter in `wp_insert_post()` is very complex. Though some modifications to the array are made prior, `$postarr` is ultimately passed to several filter hooks, such as [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/post.php#L4108-L4124 wp_insert_post_empty_content] and [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/post.php#L4348-L4376 wp_insert_attachment_data/wp_insert_post_data]. The `@param` tags for these parameters within the filter hook documentation is very brief (""Array of post data."" and ""An array of slashed and sanitized attachment post data, but not processed."" respectively).

It would be great to have a way to remain brief within hook documentation in these scenarios while also referring someone to the more detailed, expanded documentation found for the function."	desrosj
1	34669	Custom back_link in wp_die and provide a filter		General	4.4	normal	normal	Future Release	enhancement	assigned	reporter-feedback	2015-11-12T17:21:17Z	2022-09-16T21:06:01Z	"At the moment, inside `_default_wp_die_handler` function, the `$args['back_link']` (boolean) set to true allow to show a generic javascript back link: `<a href='javascript:history.back()'>`.

I know that it's possibile to write own function handler using `wp_die_handler` filter, but accepting a custom back url, and not only a boolean, could be an easy way without rewrite all the function.

In some cases it could be useful, here is an example.
I wrote a plugin that creates custom roles with custom caps. I use the meta cap filter to let user of custom roles to edit users of other roles, but not admin users.
So when an user of custom roles tries to bulk edit/promote/delete admin and not-admin users together, the user gets a wp_die message like: ''You can’t edit that user.''. 
When the user goes back with browser, the user will see again the old users page with old (and wrong) info, because the bulk action has edited properly the not-admin users and leave the admins untouch.

I think it could be useful to provide the back url to wp_die message, so you can load the updated version of previous page.

I propose that `$args['back_link']` can accept 3 types of values:
- `false`: no back link shown (as now);
- `true`: show javascript back link shown (as now);
- `{url}`: show passed url.

In this way I can use `wp_die` for custom messages in my plugin pages, like:
`wp_die( 'Error message', '', array( 'back_link' => admin_url('whatever.php') ) );`

Then, it could be useful to have a filter inside `_default_wp_die_handler` function to customise error messages of default dashboard pages.
We could use the arguments (`$message`, `$title`, `$args`) to provide context to the filter, e.g.:

`apply_filters( 'default_wp_die_handler_back_link', $r['back_link'], $title, $args )`
`apply_filters( 'default_wp_die_handler_back_link_'.sanitize_key( $title ), $r['back_link'], $args )`

Or maybe use `wp_get_referer` to add more context.

I hope my explanation has been clear."	eventualo
1	56582	Decide how to format multi-line comments in global scope.		General		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2022-09-15T15:58:03Z	2022-09-17T07:47:15Z	"[https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/ The PHP Documentation Standards] include formats for various types of comment.

However, there is no clear description of what to use for multi-line comments in global scope.

For example:

 **3. Requires and Includes**
 Files required or included should be documented with a summary description DocBlock. 
 Optionally, this may apply to inline `get_template_part()` calls as needed for clarity.

However:

 **5. Inline Comments**
 Inline comments inside methods and functions should be formatted as follows:

 **5.2 Multi line Comments**
 {{{
    /*
     * This is a comment that is long enough to warrant being stretched over
     * the span of multiple lines. You'll notice this follows basically
     * the same format as the PHPDoc wrapping and comment block style.
     */
 }}}
 **Important note:** Multi-line comments must not begin with `/**` (double asterisk) as the parser might mistake it for a DocBlock. Use `/*` (single asterisk) instead.

Note: It's quite possible that the inline multi-line format just never expected to have to cover multi-line comments in global scope and was too specific in saying ""inside methods and functions"".

This leads to inconsistent formats and unnecessary discussion about what is correct.

Let's decide on a format that is appropriate.

Should we use `/**`, which is described for other items in global scope, or, as this format typically denotes something extra important (such as requires/includes, docblocks, class members, pre-existing filter docblocks), should we instead use the already existing multi-line comment format of `/*`?"	costdev
1	31603	Don't change $_SERVER['REQUEST_URI'] just to filter the current URL query string		General		normal	normal	Future Release	enhancement	new		2015-03-11T22:06:12Z	2021-07-17T14:25:44Z	"While working on #23367, I found 14 places in core that overwrite `$_SERVER['REQUEST_URI']`, which causes problems when trying to use it elsewhere and I don't know which version is going to make an appearance.

I propose either switching from overwriting `$_SERVER['REQUEST_URI']` to using a local var when we need to, or creating a filter that's accessible everywhere if we need the modified value to use elsewhere."	morganestes
1	44177	Enhance wp_debug_backtrace_summary() with the optional ability to include arguments		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2018-05-21T14:38:52Z	2018-05-21T21:38:14Z	"The attached patch for `wp_debug_backtrace_summary()`:

- Adds the optional ability to include arguments in the output

- Leaves the default behaviour as-is

- Removes an unnecessary check on whether the PHP version is at least a value which is still lower than the minimum one that WP supports"	DavidAnderson
1	65343	Enhancement/Suggestion: Modernize default search relevance and sorting		General		normal	minor	Awaiting Review	enhancement	new	dev-feedback	2026-05-26T08:15:38Z	2026-05-26T08:15:38Z	"Hello,

**Sorry if this has been raised or addressed somewhere, as I did try to search for existing tickets related to this and could not find one, hence I have raised this.** 

I feel like a great time to revisit how Core handles search sorting.

While the previous version introduced some basic relevance sorting (like prioritizing title matches), the default search still relies way too heavily on post date. It often buries highly relevant content just because it is older. Right now, most users are forced to install plugins like Relevanssi just to get a standard, modern search experience.

It would be great to see the core search algorithm improved to better prioritize keyword weight and true relevance over publish date. Alternatively, giving site admins a native dropdown in the Reading settings to choose between ""Sort by Date"" and ""Sort by Relevance"" would be a huge improvement out of the box."	kartiks16
1	62837	Filter to change the labels and placeholders of inputs		General	6.7.1	normal	normal	Awaiting Review	enhancement	new	has-patch	2025-01-21T18:48:37Z	2025-01-23T13:46:01Z	"Please add a filter to change the label in the login form on the pages:

password reset,
login,
registration.
Allow to add your own text instead of the current one. Why is it worth it?

possibility of personalization (e.g. “Player name” instead of “Login or e-mail address”)
better compatibility with css (e.g. when the text “Login or e-mail address” is too long, you can replace it with something else, e.g. “login”)"	wparslan
1	58855	Fix and enhance wp_is_development_mode() to be able to return whether a development mode is beiung used		General		normal	normal	Future Release	enhancement	new	dev-feedback	2023-07-19T22:10:58Z	2024-10-11T19:23:07Z	"Follow up from: https://core.trac.wordpress.org/ticket/57487#comment:71.

The (new in 6.3) `wp_is_development_mode()` helper function cannot be used to check whether a development mode is enabled or not. It can only check for a particular development mode setting: either plugin, theme or core.

Being able to check whether a development mode is enabled or not will enhance the above function and improve consistency. Currently this can be achieved by using the returned value from `wp_get_development_mode()` as boolean."	azaozz
1	52404	Fix get_the_archive_description() to support default blog index		General	5.6	normal	normal	Awaiting Review	enhancement	new	has-patch	2021-01-30T12:33:04Z	2021-01-30T12:38:37Z	"get_the_archive_description() returns nothing when viewing the default blog index.
When viewing a custom post type index, it returns the description parameter but even if I add the description to 'post' nothing is displayed.

The fix requires only adding additional is_home() check to is_post_type_archive() condition in get_the_archive_description() and setting a fallback $post_type = 'post' in get_the_post_type_description().

'''Note that description for 'post' doesn't exist by default so this shouldn't cause any surprising changes.''' It just makes the function more logical.

With these to very minor changes, adding archive description for blog index is possible by a filter such as:

{{{
function add_description_to_default_archive( $args, $post_type ) {

  if( 'post' == $post_type ) {
    $args['description'] = 'Enjoy our posts!';
  }

  return $args;
}
add_filter( 'register_post_type_args', 'add_description_to_default_archive', 10, 2 );
}}}

I'll make a pull request of the changes in github."	jaakkosaarenketo
1	56691	Function suggestion: get_excerpt_length()		General		normal	normal	Awaiting Review	enhancement	new	has-patch	2022-09-29T15:45:10Z	2024-06-12T18:58:39Z	"Currently, there is no way we can get the excerpt length whether the default or the filtered value.

This will be useful when developers in some way need to get the post excerpt length.

For now, developers can use something like the following to match the excerpt length with the of the site.

{{{#!php
<?php
$excerpt_length = apply_filters( 'excerpt_length', 40 );
}}}

With the new function, developers don't have to remember to add the filter, they can just call the function and get the excerpt length that matches the rest of the site.

{{{#!php
<?php
$excerpt_length = get_excerpt_length();
}}}
"	tremidkhar
1	66350	Hide admin notices during update procedure		General	7.1.3	low	minor	Awaiting Review	enhancement	new	has-patch	2026-10-20T11:18:21Z	2026-11-05T17:41:37Z	"[[Image(https://imgur.com/a/u0py0Iu)]]

Many plugins display an admin notice that comes with a button that will lead to you changing / reloading the page.
These notices are also being shown while the process of updating plugins is underway.
If you're leaving the page during that time, there's a chance that the upgrading procedure doesn't finish properly and a .maintenance file will be left on your server, which means your WordPress website is no longer available.

I believe it would make sense to suppress all admin notices during the updating procedure. 
This has happened to a lot of less experienced WordPress users that don't know that you simply shouldn't touch your keyboard / mouse while the updating procedure is underway.

The attached screenshot shows an admin notice by WP Rocket while updating the plugins is / was underway."	redsoulwarrior
1	64427	Implement WHATWG MIME Sniffing	dmsnell	General		normal	normal	7.3	enhancement	assigned	has-patch	2025-12-18T00:44:50Z	2026-10-21T09:32:52Z	"WordPress interacts with MIME media types in a number of places in ad-hoc ways. These tend to perform unique parsing, which means they lack consistency and correspondence with how browsers parse MIME types.

For reference, the MIME media type is often derived from the HTTP `Content-Type` header, which contains a type, a subtype, and an optional list of parameters. A common example is `text/html` indicating HTML, `image/png` indicating a PNG image, and `application/xhtml+xml` indicating the XML serialization of HTML.

Discrepancies arise when the supplied type string doesn’t match exactly the anticipated forms. For example, with parameters or whitespaces:

 - `text/html; charset=utf8`
 - `text/plain ;   charset=""utf-8;iso-2022-jp`

For reliable, consistent, and secure parsing, WordPress should implement the [https://mimesniff.spec.whatwg.org WHATWG MIME Sniffing specification], which the browsers will implement. This will ensure agreement between the server and clients on what content type strings refer to which media types.

The MIME Sniffing specification governs `Content-Type` values //and also// a limited number of media types from files based on byte sequences in the “resource header” — the first 1445 bytes of the binary data. These binary sniffs are mostly limited to media types relevant to browsers.

== Ad-hoc parsers

 - `wp_finalize_template_enhancement_output_buffer` in `template.php`
 - `wp_mail` in `pluggable.php`
 - Global code in `wp-mail.php`
 - `wp_staticize_emoji_for_email` in `formatting.php`
 - `download_url` in `wp-admin/includes/file.php`
 - `discover_pingback_server_uri` in `comment.php`
 - `do_enclose` in `functions.php`
 - `get_file_extension_by_mime_type` in 

== Related tickets

 - #40175 Inferred MIME types from files inconsistent.
 - #45670 sniffing MIME media types based on different rules than a browser would use"	dmsnell
1	41249	"Improve the ""collapse menu"" interface"		General		normal	normal	Awaiting Review	enhancement	new		2017-07-05T20:31:56Z	2019-04-21T10:44:49Z	"I would like to propose an update to how the left sidebar collapses in the WordPress admin. Right now I can shrink the sidebar down by shrinking the screen, but there are times I'd like to make the sidebar smaller to focus on the content I'm writing. 

It's also important that I don't have to go into fullscreen mode. It takes and a short delay to open/close it. While I'm in fullscreen mode I can't do anything else. Having a smaller sidebar visible at all times - with the option to easily make it bigger again - would be ideal. So, my proposal is:

What if we had 3 stages to the left navigation sidebar?

* As is, full size
* Partially collapsed (like how it shows on tablet view)
* Fully hidden

In order to drag between these states there would be a button that appears on hover to pull the sidebar left or right. Kind of like how Things 3 does it: https://v.usetapes.com/mi3p2NxN3Z

The attachment shows my recommendations for how I'd envision the 3 states:

*Note:* While the interface shows the Gutenberg plugin (this conversation originated on this issue: https://github.com/WordPress/gutenberg/issues/1522), the impact of this feature request applies to the WordPress admin as a whole, as such the discussion was moved to Trac. "	JoshuaWold
1	59330	Improvement in wp_parse_args for mutli-dimensional arrays		General	6.3.1	normal	trivial	Awaiting Review	enhancement	new	has-patch	2023-09-12T13:36:22Z	2023-09-17T15:54:28Z	"I noticed the function doesn't work well when multi-dimensional arrays are present:

Example:

Consider having following default params and settings.

{{{
$defaults = array(
    'settings' => array(
        'option1' => 'default-value-1',
        'option2' => 'default-value-2'
    )
);

$settings = array(
    'settings' => array(
        'option1' => 'new-value-1',
    )
);

$return = wp_parse_args($settings, $defaults);
}}}

The above example will return:


{{{
Array
(
    [settings] => Array
        (
            [option1] => new-value-1
        )

)
}}}

It will completely ignore the option2 key.

My suggestion is to update wp_parse_args from: 


{{{
if (is_array($defaults) && $defaults) {
    return array_merge($defaults, $parsed_args);
}
}}}


with:


{{{
if ( is_array( $defaults ) && $defaults ) {
    return array_replace_recursive($defaults, $parsed_args);
}
}}}








"	Stachethemes
1	59232	Introduce #[Override] attribute to mark overloaded methods		General	6.4	low	normal	Future Release	enhancement	new	has-patch	2023-08-28T23:44:04Z	2024-09-20T13:50:02Z	"From https://core.trac.wordpress.org/ticket/59231:

> === [https://wiki.php.net/rfc/marking_overriden_methods Marking overridden methods]
>
> This is a new feature which will be introduced in PHP 8.3, with limited validation functionality attached. The attribute basically allows to mark methods in a (child) class/interface which overload a method in a parent class or from an interface, as doing so intentionally.
> 
> Per the RFC:
> > ... being able to express if a method is intended to override another method or implement an interface would make it easier to debug a mistake, to refactor and to clean up existing code. Another possible use case is to easily detect a possibly breaking change in a parent class that was provided by a library without needing to read the changelog in detail or missing some item in the list of changes
> 
> I'd like to advocate for adding these attributes to WP Core in all the relevant places as it:
> * Increases awareness of the method overload for contributors.
> * Can serve as a warning that the method signature should not be touched (unless the parent method signature changes).
> * Has no downside as attributes are ignored in older PHP versions and in PHP versions where the attribute referenced does not exist.
> 
> In the rare case that the attribute, once added, would result in a fatal error, that would be fantastic, as that means we have actually found a bug in WP before it got into a stable release."	jrf
1	61710	Introduce a new action hook for ajax requests for both logged-in and non-logged-in users		General	6.6	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2024-07-19T11:21:08Z	2025-06-23T03:52:25Z	"Currently, to handle AJAX requests for both logged-in and non-logged-in users in WordPress, developers need to define two separate action hooks:

{{{#!php
add_action('wp_ajax_action_name', 'function_name'); // For logged-in users
add_action('wp_ajax_nopriv_action_name', 'function_name'); // For non-logged-in users
}}}

This can be repetitive and cumbersome, especially when dealing with multiple AJAX actions. To simplify this process, I propose introducing a new action hook that applies to both logged-in and non-logged-in users.

== Proposed Solution:

Introduce a new hook `wp_ajax_all_$action` that combines both `wp_ajax_$action` and `wp_ajax_nopriv_$action` hooks, allowing developers to define a single action for both user states.

{{{#!php
add_action('wp_ajax_all_action_name', 'function_name'); // For all users
}}}

== Benefits:

- Simplifies the code for handling AJAX requests.
- Reduces redundancy and potential errors in defining multiple hooks.
- Improves developer experience and code maintainability."	nirajgirixd
1	64663	LiteSpeed server type		General		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2026-02-17T22:32:04Z	2026-05-20T14:20:20Z	"It adds support for global variables that will describe if current server is running any version of LiteSpeed software.
The patch will add the global variable and constants used in LSCWP plugin"	litetim
1	40751	Login form - Consider making Back to {site name} & Lost your password inline.		General	4.7.4	normal	normal	Awaiting Review	enhancement	new	has-patch	2017-05-13T06:11:34Z	2017-05-15T14:44:39Z	"Will it not look good, if we make the login and Back to site button below the login-form inline? Or atleast we can remove padding-left from login and back to site button, so it will be aligned with the login form.

{{{
.login #nav, .login #backtoblog {
    font-size: 13px;
    padding: 0 24px 0;
}
}}}

[[Image(https://goo.gl/KZ7elv)]]

"	pratik028
1	65034	More help for trouble shooting initial Database problems		General	6.9.4	normal	normal	Awaiting Review	enhancement	new		2026-04-07T13:19:16Z	2026-04-07T13:43:53Z	"Once you have enabled debugging in wp-config.php you get more information about database connection failure but maybe I missed a toggle because I didn't get a 'good' error message till I though together my own small PHP script which included:
if (mysqli_connect_errno()) {
    printf(""Connect failed: %s\n"", mysqli_connect_error());
    exit();
}

Where I finally got: mysqli_real_connect(): (HY000/2002): Permission denied

My Suggestion would be to Increase the diagnostic output once debugging is enabled, in particularly, to include something like:

The connection request below processed your configuration data as follows:
mysqli_real_connect( {DBhandle} , host, dbuser, dbpassword, database, port, socket, client_flags );
as host=’xxx’, dbuser=’xxxx’, dbpassword=’xxxxx’, database=’xxxxx’ , port=’xxxx’ , socket=’xxxxx’

And something showing the reported error:
Currently you show something like:

This either means that the username and password information in your %1$s file is incorrect or that contact with the database server at %2$s could not be established. This could mean your host&#8217;s database server is down.'

Then ask them if they are sure that they have the correct username and password, and correct hostname and if the database is running.  Which I honestly found a little frustrating as I was alternating between hacking class-wpdb.php to figure out how you processed my entries and logging into mariadb directly using those same options.
"	ralatalo
1	64147	Move all @media screen rules to the bottom of common.css		General		normal	normal	Awaiting Review	enhancement	new		2025-10-24T17:46:22Z	2026-05-31T21:06:03Z	Grouping all CSS @media screen rules together at the bottom of the **common.css** file helps avoid duplicate media queries, makes it easier for developers to locate and modify responsive sections in the future, and improves overall code organization and readability.	jilani53
1	60953	Need new hook at paginate_links		General		normal	minor	Awaiting Review	enhancement	new	has-patch	2024-04-08T03:32:07Z	2024-06-04T05:34:41Z	"{{{#!php
<?php
function paginate_links( $args = '' ) {
    // Setting up default values and parsing arguments
    // ...

    $page_links = array();

    // Generating page links
    // ...

    switch ( $args['type'] ) {
        case 'array':
            // HERE: We need to add a filter hook before returning $page_links
            return $page_links;

        case 'list':
            // Generating HTML list output
            // ...
            break;

        default:
            // Generating plain HTML output
            // ...
            break;
    }

    // Applying filters to the HTML output
    // ...

    return $r;
}
}}}


When the 'type' argument is set to 'array', it's necessary to introduce a filter hook before returning the $page_links array. This filter hook will enable developers to customize the array of page links before the paginate_links function returns it.

For instance, we can enhance the pagination by including ""10-page movement"" anchors, resulting in a pagination structure like this:

`<< < 1 2 3 4 5 6 7 8 9 10 > >>`

In this example, the `<<` button allows users to navigate to the previous set of 10 pages, while the `>>` button enables them to jump to the next set of 10 pages."	rpf5573
1	56606	PHP Warning in /wp-includes/blocks/index.php		General		normal	normal	Awaiting Review	enhancement	reopened	dev-feedback	2022-09-20T02:37:20Z	2025-12-02T18:28:52Z	"There is PHP warning that need to be fixed in wp-includes/blocks/index.php **ABSPATH** and **WPINC** require quotes.\\
\\
\\
{{{#!php
<?php
/**
 * Used to set up all core blocks used with the block editor.
 *
 * @package WordPress
 */

define( 'BLOCKS_PATH', 'ABSPATH' . 'WPINC' . '/blocks/' );

// Include files required for core blocks registration.
require BLOCKS_PATH . 'legacy-widget.php';
require BLOCKS_PATH . 'widget-group.php';
require BLOCKS_PATH . 'require-dynamic-blocks.php';

/**
 * Registers core block types using metadata files.
 * Dynamic core blocks are registered separately.
 *
 * @since 5.5.0
 */
function register_core_block_types_from_metadata() {
	$block_folders = require BLOCKS_PATH . 'require-static-blocks.php';
	foreach ( $block_folders as $block_folder ) {
		register_block_type(
			BLOCKS_PATH . $block_folder
		);
	}
}
add_action( 'init', 'register_core_block_types_from_metadata' );


}}}

"	isrgrajan
1	32979	Password UI: Regenerate PW after clearing field		General	4.3	normal	normal	Future Release	enhancement	new		2015-07-13T17:49:23Z	2017-12-11T13:25:02Z	"Based on https://core.trac.wordpress.org/ticket/32589#comment:20.

I think this needs some discussion and focus in it's own ticket. 

In the new UI a PW gets generated for you. You have to  take an action ""Show password"" or ""Generate new password"" to make the field show. Then you can edit that if you would like. At that point you decide you would rather generate one again. There is no clear way to do so. 

A few things worth noting

On user profile you can click ""Generate new password"" again and it will.

On new user you can click ""Show password"" and it will regenerate a pw again.  (This is not great and where the change needs to happen)

Perhaps the easy solution is to change the wording on the button when the field is shown to ""Generate new password"".

A small issue that can be taken care of at the same time is the ""Show password"" button shows above the PW field while the ""Generate new password"" button shows below. The button below looks better. 
"	MikeHansenMe
1	44407	Please add page_attributes_meta_box_parent action to meta-boxes.php		General	4.9.6	normal	normal	Awaiting Review	enhancement	new		2018-06-20T05:47:49Z	2018-06-21T04:57:34Z	"Hello,

Can we add a new action after the 'Parent' label to match the one that follows after the 'Template' label.

Placement for new action - https://github.com/WordPress/WordPress/blob/cd4c960a6c17e683bcc76f1efaadcb272955bb83/wp-admin/includes/meta-boxes.php#L924

Existing action for 'Template' - https://github.com/WordPress/WordPress/blob/cd4c960a6c17e683bcc76f1efaadcb272955bb83/wp-admin/includes/meta-boxes.php#L943

Thank you


"	garrett-eclipse
1	61750	Spacing issues since 6.6 (Gutenberg with Block- or Hybrid Themes)		General	6.6.1	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2024-07-25T06:13:44Z	2024-07-26T10:05:13Z	"Since version 6.6, all specific block spacings i’ve been setting in my theme.json file are ignored. For example, I defined my own margin for h2, which is now overwritten by the general BlockGap spacing. This code from the WordPress core seems to overwrite everything:

.is-layout-constrained > *,
.is-layout-flow > * {
margin-block-start: 3rem;
margin-block-end: 0;
}

In my theme.json I defined:
blockGap: **3rem (for general)**
and h2 for example: **margin: 2.5rem 0 2.5rem 0;**

The margin, I defined for h2 are now overwritten by the margin-block-start (and end) commands.

Here is a screenshot of my testing site: [http://test.lake-site.de/screenshot]

As you can see, my own margin for h2 (defined in theme.json) is now overwritten by wordpress margin-block-start and margin-block-end taken from the BlockGap general settings (3rem) in theme.json. This happening now with all blocks."	dohu13
1	61445	Synced patterns can not be used on site if pages are copied		General	6.5.4	normal	normal	Awaiting Review	enhancement	new		2024-06-14T14:17:42Z	2024-06-14T14:17:42Z	"Currently the synced patters uses a reference ID to reference the synced pattern.
<!-- wp:block {""ref"":3584} /-->

Problem is if a page is copied to another site then the synced pattern with that ID will not be on the other site.
One will get the error ""Block has been deleted or is unavailable.""
Once can re-create the pattern but it will have a different ID.
Either one needs to be able to specify the ID of the pattern or reference it by a name / slug.


"	johannf78
1	57176	Table pagination issue		General	6.1.1	normal	normal	Awaiting Review	enhancement	new	close	2022-11-22T11:46:58Z	2025-07-24T09:18:51Z	"Example: the Users -> All Users admin page.

When there are many users, one might want to go to page 50 out of 100.
For this to do there is a page number input field in the pagination top display.
Entering a number has unfortunately no effect.

Over ten years i use wordpress and develop plugins on a dayly basis, but i never discovered the function of the enter key for this purpose.

I also did not suspect the Apply button to do it because going to a different page is not a bulk action.

So either i am very dumb or they are no obvious features.

My request is an enhancement request, to either add an onchange event handler to the page number input field or add some text (e.g. to the Help section) or title to the input field to point the users in the right direction."	opajaap
1	62171	Test suite: Eliminate flakiness from basic HTTP tests getting rate-limited.		General	6.7	normal	normal	Future Release	enhancement	new		2024-10-05T18:31:58Z	2026-09-27T14:21:41Z	"A number of tests in the `Tests_HTTP_Functions` class, such as `test_head_404`, `test_head_redirect`, and `test_get_response_cookies` make basic HTTP calls to `w.org`, `wp.org`, and `wordpress.org` to verify WordPress' core HTTP handling.

However, these requests frequently get rate-limited, possibly because they give the appearance of improper activity. For example, when running a matrix of PHPUnit tests, a single IP address from the Github Actions container makes repeated requests for `/screenshots/3.9/awefasdfawef.jpg` - a resource that doesn't exist. The test asserts that the response is a 404.

Besides introducing conflating effects and network latency, these tests are inherently fragile because if that resource ever becomes available it will cause the tests to fail even though the code under test hasn't failed. The tests are indirect, measuring different code than they claim to, and asserting that the failure of the actual system under test represents a failure of the purported code under test.

These flakey tests frequently block and reject working, good, and positive contributions to the project, so we would benefit by updating the tests to avoid this.

One possible approach would be to spool up a web server inside the test suite, perhaps as a separate OS process, perhaps as a separate node in the container, which provides a method to deterministically respond as expected.


{{{
GET /index.php?status_code=404 HTTP/1.1

HTTP/1.1 404 Not Found
}}}

In [https://wordpress.slack.com/archives/C02RQBWTW/p1728143324005749 the original Slack discussion] it was also proposed to reuse existing test servers, such as:

 - The server which `Requests` uses [https://packagist.org/packages/requests/test-server test-server]
 - An existing PHP package like [https://github.com/donatj/mock-webserver mock-webserver]
 - An incredibly basic PHP file served via `php -S` that only provides what the tests need, and is fully controlled in this repository."	dmsnell
1	58884	"The image size for the Site Logo block is hard coded to ""full"""	audrasjb*	General		normal	normal	Awaiting Review	enhancement	accepted	close	2023-07-23T19:41:10Z	2023-09-20T08:27:57Z	"The recommended size for the site icon is 512x512.

The Site Logo block is coded to use the ""full"" size, in general-templates.php:


{{{
$image = wp_get_attachment_image( $custom_logo_id, 'full', false, $custom_logo_attr );
}}}

If the icon is at the recommended size of 512x512, the full size is much too big for the common use of the Site Logo block (in the header). That leads to a ""Properly size images"" warning in page-speed tools."	asafm7
1	60782	The method parameter is never used.		General		normal	normal	Awaiting Review	enhancement	new		2024-03-15T10:58:56Z	2024-06-20T03:21:26Z	The function update_home_siteurl() has two parameters that newer used in the function block. 	patelmohip
1	31737	Unique identifier for Heartbeat API calls		General	3.6	normal	minor	Awaiting Review	enhancement	new	has-patch	2015-03-23T09:37:50Z	2022-07-06T18:50:48Z	"''I chose ''Autosave'' as it is the most close component to the Heartbeat API.''

----

Currently it seems that the Heartbeat API call made are not differentiated as Heartbeat API calls. The AJAX URL used is the global JS `ajaxurl` variable and the user agent is the same as the user's browser user-agent.

This makes it difficult to parse them off general server access logs and so on.

----

Could it be possible to add a query variable (e.g. `admin-ajax.php?heartbeat=1`) or change/append the user-agent to `WordPress Heartbeat API` or something?

If a user logs in to `wp-admin` and leaves the session open, Apache's `access.log` files will be filled with unwanted clutter originating from the Heartbeat API requests.

With a query variable or a customized user agent server admins could redirect the Heartbeat API traffic logs to a custom log file or even `/dev/null` if they wish to. This could be possible with the following server directive in Apache for instance:

{{{
# Determine user agent, set environment variable depending on it.
SetEnvIfNoCase User-Agent "".*WordPress Heartbeat API.*"" heartbeatrequest

# Normal access log, without user-agent checked heartbeat calls.
CustomLog /path/to/access.log combined env=!heartbeatrequest

# Heartbeat calls go to another log file.
CustomLog /path/to/heartbeat.log combined env=heartbeatrequest
}}}

I know some Heartbeat API settings can be tinkered with a plugin or a theme using hooks and globals, but I think this addition should be made into the core to keep it consistent across the board."	ojrask
1	50400	Update Search Engine Visibility text following XML sitemap launch		General		normal	normal	Awaiting Review	enhancement	new		2020-06-16T12:58:50Z	2020-06-16T22:28:01Z	"#50117 adds XML sitemaps to core.

Whilst it's a non-goal of that project to add user controls for XML sitemaps, checking the '''discourage search engines from indexing the site''' option (In ''Settings'' > ''Reading'') ''does'' disable XML sitemaps entirely.

Given this, we should update the wording around this option to make this clear - and whilst we're in there, we could also do a little housekeeping.

I propose that we change the message to:

>**Search Engine Visibility**
>Discourage search engines from indexing this site (and disable WordPress' XML sitemaps)
>''Note: It is up to search engines to honor this request, and this setting won't prevent them from ''crawling'' your website.''"	jonoaldersonwp
1	65084	Update error message for disallowed username characters		General		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2026-04-17T06:50:11Z	2026-05-03T19:30:15Z	"I suggest replacing “illegal characters” with “unallowed characters” to avoid unnecessarily alarming the user and to be more specific.

This error message appears when you try to create a username that contains “special characters.”

This is the PR: https://github.com/WordPress/wordpress-develop/pull/11590"	Marc4
1	53998	Use network_home_url() instead of $_SERVER['HTTP_HOST'] for added safety.		General		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2021-08-24T23:29:09Z	2026-02-16T19:29:23Z	"Would it not be safer from XSS if uses of **$_SERVER[''HTTP_HOST'']** were replaced with **network_home_url()**?  It looks to me like **network_home_url()** reads the server host name from the site settings instead of relying on a possibly manipulated **$_SERVER[''HTTP_HOST'']** value.

For example, I came across this code in /wp-admin/includes/class-wp-list-table.php...

{{{#!php
<?php
/**
 * Displays the pagination.
 *
 * @since 3.1.0
 *
 * @param string $which
 */
protected function pagination( $which ) {
   ...
   $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
   ...
}
}}}

Wouldn't this be safer if it were re-written as...

{{{#!php
<?php
/**
 * Displays the pagination.
 *
 * @since 3.1.0
 *
 * @param string $which
 */
protected function pagination( $which ) {
   ...
   $current_url = network_home_url( $_SERVER['REQUEST_URI'] );
   ...
}
}}}

A search through the WP source code shows **$_SERVER[''HTTP_HOST'']** is used 27 times across 15 files."	wp_kc
1	56822	Use non-breaking space in required fields message		General		normal	normal	Awaiting Review	enhancement	new		2022-10-14T00:26:32Z	2022-11-04T17:46:35Z	"@Drivingralle recommended [https://make.wordpress.org/core/2022/10/10/functions-and-hooks-for-required-fields-in-wordpress-6-1/#comment-43914 changing the default space] before the visual indicator to a non-breaking space (so the symbol does not wrap to the next line, separated from the rest of the message).

There at least two different ways to achieve that:
1. Updating the text string to `'Required fields are marked&nbsp;%s'` or
2. Creating a default filter like the dev note's [https://make.wordpress.org/core/2022/10/10/functions-and-hooks-for-required-fields-in-wordpress-6-1/#message-example ""Message example""]"	sabernhardt
1	54182	Use wp_unslash() for $_REQUEST Parameter in wp-admin/admin-post.php file		General	5.8.1	normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2021-09-25T11:13:03Z	2021-09-30T20:56:30Z	Need to use the `wp_unslash()` for `$_REQUEST['action']`, you can see screenshot.	yagniksangani
1	57398	"User roles are reset to ""All"" tabs when performing bulk actions on certain user roles."		General		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2022-12-29T14:11:19Z	2024-10-07T07:07:44Z	"Whenever bulk actions are performed on certain roles and applied, the page reloads back to the ""All"" roles. This makes performing Bulk Actions on certain roles tedious if we have to do it multiple times as we need to switch to the role again.

Issue Video Link => [https://share.cleanshot.com/wSHt0nxqtGWkFlPgsq8h]
"	aezazshekh
1	56262	WP_List_Util::pluck doesn't support a null $field		General	3.1	low	minor	Awaiting Review	enhancement	new	has-patch	2022-07-20T20:28:53Z	2026-06-02T06:46:56Z	"[https://www.php.net/manual/en/function.array-column.php array_column()] accepts a `null` value for the `$column_key` parameter. When passed `null`, it returns the complete array, which is a useful trick for reindexing database results, etc.

{{{#!php
$array = [
    [ 'id' => 123, 'name' => 'Joe' ],
    [ 'id' => 345, 'name' => 'Sally' ]
];

array_column( $array, null, 'id' ); // [ 123 => [ 'id' => 123, 'name' => 'Joe'] ...
}}}

`wp_list_pluck()` doesn't work when using that on an object, though:

> Warning: Undefined property: stdClass::$ in wp-includes/class-wp-list-util.php on line 185


It seems like `array_column()` has had support for objects since PHP7, so one way to achieve this might be something like:

{{{#!php
if ( version_compare( ... ) {
    return array_column( $this->output, $field, $index_key )
}

// existing code remains as fallback for older versions
}}}

It might be good to use something like `7.0.7` to skip a few bugs that were fixed."	iandunn
1	39795	WordPress objects are only accessible via global variables		General	4.8	normal	normal	Awaiting Review	enhancement	new		2017-02-06T13:47:17Z	2017-02-06T16:29:03Z	"Hello.

Here's the context:
I'm trying to write some high quality plugins that go through some code analysis tools before any new release is made available to the public. That means that the code that is being analysed is on a repository of its own.

When running the plugin code through such tools (sensio labs insights for example), some errors are marked as major issues: ""Global variable or function should never be used"" and that is related to the access of some WordPress objects like $blog_id, $wpdb and $wp_filesystem to name a few.

Upon investigation I found out that for $blog_id, there was an alternative, which is to use the get_current_blog_id() function. That is great, because it respects the WordPress way of working on the WordPress side, and in my plugin, I can now use a function instead of a global variable.

Could we make some equivalent functions for the other global WordPress objects? Like get_wp_db(), get_wp_filesystem() for example?

Thanking you.

Regards."	jdmweb
1	59384	`wp_create_nonce()` should not have a default parameter		General		normal	normal	Awaiting Review	enhancement	new		2023-09-18T12:13:31Z	2023-09-18T12:13:31Z	"If `wp_create_nonce()` is called multiple times, it will produce the same nonce, since `wp_create_nonce`'s `$action` defaults to `-1`.

This might be against the developer's expectation ""I called this twice, should get a different nonce"", so it might be interpreted as a security trap in a way.

{{{#!php
wp> wp_create_nonce()
=> string(10) ""6f11a1efea""
wp> wp_create_nonce()
=> string(10) ""6f11a1efea""
}}}

This is a minor issue/devex improvement, just being more explicit about the nonce's action."	bor0
1	40566	add_query_arg() returns only URL fragments in certain circumstances		General		normal	normal	Future Release	enhancement	new	has-patch	2017-04-25T22:01:33Z	2026-06-29T11:11:51Z	"The documentation for add_query_arg() - https://developer.wordpress.org/reference/functions/add_query_arg/ - and its docblock, both claim that it returns a URL. And this appears to be how it is commonly used. (I started looking into this because of it being used in WooCommerce in this way, a wrong assumption which ulimately causes a reproducible-every-time 404 on my webserver on password reset requests via WooCommerce).

e.g. in the documentation: ""Retrieves a modified URL query string."" ""You can rebuild the URL and append query variables to the URL query by using this function"". It is also recommended to use esc_url() on what is returned - a function that states that it acts upon URLs, implying that what is returned is indeed a URL.

The docblock says ""Retrieves a modified URL query string"" - which isn't a very clear statement (does it return a query string? Or a URL *with* modified query string?). It continues later with ""Omitting the URL from either use results in the current URL being used (the value of {{{$_SERVER['REQUEST_URI']}}})"".

The last clause is where the problem comes in. {{{$_SERVER['REQUEST_URI']}}}, actually stores a path that is relative to the current host, only (i.e. not ""U""niversal). Another beautiful bit of PHP mis-design: http://php.net/manual/en/reserved.variables.server.php - ""The URI which was given in order to access this page; for instance, '/index.html'.""

As a result, despite the documentation and expectation, add_query_arg() returns relative fragments. And when these are passed to wp_redirect(), as WooCommerce does, the result can be, as in my case, that the webserver gives a 404. (This appears to be related to changes to relative path handling in CGI output in recent versions of lighttpd. The problem is CGI-specific I think - it relates to how a webserver handles the output of a CGI script when that output has a Location: header without a full URL in it).

It appears to me that in the default case of no URL being specified, add_query_arg() should return an actual URL, instead of a relative path.

Perhaps related: #14062"	DavidAnderson
1	42958	create callers for loop functions to accept post id		General		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-12-21T17:23:36Z	2020-11-17T07:06:03Z	"I've always been surprised, why the loop functions (like `the_title`, `the_content`, `the_post_thumbnail` and etc) doesnt have ability to accept post-id as argument.
I think that the `get_.....` functions is not replacement in MANY MANY cases, whereas `the_...` functions automatically generate all the needed attributes and tags. using the `get_` function, it is hard to hardcode all those things manually.
I suggest to revise once again and why wont WP create callers, like i.e.

`_the_content($post_id, [other parameters as of now...])`
`_the_title($post_id, [other parameters as of now...])`
etc...

this will make the things much easier for developers. If you dont believe, see how hard it is to get the same result as `the_content` for specific post id (while outside of loop): 



{{{
//save global variable
$target_post_id = 14;
$p=$GLOBALS['post'];

//change global variable temporarily, to deceive WP
$GLOBALS['post']=get_post($target_post_id);
//ONLY NOW call get_the_content
$content = get_the_content( $more_link_text='Read more', $strip_teaser=false );
$content = apply_filters( 'the_content', $content );
$content = str_replace( ']]>', ']]&gt;', $content );

//restore the global variable
$GLOBALS['post']=$p;

echo $content;
}}}

this is real equivalent of `the_content` when you need to call outside of loop.  Is it still arguable??
"	tazotodua
1	39080	created unittest for is_serialized and is_serialized_string files and move tests into them	whyisjake*	General	4.7	normal	normal	Future Release	enhancement	accepted	dev-feedback	2016-12-04T21:32:26Z	2020-04-23T21:58:05Z	Move the tests from function.php to separate files and converted to dataprovider ans added move tests 	pbearne
1	62483	maybe_serialize() does support double serialization, but does not inform the developer if doing so	audrasjb	General	3.6.1	normal	normal	Future Release	enhancement	reviewing	has-patch	2024-11-20T09:04:59Z	2026-02-23T14:32:02Z	"In #12930 the support of double serialization was added, in order not to break instances where developers used `maybe_serialize()` wrong, I recently stumbled upon a case from 2023 where this also happened.

I suggest adding a `_doing_it_wrong()` if serialized code was sent to `maybe_serialize` in order to make less experienced developers aware of this.

Patch coming"	apermo
1	40791	paginate_links outputs unnecessary dots		General	4.7.5	normal	normal	Awaiting Review	enhancement	new		2017-05-17T19:46:55Z	2017-05-22T16:47:16Z	"== Steps to reproduce: ==
A) Call paginate_links with current=2, total=6

B) Call paginate_links with current=5, total=6

(assume defaults for everything else: mid_size=2, end_size=1, show_all=false)

== Actual results: ==
A) `[1] ... [3] [4] [5] [6]`

B) `[1] [2] [3] [4] ... [6]`

The output includes dots that are unnecessary because they are taking up space that an actual page link could occupy.

== Expected results: ==
A) `[1] [2] [3] [4] [5] [6]`

B) `[1] [2] [3] [4] [5] [6]`

When `total <= mid_size + end_size * 2 + 2`, no dots should be included in the pagination output."	rphelan
1	32639	A URL Agnostic Wordpress		General		normal	normal	Awaiting Review	feature request	new	dev-feedback	2015-06-13T20:34:32Z	2018-07-25T19:26:45Z	"My apologies if this has been discussed before. I've tried digging, but couldn't find a discussion about this.

I'm curious why Wordpress has to store the domain (site_url) in the database, and why absolute URLs are used and stored in the DB? It just makes migrations really messy for large DBs, from one domain to another. Plus, in spirit of Wordpress being stateless, wouldn't it be nice just to be able to pick up and move a site from one server to another, on another domain without requiring some regex db scrapping migration plugin?

To me, the database should only care about things specific to the Wordpress blog content itself, and I think that link/url building should be happening at runtime within the application. Purely my opinion.

I imagine this could be accomplished by using the request headers to determine what domain your on when using functions like `site_url()`. For sites that are not rooted at /, but at locations like /blog, we could leverage the config file for a constant like `define('BLOG_ROOT','/blog')` or something along those lines, that could be appended to the domain found in the request, and together prepended to the relative resource url at runtime. I would vote to keep the `WP_HOME` and `WP_SITEURL` constants, so that if they are present, those values are used instead. But, why store that stuff in the DB when links can be built at runtime? It would also cut down on DB queries.

A use case for this would be at the PaaS level, where a hosting provider could offer managed Wordpress hosting. when a client spins up a new Wordpress site, the provider could put that site at a temporary domain like clientid.hosting.com. As the customer builds their site, nothing about that temporary domain is being saved in the DB. Once the customer finally obtains their own domain name, and points to their account with the hosting provider, absolutely nothing should have to change in the customer's database, and the hosting provider shouldn't have to mangle the customer's config file on the server. The site should just be allowed to behave like an application that is listening for requests, and serving content, regardless of domain. 

Like I said, this might have been discussed at length before, and there might be pitfalls that i'm just not recognizing, I just wanted to submit this request to the community to see what kind of discussion this would produce.

Thanks all. Go easy on me if this was a dumb idea to present :)

"	mattfiocca
1	52824	A separate sub-menu to organize the extensions belonging to parent plugins.		General		normal	normal	Awaiting Review	feature request	new		2021-03-16T04:17:28Z	2021-03-23T00:57:15Z	Generally, when we try to find plugin conflicts we have to deactivate every single plugin, including the extensions belonging to the parent plugins. If a site has 50 plugins including the extensions, it's impossible to differentiate the extensions as well. Because the extensions are mixed inside the plugins sections as well. So a separate sub-menu should be added to keep track of all the extensions, belonging to the parent plugin. Since WordPress is getting bigger, I assume this feature is very important to every plugins and extension organized.	cu121
1	56879	Add DDEV Page to Install Local Server Docs		General		normal	normal	Awaiting Review	feature request	new	needs-docs	2022-10-21T15:07:44Z	2022-10-21T19:36:15Z	"**What is the new page you are requesting?**

https://make.wordpress.org/core/handbook/tutorials/installing-a-local-server/
On this page, I'd request to add [https://ddev.com DDEV], an open-source command line tool that helps install multiple WordPress local installs and it works across multiple OSes (Windows, Linux, OSX, WSL2)

**How will this new page help you?**
It helps developers launch new local WordPress projects with ease and saves time and effort to do trivial local development tasks, like backing up databases, snapshots, local domain mapping, push to different hosts etc.

**Is there a help document created?**
Here are the [https://docs.google.com/document/d/1JGEoZtaVUv5LiPPvgd3Monf7jTlziTKc-2TSovyS0jY/edit#heading=h.fgqs9gmg2byr instructions to setup DDEV].

**Related Ticket**

#56878 Remove DesktopServer from docs"	mayankgupta
1	46394	Create a Function to Allow the WordPress Search to Only Return Results from a Specified Post Type		General		normal	normal	Awaiting Review	feature request	new		2019-03-01T17:24:37Z	2019-03-01T17:54:34Z	"Hi

I'd like to install the WP search box on a custom post type archive page and have it only return results from this custom post type.

Is there any way in the future WordPress could allow you to add a parameter to the get_search_form() function (or create a similar function) that would allow this?

An example being, if I had a custom post type called jobs, when I add the WP search box on the jobs archive page I could add 'jobs' as a parameter so it only returned matches from the jobs post type i.e. get_search_form('jobs') 

This would be so awesome."	pauljohnknight
1	54626	Custom Objects		General		normal	normal	Awaiting Review	feature request	new		2021-12-14T23:42:46Z	2021-12-14T23:42:46Z	"Custom Post Types are great, but it has been used for many things (like WooCommerce Products) in the past/present that really should be stored as custom tables. I thing its great to start looking into creating the idea of ""Custom Objects"". I think Hubspot has a great example we can learn from for building this out in WordPress. 

WordPress can start by introducing rest endpoints to create/updated/delete ""Custom Objects"". These endpoints can be used to create the custom tables (maybe meta tables), and later features such as associations, like taxonomies.

Further Reading:
* https://developers.hubspot.com/docs/api/crm/crm-custom-objects
* https://knowledge.hubspot.com/crm-setup/use-custom-objects
* https://product.hubspot.com/blog/custom-objects"	bhubbard
1	62683	Keyword Density Checker		General		normal	normal	Awaiting Review	feature request	new		2024-12-12T16:33:14Z	2025-02-05T06:59:45Z	"I am an SEO specialist from Indonesia. In doing SEO optimization, the first thing I do is count the number of keywords, because this is the most important thing to check to meet the article quality requirements. If there are excessive words or keywords, it certainly will not be indexed by Google.

For the above purposes, I always use keyword counter tools on other sites.
To be more practical, I hope that WordPress will provide a Keyword counter feature and can be used when writing articles/posts.

Thank you"	baskorodj
1	60546	Posts link management in post editor sidebar		General		normal	normal	Awaiting Review	feature request	new		2024-02-15T10:24:12Z	2024-02-15T10:24:12Z	Currently, in a post, when I add links, I have to manually manage the links. For example if I want to open all the links in a new tab, then I have to manually find them and then mark the checkbox. Instead, if all the added links were displayed in a section in the sidebar of the post editor window (similar to [this image]https://drive.google.com/file/d/1PlOlQ4_gG6eMC34Txk_iYGT60zzA1qhQ/view?usp=sharing), then it would be easier to manage all the links.	shaugatashraf98
1	34058	Proposal: wp_get_archives_object() function		General	4.3.1	normal	normal	Future Release	feature request	new	has-patch	2015-09-28T16:10:27Z	2026-06-12T11:13:44Z	"I'm currently working on building a personal site using the WP REST API, and one of the features I want to introduce is an equivalent to the archives widget on the front-end. 

Unfortunately, this isn't so straight forward given that I have no quick means of accessing an object representing the current archives. The existing function `wp_get_archives()` will return lots of lovely HTML - which I can use out of the box perfectly well - but this is useless given that I want full control of the data to manipulate/parse/sort as well as having something that is more suitable for output via JSON in the API.

I propose that a new function called `wp_get_archives_object()` be added to give developers immediate access to the archives object for general use without having to get their hands dirty.

As a compromise, perhaps add an additional parameter to `wp_get_archives()` that when set to `true` simply returns the object?"	anonymized_13665966
1	66632	Summary: Review the default use of initial-scale=1 in viewport meta tags		General		normal	normal	Future Release	feature request	new		2026-11-09T13:03:50Z	2026-11-10T22:40:54Z	"WordPress currently includes `initial-scale=1` in the viewport meta tag generated by _block_template_viewport_meta_tag() in `wp-includes/block-template.php`. Similar defaults exist in `wp_admin_viewport_meta()`, `wp_login_viewport_meta()`, and bundled classic themes.

MDN now recommends the following baseline for responsive pages:


{{{
<meta name=""viewport"" content=""width=device-width"">
}}}

The documentation change was introduced in:
[https://github.com/mdn/content/pull/45479]

However, the current MDN documentation also notes that omitting initial-scale=1 can allow browsers to zoom out when content overflows the viewport. Therefore, removing this value is not necessarily behavior-preserving for all WordPress pages.

I propose reviewing whether WordPress should simplify its default viewport declaration where compatibility testing supports doing so.

Suggested starting scope:

Evaluate the frontend output of `_block_template_viewport_meta_tag()`.

Compare behavior with and without initial-scale=1 on mobile Safari, Chrome, and Firefox.

Include overflowing content, wide tables, embedded content, orientation changes, and user zoom in testing.

Review admin, login, and bundled-theme declarations separately where their requirements differ.

Related historical tickets: #61988 and #61993.

This is a proposal to review and potentially simplify the default markup, rather than a report that initial-scale=1 is invalid or deprecated. Third-party themes that output their own viewport tags would require separate changes.

Current MDN guidance:
[https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta/name/viewport]

Would simplifying this default be appropriate for WordPress, or does its compatibility policy favor retaining an explicit initial scale?"	blackstar1991
1	64365	Support for Videos and Galleries as Post Thumbnails (Featured Media)		General		normal	normal	Awaiting Review	feature request	new	close	2025-12-05T11:41:03Z	2025-12-05T20:02:46Z	"WordPress is a powerful tool for content management, but its core functionality limits how media can be displayed as **post thumbnails** (or ""featured images""). Currently, only single images are supported as featured media. This creates a gap for press offices, social media teams, and content creators who want to:
- Use **videos** (e.g., short clips, teasers, or event highlights) as engaging entry points for their posts.
- Display **galleries** (e.g., image carousels) directly in post previews, similar to Instagram or Pixelfed.
- Leverage **ActivityPub** to seamlessly cross-post rich media to the Fediverse without losing visual appeal.

As a result, many teams default to platforms like Instagram for simplicity—even though WordPress could serve as a central hub for their content if it offered comparable flexibility.

----

== **Proposed Solution**
Extend WordPress Core to support **videos and galleries as featured media**, with the following capabilities:

=== **1. Videos as Featured Media**
- Allow users to set a **video** (e.g., MP4, WebM) as the featured media for a post.
- Support an **optional custom thumbnail** for the video (falling back to a frame from the video if none is provided).
- Ensure compatibility with:
  - **Embedded players** (e.g., YouTube, Vimeo) via oEmbed.
  - **Self-hosted videos** (with responsive playback).
  - **ActivityPub plugins**, so videos appear correctly when shared to the Fediverse.

=== **2. Galleries as Featured Media**
- Enable **galleries** (e.g., image carousels) to be set as featured media.
- Display galleries in a **swipeable format** (like Instagram or Pixelfed), showing one image at a time with navigation controls.
- Support:
  - **Touch/swipe gestures** for mobile users.
  - **Keyboard navigation** (left/right arrows) for desktop users.
  - **Lazy loading** for performance.

=== **3. Backward Compatibility**
- Retain the existing ""featured image"" functionality as the default.
- Add a new **meta box** in the post editor to select the type of featured media (image, video, or gallery).
- Ensure themes can opt into supporting these features via template tags (e.g., `the_post_video()`, `the_post_gallery()`).

=== **4. UI/UX Improvements**
- Update the **Media Library** to allow bulk selection of images for galleries.
- Add a **preview pane** in the post editor to see how the featured media will appear in archives, homepages, and ActivityPub shares.
- Include **fallback options** for themes that don’t yet support these features (e.g., display the first image of a gallery or the video thumbnail).

----

== **Use Cases**
1. **Press Offices**:
   - Share event highlights as **video thumbnails** on the homepage, with the full post containing a write-up and additional media.
2. **Social Media Teams**:
   - Post **image carousels** directly to WordPress and have them appear as swipeable galleries in Fediverse clients (via ActivityPub).
3. **Bloggers and Creators**:
   - Use **short video teasers** as featured media to increase engagement on archive pages.

----

== **Technical Considerations**
- **Performance**: Ensure videos and galleries are optimized for fast loading (e.g., lazy loading, responsive sizing).
- **Accessibility**: Add ARIA labels for gallery navigation and video controls.
- **Theme Support**: Provide hooks and filters for theme developers to customize the display of featured media.
- **REST API**: Extend the REST API to include featured media type and associated data (e.g., video URL, gallery images).

----

== **Mockup**
Here’s a rough idea of how the post editor could look:

{{{
Featured Media:
[ ] Image   [x] Video   [ ] Gallery

Video:
[ Upload Video ] or [ Enter URL ]
Thumbnail:
[ Upload Thumbnail ] or [ Select from Video ]

Gallery:
[ Select Images ] (Bulk upload from Media Library)
[ Reorder Images ] (Drag and drop)
}}}

----

== **Why This Matters**
- **Unifies workflows**: Teams can create content once and publish everywhere (WordPress + Fediverse) without sacrificing visual appeal.
- **Reduces platform dependency**: Encourages users to centralize their content in WordPress instead of siloed platforms like Instagram.
- **Future-proofs WordPress**: Aligns with modern content consumption trends (video, interactive media).

----

== **Examples**
You can see a bit what I would like to produce on these sites:
- https://dotcomslave.de/
- https://ulfdaude.de/
"	kaffeeringe
1	54327	Support wp_die from array print		General	5.8.1	normal	normal	Awaiting Review	feature request	new	changes-requested	2021-10-27T07:05:30Z	2025-06-30T16:47:35Z	"I think wp_die() function is very used in wordpress plugin and theme developement and that is better to support array when pass an array to this and prevent from array to string notice.

in wp-includes/functions.php
line ~3800

before:

{{{
echo $message;
}}}


after: 

{{{
if(is_array($message)) {
    print_r($message);
}else {
    echo $message;
}
}}}


tanx.
"	myousefi08
1	54628	Third-Party API Integrations		General		normal	normal	Awaiting Review	feature request	new		2021-12-15T00:25:28Z	2024-03-18T18:13:35Z	"I have had to write many integrations with Third-Party APIs for WordPress. I would love to see WordPress introduce a more formal way to integrate with various APIs. 

Take for example Slack, many plugins and themes have written custom code to integrate Slack messages, but the end call to the api is typically the same using `wp_remote_post()`. Currently I have seen some sites with 5 different plugins all connecting to Slack's API. I would love to see the following:

A page on WordPress.org (similar to plugins, blocks, etc) where I choose what app/services I want connected to my WordPress install. Theme/Plugin Authors could use these connections instead of writing their own. This can help with managing security and performance with Third-Party APIs. 

With multiple apps connected to my WordPress install, in the future we can have workflows, similar to Zapier, IFTTT, etc. Many of these integrations are for WordPress Plugins such as Gravity Forms or WooCommerce. If I want to create workflows with those tools and other services, it would be nice if it can be done all within WordPress. "	bhubbard
1	50375	Using post_type_archive_title()  does not return the right laebl		General	5.4.2	normal	normal	Awaiting Review	feature request	new		2020-06-12T16:58:35Z	2023-04-04T08:58:21Z	"This seems to return the name label of the post type. 
It does not return the archives label.

Shouldn't it return the archives label? 
$post_type_obj->labels->archives

"	shamai
1	39425	sending mails with e-sign certificate  feature request		General	4.7	normal	normal	Awaiting Review	feature request	new		2016-12-30T11:25:28Z	2019-03-15T00:52:29Z	"Since PHP4 in 2007, the phpmail had an option ""SIGN""  to digitaly sign outgoing mails with a P12,x509  certificat.  But all my search in worpress plugin let me see that this very important function is not yet used.
in 2017 the all EU will be asked to sécure and sign the mails so it will be soon a problem also. 

"	studiojurdan
1	52264	Rename `$array` when used in `@param` tags		General		normal	normal	Future Release	task (blessed)	new	has-patch	2021-01-08T22:38:56Z	2022-02-25T18:55:08Z	"Related: #52243

Several functions, filters and actions pass `$array` as a parameter.
Usage of `$array` in `@param` tags for actions and filters should be replaced with a more appropriate (and descriptive) variable name.

Example:

In `class-requests.php`
{{{
/**
 * Convert a key => value array to a 'key: value' array for headers
 *
 * @param array $array Dictionary of header values
 * @return string[] List of headers
 */
public static function flatten($array) {
}}}
Could be replaced with:
{{{
/**
 * Convert a key => value array to a 'key: value' array for headers
 *
 * @param array $headers Dictionary of header values
 * @return string[] List of headers
 */
public static function flatten( $headers ) {
}}}"	audrasjb
1	64776	HTML API: set_modifiable_text() ignores leading newlines in PRE, LISTING		HTML API	6.7	normal	normal	Future Release	defect (bug)	new	has-patch	2026-03-02T12:56:37Z	2026-03-02T13:04:17Z	"The `::set_modifiable_text()` method on `WP_HTML_Tag_Processor` and `WP_HTML_Processor` will fail to include a leading newline in the provided plaintext content on the first text of `PRE` and `LISTING` elements.

This is due to special rules for these elements that cause a single leading newline to be ignored immediately following the open tag.

{{{#!php
<?php
$html_processor = WP_HTML_Processor::create_fragment('<pre>X</pre>');
$html_processor->next_token();
$html_processor->next_token(); // on the text node
$html_processor->set_modifiable_text( ""\nAFTER NEWLINE"" );
var_dump( $html_processor->get_modifiable_text() );
// string(13) ""AFTER NEWLINE""
echo $html_processor->get_updated_html();
/* Prints:
<textarea>
AFTER NEWLINE</textarea>
*/
}}}

Note that the newline is present in the updated HTML, however the HTML parsing rules cause the leading newline to be ignored.

When rendered in the browser, this `PRE` element will report its `.textContent` as `AFTER NEWLINE` (with no leading newline) and the rendered element shows `AFTER NEWLINE` on the first line of the input box.

In order for the `PRE` to begin with a newline in its content, an additional newline must be included.

This is a follow-up to #64609 and [61754] which handled `TEXTAREA`."	jonsurrell
1	66398	force_balance_tags() corrupts MathML saved by the Math block		HTML API		low	normal	Future Release	defect (bug)	new	has-patch	2026-10-28T17:58:15Z	2026-11-09T19:34:01Z	"== Description ==

When the `use_balanceTags` option is enabled, `balanceTags()` runs on `content_save_pre` and rewrites the MathML that the core Math block (`core/math`) stores in post content. The result is broken markup on the front end: fractions lose their numerator or denominator, and in the common case the whole expression is truncated after the first fraction containing a grouped sub-expression.

The cause is in `force_balance_tags()`. It only allows a short list of tags (`$nestable_tags`: `article`, `aside`, `blockquote`, `details`, `div`, `figure`, `object`, `q`, `section`, `span`) to be opened while the same tag is the innermost open tag. For any other tag it force-closes the outer element first. MathML nests `<mrow>` inside `<mrow>` all the time (every grouped sub-expression, every `\Delta`, `\mathbf{}`, `\left...\right`, and so on), so the balancer closes the outer `<mrow>` early and everything that follows is shifted up a level.

Because the Math block wraps the expression in `<semantics>`, and a `<semantics>` element only renders its first child, anything pushed out of the outer `<mrow>` becomes a later sibling and is treated as an annotation. The visible symptom is an equation that stops rendering part way through.

== Steps to reproduce ==

1. Enable the option. It is hidden from Settings → Writing on sites created after WordPress 4.3 (`initial_db_version >= 32453`), but still honoured:
{{{
wp option update use_balanceTags 1
}}}
   (or set it on `/wp-admin/options.php`)
2. Create a post, insert a Math block, and enter:
{{{
y = \frac{\Delta x}{t} + 1
}}}
3. Save the post and view it on the front end.

Expected: the fraction renders as Δx over t.



Actual: the page shows only `y = Δx`. The fraction bar is gone, because the `<mfrac>` now has three children and the browser falls back to laying them out in a row, and `t + 1` is not displayed at all.

== Markup ==

What the editor saves (abbreviated to the `<math>` contents):
{{{
<semantics>
  <mrow>
    <mi>y</mi><mo>=</mo>
    <mfrac>
      <mrow><mrow><mi mathvariant=""normal"">Δ</mi></mrow><mi>x</mi></mrow>
      <mi>t</mi>
    </mfrac>
    <mo>+</mo><mn>1</mn>
  </mrow>
  <annotation encoding=""application/x-tex"">y = \frac{\Delta x}{t} + 1</annotation>
</semantics>
}}}

What `force_balance_tags()` turns it into:
{{{
<semantics>
  <mrow>
    <mi>y</mi><mo>=</mo>
    <mfrac>
      <mrow></mrow>
      <mrow><mi mathvariant=""normal"">Δ</mi></mrow>
      <mi>x</mi>
    </mfrac>
  </mrow>
  <mi>t</mi><mo>+</mo><mn>1</mn>
  <annotation encoding=""application/x-tex"">y = \frac{\Delta x}{t} + 1</annotation>
</semantics>
}}}

The inner `<mrow>` for `\Delta` triggers the ""same tag already open"" rule, so the balancer inserts `</mrow>` before it (the empty numerator). The original `</mrow>` that closed the numerator no longer matches, so the balancer walks the stack back to the outer `<mrow>` and closes `<mfrac>` and the outer `<mrow>` there. The denominator `t` and the trailing `+ 1` end up as siblings of the `<mrow>` inside `<semantics>`, where they are never rendered.

The same thing happens with any expression that produces an `<mrow>` directly inside an `<mrow>`, which the Math block's converter (temml) does for most non-trivial input.

----

I'm testing this on current trunk (ac530b68aa).
#66153 is somewhat related but isn't about the `use_balanceTags` option. "	dsas
1	60788	Content-Disposition support in download_url() seems broken		HTTP API	6.4.3	normal	normal	Awaiting Review	defect (bug)	new	needs-unit-tests	2024-03-16T01:12:30Z	2025-08-29T12:21:16Z	"
In [51939] a change was made to resolve ticket #38231 to make `download_url()` use the `Content-Disposition` header to specify the name of the downloaded file.  I realize I'm a bit late to the party here since the ticket was opened more than 7 years ago and the change was made more than 2 years ago, but I think that this change was flawed and needs to be reconsidered (and possibly reverted entirely).  The way it was implemented seems fundamentally broken and has the effect of making `download_url()` basically impossible to use reliably.

Consider the following simple PHP script named `echo.php`:

{{{#!php
<?php

header( 'Content-Type: text/plain' );
header( 'Content-Disposition: attachment; filename=""echo.txt""' );
if ( isset( $_GET['echo'] ) ) {
	echo $_GET['echo'];
}
}}}

This script just takes a query string parameter `echo` and outputs it, in plain text format, with suggested filename `echo.txt`.

Now consider the following file, `download.php`, which is intended to be used with WP-CLI:

{{{#!php
<?php

$foo = download_url( 'http://example.test/echo.php?echo=foo' );
echo file_get_contents( $foo );
echo ""\n"";
unlink( $foo );

$bar = download_url( 'http://example.test/echo.php?echo=bar' );
echo file_get_contents( $bar );
echo ""\n"";
unlink( $bar );
}}}

If you run this, it works as expected:

{{{
$ wp eval-file download.php
foo
bar
}}}

Now consider the following file, `download-bad.php`:

{{{#!php
<?php

$foo = download_url( 'http://example.test/echo.php?echo=foo' );
$bar = download_url( 'http://example.test/echo.php?echo=bar' );

echo file_get_contents( $foo );
echo ""\n"";

echo file_get_contents( $bar );
echo ""\n"";

unlink( $foo );
unlink( $bar );
}}}

If you try to run this, the results are not good:

{{{
$ wp eval-file download-bad.php
bar
bar
PHP Warning:  unlink(...tmp/echo.txt): No such file or directory...
}}}

You might argue that the code for `download-bad.php` is flawed, and should be rewritten to look more like `download.php`, and I would agree.  However, note that `download-bad.php` would have worked fine before the change [51939] was made.  Furthermore, even `download.php` is likely to display buggy behavior if two users attempt to run it at the same time.  I don't think there is any reliable way to use `download_url()` in a manner that will protect against concurrent access (short of adding some kind of external locking mechanism).  Consider the following PHP files, `foo.php`...

{{{#!php
<?php

$foo = download_url( 'http://example.test/echo.php?echo=foo' );
sleep( 10 );
echo file_get_contents( $foo );
echo ""\n"";
sleep( 10 );
@ unlink( $foo );
}}}

...and `bar.php`:

{{{#!php
<?php

sleep( 5 );
$bar = download_url( 'http://example.test/echo.php?echo=bar' );
sleep( 10 );
echo file_get_contents( $bar );
echo ""\n"";
@ unlink( $bar );
}}}

Now try running them both at the same time:

{{{
$ wp eval-file foo.php & wp eval-file bar.php
bar
bar
}}}

Obviously the output might vary because there's a race condition here, but I've added `sleep()` calls in such a way that the output will usually be `bar` and `bar`.

I'm not really sure what should be done with `download_url()`, but as it currently stands it seems essentially impossible to use in a reliable manner.  Personally I would probably recommend just removing all `Content-Disposition` support entirely.  That would technically be a backward compatibility break, but I'm not sure anyone is actually using this functionality?  To me it doesn't really even make any sense as currently implemented.  Why would you want a temporary file stored under a fixed name?

It looks like the `Content-Disposition` feature was originally proposed as a solution to the problem that `download_url()` uses `wp_tempnam()` in such a way that it can create very long filenames for some URLs, as described in #34938 - but that doesn't make much sense either:

1. The change to use the `Content-Disposition` header bears no resemblance to the change that was originally requested in #34938
2. Adding support for the `Content-Disposition` header doesn't actually fix the original problem (what if the URL being downloaded doesn't have a `Content-Disposition` header?)
3. Even if the URL being downloaded has a `Content-Disposition` header, the way the `Content-Disposition` support was implmented means that it still creates a file based on the URL first, then renames it later, so the first file could still have a filename which is too long
4. Another change was made in [37598] which should (mostly) address the original problem

That having been said, the original patch https://core.trac.wordpress.org/attachment/ticket/38231/38231.diff actually makes a lot more sense than what was finally committed.  The original patch takes the `Content-Disposition` filename and feeds it as input into `wp_tempnam()`, so you will get a random filename which should prevent the issues in the examples I've given.  Somehow, in the multiple iterations of the patch, the call to `wp_tempnam()` got lost, so the current code just uses the `Content-Disposition` filename directly instead of using a random filename based on the `Content-Disposition` filename.

I suppose the behavior could be changed to use a random filename based on the `Content-Disposition` filename, as was originally intended, but that would also technically be a backward compatibility break (assuming anyone is actually using this functionality and expecting the current behavior).

To sum up - I'm not sure exactly why this `Content-Disposition` functionality was added in the first place, but it should probably just be removed.  If it can't be removed, then the behavior should be changed so that it uses a random filename based on the `Content-Disposition` filename rather than using the `Content-Disposition` filename directly.  If that can't be done either, perhaps there could be another argument added to the `download_url()` function to turn the `Content-Disposition` functionality on or off?  Ideally the default would be off."	siliconforks
1	41608	Post files using cURL		HTTP API	4.6	normal	normal	Awaiting Review	defect (bug)	new		2017-08-11T06:58:35Z	2025-04-29T22:14:52Z	"It's impossible to post files by http using cURL via the WordPress API. 

If you look at the code in the ''setup_handle'' method in ''Requests_Transport_cURL'' class found in the ''/wp-includes/Requests/Transport/cURL.php'' file, you'll see that the POST data is always converted to a string using the PHP ''http_build_query'' function. However, according to the PHP manual at [http://www.php.net/manual/en/function.curl-setopt.php], the value passed to CURLOPT_POSTFIELDS must be an array if files are passed to this option.

"	codealfa
1	53513	WP_Http ignores httpversion option		HTTP API	4.6	normal	normal	Future Release	defect (bug)	assigned	has-patch	2021-06-25T14:21:12Z	2023-04-11T13:00:58Z	"[https://developer.wordpress.org/reference/classes/wp_http/request/ WP_Http::request()] uses the httpversion argument, which the documentation says will set the HTTP protocol version of the request.

However when it calls [https://developer.wordpress.org/reference/classes/requests/request/ Requests::request()], the httpversion option is never passed. Instead, it uses protocol_version, as seen in [https://developer.wordpress.org/reference/classes/requests/get_default_options/ Requests::get_default_options()].

Yet there is no way to set protocol_version, and it always defaults to 1.1.

It seems that httpversion is not actually used anywhere, and should be updated to protocol_version."	cocreation
1	64170	gethostbyname() in validating URLs does not work for IPv6		HTTP API	6.8.3	normal	normal	Future Release	defect (bug)	new	has-patch	2025-10-29T19:40:05Z	2025-10-31T22:14:45Z	"Summary:

wp_http_validate_url() rejects valid URLs when the hostname resolves to IPv6-only addresses, because gethostbyname() only supports IPv4. I discovered this with a custom plugin repository in a IPv6 only network (so the DNS only has a AAAA record when it validates the URL provided to fetch the plugin package).

Expected behavior:
URLs with hostnames that resolve to IPv6 addresses should be validated successfully.

Actual behavior:
When a hostname resolves only to IPv6, gethostbyname() returns the hostname unchanged, which the function treats as a DNS lookup failure and rejects the URL.

How to reproduce:
Create a hostname that resolves only to IPv6 (AAAA record, no A record)
Try to use that URL in any WordPress HTTP API call with default settings
The URL will be rejected with ""A valid URL was not provided""

Suggested fix:
Replace gethostbyname() with dns_get_record() or similar that supports both IPv4 and IPv6 (or use getaddrinfo() via a PHP extension.

Workaround:
Set reject_unsafe_urls to false in http_request_args filter for affected URLs.
"	frankieandshadow
1	47483	Add filters for included CA bundle path		HTTP API		normal	normal	Awaiting Review	enhancement	new	close	2019-06-05T07:31:23Z	2025-03-17T16:51:47Z	"Allow overriding of CA bundle path.

See also #45807"	skithund
1	39043	HTTP API :: Its Not Possible To Send Data In Body For GET Requests	rmccue	HTTP API	4.7	normal	normal	Future Release	enhancement	assigned	dev-feedback	2016-12-04T03:59:27Z	2017-10-02T11:28:09Z	"Currently there is no way to send data in the body of GET requests using the HTTP API (it gets sent as query args instead). While it may not be a very common use-case, its a valid one nevertheless. I've stumbled upon this while writing an integration for a [https://apidocs.sendinblue.com/list/#1 3rd-party API] which does not accept data as query args like most APIs typically do.

#37456 is relevant to this issue.

Patch incoming..."	lots.0.logs
1	34538	Improvement of the IPv4 address format check	chriscct7	HTTP API	4.4	normal	normal	Future Release	enhancement	reviewing	has-patch	2015-11-01T06:57:35Z	2017-02-05T20:33:50Z	"For the current ""is_ip_address()"" in the function of out of range, such as ""256.256.256.256"" IP so will also be judged as IPv4, it is increases the usefulness of the function you have to return false for out of range of IP."	ka2
1	24567	Add help to media modals		Help/About	3.5	normal	normal	Awaiting Review	enhancement	new	close	2013-06-12T08:06:29Z	2025-10-18T10:26:46Z	They are far from simple screens but there is no help available for them.	mark-k
1	66378	Help/About: Note why the About page version stays hardcoded		Help/About		low	normal	Awaiting Review	enhancement	new	has-patch	2026-10-25T11:41:04Z	2026-10-25T12:29:19Z	"[https://core.trac.wordpress.org/attachment/ticket/66202/66202.patch 66202.patch] on #66202 replaces the hardcoded {{{$display_major_version}}} with the running version from {{{wp_get_wp_version()}}}. That ticket is the hub for the 7.2 About page, so this note is separate. The patch should not be applied.

{{{about.php}}} already has two values. The H1 uses the running version. {{{$display_major_version}}} is the release the page describes, and the welcome heading, release notes, field guide, and ""See everything new"" link all use it. It is bumped in the same commit as the copy, images, and documentation links. See [https://core.trac.wordpress.org/changeset/63182 r63182] for the 7.1 update.

Deriving it from the running version points those links at the patch number. For {{{7.1.3}}}, {{{sanitize_title()}}} produces {{{version-7-1-3}}}, {{{wordpress-7-1-3-field-guide}}}, and {{{download/releases/7-1-3/}}}. The [https://wordpress.org/documentation/wordpress-version/version-7-1-3/ 7.1.3 release notes] exist, and the 7.1.3 About page already links them from the ""Maintenance and Security Releases"" section. The field guide and the feature page do not exist for a minor: [https://make.wordpress.org/core/wordpress-7-1-3-field-guide/ wordpress-7-1-3-field-guide] and [https://wordpress.org/download/releases/7-1-3/ /download/releases/7-1-3/] return 404. The 7.1 pages do: [https://make.wordpress.org/core/wordpress-7-1-field-guide/ wordpress-7-1-field-guide] and [https://wordpress.org/download/releases/7-1/ /download/releases/7-1/].

Showing ""Beta 1"" or ""RC 2"" on the welcome heading would also need new translated strings, for a label that only appears between the About page commit and the stable release. The current {{{__( 'Welcome to WordPress %s' )}}} string was made reusable in #65895.

== Proposed change ==

Leave the version handling as it is. Comment {{{$display_major_version}}} so the next patch does not treat the hardcode as stale:

{{{
// Release this page describes. Bump this in the same commit as the copy, images,
// and documentation links. Prerelease and minor versions keep this value.
$display_major_version = '7.1';
}}}
"	trascaandrei
1	60091	Improve language dropdown usability		I18N		normal	normal	Future Release	defect (bug)	assigned	dev-feedback	2023-12-18T09:08:05Z	2026-03-27T07:27:22Z	"**Issue**
A:
When selecting Indian languages like Malayalam, Tamil, Kannada etc, the default choice on the front end are  മലയാളം, தமிழ் etc. The issue with this is, with the default keys on the keyboard, one cannot select the language, as it follows the QWERTY format(of A-Z). So the user will have to go through each and every element in the list. ALso 

B: 
Languages like Tamil given twice. Possible reason one is Indian Tamil and other is Srilankan Tamil. But on the frontend it is written as""தமிழ்"". So identifying which is what is difficult for the user. And also the difference in completed translations could be an issue in the future. Refer Image

**What could be done.**
Give the English word for the language next to Indian languages, മലയാളം (Malayalam), தமிழ் (Tamil_IN), தமிழ் (Tamil_LK) and make it searchable. So when 'മ' is not available on keyboard then ""M"" is typed and മലയാളം (Malayalam) should be shown on the list.

Also if possible rather than it being completely dropdown a textbox with dropdown would be a good option.

"	alanjacobmathew
1	20974	Remove obsolete locale-specific files on upgrade	dd32	I18N	3.4	low	normal	Future Release	defect (bug)	assigned	close	2012-06-15T14:06:43Z	2024-02-28T16:49:36Z	"We used to have `wp-content/languages/ru_RU.css` file in ru_RU package.

Since #19603, it's no longer needed, but is still left over on upgrade. We should probably include it in `$_old_files`.

I suppose the same applies to zh_CN and he_IL packages ([19825])."	SergeyBiryukov
1	47546	The language used for the `lang` attribute isn't validated before being used		I18N		low	minor	Future Release	defect (bug)	new	changes-requested	2019-06-15T13:48:41Z	2025-06-16T11:33:45Z	"In the admin area, the `lang` attribute can be populated directly from the `WPLANG` option or the user's `locale` meta field. In these cases, no check is performed to ensure that the corresponding language files exist before using the value for the `lang` attribute.

This can come about if the language files that are used by a user or the site are deleted, or the value is otherwise modified to include an incorrect value.

For example, running `wp user meta update admin locale it_IT` will result in `lang=""it_IT""` being added to the `<html>` element, even if the corresponding language files don't exist. This can result in the browser being confused about the language of the page, and can also result in assistive technology handling or pronouncing text incorrectly.

It would be preferable if the existence of the corresponding language files was checked before the `lang` attribute was output, falling back to `en_US` as necessary. I'm not sure if it's best to make this change in the `get_language_attributes()` function, or lower in the `determine_locale()` or `get_bloginfo()` functions."	johnbillion
1	57588	The picking of plural form #0 is hard-coded for singular strings		I18N	6.1	normal	minor	Awaiting Review	defect (bug)	new	close	2023-01-30T18:49:21Z	2024-11-06T22:18:44Z	"If a translation with plural forms exist, but a simple (without count) message is requested, the plural form with index 0 is returned regardless of the MO file's Plural-Forms definition.

For example, if there is a PO file with the following Plural-Forms:
{{{
""Plural-Forms: nplurals=3; plural=n%10==0||( n%100 >= 11 && n%100<=19)? 0 :(n%10==1 && n%100!=11 ? 1 : 2);\n""
}}}

(You can see that one item would be in plural form ID=1, not ID=0.)

And this translation entry:
{{{
msgid ""Product""
msgid_plural ""Products""
msgstr[0] ""Prod 0,10,11""
msgstr[1] ""Prod 1,21,31""
msgstr[2] ""Prod 2,3,4""
}}}

And you have this PHP code:
{{{
<?php
  esc_html_e('Product', 'my_payment');
  echo _n('Product', 'Product', 2,'my_payment');
  echo _n('Product', 'Product', 1,'my_payment');
?>
}}}

You will get this output:
{{{
Prod 0,10,11
Prod 2,3,4
Prod 1,21,31
}}}

As you can see, the first message is incorrectly selected for count 1.
The following ones are correctly selected for counts 2 and 1.

The selection of the hardcoded plural form ID=0 happens here: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/pomo/translations.php?rev=54469#L108

If a not-counted message is requested and the available translation turns out to be count-dependable, `translate` should probably either forward the call to `translate_plural` passing count `1`, or return the untranslated fallback or an empty string (with a notice) if this is considered as a non-existing translation.

Although asking for a not-counted string but having count-dependable translations is not a correct situation in itself, it can easily occur also due sloppy programming in third party themes or plugins, or maybe occur during changes to translation files or translatable strings.
"	jaanise
1	63725	Theme textdomain not loaded, if plugin used the textdomain before	swissspidy	I18N	6.8	normal	minor	Awaiting Review	defect (bug)	assigned	has-patch	2025-07-19T14:42:13Z	2026-11-08T07:36:02Z	"If a plugin uses the same textdomain as a theme, the theme's textdomain path is not loaded and still requires manually calling load_theme_textdomain()
This is because of:
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/class-wp-theme.php#L1522

This means that themes' still must call load_theme_textdomain() themselves to avoid plugins accidentally hijacking their textdomain and their translations not getting loaded correctly.

While generally this isn't an issue (since it not something that should be done/happen) that plugins use the same textdomain as a theme, the real world use cases where this happens all the time:
1) miss-spellings. e.g. plugin has textdomain foo-bar, theme uses foobar. If the plugin has a single string with the wrong textdomain, the problem happens
2) copied code (e.g. plugin authors copied or reused part of a theme without changing the textdomain)
3) customizations: end-users (and developers) might copy strings from themes to plugins as a first step of customization. This will cause the theme's textdomain to not load correctly.

Why this is marked as ""blocker"":
by removing ""load_theme_textdomain"" in a theme since WP 6.8 for a theme, theme authors get loads of support requests due to translations not loading due to no fault of their own - but bc plugins are using the wrong textdomain (accidentally).
This means for now, the recommended solution for themes is to keep their ""load_theme_textdomain"" until that issue is resolved.


"	kkmuffme
1	40932	Word breaks the layout		I18N		normal	normal	Future Release	defect (bug)	new	has-patch	2017-06-06T19:43:12Z	2018-05-22T16:38:38Z	Could we change the string ''Add'' in a symbol, like in the link flyout menu? Because the german word ''Hinzufügen'' for this string is too long and this breaks the layout in WordPress 4.8. The string appears in two places with different meaning, maybe a plus or enter sign is enough.	elisa-demonki
1	63974	.mo file loaded as UTF-8 by default - non-standard and ignoring Content-Type headers		I18N		normal	normal	Awaiting Review	enhancement	new		2025-09-15T05:21:56Z	2025-09-15T16:07:39Z	"wp-includes/l10n/class-wp-translation-file-mo.php

`protected function parse_file(): bool {` 

Create a.po with content
```
msgid """"
msgstr """"

msgid ""Foo bar""
msgstr ""Foo bär""
```

Run `msgfmt --check-format --no-hash a.po -o a.mo`

Now read a.mo with parse_file() - you'll get ""Foo bär"" - which is wrong, since there is no ""Content-Type: text/plain; charset=UTF-8\n"" header in the file, therefore the .mo should not be read as if it were UTF-8
This can be seen with:
`msgunfmt --no-wrap a.mo -o b.po`
Not only will you get an error for ""invalid multibyte sequence"" here, that invalid multibyte sequence will also be removed.

If user data ends up in a .mo (which it does, since some multilingual plugins will save translatable strings - including customer reviews - in .mo files), this would potentially allow for an attack vector?

Otherwise, this behavior at least leads to non-interoperable .mo files being silently accepted (e.g. plugins providing .mo files that cannot be converted back to .po files with basic unix tools, since any multibyte character will fail msgunfmt)"	kkmuffme
1	38869	"Change ""Site Default"" in User Profile Options for Language to ""Site Setting"""		I18N	4.7	normal	normal	Awaiting Review	enhancement	new		2016-11-19T13:32:58Z	2022-09-11T17:46:43Z	"In https://core.trac.wordpress.org/browser/trunk/src/wp-includes/l10n.php?marks=1148#L1148 is the original text-string ""Site Default"" the very first choice in the dropdown menu for the custom user profile language choice.

Wouldn't it be better to change that to ""Site Setting""?

Because it does mean that a user profile might have the same language as it is set under Settings > General in the admin. It is not necessarly a default language, that is choosen in the general site settings for the Website frontend appearance, which might justify the string ""Site Default"" there.
"	transl8or
1	46278	Consider internationalization of delimiter: human_readable_duration		I18N	5.1	normal	normal	Future Release	enhancement	new	has-patch	2019-02-19T05:37:48Z	2019-02-19T13:42:11Z	"I have a request for the human_readable_duration function added in version 5.1.

Please make it possible to change the delimiter of concatenation by language.
{{{
return implode( _x( ', ', 'duration' ), $human_readable_duration );
}}}


"	tmatsuur
1	39756	Extend the jQuery datepicker localization		I18N	4.8	normal	normal	Awaiting Review	enhancement	new	has-patch	2017-02-01T09:33:47Z	2023-05-30T08:41:53Z	"Since #29420 whenever the jQuery datepicker script is enqueued it gets automatically localized. However, there are three options still not properly managed, mentioned and described in ticket:29420#comment:22, that should also get included, as they are indeed mentioned in the Localization section of the official documentation:
https://api.jqueryui.com/datepicker/
Unless we do include them, our datepicker localization is incomplete and can not replace using external resources, hence plugins relying on localized datepickers can not truly trust and make complete usage of the bundled locales.

The official localization files for the whole jQuery UI suite can be fond here:
https://github.com/jquery/jquery-ui/tree/master/ui/i18n
and they all include such options.

Those missing localizable options are:
* `weekHeader`: the string on the week column header when `showWeek` is set to `TRUE`.
* `showMonthAfterYear`: a boolean to switch the month and year in the datepicker header, seems to be used by East Asia languages.
* `yearSuffix`: the optional string to append to the year in the month headers.

We have at least two approaches on how to include the missing localizable options:
* We can filter the array of localization data added as an inline script for `jquery-ui-datepicker`, so plugins and third parties can add such options by themselves (hence forcing them to include those localizations on their own, and enter a possible race to be the one that forces its values).
* We can add them as first-class properties in the `WP_Locale` class, stating as comments for translators both the meaning of the value that they are translating, and the jQuery UI localization files they can use to set the right value on their language.

Although I understand that providing localization for external libraries might not be in our roadmap, this is what #29420 actually did. It managed to cover most of the localizable options since we already had their translations. This is slightly different as we need to add specific properties for specific options, but still I would go with the second approach, and I will be attaching soon a patch for its consideration."	jadpm
1	66240	Show plugin translation completion and allow managing installed language packs		I18N		normal	normal	Awaiting Review	enhancement	new		2026-10-04T11:50:07Z	2026-10-04T11:50:07Z	"**Summary**
Improve translation management for installed plugins by showing translation availability and completion status directly on the Plugins → Installed Plugins screen, and allow administrators to remove unnecessary installed plugin language packs.

**Problem**

WordPress automatically downloads and updates translation packages for plugins when translations are available for the site's installed languages.
However, administrators currently have very little visibility or control over these plugin translations from the WordPress admin interface.

For an installed plugin, the administrator cannot easily see:
- which plugin translations are currently installed;
- how complete a translation is for a particular locale;
- whether a translation package is available but not installed;
- whether a translation is incomplete;
- which translation packages are no longer needed on the site;
- how to remove an unnecessary translation package without manually working with files in wp-content/languages/plugins/.

This becomes especially noticeable on multilingual sites, development environments, migrated sites, or sites where the active locale configuration has changed over time.
As a result, unused translation files may remain installed, while administrators have no convenient way to understand their status or manage them.

**Proposed solution**

Add a translation management interface for each plugin on the Installed Plugins screen.
For example, a new action such as:
Translations
could open an expandable section, modal, or another suitable interface showing available locales for the plugin.
Example:
Contact Form 7
Translations:
{{{
Ukrainian (uk)     100% translated    Installed
German (de_DE)      96% translated    Installed    [Remove]
Polish (pl_PL)      84% translated    Not installed
Spanish (es_ES)    100% translated    Installed    [Remove]
}}}

The exact UI could be discussed separately, but the important information would be:
- locale / language name;
- translation completion percentage;
- whether a language pack is available;
- whether it is currently installed;
- when appropriate, an action to remove the installed language pack.
Translation completion percentage
It would be useful to expose the translation completion percentage because the current state is otherwise difficult to understand.
For example:

{{{
Ukrainian — 100%
German — 96%
Polish — 84%
}}}

This gives the administrator much more useful information than simply knowing that a translation exists.
It also helps explain why a particular plugin may still contain untranslated strings even though a translation package is installed.
Ideally, this information could be obtained from the WordPress.org translation infrastructure.
If the current translations API does not expose the translation completion percentage, this may require an associated WordPress.org Meta / Translation API change.
Managing installed language packs
Administrators should also be able to remove unnecessary plugin translation packages from WordPress admin.
Currently this generally requires direct filesystem access and knowledge of files stored under:

{{{
wp-content/languages/plugins/
}}}

A simple Remove translation action would make this functionality accessible without requiring FTP, SSH, hosting file managers, or manual file deletion.
The action should only remove the translation package for the selected locale and plugin.
It should not:
- remove the plugin;
- change the site's locale;
- remove translations for other plugins;
- affect translations bundled directly inside the plugin.

**Possible use cases**
1. Site language was changed
A site previously used several locales and later switched to another language.
Old plugin translation packages may remain installed even though they are no longer required.

2. Multilingual development site
During development or testing, several languages may be temporarily installed.
After testing is finished, administrators should be able to remove translations that are no longer needed.

3. Understanding incomplete translations
A plugin may appear partially untranslated.
Displaying the completion percentage would help administrators understand whether this is caused by an incomplete community translation rather than by a problem with WordPress or the plugin itself.

4. Better transparency
WordPress currently downloads plugin translations automatically, but the process is mostly invisible to site administrators.
Providing translation information directly in the plugin management interface would make this behaviour easier to understand.

**Possible UI location**

One possible implementation would be to add a new plugin row action:
Settings | Deactivate | Translations
Selecting Translations could expand a secondary row underneath the plugin, similar to other plugin information displayed on this screen.
Another possibility would be a dedicated modal or details screen.
The exact UI is less important than providing access to the information and management actions.

**Scope**

This proposal is mainly about:
1. displaying plugin translation information in WordPress admin;
2. exposing translation completion status where possible;
3. showing which plugin language packs are installed;
4. allowing administrators to remove unnecessary plugin language packs.
The proposal does not suggest changing how translations themselves are created or approved on translate.wordpress.org.

Technical considerations

WordPress already has infrastructure for:
- discovering installed translations;
- downloading language packs;
- updating language packs;
- removing plugin translations when a plugin itself is deleted.

Therefore, much of the underlying language-pack functionality already exists.
The main additions would likely involve:
- exposing this information in the Installed Plugins UI;
- providing a safe action for deleting a specific plugin language pack;
- obtaining translation completion information from WordPress.org where available.
If translation completion percentages are not currently exposed by the WordPress.org translation API, that part may require a related WordPress.org Meta ticket.

**Expected benefit**

This would make plugin translation management more transparent and give site administrators greater control over automatically installed language resources.
It would also make WordPress easier to manage on multilingual sites and help administrators distinguish between plugin issues and incomplete community translations."	blackstar1991
1	62428	The Date Format in Simplified Chinese does not work properly.		I18N		normal	normal	Awaiting Review	enhancement	new		2024-11-14T16:45:12Z	2024-11-15T18:29:53Z	"Hi Team,

We are facing some date format issue for Simplified Chinese language.

We have changed the Site Language to Simplified Chinese, when we changed the Date Format Y 年 F j 日 to this, the date is not getting displayed properly as expected, but when we remove the space between F and j from the date format like this Y 年 Fj 日 it works as per properly. We have demonstrated the issue in the video attached below. Kindly check.

Reference: https://monosnap.com/direct/W7MmEpT1CFjbEwIs029Mk35HeWhru2"	shridham
1	46305	Update emails w/ placeholders to use sprintf		I18N		normal	normal	Awaiting Review	enhancement	new		2019-02-22T05:45:55Z	2019-02-22T06:48:49Z	"In #32263 several comments for 'Do not translate...' placeholders in email content were introduced. This has been the convention it seems throughout core. 

This puts the onus on translators to read those comments as well as not accidentally change them or drop one of the surrounding # characters on many of them.

Can this simply be switched to sprintf functions with numeric placeholders and the translator comments be updated to indicate the placeholders. This seems a little nicer of an approach than simply saying don't do something and hoping for the best.

Here's all the instances I've found;
https://github.com/WordPress/WordPress/blob/56c162fbc9867f923862f64f1b4570d885f1ff03/wp-admin/ms-delete-site.php#L49-L67
https://github.com/WordPress/WordPress/blob/50ddffbac37fdae9298d1f11fe1dd7b8535fc839/wp-includes/user.php#L2015-L2029
https://github.com/WordPress/WordPress/blob/50ddffbac37fdae9298d1f11fe1dd7b8535fc839/wp-includes/user.php#L3036-L3052
https://github.com/WordPress/WordPress/blob/0b15142c0bb375fee19f9576356bf2aac2a56d2a/wp-includes/ms-functions.php#L1544-L1560
https://github.com/WordPress/WordPress/blob/0b15142c0bb375fee19f9576356bf2aac2a56d2a/wp-includes/ms-functions.php#L2275-L2289
https://github.com/WordPress/WordPress/blob/dcdfd7f412cb83f43116f6e37d7bfba4b4673cde/wp-admin/includes/file.php#L2204-L2218
https://github.com/WordPress/WordPress/blob/729c8e875fd84e29cb26103ee43eec7f67a61f6e/wp-admin/includes/misc.php#L1244-L1262
https://github.com/WordPress/WordPress/blob/c204ac4bc7972c9ca1e6b354ec8fb0851e255bc5/wp-includes/functions.php#L6473-L6486"	garrett-eclipse
1	60586	.xml imports broken		Import	6.4.3	normal	normal	Awaiting Review	defect (bug)	new		2024-02-20T21:32:55Z	2024-02-20T21:56:15Z	"After the most recent update, imports using the WordPress Importer appear to be broken. Specifically, I've seen this with post imports. 

This happens on even a clean install with the default theme and no plugins activated.

The .xml files are well under 1mb. I tried on a fresh WP installation after the first set of failures. I then tried an export from a third site to make sure the issue wasn't with the site the initial export came from, and this second export also failed to import onto the fresh installation. I then tried to import these into a completely separate unused WP installation that was recently updated to the latest WP version, and those also failed. 

It appears to import the first post before failing. This happens regardless of the import file, so it's not the same post and therefore not anything in a particular post causing the issue. 

The import fails whether or not you try to import attachments, and it fails whether you try to create a new user or assign the posts to an existing user. 

Error message:

""There has been a critical error on this website. Please check your site admin email inbox for instructions.""

But no emails are sent to the admin email address. "	jhmattern
1	38288	Connection Timeout when importing heavy .xml (LiteSpeed)		Import	4.6.1	normal	normal	Awaiting Review	defect (bug)	new		2016-10-11T21:24:41Z	2019-04-01T14:49:05Z	"When importing big .xml files using the WordPress importer, the connection times out on LiteSpeed servers.

This is due to server not sending new content to the browser, so connection automatically closes. This is different to a PHP timeout due to low max_execution_time.

This might be prevented by showing some sort of progress bar so the connection is not closed due to inactivity."	jscrm
1	35839	Escape backslashes upon export for better import		Import	4.4.2	normal	normal	Awaiting Review	defect (bug)	new		2016-02-15T21:10:19Z	2017-03-30T01:05:40Z	"Exporting a WordPress site and importing it again will lose backslashes in Post content.
For example, if you had a post discussing c:\Windows\System32\calc.exe it would be imported as c:WindowsSystem32calc.exe"	JasonH09
1	15760	"LiveJournal Importer mishandles some <lj-cut> and <lj user=""""> expressions"	westi	Import		normal	normal	WordPress.org	defect (bug)	assigned	close	2010-12-10T04:45:17Z	2025-07-14T14:37:38Z	"There is a note on plugins.trac ticket 1231 that says this should be handled in core.trac instead, so I'm cross-posting it here. The patch and ticket were originally added by a-bishop: 
http://plugins.trac.wordpress.org/ticket/1231

Reproduction steps: 1. Create a LiveJournal? entry that has <lj user=""foo"" /> in it. Note that this is XML-ish 2. Try to use the livejournal-importer on this post.

Bug The <lj user=""foo"" /> gets ignored because the regular expression is too strict.

I've attached a patch that makes LiveJournal? Importer recognize the XML-ish version.

Patch:[[BR]]
http://plugins.trac.wordpress.org/attachment/ticket/1231/livejournal-importer.patch"	designsimply
1	39802	"Multisite: ""No importers are available"" error message shown to site admins, but not to network admins"		Import	4.7.2	normal	normal	Awaiting Review	defect (bug)	reopened	has-patch	2017-02-06T22:32:40Z	2026-06-16T11:42:43Z	"Steps to reproduce:
* Consider one site in a WordPress multisite install.
* Verify that the ""WordPress Importer"" plugin is installed in the network, but disabled on this specific site.
* Log in as a ''site'' administrator.
* Click on ""Tools"" and ""Import"".
* You'll see the message ""No importers are available.""

If, however, you open the same screen as a ''network'' admin, WordPress will show a link ""Run importer"". If you click it, WP will activate the ""WordPress Importer"" plugin and proceed with the import process. 

This inconsistency is confusing to users. It does not really make sense because both ''site'' admins and ''network'' admins have the necessary capabilities to activate the importer plugin (provided that it is installed)."	thomaswm
1	41952	WP import: Bug with import gziped file from web		Import	4.8.2	normal	normal	Awaiting Review	defect (bug)	new		2017-09-22T04:54:24Z	2017-09-22T04:54:24Z	"When i import svg image with gzip compression, then i give error ""Remote file is incorrect size""

In [https://plugins.trac.wordpress.org/browser/wordpress-importer/trunk/wordpress-importer.php#L1007 wordpress-importer.php:1007] your check file size.
If file is gziped, when filesize on disc != content-length in headers"	arybnikov
1	64724	WordPress Importer does not remap noteId in block metadata when reassigning comment IDs		Import	6.9.1	normal	minor	Future Release	defect (bug)	new		2026-02-25T12:00:46Z	2026-02-26T06:29:31Z	"**Steps to reproduce:**

1. Create a post/page with block notes (WP 6.9 Notes feature)
2. Export via Tools → Export
3. Import the WXR file into another site (or same site) via the WordPress Importer
4. Open the imported post in the editor

**Expected:** Notes appear attached to their respective blocks

**Actual:** Notes import as comments but are unlinked from blocks. The importer assigns new comment_id values but does not update the corresponding ""noteId"":N values in block metadata within post_content.

**Workaround:** Post-import script that remaps noteId references in post_content to the new comment_id values by matching on insertion order."	tenacityio
1	41034	importing users in multisite: should add existing users to the current blog		Import	4.8	normal	normal	Awaiting Review	defect (bug)	new		2017-06-13T20:44:57Z	2024-11-11T05:58:07Z	"When importing a WXR file in a multisite setup, if

1. an author in the WXR file exists in the multisite but **not** in the current blog; and
1. the ""import author"" route is taken (i.e., neither ""create new user"" nor ""assign posts to an existing user"" route is taken)

then a ""Failed to create new user"" error is reported.

Instead of that error, the existing multisite user should be added to the current blog.

I can create a patch that implements this if folks think it would be a good idea."	pbiron
1	45381	importer should remap attachment IDs when they appear in a block's attributes		Import		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2018-11-19T18:07:45Z	2021-12-22T19:20:43Z	"Related: https://github.com/WordPress/gutenberg/issues/10535

> One idiosyncrasy of the WordPress Importer is that attachment ids can change in the import process. If an existing WordPress site already has a number of posts, those existing post ids can conflict with the post ids included in the import file.
>
> To accommodate the changing ids, the WordPress Importer has backfill_parents() (ref) and remap_featured_images() (ref). Both of these methods use a mapping of old=>new post ids to update existing references to the old ids.
>
> Along the same lines, Image Blocks will need their attachment ids updated, otherwise they can end up in a crashed state. To replicate what the user will experience, simply insert an Image Block and change its attachment id reference to an invalid id:

I've done some experimenting and the mods to importer to support such remapping are fairly minor.  Before submitting a patch I'll have to account for the recent change in the Gallery block (https://github.com/WordPress/gutenberg/pull/11540).

The mods I have work only if the attachments in question are included in the same export/import as the posts that have blocks that reference them. For example, if you export posts separately from Media and do 2 separate imports the IDs are not remapped. If the attachments are not included in the same export as the posts that reference them, then the importer currently does not remap the URLs in post_content either whether the media is referenced in a block or in ""classic"" content (i.e., they still point to URLs on the exporting host)...so I do not think that is a major flaw in what I've written :-)

I do not see any way around that, but wanted to mention it in case anyone has any bright ideas...before I finalize and submit that patch."	pbiron
1	64208	Defining interactivity API context with single quotes fail		Interactivity API	6.8.3	low	minor	Future Release	enhancement	new		2025-11-06T09:16:27Z	2025-11-06T21:16:04Z	"In [https://developer.wordpress.org/block-editor/reference-guides/interactivity-api/api-reference/#wp-bind the documentation], we can read an example using double quotes to define interactivity API context :
{{{
<li data-wp-context='{ ""isMenuOpen"": false }'>
}}}


However, the following HTML code is also valid (using single quotes instead of doubles inside the object):
{{{
<li data-wp-context=""{ 'isMenuOpen': false }"">
}}}
But it silently fails to properly define the context. I understand that single quotes are not valid in JSON, but I think that it should raise an error.

I think it should also be mentioned more explicitly in [https://developer.wordpress.org/block-editor/reference-guides/interactivity-api/api-reference/#wp-context the documentation] : to define a context with double quotes inside, one should surround it with single quotes, whereas all other HTML attributes definitions are surrounded by double quotes.
"	Fab1en
1	42610	Admin created account password reset process not reverse proxy friendly		Login and Registration	4.9	normal	normal	Awaiting Review	defect (bug)	new		2017-11-17T21:08:41Z	2017-11-17T21:08:41Z	"WordPress newbie, so feel free to point me to a better resolution. Couldn't find anything quite like this.

Have WP running mostly correctly behind a reverse proxy. So no one ever directly touches blog.<domain>.com (the WP site), instead they access it through www.<domain>.com/blog

If I create user accounts in the admin, it sends initial password reset links to the new accounts, which have a format like www.<domain>.com/blog/wp-login.php?action=rp&key=<hash>&login=<user>

In wp-login.php, I see the case that catches the rp action, and it does something with the key and user parameters, then strips them off and redirects again to wp-login as follows:

{{{#!php
wp_safe_redirect( remove_query_arg( array( 'key', 'login' ) ) );
}}}

I'm unclear on why this line doesn't incorporate site_url as do several other places in nearby code. The user ends up getting a redirect to /wp-login.php. That is, from the '''user's perspective''' (not seeing the reverse proxy activity), it looks like:

www.<domain>.com/blog/wp-login.php?action=rp&key=<hash>&login=<user>
redirects to
www.<domain>.com/wp-login.php?action=rp
which is a 404

From the '''WP server's''' perspective, it told
blog.<domain>.com/wp-login.php?action=rp&key=<hash>&login=<user>
to redirect to
/wp-login.php?action=rp
which would have been fine if there were no reverse proxy involved.

This is not the desired behavior in my case, and I would think it would be safe to redirect to 
<site_url>/wp-login.php?<query string with key and login removed>

I can work around it in the main site's rewrite rules by forcing /wp-login to /blog/wp-login, but that seems as if it shouldn't be necessary.

Thanks for your consideration."	normjhansen
1	50684	Font/font-size change on login screen		Login and Registration		normal	normal	Future Release	defect (bug)	new		2020-07-16T19:29:59Z	2023-08-19T09:45:51Z	"On Windows 10, when a user logs in, the font and the font-size in the input boxes change. 

To be more precise, the wrong font and font-size is initially displayed. Only after clicking, the correct font and font-size appear.  

A recording:

[[Image(https://i.imgur.com/siMssM6.gif)]]

"	superpoincare
1	51008	Issue with multisite new user registration		Login and Registration	5.5	normal	critical	Awaiting Review	defect (bug)	new		2020-08-14T18:51:00Z	2020-08-14T19:01:50Z	"I replicated this issue with a brand new install.

I am using multisite setup. I updated to WP 5.5 and noticed it no longer allows you to register for the individual site. In this example(testsite1 is the sub-site), When a user clicks register ->  test.com/testsite1/wp-login.php?action=register It'll redirect the user to the main site -> test.com/wp-signup.php

When you sign up using that page, the user is not connected to any site within the network. However, the user does appear in wp-admin/network/users.php"	onehare
1	50672	Login Mask jerks when  I define Privacy Policy page in Chrome Browser		Login and Registration	5.4.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-07-15T19:50:30Z	2023-08-21T11:55:44Z	"Login Mask jerks when define Privacy Policy page. The problem occurs only in Chrome Browser and /wp-login.php

[https://dl.dropbox.com/s/8a7gqtakajn7ey6/Login%20jerks.gif]
"	Frank Noack
1	61289	Logout error on Multisite with directories - Login subsites		Login and Registration	6.5.3	normal	critical	Awaiting Review	defect (bug)	new		2024-05-24T08:59:12Z	2024-05-28T11:52:38Z	"The multisite is created with directories.
The problem is that I get the internal server error when logging out the pages. Only the page defined as the main page still works. I created the multisite 3 years ago and the logout worked without problems on all pages. 
I also renamed the plugin folder - without success - no logout even without plugins.

The error code “500-Internal Server Error” does not only occur when logging out, but also when directly calling wp-login.php for the subpages."	s.wini
1	61155	Maximise compatibility with password managers when resetting password		Login and Registration		normal	normal	Awaiting Review	defect (bug)	new		2024-05-06T21:30:19Z	2024-05-07T06:24:55Z	"When I reset my password via the ""Lost your password?"" link on the login screen, my password manager doesn't prompt me to update my existing login credentials for that site. It's a really easy way to lose your new password.

Tested with:

* 1Password in Chrome on macOS
* Firefox built-in password manager on macOS

At a minimum, WordPress should work with the most popular password managers, including 1Password, LastPass, and the password managers built into Chromium-based browsers and Firefox, on desktop and mobile.

* What can WordPress do to maximise compatibility with password managers when resetting a password?
* Are there additional HTML attributes or hidden fields that should be implemented into the password reset process?
* Is the automatically generated password part of the problem?
"	johnbillion
1	65076	Missing escaping in title tag		Login and Registration		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-04-15T03:41:08Z	2026-04-15T13:02:03Z	"**Missing escaping in `<title>` tag** ⭐ TOP PICK
- **File:** [src/wp-login.php](src/wp-login.php#L97)
- **Line:** 97
- **Problem:** `<title>` tag outputs `$login_title` without escaping. Special characters could break HTML structure.
- **Severity:** Security best practice
- **Current Code:**
{{{
  <title><?php echo $login_title; ?></title>
}}}
- **Fix:**
{{{
  <title><?php echo esc_html( $login_title ); ?></title>
}}}"	maheshpatel
1	60801	New sessions are created when user authenticates but there already are active sessions		Login and Registration	6.4.3	normal	normal	Awaiting Review	defect (bug)	new		2024-03-18T18:28:41Z	2025-05-12T01:38:19Z	"**The problem:** When a user logs in to WordPress a new session is created. If the user opens a new browser tab and navigates to website/wp-admin, the user does not need to authenticate because of the session cookies are saved in the browser, which is the expected behaviour. The same happens even when the user closes the browser completely and reopens it within the duration of that session. 

However, if the user navigates to the URL *website/wp-login.php* on the website they are already logged in, the user is presented with a login page, and upon authenticating WordPress creates a new session and new cookies etc, instead of ""retrieving"" the existing logged-in session.

**How to reproduce:**

1. Log in to a WordPress website
2. Open a new browser tab on the same browser (you can close the previous one)
3. Navigate to the login page of the same website you are already logged in to: *website/wp-login.php*
4. Log in 

At this point there are two different sessions for the same user in the database and in the browser the user has multiple sets of cookies for the different sessions.

**The issues this causes:** 
1. Excessive amount of unnecessary session data in the database. We've seen some large websites with tens of thousands of session entries in the database.
2. Site admins who try to control / limit / manage the number of simultaneous user sessions with third party plugins end up having a lot of problems, such as locking out legit users etc

**Possible solution?:** There are a few possible solutions, however, the easiest one we can think of is to check for session cookies in the users' browsers whenever they access the *wp-login.php*, and if there are, retrieve that session."	robert681
1	53348	No form to log in when visiting wp-login.php with a given query string	SergeyBiryukov	Login and Registration		normal	normal	Future Release	defect (bug)	reviewing	needs-unit-tests	2021-06-07T12:46:39Z	2026-04-09T04:48:02Z	"When I visit the wp-login.php page with specific query strings, I get a blank page. I don't get a form to log in.

The query strings that cause the blank page are

 - wp-login.php?action=checkemail

 - wp-login.php?checkemail=foo
 - wp-login.php?checkemail=bar
 - wp-login.php?checkemail=baz
 - Note though, wp-login.php?checkemail=confirm does give me a form"	henry.wright
1	63490	Non secure sudomain site url in site activation email		Login and Registration	6.8	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-05-27T14:03:02Z	2026-01-27T18:15:20Z	"I've enabled Network site settings for `Both site and user registration`. 

After creating a subdomain and registering a new user site, I got the email requesting site activation. Both a non-secure site URL and a site activation URL are included in the email. The URL of the new site must be secure. When an email contains a non-secure URL and open in browser, an error message stating ""Warning: Potential Security Risk Ahead"" appears.

I've also checked for subdirectory install, the activation email also contain nonsecure url for new subdirectory site.


Are we keeping the non secure in URL on purpose? We should have handle it for subdirectory install at least by checking the main site is secure or not.

Also there are inconsistencies for `http` and `https` url in activate and signup emails.

"	umesh.nevase
1	44333	Password hint label needs to be re-worded and needs to have a minimum password length check		Login and Registration		normal	major	Awaiting Review	defect (bug)	new	dev-feedback	2018-06-08T14:39:10Z	2026-06-04T08:50:05Z	"When resetting password, the help text under password box says:

{{{
Hint: The password should be at least twelve characters long. To make it stronger, use upper and lower case letters, numbers, and symbols like ! "" ? $ % ^ &amp; ).
}}}

Although it says **should be at least twelve characters long**, I am able to use only one character!

1. The above help text needs to be re-worded with some like:

{{{
Hint: The recommended length of the password should be at least twelve characters and must have at least X characters. To make it stronger, use upper and lower case letters, numbers, and symbols like ! "" ? $ % ^ &amp; ).
}}}

`X` can be a number say 6, 8 etc.

2. I believe there needs to be a minimum length check."	subrataemfluence
1	46033	Please fix redirect in wp-login.php		Login and Registration	5.0.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2019-01-18T10:45:43Z	2019-01-19T22:32:26Z	"On line 619 in wp-login.php there is a redirect that does not take in account site_url setting which is braking experience in some cases. Therefore, the suggested fix is replace 

{{{#!php
<?php
wp_safe_redirect(remove_query_arg( array( 'key', 'login' ))  );
}}}



with 

{{{#!php
<?php
wp_safe_redirect( site_url(remove_query_arg( array( 'key', 'login' )) ) );

}}}

"	tinodjwp
1	49633	Trim cookie paths		Login and Registration	5.3.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-03-12T16:00:09Z	2025-09-17T12:10:49Z	" I had just migrated a WP website that was very old.  I encountered an issue that took several hours to debug.

The site was on PHP 5.6 and I updated everything to use PHP 7.3. At PHP 5.6 this was not an issue, but was at PHP 7.3.

The site seemed to be loading fine. No errors in the PHP error logs. However, I was not able to login to the WP Admin. After I defined error logging true. I get this:
[[Image(https://kevinbrent.com/images/1.png)]]

After several hours of debugging I found this:
[[Image(https://kevinbrent.com/images/2.png)]]

I was able to fix this in the DB. But, feel that WP could simply trim
 spaces from cookie paths since they are not allowed by PHP.

[[Image(https://kevinbrent.com/images/3.png)]]

There are 3 constants that require this attention.

{{{
COOKIEPATH
}}}


{{{
SITECOOKIEPATH
}}}


{{{
PLUGINS_COOKIE_PATH
}}}


"	Kevin Brent
1	47088	Visting wp-login.php whilst logged in logs you out		Login and Registration	3.0	normal	normal	Awaiting Review	defect (bug)	reopened		2019-05-01T08:00:01Z	2023-10-10T00:28:18Z	"I leave multiple, regularly-used WP admin tabs open in a browser window. The login sessions time out, as expected, resulting in tabs with URLs like https://example.com/wp-login.php?redirect_to=https%3A%2F%2Fexample.com%2Fwp-admin%2Fadmin.php%3Fpage%3Dfoo-bar&reauth=1

If log in on such a tab to do something, then switch to another tab that also has that type of auto-logged-out URL, I am immediately logged out of the site.

I would expect WP to realise that I am logged in and simply honour the redirect already in the URL, or at least provide the choice of logging out or going to the redirect page/dashboard."	lev0
1	63896	is_login() will trigger on non-login pages		Login and Registration	6.8.2	normal	normal	Awaiting Review	defect (bug)	new		2025-08-29T13:44:01Z	2025-09-10T17:46:26Z	"The test for {{{is_login()}}} will falsely issue ""true"" in two circumstances we've observed.

1) the root page ""/""
2) any page request that matches a part of the URL that follows a ""/""

eg in this example a request for ""/d"" is a login page, but ""/d/"" is not.

{{{
php > $url = ""https://documents.example.com/wp-login.php"";
php > echo stripos($url, ""/"");
6
php > echo stripos($url, ""/documents"");
7
php > echo stripos($url, ""/doc"");
7
php > echo stripos($url, ""/d"");
7
php > echo stripos($url, ""/d/"");
php > echo stripos($url, ""/wp-login.php"");
29
php > echo stripos($url, ""/w"");
29
php > echo stripos($url, ""/xxx"");
php > 
}}}
"	govpress
1	23637	wp-signup.php has overly aggressive CSS		Login and Registration	3.0	normal	normal	Future Release	defect (bug)	new		2013-02-27T14:33:46Z	2020-03-04T06:25:13Z	The CSS added through wp_head by wp-signup.php stops Multisite form fields from being styled through inheritance. Allowing inheritance will result in more consistent styling with the active theme (for example, field font-size).	kwight
1	40595	wp_authenticate_username_password() should respect WP_Error object generated by higher priorities		Login and Registration	4.7.4	normal	normal	Awaiting Review	defect (bug)	new		2017-04-28T13:46:54Z	2017-04-28T13:59:39Z	"If I've read through #19714 but believe this issue should be reopened.  This issue affects anyone who needs to alter the normal authentication process by hooking into the authenticate filter at a high priority.  Functions in the process flow should respect a WP_Error object if that is what it is handed, including wp_authenticate_username_password().  

'''Expected Behavior'''
function hooks ''authenticate'' filter, assigns priority 10. Function invalidates authentication attempt and returns a WP_Error object. Authentication should fail and error message displayed to user.

'''Current Behavior'''
Function hooks ''authenticate'' filter, assigns priority 10. Function invalidates authentication attempt and returns a WP_Error object. wp_authenticate_username_password() ignores WP_Error object, attempts authentication and returns its own error message, or goes ahead and authenticates the user. 

Functions could assign a priority less than 20 (i.e. 30), but then when will be required to decipher error codes and/or the user object to then determine if authentication should continue, '''after''' an authentication attempt has already been processed by  wp_authenticate_username_password(), even if no authentication should have been attempted.  In additon, if wp_authenticate_username_password() is not going to respect WP_Errors from higher priorities, why not assign it a priority of 1 and make it the very first item in the authentication process?
"	gilzow
1	38079	Add hooks before output for each action in wp-login.php	voldemortensen	Login and Registration	4.7	normal	normal	Future Release	enhancement	assigned	close	2016-09-17T19:13:19Z	2024-05-02T17:33:21Z	"7 years ago, in #9682,  `wp-login.php` was made more pluggable. The thing is, if you just want to change the look (as my plugin ""Theme My Login"" does), you also have to replicate the logic.

Having an action that fires just before the `login_header()` call in each case of the action handler switch should be sufficient. One such hook is already present for one action: `lost_password`.

However, the hook `register` is already in use for the register link as is the format `{$action}_form`. So, I propose using `pre_{$action}_form`.

Patch incoming."	jfarthing84
1	44517	Allow specifying the WordPress username to be filled in on the login form via a URL parameter.		Login and Registration		normal	normal	Awaiting Review	enhancement	new		2018-07-05T03:36:04Z	2019-01-16T06:50:09Z	"Hi All,

I have a usecase for WordPress that requires me to allow specifying the username that will be logged into for WordPress via a URL parameter.

Essentially, a WordPress plugin allows creating a new username, only if a valid email has been sent. As part of the authentication flow, I want to be able to specify what the username was on the URL so that the user can just click the link that is sent to them via email, requiring only that their password be entered.

I have provided a patch. Please let me know if there are any changes that should be made.

Thanks!"	datatim
1	46618	Change login behaviour to only set the test cookie when a user attempts to login instead of just on visiting the login page		Login and Registration		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2019-03-23T09:02:24Z	2019-04-05T05:13:50Z	"Hello,

I'm branching this from #44175 to account for the idea presented by @SergeyBiryukov;
> I wonder if we could change the behavior to match the text, so that the test cookie is only set upon trying to log in, as that probably makes more sense. I'd be more comfortable with doing that in a major release though.

The change would be to move the logic for the test cookie to be triggered upon the login action rather than the login page visit.

Cheers"	garrett-eclipse
1	40065	Check for invalid user before `lostpassword_post` in `retrieve_password()`		Login and Registration	4.7.3	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-03-07T22:14:22Z	2018-05-04T01:18:16Z	Some errors are added before `lostpassword_post` and one is added after. It'd be nice if all of the errors were present when the action is called. This patch fixes that.	jfarthing84
1	65820	Default first check for is_login()		Login and Registration		normal	normal	Awaiting Review	enhancement	new	close	2026-08-05T16:51:14Z	2026-08-12T17:03:54Z	"The `is_login()` function is an easy way to tell if the request is for the login page, see https://core.trac.wordpress.org/ticket/19898.  The trade off is that `wp_login_url()` triggers a series of other activities that are more work than is needed for the default case where the login page has not moved.

Before going through that work we could check quickly check for the default condition as a fast path alternative."	josephscott
1	38336	Login: Add new action hooks to the top of login type forms		Login and Registration	4.6.1	normal	normal	Awaiting Review	enhancement	new		2016-10-17T20:11:14Z	2021-07-20T16:26:30Z	"Currently there are action hooks that fire in the login forms after the fields have been loaded into the form.  This allows new fields, new text, additional verification fields such as CAPTCHA, etc to be added after the username/email/password fields.

However, currently there is not an easy way to add new fields to the top of the forms before the username/email/password fields without building a custom form.  

In my use case I require an Account/Membership number to be provided in addition to the email/username, which internally allows the same email address to be used with multiple accounts.  The only place to add this new field without building a custom form is to add the field after the password field.  The current field sequence on the form appears as email, password, account number. Since the account number field is more significant, it would be better to read the field sequence as: account number, email, password.

In wp-login.php the login forms have the following action hooks:

in form name=""loginform""
`do_action( 'login_form' );`

in form name=""lostpasswordform""
`do_action( 'lostpassword_form' );`

in form name=""registerform""
`do_action( 'register_form' );`

in form name=""resetpassform""
`do_action( 'resetpass_form', $user );`


I am requesting new additional action hooks to be created and placed at the top of each of the forms before any fields are defined.

For example, in `form name=""registerform""` a new action hook such as `do_action( 'login_form_top' )` to appear directly after the form html line as follows:

{{{
<form name=""loginform"" id=""loginform"" action=""<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>"" method=""post"">

    <?php
	/**
	 * Fires before the fields are added in the login form.
	 *
	 * @since ??????
	 */
	do_action( 'login_form_top' );          // <=== new action hook
	?>

	<p>
		<label for=""user_login""><?php _e('Username or Email') ?><br />
		<input type=""text"" name=""log"" id=""user_login""<?php echo $aria_describedby_error; ?> class=""input"" value=""<?php echo esc_attr( $user_login ); ?>"" size=""20"" /></label>
	</p>
    ...
}}}

The other forms (lostpasswordform, registerform and resetpassform) would be updated with similar action hooks at the top of each form."	pagewidth
1	58310	Move the login forms into functions and add them in place with a hook to allow them to be replaced		Login and Registration		normal	normal	Awaiting Review	enhancement	new		2023-05-14T17:39:20Z	2023-05-14T17:39:20Z	"There are different ways to replace forms, one is the redirect to different page(s), another is to add it to the `login_form_{$action}` action add to add other things like `login_footer()` after and then exit. It will be much more flexible and convenient to filter the forms output instead of replicating things. 

It would be even better to add two hooks — the first to change the form function, and the second to filter HTML, if nesessary. But perhaps this is too much.

For reference, the wp-login.php file has 6 forms:
- language switcher
- admin email confirmation
- lost password
- password reset
- register
- login"	oglekler
1	34712	New filter: `reset_password_url`		Login and Registration		normal	normal	Awaiting Review	enhancement	new	has-patch	2015-11-17T11:46:06Z	2026-09-17T20:31:36Z	For example if I want make custom reset password page.	sebastian.pisula
1	57157	Reduce external resources for wp-login.php	rajinsharwar	Login and Registration		normal	normal	Future Release	enhancement	assigned	changes-requested	2022-11-20T05:18:42Z	2025-02-26T17:06:59Z	"The login page is quite heavy.

- The `user-profile` script adds `zxcvbn`, `wp-util`, jQuery, etc. (about 1MB together). When not resetting the password, a small inline script might be used.
- The Dashicons stylesheet (about 60kB) is rather large for 3 icons if they could be inline SVG instead.
- Because the login page does not include `locale-` body classes, `l10n.css` only change the body font for RTL languages. If login.css sets that font instead, the stylesheet could also specify 'Arial Hebrew' with `body.rtl:lang(he-IL)`.

However, the separate `buttons` and `forms` stylesheets could remain as dependencies."	sabernhardt
1	66237	Remove login test cookie.		Login and Registration		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-10-03T00:38:39Z	2026-10-05T21:54:27Z	"Follow up to r6009 for #2039.

The year is 2007, the [https://en.wikipedia.org/wiki/Browser_wars#Second_browser_war_(2004%E2%80%932017) second browser war] is in its early days and has ten years to run; the most popular social media network is Myspace and WordPress introduces a test cookie the login screen because cookies can not be presumed to be available.

The year is 2027, browsers now work together for [https://wpt.fyi/interop-2026 Interoperability], social media is fractured, and -- significantly for this ticket -- **first party cookies can be presumed to be available**.

My proposal is to remove the test cookie from the login screen. Many CDNs are configured to bypass caching for cookies prefixed `wordpress_` or `wp_`, although the smarter ones ignore `wordpress_test_cookie`.

An alternative to removing the test cookie entirely is to provide a filter to allow for it to be enabled by developers if required. If this is the preferred option I suggest the filter be opt-in rather than opt-out."	peterwilsoncc
1	52390	Use specific page for postpass		Login and Registration		normal	normal	Awaiting Review	enhancement	new		2021-01-28T17:49:55Z	2021-01-28T17:49:55Z	"Currently postpass uses wp-login.php which causes 3 problems:

1) If you want to monitor/rate/investigate logins to the site, this is mixed with postpass submissions.

2) if you want to limit access to wp-login through the webserver, this affects postpass

3) even if allow ?action=postpass to be widely accessible, ""action"" can be overriden via POST to login / reset passwords etc.

Since postpass is not a real website login and may be used by non-members of the site, i suggest that postpass gets its own page like /postpass.php where only postpass requests can be done."	briandd
1	58311	Validate Username for not to be a email and strip everything after @		Login and Registration		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2023-05-14T18:09:52Z	2023-08-15T12:07:25Z	"Right now it is possible to register user and place full email as Username and username is not supposed to be changed after. When site administrator is adding someone manually, it can be done easily as a mistake and reviling author's email for everyone to see and can be picked up from authors archive as well. Display name can be changed after, but it needs to be done manually, by default Username, Nickname and the Display name are equal.

If some people already have @ in their usernames (and I think I've seen that somewhere), the only thing which can be done about this is to filter the Display name before output and strip the @ and everything after."	oglekler
1	48899	Verification admin email again after just changed/updated email?		Login and Registration	5.3	normal	normal	Awaiting Review	enhancement	new		2019-12-06T08:03:07Z	2019-12-06T14:21:41Z	"Show the admin email varification after logged in, user is want to change the admin email.

1. Logged in.
2. Show the **verification admin email**.
3. Click the ""Update"".
4. Change the admin email on admin options setting screen.
5. Get the confimation email.
6. Update the admin email.
7. Logged out.
8. Logged in.
9. **Verification admin email again**.


I think add the admin email check internal when just update admin email."	gqevu6bsiz
1	43957	check_password_reset_key could use get_user_by instead of direct query		Login and Registration	4.9.5	normal	normal	Awaiting Review	enhancement	new		2018-05-04T09:58:07Z	2018-05-04T12:14:13Z	"Hi

Just noticed, that {{{check_password_reset_key}}} is one of only a few functions making a direct query to the users table. Wouldn't it be more consistent to use the {{{get_user_by}}} function here. I came across this because I am replacing the 
{{{get_user_by}}} function with my own. Not being able to hook into the user retrieval in {{{check_password_reset_key}}} forces me to take a rather hackish approach by using the 'query' filter.

I cannot see any advantages of making a direct query aside from bypassing the object cache. Maybe there is a security concern that I am not aware of?

"	thomaslhotta
1	55193	login-form: Use the same id and class value between wp_login_form() and wp-login.php		Login and Registration		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2022-02-18T05:57:43Z	2023-08-18T12:05:40Z	"Hi, below are the codes of login forms html output of `wp_login_form()` function, and wp-login.php page


{{{
<!--   The html output of login-form in wp-login.php page  -->

<form name=""loginform"" id=""loginform"" action=""https://xxxxxxxxxx/wp-login.php"" method=""post"">
	<p>
		<label for=""user_login"">Username or Email Address</label>
		<input type=""text"" name=""log"" id=""user_login"" class=""input"" value="""" size=""20"" autocapitalize=""none"">
	</p>
	<div class=""user-pass-wrap"">
		<label for=""user_pass"">Password</label>
		<div class=""wp-pwd"">
			<input type=""password"" name=""pwd"" id=""user_pass"" class=""input password-input"" value="""" size=""20"">
			<button type=""button"" class=""button button-secondary wp-hide-pw hide-if-no-js"" data-toggle=""0"" aria-label=""Show password"">
				<span class=""dashicons dashicons-visibility"" aria-hidden=""true""></span>
			</button>
		</div>
	</div>
	<p class=""forgetmenot"">
		<input name=""rememberme"" type=""checkbox"" id=""rememberme"" value=""forever"">
		<label for=""rememberme"">Remember Me</label>
	</p>
	<p class=""submit"">
		<input type=""submit"" name=""wp-submit"" id=""wp-submit"" class=""button button-primary button-large"" value=""Log In"">
		<input type=""hidden"" name=""redirect_to"" value=""https://xxxxxxxxxx/"">
		<input type=""hidden"" name=""testcookie"" value=""1"">
	</p>
</form>
}}}


{{{
<!--   The html output of login-form with wp_login_form() function  -->

<form name=""loginform"" id=""loginform"" action=""https://xxxxxxxxxx/wp-login.php"" method=""post"">
	<p class=""login-username"">
		<label for=""user_login"">Username or Email Address</label>
		<input type=""text"" name=""log"" id=""user_login"" class=""input"" value="""" size=""20"" tabindex=""0"">
	</p>
	<p class=""login-password"">
		<label for=""user_pass"">Password</label>
		<input type=""password"" name=""pwd"" id=""user_pass"" class=""input"" value="""" size=""20"" tabindex=""0"">
	</p>
	<p class=""login-remember"">
		<label>
			<input name=""rememberme"" type=""checkbox"" id=""rememberme"" value=""forever"" tabindex=""0"">
			Remember Me
		</label>
	</p>
	<p class=""login-submit"">
		<input type=""submit"" name=""wp-submit"" id=""wp-submit"" value=""Log In"" tabindex=""0"" class=""button button-primary"">
		<input type=""hidden"" name=""redirect_to"" value=""https://xxxxxxxxxx/"">
	</p>
</form>
}}}

Look into same field between the two html outputs, you can see most of the p, label, and input tag has different values of the css ids and classes.

for example:

wp_login_form():
{{{<input name=""rememberme"" type=""checkbox"" id=""rememberme"" value=""forever"">}}}
wp-login.php:
{{{<input name=""rememberme"" type=""checkbox"" id=""rememberme"" value=""forever"" tabindex=""0"">}}}

the ids are the same, but

wp_login_form():
{{{<p class=""forgetmenot"">}}}
wp-login.php:
{{{<p class=""login-remember"">}}}

the classes are different

Can you make the ids and classes same, so it will be easier for me to make the two login forms ( `wp_login_form()` and  wp-login.php ) with consistent style?

"	syshut
1	41170	Allow the newbloguser screen to be themed		Login and Registration	3.0	normal	normal	Awaiting Review	feature request	new		2017-06-25T19:59:04Z	2017-06-26T07:58:12Z	"The appearance of the `newbloguser` screen is not themeable. It should be.

Related: #37921"	johnbillion
1	39985	Do action before send email of retrieve password		Login and Registration	4.7.2	normal	normal	Awaiting Review	feature request	new		2017-02-28T14:01:07Z	2017-03-08T02:49:10Z	"Add do_action before sending email to recover password.

Inspiration: I needed to integrate an SMS sending to recover password, where I had to use retrieve_password_message filter hook to get the user's phone number.

https://github.com/WordPress/WordPress/pull/275"	bonus369
1	41663	Hooks for the back to login link in the footer of wp-login.php		Login and Registration	4.8.1	normal	normal	Awaiting Review	feature request	new	dev-feedback	2017-08-17T18:58:25Z	2021-07-20T15:59:58Z	"In the following pull request: [https://github.com/WordPress/WordPress/pull/306/files] I introduced 3 new filters to the login footer area. With these filters you can customize the back to login link to your needs.
"	Fleuv
1	38432	Validate user creation and email change by token		Login and Registration	4.9	normal	normal	Awaiting Review	feature request	new	needs-unit-tests	2016-10-21T13:34:31Z	2018-01-17T11:57:10Z	"When you register on a wordpress site or when you change your email, we can use a fake email (or error entry) and it create ghost profile. I see 36 bad profile in 2 month on a website.

If an email is send with a validate links (token), the profile or the email change can be executed.

It secure correct data.

Thanks

"	lriaudel
1	53829	Add unique keywords for wp_mail calls to categorize it		Mail		normal	normal	Awaiting Review	feature request	new	dev-feedback	2021-07-29T16:22:09Z	2025-08-03T13:47:09Z	"Here's a suggestion to add unique keywords (handles) for {{{wp_mail()}}} calls to better categorize it, like: {{{namespace:component/to/subject}}}, if we simulate the block names structure, just to mention one possibility.

Examples: {{{wp:login/user/retrieve_password}}} or {{{wp:login/site_admin/new_user}}} where {{{wp}}} is the namespace for WordPress core and plugins could use their own.

These might also be in separate array arguments, instead of a single string.
 
This would help targeting a single email or group of emails.

It might be easier to implement if {{{wp_mail()}}} would support a single array of arguments: {{{wp_mail( $args )}}}

ps: Helpful list of core emails:

https://github.com/johnbillion/wp_mail

"	birgire
1	60420	Default wordpress@site.com sender address can be problematic		Mail	1.5.1.2	normal	normal	Awaiting Review	feature request	reopened	close	2024-02-02T01:06:19Z	2026-04-07T01:09:36Z	Hi, if installed, the default sender address of all emails sent from the application is something like wordpress@domain.com. For the majority of sites, this mailbox doesn't exist, which causes numerous problems with delivering. And even the sender's domain doesn't exist in DNS (has no MX record), if it's on subdomain. Couldn't it be better to show warning at first login to set up the address of the sender, which is both real and functionable?	thinlinecz
1	54433	ALLOW_UNFILTERED_UPLOADS does not work anymore		Media	5.8.2	normal	normal	Awaiting Review	defect (bug)	assigned		2021-11-13T01:02:25Z	2022-11-30T20:15:35Z	"I previously added 
define( 'ALLOW_UNFILTERED_UPLOADS', true );
to wp-config.php so that I could upload binary executable into the media library. These executable files are installers for the software my lab develops and which is used by thousands of users around the world.
As I am trying to release a new version I tried to upload the new installers and no matter what I do I get ""Sorry, this file type is not permitted for security reasons"".
I really see no reason why the site admin should be prevented to upload something into his own site.
I am using version 5.8.2 of wordpress which does not appear in the Version pull down below, and Avada and a multisite installation.

"	mssd19
1	66092	Add 8px gap between Media Library search field and button on mobile/tablet		Media	7.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-09-11T07:02:47Z	2026-09-14T17:09:00Z	"The Media Library search form does not maintain consistent spacing between the search input field and the Search Media button on certain mobile and tablet screen sizes.

On desktop, the search field and button are displayed correctly with appropriate spacing. However, at smaller responsive breakpoints, the spacing between these elements is missing.

Expected Behavior:
An 8px horizontal gap should be maintained between the search input field and the Search Media button on mobile and tablet screen sizes.

Required Change:
The current column-gap between the Media Library search input and the Search Media button is 0. Please update the column-gap from 0 to 8px at the applicable mobile/tablet breakpoint."	deeppatel8950
1	35887	Adding multiple media to post - selecting image size		Media	4.4.2	normal	normal	Awaiting Review	defect (bug)	new		2016-02-20T12:03:10Z	2023-10-25T04:35:24Z	"When clicking ""Add Media"" to add images to a post, you can select multiple images. With all images selected, logic follows that if you change the ""ATTACHMENT DISPLAY SETTINGS"" size from default ""Medium"" to ""Full Size"", that all selected images would have the same setting changed, but when you add them, only the one image that was highlighted is actually ""Full Size"" and the rest which were selected, but not highlighted, are still ""Medium"". 

I think when adding multiple media, all should be changed to size that is selected in ""ATTACHMENT DISPLAY SETTINGS""."	myburgh.bernard@…
1	41353	Async upload breaks when there are special characters into file name		Media	4.8	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2017-07-18T07:53:48Z	2017-07-19T14:48:50Z	After crunching the image, thumbnail breaks for the image.	bhargavbhandari90
1	43736	Audio continues to play in Media Modal after close		Media	4.9.5	normal	normal	Awaiting Review	defect (bug)	new		2018-04-11T03:21:00Z	2021-04-01T15:24:25Z	"When previewing an audio file in the Media Library modal, if you click Close or Escape, the audio continues to play.
I haven't tested with Video, but I am assuming audio continues as well."	bahia0019
1	36680	"Audio player with preload=""metadata"" shows incorrect duration for audio files 1 hour or longer"		Media	4.5.1	normal	normal	Awaiting Review	defect (bug)	new		2016-04-27T04:29:12Z	2017-09-20T21:29:57Z	"For an audio file that's longer than one hour, using the audio player shortcode with preload=""metadata"" shows an incorrect duration for the audio when the page loads. The hours are chopped off. So an audio that is 1:07:45 in duration will erroneously display 07:45 upon loading.

Then when the audio file is played, the correct duration pops in, but this causes the volume control to disappear, so the volume can no longer be adjusted while the clip is playing.

Many podcasts are longer than an hour in duration.

For a demonstration of the bug, see audio 16 on this page, which is 1:07:45 in duration:
http://www.stevepavlina.com/audio/"	Dexterity
1	42751	Can we please  enqueue media-views independently ?		Media	4.9	normal	normal	Awaiting Review	defect (bug)	new		2017-11-29T22:14:11Z	2024-06-13T01:56:59Z	"Many of theme developers are styling mediaelement to their preference and this is a first step when they do so;


{{{
/*  
 * use theme mediaelement CSS
 */
wp_deregister_style('mediaelement');
wp_deregister_style('wp-mediaelement');	
}}}


that disables the default CSS and lets us use our own. Issue with this is that 
buttons, imgareaselect and media-views CSS files depend on these and if anyone is using a frontend page builder or anything that needs media library in frontend, these 3 CSS files are not present. 

My first tought was 


{{{
/*
 * since we have deregistered medialement style
 * make sure media dependencies are loaded 
 * in case of frontend editros
 */
if( is_user_logged_in() ){
	
	wp_enqueue_style( 'buttons' );
	wp_enqueue_style( 'imgareaselect' );
	wp_enqueue_style( 'media-views' ) ;

}
}}}


but to my surprise media-views which is a key CSS file for media library is not loading since it is a dependent. 

I know that I can do the direct enque but since we have a handle we should be able to use it independently from other styles. 

While we are at it, why are we loading mediaelement CSS files at the bottom of body

http://prntscr.com/hh0808  ? 

CSS files should always be in head. "	Themezly
1	55200	Cannot add caption to images on mobile		Media	5.9	normal	normal	Future Release	defect (bug)	new	has-patch	2022-02-19T01:05:50Z	2026-07-24T07:56:49Z	On the mobile view of the admin section you cannot add ally text, captions, or descriptions to media uploads 	vincepettit
1	64677	Client-Side Media: Move `image_editor_output_format` filtering to the upload response		Media		normal	normal	7.3	defect (bug)	new	has-patch	2026-02-20T16:11:19Z	2026-10-26T18:17:09Z	"In [https://github.com/WordPress/wordpress-develop/pull/10868 #10868] (Editor: PHP backports for Client Side Media), the `image_editor_output_format` filter is currently applied in the REST API index (`get_index`) by iterating over a list of possible input MIME types with an empty `$output_formats` array and no `$filename` parameter. As noted in [https://github.com/WordPress/wordpress-develop/pull/10868#discussion_r2831587138 this review comment], this doesn't match how `wp_get_image_editor_output_format()` normally applies the filter — it passes the actual filename and a pre-populated default mapping.

== Problem ==

The current approach:
* Passes an empty array as the default value instead of the normal default mapping
* Does not supply a `$filename` parameter to the filter
* Re-filters the same `$output_formats` variable across iterations, accumulating results in a way that doesn't match the server-side behavior
* Is applied generically rather than per-upload, so plugins can't make decisions based on the actual input file

== Proposed Solution ==

Move the `image_editor_output_format` logic from the REST API index response into the '''initial image upload response'''. This is already the pattern used for EXIF rotation data in client-side media processing.

Benefits:
* The actual input filename and MIME type will be available, so the filter operates just like it does on the server side
* Plugins that hook into `image_editor_output_format` will receive meaningful parameters
* Keeps per-file processing logic in the upload response where it belongs

== References ==

* PR: [https://github.com/WordPress/wordpress-develop/pull/10868 #10868]
* Review: [https://github.com/WordPress/wordpress-develop/pull/10868#discussion_r2831587138 @westonruter's comment]
* Response: [https://github.com/WordPress/wordpress-develop/pull/10868#discussion_r2832131664 @adamsilverstein's response]
"	adamsilverstein
1	39422	Consistency for returned value of attachment meta : mime_type VS mime-type		Media	4.6.1	normal	normal	Future Release	defect (bug)	new	needs-unit-tests	2016-12-29T22:55:29Z	2017-10-31T10:14:23Z	"Hello here,

While using the function wp_get_attachment_metadata, the returned associative array is not consistent.
For video attachment it will give mime_type key with a ""_"" and for images it will return mime-type key with a ""-"".

The returned mime type key should either be ""mime_type"" or ""mime-type"", but should be the same for any type of media attachment.

Thanks for the great job !
"	gabrielstuff
1	43009	Create Video/Audio Playlist hooks not working as expected		Media	4.9.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-01-02T15:54:41Z	2026-05-22T15:47:49Z	"WordPress now provides the following hooks:

https://developer.wordpress.org/reference/hooks/media_library_show_video_playlist/
https://developer.wordpress.org/reference/hooks/media_library_show_audio_playlist/

We can use these to hide the “Create Video Playlist” (and Audio) button in the media library. 

These only seem to work on initial page load. The “Create Video Playlist” button still appears for me even though I'm using these filters.

To reproduce from a fresh install.

1. Set these lines in your theme functions.php

{{{#!php
add_filter( 'media_library_show_audio_playlist', function() { return false; });
add_filter( 'media_library_show_video_playlist', function() { return false; });
}}}

2. Go to wp-admin/post-new.php.

3. Click 'Add Media', notice that the playlist buttons are missing.

4. Upload a video file (I used .mov). Notice that the 'Create Video Playlist' button now appears.

This likely exists in versions earlier than 4.9.1, but this was the version I tested in."	iforrest
1	65204	Custom Bulk Actions missing from Grid View	takshil	Media		normal	major	Awaiting Review	defect (bug)	assigned	has-patch	2026-05-07T23:00:49Z	2026-05-19T20:55:36Z	"The Media Library list view allows plugins to register custom bulk actions via the bulk_actions-upload and handle_bulk_actions-upload PHP filters. However, the grid view (wp-admin/upload.php?mode=grid) does not reflect those bulk actions. The toolbar in bulk select mode is hardcoded to only show the Delete button.

This means plugins which add bulk actions like the AI Experiments plugin's(e.g. ""Generate Alt Text"") to the Media page, will simply not show up on the grid view."	takshil
1	51038	Default height when using add_theme_support( 'custom-header') in GD.		Media		normal	normal	Awaiting Review	defect (bug)	new		2020-08-17T06:17:21Z	2021-06-01T03:21:54Z	"`add_theme_support( 'custom-header')` defaults to 0 for width and height.
if you are using GD, the height will be set to 0 and the cropping will fail and you will get the error message “There has been an error cropping your image.“.
If the height is set to 0 in GD, how about getting and using the height of the source file?"	munyagu
1	43560	Entering single quotes in Add Media dialog after recropping causes browser to hang		Media	4.9.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-03-15T14:46:23Z	2020-02-19T16:46:40Z	"'''To reproduce'''

* Create a draft and insert an image into the content.
* In the Visual editor, click on the image to get the tooltip image edit menu, then on the pencil icon to edit the image.
* In the Image Details dialog click the ""Edit Original"" button to edit the image.
* In the Edit Image dialog, click and drag on the image to create a cropping zone.
* Click the crop icon in top left above the image to crop it.
* Click the ""Save"" button below the image to save the crop.
* Back on the Image Details dialog, try to enter several single quotes in the Alternative Text input. Tap your single quote key six or seven times.

'''What I expect to see'''

* I am able to continue entering text in the image dialog inputs, even if I'm prevented from entering a single quote.

'''What I see instead'''

* I am unable to enter any text in any of the dialog's inputs.
* In most cases the page seems to lock for some time - I'm unable to interact with it at all: I can't refresh or close it normally. The Chrome task manager shows 101% CPU usage for the tab.
* There are no JS errors in the console, and no requests in the network tab.
* On some occasions, after leaving the page for several minutes, it eventually unlocks by itself, and some of the characters I typed in my earlier attempt to enter text are output wherever I happen to have my cursor.

'''Notes'''

It looks like some piece of JS is somehow capturing the keypresses in the Alternative Text input.

This was reproduced in macOS and Windows Chrome 64 and macOS Chromium 62 (the Chromium with no browser extensions) on a fresh checkout of WordPress v4.9.4. It doesn't happen in FF55."	andfinally
1	62634	Error in mediaelement-and-player.js		Media	6.7.1	normal	normal	Awaiting Review	defect (bug)	new		2024-12-03T04:30:12Z	2025-04-12T21:54:45Z	"**Summary**
When using bulk select in the WordPress Media Library, selecting different types of media files (e.g., switching from a cloud-hosted video to an image) causes a console error:
`Uncaught TypeError: Cannot read properties of null (reading 'length').`
This issue is traced to the file `mediaelement-and-player.js`, line 4480.

**Steps to Reproduce**
1. Navigate to the WordPress Media Library.
2. Use the bulk select feature to select multiple media files.
3. Select a video file hosted on the cloud (large file size).
4. After selecting the video, quickly click to select an image file.
5. Observe the console error in the browser's developer tools.

**Observed Behavior**
The console logs the error:
> `Uncaught TypeError: Cannot read properties of null (reading 'length') at mediaelement-and-player.js:4480`

**Expected Behavior**
- Switching between different types of media (cloud-hosted videos and images) should not trigger a JavaScript error.
- Bulk select functionality should work seamlessly without throwing errors.

**Environment Details**
- WordPress Version: 6.7.1
- Theme/Plugins: WP Offload Media Lite
- Browser: Edge

**Media Files:**
- Cloud Video: File size: > 50mb
- Image: File size: Any

**Additional Notes**
Issue is likely related to how `mediaelement-and-player.js` handles media metadata for files hosted on the cloud vs. locally.
Potential fix might involve adding a `null` check or handling edge cases for cloud-hosted media.
Would you like assistance debugging this further or crafting a patch for `mediaelement-and-player.js`?"	salmanulharischolakkal
1	43114	FLV video - NetworkError: Exception ProgressEvent error		Media	4.9.2	normal	normal	Awaiting Review	defect (bug)	new		2018-01-17T18:13:19Z	2021-04-01T14:56:40Z	"Hello,

FLV doesn't work any more since last versions of Wordpress.
I have this error : NetworkError: Exception ProgressEvent error when I use this code in articles :
[video width=""640"" height=""480"" flv=""http://mydomaine.org/wp-content/uploads/2012/02/DSC_0011.flv""][/video]
and sometimes this error : ""Aucune vidéo dont le format ou le type MINE est géré n'a été trouvée""

Thank you for your help"	Fred001
1	63423	Find some Wrong escaping function into the core files		Media		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-05-09T09:25:06Z	2025-05-09T19:35:46Z	"Hello team,

I have checked WordPress core file and I have found this ""Wrong escaping function"" errors into the few files.

I think that it should be fix.

Thanks,"	viralsampat
1	59764	GD squashes image for cropped size		Media	6.3.3	normal	normal	Future Release	defect (bug)	new	reporter-feedback	2023-10-29T12:02:00Z	2025-03-10T21:03:44Z	"I have an image sub-size that uses crop instead of scale, and when the resulting image should upscale, GD does it OK-ish, Imagick is squashing the content. 

In both cases, the resulting image has the expected width and height, but the content in the image generated with Imagick is not squashed. This happens for a portrait ratio of the original image. 

How I replicate this:
- sub-size: 1440x760 px + crop
- original file: 1152x2048 px
- using the `image_resize_dimensions` filter that returns the upscaled computation
- upload file using GD
- upload the same file using Imagick

GD result - OK
https://imgur.com/EQTesQT

Imagick result - not OK
https://imgur.com/G0hjmo0
"	Iulia Cazan
1	47545	Getting undefined wp.media.frame.state() after click on featured image preview	antpb	Media	5.2.1	normal	normal	Future Release	defect (bug)	assigned	reporter-feedback	2019-06-15T13:29:15Z	2023-02-26T04:43:26Z	"
In WP 5.x:
- When I click on the featured image preview the wp.media.frame.state().get('selection') is undefined.
- But, when I click on the ""Replace image"" button wp.media.frame.state().get('selection') returns the selected attachment object (which is the expected behaviour). 

While in WP 4.x it returns correctly the attachment when I click on the featured image preview.






"	nlemsieh
1	65161	Give an error message when a non-image is uploaded for site icon		Media		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-05-04T14:25:07Z	2026-05-06T12:48:31Z	Just like #39625, when you are on `General Settings` to `Choose a Site Icon`, then choose `Upload files` and select a non-image file, you'll get to a ugly looking page showing a non helping error message. See attached video.	Presskopp
1	65297	HEIC/HEIF MIME Type Mapping Is Inaccurate	modi2918*	Media	6.7	normal	normal	Future Release	defect (bug)	accepted	reporter-feedback	2026-05-21T09:42:42Z	2026-10-31T06:18:03Z	"The MIME type map acknowledges that HEIC, HEIF, HEICS, and HEIFS files are not reliably distinguished by extension:

// TODO: Needs improvement. All images with the following mime types seem to
// have .heic file extension.
'heic'  => 'image/heic',
'heif'  => 'image/heif',
'heics' => 'image/heic-sequence',
'heifs' => 'image/heif-sequence',


Additionally, in the validation code, image/heif, image/heic-sequence, and image/heif-sequence files all get their extension normalized to .heic, which is inaccurate for sequence files and HEIF files that use different container types. This can cause upload validation failures and incorrect file extension assignment."	modi2918
1	52495	Hard cropped images do not crop specified dimension, causing lack of adaptive images	joedolson*	Media	5.6.1	normal	normal	Future Release	defect (bug)	accepted		2021-02-11T05:30:26Z	2022-06-08T15:51:48Z	"If an image is less than the size of a specified image size, it will be cropped only on the dimension that is greater than the specified dimension. The result is an image that is not the same aspect ratio as other images with specified image sizes that have the same aspect ratio. So it won't output those other images in an srcset and your site may be loading much larger images than needed for mobile.

For example, I might have defined image sizes of 1000x500, 750x375 and 500x250 and use those images in my theme. Normally, I'd insert that largest image and then the other two would be in an srcset. But, if I were to upload and 960x600 image, I'll get a 960x500 image, as well as the normal 750x375 and 500x250. Because these aren't the same aspect ratio, when I insert the larger image, there is no srcset. Now visitors are stuck loading the largest image.

It would make sense to me for hard crop to scale the image up to meet the minimum size for both dimensions, then crop."	larssg
1	65447	Heic to JPG conversion not working with newer files		Media	7.0	normal	normal	Awaiting Review	defect (bug)	new		2026-06-11T00:41:45Z	2026-06-11T04:24:56Z	"When uploading HEIC images, files created on my iphone 17 don't convert to JPG, but files created on my iphone se 2 do convert.

I've been testing with my webhost and we have tried stripping the metadata out, and once the metadata is gone from the file it will upload. We isolated the issue to the newer images, it was happening regardless of file size too.

"	GrayMediaLtd
1	65960	Image Editor don't update thumbnails		Media		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-25T11:56:21Z	2026-09-25T20:51:15Z	"Hello,

Looks like Image Editor only edits main image without thumbnails, can be easy reproduce in https://playground.wordpress.net/
1. Create a post with an image block (chose bigger image so thumbnail will be used)
2. Go to Media -> Your Image -> Edit Image -> Flip it -> Save changes
3. Go back to created post and check if if image is updated (spoiler it is not)

Thanks!"	martinplr
1	63671	Image Not Displaying or Editable in WordPress Media Editor		Media		normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2025-07-08T06:15:47Z	2025-07-09T01:18:53Z	"When attempting to edit an uploaded image via the WordPress Media Library, the image does not display, and image editing functions (crop, scale, rotate) are not responsive or effective.

**Steps to Reproduce:**

1. Go to Media > Library.
2. Click on an uploaded image.
3. Click on Edit Image/Edit more details option.
4. Click on the Edit Image button.
5. The image preview area is blank.
6. Attempting any edits (e.g., cropping or scaling) has no effect.

**Expected Behavior:**
The image should be visible in the edit screen and allow cropping, scaling, and other edits.

**Actual Behavior:**
The image is not rendering in the preview panel, and none of the edit actions take effect."	mikinc860
1	42922	Image Scaling using get_the_post_thumbnail issue in WordPress		Media	4.9.1	normal	normal	Awaiting Review	defect (bug)	new		2017-12-17T08:22:37Z	2020-11-19T15:56:40Z	"Issue URL - http://www.creativescripters.com/clients/testwp/uncategorized/image-resized/

I am using wordpress (self hosted) latest version, The problem is I am looking to get a thumbnail from the resized/scaled image, and when I do that wordpress returns the test-150x150.jpg i.e. Thumbnail from the original image and not the resized image which should have been test-e1513229707262-150x150.jpg

Step to reproduce the issue 


 1. Upload an image , Scale it (click edit on uploaded image and change width and click scale). Wordpress will rename the image and add an Suffix Id to the name so you can confirm the image have been scaled. for eg if you uploaded test.jpg after scaling image name will become test-randomstring.jpg

[![enter image description here][1]][1]

 2. When I call get_the_post_thumbnail($post, 'full') I get the correct image The resized one i.e. test-randomstring.jpg
 [![enter image description here][2]][2]

 3. When I try to get a different size of the scaled image for eg I need thumbnail generated from the image size and I call function get_the_post_thumbnail($post, 'thumbnail') wordpress return the THUMBNAIL from actual image (the one I uploaded initially test.jpg and not the resized one test-randomstring.jpg)



Screenshot - https://i.imgur.com/sQKoZcF.png

  [1]: https://i.stack.imgur.com/TTIaG.png
  [2]: https://i.stack.imgur.com/T3vPE.png"	rigids.php
1	63764	ImageMagick writeImage() causes duplicate inotify events during thumbnail generation		Media	6.8.2	normal	normal	Awaiting Review	defect (bug)	assigned	reporter-feedback	2025-07-29T06:13:59Z	2026-06-10T17:17:45Z	"When WordPress generates image thumbnails using ImageMagick, the `writeImage()` method in `wp-includes/class-wp-image-editor-imagick.php` causes duplicate `CLOSE_WRITE,CLOSE` inotify events.
Steps to reproduce:
1. Upload an image to WordPress
2. Monitor inotify events: `inotifywait -m -e close_write /wp-content/uploads/`
3. Observe duplicate events for each thumbnail

Expected behavior:
One `CLOSE_WRITE,CLOSE` event per thumbnail file

Actual behavior:
Two `CLOSE_WRITE,CLOSE` events per thumbnail file

Root cause:
The `writeImage()` method performs internal buffering that creates two file operations:
1. Write data to buffer
2. Flush buffer to file

Proposed fix:
Replace `writeImage()` with `getImageBlob()` + `file_put_contents()` for single operation.

Files affected:
- wp-includes/class-wp-image-editor-imagick.php (line 976)"	agiabanis
1	55302	Improve media library upload progress indicator		Media		normal	normal	Awaiting Review	defect (bug)	new		2022-03-03T04:56:51Z	2022-07-06T16:47:18Z	"When uploading in the media library, the progress bar shows the ''upload progress'' of the image. 

Once the image is fully uploaded WordPress creates the sub-sized images used to serve images on the front end. Depending on your configuration (theme, plugins, server), and the upload size this can take quite a while to complete. During sub-sized image creation, the progress bar for the image shows as ""full"". Finally, when the image sub size generation completes, the image changes from a gray box to the thumbnail of the uploaded image and if multiple images have been uploaded, the uploader moves on to the next image. Screencast attached.

The problem here is that no progress is shown for the image regeneration phase.

Uploading in the block editor works a bit differently: as soon as the image is dropped onto the editor to upload, a grayed out version of the image is shown with a spinner. The spinner spins during the upload and continues spinning during sub-size creation. Finally, when all sub sizes are created, the image becomes fully saturated and the spinner goes away. **Looks like this is changing to a progress bar though**, see https://github.com/WordPress/gutenberg/issues/13984 & https://github.com/WordPress/gutenberg/tree/trunk/packages/block-editor/src/components/media-upload-progress

Two potential improvements we could make in the media library:
1. immediately show the thumbnail of the dropped image instead of the gray box
2. switch to a spinner entirely, or for the image regeneration phase or try to show actual progress. The challenge with showing progress is we don't know how long the request will take on the server."	adamsilverstein
1	43930	Inaccurate width and height returned when using wp_get_attachment_image_src on the backend.		Media	4.9.5	normal	normal	Awaiting Review	defect (bug)	new		2018-05-02T14:56:44Z	2018-05-08T18:30:23Z	"I'm using wp_get_attachment_image_src on the backend to do image validation for a custom image selector meta box. When the image is large enough for the requested image size the source of the original image is returned but the dimensions are smaller. 

This is my call:

{{{#!php
<?php
wp_get_attachment_image_src($thumbnail_id, 'custom-image-size');
}}}

and return:


{{{
array(4) {
  [0]=>
  string(70) ""http://localhost:8888/wp-content/uploads/2018/05/image.jpg""
  [1]=>
  int(400)
  [2]=>
  int(400)
  [3]=>
  bool(false)
}
}}}

The actual image dimensions are 1200x1200.

The image_constrain_size_for_editor call in the image_downsize function seems to be where the problem lies. I can comment out that line and it works as expected."	jwoolsch
1	63932	Investigate failing Imagick tests on PHP 8.3 and 8.4		Media		normal	normal	Future Release	defect (bug)	new	has-patch	2025-09-04T21:53:02Z	2026-11-04T23:34:29Z	"Background: #63876

Fixing the self-signed MySQL certificate issue in the PHP 8.3 and 8.4 container images that are based on Debian Trixie surfaces two errors and two failures in the Imagick tests.

[https://github.com/WordPress/wordpress-develop/actions/runs/17472951958/job/49625716365#step:14:488 Failing GitHub Actions workflow run can be found here].

{{{

There were 2 errors:

1) Tests_Image_Editor_Imagick::test_image_max_bit_depth
ImagickException: no encode delegate for this image format `AVIF' @ error/constitute.c/WriteImage/1412

/var/www/tests/phpunit/tests/image/editorImagick.php:726
/var/www/vendor/bin/phpunit:122

2) Test_Image_Resize_Imagick::test_resize_avif
TypeError: getimagesize(): Argument #1 ($filename) must be of type string, WP_Error given

/var/www/src/wp-includes/media.php:5736
/var/www/tests/phpunit/tests/image/resize.php:107
/var/www/vendor/bin/phpunit:122
}}}

{{{
There were 2 failures:

1) Tests_Image_Editor_Imagick::test_resizes_are_small_for_16bit_images with data set ""test8"" ('/var/www/tests/phpunit/includ...t8.png')
The resized image file size is not smaller than the original file size.
Failed asserting that 99853 is less than 45231.

/var/www/tests/phpunit/tests/image/editorImagick.php:794
/var/www/vendor/bin/phpunit:122

2) Tests_Image_Editor_Imagick::test_png_color_type_is_preserved_after_resize with data set ""test8_color_type_3"" ('/var/www/tests/phpunit/includ...t8.png', 3)
The PNG original color type should be preserved after resize for /var/www/tests/phpunit/includes/../data/images/png-tests/test8.png.
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'3'
+'4'

/var/www/tests/phpunit/tests/image/editorImagick.php:848
/var/www/vendor/bin/phpunit:122
}}}

In addition a risky test was flagged which also covers AVIF handling. It may or may not be related and should be investigated.

{{{
There was 1 risky test:

1) Tests_Media::test_quality_with_avif_conversion_file_sizes
This test did not perform any assertions

/var/www/tests/phpunit/tests/media.php:5473

/var/www/vendor/bin/phpunit:122
}}}"	johnbillion
1	58364	Lottie Files not centered properly		Media		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-05-20T10:29:12Z	2023-10-25T04:48:40Z	Hi, I want to tell you, that Lottie Files are not working properly in WordPress. I use them on several pages, align is set to center, but they actually are not centered. Some of them are aligned to lef, some of them are moved little bit to left.	Samuel222
1	23436	Media Gallery - Cropping Image and then Cropping a thumbnail from that crop doesn't work.	joedolson*	Media	3.5	normal	normal	Awaiting Review	defect (bug)	accepted	dev-feedback	2013-02-10T17:20:00Z	2024-05-01T18:42:48Z	"'''A recipe for repeating the bug behavior:'''

Navigate to Library in the admin sidebar.

Click ""Add new"".

Drag the 800x480 copy of this or any image to the drag and drop area:

http://en.wikipedia.org/wiki/File:Cheese_platter.jpg

(I suggest this image for ease of recipe duplication and best explanation.)

After the blue status bar has completed, ""Edit"" to bring the media edit window up in a new tab.

Click ""Edit Image"" below the actual image.

Drag anywhere inside the image to create a cropping box.

In the ""Image crop"" pane, set the crop area to 500px width, 100px height.

Drag the cropping box so that the fancy toothpick is as far left as possible along the horizontal axis of the cropping box, but centered vertically. 

Click the ""Crop"" icon. Click ""Save"". Click ""Update"".

Click ""Edit Image"" once again.

Drag inside the newly-cropped image again to create a new cropping box.

In the ""Image Crop"" pane, change the cropping dimensions to 150 x 100. 

Drag the box so the fancy toothpick is somewhere in the left third within the crop boundary. 

'''Important:''' In the thumbnail settings pane, set ""Apply Settings to:"" '''Thumbnail'''.

Click the ""Crop"" icon. Click ""Save"". Click ""Update"". 

Click ""Library"" in the admin sidebar.

The newly preferred thumbnail for our previously-cropped image does not save. Thumbnail remains default, based on center of previously-cropped image. Instead, you will see a small wheel of cheese sliced into six wedges with garnishes for the thumbnail, even though we chose the part with the fancy toothpick."	gr33nman
1	58741	Media Library Popup Showing Blank Popup on Window Resize Below Mobile Viewport		Media	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-07-06T18:18:08Z	2024-07-24T15:45:31Z	"== Bug Report
=== Description
The media library popup in WordPress is encountering a problem where it displays a blank popup when the window is resized below the mobile viewport. This issue prevents users from accessing the media library and selecting files on smaller screens, negatively impacting the overall user experience.

=== Environment
- WordPress: 6.2.2
- PHP: 7.4.33
- Server: Apache
- Database: mysqli (Server: 5.7.42 / Client: mysqlnd 7.4.33)
- Browser: Chrome 114.0.0.0 (macOS)
- Theme: Upshift 1.0
- MU-Plugins: None activated
- Plugins: 
  * WordPress Beta Tester 3.5.1

=== Steps to Reproduce
1. Access the WordPress admin dashboard.
2. Navigate to add new post.
3. Click on set featured image button.
4. Resize the window below mobile viewport, you will get a blank screen. 

=== Expected Results
1. Users should see media window even after window resize.
2. This scenarios is not there in media library popup of image block on block editor.

=== Actual Results
1.  Users gets blank popup when window is resized.


Video Link : https://www.loom.com/share/efad2f97064f441596d69cc9a354a658
 "	adhun
1	64705	Media Library Showing Different Image Counts in Grid and List View		Media	6.9.1	normal	minor	Awaiting Review	defect (bug)	new	close	2026-02-23T10:37:55Z	2026-03-05T10:07:53Z	"Hi Team,

I am facing an issue in the WordPress backend under Media Library.

There are two display modes available: Grid View and List View.

In Grid View, it is showing 176 images.

In List View, it is showing 3272 images.

The image count is significantly different between the two views, although both should ideally display the same media items from the library.

Because of this mismatch, we are unable to clearly understand the actual number of media files stored in the system.

Could you please check and clarify:

Why the image count differs between Grid and List view?

Whether any filters, pagination, media type restrictions, or backend query differences are affecting the Grid view?

If this is related to user permissions, media status (attached/unattached), or a plugin conflict?

Please investigate and provide clarification on the root cause.

Thanks."	rithika3
1	41349	Media Library insert from URL doesn't give a message when a URL fails check		Media		normal	normal	Awaiting Review	defect (bug)	new		2017-07-17T20:32:53Z	2026-04-10T09:23:32Z	"There is a check to see if something is a valid URL. This is awesome, but it doesn't give a message when fails. This is a weird user experience as you are left wondering what happened.

There is some strange behaviour, it sometimes has 'link text' vanishing, other times doesn't. It also can appear to flash as a block and then vanish. The logic of when the link text input shows or doesn't, seems a little confusing to work out.

What would be better would be to have a message when it's not a correct URL and check for inconsistencies in the link text input showing.

[[Image(https://cldup.com/bnlQYzjP04.gif)]]"	karmatosed
1	66076	Media Library: Image title and caption overlap when editing galleries	joedolson*	Media	7.1	normal	normal	Awaiting Review	defect (bug)	accepted	has-patch	2026-09-09T06:58:03Z	2026-10-12T13:31:50Z	"When adding or editing a gallery the thumbnails display the image title displaying over the top of the Caption. Making both (but particularly the caption) hard to read.

"	jordesign
1	64617	Media Uploader: Incorrect fallback error message when filename contains special characters (apostrophes)		Media	6.9.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-02-09T19:16:56Z	2026-08-15T01:27:58Z	"== Description ==
When uploading a file with an apostrophe in the filename (e.g., ""Men's Club.png""), the WordPress media uploader fails and returns a highly misleading error message: 

> ""The server cannot process the image... Uploading a smaller image may help. Suggested maximum size is 2560 pixels.""

In reality, the image dimensions are well below the 2560px threshold. The failure is caused by the apostrophe, but the UI defaults to the ""Big Image"" fallback error.

== Steps to Reproduce ==
1. Prepare an image under 1000px wide, but name it with an apostrophe: `test'image.jpg`.
2. Upload via the Media Library (async uploader).
3. Observe the error message regarding the 2560px limit.

== Expected Result ==
The error should accurately reflect a filename/sanitization issue, or WordPress should sanitize the filename before the upload attempt.

== Actual Result ==
The user is told the image is too large, leading to unnecessary troubleshooting of image dimensions.

== Context & Previous Tickets ==
While previous tickets such as #22694 and #41693 addressed the server-side failure of apostrophes, this ticket is a **UI/UX defect** report. This specific misleading error message is tied to the `big_image_size_threshold` logic introduced in WP 5.3, which didn't exist when the older tickets were triaged."	sflwa
1	48236	Media attachment browser no longer provides id of attachment		Media	5.2.3	normal	normal	Future Release	defect (bug)	new	has-patch	2019-10-07T06:49:48Z	2020-02-21T01:39:38Z	"This is a follow-up to #47458.

Issue #47458 removed the data-id attribute from the media attachment browser. This was a useful attribute, used by an (internal) plugin on our site to access the details of the currently displayed attachment. We used code similar to this to hook into the dialog:

{{{
wp.media.view.Attachment.Details.prototype.on('ready', function() {
	var postid = $('.attachment-details').data('id'),
		details = wp.media.attachment(postid);
	// do stuff with details
});
}}}

This functionality is now broken, and I can’t see another way to access the id of the attachment details being shown. (The item id in the query string is not reliable, as it’s not always updated in time, or at all.)

Could this useful attribute be restored? It doesn’t seem to affect the problem addressed in #47458 in any way."	slebog
1	57489	Media items, which have already been uploaded, disappear when the upload dialog box is closed and then opened again.		Media	6.1.1	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2023-01-18T05:45:34Z	2026-08-18T08:43:23Z	"I followed the following steps and got this error:

1) Freshly created a new WordPress site.

[[Image(https://i.paste.pics/L1SUI.png)]]

2) Created a new page and opened it in the block editor

[[Image(https://i.paste.pics/L1SW2.png)]]

3) Added a new gallery block

[[Image(https://i.paste.pics/L1SY2.png)]]

4) Clicked ""Media Library""

[[Image(https://i.paste.pics/L1SYB.png)]]

5) Uploaded new images

[[Image(https://i.paste.pics/L1SYG.png)]]

6) Uploaded 20 images

[[Image(https://i.paste.pics/L1SYQ.png)]]

7) Closed the dialogue box and opened it back up.

[[Image(https://i.paste.pics/L1T7T.png)]]

8) Selected a few images and clicked ""Create a new gallery""

[[Image(https://i.paste.pics/L1T81.png)]]

9) After it went to the ""Edit Gallery"" window, I closed it by clicking the cross button 

[[Image(https://i.paste.pics/L1T8W.png)]]

10) Clicked ""Media Library"" again to create the Gallery block

[[Image(https://i.paste.pics/L1TAA.png)]]

11) Selected photos again and clicked ""Create a new gallery""

[[Image(https://i.paste.pics/L1TBI.png)]]

12) When it again went to the Edit Gallery window, I clicked ""Add to gallery""

[[Image(https://i.paste.pics/L1TCL.png)]]

13) Shows ""No media items found"", even though I have a lot of images uploaded.

[[Image(https://i.paste.pics/L1TDG.png)]]


Here are my setup details:
i) OS: Ubuntu 20.04.5 LTS
ii) Using Local by Flywheel
iii) Web server: Nginx
iv) PHP Version: 8.1.9
v) MySQL: 8.0.16
vi) WordPress: 6.1.1
vii) Browser: Opera
"	shamayel007
1	57821	Media library badly autopopulates image caption if Windows image metadata exists		Media	6.1.1	normal	normal	Awaiting Review	defect (bug)	new		2023-02-28T13:01:38Z	2025-05-12T01:38:05Z	"If you upload an image which has specific metadata (Properties → Comments filled out on a Windows computer, with the Properties → Title field blank), the caption on the image in WP Admin autopopulates with a string of question marks.

------------------

=== Steps to reproduce

1. On Windows, edit an image's properties in the file explorer so that the Comments field is populated, but the Title field is not.
2. Upload the image to any site

=== What you expected to happen

The caption field in the Media library should either stay blank, or contain the actual ""Comments"" field contents.

=== What actually happened

The caption field for that file contains a string of question marks as long as your original comment text.
"	properlypurple
1	31689	Media player not working with 302 redirects		Media	4.1.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2015-03-19T07:28:04Z	2026-04-09T08:53:14Z	"When calling the audio player using `wp_audio_shortcode( array( 'src' => '/path/to/file' ) );` and the path in question is a 302 redirect to an actual audio file, the audio player cannot find or play the file.

A prime example of this is with Microsoft's OneDrive - a public link to a file stored with them looks like this: `https://onedrive.live.com/download?resid=###`. Going to that URL ends up in a 302 redirect to the actual file. While OneDrive may not be the best way to store and share media files, it is still a valid use case. Plus, this will affect any file storage where the file is accessed via a 302 redirect.

There are alternative audio players that can handle 302 redirected files, so it's not impossible to work around the issue.

For reference, this came up in a support ticket for one of my plugins - details here: https://wordpress.org/support/topic/direct-link-to-onedrive."	hlashbrooke
1	54069	"Media title change in ""Attachment Details"" dialog opened via Media Library Grid View is not informing API/plugins properly"		Media		normal	normal	Awaiting Review	defect (bug)	new		2021-09-03T10:52:50Z	2023-02-03T23:08:50Z	"**Problem**:
If WordPress offers different UIs to edit media titles, then all those should properly inform the respective plugin/event APIs about that change. It seems there is a discrepancy, in one place it works, in the other not. See the reproductions.

**Environment / How I discovered the bug**
I noticed this bug when using the plugin [https://wordpress.org/plugins/media-file-renamer/ Media File Renamer] 5.2.4 on WordPress 5.8. What I observed is very likely a bug in WordPress and not from the plugin according to the [https://wordpress.org/support/topic/no-file-renaming-if-title-changed-via-media-library-thumbview-edit-popup/#post-14834202 support reply of the plugin developer @TigrouMeow]:
> Unfortunately, I think the problem is on the Media Library ThumbView Edit Popup side [remark: The documentation calls this ""Media grid view"" and ""Attachment details dialog"" respectively]. Media File Renamer renames files based on a title change depending on specific actions in WordPress, and those actions can be also fired by other plugins. Since this plugin is mimicking the Edit Media Page of WP, it should also includes the actions. Otherwise, that will break not only the process of my plugin, but also many more.

**✅ Reproduction I**
1) Media Library in [https://wordpress.org/support/article/media-library-screen/#media-library-list-view List View]
2) Hover over a media post > Click “Edit”
3) You get to “Edit Media”
4) Change the “title”
4) Be sure that the “Renamer” widget has the file name not locked
5) In the “Save” widget click “Update”
* Outcome as expected: The filename is changed accordingly.
* The slug is also changed from the filename change, due to the [https://wordpress.org/plugins/media-file-renamer/ Media File Renamer] plugin config:
 * Advanced > Fields Syncing > Slug/Permalink: `[√] Sync with filename`

**❌ Reproduction II**
1) Media Library in [https://wordpress.org/support/article/media-library-screen/#media-library-grid-view Grid View]
2) Click on a media thumbnail
3) A dialog/popup opens, entitled [https://wordpress.org/support/article/media-library-screen/#attachment-details Attachment details]
4) Change the “title”
5) Optional step for observation purposes: Click into the next field, or TAB into the next field. You see a saving indicator.
6) Close the popup. (If you skipped 5, you very briefly see the saving indicator while the popup closes)
* **Actual**: The title is changed, the filename not!
* **Expected**: Whichever of [https://wordpress.org/plugins/media-file-renamer/ Media File Renamer]'s sync settings are active (title, filename, slug) kick in here in this editing method as well."	abitofmind
1	62571	Media uploader tabs styling are little broken		Media	6.7.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-11-26T07:18:51Z	2024-11-27T07:31:06Z	"When you try to upload or select any media from the media uploader you can see tabs tyles are broken, tabs borders are not connected to the border of bottom and when tab is active blue border are et the center.

Steps to reproduce:
1. Go to post edit page
2. Click on the thumbnail or select thumbnail
3. Click on the upload tab and you'll see the issue

Actual result:
""Focused"" border ends at the center of tab, and non-active tab's is not connecting to the bottom border.

Expected result:
non-active tab's border should be connected to the bottom border, and active tab's blue border should be end at the bottom instead of center."	haykbalbabyan
1	45021	Media: Gallery modal has wrong focus and image detail	joedolson*	Media	6.1.1	normal	normal	Future Release	defect (bug)	accepted		2018-10-02T01:06:04Z	2024-02-05T20:21:21Z	"When you first click on Add Media from the post editor, the existing images are shown, and nothing has specific ""focus"" (blue outline).

Clicking on Create Gallery first, the Search box is focused.
Clicking on images first, and then Create Gallery, the last image selected is focused.

Once images are selected, clicking on the Create New Gallery button, the Cancel Gallery link is focused.

On the Edit Gallery page, before clicking on an image, the sidebar shows Gallery Settings for link, columns, size. Once an image is selected, there is no way to unselect it, and although the Gallery settings remain the same, it is unclear whether this applies to the image selected or the entire gallery. Regardless, the image details are shown in the sidebar. However, if you Cancel Gallery and choose different images, when you get back to the Edit Gallery page, it will still be showing the image details for the old image, not any of the newly chosen ones (but none of the images are focused when you get there). So the Cancel didn't actually cancel.

If you close the modal without inserting the gallery into the post, and then click on Add Media again, it will show the values from the last attempt. This is unexpected, and unwanted if you had selected a lot of images and wanted to start over. There ''is'' a Clear link, but it is small and at the bottom. The last selected image is focused, but not after you click Create Gallery (the Cancel Gallery link is), so the image detail is the wrong one. If you go ahead and insert the gallery, and click Add Media again, then nothing is remembered from the previous gallery.

While in Edit Gallery, if you had selected two images and click on Add to Gallery, you can select more and click Add, they will all be shown, with one image focused and showing the correct image detail. Clicking Cancel Gallery at this point returns to the media list, but with the original two selected and perhaps a different image focused than the previous list. The added ones are forgotten."	joyously
1	48436	Media: fix the layout of Gallery settings in the media modal dialog		Media	3.9	normal	normal	Awaiting Review	defect (bug)	assigned		2019-10-26T12:53:10Z	2020-11-01T11:47:20Z	"In WordPress 3.8, the gallery settings in the media modal right sidebar were well aligned:

[[Image(http://cldup.com/eEOQrDgtO6.png)]]

The alignment broke pretty soon in WordPress 3.9, see [27487] / #26631. The CSS was changed to adjust the styling for the audio / video playlists settings but it broke the gallery details settings:

Screenshot from WordPress 3.9:

[[Image(http://cldup.com/EP_dN25J_v.png)]]

That's because the playlist settings are not intended to be aligned in two ""columns"":

[[Image(http://cldup.com/9djN13Naos.png)]]

The gallery settings are fully operable, so this is just a minor visual glitch.

Regardless, the layout is broken since March 2014 and still needs a fix on current trunk, even after the many changes to the media modal form controls markup and CSS, see [45499] / #47122.

[[Image(http://cldup.com/XfzKug_020.png)]]
"	afercia
1	40126	Mobile has two media editing experiences		Media		normal	normal	Awaiting Review	defect (bug)	new		2017-03-12T12:38:39Z	2023-10-25T05:04:49Z	"Seems like two editing experiences on mobile

One: Upload an image, click edit once uploaded. See this in new tab:

[[Image(https://cldup.com/TblPv9TBJT.PNG, 50%)]]

Two: Click ending on existing image, don't get new tab and get double pane weirdness. See this:

[[Image(https://cldup.com/eK7TcVfqi4.PNG, 50%)]]

We should have one experience as it feels not sensible having two.
"	karmatosed
1	58288	No support for JPG with HDR gain maps		Media		normal	normal	Awaiting Review	defect (bug)	new		2023-05-10T17:36:45Z	2026-04-06T16:35:01Z	"HDR (""high dynamic range"") images offer vastly improved image quality on supporting hardware (see here for more details: ).

When displaying an HDR image on an SDR (standard dynamic range) screen, the image needs to be ""tone mapped"" to fit the reduced dynamic range of the screen. That can provide mediocre results, and a separate SDR version of the image will usually look better on an SDR monitor. Supplying two versions of the same image is complicated, and that is the reason for the new ""gain map"" proposal. 

Adobe has published the gain map specification (and test images) at https://helpx.adobe.com/camera-raw/using/gain-map.html#resources and Chrome Canary v115 already supports proper rendering of the JPG gain map (be sure to view on a true HDR display, such as the M1 / M2 MacBook Pro).

JPG gain maps (with an SDR base image) offer an ideal way to support HDR as we all transition to HDR over time. They will display in an ideal way on both an SDR or an HDR display. And they will safely display as SDR in browsers which do not understand gain maps.

When a JPG with a gain map is uploaded to the WordPress media library, it is converted to an SDR JPG. The gain map is lost and therefore the image will no longer properly display as HDR when viewed on HDR hardware using a browser which supports HDR gain maps (such as Chrome)."	gregbenz
1	63773	Palette-based PNG cause failure attempting AVIF/WebP conversion under GD	adamsilverstein	Media	5.8	normal	normal	7.3	defect (bug)	assigned	has-patch	2025-07-31T16:23:28Z	2026-10-26T18:04:44Z	"When uploading a palette based PNG image and attempting to use core's `image_editor_output_format` to output WebP or AVIF images, conversion fails with a PHP error when using GD. GD cannot convert palette-based PNG to WebP/AVIF formats so to fix the issue, a palette image is first converted to truecolor (`imagepalettetotruecolor`). Testing shows the PHP error is resolved and the resulting images are still significantly smaller than their PNG counterparts.


This issue was originally reported in the Performance Lab Modern Images plugin - https://github.com/WordPress/performance/issues/1561. The issue is fixed by this PR in the plugin: https://github.com/WordPress/performance/pull/2024. The purpose of this ticket is to bring that fix directly into core, into WP_Image_Editor_GD.

We can start by adding a unit test to demonstrate the issue."	adamsilverstein
1	42851	Problem with video height since 4.9		Media	4.9.1	normal	normal	Awaiting Review	defect (bug)	new		2017-12-09T12:02:55Z	2018-01-02T23:19:13Z	"I have a video on a page and after updating to WP 4.9.1 the following element gets a height of 0px:
<div style=""width: 822px; '''height: 0px''';"" class=""wp-video"" data-aspectratio=""0"">

The result is that the video area shows just the controls and nothing more  (see attached screenshot on the left) .

I can fix this with workarounds via CSS like styling mejs-container and mejs-mediaelement (see attached screenshot on the rigth) but that's a hassle for the responsive versions.

Anyone elese facing these problems?

(P.S.: I'm not an expert AND a German, so forgive me for dumb questions and bad writing …)

"	vhcrossmedia
1	51584	Publishing a large image post while the image is still uploading allows you to leave and return to a broken image		Media		normal	normal	Awaiting Review	defect (bug)	new		2020-10-21T05:24:32Z	2020-11-10T18:49:23Z	"This issue was originally reported by @antpb in #core-media here;
https://wordpress.slack.com/archives/C02SX62S6/p1603135350316800

If you go to the post editor and upload a large image to the image block, then publish/save and leave the screen before it's uploaded you'll return to the post with a broken image.

I'm thinking we should provide a dirty flag while that upload/resize process is underway for large images to flag to users and stop them from leaving the editor before the process completes."	garrett-eclipse
1	48361	Select Files on iOS doesn't trigger on modal if start on Upload Files tab and switch to Media Library tab	adamsilverstein	Media		normal	normal	Awaiting Review	defect (bug)	assigned		2019-10-17T23:27:06Z	2019-11-03T19:46:59Z	"Hello,

I came across an odd issues on a client site recently using ACF and the Gallery field so I did a fresh install and found the issue resides in core as well.

In short the 'Select Files' button doesn't trigger the uploader if you trigger the media modal starting on 'Upload Files' and then switching to 'Media Library' when there's no files present. 

To reproduce use an iOS device (iPad/iPhone);
1. Install a clean WordPress
2. Create a new post.
3. Add a Gallery block
4. Click the 'Media Library' button.
5. If your Media Modal opens with 'Media Library' tab selected then switch to 'Upload Files' and reload the screen.
6. Your Media Modal should open on 'Upload Files' now.
7. Switch to the Media Library tab now.
8. Click the 'Select Files' button that appears below the 'No items found' text.
9. Note the uploader isn't triggered.

This seems to only occur when there's no items in your media library and you are using the Media Modal but your settings have it open on 'Upload Files' first and then you switch to 'Media Library'.

I initially came across this with an ACF Gallery field, but in my clean install it was the Gallery block that I was able to reproduce the issue with.

All the best,
Cheers
"	garrett-eclipse
1	48469	Selecting Media File as image block link creates blob URL if large image still being processed		Media	5.3	normal	normal	Future Release	defect (bug)	new		2019-10-30T17:05:54Z	2019-11-05T21:46:36Z	"Steps to reproduce...

1. In post editor, select image block.
1. Use ""Upload"" button.
1. Select a large file, e.g. 5120x2880 image.
1. While the image is still being processed (has spinner overlay), select link button on the block and pick ""Media File"".

When the post is then saved and viewed, the wrapping link will have an `href` with a value like ""blob:http://example.com/cee61eeb-3bf1-984a-9930-5660bba8a2f8"".

If you then go back and edit the post, remove the link from the block, and then re-select Media File as the link type and save the post, expected URL used in post, e.g. ""http://example.com/wp-content/uploads/2019/10/image-scaled-2560.png""

Tested with WP 5.3-RC3."	ianmjones
1	62361	"Set filter ""activate_tinymce_for_media_description"" to ""true""  is breaking meadia_descripton by running it through ""htmlspecialchars()"""	joedolson*	Media	6.6.2	normal	normal	Future Release	defect (bug)	accepted	close	2024-11-08T10:55:36Z	2025-02-17T15:53:29Z	"Adding filter {{{ activate_tinymce_for_media_description }}} was great but it creates an issue.

== Bug

When activating it [https://core.trac.wordpress.org/browser/tags/6.6.2/src/wp-admin/includes/media.php#L3277 see here]

{{{#!php
<?php
	$editor_args        = array(
		'textarea_name' => 'content',
		'textarea_rows' => 5,
		'media_buttons' => false,
		/**
		 * Filters the TinyMCE argument for the media description field on the attachment details screen.
		 *
		 * @since 6.6.0
		 *
		 * @param bool $tinymce Whether to activate TinyMCE in media description field. Default false.
		 */
		'tinymce'       => apply_filters( 'activate_tinymce_for_media_description', false ),
		'quicktags'     => $quicktags_settings,
	);

}}}

The textarea will be [https://core.trac.wordpress.org/browser/tags/6.6.2/src/wp-admin/includes/media.php#L3292 processed]


{{{#!php
<?php
        <?php wp_editor( format_to_edit( $post->post_content ), 'attachment_content', $editor_args ); ?>
}}}

The function {{{format_to_edit()}}} [https://core.trac.wordpress.org/browser/tags/6.6.2/src/wp-admin/includes/media.php#L2738 here] will than execute {{{esc_textarea()}}} [https://core.trac.wordpress.org/browser/tags/6.6.2/src/wp-admin/includes/media.php#L4704 here] and ""convert"" all HTML tags using {{{htmlspecialchars()}}}.


== Solution

The reason why the HTML tags are convertred is that the parameter {{{$rich_text}}} for {{{format_to_edit()}}} is not set to {{{true}}}. Since {{{$editor_args['tinymce'] = true;}}} and {{{format_to_edit()}}} parameter {{{$rich_text}}} is directly dependend it is simple to correct by changing line [https://core.trac.wordpress.org/browser/tags/6.6.2/src/wp-admin/includes/media.php#L3292 3292] from

{{{#!php
<?php
        <?php wp_editor( format_to_edit( $post->post_content ), 'attachment_content', $editor_args ); ?>
}}}

to

{{{#!php
<?php
        <?php wp_editor( format_to_edit( $post->post_content, $editor_args['tinymce'] ), 'attachment_content', $editor_args ); ?>
}}}


== Additional comment

If someone wants to use tinymce to edit textareas one surely wants to add more than just a few words but rich content such as within a normal post. Hence I propose to change the value 

{{{$editor_args['textare_rows'] = 5; }}}

to

{{{$editor_args['textare_rows'] = 20; }}}

This will give the user a nice-sized textarea to enter rich content without having to resize it every time.

"	dagobert24
1	35771	Setting Size for Native Video Player Doesn't Work		Media		normal	normal	Awaiting Review	defect (bug)	new		2016-02-07T21:28:00Z	2017-06-27T16:50:20Z	"Width and height rules do not affix the size of the embedded native media player.

Width is ultimately honored, but height setting is overruled and set proportionally based on video's proportions. Consequently, if width of the player is set to fill in the theme's available content space, but the embedded video is vertical (filmed vertically, whereby height of the video is greater than width), then the player will be stretched way too tall, regardless of height settings (which is ultimately ignored).

To reproduce:

Embed any locally hosted, vertical video using native video player, using the Embed Media Player option from the Insert Media attachment window. Set width to the width of your theme's content area, and height to less than width. Height will not be honored.

Desired solution:

Set player size to the width and height chosen by the user. Fit the video within the set space of the player."	Tranny
1	58740	Slow load in media page of WordPress admin when having huge posts table		Media	6.2.2	normal	minor	Awaiting Review	defect (bug)	new		2023-07-06T15:53:15Z	2026-10-08T20:21:12Z	"Slow load can be traced to this function.


{{{
// get_available_post_mime_types
// wp-includes/post.php
}}}

From what I understand, this function tries to get all of the available mime type of attachment post type. When posts are over a hundred thousand, this is causing media page in admin to load in about half a minute (hosting performance relative). 

I'd like to suggest a transient in this function. Will open a PR if this bug is approved.
"	Twellve_Million
1	49086	"The ""site_icon"" option isn't always removed when the site icon is deleted"		Media		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2019-12-27T17:38:05Z	2022-01-06T02:32:21Z	"If you delete the site icon image by going to Media > Library, the ""site_icon"" option isn't deleted from the database. Note the option is deleted if you go Appearance > Customize and remove the icon through the Site Identity tab."	henry.wright
1	53981	The 'media_buttons' hook does not work for contributors.		Media	2.7	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-08-23T19:10:13Z	2021-08-26T14:40:16Z	"##Problem Details##
Plugins are given the `media_buttons` hook to be able to add additional buttons to the editor interface. The way this is implemented in _WP_Editors::editor(), the user role must include the `upload_files` capability. While this makes sense when it comes the default `Add Media` button, it doesn't make sense for some other buttons such as Post And Page Builder's Add Block button, or WeForms' Contact Form buttons. The plugin developers should be able to decide what capabilites the user needs to have for their custom buttons before hooking into that action. 

##Suggested Resolution##
My suggestion is that the existing `media_buttons` hook remain as it is, but that we add another hook just afterwards called `after_media_buttons` . This will allow those custom buttons to be rendered whenever the developer wishes them to be.
"	jamesros161
1	54320	There are no more thumbnails for uploaded PDFs		Media	5.8.1	normal	normal	Awaiting Review	defect (bug)	new		2021-10-25T19:05:09Z	2022-08-24T14:45:09Z	"My current WP configuration
• PHP / MySQL version: 7.4
• Theme used: Camp Maine of TAM’S TRADING POST (no longer maintained)
• Extensions in place: activated: Akismet - BackWPup - contact Form 7 - Cookie Notice - Honeypot for Contact Form 7 - Ithemes Security - Post Type Switcher - SF Move Login - TablePress - WP Image Zoom - WP Maintenance Mode.
Name of the host: OVH
Site address: https://amapdlacrau.fr
Problems encountered:
The latest .PDF files uploaded to the media library have a generic file icon and no longer display the small thumbnail unlike older files. Clicking on the icon no longer opens the image of the 1st page of the file.
Everything I did that didn't work to fix the problem:
* Create PDFs with different tools; Microsoft, Do PDF, ApowerPDF ...
* Install WordPress version 5.8.1
* Downgrading the PHP version from PHP 8 to PHP 7.4 This fixed the problem with the imagik module, declared absent by the site health check in version 8, but not the thumbnail problem.
* Use an upload plugin: File Manager
* Use thumbnail regeneration plugins: Regenerate Thumbnails and Force Regenerate Thumbnails.
I have not tested: use a media management plugin instead of the media library
I note that the function for generating the thumbnails of the PDF files has stopped working when the theme is no longer maintained and the PHP version is the same. Only the version of WordPress has changed
"	10rjulienk21
1	63978	Transparent PNG with white image processed empty in Media		Media		normal	normal	Awaiting Review	defect (bug)	new		2025-09-15T12:19:42Z	2025-09-26T16:14:39Z	"In WordPress version 6.7.2 I was able to add transparent images with a white coloured logo. In the recent version the image is empty but with the right dimensions.

Linux shared hosting
PHP all from 8.0+

I did a test with WordPress version 6.7.2 and the image upload valid
I updated WordPress to version 6.8.2 and the image is 'broken'. Tested on multiple websites. The original was still good but the other formats are all empty


"	besite
1	58535	"Undefined array key ""file"" in function wp_calculate_image_srcset()"		Media		normal	normal	Future Release	defect (bug)	new		2023-06-14T09:53:55Z	2024-11-03T16:48:26Z	" I noticed the following two warnings in the error log:

{{{
PHP Warning:  Undefined array key ""file"" in xxx/wp-includes/media.php on line 1367""
PHP Warning:  Undefined array key ""file"" in xxx/wp-includes/media.php on line 1373""
}}}
"	martinjhenne
1	44765	Uploaded image corrupted after resizing		Media	4.9.8	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2018-08-09T13:49:17Z	2021-04-28T18:00:00Z	"When I upload .jpg larger image and turn on resizing, image is corrupted after upload is done. I tried it on two websites on latest version. In v. 4.9.6 its working normally. When i Set in SETTINGS - MEDIA zeroes everywhere, its not resizing and picture is fine. Screenshots are below:


[[Image(https://ctrlv.cz/shots/2018/08/09/lnGX.png)]]

[[Image(https://ctrlv.cz/shots/2018/08/09/t6CU.png)]]

[[Image(https://ctrlv.cz/shots/2018/08/09/bb0t.png)]]"	lurbanek
1	53944	Video resolution in portrait orientation		Media	5.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-08-17T14:17:33Z	2021-08-17T17:07:51Z	"Hi! 

I uploaded mp4 video file having portrait orientation and found that attachment metadata contains swapped width and height parameters. I see that WP is using getID3 library to read video metadata and found that it can detect when video is rotated.

I used following filter to fix that:
{{{#!php
<?php

add_filter('wp_read_video_metadata', [$this, 'wp_read_video_metadata'], 20, 4);
...
public function wp_read_video_metadata( $metadata, $file, $file_format, $id3_data ) {
		if( !empty( $id3_data['video']['rotate'] ) ) {
			if( $id3_data['video']['rotate'] === 90 || $id3_data['video']['rotate'] === 270 ) {
				$metadata['width'] = $id3_data['video']['resolution_y'];
				$metadata['height'] = $id3_data['video']['resolution_x'];
			}
		}

		return $metadata;
	}

}}}
"	mazursv
1	54605	WP_Image_Editor_Imagick::resize is not behaving according to spec		Media	3.5	normal	major	Awaiting Review	defect (bug)	new		2021-12-09T14:17:46Z	2021-12-14T00:32:23Z	"According to docs, you should be able to pass int|null as either $max_w or $max_h

{{{#!php
WP_Image_Editor_Imagick::resize( int|null $max_w, int|null $max_h, bool $crop = false )
}}}

Inside the function, $max_w and $max_h are directly passed to image_resize_dimensions

{{{#!php
image_resize_dimensions( int $orig_w, int $orig_h, int $dest_w, int $dest_h, bool|array $crop = false )
}}}

This function does not accept int|null for either $dest_w or $dest_h and will return false, which causes WP_Image_Editor_Imagick::resize to return a WP_Error.

For example:

{{{#!php
$editor->resize(1000,null);
}}}


will return a WP_Error while according to the documentation it should resize based on $max_w alone."	chillhoptom
1	49183	Width alignment issue in Edit attachment page		Media		normal	normal	Awaiting Review	defect (bug)	new		2020-01-13T09:55:56Z	2020-01-13T20:11:52Z	"Hello,

There is an issue with the width in the edit attachment page.

First, go to the media page and open any image and edit that image and click on the button that says ""Edit Image"" and you can see the issue.

I am using a laptop having size of 1366 x 768.

https://youtu.be/A440xIRrUJU

Please see this video for the issue I am talking about.

"	rnitinb
1	64600	"[E_WARNING] Undefined array key ""full"" in wp-includes/media.php on line 4678"		Media	6.9.1	normal	minor	Awaiting Review	defect (bug)	new	has-patch	2026-02-05T09:45:13Z	2026-05-13T14:07:10Z	"Actual code at 4678:
`} elseif ( $meta['sizes']['full']['file'] ) {`

Possible fix:
`} elseif ( ! empty($meta['sizes']['full']['file'] ) ) {`

Stack trace:

{{{
Array
(
    [0] => Array
        (
            [file] => /wp-includes/media.php
            [line] => 4678
            [function] => {closure}
        )

    [1] => Array
        (
            [function] => wp_prepare_attachment_for_js
        )

    [2] => Array
        (
            [file] => /wp-admin/includes/ajax-actions.php
            [line] => 3084
            [function] => array_map
        )

    [3] => Array
        (
            [file] => /wp-includes/class-wp-hook.php
            [line] => 341
            [function] => wp_ajax_query_attachments
        )

    [4] => Array
        (
            [file] => /wp-includes/class-wp-hook.php
            [line] => 365
            [function] => apply_filters
            [class] => WP_Hook
            [type] => ->
        )

    [5] => Array
        (
            [file] => /wp-includes/plugin.php
            [line] => 522
            [function] => do_action
            [class] => WP_Hook
            [type] => ->
        )

    [6] => Array
        (
            [file] => /wp-admin/admin-ajax.php
            [line] => 192
            [function] => do_action
        )

)
}}}
"	ArtZ91
1	44801	`image_constrain_size_for_editor()` forcing the `$content_width` messes up dimensions		Media		normal	normal	Future Release	defect (bug)	new	needs-unit-tests	2018-08-15T09:27:19Z	2019-04-15T21:58:52Z	"The `image_constrain_size_for_editor()` currently looks at the `$content_width` global that themes may define. For `medium_large`, `large` and any custom image sizes, the actual image size's width will be evaluated against the `$content_width`, and the minimum will be used.

This results in the following (example):
* Let's say `$content_width` is 640.
* Let's say your `large` image size constraints are 1280x1280.
* Let's say your image in `large` size is 1280x960.
* Instead of using the image size width (1280), it will use the `$content_width` since it's smaller (640), resulting in 640x480 being used for the dimension of the image in `large` size.

This makes sense for the default behavior, but that computed size is used in many different areas, including `wp_prepare_attachment_for_js()`, where the `sizes` property then would show something like this for the `large` size (continuing the above example):

```js
{ width: 640, height: 480, url: '.../my-image-1280x960.jpg', orientation: 'landscape' }
```

Regarding what I want to accomplish with the custom image sizes, this results in unexpected behavior. For example in my case, I was looking into dynamically generating media queries for a background image, using the sizes. I was expecting for my code to generate `@media (max-width: 1280px) ...` for the image, but it would generate `@media (max-width: 640px) ...` due to the changed size.

As I already said, the `$content_width` global makes sense to take into account by default. However, it is currently hardcoded into the function. I think it should be moved into a filter (we already have `editor_max_image_size` which is perfect for that), so that someone could temporarily unhook that behavior for custom use-cases."	flixos90
1	51908	add_image_size not working with custom plugin code		Media		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-12-01T17:55:45Z	2020-12-02T12:30:10Z	"Hey,

add_image_size() not working within the custom plugin code that we can change the the_post_thumbnail() with any custom size.

Thanks,
Arpit G Shah"	arpitgshah
1	64593	allow PDF preview generation without sizes		Media	6.9.1	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2026-02-04T05:08:26Z	2026-02-04T08:58:14Z	"Currently when we upload a pdf, it generates PDF preview with different thumbnail and sizes. However when we disable the additional media sizes to 0 in settings > Media. The PDF previews no longer get generated.

The idea is to remove dependency on media sizes to generate the pdf preview. In Library we already get full size for a pdf. file-name.pdf have file-name-pdf.jpg

Steps:
1. Upload a pdf in Media Library /wp-admin/upload.php
Result - Pdf preview get generated with all enabled sizes.
2. Disable cropping/additional thumbnail sizes in Settings > Media by setting the value 0x0.
Result - PDF preview shows an icon /wp-includes/images/media/document.svg

Expectation:
Uploading pdf generate the default full size preview which we see in Library without even if other media sizes are disabled."	aryanrajseo
1	57158	bug for image 2/3 ratio size when max height is 480px		Media		normal	normal	Awaiting Review	defect (bug)	new		2022-11-21T00:13:46Z	2022-11-21T00:13:46Z	"When I upload a 2/3 size image (example: 700/1050px, 1000/1500px, etc.) and in the media settings (/options-media.php) I set the maximum height and maximum width to 480px, the medium size image (which measures 320px x 480px) is never displayed on wordpress.

this problem exists only for images resized in medium size. everything seems OK for small and large size.

I think this bug exists since several versions.

* screenshot settings : https://drive.google.com/file/d/1LAKzw2RHVDb3MskmQ4V86FX_eGw_XBEC/view?usp=sharing
* screenshot 320x480px medium size not displayed : https://drive.google.com/file/d/1EDcCVpwW4Cd21qn9JQldL2Q9EpwvF701/view?usp=sharing"	tshak93
1	44127	editing an image can result in intermediate sized images left over after the image is deleted		Media	4.9.5	normal	normal	Awaiting Review	defect (bug)	new		2018-05-17T19:51:02Z	2023-08-09T17:19:13Z	"Steps to reproduce:

1. set thumbnail_size to `150x150`
1. upload a `300x300` image, e.g., `foo.jpg`
  * will result in `/wp-content/uploads/foo-150x150.jpg` being generated
1. edit the image and scale to `200x200`
  * will result in something like `/wp-content/uploads/foo-e1526583456941.jpg` being generated
  * `/wp-content/uploads/foo-150x150.jpg` will still be present, since it is still a valid thumbnail for the scaled image
1. regenerate intermediate sized images (e.g., by calling [[https://developer.wordpress.org/reference/functions/wp_get_attachment_metadata/|wp_get_attachment_metadata()]] followed by [[https://developer.wordpress.org/reference/functions/wp_update_attachment_metadata/|wp_update_attachment_metadata()]], which the [[https://wordpress.org/plugins/regenerate-thumbnails/|Regenerate Thumbnails]] plugin does)
  * will result in something like `/wp-content/uploads/foo-e1526583456941-150x150.jpg` being generated
1. ""Delete Permanently"" the image

Check `/wp-content/uploads` and you will see that `foo-150x150.jpg` is still there.
"	pbiron
1	47619	i got error in /wp-includes/media.php		Media		normal	normal	Awaiting Review	defect (bug)	new		2019-06-28T06:17:58Z	2019-06-28T12:38:30Z	in media php at line 3633 in $strings array you use objects without to check if this objects is exist... thanks!	Asaf Azoulay
1	54205	jqxhr is undefined inside of deferred.done() when using wp.media to add a custom image upload		Media	5.8.1	normal	major	Awaiting Review	defect (bug)	new	has-patch	2021-09-30T20:55:42Z	2026-10-13T15:08:03Z	"I have done all the usual trouble shooting and found this is being cause by a new block of code added to wp-util.js in 5.8.1.  Specifically lines 121-134.

The jqXHR property does not exist inside of the done() object and therefor always errors out.  This is removing a key functionality of a clients admin that makes it where no new products can be added without a horrible workaround."	metawebdevelopment
1	61220	manage_media_columns filter conflict		Media	6.5.3	normal	major	Future Release	defect (bug)	new	has-patch	2024-05-15T12:52:00Z	2024-09-08T17:50:41Z	"The **'manage_media_columns'** filter hook in **wp-admin/includes/class-wp-media-list-table.php** passes two arguments.

{{{#!php
<?php
return apply_filters( 'manage_media_columns', $posts_columns, $this->detached );

}}}


This filter collides with the **""manage_{$screen->id}_columns""** filter hook in **wp-admin/includes/screen.php** which passes one argument.

{{{#!php
<?php
$column_headers[ $screen->id ] = apply_filters( ""manage_{$screen->id}_columns"", array() );
}}}



Trying to filter in media columns like that works fine in **Library** page.
		{{{#!php
<?php
add_filter( 'manage_media_columns', array( $this, 'filter_media_table_columns' ), 100, 2 );
}}}


buy results to a **Too few arguments fatal error** in **Add New Media File** page
"	grandplugins
1	66639	media-audiovideo.js modifies the resource url	adamsilverstein	Media	7.1.4	normal	minor	7.3	defect (bug)	assigned	commit	2026-11-10T03:39:54Z	2026-11-11T03:42:38Z	"When loading a video (or audio) file in the media library, the following function in media-audiovideo.js is called

{{{
	/**
	 * When multiple players in the DOM contain the same src, things get weird.
	 *
	 * @param {HTMLElement} elem
	 * @return {HTMLElement}
	 */
	prepareSrc : function( elem ) {
		var i = MediaDetails.instances++;
		_.each( $( elem ).find( 'source' ), function( source ) {
			source.src = [
				source.src,
				source.src.indexOf('?') > -1 ? '&' : '?',
				'_=',
				i
			].join('');
		} );

		return elem;
	}
}}}

It adds an auto-incrementing `_` query parameter to the media source URL (eg. `&_=0`). But it is not safe to assume that adding a query parameter has no effect on the requested resource. For instance, this invalidates signed URLs from a CDN.

I don't know what ""weird things"" this refers to, so unfortunately I'm not sure what a better solution to also avoid the bug that led to this workaround would be. Still, modifying the URL should be avoided."	gddrt
1	58261	"set_post_thumbnail_size interferes with ""Cover Image Block"""		Media	6.2	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2023-05-05T15:42:51Z	2024-12-23T19:46:38Z	"adding a post thumbnail size on the theme level interferes with the Cover Image Block which will use the ""new thumbnail"" as its image, resulting in blurry image displays:

add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( xxx, 9999 );"	RichWP - Felix
1	64215	slimImageObject drops meta fields added to attachments		Media		normal	normal	Awaiting Review	defect (bug)	new		2025-11-07T13:22:07Z	2025-11-07T13:23:33Z	"I've opened an issue in the Gutenberg repo, but since the solution likely involves modifying core code, I'm creating a ticket here as well.

### Description

The object passed to the `onSelect` callback in the Gutenberg `MediaUpload` component calls the following function that removes all image attributes except those in the `attrSet` constant:

{{{
const slimImageObject = ( img ) => {
	const attrSet = [
		'sizes',
		'mime',
		'type',
		'subtype',
		'id',
		'url',
		'alt',
		'link',
		'caption',
	];
	return attrSet.reduce( ( result, key ) => {
		if ( img?.hasOwnProperty( key ) ) {
			result[ key ] = img[ key ];
		}
		return result;
	}, {} );
};
}}}

That means that meta fields added to attachments via `register_post_meta` and the `attachment_fields_to_edit` and `attachment_fields_to_save` filters are dropped. Is there a way to avoid this? 

### Step-by-step reproduction instructions

1. Register a meta field to the attachment post type:

{{{
register_post_meta(
	'attachment',
	'_oembed_url',
	array(
		'show_in_rest' => true,
		'type'              => 'string',
		'single'            => true,
		'sanitize_callback' => 'sanitize_url',
		'auth_callback'     => function () {
			return current_user_can( 'edit_posts' );
		},
	)
);
}}}

2. Add a `MediaUpload` component to a block:

{{{
<MediaUpload
    allowedTypes={['image']}
    multiple={true}
    gallery={true}
    value={images.map((image) => image.id)}
    onSelect={setImages}
    render={({ open }) => (
        <ToolbarButton onClick={open}>
            {__('Edit images')}
        </ToolbarButton>)}
    />
}}}

3.  Check that the `value` param doesn't contain any meta fields:

{{{
const setImages = (value) => {
    console.log(value);
}
}}}
"	leemon
1	39331	unsharpMaskImage in Imagick's thumbnail_image is not compatible with CMYK jpegs.		Media	4.5	normal	normal	Awaiting Review	defect (bug)	new		2016-12-19T15:31:11Z	2017-05-11T14:40:11Z	"This has been split off from #39216.

The use of `Imagick::unsharpMaskImage()` in `WP_Image_Editor_Imagick::thumbnail_image()` on jpegs with CMYK color spaces results in mangled images, eg black text becomes fuzzy and over-black, and colors change. The attached patch just doesn't call it if the image has a CMYK color space.

The unit test requires the attached ""test_cmyk.jpg"" to be uploaded to the test data images directory (which is actually the ""full"" jpeg produced by `WP_Image_Editor_Imagick` when processing the ""test_cmyk.pdf"" PDF uploaded to #39216).
"	gitlost
1	36437	wp_delete_attachment causes warning		Media	2.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2016-04-07T06:24:34Z	2024-11-01T13:12:30Z	wp_delete_attachment assumes that attachments uses category and post_tag taxonomies. This causes a warning in wp_delete_object_term_relationships when post type attachment is not using category or post_tag taxonomies.	thorbrink
1	45075	wp_delete_attachment() has unreliable return and wrong process order		Media		normal	normal	Future Release	defect (bug)	new		2018-10-11T04:48:13Z	2019-04-15T22:36:10Z	"When doing permanent deletion, this function should also remove the files of the target attachment. However successful return of this function does **not** guarantee this even though it still can delete the attachment object and its relations.

Problems when permanent deletion is in process:
1. {{{wp_delete_attachment()}}} must check for {{{wp_delete_attachment_files()}}}'s return and should fail too when {{{wp_delete_attachment_files()}}} fails

2. {{{wp_delete_attachment_files()}}} should be called first - what is the point of deleting object and it's relations when physical data could not be removed...


"	jave.web
1	38906	wp_get_attachment_image_src() sometimes gives incorrect width and height values		Media		normal	normal	Future Release	defect (bug)	reopened	dev-feedback	2016-11-22T18:57:34Z	2022-12-21T20:11:42Z	"The following is an example of a problem that happens to me regularly across multiple sites.

I have an image size registered as follows:

{{{#!php
add_image_size( 'featured-home', 1600, 600, true ); // width, height, crop
}}}


When I run wp_get_attachment_image_src() as follows:

{{{#!php
$image = wp_get_attachment_image_src( $post_id, 'featured-home' );
}}}

...and then print_r() the result, I get this:

{{{#!php
Array
(
    [0] => http://localhost:8080/lacoastalservices/wp-content/uploads/2016/09/wetlands-1600x600.jpg
    [1] => 1080
    [2] => 405
    [3] => 1
)
}}}

The image itself is actually 1600 by 600 pixels wide, but for some reason the width and height values given in the array are ""scaled down"" to the width of the next largest image size on the site (1080px), and the corresponding image height if it were actually that wide (405px).

Note that WordPress's ""large"" default image size is still at its default of 1024px, so I don't think that's the problem.

You can hopefully reproduce this by running the ""Display All Image Sizes"" plugin on a few sites and looking for images whose larger image sizes have a mismatch between their identified dimensions and their actual urls. ""Display All Image Sizes"" is using wp_get_attachment_image_src() to generate the text strings that describe image sizes, which is how I became aware of this bug."	pressupinc
1	32117	wp_get_attachment_metadata sizes array file misses path if using year/month organizing		Media	4.2	normal	normal	Awaiting Review	defect (bug)	new		2015-04-24T15:58:51Z	2017-08-14T13:15:29Z	"wp_get_attachment_metadata returns array like this:

{{{
[""metadata""]=>
  array(5) {
    [""width""]=>
    int(3072)
    [""height""]=>
    int(2304)
    [""file""]=>
    string(25) ""2015/03/GC702D01_high.jpg""
    [""sizes""]=>
    array(4) {
      [""thumbnail""]=>
      array(4) {
        [""file""]=>
        string(25) ""GC702D01_high-200x150.jpg""
        [""width""]=>
        int(200)
        [""height""]=>
        int(150)
        [""mime-type""]=>
        string(10) ""image/jpeg""
      }
}}}
as you can see, ""file"" in the first level of the array contains year and month (as i do have turned on organizing in year/month structure for uploads), but ""file"" in the second level for (e.g. in this case) the thumbnail size is only the file name, without the path.

This is at least confusing, make it difficult to get the URL of the file - each size need to be then requested separately by wp_get_attachment_image_src function. 

IMO optimal solution would be to use full path in both `$metadata['file']` and `$metadata['sizes'][$size]['file']` so the same name would have the same structure. But i do not know if it wouldn't have some compatibility issues.

Less optimal imo would be to add there also the path - it can be there only once in the top level, as all sizes are currently always in the same folder, but i think this could lock us from possible changes / plugin modifications etc. E.g. I think that it would be great, if it would be possible (and even default) to have size name, as a folder, so that we would have thumbnails in uploads/thumbnail, medium size in uploads/medium ... - this would highly reduce the number of images in one folder in default settings and would reduce the problems with displaying them on most systems. And also if we would want to delete some defined size, we could simply delete one folder and save space. 

So the second optimal would be to show the path in `sizes[$size]` subarray, e.g.

{{{
[""metadata""]=>
  array(5) {
    [""sizes""]=>
    array(4) {
      [""thumbnail""]=>
      array(4) {
        [""file""]=>
        string(25) ""GC702D01_high-200x150.jpg""
        [""path""]=>
        string(25) ""2015/03/""
      }
}}}"	thomask
1	57813	wp_get_missing_image_subsizes() can give error if image_meta exists, but not height/width		Media	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-02-26T21:47:16Z	2026-10-25T21:28:46Z	"I have an SVG file attached as image. The function throws an error:

{{{
        if ( ! empty( $imagesize ) ) {
                $full_width  = $imagesize[0];
                $full_height = $imagesize[1];
        } else {
                $full_width  = (int) $image_meta['width'];
                $full_height = (int) $image_meta['height'];
        }
}}}

on the else case. The below patch will resolve.
This is with 6.1.1

{{{
--- /app/wp-admin/includes/image.php.orig	2023-02-26 21:42:57.687046116 +0000
+++ /app/wp-admin/includes/image.php	2023-02-26 21:40:41.349180739 +0000
@@ -89,11 +89,11 @@

 	$registered_sizes = wp_get_registered_image_subsizes();
 	$image_meta       = wp_get_attachment_metadata( $attachment_id );

 	// Meta error?
-	if ( empty( $image_meta ) ) {
+	if ( empty( $image_meta ) || !array_key_exists('width', $image_meta) || !array_key_exists('height', $image_meta) ) {
 		return $registered_sizes;
 	}

 	// Use the originally uploaded image dimensions as full_width and full_height.
 	if ( ! empty( $image_meta['original_image'] ) ) {
}}}
"	donbowman
1	58240	wp_read_image_metadata() doesn't handle Exif array values	joedolson*	Media		normal	normal	Future Release	defect (bug)	accepted	has-patch	2023-05-03T06:02:01Z	2024-10-29T18:30:44Z	"Some images appear to have multiple values for some headers, which causes `wp_read_image_metadata()` to return `'Array'` for some fields.

A real-life example are these images:
 - https://wordpress.org/photos/photo/3056444e62/
 - https://wordpress.org/photos/photo/7716444e53/
 - https://wordpress.org/photos/photo/5376444e57/

Looking at the return value from `exif_read_data()` for one of these, you'll see arrays below. However `wp_read_image_metadata()` includes lines like `(string) $exif['FocalLength'];`. It looks like `iPhone 13 mini` might be common between the above examples
{{{
[...]
  'SectionsFound' =>
  string(19) ""ANY_TAG, IFD0, EXIF""
  'COMPUTED' =>
  array(6) {
[...]
    'ApertureFNumber' =>
    string(5) ""f/1.6""
  }
[...]
  'Make' =>
  string(5) ""Apple""
  'Model' =>
  string(48) ""iPhone 13 mini back dual wide camera 5.1mm f/1.6""
  'Exif_IFD_Pointer' =>
  int(106)
  'ApertureValue' =>
  array(2) {
    [0] =>
    string(9) ""1356/1000""
    [1] =>
    string(9) ""8803/1000""
  }
[...]
  'FocalLength' =>
  array(2) {
    [0] =>
    string(9) ""5100/1000""
    [1] =>
    string(10) ""10884/1000""
  }
  'ShutterSpeedValue' =>
  array(2) {
    [0] =>
    string(10) ""10884/1000""
    [1] =>
    string(19) ""1124129791/84149760""
  }
}}}

As a result on the above Photo pages you'll see something like this:
{{{
Focal Length: Arraymm
Shutter Speed: 1/0
}}}

This could be related to the image processing application being used, or the sections found in the image. I'd be tempted to just select the first array key in those cases."	dd32
1	54438	"""Required fields are marked"" shows up without required fields being present"		Media	5.8.2	normal	minor	Awaiting Review	enhancement	new	has-patch	2021-11-13T16:33:06Z	2026-08-19T06:34:05Z	"A support ticket for my Image Source Control (ISC) plugin made me investigate this.

https://wordpress.org/support/topic/erforderliche-felder-sind-mit-markiert/

Whenever a custom field is added to the attachment edit page, the notice ""Required fields are marked"" is displayed by WordPress core.

ISC uses the `attachment_fields_to_edit` filter for that.

I looked into `wp-admin/includes/media.php`. The code responsible for showing the message is


{{{
if ( $item ) {
		$item = '<p class=""media-types media-types-required-info"">' .
			/* translators: %s: Asterisk symbol (*). */
			sprintf( __( 'Required fields are marked %s' ), '<span class=""required"">*</span>' ) .
			'</p>' .
			'<table class=""compat-attachment-fields"">' . $item . '</table>';
	}
}}}

The foreach loop that goes through all fields could easily check if any field has the ""required"" attribute and rather use that as a condition to show the message instead of `$item`."	webzunft
1	38026	Add Delete link to details modal when file in trash		Media	4.0	normal	normal	Awaiting Review	enhancement	new	has-patch	2016-09-12T18:10:26Z	2025-09-16T07:53:34Z	"First enable media trash by adding {{{define('MEDIA_TRASH', true);}}} to wp-config.php and move a media file to trash by clicking its ""Trash"" Link either in grid view or list view.

Then navigate to the trash view. In list view there are two links on each item (""Restore"" and ""Delete Permanently"").

In the details modal of the grid view there's only one link (""Untrash""). In addition this link is red like a delete link, but it actually restores the file. To delete the file you have to close the modal, select it with bulk select and then click the delete button in the toolbar.

I think there should be a second link ""Delete Permanently"" in the details modal and the ""Untrash"" link should be blue to avoid confusion."	mahu2401
1	49779	Add a filter that controls the size of the images on the Attachment pages		Media		normal	major	Awaiting Review	enhancement	new	reporter-feedback	2020-04-02T11:52:39Z	2022-03-10T16:35:34Z	"The images (attachments) on the Attachment pages are hardcoded as ""medium"".

On narrow themes, that might be fine, but on wider themes it leads to a tiny-looking image with a lot of awkward whitespace.

Many users have wanted to change the size of the image on that page, which has lead to multiple guides suggesting that they replace the hardcoded value in /wp-includes/post-template.php

Examples of such guides:

* https://zolahost.com/change-wordpress-attachment-page-image-size/

* https://wordpress.org/support/topic/attachment-page-image-size-3/

* https://www.dmuth.org/fixing-image-sizes-on-wordpress-attachment-pages/

The problem with that solution, of course, is that the changes will be overwritten when the next WordPress update is released, leading to a lot of confused and frustrated users.

To fix that, we could apply a filter to the attachment size.

**Original /wp-includes/post-template.php code:**

{{{
$p .= wp_get_attachment_link( 0, 'medium', false );
$p .= '</p>';
}}}

**Modified code:**

{{{
$attachment_size = apply_filters( 'prepend_attachment_size', 'medium' );
$p .= wp_get_attachment_link( 0, $attachment_size, false );
$p .= '</p>';
}}}

After that, it's very easy for users to change the attachment image's size in their child theme's functions.php file.

**Example:**

{{{
add_filter('prepend_attachment_size', 'set_attachment_image_size_to_large');

function set_attachment_image_size_to_large()
{
    return 'large';
}
}}}


"	pikamander2
1	55041	Add end to end test case for Filter media by type		Media		normal	normal	Awaiting Review	enhancement	new	has-patch	2022-02-02T07:55:01Z	2026-10-31T18:38:40Z	"Add two new test cases in wp-e2e for Filter media by type

This ticket is to add an E2E test for this feature"	honesthacker
1	39626	Add video poster in media browser		Media		normal	normal	Awaiting Review	enhancement	new		2017-01-18T15:07:26Z	2020-03-02T16:17:23Z	"When you upload images you get to see amazing thumbnails in the browser. This unfortunately isn't the case for videos. Could we somehow have this?

This is what we currently have:

[[Image(https://cldup.com/yK6Hu9pZgw.png, 50%)]]"	karmatosed
1	56217	Add video rotation info in wp_read_video_metadata()		Media	6.0	normal	normal	Awaiting Review	enhancement	new	has-patch	2022-07-14T07:15:00Z	2024-08-16T08:54:34Z	"wp_read_video_metadata() does not include ‘rotate’ in its return array. It would be nice to add it so the server can detect that width and height should be swapped in case of a portrait oriented video from a smartphone.

Just adding:
	
{{{
   if ( ! empty( $data['video']['rotate'] ) ) {
		$metadata['rotate'] = $data['video']['rotate'];
   }
}}}

right after:


{{{
   if ( ! empty( $data['audio'] ) ) {
        unset( $data['audio']['streams'] );
        $metadata['audio'] = $data['audio'];
   }
}}}

will do."	opajaap
1	52489	Allow List View when inserting images from the media library		Media		normal	normal	Awaiting Review	enhancement	new		2021-02-10T14:18:41Z	2021-02-10T14:18:41Z	"The media library allows a list view when browsing, allowing one to see (and sort) media by the various columns.  But, when selecting those images via an image block, only the grid view is available.  This makes it hard to find images other than by date and next to impossible to locate in any order (e.g., alpha).  

Allow both views of the media library when it's in ""select from media library"" mode.

(Per user request at https://wordpress.org/support/topic/media-labrary/)"	sterndata
1	41854	Allow filters to be added for the Media Library in Grid Mode & Insert Media		Media	4.8.1	normal	normal	Awaiting Review	enhancement	new		2017-09-11T08:02:45Z	2017-09-17T14:41:55Z	"Hello,

I would like to suggest the action '''restrict_manage_posts''' and '''pre_get_posts''' to be used by the Media Library in Grid Mode. It would also be great to have this available in Insert Media or when picking a Featured Image. That will allow many developers to add useful filters and avoid users to look desperately for their images/photos :) Many users have been asking this and most of them believed it was a bug (List Mode and Grid mode look very similar so the absence of filters for the Grid Mode is actually not logical).

Thanks a lot :)"	TigrouMeow
1	42487	Avoid redundant crops for all Customizer media controls.		Media		normal	normal	Future Release	enhancement	new	needs-unit-tests	2017-11-09T17:09:17Z	2019-02-07T21:45:56Z	"In WordPress 4.9, we made use of context metadata to keep from producing redundant crops in the media library for custom headers (see #21819). We should extend this behavior to all other media controls in the Customizer (e.g., custom logos, site icon, etc.). 

There are a few parts to the implementation to keep in mind:

1. We should only create one cropped attachment per context for a given site/theme option. So for instance, if a custom logo has already been cropped from an attachment for the theme being customized, we should replace that attachment instead of creating a new one. However, we ''should'' create a new attachment if the crop was created for a different theme (this may not apply to site-level settings).

2. The context of an attachment should be included in the JSON model returned by `wp_prepare_attachment_for_js()` and used to filter contextual crops out of the main media attachment library. However, it would be great if those were ''not'' filtered when you've opened the media library from the context which those attachments are created/selected."	joemcgill
1	48103	Bulk image resizing		Media		normal	normal	Awaiting Review	enhancement	new		2019-09-22T22:02:00Z	2019-09-23T01:44:07Z	When adding multiple images, it would be good to be able to select multiple and resize them all at once. Currently, if you have, say, 20 images on a page and you want to change their image sizes, you'd have to do all individually, which takes a fair amount of time.	scottscrivens
1	66363	Call update_post_author_caches in wp_ajax_query_attachments function		Media		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-10-22T11:06:26Z	2026-10-22T11:10:31Z	"`wp_ajax_query_attachments()` passes each attachment to `wp_prepare_attachment_for_js()`, which runs `new WP_User( $attachment->post_author )` to get the author name. The author caches are never primed, so every distinct author costs two database queries (`wp_users` and `wp_usermeta`) on each media modal request.

`WP_Query::the_post()` primes author caches in #55716, but this endpoint maps over `$attachments_query->posts` directly and never calls `the_post()`.


The same pattern is already used in `WP_Posts_List_Table` (#56100) and `wp_prepare_revisions_for_js()` (#56978).

== Results ==

Queries made by `wp_ajax_query_attachments()` before and after `update_post_author_caches`:

||= Authors =||= Attachments =||= Queries Before =||= Queries After =||
|| 10 || 40 || 26 || 8 ||
|| 50 || 100 || 106 || 8 ||

Before the change, the count grows by two queries per distinct author."	jdeep
1	57003	Compress original image upload to avoid uncompressed images		Media		normal	normal	Future Release	enhancement	new	has-patch	2022-11-04T20:01:53Z	2026-08-11T12:13:17Z	"When an image is uploaded to WordPress today, WordPress will generate the sub-sized versions using compression with the default quality (e.g. 82 for JPEG). The point of this is to offer smaller versions to achieve better performance with different viewport sizes. The compression here is a significant part of it, as we would not want those smaller sized images to be badly compressed and thus overly large in file size.

A problem (and I would argue oversight) in that approach is that the originally uploaded image is still used as is in many cases, even in the frontend. #47873 introduced the feature to compress ""big"" images in a smaller version, which makes sense, however that is only part of the potential problem here: It can also happen that the original image upload is simply an overly large file, even if the dimensions of the image are smaller than what makes it qualify for a ""big"" image.

This ticket proposes the following:
* Always generate a new image from the originally uploaded image, even when it is not a ""big"" image (potential exception could be PNGs as currently the case, see #48736).
* Once the image has been generated, compare the file size of the new image with the original image:
    * If the new image is smaller, use that one going forward, backing up the original image in the same way it already happens as part of the ""big"" image feature.
    * If the new image is larger (i.e. the original was already well compressed), delete the new image again and simply keep the original as is.

Given that we already generate an additional image file for ""big"" image uploads, this enhancement would not introduce any concerning overhead. It also does not make any assumptions on the original image quality, it simply compares the results to make a decision which image to keep. In any case, the original image will be kept so it would not be a destructive action either."	flixos90
1	50169	Consistency in Gallery and Image block settings		Media	5.4.1	normal	normal	Future Release	enhancement	reopened		2020-05-14T14:24:11Z	2020-07-21T22:10:08Z	"In the Gutenberg repo we have been tracking an issue focused on unifying the Gallery and Image editing experience. Currently, it's a bit disconnected from image settings and this ticket aims to change the Gallery block to create instances of image blocks rather than raw markup

https://github.com/WordPress/gutenberg/issues/11436

From the issue: 

Is your feature request related to a problem? Please describe.
Single and gallery options should be similar to each other.
I added one image to a gallery and want to resize it in a similar way to how I resize single images. Not possible. I want to add images by clicking the standard add image media library screen but it only says upload an image. It should be identical to the single image media selection options.

Describe the solution you'd like
I would like to see much more consistency between single image and gallery options. It should be very easy to go from one to the other with similar options. As one begins working with images an expectation is created that image options should be similar between various blocks that handle images.

Single image options

[[Image(http://user-images.githubusercontent.com/5323259/47937002-c17bf600-dedf-11e8-9823-ad596ce22764.png)]]

Gallery image options

[[Image(https://user-images.githubusercontent.com/5323259/47937047-dfe1f180-dedf-11e8-8b08-0db18edc2eb2.png)]]

Single image upload media options:

[[Image(https://user-images.githubusercontent.com/5323259/47937075-ee300d80-dedf-11e8-8bb1-44a47574e2ac.png)]]

Gallery upload media options:

[[Image(https://user-images.githubusercontent.com/5323259/47937095-fbe59300-dedf-11e8-88d9-6dbea7190f78.png)]]

Captions are also different from single images to the gallery.
Top example shows the Gallery and bottom a single image.

[[Image(https://user-images.githubusercontent.com/5323259/47940629-8e3f6400-deeb-11e8-9ff6-cfa71c5daccf.png)]]

Btw
It would also be very helpful to be able to rearrange the gallery images by using drag and drop.

"	antpb
1	39346	Display Error if GD library ins't installed/enabled		Media	4.7	normal	normal	Awaiting Review	enhancement	new		2016-12-20T18:47:03Z	2018-01-04T18:55:29Z	"I recently moved a website to a new server and ran the Regenerate Thumbnails plugin which ended up breaking my site because it couldn't generate the image sizes. Looking at their reviews there are a number of people bashing the plugin for breaking their sites because they do not have the GD library installed. I was very confused for awhile and I couldn't google the issue I was having but then remembered it required the GD library.

This isn't an issue only directed at the plugin because when you upload an image it will only show the full size available which left me puzzled for awhile.

I think if we could display an error in the media library after uploading an image that it failed to create the image sizes because of the missing PHP library that would be very helpful."	stormrockwell
1	60569	Generate UUID for media slugs if attachment pages are inactive.	antpb	Media		normal	normal	Future Release	enhancement	assigned	dev-feedback	2024-02-19T02:36:19Z	2024-09-18T23:07:28Z	"For hierarchical post types, WordPress compares slugs with those used by attachments to avoid collisions. The effect of this is that a page can not have the same slug as an uploaded image. [https://core.trac.wordpress.org/browser/tags/6.4.3/src/wp-includes/post.php?marks=5100-5101#L5100 Source code.]

This remains the case now that attachment pages have been disabled by default.

As the attachment pages slugs are now largely meaningless on new WordPress installs, the media slugs should not reserve nice names and prevent pages from using them. For example, a media file with the name `about-us.png` should not prevent the page `about-us` from existing.

Steps to reproduce above:

1. Install WordPress 6.4 or later
2. Go to Dashboard > Media > Add new media file
3. Upload the file `about-us.png`
4. Go to Dashboard > Pages > Add new page
5. Title the page `About Us` and publish
6. Observe the page's slug is `about-us-2`

If the attachment pages are disabled, the URLs for the media pages (as opposed to the image) can use `wp_generate_uuid4()` for the slug to avoid reserving nice names and preventing their use on available permalinks."	peterwilsoncc
1	63279	Improve `media_library_months_with_files` inside `wp_enqueue_media()`		Media	4.7.4	normal	normal	Future Release	enhancement	new	has-patch	2025-04-14T16:18:40Z	2026-02-27T20:55:44Z	"As described in the filter, the query can and will be expensive for large media libraries.
The downside of the given implementation is, that it requires a fully custom implementation. If you want to just store the result of the query in a transient there is currently no way to achieve this.
Ideal would be a `get_media_library_months_with_files()` that would have been added to `media_library_months_with_files` at it's introduction. 
 
{{{#!php
<?php
function wp_enqueue_media( $args = array() ) {
	//...

	/**
	 * Allows overriding the list of months displayed in the media library.
	 *
	 * By default (if this filter does not return an array), a query will be
	 * run to determine the months that have media items.  This query can be
	 * expensive for large media libraries, so it may be desirable for sites to
	 * override this behavior.
	 *
	 * @since 4.7.4
	 *
	 * @link https://core.trac.wordpress.org/ticket/31071
	 *
	 * @param stdClass[]|null $months An array of objects with `month` and `year`
	 *                                properties, or `null` for default behavior.
	 */
	$months = apply_filters( 'media_library_months_with_files', null );
	if ( ! is_array( $months ) ) {
		$months = $wpdb->get_results(
			$wpdb->prepare(
				""SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
				FROM $wpdb->posts
				WHERE post_type = %s
				ORDER BY post_date DESC"",
				'attachment'
			)
		);
	}

	//...
}
}}}

Since that can't be done now without the uncertainty if it could break things depending on the priority used by third parties.

I see 2 reasonable approaches to improve this.

1. Add a `do_action( 'post_media_library_months_with_files', $months );` just after the query. This could be used to fill a transient that could be read in the filter `media_library_months_with_files`, the downside would be that splitting the get and set of the transient, would be counterintuitive.
2. Move the query to a distinct `funtion get_media_library_months_with_files()` which could be used inside `media_library_months_with_files` to fill a transient. This approach seems the more favorable to me, and I will prepare this as a PR.

While it is unlikely that the query will ever change, I still think it should not be required to copy core code, just to create a transient."	apermo
1	53013	Improve media library grid management tools	joedolson*	Media		normal	normal	Future Release	enhancement	accepted		2021-04-09T19:07:03Z	2024-07-02T15:35:19Z	"The list view & the media modal both support bulk selection tools that aren't available in the media library's grid view. 

We should explore ways of moving the media grid view towards greater feature equivalence with these other views, including options such as:

 - One-click deletion
 - Select multiple items
 - View attachment titles (helps differentiate between two versions of an image)
 - Copy URL for attachment

Prompted by #51363. While a custom context menu is not something we consider to be viable for accessibility reasons, the intent of that ticket is definitely worthwhile. "	joedolson
1	57369	Insert Media dialog gets ad-hoc controls: Thumbnails squared/proportional + Sort order by date/name asc/desc		Media	6.1.1	normal	normal	Awaiting Review	enhancement	new		2022-12-21T21:16:02Z	2023-07-28T10:50:06Z	"== Reproduction
- Edit a page
- Insert an image gallery
- The ""Create gallery"" (aka ""Insert Media"") popup opens.

== The user experience in this dialog is problematic

- Screenshot with annotations and proposed improvements
- (If inline embedding failed, please see attached below)

[[Image(https://www.dropbox.com/s/i3nx5ewqkp5itne/wordpress-insert-media-dialogue.png?raw=1)]]



== Problems
- This dialog follows the WordPress design philosophy ""decisions not choices"" but here I'd propose ""good defaults (=decision) which satisfy the majority but extra ad-hoc choices for users and use cases which require otherwise"".

=== Order is by upload date, newest first
- A good default suited for the majority of typical bloggers.
- In case you want to insert numbered image series or image stories (where upload order occurred not exactly in the lexicographical order) this gets a nightmare! Especially in combination with the other issue, read on.

=== Squared thumbnails
- Very bad if you have many similar images, where the significant differences may be in the hidden areas.


== Proposals

- The dialog gets extra controls. As illustrated in the mockup.

=== Sort preference
- Dropdown menu with the choices ""Date, Name""
- Nearby a toggle button for ascending or descending order
- ""Date with newest on top"" remains the default.

=== Display preference
- Dropdown with these values:
  - ""Thumbs"" --> image fits container
    - Original image ratio is kept
    - Has no effect ofc if the source files were cropped due to: Settings > Media > Crop thumbnail to exact dimensions (normally thumbnails are proportional) = ON. But by default this is OFF as the remark in brackets indicates.
  - ""Thumbs (squared)"" --> image fills container
  - ""List"" with thumbs
  - ""List (with micro thumbs)"""	abitofmind
1	41332	Introduce dedicated capabilities for managing attachments		Media		normal	normal	Future Release	enhancement	new	dev-feedback	2017-07-14T19:01:53Z	2021-02-18T15:56:08Z	"The capabilities for attachments currently use the regular post capabilities, so it is impossible to grant users specific attachment capabilities without giving them the same post capabilities. While this is fine for WordPress itself, it can be a pain for custom setups which need specific users to have access to their attachments without them being able to write a post.

It is rather easy to change that by setting the `capability_type` argument for the `attachment` post type to `attachment` instead of `post`. To make this change compatible we could do two things:

* For new setups, we could simply add the necessary capabilities to the respective roles. Note that this won't work retroactively as it would require a heavy migration none of us wants to invest their time for. :)
* For existing setups, the necessary capabilities could be granted to users through a default filter for `'user_has_cap'`, so that it would basically map back to posts. Custom setups could remove that filter to invent their own handling of the attachment capabilities.

It might be a bit of a tough idea to have two different ways for this to work, so if we are too wary of doing it, we could of course only do what I described in the second point everywhere.

An alternative to the whole thing would be to not change anything but introduce a filter for the attachment post type's `capability_type` argument. Otherwise the value would need to be hacked on the already-registered post object. This solution would clearly lay the responsibility more on the plugin authors, which might make sense given the benefits do not really matter for core itself."	flixos90
1	32622	Make the text of the Image delete AYS dialog clearer		Media	4.3	normal	normal	Awaiting Review	enhancement	new		2015-06-12T02:30:01Z	2017-06-15T09:53:56Z	"When you delete Images from the Media Library, the warning dialog currently reads:

""You are about to permanently delete the selected items."" 

This text could be a little clearer, and indicate that, once deleted:

- Attached Images will not be visible in any Posts or Pages they are attached to.

- Both Attached and Unattached Images will not be available online at all."	lastnode
1	43227	Media uploaded to post should remove underscores and hyphens from text inserted into title attribute		Media		normal	normal	Future Release	enhancement	new		2018-02-05T11:04:43Z	2023-02-02T16:29:19Z	"When adding a new image into a post my file name will typically be called something like:

descriptive-name-of-image.jpg

Once this image is uploaded wp will automatically set the title and will default to the name of the image ""descriptive-name-of-image"" if no title meta data is available in the image.

I think a better default action would be to replace the hyphens/underscores with spaces and possibly capitalising the first letter making the title ""Descriptive name of image""."	mrmadhat
1	64554	New src_matched value filter request		Media	6.9	normal	blocker	Awaiting Review	enhancement	new		2026-01-26T12:17:30Z	2026-01-27T03:59:41Z	"Hi,

I am uploading media to Amazon S3 and serving media URLs directly from S3. All media URLs are successfully replaced and served from S3 without issues.

However, when I enable object versioning in S3, WordPress fails to generate srcset. Specifically, the URL becomes something like:

https://.../any/uploads/2026/01/8728723/a.jpg

This happens because wp_calculate_image_srcset() receives the S3 URL as $image_src, since the URL is already replaced via a the_content filter. Due to this, the internal src_matched check fails, and the function simply returns false.

As a result, no srcset is generated.

I need a filter or hook inside wp_calculate_image_srcset() to detect whether the provided image URL is an S3 URL. If it is, I need a way to force the src_matched check to return true.

I have already tested this by modifying wp_calculate_image_srcset() directly, and it successfully generates image sizes using the S3 URLs. However, modifying core is not a viable solution, so I am looking for a proper filter-based approach.

Any guidance or suggestions would be appreciated.

Thank you."	rahu1
1	46777	Pass attachment ID to image_resize_dimensions to allow reliable per image cropping		Media		normal	normal	Awaiting Review	enhancement	new	has-patch	2019-04-02T18:48:30Z	2019-04-13T09:43:32Z	"This patch passes optional attachment ID parameter to `image_resize_dimensions` filter. The purpose of this patch is to allow plugin developers to hook into `image_resize_dimensions` filter and implement reliable per image cropping.

Currently many plugins rely on ugly ""capture ID"" hacks like WP Smartcrop plugin: https://plugins.svn.wordpress.org/wp-smartcrop/trunk/wp-smartcrop.php
See `capture_attachment_id ` method for details.

The patch doesn't change the default crop behaviour, but makes cropping functionality extendable."	arkimedia
1	30876	Paste an image into the Media Library		Media		normal	normal	Future Release	enhancement	new		2015-01-01T00:12:16Z	2018-03-30T22:44:19Z	Github has some nice UX where you can paste an image into a comment. It would be nice if the Media Library supported something similar.	danielbachhuber
1	63478	Remove leftover debug code from Box class		Media		normal	normal	Awaiting Review	enhancement	new	has-patch	2025-05-24T14:55:36Z	2025-05-25T15:24:57Z	"There is a commented-out debug statement {{{ // print_r( $this ); // Uncomment to print all boxes.}}} in the {{{Box::parse()}}} method on the file {{{/wp-includes/class-avif-info.php }}}

This appears to have been used during development for debugging purposes. While it's currently commented out and doesn't affect execution, it's generally a good practice to remove unused debug code from production files to keep the codebase clean and focused.

Removing this line would help improve readability and align with WordPress coding standards for maintainable code."	getsyash
1	62174	Sending .avif image files refused in the editor	adamsilverstein	Media	6.6.2	normal	normal	Awaiting Review	enhancement	assigned	reporter-feedback	2024-10-06T13:28:51Z	2024-10-14T14:20:46Z	"Hi !

I can upload image files in .avif format perfectly in the upload section. On the other hand, I can't upload them directly from the editor... either in an image frame or in a gallery frame.

Good day !
"	NightAngel
1	35865	Site Icon should be uploaded to a different directory or not able to be deleted from library		Media	4.4	normal	normal	Awaiting Review	enhancement	new		2016-02-18T22:52:42Z	2023-08-14T21:50:57Z	The new site icon feature is great.  However I think if an image is set as the site icon, that image should not be able to be deleted from the media library, or it should be uploaded somewhere else and use that location as its link.   	DoodleDogCody
1	49830	Store rotation data for uploaded videos		Media		normal	normal	Future Release	enhancement	new		2020-04-06T17:44:17Z	2022-03-10T15:57:25Z	If the video format supports and the data is found in the exif data, store the rotation angle in video metadata.	spacedmonkey
1	47726	Uploading new media to existing posts/pages backdates file location		Media	2.7	normal	normal	Future Release	enhancement	reopened	dev-feedback	2019-07-17T18:13:57Z	2022-05-23T18:29:08Z	"This is a follow-up to #10752.


Hello,

I just want to know, who thought this was a great idea? This causes so many media managing problems.. Why can't we just simply get to the July folder to get our images uploaded in July?

And about the [41964] : Good fix and at the same time it's bad, it only fixes it for pages! And it's not like pages are that different from posts or custom posts, they can serve the same purpose, so why would it be different?


Hoping to get a fix soon!"	gaelgwp
1	52766	WP_Image_Editor_Imagick checks for version number but ImageMagick in several cases reports it wrong		Media		normal	minor	Awaiting Review	enhancement	new		2021-03-10T18:10:22Z	2021-03-11T15:16:47Z	"ImageMagick obviously isn't very consistent in reporting version number to PHP.

See: 
https://www.php.net/manual/de/imagick.getversion.php (last comment)
https://github.com/dompdf/dompdf/issues/1296

I myself came across it on a windows server with a very new PLEC DLL version, but as far as my research went it concerns more cases.

WP_Image_Editor_Imagick::test checks vor a version number. This test fails if Imagick reports a usless version (@PACKAGE_VERSION@ ) in my case.

I commented out the version test in the class-wp-image-editor-imagick.php and everything works just fine. The check is for a very old version and checking for a version number instead of features (or in addition) seems not the best way anyhow. Especially so with Imagemagick and ist track record...

I'm not an expert on servers but it seems to me that there might be a way to improve the class to make features like PDF thumbnails available on more systems that can support it.
"	idad5
1	39330	WP_Image_Editor_Imagick: get pdf from url		Media	4.8	normal	normal	Awaiting Review	enhancement	new		2016-12-19T13:59:58Z	2024-01-16T13:00:28Z	It is not possible to use the class, if an url is passed as filepath. With this little patch it is possible (I know it's not perfect. Maybe someone can make it better)	wordpressrene
1	49746	Widening WordPress Limits and Compatibility		Media	5.4	normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2020-04-01T00:23:21Z	2022-03-10T15:39:24Z	"Version:

  A wish that to be in some WordPress 5.4 future minor version.


Problem:

WordPress ""Select image"" Dialog doesn't support inserting image from URL
in all cases and if, in the case it supports, when there is an image(or any file type) inserted
from a URL(specifically with dynamic-protocol URL that starts with just couple of slashes),
WordPress won't save and|or implement that dynamic-protocol URL in all cases what shortens
its compatibility of being compatible with browsers like Firefox security compliance and shortens
its compatibility of offering the writer the freedom of making his|her blogs URLs protocols
dynamic for a pitfall situation during, for example, an SSL renewing process what may stops or misbehaves his|her website.


Solution:

Let WordPress supports dynamic-protocol URLs anyway, let WordPress ""Select image"" Dialog
supports Insert any file type from a URL anyway, and make sure they all function well and securely.


Result:

Widening WordPress Limits and Compatibility.

-
-
Regards,

Al bunyan,
a WordPress User since WordPress first publication.
I was the first Arab required to translate WordPress.

http://ulike123.com/

-
-
"	ulike123
1	38560	Add support for uploading arrayed $_FILES		Media		normal	normal	Future Release	feature request	new	needs-unit-tests	2016-10-29T13:11:24Z	2017-08-10T17:33:05Z	"When you have form code that references [several file uploads](http://php.net/manual/en/features.file-upload.multiple.php) as array, the media_handle_upload() function fails to handle this.
For example this:

{{{
<input type=""file"" name=""documents[]"">
<input type=""file"" name=""documents[]"">
}}}

Will result in a $_FILES array that's creates subarrays shaped like so:

{{{
$_FILES['userfile']['name'][0]
$_FILES['userfile']['name'][1]
$_FILES['userfile']['tmp_name'][0]
$_FILES['userfile']['tmp_name'][1]
$_FILES['userfile']['size'][0]
$_FILES['userfile']['size'][1]
$_FILES['userfile']['type'][0] 
$_FILES['userfile']['type'][1]
}}}
 

This will fail when passed to media_handle_upload, since [https://core.trac.wordpress.org/browser/tags/4.5.3/src/wp-admin/includes/media.php#L281 the implementation does not handle this array structure] nor is this documented."	kontur
1	52978	Feature Request: option to show full images in Media Library		Media	5.7	normal	normal	Awaiting Review	feature request	new		2021-04-06T04:58:27Z	2021-09-02T14:20:14Z	"It would be very helpful to have an option (perhaps in Settings/Media) to have the Media Library show the full image even if it’s not square, instead of cropping everything to square.

There are a lot of reasons why some of us (perhaps many or even most) don’t like the images shown cropped to square – here are three: (1) the full content is not visible, (2) searching for items you know are a certain aspect ratio is much more difficult, (3) multiple images that are the same in the center but cropped differently (or extended with additional background to make a certain shape) look identical.

I would be perfectly happy if the CSS was simply changed to always show the full image, but I suppose some people might be used to the squares (although I don’t see what advantage that would have other than looking tidy), so I’m suggesting a setting to allow the user to choose.

Currently I’m using a workaround on some of my sites – I installed the “Add Admin CSS” plugin and added this CSS:

{{{
.wp-core-ui .attachment .portrait img { max-height: 100%; }
.wp-core-ui .attachment .landscape img { max-width: 100%; }
}}}

But it would be better if WordPress could do this natively.

Here are two screenshots of the same Media Library before and after using my workaround:
[[Image(https://imgur.com/a/Vt5hX9H)]]"	OsakaWebbie
1	37801	Media Functions		Media		normal	normal	Awaiting Review	feature request	new	dev-feedback	2016-08-23T21:40:41Z	2019-04-19T20:04:28Z	"I think now WordPress should include all media functions, like 

getMedaTitle($attID)
getMedaCaption($attID)
getMedaAlt($attID)
getMedaUrl($attID)
getMedaUrl($attID)

I will be really happy to work on it and include them in 4.7

"	daniyalahmedk
1	66627	Media: Add an API for serving uploaded images from an image CDN		Media		normal	normal	Awaiting Review	feature request	new	has-patch	2026-11-08T16:11:13Z	2026-11-08T16:12:13Z	"I've wanted a simple core way to point uploaded images at a CDN for a while, so I had Claude help me pick this back up.

''Claude drafted the proposal below with me:''

> Sites that serve images from a CDN today rely on plugins that filter `wp_get_attachment_url`, `wp_calculate_image_srcset` and post content separately, often with output buffering or regex rewrites. Each plugin rebuilds the same plumbing, and two plugins on one site can quietly fight over the same URLs. See #43332 for an earlier version of this idea, closed as maybelater.
>
> The proposal is a small registry that maps image mime types to a CDN base URL, and a single place in core that applies it:
>
> {{{
> wp_register_image_cdn(
>     'my-cdn',
>     array(
>         'image/jpeg' => 'https://cdn.example.net/',
>         'image/webp' => 'https://cdn.example.net/',
>     )
> );
> }}}
>
> The CDN base URL replaces the uploads base URL and keeps the rest of the path, so `https://example.com/wp-content/uploads/2026/11/photo.jpg` becomes `https://cdn.example.net/2026/11/photo.jpg`. The rewrite applies to:
>
>  * `wp_get_attachment_url()` (and so `wp_get_attachment_image_src()` and friends)
>  * each `srcset` candidate in `wp_calculate_image_srcset()`
>  * the `src` of `img` tags in content, through `wp_filter_content_tags()`
>
> Keying by mime type lets a site send, for example, AVIF and WebP to one CDN and JPEG to another. When two CDNs claim the same mime type the last one registered wins, and a new `wp_image_cdn_url` filter can resolve conflicts or add CDN transforms such as quality or format query parameters.
>
> Other functions: `wp_unregister_image_cdn()`, `wp_unregister_image_cdn_for_mime_type()`, `wp_get_image_cdn_for_mime_type()` and `wp_get_image_cdn_url()`. Storage lives in a `WP_Image_CDN_Registry` class.
>
> Open questions:
>
>  * Should this cover any uploaded file, not just images? Video and PDFs could use the same mapping.
>  * Sub-sizes can have a different mime type than the original (eg. WebP sub-sizes of a JPEG). Those resolve by file extension in `srcset`, but `image_downsize()` currently uses the original's CDN.
>  * Is a fixed base URL enough, or do CDNs that resize on the fly need a callback to build URLs?

PR: https://github.com/WordPress/wordpress-develop/pull/5011
"	adamsilverstein
1	58391	Ugly looking file editing section		Media		normal	normal	Awaiting Review	feature request	new	has-patch	2023-05-24T07:36:12Z	2023-05-25T16:03:34Z	"While editing (adding title, description)a file, the view looks ugly. 

Here is the screenshot: https://prnt.sc/B3XPrV9f0Rsx

If we add some border radius, it would look nice. 

Thank you "	ahsannayem
1	40140	upload_url_path doesn't seem to make any effect		Media	4.7.3	normal	normal	Awaiting Review	feature request	new		2017-03-13T06:53:00Z	2018-12-27T21:15:21Z	"An site of mine had '''http://site.com/articlefiles/''' as the place to receive uploads, equally it was '''/site/root/articlefiles''' on the filesystem, instead of '''/site/root/wp-content/uploads'''.

Now I migrated the site into a multisite installation as site 2 and uploads are going into /site/root/articlefiles/site/2/ and all previous uploads in old posts are linked as '''http://site.com/articlefiles/site/2/something.jpg''', causing broken images and links cause they originally don't have the ""site/2"" part. Editing the post, these links and images do not have the ""site/2"" part either. WordPress is rewriting the URL dynamically when reading the posts.

I want to keep compatibility with '''http://site.com/articlefiles/''' and '''/site/root/articlefiles''' without the ""site/2"" part. I was expecting '''upload_url_path''' on options table to be the solution but it doesn't work. I put there '''http://site.com/articlefiles/'''.

How can I keep URL and path compatibility when migrating a single site to a non-primary site of multi site installation ?

Thank you in advance"	avibrazil
1	57313	Adding a menu item without a link URL should not add a broken HTML a tag		Menus	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-12-11T15:24:27Z	2022-12-13T21:29:41Z	I just want a text-only menu item, but this adds an empty/broken <a> tag. See attached screenshot.	cliffpaulick
1	60176	BLOCK NAME  input data not saving		Menus	6.4.2	normal	normal	Awaiting Review	defect (bug)	new		2024-01-02T07:02:40Z	2024-02-15T09:24:27Z	"Hello,

I've encountered an issue with the default Navigation block on block-based sites. The ""BLOCK NAME"" input fields do not retain any entered data. Upon reloading, the information disappeared, and I couldn't locate it in the database.

I'm hopeful that this is just an unused field.

Thank you."	heymehedi
1	59390	Incorrect method / function args used in bin/tests/core/tests/rest-api/wpRestMenuItemsController.php	hellofromTonya	Menus	5.9	normal	normal	Future Release	defect (bug)	assigned	changes-requested	2023-09-19T11:47:40Z	2024-06-13T14:03:08Z	"The `Tests_REST_WpRestMenuItemsController::check_get_menu_item_response` method accepts 2 arguments, however 3 are passed to the method in https://core.trac.wordpress.org/browser/trunk/tests/phpunit/tests/rest-api/wpRestMenuItemsController.php?rev=56549#L885

It feels like the `Tests_REST_WpRestMenuItemsController::check_menu_item_data` method was meant to be used here."	david.binda
1	58044	Issue with wp_setup_nav_menu_item		Menus	6.2	normal	normal	Awaiting Review	defect (bug)	new		2023-04-01T16:20:53Z	2023-04-08T14:55:59Z	"`/wp-includes/nav-menu.php` has an issue handling bad `$menu_item`.


The problem is with trying to call `get_post_status()`. If a post with type `nav_menu_item` has a problem (I think not having a correct parent or something), the call to `get_post($menu_item->object_id)` returns NULL which then causes an error message from `get_post_states()`. 

I had to search the site database to find the offending menu item on my theme development site and deleted the bad menu.  I think I likely deleted a page or post that had been include in a menu definition, or perhaps it was because I typically use the Parent Page to define the default menu, which is still supported but seldom used.

This error only seems to appear when using the Customizer, I'm guessing while it is generating the ''Menus'' option. Didn't get error from Dashboard Menu, nor have I tried this on a block theme.

The problem is found around line 833 in `nav-menu.php`.

Here's a possible fix which worked with my bad menu definition, but the problem might be deeper.

{{{#!php
<?php
if ( $object ) {
    $menu_item->type_label = $object->labels->singular_name;
    // Denote post states for special pages (only in the admin).
    if ( function_exists( 'get_post_states' ) ) {
        $menu_post   = get_post( $menu_item->object_id );
        /*
         * Suggested fix for bad nav_menu_item post - likely caused by now missing parent
         *  which can result in $menu_post being NULL at this point
         *
         */
        if ($menu_post != NULL) {   //*** add a NULL check
            $post_states = get_post_states($menu_post);
            if ($post_states) {
                $menu_item->type_label = wp_strip_all_tags(implode(', ', $post_states));
            }
        } // end of added NULL check
    }
} else {
    $menu_item->type_label = $menu_item->object;
    $menu_item->_invalid   = true;
}
}}}

			"	wpweaver
1	47436	Menu depth doesn't affect menu-item-has-children		Menus	5.2.1	normal	trivial	Awaiting Review	defect (bug)	new		2019-05-30T17:19:32Z	2021-08-21T22:47:18Z	"Hi,

When you add a depth of 1 to wp_nav_menu it removes all the sub menus, but it leaves menu-item-has-children class on the original menu li tags, which means it is styled like it has a dropdown."	mikeybinns
1	52558	Menu items need more classes		Menus		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2021-02-17T15:50:43Z	2025-06-25T14:55:35Z	"As a front end engineer I have found that it is a pain to style menus. Especially if there are dropdowns.

To target top level menu items you currently need to do nav > ul > li, and even then there can be issues.

I would love to see a class on top level menu items. This way we can also style things with :not(.top-level-items) etc...

Submenus have classes. Why cant top menu items have some too?

Till now I have been able to get around it with filters like this. Unfortunately sometimes I am not given the ability to add this.



{{{#!php
<?php

/**
 * @param $classes
 * @param $item
 * @param $depth
 *
 * https://developer.wordpress.org/reference/classes/walker_nav_menu/
 * Add top-level-item to top level menu items for easier styling.
 *
 * @return array
 */

function ign_nav_menu_css_class( $classes, $item, $args, $depth ) {

	if ( $item->menu_item_parent == 0 ) { //Count top level menu items
		$classes[] = 'top-level-item';
	}

	if ( $depth >= 2 ) { //Count top level menu items
		$classes[] = 'nested-menu-item';
	}

	return $classes;
}

add_filter( 'nav_menu_css_class', 'ign_nav_menu_css_class', 10, 4 );
}}}


At this point though it would be nice to have something like this in core.

(I would also love to change the markup of the submenus so they can be easily turned into megamenus but I know thats not happening...)

So...Thoughts?

"	ericgreenfield
1	37971	Menus screen: improve the responsive view		Menus		normal	normal	Awaiting Review	defect (bug)	new		2016-09-07T17:30:27Z	2019-04-05T19:01:01Z	"Noticed while working on #37969, the responsive view of the Menus screen needs some improvements. Not sure if there's already a specific ticket (haven't found one).

Some CSS rules used in this screen work just in the ""Desktop"" view: 100% widths+margins, some floats, the `13em` spacing between menu item titles and controls and probably more stuff need to be reset/adjusted.

Not sure it nesting the menu items can work on very small displays, probably needs a different approach. Any thoughts welcome!

[[Image(https://cldup.com/qvBPJULT7f.png)]]"	afercia
1	65665	"Menus: ""Save Menu"" header button misaligned with ""Menu Name"" field on small screens"		Menus		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-07-20T05:34:51Z	2026-07-21T11:51:30Z	"On the Menus admin screen, the ""Save Menu"" button shown in the menu header is vertically misaligned with the ""Menu Name"" input field on small screens (viewport under 783px), where that header button becomes visible.

== Steps to reproduce ==

1. Use a theme that exposes the classic Menus screen (any classic theme, or one
   that declares `add_theme_support( 'menus' )` / `'widgets'`). On a block theme
   the ""Appearance → Menus"" link is hidden, but the screen is still reachable by
   visiting `/wp-admin/nav-menus.php` directly.
2. Open the Menus screen with a menu selected (or create one).
3. Narrow the browser to under 783px wide (or use the browser's responsive/device
   mode), which is where the header ""Save Menu"" button (`#save_menu_header`)
   becomes visible.
4. Observe that the ""Save Menu"" button does not line up vertically with the
   ""Menu Name"" field."	deepakprajapati
1	66341	"Menus: Quick search announces ""1 Search Results Found"", and the string has no plural form"		Menus	6.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-19T14:22:22Z	2026-10-19T14:23:46Z	"The menu item quick search on Appearance > Menus tells screen reader users how many results it found with:

{{{#!js
wp.a11y.speak( wp.i18n.sprintf( wp.i18n.__( '%d Search Results Found' ), $items.length ), 'assertive' );
}}}

This is in `src/js/_enqueues/lib/nav-menu.js` (line 1842 on trunk), added in [60991] for #48655.

The English string is always plural, so a search that finds one item announces ""1 Search Results Found"". The string also uses `__()` instead of `_n()` and has no translators comment, so translators cannot give the right form for each count. That matters most for languages with more than two plural forms.

When nothing matches, the same function returns earlier and announces ""No results found."", so this line only runs for one result or more.

=== Steps to reproduce ===

 1. Use a theme with a menu location, or register one, and go to Appearance > Menus.
 2. In Add menu items, open Posts and select the Search tab.
 3. Search for a term that matches exactly one post.
 4. A screen reader announces ""1 Search Results Found"". The text is also visible in the `#a11y-speak-assertive` live region.

Tested on WordPress 7.1.3, whose quick search handler is identical to trunk.

=== Suggested fix ===

Use `_n()` with a translators comment, as `tags-suggest.js` does for its search results, and reuse the plural pair core already has:

{{{#!js
wp.a11y.speak(
	wp.i18n.sprintf(
		/* translators: %d: Number of search results found. */
		wp.i18n._n( '%d result found.', '%d results found.', $items.length ),
		$items.length
	),
	'assertive'
);
}}}

The pair `%d result found.` / `%d results found.` is already in `wordpress.pot`, used by the block editor. `nav-menu.js` already gets another string from that catalog the same way: ""No results found."" is in `wordpress.pot` with a `wp-admin/js/nav-menu.js` reference, and the Hindi language pack's JSON file for `nav-menu.js` includes its translation. So existing translations of the pair should reach the Menus screen once language packs are rebuilt with the new reference. The new wording also matches that ""No results found."" message."	ekamran
1	65684	Menus: first click on Save Menu / Delete Menu in the sticky footer is silently lost at certain window heights	joedolson*	Menus	5.8	normal	normal	7.3	defect (bug)	accepted	has-patch	2026-07-22T03:13:26Z	2026-11-09T16:13:56Z	"On nav-menus.php, the footer action bar (`#nav-menu-footer`, holding Save Menu and Delete Menu) is `position: sticky`. At certain window heights, the first mouse click on either control is silently lost — no form submit, no confirmation dialog, no error. The bar visibly jumps upward at the moment of mousedown and the click goes nowhere. A second click works, which makes the failure easy to misattribute to user error.

Confirmed identical on 7.0.2 and 7.1-beta2, fresh installs with no plugins. The sticky styling dates to the menus screen layout refactor in 5.8 (see #51631), so the interaction has likely existed since then; intermediate versions were not tested.

== Steps to reproduce ==

 1. Create a menu with a single item (Appearance → Menus, add one custom link, save).
 2. In Chrome, open DevTools responsive mode and set the viewport to '''1280 × 800'''.
 3. Open the menu for editing and scroll to the very top of the page. The footer bar should be visible at the bottom of the window.
 4. Single-click '''Delete Menu''' once, watching the footer bar itself.
 5. If the confirmation dialog appears at this height, cancel it, reduce the viewport height by 10px, and click once more. Within a step or two the click dies. (The exact window depends on rendering environment and menu length — see the geometry section below.)

== Expected ==

The first click opens the ""You are about to permanently delete this menu."" confirm dialog (Delete Menu) or submits the form (Save Menu).

== Actual ==

The footer bar jumps up ~12–56px the moment the mouse button goes down, and nothing else happens. No dialog, no submit, no feedback. Clicking again works because the bar has already settled.

== Cause ==

wp-admin/css/nav-menus.css pins the footer:

{{{#!css
@media only screen and (min-width: 783px) {
    @supports (position: sticky) and (scroll-margin-bottom: 130px) {
        #nav-menu-footer {
            position: sticky;
            bottom: 0;
            z-index: 10;
            box-shadow: 0 -1px 0 0 #ddd;
        }
        #save_menu_header {
            display: none;
        }
        /* ... */
    }
}
}}}

The footer is sticky ''within'' `#menu-management`. When the column's bottom edge sits a short distance below the viewport bottom (measured roughly 35–110px), the footer is pinned, and clicking a footer control focuses it on mousedown. The browser's focus scroll then unpins the bar, which settles higher by the remaining distance ''between mousedown and mouseup''. Mouseup lands on the container, so per standard event semantics the `click` event fires on the common ancestor instead of the control:

 * '''Delete Menu''': the delegated dispatch in wp-admin/js/nav-menu.js (around line 1080) checks `e.target.className` — the retargeted click matches no case and is silently dropped:

{{{#!js
if ( e.target && e.target.className ) {
	if ( -1 != e.target.className.indexOf('item-edit') ) {
		// ...
	} else if ( -1 != e.target.className.indexOf('menu-save') ) {
		// ...
	} else if ( -1 != e.target.className.indexOf('menu-delete') ) {
		return that.eventOnClickMenuDelete(e.target);
	}
	// ...
}
}}}

 * '''Save Menu''': the retargeted click never reaches the submit input, so no native form submission happens either.

Instrumented event capture confirms the sequence: `pointerdown` and `mousedown` fire on the control; `mouseup` and `click` fire on `.menu-management-liquid` (or another ancestor, depending on jump size).

Note that the same CSS block hides `#save_menu_header` — while the sticky footer is active, the footer Save Menu is the ''only'' visible save control on the screen, so a lost Save click has no fallback and gives no feedback.

== Why reproduction seems erratic ==

The vulnerable window tracks the bottom edge of the menu column, which grows with menu length. The click dies when the column bottom sits ~35–110px below the viewport bottom (the unpin jump ≈ that distance, and a jump ≥ ~12px carries the control out from under the pointer). Measured at a 1280px-wide viewport (headless Chromium):

||= Menu items =||= Viewport heights where the first click dies =||
|| 1 || 770–820px ||
|| 6 || 1039–1099px ||
|| 18 || 1671–1731px ||

Below the window the bar is firmly pinned and focus moves nothing; above it the column is fully visible and the jump is a few pixels at most. In practice ''short menus are the exposed case'' — their window falls at common laptop viewport heights, while a long menu would need an unrealistically tall window. That asymmetry may be why this hasn't been reported before.

Keyboard activation is immune at any size: tabbing to the control moves focus (and the bar) before Enter, so the activation always lands.

== Environment ==

 * WordPress 7.0.2 and 7.1-beta2, fresh wp-env (Docker) installs, no plugins — behavior identical on both.
 * Chrome (stable) and headless Chromium on macOS. The mid-click retargeting is standard browser event behavior, but other engines were not explicitly tested."	csmcneill
1	56089	Meta data of menu items not removed from wp_postmeta table after removing the menu item before being saved.		Menus	6.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-06-28T16:16:22Z	2025-05-12T01:37:57Z	"If we add a menu item, the menu item's metadata are added. Don't hit submit button yet.

Remove the menu item, the metadata still exist.

Add back the menu items, new metadata with a new post_id is added to wp_postmeta table. Hit the Save Menu button.
Now, remove the menu item and hit the Save Menu button, the metadata will be removed.

It doesn't remove the metadatas only when we add the menu item and remove the menu item without saving the menu.

_menu_item_type
_menu_item_menu_item_parent
_menu_item_object_id
_menu_item_object
_menu_item_target"	alokstha1
1	60162	Navigation block rending content from post with shared ID		Menus	6.4.2	normal	normal	Awaiting Review	defect (bug)	new		2023-12-28T14:05:36Z	2023-12-28T14:05:36Z	"Hello,

I believe I've found a somewhat niche issue. I have a wordpress multisite with four sites housed within it. I recently came across an issue where on one of my archive pages for an event content type, on one of the sites only, the header (leveraging a template part with a navigation block inside) is rendering content from one of the pages within the result list. This archive is leveraging cross site indexing powered by elasticpress to search and return content from this content type from all four sites in one archive page. 

After some investigation, I found that the ID of the navigation matched that of one of the events published on a separate site and that the post_content for that event is being rendered in place of the post_content of the wp_navigation object which has the matching ID. This seems to be a very rare condition however it might be beneficial to have some kind of post_type check before render since this is a possible issue."	dsteersf1
1	55893	Not able to save navigation menus and not able to retrieve menus using wp_get_nav_menu_items		Menus	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-06-01T11:40:00Z	2022-06-01T21:10:27Z	"Hey,
i'm having some issues with navigation menus since upgrading WordPress from 5.9.3 to 6.0.0. In two custom themes i've built i notice the following behaviour:

* Using {{{wp_get_nav_menu_items}}} does not return anything when trying to fetch the menu items for a given id.
* When using the 'Menus' option in the Appearance menu items added to the menu don't show up. I can add new menus, and even add items to it. But when i press 'Save Menu' and reload the page they dissappear.

I've bumped my head around this for two hours but i can't find anything that i'm doing wrong. A couple of things i noticed:
* This has definitely something to do with the 6.0 upgrade. When going back to 5.9.3 the problem doesn't occur.
* The items do seem to be added to the database, they just don't display anymore on the site.
* I've got a hunch this might be related to #54905, which i've also run into. 
* When switching to the twentytwenty and twentytwentyone themes things work as normal. I can also see the menu items i've added in my custom theme that don't appear there.
* I'm not using any activated plugins."	huskyr
1	58005	Saving menus is slow		Menus	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-03-28T20:06:16Z	2025-10-20T14:26:14Z	"It seems the ages old issue, saving Appearance -> Menus is still taking about 40 seconds to process, even if you only have handful of items in the menu.

While it seems to be working ok, if one waits long enough - some servers may not tolerate several minutes of waiting.

As of 2023, saving a menu with 10 items should not take 40 seconds - it should be instant."	iarovuo
1	53500	Searching for Pages & Posts when adding Menu items isn't working correctly		Menus	5.7.2	normal	major	Awaiting Review	defect (bug)	new		2021-06-24T13:02:38Z	2025-09-10T12:06:31Z	"I'm completely amazed that this hasn't been raised enough times or has more of an online presence because it's causing a huge issue for me right now.

I have over 120 pages for one site, and I want to find one of these pages and add it as a menu item.

I know the title of the page, but when I type this into the search field for adding a page to a menu, loads of other pages are displayed, but none relating to what I've typed, and not the one I've typed it (I've typed in the title EXACTLY as it is named on the page).

How on earth is the search algorithm for the menu page search working exactly? I would expect this page to be shown here... but for some reason it's not, and neither are a few other pages I type.

I have no idea why it's showing the pages that are showing up because there are no keywords that I've typed in, nor are they relevant at all.

If I go to the Pages screen and search there, it finds it fine.

I am completely unable to add pages to my menu because of this, please can someone look into this and confirm there is something wrong here (I cannot see how I'm not doing this right, or how this could be expected to perform any other way).
"	leecollings
1	41351	Searching for a category returns nothing if category is empty		Menus		normal	normal	Awaiting Review	defect (bug)	new	needs-refresh	2017-07-17T21:53:56Z	2019-11-22T21:53:08Z	"Hi,

In the navigation menu creation page, when you are trying to add a category to the menu, if the category is empty, it won't show up in the search results. However, if the category itself is empty but has a child that is not empty, it will still be shown.

I have a blog with over 500 categories, and I'm trying to add some of them to the menu but they have no posts yet. Navigating through category list is going to take time, and is also frustrating.

Now I've tracked down the issue to `/wp-admin/includes/nav-menu.php`, ( starting at line 588 ) but can't find a filter or hook to do so.

This line (109) seems to be responsible for doing the search:

{{{
$terms = get_terms( $matches[2], array(
    'name__like' => $query,
    'number' => 10,
));
}}}


According to the documentations, this function accepts an argument for showing empty terms 'hide_empty' => false, but I can't see such option in this part of core's code. I've added this option to the core (temporarily) to see if it solves the issue, and it does.

The other `get_term()` functions withing this template file mostly use `'hide_empty' => false` so I'm not sure either this one was overlooked or not, I tagged this as a bug though."	jackjohansson
1	57519	Sundry Menu Bugs		Menus	6.1.1	normal	major	Awaiting Review	defect (bug)	new		2023-01-21T06:05:19Z	2023-01-21T16:36:36Z	"My ""TEST MENU (don't use)"" has a submenu.  Bugs:

1. For ages the color of that menu text was black, it is now white (nothing was changed by me).

2. It is a custom link with the ""disable link"" option set, yet clicking it still goes to the URL (which I had to enter as it wouldn't save otherwise. OK I see the issue now, even though it is below the URL you have to click it first. The checkbox is a UI only option and no check is performed for the URL being empty.

3. The menu is impossible to open as it displayed off the right of the screen, I can only display it by reducing the width of the window such that the next level up menu displayed on a new line (plenty of room to open a submenu).  All menus I have seen handle this problem by opening to the left in this scenario.

4. If used on the footer it doesn't even display submenus correctly. It displays them at the same level.

[No image attached after all as I haven't got a clue how to do so]

ANOTHER BUG:
GOT ""You've not yet selected a component. Please check the ""Component"" option above or select from one of the following"" even though ""Menus"" was selected
"	dbareis
1	48015	Unexpected results from wp_nav_menu()		Menus	5.2.3	normal	major	Awaiting Review	defect (bug)	new		2019-09-11T13:01:16Z	2019-10-03T08:44:11Z	"I'm using wp_nav_menu() in a shortcode. That is, I'm creating / placing a menu within a page (or post) and using a shortcode to that (as opposed to hardcoding it into the theme in a specific place). Specifically, I'm placing that shortcode via the core Gutenberg block for such things, but I don't believe that matters. 

- If I pass in an empty array - wp_nav_menu([]) - it **echos** (?) a random menu, and return null. 

- If I start with the default args for the function and unset both 'theme_location' and 'menu' and then pass that array in - wp_nav_menu([$args]) - , a random menu (same as the one echo'ed) is returned. How can it return an menu when none were specified. 

- If I specify an invalid menu name / location (i.e., it's not registered), it returns a random array. 

- For the menu it is returning, Admin > Appearance > Menus, I've unchecked all the Display Locations. That is, the menu does exit, but it's not associated with any locations. Still, wp_nav_menu() returns this menu. 

I've done some other variations on the above trying to get empty or null back and I get a menu.


Long to short, I'm getting results when - afaik - I shouldn't be getting anything at all. 

I'm going to add a check against the global $_wp_registered_nav_menus before I do anything with   wp_nav_menu(), perhaps  wp_nav_menu() should do similar? 

I assigned a Severity = major mainly because this is a common function that gets used A LOT. I would think / hope it should, at this point, work flawlessly. "	ChiefAlchemist
1	40090	Walker::display_element does not populate $args[0]->has_children when it is cast as an Object		Menus	4.7.3	normal	normal	Awaiting Review	defect (bug)	new		2017-03-09T23:39:09Z	2017-03-10T00:38:08Z	"When using the various hooks in {{{Walker_Nav_Menu}}}, the {{{$args}}} argument is expected to have a {{{has_children}}} object property.

Walker::display_element only creates and populates this property if {{{$args[0]}}} exists and is an array.
{{{#!php
<?php
//display this element
$this->has_children = ! empty( $children_elements[ $id ] );
if ( isset( $args[0] ) && is_array( $args[0] ) ) {
	$args[0]['has_children'] = $this->has_children; // Back-compat.
}
}}}

But {{{wp_nav_menu()}}} casts $args as an object ensuring that this assignment will always fail.
= Suggested Fix =
Add an additional check for object type and assign appropriately.
{{{#!php
<?php
//display this element
$this->has_children = ! empty( $children_elements[ $id ] );
if ( isset( $args[0] ) && is_array( $args[0] ) ) {
	$args[0]['has_children'] = $this->has_children; // Back-compat.
} else if ( isset( $args[0] ) && is_object( $args[0] ) ) {
	$args[0]->has_children = $this->has_children;
}
}}}

"	JoelStransky
1	61557	When deleting menu items in batches, it is easy to mistakenly click on the delete menu action.		Menus	6.5.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-07-03T10:04:42Z	2026-07-18T06:48:13Z	"In the batch delete menu items interface: If there are many menu items, the ""Batch Delete"" operation link might be obscured by the menu operation toolbar at the bottom, making the ""Delete Menu"" link more prominent. Although a confirmation prompt appears when clicking this link, accidentally ignoring it could result in the entire menu being mistakenly deleted.

Suggested Solution: I think moving the Delete Entire Menu link in the toolbar to the right will reduce the chances of this error happening.

[[Image(https://github.com/WordPress/gutenberg/assets/1455683/dcc10098-1236-4e25-8cc5-7089a05afd69)]]"	iwillhappy1314
1	54135	`nav_menu_meta_box_object` filter doesn't work on taxonomies		Menus		normal	normal	Awaiting Review	defect (bug)	new		2021-09-16T19:16:45Z	2021-09-16T19:44:03Z	"I am trying to remove the pagination on main category taxonomy but it doesn't work

{{{#!php
<?php
function disable_pagination_in_category_meta_box( $post_type ) {
    if ( 'category' == $post_type->name ) {
        $post_type->_default_query['number'] = -1;
    }
   return $post_type;
}
add_filter( 'nav_menu_meta_box_object', 'disable_pagination_in_category_meta_box', 9 );
}}}

Think it's bug but not sure
"	papazetis
1	60832	add_meta_box breaks on plugin sub-pages if add_menu_page has dynamic title		Menus	6.4.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-03-24T06:31:45Z	2024-03-27T17:06:26Z	"add_meta_box breaks on plugin sub-pages if add_menu_page has dynamic title.

Poc and fix attached.

The reason is that if the menu title is dynamic like 'My Plugin <span class=""menu-counter"">' . $count . '</span>'"	malcure
1	40649	parent_file filter seems to be overwritten by get_admin_page_parent call		Menus	4.7.4	normal	normal	Awaiting Review	defect (bug)	new		2017-05-03T13:37:51Z	2019-06-10T22:21:53Z	"In wp-admin/menu-header.php the filter `parent_file` seems to have little to no impact most of the time.
This is because the global `$parent_file` variable often gets immediately overwritten by the `get_admin_page_parent` function call.

{{{#!php
<?php
/**
 * Filters the parent file of an admin menu sub-menu item.
 *
 * Allows plugins to move sub-menu items around.
 *
 * @since MU
 *
 * @param string $parent_file The parent file.
 */
$parent_file = apply_filters( 'parent_file', $parent_file );

/**
 * Filters the file of an admin menu sub-menu item.
 *
 * @since 4.4.0
 *
 * @param string $submenu_file The submenu file.
 * @param string $parent_file  The submenu item's parent file.
 */
$submenu_file = apply_filters( 'submenu_file', $submenu_file, $parent_file );

get_admin_page_parent();
}}}

I am not completely sure what the purpose of the `get_admin_page_parent` is, but maybe the filter should be called after or inside that function?


To try to give an example. If I have the ""Broken Link Checker"" plugin installed and try to move it's settings page to the Tools menu I would want use this code:
{{{#!php
<?php
add_filter('parent_file', 'move_to_tools');
function move_to_tools($parent_file){
  global $hook_suffix;

  if($hook_suffix === 'settings_page_link-checker-settings'){
    $parent_file = 'tools.php';
  }

  return $parent_file;
};
}}}

However, because of the above mentioned issue this code does nothing.
I am aware completely moving a settings page requires more work than this, this is purely an example."	jontis
1	64011	wp_die() status code Menus component updates (parent ticket: #64009)		Menus		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-09-19T17:16:07Z	2025-11-22T03:42:47Z	"If you have come here directly, please refer back to the parent ticket here: #000000

This ticket is regarding the `wp_die()` function calls within the Media component and will cover the following locations:

|| src/wp-admin/link-add.php || 13 || User Permissions: does not have access || 500 || 403 ||
|| src/wp-admin/link.php || 120 || Missing: link || 500 || 404 ||
|| src/wp-admin/link-manager.php || 12 || User Permissions: does not have access || 500 || 403 ||
|| src/wp-admin/link-manager.php || 92 || User Permissions: does not have access || 500 || 403 ||

There are however the following function calls I have not touched as I felt they were already valid with their current status code:

|| Filepath || Line Number || Status Code ||
|| src/wp-admin/link-parse-opml.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/link-parse-opml.php#L82 82] ||	500 ||
|| src/wp-admin/nav-menus.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/nav-menus.php#L19 19] ||	500 ||
|| src/wp-admin/nav-menus.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/nav-menus.php#L24 24] ||	403 ||

Please have a look through the suggested changes documented here, and any/all feedback is appreciated. 😃"	callumbw95
1	46042	wp_nav_menu always returns a container		Menus		normal	normal	Awaiting Review	defect (bug)	new		2019-01-19T16:03:15Z	2019-01-19T20:20:35Z	"wp_nav_menu('container' => false) is returning an empty div when there is no menu items. This should return either false or an empty string. You can change the div to a different element, but you cannot remove the container.

This makes it difficult to test whether the menu is empty or not. Checking !empty($menu) no longer works like it used to."	thememason
1	43538	'No items,' should be considered to display when no Most Used Category is available		Menus		normal	normal	Awaiting Review	enhancement	new	has-patch	2018-03-13T13:01:34Z	2025-07-25T11:05:48Z	"In Menus editor, for all types `No items.` message is being shown when no item is available for respective type.

I know that this use case severity is too low, Most Used category will be blank only when no post is available but so the Post test case is. In case of posts we are showing this message `No Items.` 

I have created the patch, before applying the patch it was showing blank under most used tab."	juhise
1	54274	Choose where new menu items should go instead of default ending them to the end.		Menus		normal	normal	Awaiting Review	enhancement	new		2021-10-16T11:14:38Z	2021-10-22T14:21:16Z	"I think it would be a nice quality of life improvement if you were able to choose where a menu item goes when you add it. 

Currently, when you want to add a menu item in the middle, you have to add it and move it from the bottom towards the correct position. 

Thinking out loud, add a sort of clickable line/button between the menu items in the appearance -> menu section that opens a list where the user can select which page/post/custom item to add in between the two items and possibly a checkbox if the user wants to add it as a child or not. "	NekoJonez
1	60690	Consistency in Theme Update Warnings in Menu		Menus		normal	normal	Awaiting Review	enhancement	new		2024-03-05T10:29:33Z	2024-03-26T20:04:07Z	"When plugins are plugins pending update, a warning appears under ""Plugins"". However, even if are pending theme updates, the same warning does not appear under ""Appearance"".

Considering that the security issues of an outdated theme can be the same as those of an outdated plugin, I think we should display the same warning in both cases.

In the following image you can see a site with an outdated theme and plugin. At a glance you can only see a warning about ""Plugins"", but no warning about ""Apparence"", only inside ""Apparence > Themes"". 

Although ""Apparence"" has no updates, it would be nice to have the same warning as in ""Plugins"".

I am attaching pictures to illustrate this."	Marc4
1	40760	Make Walker_Page::start_lvl more flexible by introducing filters for class name(s) at least		Menus		normal	normal	Awaiting Review	enhancement	new	has-patch	2017-05-14T13:22:04Z	2017-05-15T16:59:37Z	"Related: #36163, #40359, #40666

We should harmonize the filters available in the 3 main `Walker` classes.
"	pbiron
1	65627	"UX Improvement: Move ""Delete Menu"" link to the top header to prevent accidental data loss"		Menus		normal	normal	Awaiting Review	enhancement	new		2026-07-14T10:45:44Z	2026-07-17T09:21:48Z	"Description of the UX Issue

In the classic Menus admin screen (nav-menus.php), the (Delete Menu) link is placed at the very bottom of the screen, right next to the ""Save Menu"" button. 

When a user expands a specific menu item to edit or delete it (as shown in the attached screenshot), their eyes naturally track downward looking for an action. Due to the proximity and visual hierarchy, many users mistakenly click ""Delete Menu"" thinking it will delete only the currently selected/expanded menu item, leading to accidental deletion of the entire menu structure.

Proposed Solution

To prevent this critical UX friction and unintended data loss, I propose moving the ""Delete Menu"" action to the top header area of the menu structure box (the gray header containing ""Menu name"", translations, and language selectors). 

Separating the global destructive action (""Delete Menu"") from the item editing workflow and placing it at the top will make its context clearer and significantly reduce accidental clicks.

Steps to reproduce the frustration
1. Go to Appearance > Menus.
2. Expand any menu item to edit its details.
3. Look down to save or modify, and observe how easily the red ""Delete Menu"" link can be confused with an item-level action."	Smailove
1	43383	Allow menu items to be inserted in place		Menus	4.9.4	normal	normal	Awaiting Review	feature request	new		2018-02-21T23:47:20Z	2019-02-11T22:01:04Z	"When adding menu items to a menu, they default to the bottom of the menu and then need to be dragged into the desired position. This can be time consuming when adding a lot of menu items and can also result in inadvertent changes to the position of existing menu items.

My proposal is that you can select a menu item or sub-item already in the menu before adding new items to the menu and when you add the new item, it inserts itself directly under the selected item."	aaronpwd
1	53903	Duplicate Menu Bar option		Menus		normal	normal	Awaiting Review	feature request	new		2021-08-09T15:56:43Z	2021-09-17T16:46:14Z	"Hi,

I would really like to see a way to duplicate a WordPress Menu bar. There have been countless times in the past few years of working with WordPress websites where this would have come in very handy. 

So if possible, please add a way to duplicate a menu bar in a future WP version.

Thank you. "	AlGala
1	54097	Menu Dividers		Menus	5.8.1	normal	normal	Awaiting Review	feature request	new		2021-09-09T07:58:38Z	2021-09-09T07:58:38Z	On the Menus page — along with Pages, Posts, Categories, Custom Links and other available items — it would be nice to have a Divider item so that users can organize menu items in logical groups separated by a horizontal dividing line. That divider line would not be clickable.	rti451
1	60198	Menu Handling		Menus	6.4.2	normal	normal	Awaiting Review	feature request	new		2024-01-05T10:54:58Z	2024-01-05T10:54:58Z	"Currently it is easy to accidentally delete a menu. In the ""Design"" / ""Menus"" backend area the ""Delete menu"" link is situated very close to the Save Button, and there is no ""Are you sure?""-question in order to prevent an accident. 

Some menus can be very complex, and it really takes time to recreate them. The restore of the database might loose other changes, which happened in the meantime (orders, posts) and should be kept.  

Addtionally it would be fine if an export and import of menus (XML, JSON) is possible without plugin. It could extend the ""Tools / Export""-section."	ewerkstatt
1	65562	CSRF in wp-signup.php allows logged-in users to be forced to create another site		Networks and Sites	7.1	normal	normal	Future Release	defect (bug)	new	dev-feedback	2026-06-30T07:20:18Z	2026-08-02T17:26:42Z	"## Problem

On multisite installations where site registration is enabled (`registration` option is `blog` or `all`), a logged-in user can be tricked into creating a new site via a cross-site POST request to `wp-signup.php`.

The ""create another site"" flow (`signup_another_blog()` → `validate_another_blog_signup()` → `wpmu_create_blog()`) does not use a nonce. Unlike most state-changing admin actions in WordPress, this logged-in POST handler has no CSRF protection.

## Steps to reproduce

1. Set up a multisite network with site registration enabled (Settings → Network Settings → Registration Settings → ""User accounts may be registered"" or ""Both user and site accounts…"").
2. Log in as a regular user who is allowed to create sites.
3. From an external origin, submit a POST form to `https://example.com/wp-signup.php`:

```html
<form action=""https://example.com/wp-signup.php"" method=""POST"">
  <input type=""hidden"" name=""stage"" value=""gimmeanotherblog"" />
  <input type=""hidden"" name=""blogname"" value=""evil-site"" />
  <input type=""hidden"" name=""blog_title"" value=""Unwanted Site"" />
  <input type=""hidden"" name=""blog_public"" value=""1"" />
</form>
<script>document.forms[0].submit();</script>
```
4. A new site is created under the victim's account without their consent.

## Impact

• Unwanted sites created on behalf of logged-in users
• Potential abuse for phishing, spam, or quota exhaustion
• Sites are created immediately via wpmu_create_blog(), not held for email activation

## Proposed fix

1. Add wp_nonce_field( 'add-another-blog' ) to the form in signup_another_blog().
2. Add check_admin_referer( 'add-another-blog' ) at the start of validate_another_blog_signup(), after the logged-in check and before wpmu_create_blog().

Scope is intentionally limited to the logged-in ""create another site"" path. Public user/site registration flows are unchanged."	yaghoot
1	66216	Ensure valid HTML when using the myblogs_options filter		Networks and Sites		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-09-30T06:41:07Z	2026-10-01T02:37:06Z	"Discovered while reviewing #66205 / [https://github.com/WordPress/wordpress-develop/pull/13819 PR 13819]

In the Network admin, in the `my-sites.php` page, there are two filters (technically it's the same filter with a different 'context'):

`$settings_html = apply_filters( 'myblogs_options', '', 'global' );` 

and 

`echo apply_filters( 'myblogs_options', '', $user_blog );`

They are meant to pass additional HTML to be printed on the page.

1
The first filter prints the additional HTML above the sites 'cards'. It also prints a hardcoded heading 'Global Settings'. However, the filter is placed right after a `<ul>` opening tag. As such, when the filter is in use, the heading and the passed HTMl are printed out as children of the `<ul>` element. That's invalid HTML. It may also make assistive technology confused when announcing the count of the items within the list. Example:


{{{
<ul class=""my-sites striped"">
<h2>Global Settings</h2> {any additional passed HTML here}
}}}

2
The second filter is meant to print additional HTML ''inside'' the sites 'cards'. It is placed inside a `<li>` tag. List items can contain almost any kind of elements so valid HTML isn't a big concern in this case. However, the filter documentation doesn't mention in any way that the passed HTML will be printed out inside a list item, it only references the first filter documentation. Given the actual usage of these filters renders HTML in different ways, the documentation should make clear what kind of HTML is expected and how to ensure it is valid.
"	afercia
1	42187	Multisite - Wordpress Importer Unavailable	realloc*	Networks and Sites	4.8.2	normal	normal	Future Release	defect (bug)	accepted		2017-10-11T18:57:31Z	2026-08-02T17:24:10Z	"I have a multisite installation for wordpress, and I have two users:

* admin - Multisite Administrator
* commonAdm - An administrator of only one of the sites in the network.

Steps to reproduce:

1. When the commonAdm tries to access the Wordpress Importer via Tools -> Importer, no options are shown to him.
2. Then I, as ""admin"", open the same page, click on Wordpress Importer (just opening the url ""/wp-admin/import.php?import=wordpress""
3. After the ""admin"" access this page, the commonAdm can see and use the Wordpress importer.

It seems that it requires this first access on EVERY single site for it to work, somehow it must be setting a flag, but I couldn't find any documentations regarding this behaviour.


Other information:

* I'm running a Bitnami Wordpress Multisite on AWS EC2, up to date to 4.8.2;
* I'm not sure if the bug is related to Network and Sites or the Importer itself (so I chose the first one)"	dtiziani
1	58795	Multisite Network Admin Sites - Search doesn't work well		Networks and Sites		normal	normal	Future Release	defect (bug)	new	has-patch	2023-07-12T20:36:32Z	2026-10-16T09:43:36Z	The built-in Search functionality in the Multisite Network Admin area has not been working well. Whenever I update a Site Name on a Subsite to be the unique Subdomain, the Search box does not seem to index or cache the new Site Name (even after I clear the cache on the network). So the only way to find sites on my multisite network is to browse through hundreds of site domains until I find the one I am looking for. If I know the Site ID, I can input it into the Search box and the site comes right up. For some reason, text from the subdomain in the Site Name field do not seem to get searched through.	paulpleasant
1	40465	Multisite fails to rewrite upload path on main site		Networks and Sites	4.7.3	normal	normal	Awaiting Review	defect (bug)	new		2017-04-16T13:33:33Z	2017-04-17T18:12:13Z	"This is a follow-up to #12002.

After removing the /blog/ slug On options-permalink.php, the media filed display the wordpress subdirectory on the urls. 

'''Steps''':

Install wordpress in its own directory
Activate multisite with subsites
Switch one of thd subsite into becoming main site
Everything works smoothly including images

However, image urls contain wordpress directory.

{{{

Domain.com/wordpress/wp-content/uploads/image-title.jpg
}}}


Instead of

{{{
Domain.com/wp-content/uploads/image-title.jpg
}}}


Is this the way it is designed to work? Or a bug?
Thanks."	daniel berhane
1	52378	Network admin site action confirmation leads to expired link screen when referer not available	realloc*	Networks and Sites		normal	normal	Awaiting Review	defect (bug)	accepted		2021-01-26T17:30:39Z	2026-07-25T15:04:23Z	"Sorry for the wordy summary.

In the network admin on a multisite installation the sites list shows links for actions like ""Archive"", ""Deactivate"" etc. that take you to an interstitial page to confirm the action.

This interstitial page outputs a simple form with the action being confirmed, nonce values and so on filled in, including a field for `_wp_http_referer` which is then used in the `check_admin_referer()` call.

The referrer field is built using the following code:

{{{#!php
<?php
<input type=""hidden"" name=""_wp_http_referer"" value=""<?php echo esc_attr( wp_get_referer() ); ?>"" />
}}}

In infrastructure where WordPress is behind a load balancer and for caching reasons the referer header is not passed to the web server this breaks because the output from `wp_get_referer()` is empty. Clicking confirm will result in a `wp_die()` screen from `wp_nonce_ays()` saying the link has expired.

This can be worked around by filtering `network_admin_url` where the link contains `action=confirm` to add `_wp_http_referer` as a query parameter but ideally the referer should be passed in the query string by default.

Given there is a workaround this is low priority, and I can't see anywhere else in WP affected by this currently either.
"	sanchothefat
1	53244	PHP Warning on non-existent multisite wp-cron.php		Networks and Sites		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-05-21T04:33:52Z	2026-10-25T19:17:03Z	"A PHP warning can be triggered when a HTTP request is made to `wp-cron.php` on a non-existent multisite site.

For example:
{{{
GET https://foobar.example.org/wp-cron.php

PHP Warning:  Cannot modify header information - headers already sent in wp-includes/ms-settings.php on line 79
PHP Stack trace:
PHP   1. {main}() wp-cron.php:0
PHP   2. require_once() wp-cron.php:44
PHP   3. require_once() wp-load.php:55
PHP   4. require_once() wp-config.php:125
PHP   5. require() wp-settings.php:141
PHP   6. header($header = 'Location: https://example.org/wp-signup.php?new=foobar') wp-includes/ms-settings.php:79
}}}

While the error doesn't define why it's being triggered, but it's because [44488] ends the request when `wp-cron.php` is requested prior to the multisite bootstrap.

Initial thoughts say that this is probably a ""good enough"" fix:
{{{
#!diff
Index: wp-includes/ms-settings.php
===================================================================
--- wp-includes/ms-settings.php	(revision 50552)
+++ wp-includes/ms-settings.php	(working copy)
@@ -73,7 +73,7 @@

 	if ( true === $bootstrap_result ) {
 		// `$current_blog` and `$current_site are now populated.
-	} elseif ( false === $bootstrap_result ) {
+	} elseif ( false === $bootstrap_result || headers_sent() ) {
 		ms_not_installed( $domain, $path );
 	} else {
 		header( 'Location: ' . $bootstrap_result );
}}}

While this warning will never be seen by users, it can end up in the PHP logs, especially when a vulnerability scanner is trying every subdomain under the sun."	dd32
1	42284	Stop invalid query generation in WP_Site_Query		Networks and Sites	4.6	normal	normal	Awaiting Review	defect (bug)	new		2017-10-19T20:09:44Z	2025-06-03T15:16:23Z	"In WP_Site_Query, developers have the ability to query by a single value or by multiple using a `__in` param. An example of which is which is `domain` and `domain__in`. Take for example the following query. 

`
get_sites(['domain' => 'test.local', 'domain__in' => ['lebowski.local', 'start.test.local']]);
`

This query will only results for test.local, completely ignoring the `domain__in`. This is because of the query it generates. That looks like this 

` domain = 'test.local' AND domain IN ('lebowski.local', 'start.test.local')`

Improved error checking must be implemented on this code to stop invalid queries.
"	spacedmonkey
1	37822	Text area misaligned on network setting.php		Networks and Sites	4.6	normal	normal	Future Release	defect (bug)	new	needs-refresh	2016-08-25T10:46:27Z	2018-03-05T16:42:51Z	"On Network setting page, all text area looks misaligned. Looks zig zag
Refer attached screenshots for better view.
"	Ankit K Gupta
1	46361	WPMU - HTTP Request at root path with special character in query key name causes endless loop		Networks and Sites	5.1	normal	critical	Awaiting Review	defect (bug)	new		2019-02-27T15:38:41Z	2020-12-15T18:46:45Z	"Dear WP Team,

I observe the following erroneous behavior running WPMU at the latest Version (5.1), but this behavior regards at least version 4.98.

If I call a site from a WPMU instance without a context path but with a query key containing a sepcial character, the http-request ends in an endless loop.

Affected are at least german umlaut and special characters like [öäüÖÄÜß], but charachters like [§] as well.

**For instance www.pleaseuseyourdemowpmuinstance.com?äöüfoo**


I'm quite sure that this is a WordPress bug, cause the http response has following header.

**""x-redirect-by	WordPress""**

So the redirect doesnt seem to be from any loadbalancer, cache server or webserver.

I hope to have contributed a bit to your great work, thank your very much!

Best Regards, Reza Anwar



"	ranwar
1	42557	Wrong Behaviour on get_site_url for multiple sites with different protocol		Networks and Sites	4.9	normal	normal	Awaiting Review	defect (bug)	new		2017-11-15T14:41:28Z	2017-12-21T23:18:17Z	"Hi guys,
i think i found something that imho isn't working at all as expected.

Let's go with some explaination:

* I have a multisite network which has 4 sites
* 1 site, the main one, is under HTTPS protocol, the rest are under normal HTTP
* I've made a unique theme, customized for all 4 sites
* '''I don't want to pass the scheme to get_site_url()''' , this should be created dinamically

In theme footer, i'm calling the function {{{ get_site_url() }}} for pointing each site to other ones.

Something really bad happens here:

* The first site (the https:// one) show all the links with https on top, and it's totally wrong as the remaining sites are all under http
* Instead, the remaining sites show all the link with http on top, included the first https one

So, after inspecting a while, it seems you're doing something i cannot really explain...

* function get_site_url (link-template.php, row 3063) get the siteurl option from database using get_option('siteurl') and then you call set_url_scheme
* function set_url_scheme will be blocked from first condition check {{{ if(! $scheme) }}}, so we're going to is_ssl()
* and here we are with something misunderstood... function is_ssl() checks if $_SERVER[ 'HTTPS' ] global var is set and return true or false for the current server configuration, not bothering of other sites configuration (!?!?!?!?!?)
* so when i interrogate a HTTPS site, all links will be ssl, when i interrogate a HTTP site, all links won't have ahead that protocol.

I don't think this is an optimal way to check this thing honestly...

Could we discuss about it?"	matteowebsolution
1	42389	Wrong password on confirmation page after manual activation of additional sub sites		Networks and Sites	4.8.2	normal	normal	Future Release	defect (bug)	new	reporter-feedback	2017-10-31T18:44:30Z	2026-08-10T10:15:38Z	"In a multisite installation, we use `wp-activate.php` to activate a site using an activation key. Normally when users can register multiple sites using the same account, we ask them to manually click on activation link from email only once (on initial registration). Sometimes when we decide to enable manual activation for all new sites (even if the user has another site registered already), `wp-activate.php` will show wrong login credentials on the confirmation page. This is because `wpmu_activate_signup` returns newly generated password which was not used as the user account already exists.

I think currently it is not possible to enable manual activation for additional sites from WordPress without using custom plugin/code. But sometimes when we require this feature, WordPress will show a wrong password on the confirmation page, which will confuse the user.

[[Image(https://i.imgur.com/Ua3rgEp.png)]]

On the above screenshot, the password was wrong as the user '''protest''' already exist, but WordPress generated a new password. The new password was generated to use if new user account is being created. But in this case, user account was not created. See `wp-includes/ms-functions.php` line `#1031`."	joelcj91
1	55454	clean_site_details_cache() doesn't clean all site caches		Networks and Sites	4.7	low	minor	Awaiting Review	defect (bug)	new		2022-03-24T03:42:33Z	2026-11-06T10:41:56Z	"clean_site_details_cache() clear's two caches:
{{{
	wp_cache_delete( $site_id, 'site-details' );
	wp_cache_delete( $site_id, 'blog-details' );
}}}

https://github.com/WordPress/wordpress-develop/blob/0b800e21c311e302824e4a025946a6fdb4f6c794/src/wp-includes/ms-blogs.php#L322-L337

But there's a third used within `get_blog_details()` that's closely related to those two caches:
{{{
	if ( $get_all ) {
		$details = wp_cache_get( $blog_id . 'short', 'blog-details' );
	} else {
		$details = wp_cache_get( $blog_id, 'blog-details' );
}}}

One could argue that the `blog-details` caches are not related to the `site-details` caches, but one would expect that if it clears some of them, that it'll clear all of them.

`clean_blog_cache()` is a [https://developer.wordpress.org/reference/functions/clean_blog_cache/ much more comprehensive function] though:
{{{
	wp_cache_delete( $blog_id, 'sites' );
	wp_cache_delete( $blog_id, 'site-details' );
	wp_cache_delete( $blog_id, 'blog-details' );
	wp_cache_delete( $blog_id . 'short', 'blog-details' );
	wp_cache_delete( $domain_path_key, 'blog-lookup' );
	wp_cache_delete( $domain_path_key, 'blog-id-cache' );
	wp_cache_delete( $blog_id, 'blog_meta' );
}}}"	dd32
1	48442	"deleting a site leaves ""orphaned"" user options"		Networks and Sites		normal	normal	Awaiting Review	defect (bug)	new		2019-10-27T20:15:02Z	2025-06-03T15:16:22Z	"When a site/blog is deleted, whether from the Network > Sites screen or via `wp_delete_site()`, most ""per site"" user options (i.e., those added with `update_user_option()` where `$global == false`) remain in the `usermeta` table.  The `capabilities` and `user_level` ones are deleted, but all others remain.

Core adds at least the following such user options:
* `dashboard_quick_press_last_post_id`
* `media_library_mode`
* `user-settings`
* `user-settings-time`

and plugins often add others (e.g., classic editor adds `classic-editor-settings`).

In a large network (with many users and many sites that have been deleted) this can result in significant bloat to the `usermeta` table.

To reproduce:

1. create a network and add at least 1 site in addition to the main site (e.g., with `blog_id == 2`)
    * can be either sub-domain or sub-directory network
2. visit the dashboard of the site with `blog_id == 2`
	* this will create the `wp_2_dashboard_quick_press_last_post_id` user meta
3. delete the site with `blog_id == 2`
4. see that `wp_2_capabilities` and `wp_2_user_level` user metas have been deleted from the `usermeta` table but that `wp_2_dashboard_quick_press_last_post_id` remains"	pbiron
1	53355	"wp-signup.php with `new` in the query string results in a ""site does not exist"" message even if the site does exist"	audrasjb	Networks and Sites		normal	normal	Future Release	defect (bug)	reviewing	dev-feedback	2021-06-07T21:37:07Z	2025-06-08T16:04:43Z	"Steps to reproduce:

1. Visit example.com/wp-signup.php?new=sport where `sport` is the address of an existing site in your network. Note I'm using `sport` as an example. You should replace `sport` with the address of an existing blog in your network.

You will get the following message appear on the page:

> The site you were looking for, https://sport.example.com/, does not exist, but you can create it now!"	henry.wright
1	64021	wp_die() status code Network and Sites component updates (parent ticket: #64009)	johnjamesjacoby	Networks and Sites		normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2025-09-22T14:17:35Z	2025-11-22T03:42:45Z	"If you have come here directly, please refer back to the parent ticket here: [https://core.trac.wordpress.org/ticket/64009 #64009]

This ticket is regarding the `wp_die()` function calls within the Media component and will cover the following locations. Please note I was originally linking each of the line numbers, but there are too many for me to submit with this ticket, so I have linked each unique file instead:

|| **Filepath** || **Line Number** || **Context** || **Status Code** || **New Code** || **Code Meaning** ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/sites.php src/wp-admin/network/sites.php] || 88 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/network/sites.php || 104 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/network/sites.php || 252 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/themes.php src/wp-admin/network/themes.php] || 14 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/network/themes.php || 102 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/network/themes.php || 240 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/site-new.php src/wp-admin/network/site-new.php] || 17 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/network/site-new.php || 40 || POST: Missing params || 500 || 400 || Bad Request ||
|| src/wp-admin/network/site-new.php || 56 || POST: Invalid Params || 500 || 400 || Bad Request ||
|| src/wp-admin/network/site-new.php || 87 || POST: Missing params || 500 || 400 || Bad Request ||
|| src/wp-admin/network/site-new.php || 91 || POST: Missing params || 500 || 400 || Bad Request ||
|| src/wp-admin/network/site-new.php || 95 || POST: Missing params || 500 || 400 || Bad Request ||
|| src/wp-admin/network/site-new.php || 100 || POST: Missing params || 500 || 400 || Bad Request ||
|| src/wp-admin/network/site-new.php || 125 || POST: User creation conflict || 500 || 409 || Conflict ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/users.php src/wp-admin/network/users.php] || 84 || Error: selected user cannot be modified (SA) || 500 || 403 || Forbidden ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/site-settings.php src/wp-admin/network/site-settings.php] || 14 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/network/site-settings.php || 23 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/network/site-settings.php || 28 || Missing: site || 500 || 404 || Not Found ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/user-new.php src/wp-admin/network/user-new.php] || 14 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/network/user-new.php || 41 || POST: Missing params || 500 || 400 || Bad Request ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/site-info.php src/wp-admin/network/site-info.php] || 14 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/network/site-info.php || 23 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/network/site-info.php || 28 || Missing: site || 500 || 404 || Not Found ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/site-themes.php src/wp-admin/network/site-themes.php] || 14 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/network/site-themes.php || 46 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/network/site-themes.php || 53 || Missing: site || 500 || 404 || Not Found ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/site-users.php src/wp-admin/network/site-users.php] || 41 || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/network/site-users.php || 46 || Missing: site || 500 || 404 || Not Found ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/admin.php src/wp-admin/network/admin.php] || 17 || Error: Multisite is not enabled || 500 || 409 || Conflict ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/ms.php src/wp-admin/includes/ms.php] || 891 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/includes/ms.php || 901 || Error: selected user cannot be deleted (SA) || 500 || 403 || Forbidden ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/ms-deprecated.php src/wp-admin/includes/ms-deprecated.php] || 33 || Filesystem: no space left || 500 || 507 || Insufficient Storage ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/ms-delete-site.php src/wp-admin/ms-delete-site.php] || 13 || Support: Multisite is not enabled || 500 || 409 || Conflict ||
|| src/wp-admin/ms-delete-site.php || 17 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/ms-delete-site.php || 23 || Success: Site deleted || 500 || 200 || OK ||
|| src/wp-admin/ms-delete-site.php || 31 || Error: Stale link || 500 || 410 || Gone ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network.php src/wp-admin/network.php || 19] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/network.php || 29 || Error: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/network.php || 41 || Error: invalid params || 500 || 400 || Bad Request ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/my-sites.php src/wp-admin/my-sites.php] || 13 || Support: Multisite is not enabled || 500 || 409 || Conflict ||
|| src/wp-admin/my-sites.php || 17 || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/my-sites.php || 33 || Missing: site || 500 || 404 || Not Found ||

I have also put in a PR with these changes so it’s easier to see where in the code each lies, and the surrounding code.

There are however the following function calls I have not touched as I felt they were already valid with their current status code:

|| **Filepath** || **Line Number** || **Status Code** ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/ms.php src/wp-admin/includes/ms.php]	|| 49	|| 500 ||
|| src/wp-admin/includes/ms.php || 575	|| 403 ||
|| src/wp-admin/includes/ms.php || 605	|| 403 ||
|| src/wp-admin/includes/ms.php || 1186	|| 403 ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/index.php src/wp-admin/network/index.php]	|| 17	|| 403 ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/settings.php src/wp-admin/network/settings.php]	|| 17	|| 403 ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/site-info.php src/wp-admin/network/site-info.php]	|| 32	|| 403 ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/site-new.php src/wp-admin/network/site-new.php]	|| 130	|| 500 ||
|| src/wp-admin/network/site-new.php	|| 165	|| 500 ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/site-settings.php src/wp-admin/network/site-settings.php]	|| 32	|| 403 ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/site-themes.php src/wp-admin/network/site-themes.php]	|| 57	|| 403 ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/site-users.php src/wp-admin/network/site-users.php]	|| 14	|| 403 ||
|| src/wp-admin/network/site-users.php	|| 50	|| 403 ||
|| src/wp-admin/network/site-users.php	|| 120	|| 403 ||
|| src/wp-admin/network/site-users.php	|| 146	|| 403 ||
|| src/wp-admin/network/site-users.php	|| 157	|| 403 ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/sites.php src/wp-admin/network/sites.php]	|| 14	|| 403 ||
|| src/wp-admin/network/sites.php || 151	|| 402 ||
|| src/wp-admin/network/sites.php || 175	|| 402 ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/upgrade.php src/wp-admin/network/upgrade.php]	|| 39	|| 403 ||
|| src/wp-admin/network/upgrade.php	|| 96	|| 500 ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/user-new.php src/wp-admin/network/user-new.php]	|| 37	|| 403 ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/network/users.php src/wp-admin/network/users.php]	|| 14	|| 403 ||
|| src/wp-admin/network/users.php || 24	|| 403 ||
|| src/wp-admin/network/users.php || 51	|| 403 ||
|| src/wp-admin/network/users.php || 65	|| 403 ||
|| src/wp-admin/network/users.php || 160	|| 403 ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/ms-deprecated.php src/wp-includes/ms-deprecated.php]	|| 277	|| 400 ||
|| src/wp-includes/ms-deprecated.php	|| 296	|| 400 ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/ms-functions.php src/wp-includes/ms-functions.php]	|| 2240	|| 500 ||
|| [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/ms-load.php src/wp-includes/ms-load.php]	|| 99	|| 410 ||
|| src/wp-includes/ms-load.php || 108	|| 500 ||
|| src/wp-includes/ms-load.php || 122	|| 410 ||
|| src/wp-includes/ms-load.php || 511	|| 500 ||"	callumbw95
1	49936	"Add ""deactivate"" & ""archive"" bulk options to network site management"		Networks and Sites	5.4	normal	minor	Awaiting Review	enhancement	new		2020-04-17T20:03:19Z	2026-05-08T10:46:08Z	"On a multisite install, in site management for all subsites (wp-admin/network/sites.php) it would be very useful to have a default ""deactivate"" bulk option, as well as ""archive"". The only bulk options available are ""delete"" (which is true delete, see #44515), and ability to mark as spam or not. It seems arbitrary to only have those three instead of including the other available options, which I'd wager are just as frequently used if not more so."	afoc
1	46184	Add WP_Tax_Query support to WP_Site_Query		Networks and Sites		normal	normal	Future Release	enhancement	new	has-patch	2019-02-04T15:59:24Z	2026-04-07T09:15:31Z	"Because sites are just another object type in WordPress, taxonomies can already be added to the `site` object type. Even though there are no user interfaces in Core for taxonomies when assigned to object types other than `post` (for example, see users #31383), it would be nice to add `WP_Tax_Query` support to `WP_Site_Query`.

One thing to be aware of though is that there are issues in Core when a taxonomy is assigned to multiple object types. I don't think this should be added until that is addressed. #45107 has a more detailed breakdown of that."	desrosj
1	55488	Add a filter to array of allow ported number in multisite.		Networks and Sites		normal	normal	Awaiting Review	enhancement	new	has-patch	2022-03-30T13:39:42Z	2026-07-28T03:05:19Z	"The allowed port numbers to setup a multisite are fixed. See this line. 

{{{#!php
	if ( ( false !== $has_ports && ! in_array( $has_ports, array( ':80', ':443' ), true ) ) ) {

}}}

However, a site maintainer may want to change these values to help enable serving their multisite from a custom port. 

This ticket is a breakout from #21077"	spacedmonkey
1	40447	Add cache domain to site/network query		Networks and Sites		normal	normal	Future Release	enhancement	new	close	2017-04-14T15:01:02Z	2023-06-08T11:27:36Z	"A cache domain allows to define a custom cache key to ensure unique results when one of the query filters, like `sites_clauses`, is used to customize the default query. This is necessary because the default cache key is only computed from the default query variables.

Previously: [18128] for terms and [38117] for comments."	ocean90
1	39711	Allow network administrator to network activate/deactivate/delete a plugin on sub site plugin list table		Networks and Sites		normal	normal	Awaiting Review	enhancement	new	has-patch	2017-01-26T21:33:11Z	2025-06-17T11:47:46Z	"Hello,

Before thinking of greater enhancement about plugin management for Multisite, I would like to bring this little enhancement :

Allow network administrators (super admin by now) with the manage_network_plugins cap to network activate/deactivate/delete a plugin on the sub site plugin list table.

I just point the actions to the Network URL, so after an action is made, the user is automatically redirected to the network admin plugin page, by that, it's more easy for the admin to continue managing its network plugins if he want to do some bulk actions for example.

The only difficult point is for the Network Delete action, imagine you have a plugin which is activated in site 1 (and you're not aware of it), and you want to Delete a plugin on site 1 where this plugin is not installed, this could be dangerous. So maybe it's safer to drop this Delete action on single site. But maybe it's not so dangerous since you have the exact same behavior on Network Plugin list, you can delete a plugin which is activated on a sub site."	Mista-Flo
1	39318	Assign a theme when creating a site (Multisite)		Networks and Sites	3.0	normal	normal	Future Release	enhancement	new	changes-requested	2016-12-17T18:13:46Z	2025-06-14T17:23:37Z	"This is a serie of multisite focus enhancements for themes, the major one is from #13743 that add a network default theme (I used this network option in this following patch).

This ticket ""Assign a theme when creating a site"" was a shared idea discussed on WCUS, WC Cologne, etc.

So here a first patch that just add a select input containing the activated themes of the current network. By default, the selected theme is WP_DEFAULT_THEME constant or the new default network option for theme.

After the form is submited, we add stylesheet and template name to the $meta array, and {{{wpmu_create_blog}}} function makes an automatic update option with the right theme."	Mista-Flo
1	64441	Make Subdirectory networks compatible with custom wp-content directories		Networks and Sites		normal	normal	Awaiting Review	enhancement	new		2025-12-22T07:13:24Z	2025-12-22T17:26:42Z	"While having a custom wp-content directory and wanting to set up multisite in Network Setup, there is a warning that ""Subdirectory networks may not be fully compatible with custom wp-content directories."" It looks very inconvenient, because having WordPress and content in different places simplifies the deployment process. And if you already have content in a custom directory, you may want to go multisite any time, and then you have a problem."	oglekler
1	63631	MultiSite: Remove links to Manage Comments for sites that don't have Comments (or similar logic)		Networks and Sites		normal	normal	Awaiting Review	enhancement	new		2025-06-27T15:26:24Z	2026-07-26T13:58:32Z	"In MultiSite, the My Sites Admin Bar Menu dropdown has a link for ""Manage Comments"" for every single site, regardless of whether or not that site has existing comments, has comments open, etc. As allowing comments becomes rarer and rarer across the Internet over time, these are starting to feel like clutter.

Perhaps this link should be removed (optionally added back via plugin if desired), or only present if certain conditions are true - such as the site actually HAS any comments."	MadtownLems
1	65803	Multisite: Add Network Setting and capabilities to restrict Connectors management on subsites		Networks and Sites		normal	normal	Awaiting Review	enhancement	new		2026-08-04T09:16:20Z	2026-08-04T09:17:00Z	"**Summary**
In WordPress 7.0 Multisite installations, AI Connectors are enabled by default on subsites, any user with the `administrator` role on a subsite can manage, overwrite, or remove active API keys and integrations.
The superadmin needs to use plugins or custom code to hide the Settings->Connectors screens from the subsites.

**Current Behavior**
1. **No Network Toggle:** There is currently no option in Network Admin settings to globally disable Connectors across all subsites.
2. **Incomplete Constant Behavior:** Setting `define('WP_AI_SUPPORT', false);` in `wp-config.php` disables core AI features network-wide, but does **not** hide or disable the subsite **Settings > Connectors** screen.
3. **Confusing Permission Notice:** When plugin administration is disabled for subsite admins (standard Multisite behavior), visiting **Settings > Connectors** displays the notice *""You do not have permission to install plugins. Please ask a site administrator to install them for you.""*, despite the user already being a site administrator.
4. **Unrestricted Modification:** Any subsite Administrator can freely delete, or replace active API key of the subsite and save changes.
5. **Key Masking:** The API key input on subsite screens is **properly masked**, which successfully prevents plaintext exposure/theft of secrets between subsite administrators.

**The Problems**
1. Lack of Network Control & ""As-a-Service"" Use Case:
Network Admins currently have no global setting to control or disable Connectors on subsites (unlike Plugins, which can be managed network-wide). This creates two major architectural issues:
   - Super Admins cannot **completely disable** AI Connectors across the network if company, security, or privacy policies (e.g., GDPR) dictate doing so.
   - Super Admins can't provide API/AI integrations as a centralized service (""AI as a Service""), because they cannot provide network-provided keys, or per subsite and protected them from being overwritten by subsite admins.

2. UX Friction / Broken Flow: If a Super Admin has disabled plugin management permissions for subsite administrators (the standard Multisite setup), a subsite admin visiting the Connectors screen wil see the notice '''You do not have permission to install plugins. Please ask a site administrator to install them for you'''. This creates a confusing user experience for subsite administrators. 

3. On multisite networks where subsites have multiple Administrators (e.g., client admins, external agencies, or departmental leads), any subsite admin can inadvertently or intentionally break an active connector integration established by another subsiteadmin by removing or replacing the API key. 


**Proposed Solutions to discuss / Enhancements**
* **Option A (Network Administration Setting): **Add a global toggle under Network Admin > Settings (similar to Plugins management) allowing Super Admins to enable/disable Connector management permissions for subsite administrators altogether.
* **Option B (Capability Check):** Introduce a specific capability (e.g., `manage_connectors`) so Network Admins can control whether subsite administrators can modify existing connections.
* **Option C (Read-Only State):** Allow subsite Administrators to view the status of a Connector, but restrict editing/updating the API key strictly to the admin who initially configured it. So having a user - API key combination. 

**Steps to Reproduce**

Part 1: UX Friction / Broken Permission Flow Notice
1. Set up a WP 7.0 Multisite environment.
2. Add `define('WP_AI_SUPPORT', false);` to `wp-config.php` and notice that **Settings > Connectors** is still accessible on subsites.
3. Under **Network Admin > Settings**, ensure plugin administration is **disabled** for subsite admins (uncheck ""Enable administration menus: Plugins"").
4. Create a subsite and assign a user with the `administrator` role. 
5. Log in as a subsite Administrator (who is not a Super Admin) and navigate to **Settings > Connectors**.
6. Notice the prompt: ''""You do not have permission to install plugins. Please ask a site administrator to install them for you.""'' (A confusing message since the user is a site admin, but lacks network plugin capabilities).

Part 2: Multi-Admin Overwrite
7. Log in as **Super Admin** and Network Activate the required connector plugin so that the API configuration screen becomes active on subsites.
8. Create a subsite and assign two distinct users with the `administrator` role (e.g., `Admin_A` and `Admin_B`).
9. Log in as `Admin_A`, navigate to **Settings > Connectors**, enter an API key, and save.
10. Log in as `Admin_B` on the same subsite and navigate to **Settings > Connectors**.
11. Notice that while the key is masked, `Admin_B` can easily delete/replace it and save, breaking `Admin_A`'s integration without any network policy preventing it.


Related blog post exploring subsite Connector permissions and potential workarounds: https://lenasterg.wordpress.com/2026/06/05/wordpress-7-0-multisite-did-you-notice-the-new-connectors-screen-in-subsites/

"	lenasterg
1	54361	Multisite: Confusion for average users when a blog is a mapped domain and requires re-authentication		Networks and Sites		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2021-11-02T09:31:05Z	2026-07-26T13:34:55Z	"If domain mapping is active for a blog in a network install, users of that blog must re-authenticate when visiting that blog because the domain is likely to be different from the host install domain.

Mapped domains appear in the My Sites list. When a user visits their blogs in the list it is confusing for them to be asked to re-authenticate for blog A (mapped domain) and not be asked to re-authenticate for blog B (not a mapped domain).

An average user isn't familiar with the cookie authentication mechanism and would find it frustrating to authenticate multiple times which is, to the average user, seemingly unnecessary.

How do we make this process clear or easier?"	henry.wright
1	34293	Network Admin Email description doesn't really explain what it is.	johnjamesjacoby	Networks and Sites		normal	normal	Future Release	enhancement	assigned	dev-feedback	2015-10-13T21:18:49Z	2025-11-06T23:38:26Z	"On /wp-admin/network/settings.php the field for **Network Admin Email** has this as the description:

> This email address will receive notifications. Registration and support emails will also come from this address.

By contrast, the per-site has this:

> This address is used for admin purposes, like new user notification.

I propose we change the Network Admin one to this:

> This address is used for admin purposes, like site notifications. Registration and support emails will be sent from this address.

That makes for a little more parity, and explains more clearly that emails are sent FROM this address (which has been unclear to some).

The attached patch comes in two versions.

1) As I originally proposed
2) Without the 'and support' phrase since I have no idea what we are referring to with that one."	Ipstenu
1	49968	Network Site Info - No hooks for customzsation		Networks and Sites	5.5	normal	normal	Awaiting Review	enhancement	new	has-patch	2020-04-21T10:33:56Z	2020-08-04T16:34:55Z	"Currently, there are no hooks to enable developers to add fields to the site info table.

I propose to add hooks after each field to enable developers to add fields as required. Furthermore, a hook to enable the saving of the fields also.

`do_action( 'update_site_info', $id );` will run immediately after the default fields are saved and before the restoring of current blog and subsequent redirect occurs.

* `do_action( 'network_site_info_after_address_field', $id, $details );`
* `do_action( 'network_site_info_after_registered_field', $id, $details );`
* `do_action( 'network_site_info_after_last_updated_field', $id, $details );`
* `do_action( 'network_site_info_after_attributes_field', $id, $details );`

Will all run immediately after the respective default fields."	mikeyhoward1977
1	36432	Show Site ID and Theme in My Sites		Networks and Sites	4.4.2	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2016-04-06T21:27:31Z	2019-11-05T13:49:25Z	It could be useful to show in My Sites menu, for each site, the Theme/Child Theme applied and the site ID	jusox
1	61622	Site Attributes update - Site Status Field		Networks and Sites		normal	normal	Awaiting Review	enhancement	new		2024-07-10T19:13:36Z	2024-07-17T14:38:11Z	"The Site attributes field when Editing a subsite on a multisite network has a few checkboxes available - Public, Archived, Spam, Deleted or Mature.
Can this be updated to be a drop-down instead of multiple checkboxes? 
I need to measure how many live sites we have on a network, and these checkboxes are not very clear. It can have no checkboxes selected. It can have Public and Archive both selected. Most of these seem to be the Site Status, except the ""Mature"" checkbox (which you could separate out for search engines). ""Spam"" - really? Who would select their own site as a Spam site? No one. I would like the options to be ""In Development"" (and discourage search engines from indexing), ""Public"" and ""Archived"" - and a site can only be in one of those statuses. It's really confusing that this is not clear, but it's how you measure how many sites in what status on the Network Admin area for sites. I've had to go into the database to clean up this data to make sites either Public or Archived - so those numbers add up to the All sites number. This would help many WordPress Admins! "	paulpleasant
1	37937	Support boolean strings for the 'public', 'archived', 'mature', 'spam' and 'deleted' attributes in WP_Site_Query		Networks and Sites	4.6	normal	normal	Future Release	enhancement	new	has-patch	2016-09-03T16:29:51Z	2017-10-03T05:28:54Z	"According to the documentation for the {{{WP_Site_Query}}} class:

{{{
*     @type int          $public           Limit results to public sites. Accepts '1' or '0'. Default empty. 
*     @type int          $archived         Limit results to archived sites. Accepts '1' or '0'. Default empty. 
*     @type int          $mature           Limit results to mature sites. Accepts '1' or '0'. Default empty. 
*     @type int          $spam             Limit results to spam sites. Accepts '1' or '0'. Default empty. 
*     @type int          $deleted          Limit results to deleted sites. Accepts '1' or '0'. Default empty. 

}}}

these attributes accepts values {{{'1'}}} and {{{'0'}}} (also {{{1}}} and {{{0}}} to be more specific).

I would suggest adding support for general boolean values so these attributes can also support e.g. {{{true, false, 'true', 'false' }}}.

Currently each attribute is handled like this: 

{{{
if ( is_numeric( $this->query_vars['archived'] ) ) { 
	$archived                               = absint( $this->query_vars['archived'] ); 
	$this->sql_clauses['where']['archived'] = $wpdb->prepare( ""archived = %d "", $archived ); 
}
}}}

Here we see why e.g. {{{true}}} doesn't work, because {{{is_numeric( true )}}} is {{{false}}} and the SQL modification is skipped.


I want to suggest using  e.g. {{{wp_validate_boolean()}}} for the validation. 

Here's an example:

{{{
if ( isset( $this->query_vars['archived'] ) ) { 
    $archived                               = wp_validate_boolean( $this->query_vars['archived'] ); 
    $this->sql_clauses['where']['archived'] = $wpdb->prepare( ""archived = %d "", $archived ); 
} 
}}}

or we could be more specific with:

{{{
if ( isset( $this->query_vars['archived'] ) ) { 
    $archived                               = wp_validate_boolean( $this->query_vars['archived'] ) ? 1 : 0; 
    $this->sql_clauses['where']['archived'] = $wpdb->prepare( ""archived = %d "", $archived ); 
} 
}}}

etc.

I added a patch as a starting example. There I added {{{@type mixed}}} to the documentation because that's how the input of {{{wp_validate_boolean()}}} is documented (it can be a general boolean value like {{{int}}}, {{{bool}}} or {{{string}}}).



"	birgire
1	41443	Update /wp-admin/network/site-new.php to use wpmu_validate_blog_signup()		Networks and Sites	4.8	normal	normal	Awaiting Review	enhancement	new		2017-07-25T21:29:37Z	2017-09-27T06:04:28Z	Is there a good reason that /wp-admin/network/site-new.php uses it's own hard-coded blogname validation rules? Shouldn't it just call wpmu_validate_blog_signup() for DRY as well as a consistent / universal application of filters across all new site names? It seems crazy to have two different sets of validation for the same thing. And as multisite plugin developers we see network admins confused by the different behavior of site-new.php and sites created through plugins which use wpmu_validate_blog_signup().	neversettle
1	44814	User table same schema, single and multisite		Networks and Sites	3.3	normal	normal	Future Release	enhancement	new	dev-feedback	2018-08-19T16:16:33Z	2019-01-25T17:28:07Z	Currently, there is a difference between the users table database schema between single and multisite. I think this is problematic, as it is an unnecessary difference between single and multisite. It means conditional logic that is unnecessary and could make issues for developers querying the users table.	spacedmonkey
1	48901	WordPress multisite with subdirectories sites using the same 'Site Title'		Networks and Sites	5.3	normal	normal	Awaiting Review	enhancement	new		2019-12-06T10:32:25Z	2025-06-17T12:24:53Z	"I want to create a WordPress multisite with subdirectories sites using the same 'Site Title'. 
I’ll be implementing an English version, Italian version, Spanish version, and so on.
The URL will be: 
mysite.com
mysite.com/it
mysite.com/es

By clicking on 'My Sites', the sites list on the My Sites screen will show the same name. A change in the file my-sites.php may resolve this annoying problem

Instead of:


{{{#!php
<?php
	foreach ( $blogs as $user_blog ) {
		switch_to_blog( $user_blog->userblog_id );

		echo '<li>';
		echo ""<h3>{$user_blog->blogname}</h3>"";

		$actions = ""<a href='"" . esc_url( home_url() ) . ""'>"" . __( 'Visit' ) . '</a>';

		if ( current_user_can( 'read' ) ) {
			$actions .= "" | <a href='"" . esc_url( admin_url() ) . ""'>"" . __( 'Dashboard' ) . '</a>';
		}
?>
}}}

Would it possible to change as described below ?

{{{#!php
<?php

    $site_name = array_unique(array_column($blogs, 'blogname'));

	foreach ( $blogs as $user_blog ) {
		switch_to_blog( $user_blog->userblog_id );

	        echo '<li>';
                if ( count($site_name) == 1 ):
	        echo ""<h3>{$user_blog->siteurl}</h3>"";
                else:
                echo ""<h3>{$user_blog->blogname}</h3>"";
                endif;

		$actions = ""<a href='"" . esc_url( home_url() ) . ""'>"" . __( 'Visit' ) . '</a>';

		if ( current_user_can( 'read' ) ) {
			$actions .= "" | <a href='"" . esc_url( admin_url() ) . ""'>"" . __( 'Dashboard' ) . '</a>';
		}
		
}}}



"	simpleform
1	46072	add a $metas param to wpmu_create_blog()		Networks and Sites		normal	normal	Awaiting Review	enhancement	new	has-patch	2019-01-22T21:37:51Z	2019-01-23T18:41:47Z	`wpmu_create_blog()` should accept an additional param for blogmeta for the new blog, analogous to the existing `$options` param for site options.	pbiron
1	48481	don't apply wp_initialize_site_args filter until after wp-admin-includes/update.php is loaded		Networks and Sites		normal	normal	Awaiting Review	enhancement	new	has-patch	2019-11-01T17:46:04Z	2019-11-01T18:05:36Z	"A recent [https://wordpress.slack.com/archives/C03BVB47S/p1572621303020200 slack thread] discussed the desire to have sub-domain installs default the siteurl and home options to https (at least on a given install).  in that thread it was suggested that one could hook into `wp_initialize_site_args` to accomplish that.

It would be great if one could hook into `wp_initialize_site_args` in a custom `WP_CONTENT_DIR . '/install.php'`.  Unfortunately, that isn't loaded until after `wp_initialize_site_args` is applied.

Therefore, I suggest that `wp_initialize_site()` should apply `wp_initialize_site_args` only after `wp-admin-includes/update.php` has been loaded (that file in turn loads `WP_CONTENT_DIR . '/install.php'`).

Doing that would allow a site owner that new all of the sub-domain sites they were going to add would support https to add something like the following to their `WP_CONTENT_DIR . '/install.php`:

{{{#!php
add_filter( 'wp_initialize_site_args', 'mysite_https_siteurl_and_home' ), 10, 3 );
function mysite_https_siteurl_and_home( $args, $site, $network ) {
	if ( is_subdomain_install() ) {
		$args['options'] = array_merge(
			array(
				'home'    => untrailingslashit( 'https://' . $site->domain . $site->path ),
				'siteurl' => untrailingslashit( 'https://' . $site->domain . $site->path ),
			),
			$args['options']
		);
	}

	return $args;
}
}}}

Related: #14172, #27499"	pbiron
1	55263	Multisite: Multidomain Single Sign On		Networks and Sites		normal	normal	Awaiting Review	feature request	new		2022-02-26T10:21:26Z	2026-07-26T09:37:14Z	"This came up in the Slack multisite channel a few days ago.
https://wordpress.slack.com/archives/C03BVB47S/p1645670322425659

It would be very helpful to have multidomain Single Sign On as an option through the Network -> Settings -> Settings. (Should probably be renamed to General so that we do not have a Settings Settings screen.) 

Here is a plugin: https://wordpress.org/plugins/multisite-multidomain-single-sign-on/"	paaljoachim
1	64377	Add a Notes column to the posts list table	adamsilverstein	Notes		normal	normal	Awaiting Review	enhancement	reviewing	has-patch	2025-12-08T11:41:27Z	2025-12-09T02:27:31Z	"The list of posts could include a column for Notes.

In the future, this could be expanded to include unread notes.

In order to accommodate this, the current comments Dashicon in table header should be replaced by a simple ""Comments"" label."	lukecarbis
1	58246	'update_meta_cache()' doesn't correctly handle the return value of the 'update_{$meta_type}_metadata_cache' filter		Options, Meta APIs	6.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-05-03T17:24:26Z	2023-05-03T17:40:37Z	"The return type of `update_meta_cache()` is `array` or `false`, but the return value of `update_{$meta_type}_metadata_cache` filter is forcibly cast to `bool` and returned in `update_meta_cache()`.
[https://core.trac.wordpress.org/browser/trunk/src/wp-includes/meta.php#L1149 wp-includes/meta.php: 1149]
{{{#!php
	$check = apply_filters( ""update_{$meta_type}_metadata_cache"", null, $object_ids );
	if ( null !== $check ) {
		return (bool) $check;
	}
}}}

This may cause `get_metadata_raw()` to produce incorrect results.
[https://core.trac.wordpress.org/browser/trunk/src/wp-includes/meta.php#L646 wp-includes/meta.php: 646]
{{{#!php
	if ( ! $meta_cache ) {
		$meta_cache = update_meta_cache( $meta_type, array( $object_id ) );
		if ( isset( $meta_cache[ $object_id ] ) ) {
			$meta_cache = $meta_cache[ $object_id ];
		} else {
			$meta_cache = null;
		}
	}
}}}"	donglijun
1	32565	Adding an underscore prefix meta key with a meta value provides an incorrect error message	SergeyBiryukov	Options, Meta APIs	4.3	normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2015-06-04T13:16:08Z	2026-07-16T08:44:59Z	"To reproduce this, use the custom fields section in a post to add a custom field. Add a hidden field (prefix the custom field name with an underscore) and type any value. The error returned is ""Please provide a custom field value."" which is not what the issue is, the issue is that we are trying to add a protected meta key. 

I've included a fix which I don't particularly like. Perhaps add_meta should return a WP_Error object with the correct error. This would be easy enough to do, but I'm not familiar enough with add_meta(), I'm not sure what this could break. 

I changed this in all three places the issue could occur, but I'm not sure this is needed. During troubleshooting it was obvious that the issue originates from line 1198. The other two occurrences could be line 1193 and 1281. 

Hope this helps,

Daniel"	danielpataki
1	21432	Deprecate *_blog_option()		Options, Meta APIs	3.4.1	normal	normal	Future Release	defect (bug)	assigned	dev-feedback	2012-07-31T21:53:06Z	2024-09-13T13:03:04Z	"Deprecate get_blog_option(), add_blog_option(), update_blog_option(), and delete_blog_option(). The regular *_option() functions wrapped with switch_to_blog() and restore_current_blog() should be used instead.

Previous discussion:

http://core.trac.wordpress.org/ticket/21270#comment:11"	ryan
1	44459	Options added to the Permalinks admin page do not get saved		Options, Meta APIs		normal	normal	Awaiting Review	defect (bug)	new		2018-06-25T17:23:39Z	2018-06-26T16:10:24Z	"When a new option with matching field is registered to show on the Permalink admin page, it will show there just fine but the setting will never be saved to the database. This seems due to the fact that wp-admin/options-permalink.php submits to itself, not to options.php

To reproduce:

1. Register a test option to the permalink group:
{{{#!php
function register_test_base_setting() {
	$args = array(
		'type' => 'string',
		'sanitize_callback' => 'sanitize_text_field'
	);
	register_setting( 'permalink', 'test_base', $args );
}
add_action( 'admin_init', 'register_test_base_setting' );
}}}

2. Add settings field to the permalink group, at the optional section:
{{{#!php
function add_test_base_settings_field() {
    add_settings_field(
        'test_base',
        'Test base',
        'test_base_settings_field',
        'permalink',
        'optional',
        array( 'label_for' => 'test_base' )
    );
}
add_action('admin_init', 'add_test_base_settings_field' );

function test_base_settings_field( $args ) {
	global $blog_prefix;
	$test_base = get_option( 'test_base' );

	echo $blog_prefix;
	?><input name=""test_base"" id=""test_base"" type=""text"" value=""<?php echo esc_attr($test_base); ?>"" class=""regular-text code"" /></td>
	<?php
}
}}}

3. Visit Settings > Permalinks and try to set a value and save the setting.

What is expected: the setting gets (a) passed to the sanitize callback and then (b) saved to the DB.

What happens: nothing of these two.

There is really no point of the `do_settings_fields('permalink', 'optional')` and `do_settings_sections('permalink')` in wp-admin/options-permalink.php if options added though these hooks will never get treated.

"	RavanH
1	65969	Options, Meta APIs: delete_expired_transients() deletes site transients across networks		Options, Meta APIs	4.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-26T13:18:25Z	2026-08-28T05:58:02Z	"On multisite, `delete_expired_transients()` cleans site transients out of `wp_sitemeta` with this statement (`wp-includes/option.php`, unchanged since it was introduced in 4.9.0 - verified identical on branches 4.9, 5.0, 6.8 and trunk):

{{{#!php
$wpdb->query(
	$wpdb->prepare(
		""DELETE a, b FROM {$wpdb->sitemeta} a, {$wpdb->sitemeta} b
		WHERE a.meta_key LIKE %s
		AND a.meta_key NOT LIKE %s
		AND b.meta_key = CONCAT( '_site_transient_timeout_', SUBSTRING( a.meta_key, 17 ) )
		AND b.meta_value < %d"",
		$wpdb->esc_like( '_site_transient_' ) . '%',
		$wpdb->esc_like( '_site_transient_timeout_' ) . '%',
		time()
	)
);
}}}

`wp_sitemeta` is a global table: every network's rows live in it, separated only by `site_id`. The statement pairs `a` and `b` on `meta_key` alone. Nothing requires the value row and the timeout row to belong to the same network.

The guard on the branch is `is_main_site() && is_main_network()`, so the query runs once - but it runs over every network's rows.

The consequence is that an expired site transient on one network deletes a valid, unexpired site transient of the same name on another, and leaves the victim's timeout row behind as an orphan.

== Reproduction ==

A multi-network install, two networks, same transient name on both. Contents of `wp_sitemeta` before the run:

|| '''site_id''' || '''meta_key''' || '''meta_value''' ||
|| 1 || `_site_transient_foo` || `A` ||
|| 1 || `_site_transient_timeout_foo` || `time() + 3600` (not expired) ||
|| 2 || `_site_transient_foo` || `B` ||
|| 2 || `_site_transient_timeout_foo` || `time() - 1` (expired) ||

Only one row satisfies `b`: network 2's expired timeout. Both value rows satisfy `a`. So the statement matches two pairs - `(a = network 1's value, b = network 2's timeout)` and `(a = network 2's value, b = network 2's timeout)` - and `DELETE a, b` removes three rows.

Afterwards:

|| '''site_id''' || '''meta_key''' || '''meta_value''' ||
|| 1 || `_site_transient_timeout_foo` || `time() + 3600` ||

Network 2 is cleaned correctly. Network 1 has lost a site transient that had an hour left to live, and is left holding a timeout row with no value row.

That leftover row is the orphan described in #65863: before that patch, no public API can remove it. `delete_site_transient()` will not, because its `delete_site_option()` on the value row returns `false`; `delete_expired_transients()` will not, because its own JOIN needs the value row to exist. It sits in `wp_sitemeta` until someone deletes it by hand.

So the two tickets meet: this statement is one of the ways core manufactures the orphans that #65863 is about.

== Suggested fix ==

Qualify the pairing with the network, the same way the new anti-join in the patch on #65863 does:

{{{#!diff
 			""DELETE a, b FROM {$wpdb->sitemeta} a, {$wpdb->sitemeta} b
 			WHERE a.meta_key LIKE %s
 			AND a.meta_key NOT LIKE %s
 			AND b.meta_key = CONCAT( '_site_transient_timeout_', SUBSTRING( a.meta_key, 17 ) )
+			AND b.site_id = a.site_id
 			AND b.meta_value < %d"",
}}}

== Note on scope ==

Raised during review of the patch on #65863 and split off at the suggestion of its author, because the backport decisions differ: #65863 targets 7.2, whereas this affects every release since 4.9.0 and loses data. The two changes touch adjacent lines in the same function, so whichever lands second will need a rebase.

== Testing instructions ==

There is currently no test that reaches this branch at all - `delete_expired_transients()`'s sitemeta path is uncovered. A regression test needs a second network (`$factory->network->create()`), the four rows above written with `add_network_option()`, a call to `delete_expired_transients()`, and assertions that network 1 still has both of its rows. It fails on the current statement and passes with the `site_id` condition added."	robbsie
1	48573	Permalinks Settings screen unnecessarily calls sanitize_option( 'permalink_structure' )...		Options, Meta APIs		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2019-11-12T17:56:31Z	2019-11-12T23:49:29Z	"...just before it calls [https://developer.wordpress.org/reference/classes/wp_rewrite/set_permalink_structure/ WP_Rewrite::set_permalink_structure()].

It is unnecessary because `sanitize_option()` will be called by the `update_option()` call in `WP_Rewrite::set_permalink_structure()` if it the value needs to be sanitized (i.e., it has changed).
"	pbiron
1	47166	When option gmt_offset is blank, wordpress will give a 500 error		Options, Meta APIs	5.1.1	normal	minor	Awaiting Review	defect (bug)	new		2019-05-07T11:05:16Z	2019-05-07T11:05:16Z	"If for any reason the gmt_offset option is """", wordpress will give a type error:

A non-numeric value encountered in /wp-includes/functions.php on line 70 and 162

This can then only be solved by editing the database or reinstalling wordpress as the settings page cannot be loaded.

If a default value would be set (e.g. 0), the user can fix the problem in the settings page.

"	silvanthus
1	58619	absint() causes unexpected behavior for metadata functions which use get_metadata_raw()	pbearne	Options, Meta APIs		normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2023-06-25T22:12:44Z	2023-12-18T22:15:01Z	"I discovered this behavior when testing on WordPress version 5.6 and observed the logic flaw in the current code documentation.

In my instance, I have a function that is expected to retrieve a user ID and returns -1 as an error case. This can then end up being used with WordPress's get_user_meta() which eventually uses get_metadata_raw(). The use of absint() on the $object_id within this function causes unexpected behavior as my -1, an invalid object ID, is now interpreted as 1, a valid object ID.

I was expecting WordPress to treat the object ID as invalid if it was so, but it instead changed the value of my provided argument.

The offending code is here: https://core.trac.wordpress.org/browser/tags/6.2/src/wp-includes/meta.php#L603

Please let me know if I'm misunderstanding the purpose of absint() within this function, but it seems like a sneaky rug pull gotcha. I believe the validation on L599 which includes {{{ ! is_numeric( $object_id ) }}} should also include {{{ || $object_id < 0 }}} to resolve this issue, as well as change L603 to use intval().

"	michelleblanchette
1	58904	delete_expired_transients() does not delete expired transient created with a false/empty transient name		Options, Meta APIs	6.3	normal	normal	Awaiting Review	defect (bug)	new		2023-07-25T19:40:24Z	2023-07-25T19:40:24Z	"Due to a typo/bug in my plugin code, I found that WordPress accepts empty strings, null, and false for the $transient arg, aka: the transient name, in set_transient() function which creates transients in the options database with values of simply `_transient_` and `_transient_timeout_`.

The empty string transient is not be cleaned up by the `delete_expired_transients()` routine.

Related is patch #58903, though I do not feel comfortable making a patch for this issue as the fix requires has SQL calls."	jeremyescott
1	65863	delete_transient() cannot remove a timeout row whose value row is missing, and delete_expired_transients() never sees it		Options, Meta APIs	4.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-08-12T15:55:41Z	2026-10-05T12:20:25Z	"When `_transient_timeout_<name>` exists in the options table without its matching
`_transient_<name>` row, no API in core can remove it, and the row can be created
by core itself.

Tested against WordPress 7.0.3, PHP 8.3, MariaDB 10.11, no persistent object cache.

== How the row is created ==

`set_transient()` writes the timeout row before the value row, in two separate
statements with no transaction (`wp-includes/option.php:1550` and 1552):

{{{
if ( $expiration ) {
    $autoload = false;
    add_option( $transient_timeout, time() + $expiration, '', false );
}

$result = add_option( $transient_option, $value, '', $autoload );
}}}

If the request dies between the two writes — fatal error, execution timeout,
memory exhaustion, dropped connection — the timeout row is already committed and
the value row never arrives.

Reproduced without touching the database directly, by triggering `exit` from an
`added_option` hook fired for the timeout row:

{{{
set_transient( 'crash', 'value', 3600 );

// request aborts here, directly after the timeout row

resulting state: 1 row
    _transient_timeout_crash    1786455787

delete_transient( 'crash' ) => false
rows after: 1
}}}

Truncation at `varchar(191)` is a second path to the same state and is already
tracked in #15058 and #58903.

== Why `delete_transient()` cannot remove it ==

`wp-includes/option.php:1396-1400`

{{{
$result = delete_option( $option );

if ( $result ) {
    delete_option( $option_timeout );
}
}}}

`$option` is the value row. `delete_option()` returns false at `option.php:1215`
because the row does not exist, so line 1399 is never reached and the timeout
row stays. `delete_transient()` returns false and will do so on every subsequent
call for the same name.

`delete_site_transient()` has the identical construction at `option.php:2529`.

Measured, single site:

{{{
set tr_a, tr_b, tr_c                          6 rows
DELETE _transient_tr_b (value row only)       5 rows
delete_transient() on all three               1 row

delete_transient( 'tr_a' ) => true
delete_transient( 'tr_b' ) => false
delete_transient( 'tr_c' ) => true

remaining: _transient_timeout_tr_b
}}}

Identical result for site transients, and on multisite in `wp_sitemeta`.

== Why the daily cleanup does not remove it either ==

`delete_expired_transients()` joins the options table against itself
(`option.php:1645`), where the timestamp comes from `time()` and is inserted by
`$wpdb->prepare()`:

{{{
DELETE a, b FROM wp_options a, wp_options b
WHERE a.option_name LIKE '_transient_%'
  AND a.option_name NOT LIKE '_transient_timeout_%'
  AND b.option_name = CONCAT( '_transient_timeout_', SUBSTRING( a.option_name, 12 ) )
  AND b.option_value < 1786455787
}}}

An orphaned timeout row has no `a` side, so it never appears in the result set.
This is independent of the timestamp. Measured with four cases side by side:

{{{
pair, expired      removed   (the function does work)
pair, valid        kept      (correct)
orphan, expired    stays
orphan, future     stays
}}}

Same result via `wp cron event run delete_expired_transients`.

== The one code path that does clean it up ==

`get_transient()` removes the row at `option.php:1465-1469`, where both
`delete_option()` calls run unconditionally:

{{{
$timeout = get_option( $transient_timeout );

if ( false !== $timeout && $timeout < time() ) {
    delete_option( $transient_option );
    delete_option( $transient_timeout );
    $value = false;
}
}}}

So the row disappears if two conditions meet: the timeout has expired, and
something calls `get_transient()` with exactly that name. It becomes permanent
when nothing reads that name any more — which is the normal case once the plugin
that created the transient has been uninstalled.

This matches dd32's explanation in #12782 comment 1 from 2010: timeout entries
are only removed when a transient expires and is read.

== Scope ==

Only affects installations without a persistent object cache. With a drop-in
active, transients never reach `wp_options`. Rows already present from before the
drop-in was installed are a separate problem: `delete_transient()` takes the cache
branch at `option.php:1391` and no longer touches the options table at all, and
`delete_expired_transients()` returns immediately at `option.php:1639` unless
`$force_db` is set, which the daily cron event never does.

== History ==

The construction dates back to [13911] (April 2010), which introduced deletion
of the timeout row in the first place — in `wp-includes/functions.php` at the time —
including the `if ( $result )` guard:

{{{
-   $result = delete_option( $option );
+   $option_timeout = '_transient_timeout_' . $transient;
+   $option = '_transient_' . $transient;
+   $result = delete_option( $option );
+   if ( $result )
+       delete_option( $option_timeout );
}}}

The guard has never been revisited. Diffs of `option.php` against 4.9, 6.0, 6.6
and 6.8 show the relevant code unchanged.

== Relation to existing tickets ==

#12782 — fixed in 3.0, introduced this code. Describes the opposite starting
point: the value row was deleted successfully and the timeout row was not touched
at all.

#58904 — falsy transient names producing literal `_transient_` rows. A different
cause; the self-join is not discussed there.

#33561, #44977, #52345 — the mirrored case: value row without timeout row. That
state is an expiry problem, and it is removable through the API —
`delete_transient()` returns true and deletes the row. This ticket is about the
other direction, which is harmless for behaviour but unremovable.

== Possible directions ==

Dropping the `if ( $result )` guard would change the documented return value of
`delete_transient()`, which would then report success without having deleted a
complete transient. Alternatives worth discussing: deleting the timeout row
unconditionally while keeping the return value tied to the value row, or adding
a LEFT JOIN pass to `delete_expired_transients()` for rows without a partner.

Happy to supply a patch and unit tests once there is a preferred direction."	robbsie
1	45505	get_post_custom() doesn't pull values		Options, Meta APIs	5.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-12-06T21:37:29Z	2026-10-30T14:36:59Z	"When you are on a post or page and change the content and reload, so that the autosave post pops up at the top, the get_post_custom() values in custom metaboxes aren't being pulled in.

get_post_meta() values however still works in that scenario."	dryane
1	35379	update_network_option changes stored option value if sanitize_option detects error		Options, Meta APIs	3.0	normal	normal	Future Release	defect (bug)	assigned	dev-feedback	2016-01-08T23:48:50Z	2025-05-18T12:38:26Z	"If you make a call like
{{{
update_network_option( null, ""admin_email"", ""this.is.not.an.email.address"" );
}}}
then the value of the `admin_email` ''network'' option will be changed to the value of the `admin_email` ''site'' option in the database. Expected behaviour would be that the option value in the database is not changed.

The reason is that `update_network_option` calls
{{{
sanitize_option( ""admin_email"", ""this.is.not.an.email.address"" );
}}}
and writes its return value to the database. However, `sanitize_option` will return the value of `get_option( ""admin_email"" )`, instead of `get_network_option( null, ""admin_email"" )`. See [https://core.trac.wordpress.org/browser/tags/4.4/src/wp-includes/formatting.php#L3863 lines 3863ff. in formatting.php]."	thomaswm
1	64023	wp_die() status code Options component updates (parent ticket: #64009)		Options, Meta APIs		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-09-22T15:51:34Z	2025-11-22T03:43:06Z	"If you have come here directly, please refer back to the parent ticket here: [https://core.trac.wordpress.org/ticket/64009 #64009]

This ticket is regarding the `wp_die()` function calls within the Media component and will cover the following locations. Please note links were correct at the time of testing and writing this up, but line numbers may have changed slightly:

|| **Filepath** || **Line Number** || **Context* || **Status Code** || **New Code** || **Code Meaning** ||
|| src/wp-admin/options-permalink.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/options-permalink.php#L13 13] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/options-privacy.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/options-privacy.php#L13 13] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/options-reading.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/options-reading.php#L13 13] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/options-general.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/options-general.php#L16 16] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/options-writing.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/options-writing.php#L13 13] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/options-discussion.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/options-discussion.php#L12 12] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/options-media.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/options-media.php#L13 13] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/options.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/options.php#L249 249] || REQUEST: invalid params || 500 || 400 || Bad Request ||
|| src/wp-admin/options.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/options.php#L260 260] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-includes/option.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/option.php#L568 568] || Error: invalid params || 500 || 400 || Bad Request ||

I have also put in a PR with these changes so it’s easier to see where in the code each lies, and the surrounding code.

There are however the following function calls I have not touched as I felt they were already valid with their current status code:

|| **Filepath** || **Line Number** || **Status Code** ||
|| src/wp-admin/options.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/options.php#L50 50] || 403 ||
|| src/wp-admin/options.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/options.php#L83 83] || 403 ||"	callumbw95
1	39706	Add $unique param to add_{$meta_type}_meta actions		Options, Meta APIs	3.1	normal	normal	Future Release	enhancement	new	has-patch	2017-01-26T17:11:05Z	2026-08-27T12:24:00Z	"The hooks `add_{$meta_type}_meta` and similar provide context about `$object_id`, `$meta_key`, `$_meta_value` and such, but do not tell whether the meta data added or updated is supposed to be `$unique`.

Adding this information could be helpful. My use case for instance is propagating meta data across posts."	barryceelen
1	58249	"Improve ""get_metadata_raw()"" by Delegating ""$single"" Handling to Filter"		Options, Meta APIs	6.3	normal	normal	Awaiting Review	enhancement	new	has-patch	2023-05-03T23:19:44Z	2024-09-09T01:35:41Z	"In the current implementation of the `get_metadata_raw()` function, after obtaining the result from the `get_{$meta_type}_metadata` filter, the code checks `$single` and `is_array()` and may [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/meta.php#L633 return the first element of the result instead of the entire result]. This can cause unnecessary ambiguity when the retrieved meta value from filter is an array which is serialized and stored in database.

It appears that `get_metadata_raw()` assumes the `get_{$meta_type}_metadata` filter will [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/meta.php#L657 unserialize the meta value], but not handle the `$single` parameter.

To improve clarity and efficiency, I recommend delegating the responsibility of handling the `$single` logic to the `get_{$meta_type}_metadata` filter. This change will streamline the `get_metadata_raw()` function and provide more consistent handling of meta values."	donglijun
1	43818	Invalidate query caches less aggressively by using a `last_changed` key specific to metadata		Options, Meta APIs		normal	normal	Future Release	enhancement	new	has-patch	2018-04-20T08:13:55Z	2026-04-06T11:05:37Z	"Currently, the meta implementations for posts, terms, comments and sites (in multisite) invalidate all respective query caches when any value is changed (via setting the `last_changed` key). This is a really aggressive method of cache invalidation and causes in query caches being too frequently invalidated, resulting in lots of unnecessary cache misses.

Most queries (or at least many queries) do not make use of meta queries, and those should stay unaffected by when a meta value changes. Therefore I suggest introducing a specific `meta_last_changed` cache key, and have the meta functions set that one instead of the generic `last_changed`. In the query classes, we can then check if a meta query is present, and only then make use of the `meta_last_changed` key - otherwise we can ignore it and use the regular `last_changed` key.

Regarding the initial implementation, we should think about whether we would wanna roll this out to all the above object types immediately, or whether we should rather start with an object type less popular for metadata (i.e. ''not'' posts). Related to this is #43813."	flixos90
1	46314	JSON strings in postmeta issue		Options, Meta APIs	5.2	normal	normal	Awaiting Review	enhancement	new		2019-02-22T11:02:38Z	2019-02-22T13:44:07Z	"Using and storing data as JSON is becoming more and more widely used. Also in the course of the increased future use of JavaScript for the WordPress admin area.

JSON strings could be part of an serialized array in the postmeta database value. Unfortunately update_post_metadata() removes all backslashes and may destroyes JSON string syntax if protected quotes are included in the JSON string. 

In general all stored backslashes in postmeta will removed whether from a JSON string or part of an code example value etc. update_post_metadata() should not change the value at all. This is what to expect from this and any other function that takes a value to store that value in the database.

update_post_metadata() is used by many plugins and themes without providing wp_slash() to the value before. Is there a chance to solve that problem?

Cheers
Johann "	Jonua
1	62748	Return results of update_post_meta		Options, Meta APIs		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-12-28T16:25:06Z	2025-01-07T07:30:10Z	"Hi Team!

I checked the return types of the update_post_meta function and this fact was interesting:
- false on failure or if the value passed to the function is the same as the one that is already in the database.

It would be great to see the difference between cases of failure and the same value, because there is no way to know if it failed (and maybe needs to try again) or just didn't update because it had the same value. I think that before any update using get_post_meta function to check for the same value is not the best way if it will happen for example in a big loop.

Thanks,
Vahan"	vahan889
1	42193	Select text in readonly textarea on focus		Options, Meta APIs	4.9	normal	normal	Future Release	enhancement	new	has-patch	2017-10-12T09:30:03Z	2018-09-17T16:59:54Z	"[[Image(https://ibin.co/3dVwFgRPo6d1.png)]]

It would be better if the text is selected when the user clicks (focus) on a read-only textarea, especially when it's meant to be copied, for example in the Network Setup section, a user has to copy-paste in the wp-config.php or the .htaccess file."	NomNom99
1	55584	Settings API autoload hook		Options, Meta APIs		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2022-04-18T04:56:49Z	2023-08-31T17:43:17Z	"Currently all settings registered via Settings API is forced to enable autoload, There is no hook to replace this. 

Lets imagine just for example:
1. all wordpress plugins is using this to register their settings data. but not delete this value during uninstall.
2. Average wodpress admin install then uninstall 50 plugins in their lifetime.
3. Average autoloaded setting is 100kb per plugin

there will be 5mb autoloaded options which not used anymore. that event is per pageload. Just imagine that. "	hir88en
1	49948	Site Meta: Adding additional useful functions		Options, Meta APIs	5.5	normal	minor	Awaiting Review	enhancement	new	has-patch	2020-04-18T15:01:46Z	2020-08-04T16:34:55Z	"There are useful functions for post meta such as `get_post_custom()`, `get_post_custom_keys()` and `get_post_custom_values()`.

These functions do not exist for site meta but they would be useful. I've added `get_site_custom()`, `get_site_custom_keys()` and `get_site_custom_values()` to ms-site.php and created a PR to the GitHub repo.



"	mikeyhoward1977
1	43598	site-options notoption only queried and never set in not multisite wordpress installs	SergeyBiryukov	Options, Meta APIs	4.9.5	normal	normal	Future Release	enhancement	reviewing	dev-feedback	2018-03-21T10:08:34Z	2025-07-16T21:54:59Z	"We have notoptions mechanism that works well. WordPress core does also query $network_id:notoptions regardless of multiste. However, such option is set only in multisite installs. As a result, if you are not running multisite, you are only querying for $network_id:notoptions and you never set it. It beats the idea of notoptions - we read it, but we never set it - what's the point?

Possible solutions:
- read $network_id:notoptions only in multisite installs
- set $network_id:notoptions also in not multisite installs"	Grzegorz.Janoszka
1	52360	speed up update_meta_cache with easy fix		Options, Meta APIs		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-01-25T14:02:57Z	2026-01-07T14:01:21Z	"wp-includes/meta.php:1061
{{{#!php
<?php
$meta_list = $wpdb->get_results( ""SELECT $column, meta_key, meta_value FROM $table WHERE $column IN ($id_list) ORDER BY $id_column ASC"", ARRAY_A );
}}}
in this request should avoid ""ORDER BY $id_column ASC"" to speed up this query (at least 3 times faster)"	vladislavdavarashvili
1	41099	update_option return value ambiguous		Options, Meta APIs	4.8	normal	normal	Awaiting Review	enhancement	new		2017-06-19T20:58:45Z	2026-10-05T17:34:04Z	"WordPress 4.8

The return value 'false' does not allow for differentiating if there was an error saving or if the option value already exists and is the same as the new value.

Consider this scenario: a plugin sends option values via AJAX to be updated. The AJAX function returns the return value of 'update_option' which determines the feedback provided to the user, such as a 'success' or 'failure' message.

Rather than returning 'false' if an option already exists and is the same as the new option, I suggest returning NULL.  In this way the return value of 'update_option' can be checked as follows:

{{{#!php
if ( is_null( update_option( $option, $value, $autoload) ) ) { ... } // option exists and value is the same as existing option value
if ( false === update_option( $option, $value, $autoload) ) { ... } // an error occured when saving the option
if ( update_option( $option, $value, $autoload) ) { ... } // option updated successfully
}}}

The 'update_option' function would need line 308 changed from:

{{{#!php
return false;
}}}

to:

{{{#!php
return NULL;
}}}
"	cloughit
1	64581	Allow serialized options read-only view		Options, Meta APIs	2.0.2	normal	trivial	Awaiting Review	feature request	new	has-patch	2026-02-01T22:55:10Z	2026-07-23T17:08:27Z	"The options.php page currently overwrites an option value when it is serialized with `'SERIALIZED DATA'`.

However, these values will most likely never be changed manually as it would require users to deserialize, edit and serialize it back via some manually crafted script, while it still does make sense to display the proper value regardless for i.e. debugging purposes without looking up keys in the DB.

Patch could be as simple as returning `$value = $option->option_value;` in options.php assuming there's no further concerns with this page scope. Keeping `$disabled = true;` would prevent manual editing, while having no impact on eventual save.

Permissions would still apply and this page would only remain visible to admins (not even linked anywhere AFAIK). There are no further security concerns about the option value, as non-serialized options already expose their values."	anatolinicolae
1	41769	Custom function to display all values of a custom field (meta_key)		Options, Meta APIs		normal	normal	Awaiting Review	feature request	new		2017-08-31T13:25:35Z	2017-09-01T16:06:45Z	"If possible, add an extra function where we can list all values of a certain custom field (meta_key).

All functions I've found so far is only post id related (e.g get_post_custom_values, etc).

While any developer can build this themselves, I do think other wp users could benefit from it as well if it's simly part of the core. 

Thanks."	mireillesan
1	64036	Filters the value of metadata after it is retrieved.	eslamelsherif	Options, Meta APIs	6.9	normal	normal	Awaiting Review	feature request	assigned	has-patch	2025-09-24T08:24:08Z	2025-09-24T08:26:05Z	"## Change

Extended the get_metadata() function to apply two levels of filters after retrieving metadata:

`{$meta_type}_metadata `→ runs for all meta keys of a given object type (e.g. user_metadata).

`{$meta_type}_metadata_{$meta_key} `→ runs for a specific meta key (e.g. user_metadata_nickname).

## Why

Aligns metadata handling with how get_option() works, which has both a general filter (option_{$option}) and the ability to target specific values.

Provides developers more granular control:

Use the general filter to adjust all metadata of a type.

Use the meta-key-specific filter to target one field only.

## Example usage
{{{#!php
<?php
// Affect all user metadata
add_filter( 'user_metadata', function( $value, $user_id, $meta_key, $single ) {
    return $value === '' ? 'N/A' : $value;
}, 10, 4 );

// Affect only the nickname field
add_filter( 'user_metadata_nickname', function( $value, $user_id, $single ) {
    return 'SuperHero';

}, 10, 3 );

}}}
"	eslamelsherif
1	60816	Attachment pages conflicting with actual pages		Permalinks	6.4.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-03-21T09:04:38Z	2024-03-22T22:35:13Z	The attachment pages are conflicting with the slug of the actual website's pages. What nonsense this is, It is totally frustrating. I don't know what is going on at the WordPress core team.	ayeshamalik
1	42248	Can't create category slug with same name for different parents		Permalinks	4.9	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2017-10-17T13:11:38Z	2025-07-08T10:17:33Z	"Issue with same category slug creation even though both have different parent category.

For example I have structure like this wanted to build up.

Cars - Category
Toyota & Maruti - Subcategory of Cars 
Parts - Subcategory of Toyota & Maruti

/cars/toyota/parts
/cars/maruti/parts

Wordpress isn't allow it. See attached screenshot."	ashokrd2013
1	61716	Fatal error: Uncaught ArgumentCountError in get_delete_post_link() when _edit_link is site-editor.php?postType=%s&postId=%s&canvas=edit		Permalinks		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-07-20T11:28:55Z	2025-09-18T18:20:13Z	"Background

I while ago, before WordPress 6.3, I wrote plugin called gbcptedit ( Gutenberg Custom Post Type Edit ) which enables me to see the posts for the CPTs that were introduced by Gutenberg into WordPress. I used this plugin to help debug / problem determination of several problems where the site editor was not working as expected.

I recently noticed a Fatal error while attempting to view template parts.

Analysis of the problem indicates that this is a problem within the `get_delete_post_link()`. The function assumes that the format of the
`_edit_link` property for the post_object is `post.php?post=%d`, so it only passes the post ID to the sprintf

The failing line is

{{{
$delete_link = add_query_arg( 'action', $action, admin_url( sprintf( $post_type_object->_edit_link, $post->ID ) ) );
}}}

When the `_edit_link` is
`site-editor.php?postType=%s&postId=%s&canvas=edit`
then sprintf expects 3 parameters; the second for the postType attribute and the third for the postId.

The Docblock for the function states

Can be used within the WordPress loop or outside of it, with any post type.


This comment is no longer true. 
In my opinion the code needs to be corrected rather than the comment. 

Note: I was not using get_delete_post_link directly. It's called during WP_List_Table->display.

 
"	bobbingwide
1	48146	Google breadcrumbs problem		Permalinks	5.2.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2019-09-26T05:47:42Z	2020-07-20T15:34:53Z	"It is discussed at the Yoast support forum:

https://wordpress.org/support/topic/google-webmaster-reporting-breadcrumb-problems/

Last post I made up to date with some tests/conclusions:

I find that not only my website shows the “funny” links. Some examples:

https://techcrunch.com/page/6/?cat=-1
http://www.bbcamerica.com/page/3/?cat=-1
https://variety.com/page/4/?cat=-1

I tested on a test website.

https://test.bikegremlin.com/page/2/?cat=-1

Installed Twenty Nineteen and disabled ALL the plugins.

If I make all the posts uncategorized, the “strange links” are no longer working (as they shouldn’t work any time).

Looks like a WordPress itself is a problem, but it just got reported by Google after the Breadcrumb reports introduction."	bikegremlin
1	63282	Inconsistent post name processing		Permalinks	6.7.2	normal	normal	Awaiting Review	defect (bug)	new		2025-04-15T10:52:56Z	2025-04-15T14:50:18Z	"On apache server the post names with symbol `№` and some others may cause HTTP ERROR 403.

Gutenberg editor removes that sumbol from post name by default.
But classic editor saved post name as is.

Classic editor:
Post title: `Post with № character`
Post slug saved: `post-with-№-character`

Gutenberg:
Post title: `Post with № character`
Post slug saved: `post-with-character`"	ArtZ91
1	39321	Issue with get_permalink when using wp_update_post() and %author% is part of your permalink		Permalinks	4.7	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2016-12-17T21:39:12Z	2020-05-22T04:16:09Z	"This was an odd and very specific issue I found with `get_permalink()`. When using `wp_update_post()`, I was getting the following: PHP Notice: Trying to get property of non-object etc... I traced it to `wp-includes/link-template.php` on line 205:

{{{#!php
if ( strpos($permalink, '%author%') !== false) {
	$authordata = get_userdata($post->post_author);
	$author = $authordata->user_nicename;
}
}}}

When the post is a `revision`, post_author is equal to 0, so there's no `user_nicename` property because get_userdata(0) does not return an object. So here's a possible fix for those situations:

{{{#!php
if ( strpos($permalink, '%author%') !== false) {
	$authordata = get_userdata($post->post_author);
	if ( is_a( $authordata, 'WP_User' ) ) {
		$author = $authordata->user_nicename;
	}
}
}}}"	mauteri
1	45784	Pages and archives containing /[0-9]/ should redirect or redirect correctly		Permalinks	5.0.2	normal	normal	Awaiting Review	defect (bug)	new		2018-12-28T03:56:06Z	2019-01-07T00:33:55Z	"With default settings,

https://www.example.com/0 should redirect to https://www.example.com/ but doesn't and instead redirects to https://www.example.com/0/

https://www.example.com/page/0 should redirect to https://www.example.com/ but doesn't and instead redirects to https://www.example.com/page/0/

https://www.example.com/2018/1/25/post-name/ should redirect to https://www.example.com/2018/01/25/post-name but doesn't. 

So basically there is some issue about redirection with pages containing /[0-9]/


"	superpoincare
1	44759	Percent-encoded unicode characters in CPT rewrite slug prevent finding the CPTs on the front-end		Permalinks		normal	normal	Awaiting Review	defect (bug)	new		2018-08-08T18:03:23Z	2025-09-03T11:37:03Z	"If you register a custom post type whose rewrite slug has percent-encoded unicode characters in it, the posts can't be found on the front-end.

Eg


{{{#!php
<?php
function register_unicode_cpt()
{
    register_post_type(
        'unicode_cpt',
        array(
            'label' => 'unicode-cpts',
            'public' => true,
            'rewrite' => array(
                'slug' => '%E6%BC%A2%E8%AA%9E%3B' // doesn't work
                // 'rewrite_slug' => '漢語' // works
            )
        )
    );
}
add_action('init','register_unicode_cpt');
}}}





Seems to initially work fine, the ugly percent-encoded unicode characters don't appear in the post editor (Eg https://drive.google.com/a/eventespresso.com/file/d/1d1j6skbgxrA7IJocGvYi5UMQ_Xw3sCrV/view?usp=drivesdk), but when I go to view the CPT, I'm being redirected to the homepage, (or, when my homepage displays latest posts, I'm seeing those without being redirected).

It seems some code needs to recognize percent-encoded rewrite slugs are the same as the unicode character ones.

The workaround is to use the unicode characters directly, which is technically against the RFC (see https://stackoverflow.com/questions/2742852/unicode-characters-in-urls/2742985#2742985)"	mnelson4
1	47755	Permalink in RTL version not correct		Permalinks		normal	normal	Future Release	defect (bug)	new		2019-07-22T23:23:47Z	2026-03-04T19:47:34Z	"I have notice many problem with permalink in version RTL:

1- for example : https://www.byarabic.com/category/دروس/تعلم-السياقة/
تعلم-السياقة = child
دروس = parent

in LTR this is how it was : `http://www.example.com/category/parent/child`
but in RTL it display like this : `http://www.example.com/category/child/parent`
so the correct direction is `http://www.example.com/category/parent/child`
all url must be in LTR direction even if it in arabic letter.
so the correct direction for my permalink must be like this :
https://www.byarabic.com/category/تعلم-السياقة/دروس

*if you have an arabic support please let him to write the link manual and you will see the first word after ""category"" will write like this : 
category/دروس/
but the second word in arabic after category/دروس will write like this : 
category/دروس/تعلم-السياقة  
this is a problem , because the second word in arabic must be the last word in url , like this 
category/تعلم-السياقة/دروس

2- setting -> permalink : the input field it appear behind text :
https://prnt.sc/oi7t8x
the correct way to show input field it like version LTR, like this :
https://prnt.sc/oi7u63

3- also the same problem in article ''(block editor)'' :
— first about the title of the post it show like this
https://prnt.sc/oi7v2a
but the correct way is like this : 
https://prnt.sc/oi7w42
— other place show wrong direction of permalink, like this : 
https://prnt.sc/oi7wjy

4- about decode url: if I copy an arabic permalink from browser and I past it in other place like here it will display some symbols like `%%%%%` :
example of my permalink : `https://www.byarabic.com/category/%d8%af%d8%b1%d9%88%d8%b3/%d8%aa%d8%b9%d9%84%d9%85-%d8%a7%d9%84%d8%b3%d9%8a%d8%a7%d9%82%d8%a9/`

so I have to decode link to fix the problem and then I can send it to my friend
I use this website to decode it : https://www.url-encode-decode.com/"	rachid84
1	60624	Permalinks corrupted		Permalinks	6.3.3	normal	normal	Awaiting Review	defect (bug)	new		2024-02-23T14:36:27Z	2024-02-23T14:36:27Z	"Hello. 

We experienced an issue now on WP 6.3.3 while all of the sudden all pages started to return 404. 

This occured on a multisite installation hosting around 500 websites with many of them (presumably all) suffering from this error. 

Then we realised the quick and only solution was to either reboot the server(s) or manually flush the permalinks... 

Could you please give us a hand to understand the root cause of this. 

Best "	christianbaltazar
1	63270	Problems with links on several occasions		Permalinks	6.7.2	normal	normal	Awaiting Review	defect (bug)	reopened	reporter-feedback	2025-04-12T17:58:22Z	2025-06-03T15:16:20Z	"Hello friends!

Let's get straight to the point...

Addresses of my WordPress and my website within the admin (exactly the same) e.g.:
""mysite.com/wp"".

The problem:
On the frontpage, I noticed that the links on the entire site are being broken, and the WordPress path in my URL (""/wp"") is being doubled (and also tripled) e.g.:
""mysite.comwp/wp/""
""mysite.comwpwp/wp/""
Note that after the "".com"" the slash disappears and the WP installation path is added, which is ""wp"".

This is happening most frequently in the navigation bar (default navigation block) and footer links. In all cases, I've gone to the editor and fixed all the links dozens of times and the problem continues.

Installation:
WP version: 6.7.2;
Themes: 01 - ""Twenty Twenty-Five"";
Plugins: 02 - ""WP Mail SMTP"" and ""WPForms Lite"";
Posts: 01 (Hello world!);
Users: 01.

Hugs!"	sirluiz
1	44847	Redirect old date-based permalinks on structure changes		Permalinks		normal	normal	Awaiting Review	defect (bug)	new	needs-unit-tests	2018-08-27T13:43:48Z	2019-01-08T07:14:12Z	"If someone switches from `/%year%/%monthnum%/%day%/%postname%/` to `/%postname%/`:

* `/%year%/%postname%/` redirects to the correct URL.
* `/%year%/%monthnum%/%postname%/` shows a 404 error.
* `/%year%/%monthnum%/%day%/%postname%/` shows a 404 error.

All of these URLs should redirect to the correct one."	SergeyBiryukov
1	60143	Running behind HAProxy with fcgi makes WordPress think URL rewriting is unavailable		Permalinks	6.4.2	normal	normal	Awaiting Review	defect (bug)	new		2023-12-22T21:10:19Z	2023-12-22T21:10:19Z	"I have WordPress set up behind HAProxy which directly uses fcgi for PHP and nginX for static files. HAProxy sends `$_SERVER['SERVER_SOFTWARE'] = 'HAProxy 2.3.20-1ppa1~focal'`. As a result in Settings > Permalinks I'm having `index.php` prefixes for permalinks. If I do not change permalink settings rewriting works just fine but as soon as I make changes I'm set for `index.php` in the permalinks as then the rewrite rules are updated.

WordPress here incorrectly infers that URL rewriting might be unavailable. If I trick WordPress into believing I'm running on nginX by making HAProxy sending `$_SERVER['SERVER_SOFTWARE'] = 'nginx'` rewriting works fine and the `index.php` prefix for permalinks is gone.

This might be resolved by adding a condition for HAProxy in `got_url_rewrite()` and defining a `is_haproxy` global similar to the one for nginX which then checks if the `SERVER_SOFTWARE` contains `HAProxy`."	nebulon42
1	31728	Search bug (Cyrillic)		Permalinks	4.1.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2015-03-22T15:03:14Z	2020-07-20T12:52:35Z	"There is a bug, when I search something in my WordPress site.

The correct search link should be: {{{http://site.com/search/word}}}.

When I type something in English, the link is correct: {{{http://site.com/search/word}}}.
But when I type something in Bulgarian language (Cyrillic), the link is different: {{{http://site.com/?s=абвгд}}}.

The structure of my WordPress permalinks is: {{{http://site.com/%post_id%}}}."	kazumy
1	47207	Specific custom permalink 404 on archive page		Permalinks	5.2	normal	normal	Awaiting Review	defect (bug)	new		2019-05-10T00:22:54Z	2019-05-10T02:15:23Z	"If we set a custom permalink of

/%year%/%monthnum%/%day%/%postname%/

archive pages will be

/2019/05/

If we want european/asian/african/southamerican D/M/Y date format


/%monthnum%/%year%/%postname%/

archive pages will be

/2019/05/

US format but doesn't matter, at least it works

but with this permalink:

/%day%/%monthnum%/%year%/%postname%/

archive pages (at least on archive widget) will be

/05/2019/

Which looks good 

But returns 404 with default wp and theme and WP 5.1.1 or 5.2
tried to go to /2019/05/ but 404 too"	briandd
1	30784	Subsites won't show 404 with default permalink structure		Permalinks		normal	normal	Future Release	defect (bug)	new		2014-12-19T17:10:49Z	2020-07-02T14:20:26Z	"On my Multisite (subfolder) installation, I have every site set to use the default (ugly) permalinks. If I go to a subsite and add extra invalid characters after the site name, it displays the site, not a 404 error page. 

Example: If I type in domain.tld/sitename/EXTRACHARS it displays the content from domain.tld/sitename, yet keeps the /EXTRACHARS in all the links.

I spoke with Andrea Rennick and she said that this happens because WordPress ignores anything after the sitename because pretty permalinks are not enabled. 

This all came up because our Google appliances were crawling millions of invalid URLs because .tld/sitename/EXTRACHARS returns a 200, instead of a 404.  

Would it be possible to make it so that an invalid URL would return a 404 instead of ignoring characters beyond the sitename when permalinks are set to default?"	danhgilmore
1	52295	The response is not a valid JSON response - URL permalink using the ? sign		Permalinks	5.6	normal	normal	Awaiting Review	defect (bug)	new		2021-01-14T10:39:41Z	2021-02-20T22:24:44Z	"Encountered a problem at a friend's blog so tried to recreate it on a test site. 

1. Installed vanilla WP_5.6-he_IL with no additional settings or changes on shared Dreamhost hosting with default settings - no cache, Cloudflare or any other settings. Server uses php 7.4
2. Created a first post - everything works great. 
3. Changed the permalink to the simple permalink format e.g. /?=123, that was the default in older versions. 
4. Tried to create a new post with a URL inside the post and got the above mentioned error message. 
5. Changed to other permalink structures - no problem at all. "	rshlo
1	56682	Unexpected cut of the HTML title and the slug		Permalinks	6.0.2	normal	normal	Awaiting Review	defect (bug)	new		2022-09-29T00:04:36Z	2024-10-26T13:16:51Z	"WordPress cuts part of the HTML title and the slug after ""<="" sequence.

Example that is OK (compared with one that IS NOT after that):

- if the title entered is ""some >= word"" the HTML title would e ""some &gt;= word"" and the slug - ""some-word"" (as expected)
- however if the title entered is ""some <= word"" then the HTML title is unexpectedly CUT and becomes ""some"" as well the slug is just ""some"".

The second example should perform exactly as the first one.

Note that the problematic sequence is ""<="" not just ""<""."	dingdang
1	63140	Unicode Chars (Icons) in the URL are possible, but break WordPress		Permalinks	6.7.2	normal	minor	Awaiting Review	defect (bug)	new		2025-03-21T07:58:18Z	2025-03-21T09:05:09Z	"My client used Unicode Chars (Icons) in the URL. WordPress doesnt seam to filter them.

So they where saved. Emediatly after, the page didnt work anymore. Even back in draft, the page delivered a white page and not the page content.
I did remove the icons. But page was still broken. 

Needed to move page content in a ""new"" page and save it to reenable it again. Added icons to the URL and the same issue again.

Why are Unicode Icons not filtered from the URL? Can you please apply a filterin mechanism for only valid char in the url? Icons are not supposed to be in the url I think."	Stefan M.
1	48786	Wrong URLs to categories, authors etc. to a site in a multisite		Permalinks	5.3	normal	normal	Awaiting Review	defect (bug)	new		2019-11-25T01:41:48Z	2023-03-15T15:37:53Z	"WP returns a wrong URL to a term if the term is in another site of a multisite. Terms like categories, tags, authors, date archives and other terms.

How to reproduce: execute this code, with site ID and post ID as examples of valid values in the current installation, in a subsite different to site ID = 3:
{{{#!php
<?php
$site_id = 3;
$post_id = 1389;
$category_links = array();

switch_to_blog( $site_id );
$categories = get_the_terms( $post_id, 'category' );
foreach ( $categories as $category ) {
	// get link to category
	$category_links[] = sprintf(
		'<a href=""%s"">%s</a>',
		esc_url( get_category_link( $category->term_id ) ),
		esc_html( $category->name )
	);
}
print join( ', ', $category_links );
restore_current_blog();
}}}

If other base names for the category and tags are used (being specified on the Permalinks Settings page) the bug is more obviuos. In the next example the subsite is the german version of the main site, so the site path is '/de' and the category base name is specified to 'kategorien', and the german name for the category 'General' is 'Allgemein':

On the english main site the code prints this URL to the german category 'Allgemein':
{{{https://www.example.com/de/blog/category/allgemein/}}}
which is wrong. The correct URL is
{{{https://www.example.com/de/kategorie/allgemein/}}}

On the german subsite the code prints this URL to the english category 'General':
{{{https://www.example.com/kategorie/general/}}}
which is wrong. The correct URL is
{{{https://www.example.com/blog/category/general/}}}

The code sets correct links if it is executed in the site with the ID = 3 (e.g. is current site is same as the site being switched to).

Same is with similar functions like:
{{{
get_author_posts_url()
get_category_link()
get_month_link()
get_post_format_link()
get_post_type_archive_link()
get_tag_link()
}}}
"	Hinjiriyo
1	53346	get_permalink( $post->ID ) returns plain permalink instead of pretty permalink for CPT registered on subsite		Permalinks	5.7	normal	normal	Awaiting Review	defect (bug)	new		2021-06-07T10:39:15Z	2021-06-07T11:09:34Z	"I have a multisite network with CPTs that are registered individually by subsite.
The main site provides an overview of these, using 
{{{
get_permalink( $post->ID );
}}}
to link to the pretty permalink location in each subsite.

After the introduction of 
{{{
wp_force_plain_post_permalink()
}}}
in WP 5.7.0

#52373 #5272 


**get_permalink()** returns plain permalinks due to failing to pass the test in **wp_force_plain_post_permalink()**:


{{{
	$post_type_obj   = get_post_type_object( get_post_type( $post ) );
}}}

**get_post_type_object()** returns null, as the CPT is not present in the global **$wp_post_types** of the main site (even after trying switch_to_blog( $post->blog_id );"	1theo
1	45819	when {category|tag}_base include spaces their rewrite rules don't get generated correctly, resulting in 404's		Permalinks		normal	normal	Awaiting Review	defect (bug)	new		2019-01-03T17:00:58Z	2019-01-03T17:00:58Z	"Steps to reproduce:

1. Go to Settings > Permalinks
2. Enter ""this is a test"" in the `category_base` field
3. Click ""Save Changes""
4. Notice that `category_base` gets saved as ""this%20is%20a%20test"".
5. Notice that the rewrite rules such as the following get generated:
{{{
'this%20is%20a%test/(.+?)?$' => 'index.php?%20was%$matches[1]&%20test%$matches[2]'
}}}
instead of (what I imagine the correct rule would be)
{{{
'this%20is%20a%test/(.+?)?$' => 'index.php?category_name=$matches[1]
}}}

I'm not sure whether the best thing to do is to disallow spaces in `{category|tag}_base` or to fix`WP_Rewrite::generate_rewrite_rules()` to generate correct rules if they do include spaces."	pbiron
1	52889	Add filter to disable forced plain permalinks		Permalinks	5.7	normal	normal	Awaiting Review	enhancement	new		2021-03-23T12:04:29Z	2021-04-19T08:06:39Z	"There should be an option to disable forced plain permalinks introduced with #5272. In my use case, showing the permalinks is totally fine and a requirement, even for private posts. Even worse, `wp_force_plain_post_permalink` results in additional capatibility checks which are expensive in my use case, especially for pages with lots of permalinks (e.g. menus). Setting the posts or the post statuses to public is not possible, as this results in other unwanted side effects. With `wp_force_plain_post_permalink`, there is currently no way to have the old behaviour.

As a proposal, I added a patch that introduces a filter for `wp_force_plain_post_permalink` to completely disable the check."	cneumann
1	6778	Detect when the config will cause infinite loop		Permalinks	2.5	normal	normal	Future Release	enhancement	reopened	dev-feedback	2008-04-19T13:46:14Z	2019-03-15T00:34:39Z	"Behavior:

If you put in http://www.domain.com in the ""Wordpress Address"" setting, then Wordpress will automatically do a redirect from http://domain.com to http://www.domain.com.  Many hosting packages allow the user to deal with www and non-www versions of their domain.  This will cause an infinite redirect loop if, for example, the ""Wordpress Address"" is set to http://www.domain.com and the hosting setting is set remove the www from the domain address-- to redirect http://www.domain.com to http://domain.com.

Expected behavior:

When setting the ""Wordpress Address"" setting, it should detect if the canocical code will cause an infinite redirect loop and warn/correct the mistake"	Analogpoint
1	63953	Improving the Permalink Structure for `?attachment_id=123`		Permalinks		normal	normal	Awaiting Review	enhancement	new		2025-09-10T12:17:12Z	2025-09-10T12:57:16Z	"Since I’m not very fluent in English, I prepared two AI-generated versions of this proposal. To keep things simple, let me start with the conclusion.

Currently, the permalink of an **Attachment Post Type** is placed under the *uploaded-to* parent post.  
I propose changing the structure so that the permalink is placed under the **author** instead.

For taxonomy, I suggest using **categories**. Multiple categories should not be allowed; instead, a **hierarchical directory-style structure** should be supported.

==== Summary

This ticket proposes a follow-up idea to the concepts discussed in #47839 (Extended file management in Media Library). While that ticket focused on general media management, this proposal takes a different direction. It prioritizes the scalability of WordPress in multisite and multi-user environments and aims to improve compatibility with external systems like ActivityPub (Fediverse) and Openverse. I believe that adopting these broader goals will lead to fundamental improvements that benefit all users.

The design is inspired by the user experience of platforms like Pinterest, Misskey Drive, and FileBird Pro. Users familiar with these systems will find the core concept of this proposal easy to grasp.

==== The Problem: The Current Media File Structure

A WordPress media file currently has two distinct levels, which are not cleanly connected:

1. **The Physical File**: This is the file's URL on the server, e.g., `/wp-content/uploads/2025/08/myimage.jpg`.
2. **The Attachment Post Type** (`post_type = 'attachment'`): This is a separate entry in the `wp_posts` table that provides the media item with its own dedicated post page, e.g., `?attachment_id=123`.

In the current Media Library, the ""Uploaded to"" field only displays the first Post/Page a media item is attached to, even if it is used in multiple locations. This contrasts with platforms like **Misskey Drive**, which allow viewing *all notes* where a media file has been attached, providing a much clearer and more organized user experience.

==== Proposal: A Canonical and Semantic Permalink Structure

I propose a unified and semantic permalink structure for federated media. This would resolve the current inconsistencies and make the system more robust for both human and machine readability.

A proposed structure could be:

- `/%author%/%media%/%_boards%/%filename%?w=300/` for a ""drive feed"" or media gallery view.
- `/%author%/%media%/%_pins%/%filename%?w=1024/` for an individual media object page.

==== Design Principles & Inspiration

This design is informed by key principles from existing WordPress features and external systems.

**From Core Trac Ticket #47839:** I have adopted the key principle of implementing a **virtual folder structure using hierarchical taxonomies rather than actually moving files.** This is crucial for avoiding backwards compatibility issues.

- **Folders vs. Categories**: A virtual **Folders** approach is preferred, where an image can be placed into a single folder. This simplifies the user experience and reduces the complexity that can come with a multiple-category approach.
- **Virtual vs. On-Disk**: The virtual folder structure must be implemented without altering the physical location of files on the server's hard drive.

Furthermore, this virtual structure should be seamlessly integrated into the ""Add Image"" interface and allow for the creation of galleries based on these virtual folders.

**From FileBird Pro:** My concept is also inspired by a FileBird Pro-like design, incorporating the following features:

- Folders are unique to each user.
- The API allows for searching by folder names.
- Breadcrumbs are displayed for navigation.
- The design supports folders for various post types.
- It provides a function to track attachment size for storage limits.

**From the Jetpack Carousel:** Drawing from this concept, I identify three distinct ways to link to a piece of media:

- **Image gallery view (block)**: A federated view of a media collection.
- **Upload target (page)**: A dedicated page for a single media object.
- **Direct file link**: The canonical URL to the raw file.

My proposal is to position the **Upload target (page)** as the **federated `Object`** that resides under the user's actor profile. The `attachments` field in the federated post should link to this `Object` URL, not the direct file link. This distinction is crucial for optimization and for maintaining a clean, scalable Fediverse profile.

==== Centralized Media Storage

For WordPress multisite networks, which typically have separate media libraries for each subsite, a **centralized media storage solution** should be considered.

This could involve a system like the **Network Media Library** plugin to consolidate all media files into a single location on the main site. This would allow each media file to have a **single, canonical URL** (e.g., `https://example.com/uploads/2025/08/image.jpg`), preventing URL conflicts and redundant data in the Fediverse. This is also essential for implementing user-specific storage limits.

I had initially dismissed the Network Media Library plugin because of its age and lack of recent updates on WordPress.org. However, based on recent reports, it appears to function well with modern WordPress versions.

- [https://github.com/humanmade/network-media-library Network Media Library plugin]
- [https://www.thewordcracker.com/basic/%EC%9B%8C%EB%93%9C%ED%94%84%EB%A0%88%EC%8A%A4-%EB%A9%80%ED%8B%B0%EC%82%AC%EC%9D%B4%ED%8A%B8-%EA%B3%B5%EC%9C%A0-%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%AC/ 워드프레스 멀티사이트 공유 라이브러리를 만드는 방법 (How to create a WordPress multisite sharing library, in Korean)]
- [https://docs.ipfs.tech/concepts/content-addressing/#what-is-a-cid What is a CID (content identifier)?]"	kimjiwoon
1	43722	On changing of permalinks ask a confirm before to save		Permalinks		normal	normal	Awaiting Review	enhancement	new		2018-04-09T13:10:16Z	2018-04-09T13:10:16Z	"Discussing with the support Italian team seems that one of the most common issue is that there is people that change permalinks and not remember that.
After save see that website is not working anymore and complain about the issue and the support team has to ask what is happened.

The ideal process can be like for changing the password where you have to check a field that confirm to change the password so that situation can be avoided."	Mte90
1	23060	Throw 404 if URL Rewriting is Used With Default Permalinks		Permalinks	3.5	normal	normal	Awaiting Review	enhancement	reopened	dev-feedback	2012-12-26T20:54:55Z	2025-08-07T13:25:56Z	"Suddenly I discovered that my blog is not returning error 404 page. My blog permalink is set as default style http://test.onetarek.com/?p=123 
Now I am trying to create 404 error by using this url http://test.onetarek.com/adsfjkasjdd , it showing home page. Then I tested http://test.onetarek.com/?p=123654 now it shows 404 page. 
Then I tried to load a not existing image http://test.onetarek.com/wp-content/themes/twentyeleven/images/headers/not-image.jpg it shows my home page instead of 404 page. 
I changed my permalink settings to ""Day and name"" then it show 404 page.

I tested this problem in my another blog, this blog is return 404 page but that is not generated by wordpress. Wordpress 404 theme page is not being loaded. A blank page is being loaded with a message by Apache Server ""Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request....""
 
So what is the problem with permalink settings and 404 page."	onetarek
1	62538	WordPress does not detect Openbsd httpd for URL rewrites		Permalinks	6.7.1	normal	normal	Awaiting Review	enhancement	new		2024-11-22T18:41:12Z	2024-11-24T12:57:45Z	"OpenBSD httpd supports [https://man.openbsd.org/httpd.conf#request request rewrites] but WordPress only supports rewrites for Apache, NGINX, Caddy, and IIS.

I have confirmed that OpenBSD httpd rewrite rules support pretty permalinks by including the following line at the bottom of the server configuration:

{{{
location not found ""/*"" {
	request rewrite ""/index.php?$REQUEST_URI""
}
}}}

And by adding the following to the Twenty Twenty-Five `functions.php`:

{{{#!php
function wpse427660_got_rewrite() {
    return true;
}

add_filter( 'got_url_rewrite', 'wpse427660_got_rewrite' );
}}}

The above code is not presented as a proposed solution but to demonstrate that the server can support rewrites sufficiently for WordPress to use pretty permalinks."	openletter
1	37831	Change the permalink structure without changing the url of older articles		Permalinks		normal	normal	Awaiting Review	feature request	new	dev-feedback	2016-08-25T22:22:50Z	2019-04-19T15:19:48Z	"A nice feature would be to change the permalink structure without changing the url of older articles.
Many users complain of having 404 errors on old articles. This causes problem when there are dozens or hundreds of articles.

Not everyone has the competences to manage the redirections
"	Djibs13
1	52835	Disable permalink for images		Permalinks	5.7	normal	normal	Awaiting Review	feature request	new		2021-03-17T14:02:01Z	2022-11-02T09:36:25Z	"Hello.

It would be nice if there is a option to disable the automatic permalink for uploaded images in mediathek.

I've the problem, that I upload an image named ""star"" in mediathek. After that I want to create a single page names ""star"" where the uploaded image goes to. But this is impossible, because the permalink www.demopage.com/star/ do already exist (from the image).

For all projects, I've created with WordPress, I do not need a short permalink for the uploaded images.

It also would be nice if there is a build in solution to save images in folders ;)

Thank's alot!"	mariomd
1	43791	Add the call to pingback_url to core instead of themes		Pings/Trackbacks	4.9.5	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2018-04-17T20:03:24Z	2026-08-12T11:25:13Z	"The `<head>` section contains a lot of `<link>` items that WordPress core generates. 

Why should themes be responsible for outputting the `pingback_url()` `<link>`? 

The core code should remove this burden from the theme and ensure that it is handled every time and correctly. Currently, the theme needs code like this:

{{{
function mytheme_pingback_header() {
	if ( is_singular() && pings_open() ) {
		echo '<link rel=""pingback"" href=""', esc_url( get_bloginfo( 'pingback_url' ) ), '"">';
	}
}
add_action( 'wp_head', 'mytheme_pingback_header' );
}}}
and a lot of themes don't even have it, so then there are core options that don't work correctly. This logic belongs in core.
"	joyously
1	52874	"Activating plugins on Install page randomly errors with ""The plugin does not have a valid header"" message."		Plugins		normal	normal	Awaiting Review	defect (bug)	new		2021-03-21T01:09:33Z	2021-03-22T22:10:18Z	"This seems to be something that has been occurring for some time without resolution in core.

Just started seeing a lot more reports of it recently for one of my plugins, which lead me to dig and see that it has been occurring in the same way to other plugins for years.

Issue: On Plugin Installer page, if you install and activate plugins it can show the following message: ""The plugin does not have a valid header"".

Most users get around it by going to the All Plugins page and activating without issue.

Plugin that currently seems affected include:
- Content Control
- [W3 Total Cache](https://www.pixelwars.org/forums/topic/the-plugin-does-not-have-a-valid-header/)
- [Zapier](https://wordpress.org/support/topic/the-plugin-does-not-have-a-valid-header-198/)

And some from the past few years with same issue:
- [Etsy Shop](https://wordpress.org/support/topic/the-plugin-does-not-have-a-valid-header-150/)
- [Jotform](https://www.jotform.com/answers/2975729-jotform-wp-plugin-plugin-does-not-have-a-valid-header-error)

That was only what I found on first page of google."	danieliser
1	53395	Cannot use wp_is_mobile() in Network activated plugins		Plugins		normal	normal	Awaiting Review	defect (bug)	new		2021-06-14T10:31:25Z	2021-06-14T21:56:30Z	"Steps to reproduce

- Create a network site
- Create and activate a simple custom plugin, use wp_is_mobile() function anywhere in that plugin
- Login to the network dashboard and then activate the plugin

You will see an error:

Uncaught Error: Call to undefined function wp_is_mobile()

Looking at the source code of wp_is_mobile(), I can't see anything that would prevent it from loading earlier. Maybe it should be loaded earlier? 
"	promz
1	60972	Clicking twice on a plug-in update deletes the plug-in.		Plugins	6.5	normal	normal	Awaiting Review	defect (bug)	new		2024-04-10T00:39:40Z	2024-04-11T15:05:30Z	"I check to see if there are updates to the plugins every day or two. After I clicked Update, I clicked it again, not quite fast enough to register as a double-click. (I am 78 years old, and even though I don't want to admit it, I should blame this on a tremor.) It appears that two processes started running against the one plugin.

What apparently happened is that the first process started to run by deleting the old plug-in. The second process saw that the plug-in wasn't there and stopped and seemed to have stopped the first. In any case, there was no trace that the plugin had ever been installed.

**To reproduce**
Pick some plug-in that needs an update.
Click to install the update.
Click again to install the update. (Timing might be critical here, not sure.)

**Proposed Fix**
Add a semaphore which disables starting an update on a plugin after one has started.

**Why this is important**  <WHINE>
Our organization is the state chapter of a national organization.
The national organization coordinator doesn't know much about web development.
He paid a developer to develop 55 similar websites for 50 states and 5 territories.
He hired a consultant to arrange hosting. The consultant recommended a hosting company, not WordPress.com.

Every time I attempt to make an update, I receive a prompt to take a Backup first. If I accept that it fails. I do not have authority to take backups. When I questioned this, years ago, the hosting company said, ""Don't worry. We take daily backups."" When I called the hosting company this time, to restore the backup, they said (see if you can guess...) ""You don't have the authority to request a restoration.""

So I called the national coordinator who called the consultant who called the hosting company to request a restoration. By the time this got to the bottom of the chain, at least one more automatic daily backup was taken--and that one was restored. So far I have been unable to get it through their heads that the backup to be restored must be from BEFORE the incident.

The plugin that happens to have been deleted happens to be the one that handles forms:
The forms to contact any of our officers or committee chairs, People seeking that get a blank page.
The forms to pay dues--and the Second Notice was sent out just a few days before this event. Members seeking that get a blank page. 
And about eight other functions get a blank page.
[Later...]
The website has been restored to status of a week ago. I am trying to remember all the changes I had made.

Are there any formal guidelines regarding withholding permissions for backup and restore that I can show to the national coordinator?

Sorry, just had to get this off my chest.
<WHINE>
"	lmarks
1	59631	Despite using Update URI Plugin header, WP still tries to fetch the Update notes from WP org		Plugins	5.8	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2023-10-16T05:17:22Z	2026-10-02T15:09:53Z	"Despite setting a [https://make.wordpress.org/core/2021/06/29/introducing-update-uri-plugin-header-in-wordpress-5-8/ Plugin Header] Update URI directive WP still will try to fetch the Update information (changelog) from a WP Org plugin.

And when filtering the url with [https://developer.wordpress.org/reference/hooks/update_plugins_hostname/ update_plugins_{hostname}] , it will simply load an instance of the ""Add new plugin"" screen in the ThickBox loaded when clicking ""View version vx.x.x details""

I am quite sure I do not miss anything, as I read through all the (undocumented) new feature announcements.

This is a minimal approach you need to replicate the issue:

- Update plugin header directive to use `Update URI: https://domain.tld`
- Either hook into `update_plugins_{hostname}` and pass a version higher than your currently installed one, **or**
- Hook into `pre_set_site_transient_update_plugins` and pass a new `new_version` higher than your currently installed one

Of course make sure you do actually have a remote update to be shown.
==> You could also just edit the database entry of `_site_transient_update_plugins` to trigger the ""has update"" alert in the plugins list...

All this makes the `Update URI` pretty much dysfunctional (in the sense that it is not really useful at all) and the developer still needs to manually filter the ThickBox content for the ""View update details"" or even for the ""Plugin details"".
And the documentation about all this is either inexistent or very limited (opened a separate issue about that [https://github.com/WordPress/Documentation-Issue-Tracker/issues/1194 here]

IMO, passing a custom Update URI should completely unhook all Callisto the WP Org Api and either not allow to ""view details"" at all, or at least provide some ways to populate that window with custom details (or at least read from the plugin data, which it does not: it reads from remote)."	anonymized_14808221
1	49731	Display embeds in WordPress plugin descriptions		Plugins		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-03-31T03:05:52Z	2025-10-30T04:01:51Z	"The WordPress.org plugin directory [https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php#L573 supports two shortcode embeds] (specifically `[youtube` and `[vimeo`) and [https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php#L1401 several oembed locations].

Most of these embeds appear to return `iframe` elements, which are removed by Core, see [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/plugin-install.php#L533 $plugins_allowedtags].

For example, the Updraft Plus plugin has an embed on the WordPress.org site, but not within the WordPress Add new plugin screen.
If you have Jetpack installed, it appears that it converts the `iframe` into a shortcode and displays that instead.

This was originally reported as #meta2846, see that ticket for an example of the HTML that's stripped by this behaviour."	dd32
1	52829	Getting some code when Update failed plugin		Plugins	5.7	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-03-17T04:55:36Z	2021-03-17T17:51:16Z	"Hi,

When i ma trying to update plugin then got script return n the page. So it is WordPress issue?

You can see mentioned screenshot."	sumitsingh
1	61610	Hidding the dependency notice + prevent the plugin deactivation only on some case.		Plugins	6.5	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-07-09T17:43:51Z	2024-07-18T14:48:00Z	"WordPress 6.5 introduced th depedency fature for plugins which is a great feature.
For the context, i'm working at the Polylang helpdesk and all the day i'm helping our customers to fix behaviours between pllugins and Polylang.
Most of the plugins for WooCommerce are starting to declare their depedency to WooCommerce nas this is great. In my case, I've several of them, not activated but installed and I've permanently this notice: https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/class-wp-plugin-dependencies.php#L372.
=> I think we should be able to find a solution to hide the notice in some cases.

I also can't deactivate WooCommerce in bulk because these plugins are installed (not activated) and I think there's something not logical because for the really first time on WordPress (I think) that a plugin has an action on another one without being activated.

=> I think we should prevent the deactivation on WooCommerce only if a dependent plugin is activated. 

I took WooCommerce as an example because it's a major plugin with lots of plugins in its ecosystem."	sebastienserre
1	43077	Misleading error when updating plugins		Plugins	4.9.1	normal	normal	Awaiting Review	defect (bug)	new		2018-01-12T10:22:04Z	2018-09-16T03:45:16Z	"Hi,

I am in /wp-admin/plugins.php

A plugin has a new update and I click ""Update now"". After a few seconds I get ""'''Update Failed: Could not copy file.'''""

However, when I refresh the page and I see that the plugin was updated.

After a few tests I realise that if there are Core Translation Updates and they fail(for example due to bad filesystem permissions), you will get the error mentioned above even though the plugin was successfully updated.

I would like to comment on two things:

a) The translations shouldn't get updated with any plugin update. I might NOT want to update the translations. By doing it in the background without asking me that's bad. 

b) The error message shown is irrelevant to the plugin update and might cause confusion to some admins who might try to reinstall manually a plugin or do any other changes which might eventually end up breaking a site for nothing.

Thanks in advance for your time."	SGURYGF
1	66299	Multisite: Sub-site redirects to the network Add Plugins and Add Themes screens drop the query string		Plugins	trunk	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-13T12:38:16Z	2026-10-13T13:05:48Z	"On a multisite sub-site, wp-admin/plugin-install.php and wp-admin/theme-install.php redirect to their network admin counterparts but drop the query string. Any link to these screens with query args from a sub-site loses its search, tab, or preview.

This is visible on Settings > Connectors (wp-admin/options-connectors.php), where the ""search the plugin directory"" link opens the network Add Plugins screen without the search, so the connector results are not shown.

=== Steps to reproduce ===
 1. On a multisite install, log in as a super admin.
 2. Go to a sub-site's Settings > Connectors.
 3. Click ""search the plugin directory"" in the help text below the connectors list.

Expected: wp-admin/network/plugin-install.php?s=connector&tab=search&type=tag
Actual: wp-admin/network/plugin-install.php

On a single site the link works as expected.

The same happens with the Add Themes screen. As a super admin, open a sub-site URL such as:
 * /site2/wp-admin/theme-install.php?search=twenty
 * /site2/wp-admin/theme-install.php?theme=twentytwentyfive

Expected: wp-admin/network/theme-install.php?search=twenty (or ?theme=twentytwentyfive)
Actual: wp-admin/network/theme-install.php?browse=popular

The ?browse=popular is not the original query surviving the redirect. It is added by the theme installer's JS router, which falls back to the Popular tab when no query is present.

=== Cause ===
The Connectors link is relative (plugin-install.php?s=connector&tab=search&type=tag), so on a sub-site it resolves to the site's wp-admin/plugin-install.php. That file redirects to the network admin and drops the query string:

{{{
if ( is_multisite() && ! is_network_admin() ) {
	wp_redirect( network_admin_url( 'plugin-install.php' ) );
	exit;
}
}}}

wp-admin/theme-install.php has the same redirect:

{{{
if ( is_multisite() && ! is_network_admin() ) {
	wp_redirect( network_admin_url( 'theme-install.php' ) );
	exit;
}
}}}

=== Proposed fix ===
Keep the query string when redirecting in both wp-admin/plugin-install.php and wp-admin/theme-install.php. This fixes the Connectors link and any other link to these screens with query args from a sub-site, including links added by plugins and themes.
"	hbhalodia
1	53979	Non-valid plugins should be removed from the 'active_plugins' option		Plugins		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-08-23T14:00:49Z	2022-01-03T20:57:22Z	"**Issue as found**

Failed auto-update of WooCommerce resulted in an empty `/woocommerce/` plugin folder, but `woocommerce/woocommerce.php` remaining inside the `active_plugins` option resulted in a dependent plugin throwing a fatal error, since its internal checks against the `active_plugins` option still returned true.

To recreate this issue, a default install with WooCommerce & WooCommerce Subscriptions plugins installed is enough. Empty the contents of the `/woocommerce/` plugin folder to simulate a failed auto-update, there will now be a fatal error on front-end and admin.

''Note'' that whilst I ran into this issue with WooCommerce & WooCommerce Subscriptons, this issue could theoretically happen with any plugin and extension plugin combination that uses the `active_plugins` option to determine if dependency has been met.

**Outline**

Plugins which fail to validate inside `wp_get_active_and_valid_plugins()`  should also be removed from the `active_plugins` option to avoid further clashes and potential fatal errors. Currently the function excludes the plugins from loading, but leaves the plugin key inside the `active_plugins` option which can be problematic if dependant plugins are checking that option for the parent plugin key.

Expected outcome would be that a plugin which fails to validate for any reason should also be removed from the `active plugins` option.

**Proposed solution**

If a plugin fails to validate it should not just be excluded from loading at runtime, but also its key removed from the `active_plugins` option to avoid loading attempts in the future, and further issues caused by dependant plugins. I have tested a patch within `wp_get_active_and_valid_plugins()` which resolves this, should this bug report be accepted.

**Acknowledgement of plugin specific issue**

I appreciate that at first glance this appears like a plugin specific issue in that without the parent / dependant plugin structure using `active_plugins` as a dependency check then there would be no issue here. 

However given the ubiquitous nature of something like WooCommerce and their [https://docs.woocommerce.com/document/create-a-plugin/] developer docs pointing toward using `active_plugins` as a dependency check, it's clear that WordPress users getting a WSoD from a failed plugin update could be avoided with a core patch.
"	tommusrhodus
1	39794	Notice if update_plugins cap is off	SergeyBiryukov	Plugins		normal	normal	Future Release	defect (bug)	reviewing	has-patch	2017-02-06T13:03:56Z	2017-05-18T15:01:43Z	"In wp-admin/includes/update.php:378 i have condition:

{{{#!php
<?php
if ( ! current_user_can( 'update_plugins' ) ) {
}}}

then in plugins lists I should see notice ""There is a new version of %1$s available. View version %4$s details""

But I don't see notice.

I think that problem is in wp_plugin_update_rows() function "	sebastian.pisula
1	44696	Plugin Deactivation Page Jump		Plugins	4.9.7	normal	minor	Awaiting Review	defect (bug)	new		2018-08-01T21:22:58Z	2020-06-22T16:58:18Z	"This isn't so much a bug as it is a gripe with the plugin management interface that has long annoyed me.

If you have a number of plugins installed and activated: 

1. Scroll down the list of plugins 
2. Deactivate a plugin near the bottom
3. Page refresh jumps back to top of the list

Often, I am deactivating and reactivating plugins for testing or development purposes, or to check for potential conflicts. Having the page jump back to the top after deactivation, then having to scroll down the list of plugins and find the same or similarly named plugin again tends to waste a lot of my time.

I think it would be much more convenient to load an anchor link to the deactivated plugin upon the page refresh, rather than sending the user back to the top of the list with every deactivation.

Just a suggestion that would help me, and I'm sure many others. 

Thanks! :D"	organicthemes
1	65759	Plugin Dependencies: a network-activated dependency is counted as inactive, disabling the Activate button		Plugins	6.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-07-29T22:07:03Z	2026-11-04T16:13:03Z	"On multisite, when a plugin's dependency is network-activated, `wp_get_plugin_action_button()` counts that dependency as inactive and renders a disabled Activate button. The dependency is genuinely active, and `is_plugin_active()` reports it as such.

== Cause ==

In `wp-admin/includes/plugin-install.php`, `wp_get_plugin_action_button()` builds its dependency check from the current site's option only:

{{{#!php
$active_plugins = get_option( 'active_plugins', array() );
}}}

Network-activated plugins are stored in the `active_sitewide_plugins` site option and never appear in a subsite's `active_plugins`, so `$all_plugin_dependencies_active` evaluates to false.

Note the inconsistency within the same function: the target plugin's own state is resolved with `is_plugin_active()`, which does consult `is_plugin_active_for_network()`. The AJAX validation path in `WP_Plugin_Dependencies` also handles network activation correctly. The gap is limited to the dependency count used for this button.

== Steps to reproduce ==

1. Set up a multisite network.
2. Network-activate a plugin (reproduced with both WooCommerce and Classic Editor).
3. As a Super Admin, view a plugin that declares `Requires Plugins:` naming that dependency.

Observed state on a subsite:

{{{
is_plugin_active( 'classic-editor/classic-editor.php' )  = true
in_array( ..., get_option( 'active_plugins' ) )          = false
isset( get_site_option( 'active_sitewide_plugins' )[...] ) = true
}}}

Rendered output:

{{{
<button type=""button"" class=""button button-compact button-disabled""
        disabled=""disabled"">Activate</button>
}}}

In Network Admin with WooCommerce network-activated, the plugin card shows ""Additional plugins are required"", lists WooCommerce as the requirement, and disables the Network Activate button. Screenshot attached.

== Expected ==

A dependency that is active network-wide should satisfy the requirement, and the Activate button should be enabled.

== Impact ==

On multisite, a plugin whose dependency is already satisfied network-wide cannot be activated from this screen. Present since Plugin Dependencies shipped in 6.5, and still present in 7.1-beta4.

Related: #63942 fixed the sibling issue where the row action label read ""Deactivate"" instead of ""Network Deactivate"" for network-active plugins with dependencies. This is the same network-activation blind spot in the action button's dependency calculation.

Tested on 7.1-beta4, PHP 7.4, subdirectory multisite with 11 sites."	courane01
1	59402	Plugin cannot be uninstalled if uninstall crashes		Plugins	2.7	normal	normal	Future Release	defect (bug)	assigned	changes-requested	2023-09-20T06:59:37Z	2025-05-19T23:54:34Z	"If a plugin register the ""register_uninstall_hook"" conditionally (e.g. only on activation,...) a plugin cannot be uninstalled anymore if it exits (e.g. timeout,...) during uninstall.

This is because the uninstall file/callback is removed from the option before the actual uninstall happens: 
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/plugin.php#L1253
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/plugin.php#L1269

"	kkmuffme
1	29539	Plugin viewer not displaying video tutorials.		Plugins	4.0	normal	normal	Future Release	defect (bug)	new	dev-feedback	2014-09-05T16:19:32Z	2017-05-05T20:25:17Z	"In the WordPress 4.0 plugin page viewer, my video tutorials for my plugins are not displaying. 

[[Image(http://www.redeemerdanceacademy.ca/wp-content/uploads/2014/09/Ticket.png)]]"	kidsguide
1	34052	Plugin-Install/Update Sections		Plugins	4.3.1	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2015-09-28T08:16:47Z	2023-05-13T19:05:15Z	"Hey WP-Community,

I've found out that some plugins producing ""Cannot use object of type stdClass as array"" fatal errors when there is an update-notification and one clicks on the ""View version x.x.x details"" link.

After the plugin information window pops up WordPress is not able to read the sections. In most cases this is caused by external plugins, I guess. However I was confisued to see that WordPress is doing a type casting already but not everywhere needed.

Everything starts in the file [https://core.trac.wordpress.org/browser/tags/4.3.1/src/wp-admin/includes/plugin-install.php#L395 wp-admin/includes/plugin-install.php on line 395]. In this line the parameter ""sections"" from $api object is casted as an array. However a line later it's assumed that the parameter is an array already. Here is the code snippet:

{{{
foreach ( (array) $api->sections as $section_name => $content ) {
	$api->sections[$section_name] = wp_kses( $content, $plugins_allowedtags );
}
}}}

The same problem appears on [https://core.trac.wordpress.org/browser/tags/4.3.1/src/wp-admin/includes/plugin-install.php#L408 line 408].

Wouldn't it be better to cast the parameter before everything happends? This would also avoid to type-cast the same parameter over and over again, see attached patchfile.

{{{
$api->sections = (array) $api->sections;
}}}"	floriansimeth
1	59375	"Plugin_Upgrader assumption causes incorrect ""Activate Plugin"" link after plugin installation resulting in ""The plugin does not have a valid header"" error"		Plugins	6.3.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-09-17T13:13:19Z	2023-09-18T02:02:16Z	"''Observed in WordPress 6.3.1''

== Issue Summary ==

The ""Activate Plugin"" link after installing a new plugin is inconsistent with the ""Activate"" link generated in the Installed Plugins listing table.

The ""Activate Plugin"" link on the plugin installation screen makes assumptions that produces an incorrect link which results in the user encountering the ""The plugin does not have a valid header"" error.

== Steps to Reproduce ==

1. Create a plugin that contains another plugin.
   1.a. The contained plugin's basename should be lexicographically less than the wrapper plugin which you are actually trying to install. For example, ""hello-pro/hello-pro.php"" is the main plugin which contains ""hello-pro/hello/hello.php"" as a base/dependency plugin.
2. Add the plugin via wp-admin > Plugins > Add New and upload the plugin zip file.
3. Upon successful installation, click the ""Activate Plugin"" link.
   3.a. Notice that the ""?action=activate&plugin=..."" plugin value is wrong as it refers to the contained plugin's main file within the wrapper plugin.
4. Observe the wp_die() error screen which says ""The plugin does not have a valid header""

== Problematic Source Code ==

The incorrect ""Activate Plugin"" link is generated here:
https://github.com/WordPress/WordPress/blob/3546f04e160fbd31b46ba70b583d0a1d9fe1d80b/wp-admin/includes/class-plugin-installer-skin.php#L115

The offending assumption is here:
https://github.com/WordPress/WordPress/blob/3546f04e160fbd31b46ba70b583d0a1d9fe1d80b/wp-admin/includes/class-plugin-upgrader.php#L546

Caused by an arbitrary situation here:
https://github.com/WordPress/WordPress/blob/3546f04e160fbd31b46ba70b583d0a1d9fe1d80b/wp-admin/includes/plugin.php#L348

=== Explanation ===

The ""Activate Plugin"" link on the ""Installing plugin from uploaded file"" screen in wp-admin uses the least lexicographic plugin basename discovered within the plugin's files. This is an arbitrary situation which can result in the incorrect plugin basename being referenced for activation, which ultimately results in the user experiencing an error screen.

== Desired Solution ==

The ""Activate Plugin"" link after adding a new plugin and the ""Activate"" link in the installed plugin's table row actions should match. The ""Activate"" link in the plugins listing table is preferred as it refers to the correct plugin basename for activation."	michelleblanchette
1	63882	Plugins: Preflight activation to avoid WSOD when plugin code uses syntax incompatible with PHP runtime		Plugins	3.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-08-26T17:35:58Z	2026-10-30T09:26:00Z	"Problem
-------
Activating a plugin whose code is valid only on newer PHP versions (for example, using `false` as a return type in PHP 8.3) on a site running an older PHP version (e.g. PHP 8.0) can produce a fatal parse error. Because the plugin can already be persisted as ""active"" before compatibility is verified, the site can end up in a broken/white-screen state that requires DB or filesystem access to recover.

Steps to reproduce
------------------
1. On a site running PHP 8.0, install a plugin whose main file uses syntax valid in PHP 8.3 (e.g., `function foo(): false {}`).
2. Attempt to activate the plugin via wp-admin → Plugins → Activate.
3. The site will display a fatal parse error and the plugin will be in the active_plugins list, causing further loads to attempt to include it.

Expected
--------
Plugin activation should perform a preflight check and not persist a plugin as active if its main file produces a fatal/parsing error. A failed activation should abort and leave the active_plugins option unchanged.

Proposed solution
-----------------
Before updating `active_plugins`, preflight-load the plugin main file (sandboxed). If loading produces a fatal error (parse or otherwise), abort activation and show the error without saving the plugin as active. Implementation changes are proposed in:
- `src/wp-admin/includes/plugin.php` (inside `activate_plugin()`)
- Unit tests added in `tests/phpunit/tests/admin/includesPlugin.php`

Patch/PR
-------
A PR is available on GitHub and this ticket will include the patch. Please see linked PR for details.

Environment tested
------------------
- WordPress: <trunk>
- PHP: 8.3 (plugin syntax that causes repro)
- OS: Windows 11
- Browser: Google Chrome
"	codad5
1	59109	Prevent plugins from creating admin accounts		Plugins	6.3	normal	normal	Awaiting Review	defect (bug)	new	close	2023-08-15T13:32:51Z	2023-08-15T16:38:19Z	"Honestly someone needs to see the sense in this. I'm pretty confident if you petitioned the worldwide wordpress community everyone would want this fixed regardless of it being self hosted or wordpress.com this is a flaw in the current wordpress.

I have given you the email to describe the issue it explains fully. This flaw needs to be fixed.

(13:14:10) James: Regardless of whether it's open source or not WordPress needs to be secure
(13:14:23) James: People. Business, even enterprise use your product
(13:14:59) James: There must be a way for WordPress to prevent any plugin from creating a admin account surely?
(13:15:21) James: And only allow WordPress admin to do it
(13:15:46) James: That would eliminate the flaw
(13:15:54) James: And actually make it secure
(13:16:57) James: I don't get how all these minds working on wordpress don't get this is important
(13:17:55) Happiness Engineer: Part of the open source spirit is that everything is open and available to change for everybody. 

After downloading the software you can do with it whatever you want, this is what's also appealing for a lot of developers and users.
(13:18:19) James: What you basically telling me is this flaw is OK because wordpress is open source? It's not OK?
(13:18:28) Happiness Engineer: Suggestions to improve the software can be made using a tool called Trac
https://core.trac.wordpress.org/
(13:19:46) James: Can you send this email to me please
(13:19:54) James: I will post this message there
(13:20:13) Happiness Engineer: You will receive a transcript of this conversation after we close i.
(13:20:25) James: OK thanks let's close it
(13:23:41) Happiness Engineer: Ok, no problem. 
Feel free to pop back in if there is anything else we can help you with.

Conclusion...

Honestly think of this from a critical point of view, this is a Flaw, that should be able to be fixed so that Plugins cannot make admin accounts and only Admin can make admin accounts.

I'm not a coder, and I do not have the foggiest how this would be done, but I hope it can be done, because if you surveyed everyone who uses wordpress I think everyone would feel safer with this implemented."	tspnet
1	58057	Replace loose comparison operator in plugins.php		Plugins	6.3	normal	normal	Awaiting Review	defect (bug)	new	changes-requested	2023-04-02T10:36:41Z	2023-04-02T13:13:18Z	The code is using a loose comparison operator (==) instead of a strict comparison operator (===). The difference between these operators is that a strict comparison checks for both value and data type, while a loose comparison only checks for value. This can lead to unexpected behavior and potential security vulnerabilities in the code.	sharif200
1	61797	Sometimes show Critical error when I click “plugins” Manu		Plugins	6.7	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-07-31T16:22:30Z	2025-08-15T11:44:50Z	"Hello Team,
 I'll need to see the screenshots you mentioned. Please upload the screenshots showing the critical error message when you click the ""Plugins"" menu in your WordPress admin dashboard. This will help in identifying the potential cause and providing a suitable solution.  WordPress version (6.7-alpha-58576-src).

Here, I have provided its screenshots:
[[Image(https://ibb.co/pnCKr2n)]]
Thanks,"	Subrata Deb Nath
1	52218	WordPress Multisite 5.5.3 All Plugins set have Auto-Updates Disabled, but they Updated themselves anyway		Plugins	5.5.3	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-01-04T18:44:30Z	2025-08-26T07:41:12Z	"Running a WordPress Multisite Installation on Version 5.5.3 at the time of the issue.
All plugins have Auto-Updates DISABLED (I like to run them only when I have time available to troubleshoot in case something goes wrong.)
However, on December 14, 2020 (coincidentally at the same time as the big Google outage) - All 14 of my plugins that had updates available automatically updated themselves, even though I had all auto-updates disabled. This caused my site to get overloaded and go down, which was a big issue since google was also down and made it hard to communicate.

I have since updated to WordPress 5.6, and run other updates manually (core and themes), but I cannot figure out why the plugins auto-updated themselves. I suspect it could be a multisite issue. Some plugins are network activated and others are only activated on one site. The core and themes did NOT auto-update only the plugins updated themselves.

I am very nervous that it could happen again and cause downtime. I need to be able to plan ahead and control the update timing to occur on a slow time of day. Not sure if others with multisite installations have experienced the same.

Thanks!"	wellesleyps
1	53255	WordPress multisite allows you to delete plugins which are active on some subdomains		Plugins	4.6	normal	critical	Awaiting Review	defect (bug)	reopened	has-patch	2021-05-21T22:40:52Z	2026-06-05T09:03:46Z	"Hello,

I remember in the past, WordPress was not allowing you to delete a plugin that is active at least on one website. "	denisflorin197
1	42637	Wrong button text for plugin installation failed!		Plugins		normal	normal	Awaiting Review	defect (bug)	new	close	2017-11-20T07:42:07Z	2026-01-23T09:07:22Z	"Button text should be `Installation Failed!` instead of `Update Failed!` if plugin installation failed.

Check below gif:
Latest version: http://bsf.io/yola3
After applied patch: http://bsf.io/rblas"	Mahesh901122
1	63078	plugins_api() Default Argument Issue: 'downloaded' Not Set to True		Plugins	6.7.2	normal	minor	Awaiting Review	defect (bug)	new	dev-feedback	2025-03-08T21:47:28Z	2025-03-24T00:44:26Z	"The plugins_api() function has default arguments; among them, the downloaded field is supposed to be true by default. However, it is not.


{{{
plugins_api('plugin_information', ['active_installs' => true]);
}}}
"	wpessential
1	55101	pre_set_site_transient_update_plugins was called from deactivated plugin while uninstall.		Plugins	5.9	normal	normal	Awaiting Review	defect (bug)	new		2022-02-07T08:59:01Z	2024-08-19T06:19:03Z	"I have this sample plugin.

{{{#!php
<?php
/**
* Plugin Name: A test
*/


class ATest
{
    public function check()
    {
        error_log('pre_set_site_transient_update_plugins hook was called on ' . date('Y-m-d H:i:s'));
    }
    
    public function hooks()
    {
        add_filter ('pre_set_site_transient_update_plugins', [$this, 'check'], 10, 2);
        register_uninstall_hook(__FILE__, [__CLASS__, 'uninstall']);
        add_action('init', [$this, 'init']);
    }
    
    public function init()
    {
        error_log('init hook was called on ' . date('Y-m-d H:i:s'));
    }
    
    public function run()
    {
        $this->hooks();
    }
    
    static public function uninstall()
    {
        error_log('uninstall method was called on ' . date('Y-m-d H:i:s'));
    }
}


$ATest = new \ATest();
$ATest->run();
}}}

When I click on delete plugin (the plugin is already deactivated), the `pre_set_site_transient_update_plugins` hook was called.

To reproduce.
1. Copy and paste the sample code above to new plugin file. For example test.php
2. Go to your WordPress > admin > plugins.
3. Activate this plugin.
4. Go to your DB, delete `_site_transient_update_plugins` option name in `options` table to make sure that this hook will be call next time.
5. Reload admin plugins page. This hook will be called as normal process because plugin is activated. The error log will be write to **wp-contents/debug.log** file.
6. Deactive this plugin.
7. Maybe try to reload plugins admin page again. The hook will not called from this plugin, no error log were write. This is correct.
8. Click on delete this plugin.
9. The error log were write because this hook is called while it is on uninstall process. This is incorrect!! It should not be called.

WordPress 6.0-alpha-52682"	okvee
1	47977	"some of the typo mistakes in plugin menu & update related small correction in ""bulk action selector top"""		Plugins		normal	normal	Awaiting Review	defect (bug)	new		2019-09-05T08:29:20Z	2019-09-05T09:29:46Z	"Steps to reproduce behaviors: 

Issue 1: 
1. There are 3 inactive plugins which show under an Active tab.
2. Now I made the ""Classic Editor"" plugin deactivate. 
3. it should be shown under ""Recently deactivate"" tab. (we need to change tab name) 

Issue 2: 
1. in plugin menu, we should use one label for the nonactive plugin ( deactivated or inactive). in somewhere it shows deactivate and somewhere it shows inactive. 
2. Also, need to change in ""Bulk Actions"" dropbox menu.

Issue 3: 
1. When all plugins are updated then there is no need to display ""Update action"" in ""Bulk Actions"" dropbox menu because it confuses the person OR There should display some proper message.


Screenshots: 
[[Image(https://www.dropbox.com/s/9h4yh6dlo7xe4em/plugin%20menu.png?dl=0)]] --- issue 1
[[Image(https://www.dropbox.com/sh/oyixvjhdf92lpit/AAB8XIHD68YeSmCMvJ6w9cC-a?dl=0)]] --- Issue 2


"	sonali86
1	64024	wp_die() status code Plugins component updates (parent ticket: #64009)		Plugins		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-09-22T16:24:04Z	2026-10-30T09:39:34Z	"If you have come here directly, please refer back to the parent ticket here: [https://core.trac.wordpress.org/ticket/64009 #64009]

This ticket is regarding the `wp_die()` function calls within the Media component and will cover the following locations. Please note links were correct at the time of testing and writing this up, but line numbers may have changed slightly:

|| **Filepath** || **Line Number** || **Context** || **Status Code** || **New Code** || **Code Meaning** ||
|| src/wp-admin/includes/plugin-install.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/plugin-install.php#L538 538] || Error: is_wp_error( plugins_api() ;) || 500 || 503 || Service Unavailable ||
|| src/wp-admin/plugin-editor.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/plugin-editor.php#L18 18] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/plugin-editor.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/plugin-editor.php#L121 121] || Missing: file || 500 || 404 || Not found ||
|| src/wp-admin/plugin-editor.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/plugin-editor.php#L128 128] || Error: invalid file type || 500 || 415 || Unsupported Media Type ||
|| src/wp-admin/plugins.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/plugins.php#L13 13] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/plugins.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/plugins.php#L50 50] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/plugins.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/plugins.php#L94 94] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/plugins.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/plugins.php#L178 178] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/plugins.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/plugins.php#L201 201] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/plugins.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/plugins.php#L228 228] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/plugins.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/plugins.php#L271 271] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/plugins.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/plugins.php#L451 451] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/plugins.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/plugins.php#L469 469] || User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/plugins.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/plugins.php#L473 473] || Error: is multisite, wrong admin || 500 || 404 || Not found ||
|| src/wp-admin/plugin-install.php || [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/plugin-install.php#L19 19] || User Permissions: does not have access || 500 || 403 || Forbidden ||

There are however the following function calls I have not touched as I felt they were already valid with their current status code:

|| **Filepath** || **Line Number** || **Status Code** ||
|| src/wp-admin/plugins.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/plugins.php#L67 67]	|| 500 ||
|| src/wp-admin/plugins.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/plugins.php#L185 185]	|| 500 ||
|| src/wp-admin/plugins.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/plugins.php#L459 459]	|| 500 ||
|| src/wp-admin/plugins.php || [https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-admin/plugins.php#L473 473]	|| 500 ||"	callumbw95
1	47669	'Was' helping verb looks wrong in plugin deletion message		Plugins	5.2.2	normal	minor	Awaiting Review	enhancement	new		2019-07-09T13:29:13Z	2024-04-09T23:11:31Z	"**Content UI ISSUE:** 'Was' helping verbs looks wrong in plugin tab.
removed helping verbs 'was' from validation alert comes after deleted the plugin

**Snapshot:** https://www.screencast.com/t/ZIzFEqsgh
Video URL: https://www.screencast.com/t/0O2l59eXosj



"	jadhavravindra
1	40804	Add notice in Plugins list for plugins not compatible with the current WordPress version		Plugins	4.7.5	normal	normal	Awaiting Review	enhancement	new	has-patch	2017-05-18T17:27:03Z	2026-06-03T11:38:20Z	Showing last plugin update date in plugins list and compatibility with current wordpress version may quickly give a look if any plugins are no more up to date by his creator.	xsweb
1	64424	Add “Download” action for locally installed plugins in Plugins admin screen		Plugins		normal	normal	Awaiting Review	enhancement	new	needs-unit-tests	2025-12-17T10:23:10Z	2026-01-19T14:07:36Z	"Problem:
WordPress currently allows downloading plugins only from wordpress.org.
There is no way to download a ZIP of locally installed plugins (custom, premium,
or modified plugins) directly from the Plugins admin screen.
 
This is inconvenient for site owners and developers who need to:
- Back up plugins
- Transfer plugins between environments
- Share custom plugins
- Download modified versions
 
Proposed solution:
Add a ""Download"" row action to the Plugins admin list table that allows users
with update_plugins capability to download a ZIP archive of the locally
installed plugin.
 
Behavior:
- Works for both folder-based and single-file plugins
- Generates ZIP from the local plugin directory/file
- Uses nonces and capability checks
- Available only to users with update_plugins capability
- Does not affect plugin update or delete logic
 
Implementation:
- Adds a row action in WP_Plugins_List_Table::single_row()
- Handles download via a secure admin action in wp-admin/plugins.php
- Uses existing core ZIP utilities (PclZip)
- No UI changes outside the Plugins list table
 
Why core:
This functionality cannot be reliably implemented in a plugin or theme,
as it requires:
- Access to internal plugin list table rendering
- Secure handling before admin output
- Consistent behavior across all plugin types
 
I am happy to provide a patch and iterate based on feedback."	iflairwebtechnologies
1	61619	Display compatibility metadata for Dependent plugins		Plugins		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2024-07-10T10:24:08Z	2025-07-06T06:48:01Z	"Recently, WordPress rolled out plugin dependencies to make the process of installing/activating addons (Dependents) and the plugins they rely on (Dependencies) consistent and easy to use.

It would be helpful to take that one step further and display the following metadata on a Dependent plugin’s page in the WordPress repository and in the WordPress Dashboard:

1. Required minimum [Dependency Plugin] version: x.x.x (indicating the minimum version of the Dependency plugin that should be used.

2. Tested up to [Dependency Plugin] version: x.x.x (indicating the latest version of the Dependency plugin that the Dependent plugin has been tested with)

Displaying this additional compatibility metadata aims to help users make more informed decisions when selecting plugins, and to encourage and recognize dependent plugin developers for making efforts to be compatible with the latest Dependency plugin which can lead to a better experience for plugin users overall.

Additionally, it would be beneficial to have an API that allows Dependency plugins to gather data about the minimum versions and latest tested versions being used by Dependent plugins.
"	beccawitz
1	54860	Enhancement for more accurate doing_action, doing_filter		Plugins		normal	minor	Awaiting Review	enhancement	new		2022-01-20T00:34:06Z	2022-01-20T06:18:22Z	"**Problem**

The `doing_action` function returns true if the currently active hook is a filter, not an action.

Since all actions are filters, in a legacy and technical sense, this is OK for general purposes - we want to know if a hook is in progress, whether it's a filter or an action.

But since there are two functions, `doing_action` and `doing_filter`, there is an implication that they should do something different. As of v4.7, the WP_Hook class does make an internal distinction that can be helpful elsewhere if surfaced.

**Remedy**

I suggest that going forward these functions should accurately reflect whether a __filter__ is being applied (from `apply_filters`, value being returned) **OR** whether an __action__ is being executed (from `do_action`, no value returned).

----

**Verification of this condition/claim:**

[https://core.trac.wordpress.org/browser/tags/5.8.3/src/wp-includes/class-wp-hook.php?rev=52509#L52 Here] (ref current 5.8.3 source) in WP_Hook we verify that `$doing_action = false`, defaulting to the state of ""doing"" a filter. This was implemented in v4.7.0.

[https://core.trac.wordpress.org/browser/tags/5.8.3/src/wp-includes/class-wp-hook.php?rev=52509#L325 Here] in WP_Hook we also see that `do_action` sets the value to true before passing on to the common `apply_filters` function.

{{{#!php
public function do_action( $args ) {
   $this->doing_action = true;
   $this->apply_filters( '', $args );
   ...
}}}

[https://core.trac.wordpress.org/browser/tags/5.8.3/src/wp-includes/plugin.php#L590 In plugin.php] we see `doing_action` (implemented in v3.9.0) just wraps/returns `doing_filter`.

{{{#!php
function doing_action( $hook_name = null ) {
   return doing_filter( $hook_name );
}
}}}

The doing_filter function just tells us if we are processing a hook - it does not look into the hook to determine what kind of hook it is, action or filter. In short, this specific code just hasn't been enhanced yet in-line with WP_Hook.

{{{#!php
function doing_filter( $hook_name = null ) {
  global $wp_current_filter;
  if ( null === $hook_name ) {
     return ! empty( $wp_current_filter );
  }
  return in_array( $hook_name, $wp_current_filter, true );
}
}}}

----

**Proposed Enhancement Implementation !#1**

While I'm a newcomer to WP internals I believe it would be more accurate to do something like this:

{{{#!php
function doing_filter( $hook_name = null ) {
  global $wp_filter, $wp_current_filter;

  if ( null === $hook_name ) {
     if(empty( $wp_current_filter )) {
       return false;
     }
     return $wp_filter[current_filter()]->isFilter();
  }

  if($hook_name == current_filter()) {
    return $wp_filter[$hook_name]->isFilter();
  }
}
}}}

In WP_Hook, add the getter `isFilter()` to return the opposite value of $doing_action. Add another getter, `isAction()` that simply returns $doing_action. This encapsulation eliminates all confusion outside of WP_Hook about how it works.

The `doing_action` function cannot simply negate the value from `doing_filter`. If $wp_current_filter is empty, both functions might return false. The new code for `doing_action` needs to be like `doing_filter`, but returning the value of isAction() for the `current_filter()`.

To avoid breaking legacy code, perhaps new functions should be created, and the 'doing' functions can get a long-term deprecation.

- executing_action
- executing_filter
- executing_hook

The new executing_hook function should return the OR of executing_action() with executing_filter() - this is what developers should use to replace the current functions for code that doesn't actually care what kind of hook is being processed.

(Also consider the prefix 'processing_'.)

----

**Proposed Enhancement Implementation !#2**

Another way to implement this would be to add a second parameter to the existing functions, essentially a Boolean to invoke higher accuracy, with a default of false. Then the new functions above can be internal, there's no API change, no deprecation, etc.

----

**Bug or Feature?**

I suggest this is an enhancement to address a v4.7 oversight. As noted above, this isn't a bug, since internally an action **is** a filter, so the result of `doing_action` is technically valid when a __filter__ is active. This enhancement can be stated as an introduction of more nuanced functionality, where the current functions are essentially synonymous with a less refined ""doing_hook"".

Thanks for consideration."	Starbuck
1	63621	Enhancement: Ensure Hello Dolly passess the Plugin Check (PCP)		Plugins		normal	minor	Awaiting Review	enhancement	new	has-patch	2025-06-25T14:56:18Z	2025-06-25T17:02:04Z	"This ticket details several issues found in the Hello Dolly plugin, along with proposed solutions to ensure it passes the Plugin Check (PCP).

See screenshot when I tested it using Plugin Check.  [[Image(https://p-d0fk22zg.t2.n0.cdn.zight.com/items/rRuK26b5/31fc4cc1-3155-45de-ac75-9fa87ab08024.jpeg?v=0c4a4d20044fa74c204a8783b372032e)]]
And here is the screenshot after I applied the changes below: [[Image(https://p-d0fk22zg.t2.n0.cdn.zight.com/items/12umW1ox/bd3ceef7-17f2-41f8-b0e8-9a9a2a0066aa.jpeg?v=50214d3df4832c47804f560104ec7a8a)]]


**Issue 1: Missing Text Domain in __() Function**

Problem: The __() function on line 67 is missing the required $domain parameter for internationalization, which is a PCP requirement.

Fix: Add 'hello-dolly' as the text domain.



{{{
// Original:
__( 'Quote from Hello Dolly song, by Jerry Herman:' ),
}}}


{{{

// Fixed:
__( 'Quote from Hello Dolly song, by Jerry Herman:', 'hello-dolly' ),

}}}


**Issue 2: Missing License Information in Plugin Header**

Problem: The plugin header is missing ""License"" and ""License URI"" information, which is a standard PCP check.



Fix: Add the following lines to the plugin header, ideally before Author: Matt Mullenweg.


{{{
/*
Plugin Name: Hello Dolly
Plugin URI: http://wordpress.org/plugins/hello-dolly/
Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page.
Author: Matt Mullenweg
Version: 1.7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Author URI: http://ma.tt/
*/
}}}



**Issue 3: Unescaped Output**

Problem: On lines 67, 68, and 69, output is not being properly escaped, leading to potential Cross-Site Scripting (XSS) vulnerabilities. This is a critical security check in PCP.

Fix: Apply appropriate escaping functions:

For the translatable string on line 67, use esc_html__().

For $lang on line 68 (used within an HTML attribute), use esc_attr().

For $chosen on line 69 (plain text output), use esc_html().




{{{

// Original:
printf(
    '<p id=""dolly""><span class=""screen-reader-text"">%s </span><span dir=""ltr""%s>%s</span></p>',
    __( 'Quote from Hello Dolly song, by Jerry Herman:' ), // Line 67
    $lang, // Line 68
    $chosen // Line 69
);
}}}


{{{
// Fixed:
printf(
    '<p id=""dolly""><span class=""screen-reader-text"">%s </span><span dir=""ltr""%s>%s</span></p>',
    esc_html__( 'Quote from Hello Dolly song, by Jerry Herman:', 'hello-dolly' ), // Line 67
    esc_attr( $lang ), // Line 68
    esc_html( $chosen ) // Line 69
);
}}}



**Issue 4: Discouraged mt_rand() Function**

Problem: On line 54, mt_rand() is used, which is discouraged in WordPress for consistency and better randomness, as highlighted by PCP.

Fix: Replace mt_rand() with wp_rand().




{{{
// Original:
return wptexturize( $lyrics[ mt_rand( 0, count( $lyrics ) - 1 ) ] );
}}}

{{{
// Fixed:
return wptexturize( $lyrics[ wp_rand( 0, count( $lyrics ) - 1 ) ] );
}}}
"	jhimross
1	61211	"List minimum version required when showing plugins that are ""Incompatible with your version of WordPress"""		Plugins		low	normal	Awaiting Review	enhancement	new	has-patch	2024-05-14T13:28:14Z	2026-08-18T02:32:59Z	"I happened to be testing something using WordPress 5.9.9 and went to add a plugin, in the example screenshot Gutenberg is the example here, and saw the standard ""This plugin doesn’t work with your version of WordPress. Please update WordPress."" and ""Incompatible with your version of WordPress"" error messaging on the plugin card (I'll leave aside the fact that double messaging here is probably not necessary).

The item that would be helpful alongside the error messaging is the minimum version of the plugin that is required.  In the case of the Gutenberg example I have to click ""More Details"" to get the plugin modal overlay showing that at the current day Gutenberg ""Requires WordPress Version: 6.4 or higher"".  Having that 6.4 version noted within the plugin card would be helpful context.  Perhaps updating the first error message to something more like ""This plugin doesn’t work with your version of WordPress. Please update WordPress 6.4 or newer."" would be a more helpful error message."	JeffPaul
1	53628	Maintenance Free Updates - Zero downtime		Plugins	5.8	normal	normal	Awaiting Review	enhancement	new		2021-07-08T17:23:07Z	2022-03-18T16:21:51Z	"I have been testing an approach to allow updates to be deployed to themes and plugins with Zero downtime (no maintenance page needed).

It seems that WP if fairly sympathetic to the approach and I am keen to see if there are any red flags - and also the opportunity to get the approach into core so the world can benefit from it if!

The approach is as follows:

- When a plugin update is available - install the plugin into a directory that is namespaced with the plugin name AND version (as per the meta) e.g. /wp-content/plugins/plugin-v1.3.2 

At this point WP will see two instances of the plugin - but it treats them as unique and the initial plugin remains active

- Activate the plugin - via a database update - modify the wp_options row to set the new plugin to be active.  It is critical that this is done as a database update - so that it is an atomic action - allowing WP to continue to process requests as the switch over takes place.

The old plugin can remain in place to support roll back and then deleted 

Rollback is simply a question of restoring the active plugins options field back to the original settings


Pros / Cons
- I have tested this manually and WP seems happy - both locally and on hosted environments.  As far as WP seems to be concerned it is seeing a new plugin.
- As the plugin directory is now namespaced - all assets in it e.g. css /js will also be cache busted ensuring all assets in your release are updated.
- WP does not currently have a plugin updated event - the activation of the new plugin will simply go live. 
- A ""pre flight"" step could be run on plugin update to check the plugin is well formed and no PHP errors exist - ensuring that it is not possible to activate a faulty plugin
- We have also seen that with our automated plugin updater - it still works to deploy the new plugin as the location of the plugin deployed in a zip unpacks into a new directory.

We are looking to build a WP_CLI plugin to deal with the activation - it works with plugin active / plugin deactivate - but this is not atomic so there would be a period of time where the plugin would be missing so we are replacing it with a transaction.

I am very keen to get feedback on this approach - as we are going to start using it on our sites.  


"	billybigpotatoes
1	55449	"More filter options for searching theme's & plugins - ""Last updated"" / ""Test with my WP version""."		Plugins		normal	normal	Awaiting Review	enhancement	new		2022-03-23T11:30:36Z	2022-03-23T11:30:36Z	"When I'm looking in WP to install a new theme/plugin I find it quite annoying that I'm unable to filter my search results a bit more. 

When I'm looking for a new plugin for a certain goal, I would love to filter on two things. 

1) If the plugin is tested or not (and working) on my current WP version.
2) If the plugin got a recent update. (Maybe this might be a setting the user can choose. Since, for some is recent 1 year and for others it's 1 month.)

I think these filter options, with maybe checkmarks ...? could fit nicely on where I placed green in the attached screenshot. 
"	NekoJonez
1	39414	New param in plugin_dir_path		Plugins		normal	normal	Awaiting Review	enhancement	new		2016-12-28T09:02:45Z	2019-03-15T01:17:40Z	"New param - `path`. Function with this param return full path to file. Examples:

{{{#!php
<?php
var_dump(plugin_dir_path(__FILE__));
var_dump(plugin_dir_path(__FILE__, 'assets/test.png'));
}}}



{{{
string(26) ""\wp-content\plugins\myplugin/""
string(41) ""\wp-content\plugins\myplugin/assets/test.png""
}}}

"	sebastian.pisula
1	47221	Plugin Search Menu (Enhancement Suggestion)		Plugins		normal	normal	Awaiting Review	enhancement	new		2019-05-10T20:35:21Z	2019-05-10T20:35:21Z	"Hello dear developers,

when I want to install new plugins, and I search for a popular keyword (within the WP CMS), I can look through thousands of plugins. But what makes the search more tiresome and frustrating **is that the search results include all ages of plugins**, also those that are not recommended for my WordPress version, because they have not been updated, some of them for a VERY LONG TIME. It would be a relieve for me and other WP users if the dear WP developers could create a check box or something similar that will refine from the beginning the search results by a criteria of **actuality**, so that only those plugins appear that can be handled safely by my current WP version. It could be turned off by more experienced WP developers, so I think it should be optional (checkbox?), but still recommended.

Thank you very much."	ibkarpowski
1	65130	Plugin search (term) in wp-admin lacks normalization, causing fragile keyword matching		Plugins		normal	normal	Awaiting Review	enhancement	new		2026-04-26T05:53:56Z	2026-05-04T09:48:37Z	"== Problem ==

The plugin search box in wp-admin (`Plugins > Add New`) produces unreliable results when searching by keyword (term). A user searching for ""WP Multibyte Patch"" gets very different results depending on minor variations in their query:

||= Query       =||= Result   =||
|| `multibyte`   || Found      ||
|| `multi byte`  || Not found  ||
|| `multi`       || Not found  ||
|| `multi patch` || Not found  ||

The root cause is that the search term is passed to the WordPress.org Plugin API with no normalization whatsoever.

== Root cause (confirmed in source) ==

In `wp-admin/includes/class-wp-plugin-install-list-table.php`, the `prepare_items()` method handles the search tab as follows:

{{{
// Line 161-169
$type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term';
$term = isset( $_REQUEST['s'] )    ? wp_unslash( $_REQUEST['s'] )    : '';

switch ( $type ) {
    case 'tag':
        $args['tag'] = sanitize_title_with_dashes( $term ); // sanitized
        break;
    case 'term':
        $args['search'] = $term; // ← NO processing at all
        break;
    case 'author':
        $args['author'] = $term; // no processing
        break;
}
}}}

Note the inconsistency: the `tag` type applies `sanitize_title_with_dashes()`, which strips spaces and normalizes the string, while `term` (keyword search) receives NO processing. This asymmetry appears unintentional.

The raw `$args` is then passed directly to `plugins_api( 'query_plugins', $args )`, which forwards the search string as-is to `https://api.wordpress.org/plugins/info/1.2/`.

== Proposed fix ==

The fix is a single line change in `class-wp-plugin-install-list-table.php`:

{{{
// Before (line 169):
$args['search'] = $term;

// After:
$args['search'] = preg_replace( '/\s+/', '', $term );
}}}

This strips whitespace between words before sending the query to the API, so ""multi byte"" becomes ""multibyte"" — matching the plugin slug and name as indexed by WordPress.org.

A more robust approach could also apply `sanitize_text_field()` for consistency with the `tag` type, and potentially send a secondary query with the original term to merge results.

== Files affected ==

* `wp-admin/includes/class-wp-plugin-install-list-table.php` — line 169 (primary fix)
* `wp-admin/includes/plugin-install.php` — `plugins_api()` (no change needed; normalization should happen before this call)

== Note on server-side improvements ==

Deeper fuzzy search improvements (stemming, partial matching, relevance ranking) would require changes on the Meta/Plugin Directory side (`api.wordpress.org`). This ticket focuses solely on the low-risk, one-line client-side normalization that can ship independently."	369work
1	64143	Plugin search box lacks margin		Plugins		normal	normal	Awaiting Review	enhancement	reopened	changes-requested	2025-10-23T04:16:11Z	2026-07-25T01:20:06Z	"The UI appears fine with the default theme or when WooCommerce is inactive, as there’s no additional menu item under “Search Plugins.” However, when WooCommerce is activated, it adds a new menu item called “WooCommerce Marketplace.” After activation, the plugin search interface looks cluttered and less professional.

https://prnt.sc/w5wj3PTzhfar"	jilani53
1	42773	Plugin/Theme editor does not return sufficient information when loopback request fails		Plugins	4.9	normal	normal	Awaiting Review	enhancement	new		2017-12-01T23:46:46Z	2017-12-01T23:46:46Z	"The sandbox feature of the theme/plugin editor in 4.9 is a step in the right direction.  Unfortunately there are many situations where the loopback request fails and there is no indication back to the user why that happened.  The cURL/WP_Error response is just tossed away and a generic message is sent.  Will attach a patch that at least returns the error message back to the user.

Additional improvements could be made, but I don't have the time to implement them:
Have a loopback test run before the file is saved to at least be sure that is available (save the result in a transient with a 60 sec ttl)
If that loopback fails, pop up a notice that the sandboxing feature is unavailable but have a checkbox to allow the user to force the edit to save.
"	jamesgol
1	59342	Plugins: Provide notification of testing/compatability with current version of WP in plugin/update list		Plugins		normal	normal	Awaiting Review	enhancement	new		2023-09-14T00:15:58Z	2025-10-13T11:19:40Z	"An enhancement suggestion from the Support Forums
https://wordpress.org/support/topic/idea-plugin-status-preview-before-wordpress-update/

  The menu for installing/updating plugins could show if a plugin is compatible with the current installed WordPress version. A similar page which just shows the activated (and maybe installed) plugins and the compatibility to the new wordpress version would be nice.

  It would also be nice if update-core.php automatically analyze the contents of that page. If every plugins seems to be compatible the update runs. If not everything reports to be compatible there could be a warning with a list of the entries which can cause problems. So at this point it is on your decision to continue or to abort."	jordesign
1	33741	Remove references to my-hacks.php and the hack_file option	jorbin	Plugins	4.3	normal	normal	Awaiting Review	enhancement	reopened	has-patch	2015-09-05T15:01:22Z	2017-08-03T14:18:52Z	"According to the documentation https://codex.wordpress.org/Hacking_WordPress my-hacks.php was deprecated in v1.5 and removed in v2.8

So the code in wp_get_active_and_valid_plugins() is no longer necessary
and can be deleted along with mentions of my-hacks and hack_file anywhere else in the code. "	bobbingwide
1	61921	Require plugin name should be taken from plugin header instead of readme name		Plugins	6.6.1	normal	normal	Awaiting Review	enhancement	new		2024-08-25T04:45:27Z	2025-01-28T12:59:34Z	"Hello team,

It looks too congested if the readme plugin name is picked in the plugins table. Using the plugin header name will be more convenient and consistent.


== Current: https://prnt.sc/PZkYXa-Z3vWn


== Proposed: https://prnt.sc/u-VLaKs4aFpY

Thank you"	wpwax
1	65365	Revert #60495 (Add a filter in get_views() in class-wp-plugins-list-table) because of abuse		Plugins	7.0	normal	normal	Awaiting Review	enhancement	new		2026-05-28T12:24:51Z	2026-05-28T12:43:18Z	"Allowing custom statuses to be added to wp-admin/plugins.php via the plugins_list and plugins_list_status_text filters is becoming a source of abuse by plugin authors.

Fake statuses are being created as a way to place the plugin author's name on the filters list: https://snipboard.io/Q47l3R.jpg

I believe this will be increasingly used, and the important ""Active, Inactive, ..."" filter links list will become cluttered with nonsensical links.

Enrico Battochi and I already proposed creating a proper filter by the plugin author to reduce the urge to use the plugins_list filter, but I do not believe this will prevent abuse of this filter: https://core.trac.wordpress.org/ticket/65359

More info:
- https://x.com/TheCre8tiveDiva/status/2059449429560557719
- https://wordpress.org/support/topic/remove-your-filter-on-the-plugins-list-in-wp-admin/
- https://x.com/MarcoAlmeidaPT/status/2059685162456064422"	webdados
1	64795	Search for plugin authors should also consider their display name		Plugins	6.9.1	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2026-03-04T17:03:17Z	2026-03-09T05:48:16Z	"When searching for a plugin author in the WordPress backend, you currently have to enter their author slug. Their display name used in the plugin directory is not found. This can be difficult for users who are not aware of the difference, as they may not be able to find plugins by a specific author.

**Examples:**
* Searching for ""Matt Mullenweg"" (as displayed on the Hello Dolly plugin page [https://wordpress.org/plugins/hello-dolly/]) returns no results. You have to search for ""Matt"" to get results.
* I first noticed this with ""dreihochzwo"", whose slug is ""tmconnect"". Searching for ""dreihochzwo"" returns no results; only searching for ""tmconnect"" returns all of his plugins.

One would expect the search to use either the display name alone or both together.
"	threadi
1	59616	Sort files in theme/plugin files tree		Plugins		normal	normal	Awaiting Review	enhancement	new	has-patch	2023-10-13T15:28:33Z	2023-11-07T14:01:55Z	"Its a fairly trivial change to make the files alphabetically sortable fort both the theme and plugin file editors.
I know the file editor is never recommended to be used and is better off disabled but lets at least make it easier on the eyes?"	pross
1	54259	The function deactivate_plugins should run only in the backend		Plugins		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-10-13T21:47:44Z	2025-06-05T11:54:43Z	"Hello. 

I think the function deactivate_plugins (https://developer.wordpress.org/reference/functions/deactivate_plugins/) should run only in the backend, never on the frontend.
Many plugin authors abuse this function to deactivate their plugin when it depends on another plugin that is inactive. If they don't check if the page is visited on the backend this function may cause serious issues in some situations.
If the presence of the ""parent"" plugin is not checked properly, by allowing this function on the frontend, you may have some plugins that are not intentionally disabled.

Here is an example to clarify what I mean.

We have plugin B that depends on plugin A.

In the code of the main file of plugin B it's written something like this:

{{{#!php
<?php
$plugin_B = plugin_basename( __FILE__ );
$plugin_A = 'plugin-A/plugin-A.php';

if( !in_array( $plugin_A,get_option( 'active_plugins' ) ){
   deactivate_plugins( $plugin_B )
}

}}}



The option 'active_plugins' can be filtered by a mu-plugin that runs before plugin B. This means that if on a specific page the filter of 'active_plugins' returns a set of plugins without plugin A, on frontend the code above will deactivate plugin B if that specific page is visited. And it will do it globally, not just filtering the option 'active_plugins', because the function deactivate_plugins will save the option 'active_plugins' with the wrong set of active plugins.


I think the option 'active_plugins' should never be saved after visiting the frontend, but this is what the function deactivate_plugins may do in a situation like that one described in the example above.


I would just add the line if( !is_admin() ) return;


{{{
function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
   if( !is_admin() ) return;
   //....
}
}}}


"	giuse
1	58393	The plugin's screenshots can be display in a image slider.		Plugins		normal	normal	Awaiting Review	enhancement	new		2023-05-24T12:13:25Z	2023-05-25T07:42:17Z	"I'm going through the screenshot section of plugin details and the plugin's screenshots section seems kind of not user-friendly to me. Currently, users are clicking on each screenshot image separately to view each image and each image is opening in a new tab!

[[Image(https://prnt.sc/Vh-lC1_n01Zn)]] 

Video: [https://screenpal.com/watch/c0hZXNVA5xY]

We can make the user experience better if we use an image slider for these screenshots.

Need everyone's kind feedback on this UI/UX issue."	nadimcse
1	62543	URGENT FEATURE: Plugin Updates Section Needs To Show Warning Message For Newer Version Plugins		Plugins	6.7.1	normal	critical	Awaiting Review	enhancement	new	has-patch	2024-11-23T04:12:59Z	2026-07-06T08:58:27Z	"We urgently need the Dashboard > updates section to visibly show any advanced important warning messages that come with big plugin/theme updates. This info is typically found in Plugins > Installed Plugins section (see screenshot below):

[https://prnt.sc/2u4V2C3Jx47l]

But when I am managing 100s of websites and I need to update them, I am not going to Plugins > Installed Plugins.

The default main plugin/theme update arena happens on Dashboard > Updates page (see screenshot below)

[https://prnt.sc/5PqD7oEZts9d
]

Notice, on this page, there is no warning message for Brizy.

Please enhance WordPress to include such messages in this section as well!

Thank you!
Joe
"	rebornhairppp
1	40156	Warning for invalid hook callback is not very useful		Plugins	0.71	normal	normal	Awaiting Review	enhancement	new		2017-03-14T23:07:39Z	2017-03-15T08:38:54Z	"If you add a hook with an uncallable callback, an error like `Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'not_a_function' not found or invalid function name in` is shown.

This is technically correct, but not useful. When I say useful, I don't think it is useful to the following user profiles:

1) Non-technical user seeing errors. A non-developer might no what a WordPress hook is, but not how it works internally. Therefore they are not likely to understand this error is related to a hook. They are not given good information, and might be missing a clue as to who to ask for support (plugin or theme developer, host, etc.)

2) New developer. A developer new to WordPress might not understand yet what a hook is or that a missing callback generates this type of error. A more clear error will help guide their googling for the error and/ or help them find the issue in the code.
3) Experienced WordPress developer. When I see this error, I assume there is a non-callabale hook callback. But `call_user_func()` has other uses so it might be misleading to me.

I think it would be way more helpful if the error triggered was something like `Hook $hook_name could not call $callback` or `The callback function $hook, registered for $hook_name is not callabale`

"	Shelob9
1	39772	add ajax functionality to switching tabs and pagination in plugins		Plugins	4.8	normal	normal	Awaiting Review	enhancement	new		2017-02-02T22:06:48Z	2017-02-02T22:06:48Z	Since we have the cool ajax search plugin functionality, maybe we add the ajax for the tabs on the add plugin page as same as with the pagination of the results.	m1tk00
1	54978	recreate response plugins_api		Plugins	5.8.3	normal	minor	Awaiting Review	enhancement	new		2022-01-28T15:13:58Z	2022-01-28T20:17:02Z	"recreate plugins_api response using plugin_information to load a custom list of plugin install since query_plugins does not get a custom list of plugins, for example send a list of plugins to display and not as a general query like list of recommended plugins

in file: \wordpress\wp-admin\includes\class-wp-plugin-install-list-table.php

[[Image(https://user-images.githubusercontent.com/37667605/151275086-0027172d-6948-4602-b924-1071831dfa63.png)]]"	hhklik
1	50560	"show ""recently deleted"" plugins - a safer option than ""inactive plugins"""		Plugins		normal	normal	Awaiting Review	enhancement	new		2020-07-04T17:58:54Z	2020-07-07T15:28:57Z	"== **The REQUEST:**

**Please show recently removed plugins within /wp-admin/plugins.php**

== **The STORY:**

You may notice the title is unfamiliar to you because such a thing does NOT exist within wordpress.

One of the reasons why people like me **do NOT remove inactive plugins** is because there is no way to remember the plugin once deleted.

So i keep it.

Now, even ""Site Health Status"" shows **""remove inactive plugins"" for security reasons**.

[[Image(https://i.imgur.com/TuF1roA.jpg)]]

If i do that, i will have to **take notes manually** and links of that awesome file manager or image compressor plugin i found and want to keep.

Wordpress does NOT show the plugins that were used in the past (deleted).

Now, **if wordpress WOULD show**, i would not have to keep it inactive in order to ""keep"" it to remember, because i might not use the plugin all the time, such as a file manager or image compressor plugin, hence the reason for inactivation because they are seldomly used, BUT if i delete it, i would have to go on a search to find it again.


== **The SOLUTION:**
(Here is a way how wordpress would make it more delightful for users to delete inactive plugins)..
Simply show the recently removed plugins with the **NAME** and **URL** to the plugin itself as a simple line within **/wp-admin/plugins.php** somewhere.

[[Image(https://i.imgur.com/rviZF3w.jpg)]]

This way i will gladly delete the plugin right away and not keep it inactive, the settings of the plugin is obviously an entire different story."	mikulabc
1	52048	the functions activate_plugin and deactivate_plugin need validation		Plugins	3.0	normal	normal	Awaiting Review	enhancement	assigned		2020-12-12T18:00:07Z	2020-12-30T22:25:02Z	"The function activate_plugin https://core.trac.wordpress.org/browser/tags/5.6/src/wp-admin/includes/plugin.php#L633 would need the validation of the array of plugins before saving it.

For normal installations, the current plugins are taken by

$current   = get_option( 'active_plugins', array() );



For multisites they are taken by:
get_site_option( 'active_sitewide_plugins', array() );



Both the result of get_option( 'active_plugins', array() ) and get_site_option( 'active_sitewide_plugins', array() ) can be filtered by plugins, so you can't know if $current is a valid array of plugins.



At least, $current should be unique, so I would add 

$current = array_unique( $current );

Then I would also check if the plugin files exist before saving the array of active plugins.


I would do the same validation for the function deactivate_plugins https://core.trac.wordpress.org/browser/tags/5.6/src/wp-admin/includes/plugin.php#L633"	giuse
1	49626	Allow plugin developers to opt-out their plugin from auto updates		Plugins		normal	normal	Awaiting Review	feature request	new		2020-03-12T01:36:43Z	2020-07-06T12:56:31Z	"I would like to request a filter for plugin developers to be able to opt their plugin out from the automatic updates completely.

For example in {{{wp_autoupdates_add_plugins_autoupdates_column_content}}} we could add something like

{{{#!php
<?php
if ( !apply_filters('wp_autoupdates_enabled_for_plugin', TRUE, $plugin_file)) {
    return;
}
}}}

This way a developer of a plugin that for some reason should always be updated manually, can hide this option from the admin for his own good.
"	JaworskiMatt
1	65210	Change Plugin's review paradigm		Plugins		normal	normal	Awaiting Review	feature request	new		2026-05-08T17:35:07Z	2026-05-08T17:35:07Z	"The current volume of plugin submissions is reaching unsustainable levels, with plugins remaining the primary vector for site instability and security vulnerabilities. To optimize resource allocation, there could be a paradigm shift from manual pre-review to a community-driven sandbox model:

Sandbox Environment: New plugins are uploaded to an isolated sandbox where users can test functionality without site risk.

Community Validation: Implement a robust voting and evaluation system. Only plugins that reach a specific community threshold proceed to a formal ""Special Review"" for inclusion in the main repository.

Soft Transition: Immediately transition to a ""Not Reviewed"" status for new entries, marked with a prominent alert symbol, allowing the review team to reallocate focus toward core security and architecture.

This model shifts the burden of initial vetting to the community while maintaining high standards for the most popular tools."	ridesirat
1	62332	Display last update on plugins page in WordPress backend		Plugins		normal	normal	Awaiting Review	feature request	new	has-patch	2024-11-01T16:22:29Z	2025-04-05T03:19:37Z	"Hi,

I think it would be awesome that WordPress displayed the date a plugin was last updated in order to manage plugins that are not updated over versions and over several months.

I know that now a notice will appear when a plugin is classified as ""not maintained"" but I think many plugins take a time before they are classified as such. That is why this proposal of last plugin update.

Regards"	tonikasch
1	61091	Search, Bookmark, and Folder Function In WordPress Dashboard		Plugins		normal	normal	Awaiting Review	feature request	new		2024-04-27T15:59:53Z	2024-11-23T04:16:20Z	"These features have been longggg overdue. 

1. **Why dont we have a simple search box at the top to search for anything**?

I have 40 plus plugins. Do you realize how long it takes to find a plugin I am looking for without a searchability?

2. **Also, for frequently used plugins, I would like an option to pin them at the top as a favorite or bookmark tab**. So at the top left above or below dashboard there's a new title called favorites/bookmarks. I click that and I can see all my favorite pinned items such as plugins, themes, settings, etc.

3. **Last thing, we need the ability to drag and drop plugin menu items into a folder**. For example, I may have more than one contact form like contact form 7, ninajorms, quforms, etc.

It would be nice to have the ability to create a folder called Contact Forms and store all my contact form plugins there. Same with woocommerce. There is like 10 different woocommerce plugins I have installed (abandoned checkout, sidecart, thank you page, etc.) If I can store all these distractions inside of a folder that would be a BIG GAME CHANGER!

Thank you!
"	rebornhairppp
1	63735	[Collaboration Inquiry] A Proposal to Discuss Improving Theme Compatibility for the ActivityPub Plugin		Plugins		normal	normal	Awaiting Review	feature request	new	dev-feedback	2025-07-22T05:42:16Z	2025-07-22T06:49:56Z	"> **Goal:** To confirm whether collaboration is possible with the WordPress Core Theme Team on improving theme compatibility for the `Automattic/wordpress-activitypub` plugin.

Honestly, I’m aware that this ticket may not be the ideal venue for this kind of conversation, and that the way I’m approaching collaboration might not follow the usual or most appropriate channels. So I’m proceeding with caution.

That said, I also believe that the line between the broader WordPress community and Automattic’s development work is often blurry, and that collaboration between the two—while sometimes unfamiliar or ambiguous—is both possible and meaningful when done with care.

The reason I decided to open this ticket is because the Fediverse, like AI, represents an area where WordPress should be preparing itself for emerging digital ecosystems. Even if our current methods aren’t perfect, I feel that raising this issue is justifiable and worthwhile.

---

### ✅ Contextual Relevance Review

- **Background**  
  → This discussion originated in a GitHub issue ([#1975](https://github.com/Automattic/wordpress-activitypub/issues/1975)) regarding the limitations of using the `/author/` page as the federated profile endpoint.  
  → A suggestion was made that improving theme compatibility for this page may require input or collaboration from the Core Theme Team.  
  → This is not just a plugin-level concern—it touches on a broader, structural question: **how should plugins and themes work together to support specific front-end experiences?**

- **Why This Merits Core Theme Team Involvement**  
  → The WCEU 2025 Core Committers meeting included a discussion about the evolving role of themes in WordPress.  
  → This question—how plugins might define and integrate templates with themes—directly connects to that ongoing discussion.

- **Why Documenting It Here Matters**  
  → In line with how decisions are made in the WordPress project, documenting issues in a public, asynchronous space like GitHub or the Make/Core blog allows for broader participation and visibility.

- **Short-Term Goal vs. Long-Term Vision**  
  → **Short-term goal:** Improve theme compatibility for the federated profile page in the ActivityPub plugin.  
  → **Long-term vision:** Possibly create a dedicated core theme for ActivityPub (inspired by prior efforts like the Friends plugin).

---

Hello, Core Theme Team.

I am a volunteer from the WordPress community. I’m writing this post to initiate a conversation based on a discussion that emerged in a GitHub issue for the `Automattic/wordpress-activitypub` plugin [issue](https://github.com/Automattic/wordpress-activitypub/issues/1975). While I am not an engineer on the project, the need for collaboration with the Core Theme team was raised during the discussion, and I wanted to help facilitate that conversation. In the spirit of how decisions are made in the WordPress project, I believe documenting this here is important for asynchronous participation.

---

### The Pain Point We're Trying to Relieve

Currently, the `ActivityPub` plugin uses WordPress's default `/author/` page as the link for a user's federated profile. This approach has clear limitations:

1. **Design Constraints**: On most themes, the `/author/` page is designed as a simple post archive. It is not well-suited for displaying the elements required for a federated profile, such as a detailed bio, follower/following counts, and interaction buttons.
2. **Lack of Extensibility**: Even if the plugin were to add a new, custom profile page, making it fully compatible with the vast ecosystem of classic and block themes is a significant challenge. This can lead to broken layouts or features that don't display correctly, creating a poor user experience.

The core problem is: **How can a plugin implement a front-end page for a specific feature while ensuring maximum compatibility with all themes?**

---

### Why We Believe the Core Theme Team Is the Right Place for This Discussion

This issue goes beyond a single plugin; it touches on fundamental questions about how plugins and themes should interact.

- **Team Expertise**: An effective solution requires a deep understanding of **Full Site Editing (FSE), templates, patterns, and the extensibility of block themes**. This is the specific domain of the Core Theme team.
- **Relevance to Current Discussions**: I saw that the topic **""What role themes have in present day WordPress?""** was discussed in the recent `WCEU 2025 Core Committers Meeting Notes` on the Make/Core blog. This proposal, which explores how themes can better support templates required by plugins, feels like a natural extension of that conversation.
- **Scope of Impact**: The ActivityPub plugin provides a vital bridge connecting WordPress sites to the Fediverse. Its user base is growing, and solving this compatibility issue would enable a better federated experience for a significant number of WordPress users.

---

### Our Goal and Vision

My long-term vision is the potential for a dedicated core theme for ActivityPub, similar to what has been explored for the Friends plugin. However, that is a distant goal.

The immediate, practical goal is much simpler: **to achieve maximum theme compatibility for the ActivityPub plugin's federated profile page, across both classic and block themes.**

---

### Questions and a Proposal for a Path Forward

We are seeking the team's guidance on the best architectural approach to solve this problem.

1. Are there **best practices or recommended patterns** for when a plugin needs a specific template to be seamlessly supported and styled by themes?
2. Could addressing this challenge align with the Core Theme team's priorities? If so, what would be the **best venue to continue this discussion** (e.g., a new Trac ticket, a dedicated Slack channel, a scheduled meeting)?

We would appreciate any feedback or thoughts the team might have on this proposal. Thank you for your time and consideration.

**Relevant Links:**

- GitHub Issue: [Proposal: Do not use the /author/ page as the federated profile link](https://github.com/Automattic/wordpress-activitypub/issues/1975)
- Make/Core Post: [WCEU 2025 Core Committers Meeting Notes](https://make.wordpress.org/core/2025/06/13/wceu-2025-core-committers-meeting-notes/)
"	kimjiwoon
1	41646	activate.php and deactivate.php for Plugins		Plugins	4.8.1	normal	normal	Awaiting Review	feature request	new		2017-08-15T15:01:12Z	2025-04-16T05:47:00Z	"There's currently a file for `uninstall.php` to simplify things. Alternatively, there's also a hook available.

There's hooks for plugin activation and deactivation. However, I think those hooks can be a bit tricky for newbie plugin developers. 

I think by implementing a file for `activate.php` and `deactivate.php` could simply plugin development. 

I'm totally fine using hooks for my own sake, but I just thought it could help simplify plugin development slightly. It might also make things easier on the code review team?"	michael.ecklund
1	34552	Remove default post format setting		Post Formats		normal	normal	Awaiting Review	enhancement	new		2015-11-02T06:16:58Z	2017-04-24T20:01:48Z	"It doesn't matter why, but it seems to me that there isn't any real theme support for post formats (real = post formats are actually displayed in a vastly different way than standard), therefor I doubt anyone actually uses the default post format setting or needs it.

The default should most likely be standard with a filter to override it, I don't think there is a need to anything more complex than that with the way the feature is actually being used."	mark-k
1	39736	Thumbnail src image link to direct large image, cause low page speed		Post Thumbnails		normal	normal	Awaiting Review	defect (bug)	new		2017-01-29T19:38:13Z	2022-03-22T04:33:53Z	"Hi,
i have install wordpress and add some images to my post.. but when i test it on page speed check it returns me bad figures you may check http://bit.ly/2k6lXNw. i have used coped images but google take it as large images. I have searched a lot and find out something.
related images thumbnail src linked with direct image link you may see through source code: [https://postimg.org/image/k71uvbah9/] it is not causing by theme it is causing by wordpress. but i don't know how to fix it"	mcky909
1	56056	Specify a Custom Array of $sizes for `wp_get_attachment_image` to Reduce HTML Bloat		Post Thumbnails		normal	normal	Awaiting Review	enhancement	new	has-patch	2022-06-23T15:44:50Z	2024-06-28T08:39:04Z	"Plugins and the theme can specify multiple thumbnail sizes. Using `wp_get_attachment_image` provides a modern solution to responsive image sizes, however, it does not currently account for reducing the bloat to all the registered thumbnail sizes that are added by plugins / theme.

Therefore a proposal is to allow a custom list of thumbnails to use, this can, for example, be specified as:

{{{#!php
<?php
wp_get_attachment_image(123, [['thumbnail', [1200, 630], 'medium', 'large'], true]);
}}}


Where the `true` is to identify that we want to enable a specified list of thumbnail sizes, and not use all of the thumbnail sizes registered.

It will only loop through the specified `$sizes` that were mentioned in the $sizes parameter.

HTML document size is a large factor in determining if a website is to be bloated or not. Therefore it would be beneficial to allow developers to specify specific thumbnail sizes that are to be used for what it is intended for.

Kind regards,
Michael"	xmic
1	56599	"""All"" view not selected for all relevant views for custom post type"		Posts, Post Types	4.2	normal	trivial	Awaiting Review	defect (bug)	new	has-patch	2022-09-19T10:58:34Z	2026-01-28T15:36:47Z	When the screen options get saved, the parameter `mode=list` gets appended to the URL. For the posts table, the “All” view gets the `.current` HTML class, since `\WP_Posts_List_Table::is_base_request()` returns `true`. For all other post types—including pages—it returns `false`.	alpipego
1	47279	$post object passed to clean_post_cache action can contain outdated values		Posts, Post Types	2.5	normal	normal	Future Release	defect (bug)	new	needs-docs	2019-05-15T14:28:45Z	2025-09-05T09:51:06Z	"This occurs when publishing or deleting a post.

In the `clean_post_cache()` function, `get_post( $post )` is called and assigned to `$post`.

At that moment, the value of the `$post` parameter `post_status` = `draft` if publishing, `publish` if deleting the post.

There is then a call to `wp_cache_delete( $post->ID, 'post_meta' );`, which correctly updates the value of post_status, if you perform another `get_post()` right after.

But, the `$post` object is then passed to the action `clean_post_cache`, with the outdated values instead.

So if someone hooks a function on `clean_post_cache`, and uses the `$post` object passed, it's going to receive incorrect values compared to what would be expected. But if you perform a `get_post()` inside that function, you will get the correct values.

I only tested this with the `post_status` parameter, but this might be affecting others too.

I would expect that the `$post` object passed to the `clean_post_cache` action contains up-to-date values."	tabrisrp
1	35538	"AllPosts page UI: link ""All"" has incorrect color"		Posts, Post Types	4.4.1	normal	trivial	Awaiting Review	defect (bug)	new		2016-01-19T23:15:48Z	2023-07-09T20:45:45Z	"STEPS TO REPRODUCE:
1) Log in (administrator), remove all posts.
2) Create new post. Go to AllPosts page.
3) Remove post to trash by clicking ""Trash"" menu item.
EXPECTED RESULT: ""All (0)"" link color #000
ACTUAL RESULT: ""All (0)"" link color #0073aa"	antonrinas
1	50877	Always sanitize post types' and taxonomies' rewrite arguments	flixos90	Posts, Post Types		normal	normal	Future Release	defect (bug)	assigned	has-patch	2020-08-07T21:42:39Z	2020-08-19T03:41:57Z	"When registering a post type or taxonomy, currently the `$rewrite` argument / property is only sanitized if pretty permalinks are enabled.

While this condition makes sense for whether to add the actual rewrite rules, sanitization itself should not depend on this external factor. Right now, effectively the `$rewrite` property will be invalid for post types and taxonomies when pretty permalinks are not enabled. When changing the permalink structure during a request (e.g. relevant in tests), this may result in PHP warnings, since the `$rewrite` property is expected to be an array, but due to lack of sanitization could still be e.g. a boolean `true`.

Sanitization of rewrite arguments should always happen for post types and taxonomies to ensure integrity of the property."	flixos90
1	60796	An error for page and post without revisions support		Posts, Post Types	6.4	normal	normal	Awaiting Review	defect (bug)	new		2024-03-18T10:03:04Z	2024-04-03T11:08:39Z	"Since **6.4.0** the `$revisions_enabled` argument was added to the arguments array of `register_meta()` function (https://developer.wordpress.org/reference/functions/register_meta/#changelog).

For post and page with disabled revisions support there is an error:

  Error: Function register_meta was called incorrectly. Meta keys cannot enable revisions support unless the object subtype supports revisions. Please see Debugging in WordPress for more information. (This message was added in version 6.4.0.).

In register_block_core_footnotes() function `revisions_enabled` argument is permanently set to true and it's makes this error."	danielpietrasik
1	49109	Array offset access notice problem with `remove_meta_box()` and `add_meta_box()` function.		Posts, Post Types	5.3.2	normal	critical	Awaiting Review	defect (bug)	new		2019-12-31T13:57:29Z	2020-02-26T10:56:19Z	"When I use `remove_meta_box()` function:
{{{#!php
<?php
\remove_meta_box('postcustom', 'post', 'normal');
}}}

The function will set `postcustom` to false, code in /wp-admin/includes/template.php line 1405:
{{{#!php
<?php
$wp_meta_boxes[ $page ][ $context ][ $priority ][ $id ] = false;
}}}

Shall use `unset`, likes: 
{{{#!php
<?php
unset($wp_meta_boxes[ $page ][ $context ][ $priority ][ $id ]);
}}}


So, code in /wp-admin/includes/template.php line 1049~1051:
{{{#!php
<?php
if ( ! isset( $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ] ) ) {
	continue;
}
}}}

The `false` value will be not enter the condition. Likes: 
{{{#!php
<?php
$a = false;
var_dump(isset($a)); // true
}}}

So. array offset access notice shows: `/wp-admin/includes/template.php on line 1078`

Happening on create/edit post page.
"	kmvan
1	55152	Cannot delete post content if the title is empty		Posts, Post Types	2.1	normal	normal	Awaiting Review	defect (bug)	new		2022-02-12T04:54:56Z	2022-02-14T04:07:37Z	"Hi,
I installed WordPress on my new website at [https://openinghours.co.il/]
I've created a custom theme and custom fields and taxonomies for ""post"", in a custom php file, that is called in functions.php.

When I try to test and see if custom fields are saved, I noticed something interesting: when the WordPress default post title (the_title) is empty, and the_content and custom fields are filled, I cannot delete the content that's in ""the_content"" on update or on save draft.

I can delete content from custom fields and it works, but if the content is not empty, I try to delete the content and save draft, the content is still there.

However, after testing, I've found that if ""the_title"" is not empty, I can delete the content that's located in ""the_content"". 

The problem accrues only when ""the_title"" (The default post title) is empty.

I am not sure, but I think it doesn't have any relation to the custom fields. However, I I didn't tested it on a site without custom fields.

I hope that I described it clearly, if you have any questions please ask. "	wpdans
1	59766	Custom post type archive URLs are being resolved in an unexpected way if a page with the same slug exists and the URL's casing doesn't exactly match the custom post type's rewrite slug		Posts, Post Types	6.3.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-10-30T13:34:38Z	2024-01-18T20:19:53Z	"== Steps to reproduce:

- Have a custom post type with an archive slug of `/projects/`
- Have a post with post_type `page` with an identical slug, e.g. ""Projects"", with a slug of ""/projects/""
- Visit ""https://example.com/Projects"" (note the Titlecase spelling here)
- Observe how the request is being resolved to the single page ""Projects"" instead of the (expected) post type archive page, even though the rule for the post type comes first.

== Proposed solution

- I was able to fix this behavior locally by making all archive rewrite rules for custom post types case-insensitive. In `class-wp-post-type.php`, line #658:

{{{#!php
<?php
// ignore the case of the URL
$archive_slug = '(?i)' . $archive_slug;
add_rewrite_rule( ""{$archive_slug}/?$"", ""index.php?post_type=$this->name"", 'top' );
// ...
}}}

"	nonverbla
1	36738	No validation for $post_date_gmt parameter	paulbonneau	Posts, Post Types	3.5	normal	normal	Future Release	defect (bug)	assigned	has-patch	2016-05-03T11:52:59Z	2025-09-12T12:14:44Z	"1) When publishing a post via `wp_insert_post()`and the `$post_date_gmt` parameter has a wrong format it's silently set to `0000-00-00 00:00:00`.

2) If `$post_date` is omitted in the parameter array WP tries to determine it from `$post_date_gmt`. A wrong formatted `$post_date_gmt` leads to a `post_date` of `1970-01-01 00:00:00`.

Just like `$post_date`it should throw an error to give a programmer the right hint for his malfunctioning code.


"	Latz
1	61242	PHP warning when `'taxonomies'` in `register_post_type` is set to `false` instead of `array()`		Posts, Post Types	6.5.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-05-17T20:48:23Z	2024-05-20T11:10:42Z	"It shows this warning everywhere. 


{{{
Warning: Invalid argument supplied for foreach() in /public_html/wp-includes/class-wp-post-type.php on line 753
}}}

"	siddiquesaad
1	51867	Page Parent dropdown is a huge mess		Posts, Post Types	5.0	normal	major	Awaiting Review	defect (bug)	new		2020-11-24T16:14:53Z	2020-11-29T22:20:30Z	"I have seen a few posts (including in this forum) related to this topic, but none seems to exactly address what is going on. Even when I disable all plugins and change to a default theme, the Page Parent dropdown is a huge mess — this is true of two different websites I manage, each of which has hundreds of Pages (plus posts and other custom post types).

The problem is that (a) the Page Parent dropdown lists many pages multiple times (literally some pages will appear three or four times in the dropdown, and it seems to repeat a loop) and (b) not all pages are there. So even though it's showing a few multiple times, some don't appear even once.

The work-around seems to be to create a new page, then return to ""All Pages"" and make the parent relationship in Quick Edit. It works, but it is a tremendous inconvenience."	jamesdonegan
1	11235	"Pages whose ancestors are not all ""published"" cannot be used as parents for other pages."		Posts, Post Types	2.9	normal	normal	Future Release	defect (bug)	new	dev-feedback	2009-11-23T01:04:01Z	2026-02-10T13:06:56Z	Pages with trashed parents cannot be used as parents for other pages (they do not appear on the list).	caesarsgrunt
1	31977	"Ping status of pages changes to ""closed"" in quick edit"	pareshradadiya	Posts, Post Types	4.2	normal	normal	Future Release	defect (bug)	assigned	dev-feedback	2015-04-15T11:14:50Z	2026-08-07T00:30:35Z	"WP version: 4.2-beta4

Every page is created with ping_status set to ""open"". If the page is edited in the ""full"" edit form, the ping_status remains untouched. However, if the page is edited in the quick edit form, the ping_status field is changed to ""closed"" since WP 4.2.

Since pages don't support the ping functionality, I suppose it shouldn't change the field. Maybe ""closed"" is the propper one, but it should be set on the creation.

It makes testing of our plugin a little bit tricky.

Thanks.
Jan"	JanVoracek
1	48512	Post editor can show wrong author, if user role was changed		Posts, Post Types		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2019-11-06T14:29:47Z	2019-11-06T17:23:53Z	"* Go to Add New User. Create a new user who is a Contributor.
* Go to Add New Post. Type any random text as the content. Set the Author (in the dropdown list) to the author you just created. Save the post.
* Go to the user you created, and change their role to ""No role"".
* Go back to Posts, and find the post you created. Edit it.
* Observe that the Author dropdown now shows the wrong author, since the user is no longer eligible to appear in the dropdown list.
* Fortunately, even if you edit and save the post, it does not actually overwrite the correct author with the wrong one. Still, the display is very misleading. A bug in my opinion."	equin0x80
1	40860	"Post that is ""Pending Review"" and Scheduled shows incorrect ""Last Modified"" date in Post Listing"		Posts, Post Types		normal	normal	Future Release	defect (bug)	new	has-patch	2017-05-25T03:21:23Z	2026-06-20T23:03:42Z	"Reproduction steps:

1. Create a new post
2. Schedule the post for a date in the future
3. Set the status to ""Pending Review""
4. Save the post
5. Return to Posts listing
6. Observe that the ""Date"" column has an incorrect ""Last Modified"" flag"	yearginsm
1	46423	Posts on wp-admin page should be ordered by date_gmt and not date		Posts, Post Types		normal	trivial	Awaiting Review	defect (bug)	new		2019-03-05T19:28:23Z	2021-02-08T16:37:24Z	"I believe the dates should be ordered by the absolute value of time (ie, UTC time) instead of by timezone.

To illustrate, 
Current post sequence

> Two [@ UTC 1900 (my timezone is set to New York UTC-5 1300)]
> One [@ UTC 1800 (my timezone is set to UTC 1800)]

Since 1300 is before 1800. Ordered by my `date`
----

Proposed post sequence

> One [@ UTC 1800 (my timezone is set to UTC 1800)]
> Two [@ UTC 1900 (my timezone is set to New York UTC-5 1300)]

Since 1800 is before 1900. Ordered by absolute `date_gmt`."	nickylimjj
1	49969	"Previewing the page designated as ""latest posts"" shows the frontpage"		Posts, Post Types		normal	normal	Future Release	defect (bug)	new	has-patch	2020-04-21T11:32:13Z	2026-09-02T09:14:14Z	"This continues the discussion from https://github.com/WordPress/gutenberg/issues/2409

**The issue**

* Create two pages (let's call them ""My home"" and ""My posts"")
* Go to customizer and set Homepage to be ""My home"" and Posts page to ""My posts""
* Edit ""My posts"" in editor mode
* Press preview
* Confirm you got ""My home"" instead of ""My posts""

**The root cause**

When you click ""Open preview in new tab"" while editing ""My posts"", Gutenberg redirects to a preview URL like this one:

https://mywpsite.com/?page_id=5&preview_id=5&preview_nonce=12bd60d6f4&preview=true

When you visit that URL, WordPress will load the front page instead of the posts page. This is because class-wp-query.php assumes that posts page is also the front page:

https://github.com/WordPress/WordPress/blob/b4373fafe9b87f75bf9d65e808be8049510dff8b/wp-includes/class-wp-query.php#L1032

Then, when rendering a preview, it substitutes the page_id that was requested with the value of get_option( 'page_on_front' ):

https://github.com/WordPress/WordPress/blob/b4373fafe9b87f75bf9d65e808be8049510dff8b/wp-includes/class-wp-query.php#L1904

If I remove the preview parameters and leave only ?page_id=5, it displays the correct page."	zieladam
1	44805	Resurrecting post from trash reverts its slug		Posts, Post Types	4.5	normal	normal	Future Release	defect (bug)	assigned	has-patch	2018-08-16T06:26:13Z	2026-10-24T12:38:16Z	"=== Steps to reproduce

Using the REST API:

* Create a post
* Delete the post (not forced)
* Update the post's slug
* Update the post's status to `publish`

==== Create

`POST wp-json/wp/v2/posts`

{{{#!json
{
  ""status"": ""publish"",
  ""slug"": ""a"",
  ""title"": ""a""
}
}}}

==== Delete

`DELETE wp-json/wp/v2/posts/<id>`

==== Update slug

`POST wp-json/wp/v2/posts/<id>`

{{{#!json
{
  ""slug"": ""foo""
}
}}}

==== Update status

`POST wp-json/wp/v2/posts/<id>`

{{{#!json
{
  ""status"": ""publish""
}
}}}

=== Expected 

Post should be published with a slug of `foo` (the updated value)

=== Actual

Post is published with a slug of `a` (the old value)
"	ajmccluskey
1	57810	Should wp_insert_post() function call 'wp_insert_post' action with 'update' equals true after creating post for the first time.		Posts, Post Types	6.1.1	normal	normal	Awaiting Review	defect (bug)	new		2023-02-26T00:55:07Z	2023-03-12T03:06:30Z	"The wp_insert_post() function calls 'wp_insert_post' action hook with 'update' equals true when creating post for the first time.

Post was created using the Gutenberg editor.

/* $update should only be true when updating post */ 
`do_action( 'wp_insert_post', $post_ID, $post, $update );`


"	zenithcity
1	55638	Undefined property: WP_Post_Type::$post_type		Posts, Post Types	5.9.3	normal	normal	Awaiting Review	defect (bug)	new		2022-04-28T08:38:11Z	2022-05-13T08:48:12Z	"
PHP 8.1.5

PHP Warning: Undefined property: WP_Post_Type::$post_type in wp-includes/post-template.php on line 649"	pienoz
1	54258	WP_Query::is_tax() returns true on custom post type archives (5.8.1)		Posts, Post Types	5.8.1	normal	normal	Awaiting Review	defect (bug)	new		2021-10-13T19:26:11Z	2021-10-19T13:52:35Z	"I was testing the upgrade to 5.8.1 (from 5.7.3) on a copy of my (Lightsail/Bitnami-hosted) live instance and found that after upgrading to 5.8.1, a `post_type=<type>` parameter is added to the URL when I navigate away from a page that displays posts from one of my custom post types. This happens whether or not I update plugins and themes.

E.g. I visit `/photographs`, then click to go to `/quotes`; `post_type=photos` gets added to the URL (i.e. `/quotes/?post_type=photos`) and it continues displaying photographs instead of quotes.

This happens both with my custom post types defined through the CPT plugin and with the ones I've defined in my own code. The parameter is not added when navigating away from standard post results.

Even if the parameter didn't interfere with the website's behavior, it would be a bug, as it's adding unnecessary and unwanted clutter to my URLs, but it does interfere and is a breaking change."	arestelle
1	41857	Walker_PageDropdown doesn't set correct selected value when using value_field		Posts, Post Types	4.8.1	normal	normal	Awaiting Review	defect (bug)	new		2017-09-11T17:16:16Z	2020-07-22T16:55:25Z	"If the ''value_field'' is different from ID, the selected value was not set.

Function Walker_PageDropdown::start_el
{{{
if ( $page->ID == $args['selected'] )
    $output .= ' selected=""selected""';
}}}

See also #32330

"	it4life
1	56364	When I update to 6.0.1 it hides categories, Featured image, Author selection when I want to create a post		Posts, Post Types	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-08-11T13:35:08Z	2022-09-03T14:40:39Z	"Since I updated to v6.0, when I create/edit posts, the Author, Category and Feature Image tabs on the right-hand side have disappeared.
I’ve tried disabling plugins and reactivating plugins to determine if it’s a plugin compatibility issue, but I don’t understand why it would be. But nothing worked.

My user account is a full admin.

After searching, I can see that some people have had the same or similar issue, but their solutions (deactivating plugins etc.) didn’t work for me."	digital2019
1	48622	`editable_slug` filter does not pass the correct value		Posts, Post Types	5.3	normal	normal	Future Release	defect (bug)	new		2019-11-14T05:23:52Z	2019-11-14T15:36:42Z	"''Originally reported in https://github.com/WordPress/gutenberg/issues/15802.''

**Describe the bug**
When using the block editor, the 1st param $post_name passed to the editable_slug filter hook is not the same as the classic editor, which is the expected one.

**To reproduce**
1. Install Classic Editor to switch from block to classic
2. Create a draft post with title ""the post title"" and slug ""this-is-the-slug""
3. Create a muplugin with: add_filter( 'editable_slug', function( $post_name ) { wp_die( $post_name ); } );
4. Refresh your edit page

**Expected behavior**
With the classic editor you should have ""this-is-the-slug""
but when using block editor you have ""the-post-title"", sounds like the post_title sanitize with sanitize_title, it should be the real post_,name like classic is doing."	noisysocks
1	45764	blog page and homepage the same list pages and not posts		Posts, Post Types	5.0.2	normal	minor	Awaiting Review	defect (bug)	reopened	dev-feedback	2018-12-25T11:47:36Z	2019-12-12T19:24:07Z	"Hi

I don't know when this was changed but if you set the same page as blog page aswell as your homepage the website starts listing pages on that blog and home page and not posts.

Why was this changed and when?

Thanks for any advice.
"	BackuPs
1	62366	get_post_states() throws PHP warning		Posts, Post Types	6.7	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-11-09T15:17:47Z	2024-11-19T12:10:39Z	"the `$post` sanity does not check in `get_post_states()`.
this patch can fix bugs like #58932
"	akramipro
1	49478	get_post_type_object has the wrong type of validator for its parameter		Posts, Post Types	5.3.2	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2020-02-19T18:43:03Z	2026-02-01T06:09:18Z	"https://core.trac.wordpress.org/browser/tags/5.3/src/wp-includes/post.php?rev=46727#L1228

get_post_type_object expects a post type as a string as its parameter, however it checks if the parameter is scalar or not and returns null if it is not a number."	kamilkecki
1	48006	post_date not as expected		Posts, Post Types	5.2.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2019-09-09T15:22:29Z	2019-09-17T09:18:04Z	"I have noticed this when scheduling a post.

1) From wp-admin choose Pages.
2) Add new.
3) Change from publish immediately to selecting time and date.
4) Select a date, for example, 2019-09-09 17:00
5) Save the post.
6) Look in the wp_posts table in the database for the post and the post_date column will be something like 2019-09-09 17:00:21

It is not really as expected since you, as a user, are not able to set which second the page should be published you assume it would be at 00. In this case you expect that is is 17:00:00. The problem is that if you have a scheduled crontab that runs every 5 minutes (*/5) it will get missed schedule the first time since the cron will run at 17:00:00 and the publish time of the post is 17:00:21. From my experience most users choose the schedule at top of the hour so we get this missmatch a lot. For us it would be easier if assumed that it is 00 seconds always."	marrank
1	56059	"register_post_type()'s ""description"" argument can't be translated (gettext)"		Posts, Post Types	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-06-24T00:25:17Z	2022-06-25T22:36:35Z	"Calling ''register_post_type'' it is possible to use ''gettext'' to translate the labels of the post type.
However, while the labels do work, the argument ''""description""'' doesn't translate.

{{{#!php
<?php
...
$args['labels'] = array(
	'name' => __('Books', 'text_domain'),
	'singular_name' => __('Book', 'text_domain'),
	'add_new' => 'New Book' );
$args['description'] = esc_html__(""This is a beautiful description for this post type, but sadly it doesn't get translated"", 'text_domain');
$args['has_archive'] = 'books';
...
?>
}}}

I'm rather sure that it's not some mistake of mine, because I checked the ''.po'' and ''.mo'' files multiple times and if I copy and paste that gettext line of code and I echo it anywhere on my website, it gets correctly translated. So it's something about the ''""description""'' parameter."	andreacalligaris
1	64570	when the trash is empty we should load all posts	pbearne	Posts, Post Types		normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2026-01-29T21:55:42Z	2026-01-29T22:09:25Z	Currenty the user is left with emply list after emptying the trash, and this is conffusing	pbearne
1	44752	wp_get_archives() with the parameter limit = 0 generates an error	SergeyBiryukov	Posts, Post Types	1.2	normal	normal	Future Release	defect (bug)	reviewing	has-patch	2018-08-08T08:52:28Z	2019-01-06T17:24:56Z	"Hello.

I'm working on an extension of the `WP_Widget_Archives` class, in which I implement the ability to specify the archive type and the limit of output links. These parameters are then passed to the `wp_get_archives()` function.

It is noticed that if the parameter `limit=0`, then the query to the database turns out to be wrong and the following error is generated:
{{{
[You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '0' at line 1]
SELECT YEAR(post_date) AS `year`, count(ID) as posts FROM wp_posts WHERE post_type = 'post' AND post_status = 'publish' GROUP BY YEAR(post_date) ORDER BY post_date DESC 0
}}}

Of course, I can check this parameter from my side and zero is replaced by an empty string, but it is logical that the function itself does this."	campusboy1987
1	54376	Add `is_post_publicly_viewable` filter		Posts, Post Types		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-11-04T22:33:22Z	2024-10-03T06:45:56Z	"Related to #49628, #54375.

Add a filter to the is_post_publicly_viewable() function to allow theme and plugin developers to override the default value.

In some circumstances a developer may require the checks use different conditions to the default. "	peterwilsoncc
1	59986	Add a filter into the $wp_meta_boxes output loop to provide the ability to change data		Posts, Post Types		normal	normal	Awaiting Review	enhancement	new		2023-11-29T13:52:42Z	2024-05-28T04:50:41Z	"I have a metabox added via plugin that connects a custom post type with users. But I don't like the name of the Meta Box, it obscures the purpose of the box. So, the plugin doesn't have this option, and I have to change global $wp_meta_boxes for the desired effect, which isn't the correct thing to do. Of course, I could write a plugin author plea to add a filter (and it will be the third ""brilliant idea"" from me in two days 🙈), but it is possible to stumble across this need with another plugin as well. This is why I think it is necessary to add the filter to the core.

Related ticket: https://core.trac.wordpress.org/ticket/39969"	oglekler
1	57875	Add password strength meter for password protected content		Posts, Post Types		normal	normal	Future Release	enhancement	new		2023-03-06T20:33:01Z	2024-11-19T14:36:05Z	I think it could be really helpful if the Page Passwords (whenever you want to have a page be password-protected) had a built-in password complexity checker. It's easy for these password-protected pages to have weak security with potentially sensitive information behind them - and I think it would help everyone if it made users create or generate a more complex password for pages (similar to WordPress local user passwords generated). 	paulpleasant
1	66224	Allow remove_post_type_support() to remove individual sub-features		Posts, Post Types		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-10-01T06:56:25Z	2026-11-02T20:09:39Z	"Follow-up to #64156, which lets repeated `add_post_type_support()` calls merge their array arguments instead of overwriting them.

With that in place, `remove_post_type_support()` is the odd one out. It can only remove a feature as a whole. The `editor` feature now has several sub-features (`default-mode`, `notes`, ...), so turning off just one of them means removing the whole feature and registering it again with everything you want to keep:

{{{#!php
<?php
add_post_type_support( 'custom', 'editor', array(
    'default-mode' => 'template-locked',
    'notes'        => true,
) );

// Today: to drop only 'notes'.
remove_post_type_support( 'custom', 'editor' );
add_post_type_support( 'custom', 'editor', array(
    'default-mode' => 'template-locked',
) );
}}}

This was raised by @wildworks on the #64156 PR.

== Proposal

Add an optional third parameter, `$sub_features` (string or array of strings):

{{{#!php
<?php
remove_post_type_support( 'custom', 'editor', 'notes' );
remove_post_type_support( 'custom', 'editor', array( 'notes', 'default-mode' ) );
}}}

* For associative arguments, the given keys are removed regardless of their value.
* For list arguments (e.g. a `post-formats` style feature), matching values are removed and the list is reindexed.
* The feature itself stays supported, even when all of its sub-features are removed.
* If the feature has no array arguments, or isn't registered, nothing happens.
* Without the third parameter, behavior is unchanged and the whole feature is removed.

Checking for individual sub-features in `post_type_supports()` (also brought up on #64156) is left for a separate ticket."	fabiankaegy
1	63600	Enhancement: Add get_pages_args filter to allow full control over get_pages() arguments before parsing in get_pages()	vincent06	Posts, Post Types	6.5	normal	normal	Awaiting Review	enhancement	assigned	needs-docs	2025-06-19T17:23:27Z	2025-11-19T09:18:39Z	"Currently, the get_pages() function provides the get_pages_query_args filter to modify the arguments passed to WP_Query. However, many core variables like child_of, number, parent, offset, and hierarchical are extracted from the original $args array before that filter is applied — meaning they cannot be altered using get_pages_query_args.

This limits extensibility in cases where developers want to programmatically change the pages being queried by modifying the original $args — such as dynamically altering child_of or parent, or injecting a number or offset value.

To resolve this, I propose adding a new filter get_pages_args just before the call to wp_parse_args():

{{{#!php
<?php
$args = apply_filters( 'get_pages_args', $args, $defaults );
$parsed_args = wp_parse_args( $args, $defaults );
}}}

This small addition makes it possible to modify any parameter passed to get_pages() — including those that are later used directly, not via WP_Query.

This approach is:

Non-breaking and backward-compatible.

Consistent with existing WordPress patterns, like the wp_parse_args usage in other core functions.

More intuitive for developers who expect $args to be fully filterable.

Adding get_pages_args brings get_pages() in line with other WordPress functions that allow full control over inputs, and complements get_pages_query_args rather than replacing it."	vincent06
1	51787	Introduce dedicated function that retrieves post object by metadata		Posts, Post Types	5.5.3	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2020-11-16T13:39:13Z	2025-07-16T15:52:48Z	"Just wanted to suggest a function I routinely use when building custom themes that utilize metadata.

{{{#!php
<?php
/**
 * Get post object from metadata.
 *
 * @since 5.5.3
 *
 * @see get_posts()
 *
 * @param string $meta_key   Meta key.
 * @param mixed  $meta_value Meta value.
 * @param string $post_type  Post type slug. Default 'post'.
 *
 * @return WP_Post|bool      Post object if successful. False if not.
 */
function get_post_by_meta( $meta_key = '', $meta_value = '', $post_type = 'post' ) {
    $args = array(
        'post_type'    => $post_type,
        'meta_key'     => $meta_key,
        'meta_value'   => $meta_value,
        'meta_compare' => '=',
    );

    $posts = get_posts( $args );

    if ( ! empty( $posts[0] ) ) {
        return $posts[0];
    }

    return false;
}
}}}
"	DaveyJake
1	35416	List children pages of another (in dashboard)		Posts, Post Types		normal	normal	Awaiting Review	enhancement	new	has-patch	2016-01-12T12:22:30Z	2020-05-30T15:55:08Z	"In Dashboard, in ""ALL POSTS"" page, 
there is available to list POSTS of specific categories..

it is good, if such thing was possible for PAGES,
when i have hundreds of pages, then i want to show only specific page's children pages...

please add this posibility (like url :

`/wp-admin/edit.php?parent=2754&post_status=all..................`"	selnomeria
1	39106	Make hierarchy level indicator text changeable [WP List]		Posts, Post Types	4.6.1	low	minor	Future Release	enhancement	assigned	has-patch	2016-12-06T10:09:08Z	2026-04-09T06:02:55Z	"
In `WP_Posts_List_Table` class, dashes(—) used to indicate the hierarchy level of post item, which is not changeble by any filter, we can add a new filter to replace this string. 



{{{
$pad = str_repeat( '&#8212; ', $this->current_level );
}}}



https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-posts-list-table.php#L918-L919

Source: http://wordpress.stackexchange.com/questions/248405/replace-dashes-before-title-in-page-list"	gk.loveweb
1	49164	Page List Order		Posts, Post Types		normal	major	Awaiting Review	enhancement	new	close	2020-01-10T15:30:24Z	2026-08-29T17:35:23Z	"By default, pages in the WP Page List should default to the last added/edited page.

Currently, the order of pages seems unfathomable.

I have 247 pages and after I have created a new one, I then have to search for it, often by saying show me only pages I created or edited this month.

This is a constant waste of time.

As well as a proper and useful default order, you should be able to set the order you want to see permanently via settings or by being able to save the current set up of the Page List"	jfortune
1	41471	Page dropdown walker must check selected against value field		Posts, Post Types		normal	normal	Future Release	enhancement	new	needs-unit-tests	2017-07-28T03:36:18Z	2025-10-09T14:36:25Z	`Walker_PageDropdown` only checks `selected` with the page `ID` and ignores `value_field` option.	geminorum
1	39439	Should wp_insert_attachment() update GUID		Posts, Post Types	4.8	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-01-02T12:58:08Z	2021-08-06T11:58:02Z	"I have a ""special"" case scenario related to media library attachments.

For the context, I've built a plugin that connects to an external server and sync images stored into the remote server into local WordPress media library. The importer upload files, generate the thumbnails and create a new ""attachment"" post.

Now, an import process is ran everyday, and basically we re-import the remote images into WordPress but in order to avoid duplicates, we're updating existing attachments if exist. Now, during this update process, we only remove the files stored into the `uploads` directory, import the new one with its thumbnails and update the attachment post.

Before doing so, our first approach was to check if an attachment exists, if exists, delete the attachment + its files and then simply create a new attachment. This first approach works but we're having huge ID number into the DB after the import as it generates thousand of new records which we didn't want. So now, only the files are updated, if an attachment post exists, we update its metadata and everything works as expected.

Now the issue/remark we have is that during the update of the attachment post, each time we import the new image file, we set the `guid` property to change and use the new imported file path. But when we check the database table, the `guid` is not updated at all and reflects the path to the image file imported the first time. Looking at source code, during an update, the `guid` is not modified in general as for RSS feeds we need that unique `guid`.

Our question is, is it relevant in this scenario to keep old `guid` property that points to a file that no longer exists? and so should we allow the `guid` to be updated by default in core for the attachment?

If RSS readers need that `guid`, why attachments use the file path and not an attachment page permalink ? Is there another location that uses this `guid` property in place of the meta data for the file path ?
"	jlambe
1	64362	Support for Faux WP_Post Objects		Posts, Post Types	6.9	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2025-12-04T23:45:04Z	2026-05-13T22:39:17Z	"Hello!

This is in reference to a recent Core update to the `WP_Post::get_instance()` method (#63850).

I'm a plugin author who used negative WP_Post IDs and am unfortunately affected by this change. Granted, these are not public plugins but customized frontend portal systems for various clients who don't use WordPress in a traditional manner. I'd like to explain why I think Faux WP_Posts should be supported and hopefully work to find a workaround for this core update.

WordPress endpoints are... obtuse. This is doubly so when I need many endpoints / dynamic endpoints for custom frontend systems. It's multi-step and exhausting. I've personally found it much easier to inject my endpoint rewrites (via filters) and provide WordPress with a faux WP_Post object at the top of load wp so that there's easy / seamless template integration.

I understand there are various hooks for the_content, the_title, document_title_parts and more, but these quickly add up when instead I was previously able to associate these value with the Faux WP_Post and have the theme template functions pull in the endpoint specific values organically. Additionally, having the Faux WP_Post set at a high level (wp) provides additional easy associations when integration with other plugins that may $_POST values when working with custom endpoints or more.

Previously, it was pretty benign since negative numbers still wouldn't end up in the database. The additional queries could be circumvented and prevented. For example, the negative number could be cached preventing the get_row() query.

Would it be feasible to add a hook onto WP_Post::get_instance() for the returned value, verifying that the filtered value is an instance of WP_Post or returning false? Otherwise, are there any other suggestions on how to go about creating a Faux WP_Post object? I really do think there is a use for this seeing as how integrated the WP_Post object is to WordPress Core and template display."	Howdy_McGee
1	40711	WP_Post:get_instance: Update cache if $_post->filter is empty		Posts, Post Types	4.7.4	normal	normal	Awaiting Review	enhancement	new	has-patch	2017-05-10T09:52:07Z	2026-11-02T07:03:53Z	"WP_Post::get_instance always returns raw filtered posts. At least in my tests it gets many hits where a post is already cached, but not filtered. For each hit it calls sanitize_post again.

To improve performance, if a cached post isn't filtered, update the cache after calling sanitize_post.

class-wp-post.php, line 228:

Instead of
{{{#!php
} elseif ( empty( $_post->filter ) ) {
  $_post = sanitize_post( $_post, 'raw' );
}
}}}

add wp_cache_replace
{{{#!php
} elseif ( empty( $_post->filter ) ) {
  $_post = sanitize_post( $_post, 'raw' );
  wp_cache_replace( $_post->ID, $_post, 'posts' );
}
}}}

This significantly reduces unnecessary calls to sanitize_post.

"	greencp
1	28172	edit_post() should call {un}stick_post() before calling wp_update_post()		Posts, Post Types	4.0	normal	normal	Future Release	enhancement	new	needs-unit-tests	2014-05-08T01:37:34Z	2023-01-26T17:48:29Z	"In a plugin I'm writing I have a need to hook into the `save_post` action and decide whether to allow a given post to be sticky based on postmeta associated with that post (and possibly other posts).

However, if the function I attach to the `save_post` action calls `{un}stick_post()` it doesn't have the desired effect because of the way `edit_post()` is written.

In particular, lines 320-332 of [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/post.php#L320] are:

{{{
wp_update_post( $post_data );

// Now that we have an ID we can fix any attachment anchor hrefs
_fix_attachment_links( $post_ID );

wp_set_post_lock( $post_ID );

if ( current_user_can( $ptype->cap->edit_others_posts ) ) {
	if ( ! empty( $post_data['sticky'] ) )
		stick_post( $post_ID );
	else
		unstick_post( $post_ID );
}
}}}

The `save_post` action is fired within `wp_update_post()` (technically, it is fired by `wp_insert_post()` which is called by `wp_update_post()`).  Since `edit_post()` calls `{un}stick_post()` '''after''' it calls `wp_update_post()`, anything I do in my `save_post` function with regard to whether the post should be sticky is undone!

Hence, I suggest changing the relevant portion of `edit_post()` to
{{{
if ( current_user_can( $ptype->cap->edit_others_posts ) ) {
	if ( ! empty( $post_data['sticky'] ) )
		stick_post( $post_ID );
	else
		unstick_post( $post_ID );
}

wp_update_post( $post_data );

// Now that we have an ID we can fix any attachment anchor hrefs
_fix_attachment_links( $post_ID );

wp_set_post_lock( $post_ID );
}}}

Is there a specific reason why `edit_post()` currently calls `wp_update_post()` before `{un}stick_post()`? (it isn't apparent to me)

Another option I investigated was whether it was possible to have my plugin change `$post_data` via a filter but I couldn't find one.

If others agree that this change would be good and wouldn't break anything else, I'll submit a patch.

[Note: I went back and forth on whether to call this a bug or an enhancement.  It's a bug in the sense that there is certainly an unexpected result ({un}sticking a post in a `save_post` action is undone...I lost about an hour trying to figure out why my `save_post` function wasn't doing the right thing);  But it is an enhancement in the sense that core, itself, is not broken]."	pbiron
1	61773	get_posts() returns posts of removed custom post type		Posts, Post Types		normal	normal	Awaiting Review	enhancement	new		2024-07-26T16:53:40Z	2024-07-26T21:29:50Z	"I’ve encountered an issue with the get_posts() function related to custom post types. Here’s the detailed process to reproduce the problem:

	* Register a Custom Post Type:
	    1. Register a custom post type, for example, movie.
	    2. Use the register_post_type() function to create the custom post type.
	* Add Posts:
	    1. Add several posts to the movie custom post type.
	    2. Ensure these posts are correctly saved and retrievable using get_posts().
	* Remove the Custom Post Type:
	    1. Remove or unregister the movie custom post type.
	    2. This can be done by not calling the register_post_type() function for movie in your theme or plugin.
	* Retrieve Posts:
	    1. Use the get_posts() function to retrieve posts.
	    2. Notice that posts belonging to the movie custom post type are still being returned by get_posts().

=== Expected Behavior:
After the custom post type has been removed/unregistered, the get_posts() function should not return posts associated with the removed custom post type. These posts should be excluded from the query results, as their post type is no longer registered.

=== Actual Behavior:
The get_posts() function continues to return posts of the removed custom post type. This can lead to unexpected behavior and confusion, especially in dynamic environments where custom post types may be added and removed frequently.

=== Proposed Solution:
Introduce a new argument in the get_posts() function to control whether to include posts from unregistered post types. For example:

{{{
#!div style=""font-size: 80%""
  {{{#!php
    $args = array(
        'unregistered_post' => true // This will return all posts including unregistered posts, default is false
    );

    $latest_posts = get_posts($args);
    }}}
}}}

By default, unregistered_post should be false, ensuring that posts from unregistered custom post types are excluded from the query results. When explicitly set to true, it will include posts from unregistered custom post types.
"	rajanit2000
1	43256	wp_delete_post() should use get_post() not wpdb->prepare		Posts, Post Types	1.0	normal	normal	Future Release	enhancement	reviewing		2018-02-08T06:22:26Z	2026-02-06T23:20:51Z	"wp_delete_post() uses a custom SQL query to pre-load the post info in a raw state and ends up adding one extra data I/O call per post/page being deleted.

This bypasses the WP_Post::get_instance() wp_cache seeding.  Consequently later calls to get_post() such as the 'before_delete_post' action to call _reset_front_page_settings_for_post() then falls through and calls WP_Post::get_instance() calling a nearly-identical SQL query (adds LIMIT 1 to to the same query.

Is there any reason why the start of wp_delete_post() should not just call $post = get_post( $postid ) ?

Replace:
{{{
    $post = $wpdb->get_row( $wpdb->prepare( ""SELECT * FROM $wpdb->posts WHERE ID = %d"", $postid ) );
 
    if ( ! $post ) {
        return $post;
    }
 
    $post = get_post( $post );
}}}

With:
{{{
    $post = get_post( $postid ); 
    if ( ! $post ) {
        return $post;
    }
}}}


reference article for in-depth analysis and performance implications is online at [http://lance.bio/2018/02/08/improving-wp_delete_post-wordpress-core/]

If this warrants attention I can find time to spin up my VVV box on latest build and generate a patch file when time allows.     "	charlestonsw
1	48370	"Add ""next/previous"" links to Edit Post screen"		Posts, Post Types		normal	normal	Awaiting Review	feature request	new	dev-feedback	2019-10-18T17:37:06Z	2019-10-19T10:39:15Z	"Maybe a good idea for blogs or shops to have some sort of ""next/previous"" links inside the edit post page so it's easier to navigate through posts, pages and products without leaving the edit page.

At the moment it's  a bit un-logical since when i am on page 5 and i open a post i want to edit then after i have updated it i want to edit the next one or the previous one in the list. Only way possible is to click on all posts but then your back to page 1. You can do a go back through the browser back tab but that's not the proper way to work. 

"	Hein35
1	65663	Serve an overdue scheduled post instead of a 404 when its permalink is requested		Posts, Post Types	7.1	normal	normal	Awaiting Review	feature request	new	dev-feedback	2026-07-18T21:53:02Z	2026-09-23T10:37:16Z	"== Problem ==

WP-Cron only runs when traffic arrives, so a scheduled post can pass its
publish time while still in `future` status. Core already acknowledges this
state in the admin — the posts list table prints a red error label
(`Missed schedule`, `wp-admin/includes/class-wp-posts-list-table.php`) — but
the reader-facing half is untreated: the post's permalink returns a 404 at
the exact moment the link is most likely being shared (launch announcements,
newsletters, social posts scheduled to match the publish time).

Even on sites with correctly configured cron there is a first-visitor race:
the first request to arrive after the due time spawns cron ''non-blocking'',
so that same request is served a 404 while cron publishes the post roughly a
second later. No cron configuration closes that gap; only handling it in the
request itself does.

== Proposal ==

In `WP::handle_404()`, before `set_404()`: when the main query result set is
empty and the requested `name`/`pagename` resolves to a post in `future`
status whose `post_date` is in the past, publish it (`wp_publish_post()`),
re-run the main query, and serve the post as a normal 200.

Cost and safety controls, all cheap:

 * A cached ""next scheduled post time"" (invalidated from
   `transition_post_status` whenever a post enters or leaves `future`) short-
   circuits the check, so 404 floods from scanners never touch the posts
   table.
 * A lock around the publish (the existing cron lock, or a short-lived
   transient) prevents duplicate `wp_publish_post()` hook fires when two
   first-visitors race.
 * `spawn_cron()` after a heal flushes any ''other'' overdue events the
   normal way.

The scheduled slug is already reserved at scheduling time, so the lookup only
matches content whose publication was explicitly authored and authorized.

== Prior art ==

 * #9388 and #39340 approach the same failure from the cron side (making the
   event fire reliably), and #49520 identifies the cron-array race that loses
   `publish_future_post` events on busy sites. #63599 (2025) reports missed
   schedules even with `DISABLE_WP_CRON` and a real system cron. This
   proposal is complementary and narrower: it treats the visitor-facing
   symptom at the last possible moment, and only on requests that are
   already about to 404 — i.e. zero cost for every normal page view.
 * Core has accepted a heal-on-access catch-up once already: #42457 made an
   overdue scheduled Customizer changeset publish when the Customizer is
   opened after its date has passed, rather than staying stuck. This proposal
   applies the same idea to the reader-facing permalink.
 * The plugin ecosystem has carried this for 15+ years (""Missed Scheduled
   Post Publisher"", ""Scheduled Post Trigger"", the retired WP Missed Schedule,
   …) with six-figure combined installs — evidence of sustained demand. Those
   plugins check for overdue posts on ''every'' page load; scoping the check
   to would-be 404s is strictly cheaper than what a large install base
   already runs today.
 * The 404-bypass filter this can build on exists since #10722, and a
   userland implementation hooked on `pre_handle_404` is running in
   production; detailed rationale, the failure modes, and the implementation
   are written up in [https://heera.it/missed-schedule-a-self-healing-fix-for-wp-cron Missed Schedule: a self-healing fix for WP-Cron].
   Happy to adapt it into a core patch. One note for anyone prototyping the
   same way: `pre_handle_404` fires before `set_404()`, so `is_404()` is
   always false inside it — the empty result set is the correct trigger.

== Anticipated objections ==

'''""GETs shouldn't mutate state.""''' WP-Cron has published posts as a side
effect of GET traffic since it exists; this is the same trust model. The
state change was authored, reviewed and scheduled by a user with
`publish_posts` — the request merely executes an instruction that is already
overdue.

'''""Configure real cron instead.""''' That fixes punctuality and should remain
the primary advice, but (a) it cannot close the first-visitor race described
above, (b) #63599 shows misses happen even with real system cron, and
(c) core added the ""Missed schedule"" admin error precisely because imperfect
cron setups are endemic. This completes that feature: core currently tells
the author about the failure while still showing readers a 404 for content
everyone agreed should be live.

'''""Full-page caches may store the 404.""''' Then the request never reaches
PHP and behavior degrades to exactly what happens today — no worse. (Worth a
line in the docs; edge-cached 404s also defeat cron-published posts' first
minutes in the same way.)"	heera
1	43083	"adding ""Unlisted"" type for post visibility"		Posts, Post Types		normal	normal	Future Release	feature request	reviewing	dev-feedback	2018-01-13T16:29:17Z	2026-02-06T23:20:56Z	"I think there is a good reason that WP natively supported ""unlisted"" posts, in addition to PUBLIC, DRAFT and PRIVATE.

Why not WP add that feature? 

btw, Private is not same as ""unlisted"".
"	tazotodua
1	61691	quick draft added images and categories free		Posts, Post Types	6.6.1	normal	normal	Awaiting Review	feature request	new	dev-feedback	2024-07-18T13:15:21Z	2024-07-24T19:23:50Z	"Integrate an image upload option within the Quick Draft interface, allowing users to attach images to their drafts and Add Category Selections.


[[Image(https://i.imgur.com/0F0wgrV.png)]]"	Subrata Deb Nath
1	50141	Data erasure/export links should notify the user that the action has already been confirmed		Privacy		normal	normal	Future Release	defect (bug)	new	has-patch	2020-05-11T02:16:56Z	2026-08-18T08:39:13Z	"When a data erasure/export process is started, an email is sent to the email to confirm the action. That email contains only-use-once link that needs to be confirmed for the process to start.

The first request to that url has a nice ""Thanks, you'll be notified when ready"" type message, but clicking the link a second time will just trigger a `wp_die( 'This link has expired.' );` message without any context as to why.

It's also possible that some email scanners (Either on the server, or on an email client) may request the URL on the users behalf to verify if the URL contains any malicious content in which case the email owner would never actually see the success message, and only the expired link message."	dd32
1	64282	Erase personal data does not remove biographical info		Privacy	6.8.3	normal	normal	Awaiting Review	defect (bug)	new	needs-unit-tests	2025-11-20T14:14:56Z	2026-09-29T13:48:21Z	"Dear WordPress team,

I am unsure whether this is a bug or a design-related gap.

When I use the **WP dashboard/Tools/Erase personal data** function, the Biographical information field is not deleted. It seems to be the standard behavior for any WP site.

Shouldn’t this be considered as personal data? A user could enter here his/her name, unique identifier, etc. As the field name suggests, the user might populate it with personal information.

I am looking forward to your feedback.

Thanks!

Steps to reproduce:
1. Clean WP install
2. New user registration
3. User populates biographical information
4. Administrator runs WP dashboard/Tools/Erase personal data
5. Administrator runs WP dashboard/Tools/Export personal data and sees the biographical information still in the system"	wpandlpuser
1	59025	Incorrect error message when changing the screen options after erasing personal data		Privacy		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-08-09T13:16:51Z	2026-07-07T09:25:49Z	"When an administrator adds a username or email for the purpose of erasing personal data and clicks on the remove request option after completing the process, the data is removed. However, at that point, if the administrator clicks the screen option, unchecks the next step, and then clicks the apply button, an error message saying that error message failed to delete.

https://www.awesomescreenshot.com/video/19806917?key=ca89e6f131318e651ccc67b126de39ba"	harsh175
1	49668	Multisite: export/erase requests initiated in a sub-site should check whether the user belongs to that sub-site		Privacy		normal	normal	Future Release	defect (bug)	new	has-patch	2020-03-19T21:38:09Z	2020-10-16T22:44:17Z	"As of 5.4, when an export request is initiated from within a specific sub-site in a multisite,  `wp_user_personal_data_exporter()` will export user data for a user even if that user is not registered on that sub-site.

`wp_user_personal_data_exporter()` should be modified to check that the user is registered on the sub-site where the request was initiated.

Note: `wp_media_personal_data_exporter()` and `wp_comment_personal_data_exporter()` do not need to be modified as the tables they query are specific to the sub-site, whereas the user table is global.

Related: #44176"	pbiron
1	54442	Provide feedback if initiating an email for a personal data request action has failed		Privacy	4.9.6	normal	normal	Future Release	defect (bug)	new	has-patch	2021-11-15T08:53:04Z	2026-08-06T23:45:05Z	"When creating a request for an export or a delete personal data request and the confirmation email is enabled, the user doesn't get any feedback if `wp_send_user_request()` was successful. The function returns a `WP_Error` object on failure which should be checked and displayed to the user.

Source: https://core.trac.wordpress.org/browser/tags/5.8.2/src/wp-admin/includes/privacy-tools.php?marks=168-171#L168"	ocean90
1	44378	Add privacy prompt(s) to the embeds whitelist documentation in the core handbook	allendav	Privacy	4.9.6	normal	normal	Future Release	enhancement	assigned	needs-docs	2018-06-15T21:27:19Z	2019-01-17T20:53:33Z	"There are several good prompts on https://make.wordpress.org/core/handbook/contribute/design-decisions/#whitelisting-oembed-providers to consider before adding an oembed provider to core.

We should come up with and add a well worded prompt to have the developer consider the privacy implications of the embed (e.g. cookies, tracking JS, etc) in addition to the other prompts already included there."	allendav
1	44261	Export User Data includes media URLs, not the actual media files in zip file		Privacy	4.9.6	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2018-05-29T14:06:16Z	2020-10-16T22:44:17Z	"Use of media URLs rather than the media files in original in Exported User Data zip file is probably to keep the file small in size so that it could be transferred quickly.

**But what if admin or any user with the same level of privilege can delete one of more media files of the user requesting a personal data export accidentally after the Export is initiated and is emailed / downloaded.
**

Do we already have a guard or option to deal with such a situation? Is this possible to include the physical media files in the zip or at least create a separate area where these files would be backed up and reference URLs point to this location?

We can warn user (in the same email with the download link) to download the file say within next 72 hours otherwise the download link would expire. In the background after the stipulated time period the backup would be erased automatically. A new request needs to be initiated if this happens.

This will make sure that the server space is not being overused for a longer period of time.

How far you see the possibility of accidental deletion and user ends up with broken media link(s)? Do you think this could be a probable solution to avoid such a situation?"	subrataemfluence
1	44645	Expose download link		Privacy		normal	normal	Awaiting Review	enhancement	new		2018-07-25T22:28:52Z	2020-10-16T22:41:05Z	"When representing an organisation or business, not just a web site, one may have several systems and files containing personal data, plus some manual editing.

Then I want to compose the email to the requester myself, via a template, add other links or files than the export from one WordPress site.

I could do with an action to just create the export file and expose the link for copying/pasting into an email."	knutsp
1	43811	Licence & Policy notice during installation	xkon	Privacy		normal	normal	Awaiting Review	enhancement	assigned		2018-04-19T13:56:37Z	2023-08-29T15:33:28Z	"This was a thought mentioned in #43492 originally but it deserves it's own ticket at the moment.

We all know about the lovely 5 minute installation process that WordPress provides. I feel like we can create a small placeholder during the installation process ( probably on the first page even ) to notify the users about GPL license and a text on Policy. Yes the license is included in a .txt, but people are more used when installing things to see a license / policy during the installation and then continue to the actual install.

I'm not personally thinking about a full blown page with a wall of text but rather a discreet placeholder to hold just the right the information needed like an excerpt from the GPL and a link refering to the full text for the ease of use etc as well as the connection between WordPress and wp.org during updates and such as stated on other tickets so we can be even more clear and upfront to any given user.

@melchoyce do you think you could check this as well so we can provide a mockup/patch to see how it feels and then we can go forth adding the texts needed here as well just in case this could make it to the release also ?"	xkon
1	44981	Make notice on Privacy Policy page to 'Check out our guide' dismissable	garrett-eclipse	Privacy	4.9.6	normal	normal	Future Release	enhancement	assigned	has-patch	2018-09-22T07:15:38Z	2019-04-01T16:19:41Z	"This ticket branches from #44669 with this comment from @norcross;
https://core.trac.wordpress.org/ticket/44669?replyto=4#comment:4

The notice reference can be found here;
https://github.com/WordPress/WordPress/blob/f7ba175491b725a5f3d636072c8b432774d38ae3/wp-admin/includes/misc.php#L1613-L1629

With this notice the `is-dismissable` class could be added;
https://codex.wordpress.org/Plugin_API/Action_Reference/admin_notices

If a new Privacy Policy page is created this notice should re-appear until dismissed."	garrett-eclipse
1	44500	Mark data requests failed when an expired link is clicked		Privacy	4.9.6	normal	normal	Future Release	enhancement	new	close	2018-07-03T15:44:54Z	2026-07-08T02:58:31Z	"When a user data request expires (the user does not click the confirmation link within the specified timeframe), it is transitioned to the `request-failed` status.

Currently, data export/erasure requests are only marked as `request-failed` when an administrator visits the Export/Erase Personal Data pages (which will be pretty infrequent). #44498 aims to move transitioning of expired requests to `request-failed` with a cron, but a request could also be marked as expired when a user clicks an expired link."	desrosj
1	44539	Notify the admin when no personal data is found for a user		Privacy	4.9.6	normal	normal	Awaiting Review	enhancement	new		2018-07-06T17:35:53Z	2025-02-09T17:06:21Z	"When no data exists for a user's data export request, both the user and administrator handling the request should be notified that no data exists. #44133 handles the end user experience by notifying the user via email that no personal data was found.

On the admin side, the person managing the data request should also be notified that no personal data was found. The ""Download Personal Data"" inline action should also be removed or changed to something like ""Recheck for Personal Data""."	desrosj
1	46897	Personal Data Export Report: Mobile friendly	xkon	Privacy	4.9.6	normal	normal	Future Release	enhancement	assigned		2019-04-12T13:13:04Z	2020-11-03T16:10:04Z	"The reports are HTML files and I think we should consider making them more mobile friendly.

For example:

- Increase the margins around the report.
- Make the data tables responsive.
- Viewport
- ... 

We could look into the admin list tables for ideas.
"	birgire
1	44153	Plugin privacy polices and admin notification		Privacy	4.9.6	normal	normal	Future Release	enhancement	new		2018-05-18T23:14:22Z	2019-04-22T16:54:53Z	"If a plugin adds a privacy policy by hooking wp_add_privacy_policy_content(), the information shows up on example.com/wp-admin/tools.php?wp-privacy-policy-guide=1.

However, there's no link on the dashboard menu (esp settings->privacy) regarding that.

Settings->privacy does say ""Need help putting together your new Privacy Policy page? Check out our guide for recommendations on what content to include, along with policies suggested by your plugins and theme."" with a link in the text, but it's quite obscure.

How about a 2nd line:  If any plugins or themes have available privacy policies, you'll find them [link]here[/link].  You can them use them on your own privacy policy page."	sterndata
1	54390	Privacy Policy should be generated on the site language (locale) and not on users language		Privacy		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2021-11-07T08:59:03Z	2021-11-08T04:48:27Z	"If the user chose another language for admin and generated the Privacy Policy page, it was created in its chosen language and not in the site's language (locale). 

Example: While managing site with German language and English language as personal preference, I've got English Privacy Policy page and not Datenschutzerklärung as I've exected.

It can be even better to give a user option to change the default (site's language) to another available one as an added feature."	oglekler
1	44034	Privacy: Introduce a function to count user requests by type	garrett-eclipse	Privacy		normal	normal	Future Release	enhancement	assigned	needs-unit-tests	2018-05-10T11:13:55Z	2026-07-27T14:35:46Z	"The user request list tables use {{{WP_Privacy_Requests_Table::get_request_counts( $type )}}} to count user requests by type.

If export- and erase bubble counts will be added in #44000 and if e.g. plugins or core will add request stats to the dashboard ( e.g. ""At a glance"" or ""Activity"" metaboxes), then it makes sense to introduce a function like:

{{{
wp_count_user_requests( $type )
}}} 

where type is either {{{'remove_personal_data'}}} and {{{'export_personal_data'}}}.

An alternative would be if {{{wp_count_post( $post_type = 'user_request' )}}} would support {{{$post_name}}} as well, for the request types.
"	birgire
1	43993	Provide indication to admin when user downloads privacy export		Privacy	4.9.6	normal	normal	Awaiting Review	enhancement	new		2018-05-07T16:17:24Z	2019-01-16T08:49:53Z	"Hello,

This was discussed on Slack here;
https://wordpress.slack.com/archives/C02RQBWTW/p1525518891000051

Basically along with the tickets which handled updating status to completed it would be nice to indicate when a user actually downloaded the export package. This would allow the admin to assess if they should resend the email.

"	garrett-eclipse
1	49035	Add Export & Erasure requests to a dashboard widget.		Privacy		normal	normal	Future Release	feature request	new	dev-feedback	2019-12-19T09:49:19Z	2025-02-09T17:10:41Z	"Splitting this up from #46424 as was requested to add some information on the Dashboard.

We briefly talked about it on the last #core-privacy meeting and we agreed that adding an extra widget just for Privacy wouldn't be a good take to avoid taking more space on the Dashboard for so little information.

Instead, we can add these on the existing ""At a Glance"" widget as simple counts of ""Data Export requests"" & ""Data Erasure Requests""

Currently, the caps are a bit messy and reviewed at #44176. I used the ""manage_privacy_options"" for a starting point but we can re-do this if they are eventually split up into 3 different capabilities.

I'm also adding a ""needs-design-feedback"" for the Dashicons used as we don't have a Privacy-related icon so I just used the eye as it's the usual suspect for now :D."	xkon
1	51144	Create a UI for the Disclosures Tab (site-level privacy)		Privacy		normal	normal	Future Release	feature request	new		2020-08-26T13:52:23Z	2020-11-26T18:09:52Z	"**Background:**

The Disclosures Tab is an initiative that is underway in the Core Privacy Team.
The aim is to help site owners / admins better understand what information their site (plugins, themes and Core) collects, where the information is stored and where it is sent - and in particular, who it is shared with.
We hope to help site owners / admins make more informed privacy choices (e.g. when choosing which plugin to install) and to better understand their risk profile when it comes to privacy.
For the most part, the actual ""controlling"" is planned for a sibling plugin, the Permissions Tab, which is not currently intended to be merged into Core, as this will contain more advanced settings.
You can read more about the various privacy initiatives here: https://make.wordpress.org/core/2020/08/19/minutes-core-privacy-meeting-19-august-2020/

**The Challenge:**

The reach and impact of privacy initiatives are severely limited when there is no UI for it in /wp-admin/.

**The Solution:**

This ticket represents one milestone for the Disclosures Tab initiative.
#51092 proposes a .json schema for various Core components (e.g. avatars), for plugins and for themes.
The UI needs to present this information in a digestible format.
It seems preferable to aggregate the information to provide a holistic understanding to the site owner / admin and then allow them to drill-down to a more granular level (e.g. a single plugin).
The description fields in the schema can be used to explain the significance of each item to the site owner / admin.

Create a sub-menu under Settings called ""Privacy"" (H1).

Create a header called ""Disclosures"" on the page (H2).

The section below this should be filterable.

This section will eventually contain quite a bit of information, so it may be desirable to split it into tabs to improve the readability of the text.
Suggested tabs: Overview, Core, Plugins, Themes, Blocks.

This ticket was created in response to a request from Paaljoachim."	carike
1	43372	$wp_query->max_num_pages return value as float		Query	4.9.4	normal	trivial	Awaiting Review	defect (bug)	new		2018-02-20T16:32:40Z	2022-02-10T15:13:40Z	"As a page number, Integer would make more sense than Float.

This is not a big problem but kinda annoying when you do strict comparison on this value. since no one will define a page number as float."	ironghost63
1	39914	'orderby' date results differs depend on 'post_status'		Query	4.7.2	normal	normal	Awaiting Review	defect (bug)	new		2017-02-19T09:40:43Z	2017-02-19T09:40:43Z	"Default 'orderby' date return different order results depend on 'post_status' passed in WP_Query.

For example, 3 published posts with identical post_date (if bulk publish, import or other stuff) in WP_Query will return different posts order on page, which depend on 'post_status' = 'publish' or 'any'.

Since all posts are published, setting 'post_status' should not affect default orderby date results. Most notably this difference in edit.php?post_type= in comparison with front-end WP_Query results.

Is it normal behaviour of such querying results?"	esemlabel
1	40630	"Advanced meta compare ""like"" in WP_Query"		Query	4.7.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-05-02T06:28:33Z	2017-05-16T15:17:40Z	"I try get posts with LIKE compare. For example:
{{{#!php
<?php
add_action( 'init', function () {
	$q = new WP_Query(
		[
			'post_type'    => 'any',
			'meta_key'     => '_stock_status',
			'meta_value'   => 'i%st',
			'meta_compare' => 'LIKE',
		]
	);
} );
}}}

And I have SQL Query:


{{{
SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE 1=1  AND ( 
  ( wp_postmeta.meta_key = '_stock_status' AND wp_postmeta.meta_value LIKE '%i\\%st%' )
) AND wp_posts.post_type IN ('post', 'page', 'attachment', 'product') AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 10
}}}

I can't get posts with meta value for example `instock` and other matched.
"	sebastian.pisula
1	51794	An author_name query with nonexistent user returns posts with no author		Query		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-11-17T03:53:56Z	2020-11-17T03:53:56Z	"This was initially noticed on a production site where an author URL with a bogus author slug (e.g. http://local.wordpress.test/author/thisuserdoesnotexist/) was returning posts.

If an `author_name` query is made with gibberish (or any nonexistent author slug), the query will return results for `post_author = 0`.

{{{
wp> $q = new WP_Query( [ 'author_name' => 'thisuserdoesnotexist' ] );
[...]
wp> $q->is_404;
bool(false)
wp> $q->found_posts;
int(3562)
wp> $q->request;
string(213) ""SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  WHERE 1=1  AND (wp_posts.post_author = 0) AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish')  ORDER BY wp_posts.post_date DESC LIMIT 0, 10""
}}}

Are there a lot of sites out there with posts assigned to a 0 author? No idea, but my test site has a lot from generating posts via WP_CLI.

The issue stems from wp-includes/class-wp-query.php#L2254-L2258...

{{{
$q['author']      = get_user_by( 'slug', $q['author_name'] );
if ( $q['author'] ) {
	$q['author'] = $q['author']->ID;
}
$whichauthor .= "" AND ({$wpdb->posts}.post_author = "" . absint( $q['author'] ) . ')';
}}}

...where a potentially false result from `get_user_by()` is cast to an int and used in a query.


With the included patch, this is the result of the same query:

{{{
wp> $q->is_404
bool(true)
wp> $q->found_posts
int(0)
wp> $q->request
string(250) ""SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  WHERE 1=1  AND wp_posts.post_author NOT IN (0)  AND (wp_posts.post_author = 0) AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish')  ORDER BY wp_posts.post_date DESC LIMIT 0, 10""
}}}

The patch is a hack though, relying on another `absint()` to make our query search for posts that both are and are not by `0` :) There's probably a better way.

But, removing the hacky `$qv['author'] = $qv['author_name'];` line leaves this, which although returns a 404 to the browser, still runs the query:

{{{
wp> $q->is_404
bool(true)
wp> $q->found_posts
int(3562)
wp> $q->request
string(213) ""SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  WHERE 1=1  AND (wp_posts.post_author = 0) AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish')  ORDER BY wp_posts.post_date DESC LIMIT 0, 10""
}}}"	trepmal
1	63619	Cached WP_Term_Query result attempts object conversion to int		Query		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2025-06-24T13:37:16Z	2025-06-25T17:07:04Z	"So far I have been unable to replicate this locally, but this error is repeated dozens of times in the error log on WP VIP:

{{{
Object of class WP_Term could not be converted to int in /var/www/wp-includes/class-wp-term-query.php on line 785
}}}

https://github.com/WordPress/wordpress-develop/blob/b3b04e423f01b004e1c598fdd934650c6b203056/src/wp-includes/class-wp-term-query.php#L785

The cache key generation discards the `fields` parameter (`all` is used in most cases), which means that the cached value may be an array of objects, and then `intval` is applied to that array, which cannot be completed.

I think the solution here is to check the cached array for the type of data, manipulate it if necessary, then run `intval` across the array."	crstauf
1	28568	Can't get private posts/pages via WP_Query when not logged in as administrator		Query	3.9	normal	normal	Awaiting Review	defect (bug)	reopened		2014-06-17T18:44:59Z	2019-03-22T14:10:01Z	"I want to use WP_Query to display content of one private page on some place in a template.

{{{
// ... theme template sidebar.php, for example
<?php
$the_query = new WP_Query( array( 'page_id' => 25, 'post_status' => 'private'  )); // page #25 is set to ""private""
if ($the_query->have_posts())
	{
	// ... nope, no posts for you today
	while ($the_query->have_posts())
		{
		$the_query->the_post();
		the_content();
		} 
	wp_reset_postdata();
	}
?>

}}}

But it only works when I am logged in as administrator.

When I am not logged in, and print_r() the $the_query, there is ""request"" index filled with: 

{{{SELECT   wp_posts.* FROM wp_posts  WHERE 1=1  AND wp_posts.ID = 25 AND wp_posts.post_type = 'page' AND ((wp_posts.post_status = 'private'))  ORDER BY wp_posts.post_date DESC}}}

Querying database with it directly in PHPMyAdmin, it returns one row as expected (page ID 25 row). But template loop does not anything. ""Posts"" index in $the_query is empty.

I have expected WP_Query works like ""just give me anything I want (defined by the arguments)""  ... and I want page with ID 25. "	mklusak
1	66656	Docs: Clarify how to access results of an existing WP_Query		Query		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-11-11T07:36:07Z	2026-11-11T07:41:57Z	"== Problem ==

The source DocBlock for {{{WP_Query::get_posts()}}} does not explain that constructing a {{{WP_Query}}} instance with non-empty query arguments already executes the query.

This can lead developers to mistake {{{get_posts()}}} for a simple getter and call it again to retrieve previously fetched results:

{{{#!php
$query = new WP_Query( $args );
$posts = $query->get_posts();
}}}

However, the constructor calls {{{WP_Query::query()}}}, which invokes {{{get_posts()}}}. The results of the executed query are already available through the public {{{posts}}} property:

{{{#!php
$query = new WP_Query( $args );
$posts = $query->posts;
}}}

Calling {{{get_posts()}}} again reprocesses the query rather than simply reading the existing results. Depending on the query arguments, this can produce unexpected results.

== Proposed change ==

Add a short clarification to the {{{WP_Query::get_posts()}}} DocBlock in {{{src/wp-includes/class-wp-query.php}}} explaining that:

* Query arguments passed to the constructor cause the query to execute.
* The retrieved results are available through the {{{posts}}} property.
* Calling {{{get_posts()}}} again is unnecessary when the intention is only to access those results.

This is a documentation-only change. It does not modify the public API, method visibility, query logic, or runtime behavior.

== Related history ==

* #27193 - A closely related incorrect-use report involving taxonomy queries. Comments 3 and 10 discussed the need for clearer documentation. The ticket was closed as invalid; this proposal does not attempt to reopen the runtime issue.
* #61621 - An open ticket proposing changes to repeated {{{get_posts()}}} processing. This documentation clarification is separate from that behavioral proposal.
* #52386 - A proposal to make the method private, closed as wontfix due to backward compatibility. No visibility changes are proposed here.
* #54822 - A Core fix demonstrating access to existing query results through the {{{posts}}} property.

Original documentation discussion:
https://github.com/WordPress/Documentation-Issue-Tracker/issues/2210

Current Code Reference:
https://developer.wordpress.org/reference/classes/wp_query/get_posts/

== Verification ==

The existing DocBlock and the constructor/query call path were reviewed against the WordPress Core source. The proposed change only adds documentation.

No full WordPress PHPUnit run or independent reproduction of the original taxonomy scenario is claimed."	isaeedam
1	58200	Empty result when meta_query is supposed to select date less than certain date		Query		normal	normal	Awaiting Review	defect (bug)	new		2023-04-26T17:53:16Z	2023-11-10T09:04:06Z	"
{{{
	$args = [
			'post_type'      => 'page',
			'posts_per_page' => '10',
			'paged'          => '1',
		'meta_query'     => [
			'event' => [
				'key'     => 'event_end',
				'value'   => date( 'Y-m-d H:i:s' ),
				'compare' => '<',
				'type'    => 'DATETIME'
			],
		];
}}}

Request will be:

{{{
			SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID
			FROM wp_posts  INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id )
			WHERE 1=1  AND ( 
  ( wp_postmeta.meta_key = 'event_end' AND CAST(wp_postmeta.meta_value AS DATETIME) < '2023-04-26 17:12:15' )
) AND wp_posts.post_type = 'page' AND ((wp_posts.post_status = 'publish'))
			GROUP BY wp_posts.ID
			ORDER BY CAST(wp_postmeta.meta_value AS DATETIME) DESC
			LIMIT 0, 10
}}}


And as a result, empty values will be among the result. 

How to check:
1. Add to certain post_type post_meta event_end with empty value.
2. Create new WP_Query with this post_type and meta_query where event_end is less than current date (look above).
3. Get post and check that selection has empty value.

Expected behaviour is to get all posts, where event_end post_meta has a type of DATETIME and not empty."	oglekler
1	38442	Error when WP_Query parses orderby array in function parse_order		Query	4.2	normal	normal	Future Release	defect (bug)	new	has-patch	2016-10-21T22:17:25Z	2019-04-02T20:03:42Z	"Example of query where I want to order by two custom fields in meta query
'''start_date_order''' and '''is_sticky'''

{{{#!php
<?php
$args = array(
    'no_found_rows'  => true ,
    'posts_per_page' => 4,
    'post_type'      => 'event',
    'post_status'    => 'publish',

    'meta_query' => array(
        'relation' => 'AND',
        array(
            'key'  => 'start_date_order',
            'type' => 'UNSIGNED',
        ),
        array(
            'key'  => 'is_sticky',
            'type' => 'UNSIGNED',
        ),
    ),
    'orderby' => array(
        'start_date_order' => 'DESC',
        'is_sticky'        => 'ASC',
    ),
);

$result_query = new WP_Query( $args );

echo $result_query->request;
}}}

The wrong SQL query generated is

{{{
SELECT wp_posts.ID
FROM wp_posts
INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id )
INNER JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id )
WHERE 1=1
AND (
    wp_postmeta.meta_key = 'start_date_order'
    AND mt1.meta_key = 'is_sticky'
)
AND wp_posts.post_type = 'event'
AND ((wp_posts.post_status = 'publish'))
GROUP BY wp_posts.ID
ORDER BY CAST(wp_postmeta.meta_value AS UNSIGNED) DESC
LIMIT 0, 3
}}}


The '$primary_meta_query' var in method parse_order( $order ) is set forever with the first item of '$meta_clauses' array

see line 2336 /wp-includes/query.php
{{{#!php
<?php
primary_meta_query = reset( $meta_clauses );
}}}


I quickly fix the problem with the following PHP code. Could use a native array function from PHP.

{{{#!php
<?php
//$primary_meta_query = reset( $meta_clauses );

$primary_meta_query = array();
foreach( $meta_clauses as $meta_clause ) {
    if( $meta_clause['key'] == $orderby ) {
        $primary_meta_query = $meta_clause;
        break;
    }
}
}}}


Now the good SQL query is generated with two columns for ordering:

{{{
SELECT wp_posts.ID
FROM wp_posts
INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id )
INNER JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id )
WHERE 1=1
AND (
    wp_postmeta.meta_key = 'start_date_order'
    AND mt1.meta_key = 'is_sticky'
)
AND wp_posts.post_type = 'event'
AND ((wp_posts.post_status = 'publish'))
GROUP BY wp_posts.ID
ORDER BY CAST(wp_postmeta.meta_value AS UNSIGNED) DESC, CAST(mt1.meta_value AS UNSIGNED) ASC
LIMIT 0, 3
}}}
"	oloynet
1	60395	Filtering posts by open ping_status returns posts with closed ping_status		Query		normal	normal	Awaiting Review	defect (bug)	new		2024-01-31T07:06:00Z	2024-01-31T10:50:47Z	"CLI command {{{wp post --ping_status=open}}} returns published sticky posts with a {{{ping_status}}} of {{{closed}}}. 

{{{
wp post list --ping_status=open --fields=ID,post_status,post_type,ping_status
+------+-------------+-----------+-------------+
| ID   | post_status | post_type | ping_status |
+------+-------------+-----------+-------------+
| 2521 | publish     | post      | closed      |
| 2508 | publish     | post      | closed      |
+------+-------------+-----------+-------------+
}}}

The same command with a different output format yields no results:

{{{
wp post list --ping_status=open --format=ids
(no output)
}}}

Setting an arbitrary {{{ping_status}}} still returns results;

{{{
wp post list --ping_status=foobar --fields=ID,post_status,post_type,ping_status
+------+-------------+-----------+-------------+
| ID   | post_status | post_type | ping_status |
+------+-------------+-----------+-------------+
| 2521 | publish     | post      | closed      |
| 2508 | publish     | post      | closed      |
+------+-------------+-----------+-------------+
}}}

The command should return no results as there are no posts with {{{ping_status}}} of {{{open}}}. At the very least, the results output should be consistent regardless of format.

Environment

{{{
OS:     Linux 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Wed Nov 29 18:55:19 UTC 2023 x86_64
Shell:  /bin/bash
PHP binary:     /usr/bin/php
PHP version:    8.1.27
php.ini used:   /etc/php.ini
MySQL binary:   /bin/mysql
MySQL version:  mysql  Ver 15.1 Distrib 10.5.22-MariaDB, for Linux (x86_64) using  EditLine wrapper
SQL modes:
WP-CLI root dir:        phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir:      phar://wp-cli.phar/vendor
WP_CLI phar path:       /var/www
WP-CLI packages dir:
WP-CLI cache dir:       /home/deploy/.wp-cli/cache
WP-CLI global config:
WP-CLI project config:  /var/www/wp-cli.yml
WP-CLI version: 2.9.0
}}}

GitHub issue:

https://github.com/wp-cli/entity-command/issues/453
"	jamieburchell
1	62931	Inconsistency When Querying and Sorting by meta_key with Multiple Values		Query	6.7.1	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-02-09T21:35:44Z	2025-02-10T11:47:13Z	"**Description:**

I've encountered an issue with a SQL query generated by WordPress when sorting posts by a meta_key value. When I copied the exact same query into phpMyAdmin, it resulted in an error, whereas it worked fine within WordPress. Upon further investigation, I realized that this discrepancy occurs because WordPress disables the SQL mode ""ONLY_FULL_GROUP_BY"" by default.

The error itself is caused when sorting posts based on the ""meta_key"" column, when some posts have multiple values for the same meta_key. This leads to inconsistent sorting results and, with ""ONLY_FULL_GROUP_BY"" enabled, a SQL error.

**Example Scenario:**

Consider a custom post type ""biography,"" where each post has a meta_key ""nationality."" Some biographies may have multiple nationalities (e.g., ""Algeria"" and ""Zimbabwe""). When sorting biographies by nationality, the sorting behavior for posts with multiple values is unpredictable—it may randomly appear at start or at end. 

**Current Query Generated by WordPress:**
{{{
SELECT wp_posts.* FROM wp_posts  
INNER JOIN wp_postmeta ON (wp_posts.ID = wp_postmeta.post_id)
WHERE 1=1 [...]
GROUP BY wp_posts.ID
ORDER BY wp_postmeta.meta_value
}}}

**Suggested Fix:**
To resolve this issue, an aggregation function such as `MIN()` should be used:

{{{
SELECT wp_posts.* FROM wp_posts  
INNER JOIN wp_postmeta ON (wp_posts.ID = wp_postmeta.post_id)
WHERE 1=1 [...]
GROUP BY wp_posts.ID
ORDER BY MIN(wp_postmeta.meta_value)
}}}
**Related Ticket**
[https://core.trac.wordpress.org/ticket/54669]

"	maximeschoeni
1	39540	NOT EXISTS meta condition doesn't work if meta has NULL value.		Query	4.7	normal	normal	Future Release	defect (bug)	new	needs-unit-tests	2017-01-10T16:42:19Z	2026-02-03T11:51:25Z	"It seems problem exists since meta query class release.

Right now NOT EXISTS works only if meta doesn't exist at all, but if it has NULL value we got incorrect result. I understand that better not use NULL values with metas at all, but you allow to write NULL as meta value, so please add possibility to check it.

Just need to change string in class-wp-meta-query.php:

{{{
$sql_chunks['where'][] = $alias . '.' . $this->meta_id_column . ' IS NULL';
}}}

For example on:

{{{
$sql_chunks['where'][] = ""$alias.meta_value IS NULL"";
}}}

And both cases will be covered.

Thank you in advance.
"	avahura
1	37251	Not return 404 on front-page with option page and url `/page/2`		Query	4.5.3	normal	normal	Awaiting Review	defect (bug)	new		2016-07-01T15:31:11Z	2023-05-28T15:33:44Z	"If i setup page on front-page(Go `Settings`->`Reading`->`Set show on front static page and choose own page`->`Save`). Then go to front page on my site (example http://my-domain/) i see page, which setted before. But if i try open `http://my-domain/page/2`, `http://my-domain/page/3` and etc, i get always front-page, except i am wait 404 error. After debug i found solution (line 1777 in `query.php`):
{{{#!php
<?php
if ( $this->is_home && 'page' == get_option('show_on_front') && get_option('page_on_front') && !$this->is_paged) {
            $_query = wp_parse_args($this->query);
            // pagename can be set and empty depending on matched rewrite rules. Ignore an empty pagename.
            if ( isset($_query['pagename']) && '' == $_query['pagename'] )
                unset($_query['pagename']);

            unset( $_query['embed'] );

            if ( empty($_query) || !array_diff( array_keys($_query), array('preview', 'page', 'paged', 'cpage') ) ) {
                $this->is_page = true;
                $this->is_home = false;
                $qv['page_id'] = get_option('page_on_front');
                // Correct <!--nextpage--> for page_on_front
                if ( !empty($qv['paged']) ) {
                    $qv['page'] = $qv['paged'];
                    unset($qv['paged']);
                }
            }
        }
}}}

Add `&& !$this->is_paged` check."	sheo13666q
1	63098	Passing array in term query arg triggers fatal error		Query	6.7.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-03-13T15:56:04Z	2025-04-09T11:41:28Z	"Passing array in term query arg triggers fatal error.
For example: `https://wordpress.org/news/?taxonomy=category&term%5B%5D=a&b`

Just added a taxonomy & set term as an array, decoded param looks something like this:
`?taxonomy=category&term[]=a&b`

- This bug is present on latest version of WordPress
- Can be triggered by reference URL on fresh WP install"	sohan5005
1	60566	Posts Page as Draft remains publicly queryable		Query		normal	normal	Future Release	defect (bug)	new	has-patch	2024-02-17T11:46:03Z	2026-02-13T10:54:20Z	"When assigning a Posts Page at ""WP Admin > Settings > Reading"" and afterward setting that page to draft, the page remains publicly queryable. This is possible via the `?page_id=` query (not `?p=`) and the provisioned slug."	Cybr
1	65267	Preserve Query Strings on Old-Slug Redirects, If Any		Query	2.1	normal	normal	Future Release	defect (bug)	new	has-patch	2026-05-19T07:50:12Z	2026-05-21T08:31:00Z	"WordPress's wp_old_slug_redirect() (wp-includes/query.php) builds its redirect destination via get_permalink() and drops the original request's query string entirely. This is unexpected, and the option to have query parameters be preserved to the new destination should be available.

A valid usage case is with advertising campaigns that link to old urls containing URL parameters for tracking. Advertisements may exist in permanent form (on paper) with a relevant code in the query string of the URL. If someone modifies the URL in WordPress and wp_old_slug_redirect() handles the redirect and points to the updated slug, then those query parameters should be passed along."	mkormendy
1	48047	Querying (non-CPT) posts from more than one (native) category only returning posts from first category		Query	5.2.3	normal	normal	Awaiting Review	defect (bug)	new	close	2019-09-16T08:23:54Z	2025-09-11T14:13:48Z	"I tried selecting posts from two categories using this code:

{{{
$wpQuery = new WP_Query([
    'post_type'      => 'post',
    'posts_per_page' => 30,
    'post_status'    => 'publish',
    'category__in'   => [5, 6],
]);

$posts = $wpQuery->get_posts();

}}}

This code only returns posts from the first category. I tracked this back to the query variables `category_name` and `cat` being set to the first queried category in the `get_posts()` method. Code from core, `class-wp-query.php`, line 2173:

{{{
if ('category' === $queried_taxonomy) {

    $the_cat = get_term_by($queried_items['field'], $queried_items['terms'][0], 'category');
    if ($the_cat) {
        $this->set('cat', $the_cat->term_id);
        $this->set('category_name', $the_cat->slug);
    }
    unset($the_cat);
}
}}}

It was the same with any equivalent of the `category__in` option, such as using a comma separated list as an argument (`'category_name' => 'news,video'`) or writing my own `tax_query`. 

When I access the `posts` property on the query object (`$wpQuery->posts`), the correct number of posts is returned. The problem only surfaces when `get_posts()` is called.

The bug persists on the Twenty Ninetheen theme without any plugins enabled.

Why is `category_name`/`cat` even set to the first category term? If there is a reason, it would make sense to filter out any ""duplicate"" category query vars present before the SQL query is built, because ''both'' `category__in` and `category_name`/`cat` don't make sense. 

I'm looking forward to insights on this. "	lialyn
1	38062	SELECT DISTINCT ... ORDER BY ...		Query	4.6	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2016-09-14T22:36:46Z	2019-04-09T18:51:23Z	"I'm not 100% certain of how best to change this in the code, but I've attached a patch that I believe is correct and fixes it ...

In '''./wp-includes/class-wp-query.php:2810''' (trunk), there is a query that looks like:


{{{
SELECT $found_rows $distinct {$this->db->posts}.ID 
  FROM {$this->db->posts} $join 
 WHERE 1=1 $where $groupby $orderby $limits
}}}
When run, in some cases at least, the query turns into:


{{{
SELECT SQL_CALC_FOUND_ROWS distinct wp_posts.ID 
  FROM wp_posts
 ...
ORDER BY wp_posts.post_date ...
}}}


The problem with the query is that it could potentially give unpredictable results ... the only reason it doesn't is because wp_posts.ID happens to be a Primary Key, and therefore, is already guaranteed that the post_date+ID will always be unique.

Now, I understand why the 'distinct' is used, as there are JOINs involved in the expanded query that could result in multiple rows being returned for each wp_post.ID, ie:

ID     post_date
1        2016-09-01
2        2016-08-01
3        2016-07-01
4        2016-06-01
1        2016-09-01
4        2016-06-01

, but if that weren't the case, then the  unpredictable results could come from a case like:

ID     post_date
1        2016-09-01
2        2016-08-01
3        2016-07-01
4        2016-06-01
1        2016-05-01
4        2016-04-01

For the above query, which 1,4 date is to be used?   If the first, then the order would be 1,2,3,4 ... if the second, the order would be 2,3,1,4 ... 

If the query was changed to:


{{{
SELECT SQL_CALC_FOUND_ROWS distinct wp_posts.ID, wp_posts.post_date
}}}


... then the query becomes SQL compliant, and it is no longer possible to get unpredictable results, since in both my 'bad example' above, and in the case of the actually database table as defined for WordPress, the result would end up being:

1,2,3,4

I attached a patch that fixes the query in such a way that makes the query SQL Compliant and removes the potential unpredicatability of the results that right now is protected against by ensuring that the field itself is always UNIQUE in the first place ...



"	yscrappy
1	46285	Search colums of WP User Query vars is not updated after applying user_search_columns filter		Query	4.9.8	normal	trivial	Awaiting Review	defect (bug)	new		2019-02-20T08:21:54Z	2019-02-20T08:21:54Z	While preparing the query variables of WP_User_Query , it appears that, after applying user_search_columns filter, the possibly modified array search_columns in WP_User_Query->query_vars argument is not updated .	wonderyan
1	48078	Some WP_XXX_Query::query() methods produce incorrect results when called in a loop		Query		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2019-09-19T18:28:19Z	2019-09-20T11:47:58Z	"While testing a [https://core.trac.wordpress.org/attachment/ticket/37392/37392.9.patch patch] for #37392 I came across what ''may'' be a bug in `WP_Site_Query::query()`.

That patch creates a `WP_Site_Query` object and then in a loop does various different `query()`'s, as in:

{{{#!php
$q = new WP_Site_Query();
$args   = array(
	'network_id'    => $network_id,
	'number'        => 1,
	'fields'        => 'ids',
	'no_found_rows' => false,
);

foreach ( array( 'public', 'archived', ... ) as $status ) {
	$_args = $args;
	$_args[ $status ] = 1;
	
	$q->query( $_args );
	// do something with the results of this site query.
}
}}}

However, calling `query()` in a loop like that doesn't produce the expected results other than the 1st time through the loop.

Why?  Because when `query()` calls `WP_Site_Query::get_site_ids()` on subsequent iterations, the protected class member `$sql_clauses` still has its value from the previous iteration through the loop and the ""new"" query basically gets added to the previous queries.

In the case of the above code this results in the query for `archive = 1` to actually be `public = 1 AND archive = 1` which is **not** what is intended.

Looking at other `WP_XXX_Query()` classes, I ''think'' the following suffer from the same thing (although I haven't written code to test that):

1. `WP_Network_Query`
2. `WP_Term_Query`

but the following do **not**:

1. `WP_Query` (because it doesn't use a class member for the clauses)
2. `WP_User_Query` (because it uses a `prepare_query( $query )` method which resets the class member(s))

So, I guess the question is: should these `query()` methods be expected to work when called multiple times in a loop (with different queries each time) or is that **not** an intended use?"	pbiron
1	38283	Some `WP_Query` query vars undocumented		Query		normal	normal	Future Release	defect (bug)	new	has-patch	2016-10-11T15:07:18Z	2019-03-27T15:20:20Z	"While working on #38276, I noticed that the `has_password` and `post_password` query args (added in [27395]) aren't included in the inline docs for `WP_Query::parse_query()` with the other args. I did a search for all of the args used in `WP_Query`, and discovered that the following args are used but not documented:

{{{
attachment
caller_get_posts
embed
error
feed
has_password
minute
post_password
posts_per_rss
preview
robots
search_orderby_title
search_terms
search_terms_count
showposts
static
subpost
subpost_id
taxonomy
tb
term
term_id
withcomments
withoutcomments
}}}

Some of these may be deprecated, discouraged, or internal. If there has been a previous decision not to include them for some reason, then I apologize for bringing it up. But I couldn't find any tickets relating to the password related args not being documented, so I have a feeling that some of these may have just been overlooked.

Perhaps some of these shouldn't be documented, although we could document deprecated args and that they are deprecated, rather than just leaving them out. But at least this ticket will provide us a central place where we can state why certain ones aren't going to be documented, if indeed that's the decision."	jdgrimes
1	41226	"Static ""posts page"" preview not working"		Query		normal	normal	Awaiting Review	defect (bug)	reopened	needs-unit-tests	2017-07-03T09:41:05Z	2025-10-02T14:44:56Z	"My site has both a static front page and a static posts page. The former is intended to be the site's home page, the latter the blog section home page.

The static posts page is a regular page, created through the admin interface. Some parts of it are editable by admin - this is a design choice driven by project needs.

Whenever I update the static posts page through the editor, the preview doesn't work: '''clicking on the ""preview"" shows the preview of the ""front page"" instead.'''

Apart from that, everything works on the front-end side, and I can edit and save the posts page as needed.

Unfortunately, as the project is being currently developed, I can't publicly publish urls or screenshots at the time."	emross
1	63106	The loop can throw warning if `WP_Query::have_posts()` not called.		Query		low	normal	Awaiting Review	defect (bug)	new		2025-03-15T01:27:30Z	2025-03-15T01:27:30Z	"Starting or overrunning the loop can throw a warning if `WP_Query::have_posts()` is not called correctly via the developer. The issue can be seen in these tests:

{{{#!php
<?php
function test_no_posts() {
	$query = new WP_Query( array( 'post_type' => 'unregistered_cpt' ) );

	$query->the_post();
	$this->assertEmpty( $query->posts );
}

function test_too_many_calls() {
	$post_id = $this->factory()->post->create();
	$query   = new WP_Query( array( 'p' => $post_id ) );

	// Call the post twice.
	$query->the_post();
	$query->the_post();
	$this->assertNotEmpty( $query->posts );
}
}}}

In each case the tests will throw an error before reaching the assertion, as they are attempting to access an array key that does not exist.

A part of me is tempted to close this as wontfix, as it's very clearly documented that one should use `while ( have_posts() )` for the primary loop or `while $query->have_posts()` for a secondary loop.

"	peterwilsoncc
1	41546	WP Query order by meta_clause not working correctly for decimal values		Query	4.2	normal	normal	Awaiting Review	defect (bug)	new		2017-08-03T13:06:36Z	2017-08-05T07:13:01Z	"Short description: When using the WP 4.2 improvements for meta queries (as described here: https://make.wordpress.org/core/2015/03/30/query-improvements-in-wp-4-2-orderby-and-meta_query/) and trying to order the query by a decimal custom field, wordpress orders as if these fields are all integer and incorrectly handles all decimal values such as 1.5, 1.6 and 1.7 (all of these are seen as 1).

In detail:

{{{
WP_QUERY_ARGS Array
(
    [ignore_sticky_posts] => 1
    [post_status] => publish
    [offset] => 0
    [post_type] => Array
        (
            [0] => post
        )

    [orderby] => Array
        (
            [cf_clause_1] => DESC
            [ID] => ASC
        )

    [meta_query] => Array
        (
            [cf_clause_1] => Array
                (
                    [key] => my_decimal_custom_field
                    [type] => DECIMAL
                    [compare] => EXISTS
                )

        )

    [posts_per_page] => 10
    [nopaging] => 
)
}}}

5 Test posts:
Post 1 - my_decimal_custom_field = 1
Post 2 - my_decimal_custom_field = 2
Post 3 - my_decimal_custom_field = 2.2
Post 4 - my_decimal_custom_field = 2.6
Post 5 - my_decimal_custom_field = 3

Using the query above results in the order:
1,3,4,2,5

When it should be 1,2,3,4,5.

Trying out different order types as described in the WP Codex does not help."	LordSpackolatius
1	44372	WP_Query cannot properly order by nested Parent/Child relationships		Query	4.9.6	normal	minor	Awaiting Review	defect (bug)	new		2018-06-14T19:28:48Z	2018-06-14T20:23:58Z	"Steps to reproduce the problem:

- Create a new CPT named `series`. 
- Create numerous parent/child relationships in no particular order. Some are nested since we have the concept of seasons and episoded in series. These will not fit properly with taxonomies because data for each ""Season 1"" is unique to the parent series. 
- The parent can be added after the child is created and then associated (important as the date is taken into account here as it is unreliable in this case and is a very realistic scenario).
- use `menu_order` as a way to order these items. Seasons `menu_order` will be the season number and episodes are most commonly going to be used 1-10. One could argue season 2 should be 20-30 but that is not normal user expectation when using the system (I already have teams working on this and they all favor 1-10 and not 20... 30... per season. I tried...)

Basically, what you are creating is a bunch of series that have seasons as their immediate children then these seasons have episodes assigned to them. Typical series structure.

Series (parent) -> Season (child of Series, parent of Episode) -> Episode (child of Season).

I can easily filter the results for parents and list the children. The issue I have is that I am not able to sort by children properly.

What I expect is a structure like:

Game of Thrones

{{{
- Season 1
-- Episode 1
-- Episode 2
-- Episode 3
- Season 2
-- Episode 1
-- Episode 2
-- Episode 3
- Season 3
-- Episode 1
-- Episode 2
-- Episode 3
...
}}}



What I get:
Game of Thrones

{{{
- Season 1
- Season 2
- Season 3
-- Episode 1 - season 3
-- Episode 2 - season 3
-- Episode 3 - season 3
-- Episode 1 - season 1
-- Episode 2 - season 1
-- Episode 3 - season 1
-- Episode 1 - season 2
-- Episode 2 - season 2
-- Episode 3 - season 2
...
}}}


I have tried playing with the orderby for all available options and I can not get the structure I expect.

It seems like this is a limitation with the table design as menu_order and post_parent are not enough to create this structure. In fact, you can pretty much only do what I am getting, not what I would expect. It would seem that we need a better way to handle deeper parent/child relationships for this to order properly. Perhaps a meta field would help with this.

I'm not sure if there is anything that can be done here. I am very doubtful. I may have to rethink the system and add more meta fields for ordering as this is going to be a problem for the project.

Reporting this here to see if it's worth anyone's time to research.

I've included my class to help with testing.


{{{
<?php

namespace Parables\WP\Core\Backend;

use Parables\WP\Core\VideoFactory;

/**
 * Class SeriesAdminListFilter
 * This will add a filter option for series parents to the admin list
 * This allows viewing of children only for seasons
 * @package Parables\WP\Core\Backend
 */
class SeriesAdminListFilter {

    /**
     * Stores all series parents
     * @var array
     */
    private $allSeriesParents;

    /**
     * Request parameter
     */
    const REQUEST_SERIES_NAME_VARIABLE = 'series_id';

    /**
     * Assign hooks
     */
    public function __construct() {
        \add_action('restrict_manage_posts', array($this, 'addDropDownFilter'), 10, 2);
        \add_action('parse_query', array($this, 'filterQuery'), 10);
    }

    /**
     * Build the drop down menu
     * @param string $post_type
     * @param string $which
     */
    public function addDropDownFilter($post_type, $which) {
        if ('series' !== $post_type) {
            return; //check to make sure this is your cpt
        }
        $_series = $this->_getAllSeriesParents();
        if (empty($_series)) {
            return;
        }

        $selected = isset($_REQUEST[self::REQUEST_SERIES_NAME_VARIABLE]) ? $_REQUEST[self::REQUEST_SERIES_NAME_VARIABLE] : '';
        ?>
        <select id=""<?php esc_attr_e(self::REQUEST_SERIES_NAME_VARIABLE); ?>""
                name=""<?php esc_attr_e(self::REQUEST_SERIES_NAME_VARIABLE); ?>"">
            <option value=""""><?php _e('All Series', 'parables_core'); ?></option>
            <?php foreach ($_series as $sID => $sTitle) : ?>
                <option value=""<?php esc_attr_e($sID); ?>"" <?php echo ($selected == $sID) ? 'selected=""selected""' : ''; ?>><?php echo $sTitle; ?></option>
            <?php endforeach; ?>
        </select>
        <?php
    }

    /**
     * Filter the Query
     * @param \WP_Query $query
     * @return \WP_Query
     */
    public function filterQuery($query) {
        // Check if backend main query
        if (!is_admin() || !$query->is_main_query()) {
            return $query;
        }
        // Ensure proper post_type and that we have the request var
        if ('series' !== $query->query['post_type'] || empty($_REQUEST[self::REQUEST_SERIES_NAME_VARIABLE])) {
            // No need to filter, not where we want to be
            return $query;
        }
        // Ok, let's extend the WP_Query to use our filter
        // Fetch Series Object so we can extract the season post IDs
        $_seriesObject  = VideoFactory::getObject($_REQUEST[self::REQUEST_SERIES_NAME_VARIABLE]);
        $_seriesSeasons = $_seriesObject->getSeasons();
        $_seriesSeasons = array_keys($_seriesSeasons); // gets the season post ID
        // build $_parentIDs to be used to limit the result set
        $_parentIDs = [(int)$_seriesObject->getPostID()];
        $_parentIDs = array_merge($_parentIDs, $_seriesSeasons);
        // Modify the query object to use our new filter
        $query->query_vars['post_parent__in'] = $_parentIDs;
        $query->query_vars['orderby']         = [
            'parent'     => 'ASC',
            'menu_order' => 'ASC'
        ];

        return $query;
    }

    /**
     * Returns all series parents
     * @return mixed
     */
    private function _getAllSeriesParents() {
        if (NULL === $this->allSeriesParents) {
            // Build query for genre query
            $args = array(
                'posts_per_page'      => -1,
                'post_status'         => 'publish',
                'orderby'             => 'title',
                'order'               => 'ASC',
                'post_parent'         => 0,
                'post_type'           => array(
                    'series'
                ),
                'ignore_sticky_posts' => 1
            );
            // Do query
            $wpQuery = new \WP_Query($args);
            if ($wpQuery->have_posts()) {
                foreach ($wpQuery->get_posts() as $p) {
                    // Normal loop logic using $p as a normal WP_Post object
                    $this->allSeriesParents[$p->ID] = $p->post_title;
                }
            }
        }

        return $this->allSeriesParents;
    }

}
}}}


Series CPT is:
{{{#!php
<?php
        $capabilityType = 'series';
        register_post_type('series',
            array(
                'labels'          => array(
                    'name'                  => __('Series', 'parables_core'),
                    'singular_name'         => __('Series', 'parables_core'),
                    'featured_image'        => __('Poster Image', 'parables_core'),
                    'set_featured_image'    => __('Set Poster Image', 'parables_core'),
                    'remove_featured_image' => __('Remove Poster Image', 'parables_core'),
                    'use_featured_image'    => __('Use Poster Image', 'parables_core'),
                ),
                'public'          => true,
                'menu_position'   => 21,
                'menu_icon'       => 'dashicons-video-alt2',
                'hierarchical'    => true,
                'capability_type' => 'series',
                'capabilities'    => array(
                    'edit_post'              => ""edit_{$capabilityType}"",
                    'read_post'              => ""read_{$capabilityType}"",
                    'delete_post'            => ""delete_{$capabilityType}"",
                    'edit_posts'             => ""edit_{$capabilityType}s"",
                    'edit_others_posts'      => ""edit_others_{$capabilityType}s"",
                    'publish_posts'          => ""publish_{$capabilityType}s"",
                    'read_private_posts'     => ""read_private_{$capabilityType}s"",
                    'delete_posts'           => ""delete_{$capabilityType}s"",
                    'delete_private_posts'   => ""delete_private_{$capabilityType}s"",
                    'delete_published_posts' => ""delete_published_{$capabilityType}s"",
                    'delete_others_posts'    => ""delete_others_{$capabilityType}s"",
                    'edit_private_posts'     => ""edit_private_{$capabilityType}s"",
                    'edit_published_posts'   => ""edit_published_{$capabilityType}s""
                ),
                'rewrite'         => array(
                    'with_front' => false
                ),
                'supports'        => array(
                    'title',
                    'editor',
                    'page-attributes',
                ),
            )
        );
}}}
"	son9ne
1	47802	WP_Query get_posts sometimes inserts contradictory taxonomy queries		Query		normal	normal	Awaiting Review	defect (bug)	new		2019-07-30T18:15:54Z	2020-09-04T15:17:24Z	"In our website, we have a custom taxonomy called 'section.' It figures prominently in a query we're doing. Here's a (lightly anonymized) dump of the array we pass to the WP_Query constructor, before calling get_posts() on the query created:

{{{
    [posts_per_page] => 25
    [post_type] => post
    [tax_query] => Array
        (
            [0] => Array
                (
                    [operator] => IN
                    [taxonomy] => section
                    [field] => slug
                    [terms] => Array
                        (
                            [0] => section1
                            [1] => section2
                            [2] => section3
                            [3] => section4
                        )

                )

            [1] => Array
                (
                    [operator] => NOT IN
                    [taxonomy] => section
                    [field] => slug
                    [terms] => Array
                        (
                            [0] => section5
                        )

                )

            [relation] => AND
        )

    [orderby] => post_date
    [order] => DESC
}}}

We had a problem where many posts that should be returned here, are not.  After much digging, I found the problem in get_posts. specifically in the segment of code commented:

{{{
			/*
			 * Set 'taxonomy', 'term', and 'term_id' to the
			 * first taxonomy other than 'post_tag' or 'category'.
			 */
}}}

It's true, the code is doing just that. It's adding a taxonomy parameter. But it's picking up one of the sections that is supposed to be one of several possibilities the section can be IN, not required.  It then makes that one single section required in an appended AND!     Sample (again, lightly anonymized) SQL segment of the obviously self-contradictory conditions created (where 1001-1005 are the IDs corresponding to sections 1-5)

{{{
  wp_term_relationships.term_taxonomy_id IN (1001, 1002, 1003, 1004)
  AND
  wp_posts.ID NOT IN (
				SELECT object_id
				FROM wp_term_relationships
				WHERE term_taxonomy_id IN (1005)
			)
  AND
  tt1.term_taxonomy_id IN (1001)
)
}}}

That third clause, the final IN (1001) is being added by get_posts in the above-commented section. That's why we only get a fraction of the posts we're supposed to get. It's effectively overriding most of our IN list!

I can work around this by prepending to my tax_query an effective no-op using some custom taxonomy, but this seems like a problem that should be addressed in the WP core.

thank you,"	nstevensdc
1	43634	WP_Query returns wrong result if 10+ search terms and all negative.		Query		normal	normal	Awaiting Review	defect (bug)	new		2018-03-26T15:09:42Z	2019-01-17T01:18:05Z	"Set up: create single post with title or body ""Don't match this one!""

Use WP_query with 's' parameter:

{{{
-one -two -three -four -five -six -seven -eight -nine -ten
}}}

WP_Query will find and return the single post and it shouldn't.


Less than 10 negative search terms works fine.

I believe it has to do with a special 'if clause' in the function '''parse_search''' in ''class-wp-query.php''


{{{
// if the search string has only short terms or stopwords, or is 10+ terms long, match it as sentence
if ( empty( $q['search_terms'] ) || count( $q['search_terms'] ) > 9 ) {
    $q['search_terms'] = array( $q['s'] );
}
}}}

this makes 

{{{
JPH q['search_terms'] : Array
(
    [0] => -one -two -three -four -five -six -seven -eight -nine -ten
)
}}}

and later in the function the search variable becomes


{{{
JPH search variable is:  AND (((testsite_posts.post_title NOT LIKE '{07e030b91cb064568b0acafd83d99152667b06f2ffd415e48cd2d2f458c2c217}one -two -three -four -five -six -seven -eight -nine -ten{07e030b91cb064568b0acafd83d99152667b06f2ffd415e48cd2d2f458c2c217}') AND (testsite_posts.post_excerpt NOT LIKE '{07e030b91cb064568b0acafd83d99152667b06f2ffd415e48cd2d2f458c2c217}one -two -three -four -five -six -seven -eight -nine -ten{07e030b91cb064568b0acafd83d99152667b06f2ffd415e48cd2d2f458c2c217}') AND (testsite_posts.post_content NOT LIKE '{07e030b91cb064568b0acafd83d99152667b06f2ffd415e48cd2d2f458c2c217}one -two -three -four -five -six -seven -eight -nine -ten{07e030b91cb064568b0acafd83d99152667b06f2ffd415e48cd2d2f458c2c217}')))  AND (testsite_posts.post_password = '') 
}}}
"	johnh10
1	44695	WP_Term_Query unexpected 'orderby' behaviour.		Query	4.9.7	normal	normal	Awaiting Review	defect (bug)	new	needs-unit-tests	2018-08-01T21:19:14Z	2019-08-27T18:33:22Z	"I expected that `orderby` would behave in a similar way with `WP_Term_Query` as it does on other `*_Query` classes but it seems that `meta_value_date` and possibly some others is unsupported. Additionally `meta_type` doesn't function as expected either.

These args: 
{{{
$args = array(
	'taxonomy'      => 'issues',
	'number'        => 5,
	'meta_key'      => 'issue_date',
	'meta_type'     => 'DATE',
	'orderby'       => 'meta_value_date',
);
}}}

Result in this query that has disregarded both `meta_type` and `orderby` in it's generation:

{{{
SELECT DISTINCT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_termmeta ON ( t.term_id = wp_termmeta.term_id ) INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('issues') AND tt.count > 0 AND ( wp_termmeta.meta_key = 'issue_date' ) ORDER BY t.name ASC LIMIT 5
}}}

Could we get similar support for same named keys in `WP_Term_Query` as we have in other queries?"	williampatton
1	43391	WP_User_Query bug		Query	4.9.4	normal	normal	Awaiting Review	defect (bug)	new		2018-02-23T09:47:47Z	2018-03-03T08:44:40Z	"I've got an issue when doing a query with WP_User_Query and trying to list from a specific role AND using 'orderby' => 'post_count'. The query simply fails to list the correct results.

Here are the query arguments:
{{{#!php
<?php
$args = array(
	'fields' => array( 'ID', 'user_login', 'display_name' ),
        'role' => 'expert',
	'number'         => $numPosts,
        'offset' => $page > 1 ?  $numPosts : 0,
        'order' => 'DESC',
        'orderby' => 'post_count'
	);
}}}

If I remove the 'role' argument from the query it works, but with the 'role' included it doesn't.
"	zkingdesign
1	43238	`suppress_filters` not set in `pre_get_posts` hook		Query	4.9.4	normal	normal	Awaiting Review	defect (bug)	reopened	dev-feedback	2018-02-06T21:56:46Z	2022-05-13T09:56:29Z	"After updating to 4.9.4 my media library is empty locally and on my server. I confirmed this on a handful of sites that I have updated.

I cleared the cache and also checked the console.

I don't see any errors or any ajax requests being made.

The /wp-json/wp/v2/media does however contain a response with media.

Locally I am running latest OSX, my server is Ubuntu 16.04 both with PHP ~7.0"	adampatterson
1	58147	bugfix: rewind_posts when posts array index != 0		Query	6.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-04-17T16:52:09Z	2023-04-18T18:44:46Z	"
When the posts array doesn't start with the index 0, it generates an error due to hard code `0`.

Before:
{{{#!php
<?php
public function rewind_posts() {
    $this->current_post = -1;
    if ( $this->post_count > 0 ) {
        $this->post = $this->posts[0];
    }
}
}}}

After:
{{{#!php
<?php
public function rewind_posts() {
    $this->current_post = -1;
    if ( $this->post_count > 0 ) {
        $this->post = $this->posts[array_key_first($this->posts)];
    }
}
}}}
"	diogovf
1	37762	cache_results parameter doesn't prevent queried posts from being added to cache	boonebgorges	Query	4.6	normal	normal	Future Release	defect (bug)	assigned	dev-feedback	2016-08-22T09:39:42Z	2022-06-15T13:23:14Z	"Even when `cache_results` is set to `false`, the queried posts in `WP_Query` are still mapped to `get_post()` which will  always add post instance to cache.

For more info: http://wordpress.stackexchange.com/questions/236653/how-to-prevent-queried-posts-from-being-added-to-cache/236659.
"	Dang Vu
1	45394	get_posts fails to return results when accessing admin with a custom user role		Query	4.9.8	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2018-11-21T17:35:55Z	2018-12-10T15:05:42Z	"Not sure if this is intentional or not, or if there are some capabilities required for custom user roles for 'get_posts' to work, but I'm finding that using 'get_posts' in a CPT metabox works exactly as expected and returns the correct results when accessing the admin as an admin or editor, however, accessing the same screen as any number of custom user roles results in 'get_posts' not returning any data.

There are no error messages and no indication anywhere online that get_posts() is somehow dependent on user role.

To my best estimation this appears to be a bug - get_posts() would work on the front end without a user being logged in, so the user level/role on the back end shouldn't be relevant to whether or not results are returned.

Here's an example:

{{{#!php
<select name=""mwss_session"">
	<option value="""">Please select a Session</option>
	<?php
		$get_sessions = get_posts( array(
			'post_type'         => 'seasonal_sessions',
			'post_status'       => 'publish',
			'posts_per_page'    => -1,
			'meta_key'          => 'mwss_session_status',
			'meta_value'        => 'true',
			'meta_compare'      => '='
		) );
		$selected_session = $mwss_session;
		foreach( $get_sessions as $active_session ) {
			$session_name = get_the_title( $active_session->ID );
			echo '<option value=""' . $session_name . '""';
			if( $selected_session === $session_name ){ echo 'selected'; }
			echo '>' . $session_name . '</option>';
		}
	?>
</select>
}}}

To recap:
- In wp-admin, logged in as Admin or editor, the dropdown is populated with results
- On front end, logged in with custom user role (most basic level, almost equivalent to a subscriber), the dropdown is populated with results
- in wp-admin, logged in as custom user role, (consistent with editor caps), the dropdown is empty"	tonydjukic
1	45894	is_home conditional tag returns incorrect value with home pagination		Query	5.0.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2019-01-10T00:29:26Z	2019-01-10T12:23:45Z	"I create a index page with simple posts loop that paginate with 'the_posts_pagination' function, in default index 'is_home' returns true but when I navigate to page 2, 'is_home' returns true again!

The reading options is set on default values.

I check $wp_query in these 2 page, when 'is_page' is true we aren't in home.

So I add this condition and create the patch."	man4toman
1	49550	is_home is set to true even for cron jobs, which causes sticky posts to get prepended to all WP_Query results		Query	5.3.2	normal	normal	Awaiting Review	defect (bug)	new		2020-02-28T21:10:32Z	2023-02-24T23:41:36Z	"Hi,

We just ran into a bug where sticky posts were prepended to the list of posts being processed by a WP cron job in a new `WP_Query` like this:

{{{
$query = new WP_Query([
        'post_status' => 'future',
        'date_query' => array(
            'before' => '- 1 minute'
        ),
        'numberposts' => -1
    ]);
}}}

To my surprise, once someone stickied a post, our function in the cron job started doing stuff to the stickied posts, even though it simply runs in WP cron and we're not on the homepage.

I then looked at the logic that determines if the sticky posts get prepended.

{{{
// Put sticky posts at the top of the posts array
$sticky_posts = get_option( 'sticky_posts' );
if ( $this->is_home && $page <= 1 && is_array( $sticky_posts ) && ! empty( $sticky_posts ) && ! $q['ignore_sticky_posts'] ) {
}}}

So this can only fire when `is_home` is true. But how can it be? We're running via WP cron.

Looking at that logic:

{{{
if ( ! ( $this->is_singular || $this->is_archive || $this->is_search || $this->is_feed || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) || $this->is_trackback || $this->is_404 || $this->is_admin || $this->is_robots ) ) {
    $this->is_home = true;
}
}}}

Since none of these are set - we're in WP cron - `is_home` gets set to true. That doesn't seem right. Is this a sneaky bug or am I missing something? Shouldn't it also check if it's running in cron here and not set `is_home` if so?"	archon810
1	40166	query_vars bug sets is_home to false.		Query	4.7.3	normal	normal	Awaiting Review	defect (bug)	new		2017-03-15T18:36:27Z	2019-05-20T09:17:12Z	"Hi @boonebgorges, in reference to an older ticket - #25143 following is the issue i am facing.

Similar to the other ticket, when registering a query variable as follows:

{{{#!php
<?php
function wppbi_register_query_vars($vars){
	$vars[] = get_option('wppbi_file_url_parameter');
	return $vars;
}
add_filter('query_vars', 'wppbi_register_query_vars');
}}}

the is_home variable is set to false when visitng the homepage as such http://yoursite.com/?foo=1 while http://yoursite.com/ works perfectly.

Any solutions are appreciated."	avengers
1	40660	the_post_navigation not excluding terms - wp 4.7.4		Query	4.7.4	normal	normal	Awaiting Review	defect (bug)	new	close	2017-05-04T10:05:34Z	2026-10-07T07:53:25Z	"I'm retrieving the post navigation as so 

 {{{#!php
<?php
$args = array(
        'in_same_term' => true,
        'excluded_terms'     => '129',
        'taxonomy' => 'category'
    );
    the_post_navigation( $args )

}}}


I've debugged and it constructs the $where clause here as it should (properly excluding the term) https://github.com/WordPress/WordPress/blob/master/wp-includes/link-template.php#L1647

{{{
$where =
AND tt.taxonomy = 'category' AND tt.term_id IN (127) AND p.ID NOT IN ( SELECT tr.object_id FROM wp_term_relationships tr LEFT JOIN wp_term_taxonomy tt ON (tr.term_taxonomy_id = tt.term_taxonomy_id) WHERE tt.term_id IN (129) ) AND ( p.post_status = 'publish' OR p.post_status = 'private' )
}}}

This is then replaced here https://github.com/WordPress/WordPress/blob/master/wp-includes/link-template.php#L1716 it improperly constructs the where clause so that the result is as follows


{{{
$where =
WHERE p.menu_order > '2' AND p.post_type = 'post' AND p.post_status = 'publish'
}}}


This means i cannot excluded other categories from the post navigation or specify which categories to exclude.






"	Sbaxter_Quba
1	39120	Add get/set methods to remaining main query classes (comments and terms)		Query		normal	normal	Awaiting Review	enhancement	new	has-patch	2016-12-06T20:40:36Z	2018-04-07T12:08:19Z	"Interacting with the `$query_vars` property in `WP_Query` or `WP_User_Query` is handled through the `get()` and `set()` methods. It would be great if this could be a unified generic interface for WP's other main query classes, `WP_Comment_Query` and `WP_Term_Query`.

Patches attached."	Offereins
1	63044	Add method to test whether currently viewing the site home page in WP_Query		Query		normal	normal	Awaiting Review	enhancement	new	has-patch	2025-03-03T16:56:37Z	2025-03-03T17:48:37Z	"Currently, WP_Query offers to methods to test the home page qualities for a site, `is_front_page()` and `is_home()`, but neither of these actually verify that this is truly the site's home page.

To test the home page, you need to check both values, compare them against the queried object ID, and verify that pagination isn't set. 

While this isn't particularly complex (`$is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) );`), it is confusing and verbose. 

Adding a method such as `is_home_page()` that produced this logic would make it simpler to test whether you are viewing the actual root.

See #62895 as a case where this would have been helpful for simplification."	joedolson
1	62953	Add post_ancestor as query var to WP_Query class	bbpaule	Query		normal	normal	Awaiting Review	enhancement	assigned	has-patch	2025-02-12T16:18:20Z	2025-05-26T14:29:53Z	"Issue on Gutenberg:
- https://github.com/WordPress/gutenberg/issues/54461

More specifically, have a look at the last few paragraphs of this comment:
- https://github.com/WordPress/gutenberg/issues/54461#issuecomment-2608989671



== What
Add `post_ancestor` as a query var to the WP_Query class.  This var should accept a page id and will fetch all descendants of that page from the database. 


== Why
I'm working on adding a toggle to the Gutenberg editor that shows ''all'' descendants (not just the direct children) of the current page (see link to GitHub comment above).  Currently the WP_Query class only allows you to fetch the direct children of a list of pages through the use of either `post_parent` or `post_parent__in`.  


== Recommend Approach

- In the WP_Query class, add `post_ancestor` as one of the query props.
- If `post_ancestor` is present then the `post_parent` and `post_parent_in` props should be ignored.
- The query should get 'all' pages from the database.
- Then filter out the descendant pages using `get_page_children` (docs: https://developer.wordpress.org/reference/functions/get_page_children/).

== Other approaches
Instead of `get_page_children`, we could loop over the page hierarchy and execute a different sql query for every depth we need to fetch children from. (So one sql query would fetch the direct children of the parent, a second sql query would fetch the children of those children, etc, etc).
- Each post/page has a `post_parent` property in the db.  So it's very easy to get the direct children of  a page but getting the grandchildren is more difficult and requires something similar to the algorithm defined above.

== Discussion
Are people happy with my recommended approach?  I'm happy to do this ticket myself.

"	bbpaule
1	56105	Call update_post_parent_caches in the_post function in WP_Query class		Query		normal	normal	Awaiting Review	enhancement	new	needs-unit-tests	2022-06-30T12:01:38Z	2023-04-20T12:55:57Z	"Hello Team,

In {{{the_post}}} function {{{class WP_Query}}}, {{{update_post_author_caches}}} is already in use but not {{{update_post_parent_caches}}}.

I am not sure if it is because of {{{update_post_parent_caches}}} calls the private function {{{_prime_post_caches}}} or what."	priyankkpatel
1	40434	Optimize SQL in Admin - In the Post/CPT List `wp-admin/edit.php` > the function get_posts()		Query	4.7.3	normal	normal	Awaiting Review	enhancement	new		2017-04-13T09:00:56Z	2025-02-12T16:45:53Z	"When we list a post, a page or a custom-post-type the default query is 
{{{
SELECT SQL_CALC_FOUND_ROWS en_posts.ID
FROM en_posts 
WHERE 1=1 
AND en_posts.post_type = 'post'
AND (en_posts.post_status = 'publish'
OR en_posts.post_status = 'moderation'
OR en_posts.post_status = 'refusal'
OR en_posts.post_status = 'future'
OR en_posts.post_status = 'draft'
OR en_posts.post_status = 'pending'
OR en_posts.post_status = 'private') 
ORDER BY en_posts.post_date DESC
LIMIT 0, 20
}}}


This query cause slow queries. The operation `OR` is not appropriate and not optimize.
It is better to use the operation `IN`.

I propose to change lines in the `clasw-wp-query.php` line 2348:

Today :
{{{#!php
<?php
		} elseif ( !$this->is_singular ) {
			$where .= "" AND ({$wpdb->posts}.post_status = 'publish'"";

			// Add public states.
			$public_states = get_post_stati( array('public' => true) );
			foreach ( (array) $public_states as $state ) {
				if ( 'publish' == $state ) // Publish is hard-coded above.
					continue;
				$where .= "" OR {$wpdb->posts}.post_status = '$state'"";
			}

			if ( $this->is_admin ) {
				// Add protected states that should show in the admin all list.
				$admin_all_states = get_post_stati( array('protected' => true, 'show_in_admin_all_list' => true) );
				foreach ( (array) $admin_all_states as $state ) {
					$where .= "" OR {$wpdb->posts}.post_status = '$state'"";
				}
			}

			if ( is_user_logged_in() ) {
				// Add private states that are limited to viewing by the author of a post or someone who has caps to read private states.
				$private_states = get_post_stati( array('private' => true) );
				foreach ( (array) $private_states as $state ) {
					$where .= current_user_can( $read_private_cap ) ? "" OR {$wpdb->posts}.post_status = '$state'"" : "" OR {$wpdb->posts}.post_author = $user_id AND {$wpdb->posts}.post_status = '$state'"";
				}
			}

			$where .= ')';
		}
}}}

The proposition :
{{{#!php
<?php
		} elseif ( !$this->is_singular ) {
			$where_status[] = 'publish';

			// Add public states.
			$public_states = get_post_stati( array('public' => true) );
			foreach ( (array) $public_states as $state ) {
				if ( 'publish' == $state ) // Publish is hard-coded above.
					continue;
				$where_status[] = $state;
			}

			if ( $this->is_admin ) {
				// Add protected states that should show in the admin all list.
				$admin_all_states = get_post_stati( array('protected' => true, 'show_in_admin_all_list' => true) );
				foreach ( (array) $admin_all_states as $state ) {
					$where_status[] = $state;
				}
			}

			if ( is_user_logged_in() ) {
				// Add private states that are limited to viewing by the author of a post or someone who has caps to read private states.
				$private_states = get_post_stati( array('private' => true) );
				foreach ( (array) $private_states as $state ) {
					$where_status[] = $state;
					$where_post_author = current_user_can( $read_private_cap ) ? """" : "" OR {$wpdb->posts}.post_author = $user_id"";
				}
			}
			$where .= "" AND ( {$wpdb->posts}.post_status IN ('"" . implode(""','"",$where_status) . ""')"";
			$where .= $where_post_author;
			$where .= ')';
		}
}}}

And the result is better :
{{{
SELECT SQL_CALC_FOUND_ROWS en_posts.ID
FROM en_posts 
WHERE 1=1 
AND en_posts.post_type = 'post'
AND ( en_posts.post_status IN ('publish','moderation','refusal','future','draft','pending','private')) 
ORDER BY en_posts.post_date DESC
LIMIT 0, 20
}}}

It would be interesting to do the same work on other parts of get_posts where the `OR` is used."	lriaudel
1	41843	Provide more flexibility to the `get_{$adjacent}_post_where` hook		Query	4.9	normal	normal	Awaiting Review	enhancement	new		2017-09-09T15:33:07Z	2019-03-13T18:09:55Z	"I'm working on getting the previous/next post for a Custom Post Type based on a certain postmeta value, and the `get_{$adjacent}_post_where` seems the appropriate hook for this. However, it currently receives the whole WHERE clause as a parameter. IMO it would be ideal to be able to override just the `WHERE p.post_date $op %s AND p.post_type = %s` part and keep the other (useful ones) intact.

This could potentially be solved in a non-breaking way by sending `$where` as it stands ''before'' concatenation with `WHERE p.post_date $op %s AND p.post_type = %s`, so that authors can neatly plugin a postmeta condition."	danburzo
1	61048	order sticky posts using the same order for posts		Query	6.5	normal	major	Awaiting Review	enhancement	new		2024-04-22T11:51:21Z	2024-04-22T12:00:04Z	"Currently sticky posts are shown unordered.

I suggest the following code amendments in includes/class-wp-query.php to order sticky posts in the same way as the regular posts ordered.

{{{
3509c3509,3511
<                                               'lazy_load_term_meta'    => $q['lazy_load_term_meta']
---
>                                               'lazy_load_term_meta'    => $q['lazy_load_term_meta'],
>                                               'order'                  => $q['order'],
>                                               'orderby'                => $q['orderby']
}}}"	vladimir173
1	60490	Add 'author__in' option to WP_Query 'orderby' options		Query		normal	normal	Awaiting Review	feature request	new		2024-02-09T18:31:07Z	2024-02-09T21:34:45Z	"I would like to be able to preserve the author ID order given in the WP_Query author_^^_in array.

This would work like how the orderby post_^^_in option works but for author_^^_in instead.

So, for example we already have:

'post_^^_in' – Preserve post ID order given in the post_^^_in array

And we'd be adding:

'author_^^_in' – Preserve author ID order given in the author_^^_in array

(https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters)

Would it be possible to add this option to WP Core?"	bburgay
1	56168	Add a way easily perform advanced post fields queries		Query		normal	trivial	Awaiting Review	feature request	new		2022-07-07T13:12:12Z	2022-07-07T13:12:12Z	"Currently if you want to perform advanced queries on the posts table you have to add your custom SQL to the query with the `posts_where` filter.

For example, let's say we want to get the next page with a `menu_order` value greater than the current page we would currently do something like:

{{{#!php
<?php
add_filter( 'posts_where', function( $where, $query ) {
    global $wpdb;

    $value = $query->query['menu_order_gt'] ?? null;

    if ( is_numeric( $value ) ) {   
        $where .= "" AND {$wpdb->posts}.menu_order > {$value} "";
    }

    return $where;
}, 10, 2 );

$query = new WP_Query( [
  'post_type' => 'page',
  'posts_per_page' => 1,
  'menu_order_gt' => (int)get_post_field( 'menu_order' )
] );
}}}


I suggest adding a class like `WP_Meta_Query` but for post fields meaning we could achieve the same result as above but in a much cleaner and simpler way...

{{{#!php
<?php
$query = new WP_Query( [
  'post_type' => 'page',
  'posts_per_page' => 1,
  'field_query' => [
    [
      'field' => 'menu_order',
      'value' => (int)get_post_field( 'menu_order' ),
      'compare' => '>',
      'type' => 'NUMERIC'
    ]
  ]
] );
}}}

"	thelevicole
1	39632	Adding Query identifier attribute		Query		normal	normal	Awaiting Review	feature request	new		2017-01-18T19:55:17Z	2017-06-07T21:13:26Z	"You create any query by passing the arguments to `WP_Query`.
What will happen if we add the custom query identifier `_id` like this?

{{{#!php
<?php
$args = array(
  '_id' => 'custom_name',
   ...    
);
$q = new WP_Query( $args );
}}}

Nothing bad, and one good thing.

Using this `_id` I can work with filters like `posts_where` super easy.
This would work for many other filters from ''wp-includes/class-wp-query.php''

{{{#!php
<?php
function _20170118_posts_where( $where,  \WP_Query $q ){
  // $q->query will hold the query arguments ...
  if ( 'custom_name' == $q->query['_id'] ){
    // do our improvement on $where 
    return $where.
  }
 return $where;
}

add_filter( 'posts_where', '_20170118_posts_where', 10 , 2 );
}}}

If you need more details here is the original [http://wordpress.stackexchange.com/questions/252246/how-to-detect-custom-query-inside-posts-where-hook/252406#comment375812_252406 example].


This already works, but we can benefit more if we add the `_id` for all WordPress core generated queries?

This should happen just after `WP_Rewrite` returns the query arguments, based on the query flags.

Let's test the future in case of main search query ( `$is_search` flag is true ).

You may write like this to address the search query:

{{{#!php
<?php
add_filter( 'posts_where', function ( $where, \WP_Query $q ) {
  if( ! is_admin() && $q->is_main_query() && $q->is_search() ){
  ... // do something with $where
  }
return $where;
}}}

but with the `_id` '''main-search''' argument, you could write:

{{{#!php
<?php
add_filter( 'posts_where', function ( $where, \WP_Query $q ) {
  if ( 'main-search' == $q->get( '_id' ) ){
  ... // do something with $where
  }
return $where;
}}}

This is somehow similar to the threads #15063 and #23833, but not exactly. 

What would be the gain? 

WordPress query programming may become simpler, and queries may be managed using '''human-readable''' names.
"	prosti
1	55287	Allow for DISTINCT in WP_Query method		Query		normal	normal	Awaiting Review	feature request	new	reporter-feedback	2022-03-01T15:55:09Z	2025-09-11T23:42:23Z	"Dear wordpress developers,

Currently I'm working with a plugin to create designs.
This plugin has an element called a repeater element that basically makes use of the core `WP_Query` method in order to fetch custom post types or normal post types.

However, since I'm using this page builder or theme builder, I am in no way capable of using `DISTINCT` within the filter https://developer.wordpress.org/reference/hooks/posts_distinct/
Because this requires me to send the `WP_Query` instance, which is basically only used within the repeater element and can not be set to a variable in this particular case.

This means I'll have to rebuild everything through code, instead of being able to use my page or theme builder.

Now I get the idea of saying this is a bug with the page or theme builder plugin.
But in fact, what I want to know is why are we using a filter to create a `DISTINCT` query inside of `WP_Query`? Isn't it possible to implement this inside of the `WP_Query` arguments instead? I basically want to say: fetch posts with unique titles. This seems much more logical as the SQL query is build from `WP_Query`...

I've already looked through the entire codex, and couldn't find any possible parameter that could be used for this...

My question to you is: Can this please be added to WordPress core?
I find it highly frustrating that `WP_Query` doesn't have this sort of capabilities out of the box."	simbaclaws
1	63094	Allow ordering by meta_id in a meta query		Query		normal	normal	Awaiting Review	feature request	new		2025-03-13T08:46:21Z	2025-03-13T08:46:21Z	"It is currently not possible to order by wp_postmeta.meta_id during a meta query. This would be useful because it allows rows to return in the order they were inserted into the table.

A real use case example is where a custom field plugin exposes a multiple ""Add item"" mechanism with the option to reorder them. Pods for example does this with their relationship type field with multiple selection and reordering. The meta data is then inserted in to the postmeta table in the desired order."	jamieburchell
1	37837	Extend WP_Query author parameters to filter by role		Query	4.7	normal	normal	Awaiting Review	feature request	new		2016-08-26T10:25:01Z	2017-03-30T17:01:37Z	"WP_Query contains a series of author parameters (`author', ' author_name', ' author__in', and `author__not_in` as documented on the Codex).

It wpould be nice to add `author_role__in` and maybe `author_role__not_in` as valid parameters, and be able to also query for posts given one or a set of user roles. I can see a lot of usages, and this has indeed been asked inside the community in some places, although I could not find a Track dedicated ticket.

AFAIK, this would require the WP_Query database interaction to include the usermeta table, which can be expensive by default, and add a LIKE statement against the `wp_capabilities` usermeta field value, which is also expensive by default. So this might introduce performance problems and be discarded because of that. But otherwise, I would like that we consider this as a possible feature to add."	jadpm
1	58600	wp_query Enhancement		Query	6.2	normal	normal	Awaiting Review	feature request	new	close	2023-06-22T13:21:56Z	2023-07-03T16:51:04Z	"I wolud like to enhance the wp_query to retrive post base on catgory orders.

Category Ex. with post

Mobile -: Post-1, Post-3, Post-6
Appliance -: Post-2, Post-8, Post-10

I Need Posts like in this order using wp_query of order by category ASC/DESC

Current output is according to ID order
Post-1
Post-2
Post-3
Post-6
Post-8
Post-10

Expected output
Post-2
Post-8
Post-10
Post-1
Post-3
Post-6"	thakordarshil
1	60945	"""Quick Edit"" in Posts and Pages doesn't work in 6.5"		Quick/Bulk Edit	6.5	normal	normal	Awaiting Review	defect (bug)	new		2024-04-06T12:36:48Z	2025-05-12T01:38:20Z	"In Posts or Pages list, I click on the ""Quick Edit"" link under the post name.
The post disappears from the list (the entire row in the table is gone).
I refresh the page and the post is back on the list.

No matter how many times I tested it, it always happens exactly as described.

My Pages list has a few columns form other plugins (AIOSEO and Search Exclude), but the Posts doesn't have any aside from the default WordPress columns."	nelchee
1	53195	Add $post or $post_id to the quick_edit_custom_box hook		Quick/Bulk Edit		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-05-12T11:17:34Z	2026-09-11T08:06:01Z	"Right now when you're adding a custom box to quick edit, you can't set an existing value without using JavaScript, cause you don't have acces to the post. For a more elaborate explanation, see the User Contributed Notes, top one by stevenlinx: https://developer.wordpress.org/reference/hooks/quick_edit_custom_box/

It would be more elegant if we could just use the post within the hook I think."	tomdevisser
1	39946	Private posts can be sticky when bulk editing them from wp-admin/edit.php		Quick/Bulk Edit		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2017-02-22T22:10:00Z	2026-08-12T09:28:54Z	"[[Image(https://cldup.com/ZsJC4iH0GM.png)]]

Although it's not possible to inline-edit a Private post to be sticky or to Publish a private post as sticky from the Publish meta box, as shown on the above screen capture, it's possible to do it using the Bulk edit action of the `wp-admin/edit.php` screen."	imath
1	60329	Quick Edit tags-input drop-down selection box hangs exactly over the Published/Draft/Queud selection-box		Quick/Bulk Edit	6.4.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-01-23T16:48:42Z	2024-01-30T01:12:29Z	"So, if I'm not careful when selecting tags from the drop-down-selection-box, if I accidentally click on the published/draft/queud box, it can change it from Published to Draft, for example, which has happened more than once before.
So, articles that were published suddenly find themselves unpublished, and the person who was inputting tags in the Quick-Edit space doesn't know what happened - that they accidentally unpublished the article.
Maybe put the Published-selection box above the tags please? 
I've got screen-shots, but the image insert button works strangely for me - can't access my computer from here to attach them?
This request is mainly for the Gibraltar-Messenger site (not particularly mine) but this issue woud apply to so many others.
Thank-you.
"	phithx
1	54378	Admin Pages - The dropdown of 'Main Page (no parent)' on QuickEdit query is slow		Quick/Bulk Edit		normal	normal	Awaiting Review	enhancement	new	has-patch	2021-11-04T22:55:38Z	2026-11-05T08:31:43Z	"Hi, It seems like the file ""wordpress/wp-admin/includes/class-wp-posts-list-table.php"", line ""wp_dropdown_pages( $dropdown_args );"" that used to display the QuickEdit dropdown for 'Main Page (no parent)' is triggering a SQL query on all columns of the wp_posts table for all top level pages. This cause a very slow query if the system has lots of top level pages. Should WP use a more optimize query for this dropdown list that only going to display the Page title? 

The query used for the drop down is:

SELECT *
FROM wp_posts
WHERE (post_type = 'page'
AND post_status = 'publish')
ORDER BY menu_order,wp_posts.post_title ASC

"	activecoder
1	11472	Should QuickEdit remove posts from lists as needed?		Quick/Bulk Edit	2.9	low	minor	Future Release	enhancement	new		2009-12-17T10:29:38Z	2019-12-09T17:54:37Z	"Create a draft post. Visit Posts / Edit, and quickedit the draft. Set its status to Published and save. It remains around, with the published status, instead of being removed from the list.

Reporting this just in case, as it might be a UI feature rather than a bug.
"	Denis-de-Bernardy
1	59374	"Bulk Edit does not let me remove ""Uncategorized"" for categorized posts"		Quick/Bulk Edit	6.3.1	normal	normal	Awaiting Review	feature request	new		2023-09-17T11:23:39Z	2025-09-06T17:23:06Z	"Bulk Edit Posts does not let you remove category ""Uncategorized"" even when the posts do all have an additional Category."	cmdgw
1	64045	/wp-json/wp/v2/menus incorrectly emits 403 for invalid `post` param		REST API	6.8.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-09-27T02:50:50Z	2025-09-27T02:52:51Z	"This endpoint expects the `post` param to be the Post ID for a `nav_menu_item`, but if the Post ID for a post/page/etc is provided the following response is returned:


{{{
{
  ""code"": ""rest_forbidden_context"",
  ""message"": ""Sorry, you are not allowed to view terms for this post."",
  ""data"": {
    ""status"": 403
  }
}
}}}

It should probably look more like:


{{{
{
  ""code"": ""rest_post_invalid_type"",
  ""message"": ""Invalid post type."",
  ""data"": {
    ""status"": 400
  }
}
}}}"	jkmassel
1	39889	Improve/Fix REST Response on Multisite when an endpoint for a non-existent site is hit.		REST API	4.7	normal	normal	Future Release	defect (bug)	new	needs-unit-tests	2017-02-16T15:52:54Z	2019-07-09T18:42:18Z	"Currently if you hit the endpoint for a domain on a site that doesn't exist it will behave the same as on a normal request.

- visit https://nonexistentsubdomain.eventsmart.com/wp-json in a REST client.
- Take note of the ""Location"" header in the response: https://eventsmart.com/wp-signup.php?new=nonexistentsite.  It's also returned with a HTTP 302

Granted this is kind of edgecase, but I think it'd be better to handle things a bit better on REST requests.  The question is how?  I think from the standpoint of the REST client it'd be better to just return a 404 and a ""site doesnt' exist"" message (or something to that affect)."	nerrad
1	57945	Locale bug in short-circuited WP REST API request via rest_pre_dispatch?		REST API	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	close	2023-03-19T06:07:49Z	2023-03-20T05:58:34Z	"To reproduce the issue: you may register a custom REST endpoint using {{{register_rest_route}}} in your main plugin file of your custom plugin. That endpoint simply produces a response via localization, via a {{{__('sample-string','my-plugin')}}} call and the according {{{.mo/.po}}} files within {{{plugins/my-plugin/languages}}}, as well as in {{{languages/plugins/..}}} (tested both to be sure).

Next, access your frontend, without being logged in into the admin, in a language which is not the default of the page, e.g. by creating two translations of a page via Polylang. Fire a REST API request to your custom endpoint. {{{__('sample-string','my-plugin')}}} is returned back to the frontend in the site's default language, and not in the (non-default) language of the page.

As a workaround for this, I:
- send a custom HTTP header along with every WP REST request (e.g. X-MYP-LANG)
- created custom callback in main plugin file, hooked onto init hook, to get its value and then {{{switch_to_locale}}} accordingly.

- result: correct translation of {{{__('sample-string','my-plugin')}}} is now output.

PROBLEM:
Whenever I short-circuit a custom REST request's response via {{{rest_pre_dispatch}}}, this stops working. You may return a {{{WP_Error}}} via the {{{rest_pre_dispatch}}} hook for any incoming request to your custom endpoint. The message of that {{{WP_Error}}} being a localization, e.g. {{{__('error message','my-plugin')}}}, it is returned back in the default language, no matter if I {{{switch_to_locale('target_language')}}} explicitly right before returning the {{{WP_Error}}}, reload the plugin textdomain via {{{load_plugin_textdomain()}}} before doing so, or both. Bug?
"	joeyojoeyo12
1	53942	Non-single post meta multiple value update breaks post save through REST API		REST API	5.8	normal	blocker	Awaiting Review	defect (bug)	assigned		2021-08-17T13:00:31Z	2021-08-17T15:21:25Z	"This is a follow-up to #52787.

Same situation as in #52787, but this time while updating **non-single** meta **multiple values at once** like `{ meta: { metaKey: [1, 2, 3] } }`, REST API fires `update_multi_meta_value()`, which tries first to delete old values in the database. When no meta value is present in database, `get_metadata()` returns defaults as `$current_values` and then trying to delete them anyway (non-existent in fact). This causes `update_multi_meta_value()` to return `WP_Error('rest_meta_database_error')` on `delete_metadata()` failure.

BTW, error messages could be more specific from `'Could not update the meta value of %s in database.'` to `'Could not update/delete...'` and `'Could not update/add...'`."	iknowsomething
1	53828	Nullable registered meta with format does not display in JSON schema		REST API		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-07-29T16:06:34Z	2026-10-15T14:53:30Z	"When registering a piece of meta as a nullable type in the REST schema, it does not display in the JSON schema for the particular object.

For example, the following will not correctly register a meta key in REST:

{{{#!php
<?php
register_meta(
	'post',
	'backgroundColor',
	[
		'single'       => true,
		'type'         => 'string',
		'show_in_rest' => [
			'schema' => [
				'title'  => __( 'Background Color' ),
				'type'   => [ 'string', 'null' ],
				'format' => 'hex-color',
			],
		],
	],
);
}}}

The key will not be visible in the JSON schema, and the key/value pair will also not be available in the meta object in the post response from the API."	chrisvanpatten
1	66167	REST API Themes Endpoint Allows Directory Traversal to Read style.css Outside the Themes Directory		REST API		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-09-23T18:52:04Z	2026-09-24T15:00:38Z	"Detailed description at the attached link:\\
https://drive.google.com/file/d/1Zf6yDNCW6pjN4iW6Uxtt6I2Iia4EuUUz/view\\
Thank you, everyone, for taking the time to read the report.

"	truonghuuphuc
1	66531	REST API: Attachment source_url values are not URL-encoded, unlike the media modal		REST API		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-11-06T07:46:29Z	2026-11-06T07:57:08Z	"When an attachment's URL contains spaces, the REST API returns them unencoded, while the media modal (`wp_prepare_attachment_for_js()`) returns them encoded as `%20`. Code that compares the URL from a media modal selection against `media_details.sizes[*].source_url` from the REST API therefore fails to match.

Originally reported in Gutenberg: [https://github.com/WordPress/gutenberg/issues/86388 #86388]

== Cause ==

[https://github.com/WordPress/wordpress-develop/blob/54312c753fd44a38101fe0c2a8badce811857557/src/wp-includes/media.php#L4677 wp_prepare_attachment_for_js()] runs every URL through `esc_url_raw()`, which turns spaces into `%20`. [https://github.com/WordPress/wordpress-develop/blob/54312c753fd44a38101fe0c2a8badce811857557/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php#L1507 WP_REST_Attachments_Controller::prepare_item_for_response()] returns `source_url` and `media_details.sizes[*].source_url` without escaping.

Core already works around this in [https://github.com/WordPress/wordpress-develop/blob/54312c753fd44a38101fe0c2a8badce811857557/src/wp-includes/media.php#L1642 wp_calculate_image_srcset()] by replacing spaces with `%20` itself.

== Steps to reproduce ==

1. Make the uploads directory contain a space, for example with an `upload_dir` filter that points `path` and `url` at `uploads/my uploads/`.
2. Upload an image.
3. Compare `wp.media.attachment( id ).get( 'url' )` with `source_url` from `GET /wp/v2/media/<id>`.

Expected: both return `…/my%20uploads/image.png`.

Actual: the REST API returns `…/my uploads/image.png`, and each entry in `media_details.sizes` is unencoded too.

Uploaded filenames have their spaces turned into dashes, so in practice this shows up when the uploads directory or site URL contains spaces.

== Proposed fix ==

In `prepare_item_for_response()`, replace spaces with `%20` in `source_url` and in each size's `source_url`, as `wp_calculate_image_srcset()` does:

{{{
$size_data['source_url'] = str_replace( ' ', '%20', $image_src[0] );
}}}

Using `esc_url_raw()` instead would match the media modal exactly, but it changes the output more broadly, since it also strips characters and checks the protocol."	yashjawale
1	65240	REST API: WP_REST_Plugins_Controller::create_item() fatals when plugins_api response lacks language_packs property		REST API	6.9.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-05-14T12:35:49Z	2026-05-14T19:56:51Z	"When installing a plugin via the REST endpoint `POST /wp/v2/plugins`, `WP_REST_Plugins_Controller::create_item()` calls `plugins_api( 'plugin_information', ... )` requesting `language_packs => true`, then immediately runs `array_map()` over `$api->language_packs` without checking whether the property is set or is an array.

If the API response does not include a populated `language_packs` key — which can happen when the plugin has no translation packs on translate.wordpress.org for any installed locale, when wp.org returns a partial response, or when the result is filtered by a third party — accessing `$api->language_packs` produces a PHP Warning, then immediately triggers a Fatal TypeError on the array_map call. Both originate from the same request.

The install itself has already succeeded by the time the fatal fires — `$upgrader->install( $api->download_link )` runs and completes before the language pack section is reached, so the plugin files are on disk. The REST response returns a 500 even though the install succeeded. This causes spurious error UI in any caller that uses this endpoint and produces noisy logs in production. We are seeing this consistently in the wild from at least one widely deployed third-party caller (Elementor One's app installer) and the volume is enough that one major managed WordPress host has flagged the resulting 500 spike to customers.

**File:** `wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php`

**Offending code (around lines 380–385):**

```php
$language_packs = array_map(
    static function ( $item ) {
        return (object) $item;
    },
    $api->language_packs
);
```

**Error output:**

```
PHP Warning: Undefined property: stdClass::$language_packs in
  /wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php on line 387

PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type
  array, null given in /wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:383
```

**Steps to reproduce:**

1. Send an authenticated `POST` request to `/wp-json/wp/v2/plugins` with a `slug` for a plugin whose `plugins_api` response does not contain a populated `language_packs` array.
2. Observe that the plugin is correctly installed to `wp-content/plugins`.
3. Observe that the REST request returns HTTP 500.
4. Observe the warning and fatal in the PHP error log.

**Suggested fix:**

Guard the array_map call:

```php
$language_packs = array();
if ( ! empty( $api->language_packs ) && is_array( $api->language_packs ) ) {
    $language_packs = array_map(
        static function ( $item ) {
            return (object) $item;
        },
        $api->language_packs
    );
}
```

Alternatively, normalize the `plugins_api` response so that `language_packs` is always present as an array (even empty) when requested via the `fields` parameter.

**Environment:**

- WordPress 6.9.4
- PHP 8.x (the strict TypeError behavior requires PHP 8.0+)
- Reproduced on WP Engine hosting

**Related tickets (same defensive-coding pattern):**

- #44582 — Undefined property stdClass::$plugin
- #59413 — Undefined property stdClass::$plugin in class-wp-automatic-updater.php
- #46382 — Undefined property stdClass::$current in class-walker-nav-menu.php

This is part of a broader pattern of WP core code paths that trust stdClass properties on API responses without guards. The fix here is one-line and low-risk."	flipcreative
1	65754	Revisionable, Multivalue Post Meta are not saved properly via REST autosave		REST API	6.4	normal	normal	Future Release	defect (bug)	new	has-patch	2026-07-29T14:12:50Z	2026-08-11T09:53:15Z	"The Autosave REST API controller does not take into account meta fields that may be multivalued, it seems to assume all meta fields passed to it are single ([https://core.trac.wordpress.org/browser/trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php?rev=62334#L442 trac source]):

{{{
// Attached any passed meta values that have revisions enabled.
if ( ! empty( $meta ) ) {
	foreach ( $revisioned_meta_keys as $meta_key ) {
		if ( isset( $meta[ $meta_key ] ) ) {
			update_metadata( 'post', $revision_id, $meta_key, wp_slash( $meta[ $meta_key ] ) );
		}
	}
}
}}}

== Set up

1. Register a revisionable, multivalue post meta field. Minimal plugin example:
{{{
<?php
/*
 * Plugin Name: Test Autosave
 */

function _test_autosave_register_meta() {
	$args = array(
		'sanitize_callback' => 'sanitize_text_field',
		'show_in_rest'      => array(
			'schema' => array(
				'type' => 'string',
			),
		),
		'revisions_enabled' => true,
	);
	register_post_meta( 'post', 'foo', $args );
}
add_action( 'init', '_test_autosave_register_meta' );
}}}

2. Set the `AUTOSAVE_INTERVAL` to something low for easier testing, like `5`:
{{{
wp config set AUTOSAVE_INTERVAL 5 --raw
}}}
  Or
{{{
define( 'AUTOSAVE_INTERVAL', 5 );
}}}

3. Add some post meta values:
{{{
wp post meta add 1 foo bar
wp post meta add 1 foo baz
}}}

4. Verify the data in REST, `GET /wp-json/wp/v2/posts/1?_fields=meta`
{{{
{
  ""meta"": {
    ""foo"": [
      ""bar"",
      ""baz""
    ],
    ""footnotes: """"
  }
}
}}}

5. Open the post in the block editor.
6. Open devtools to be ready.
7. Edit the content.
8. Wait for autosave.
9. View the `POST /wp-json/wp/v2/posts/1/autosaves` response from the server in devtools network tab. You'll see something like:
{{{
{
  …
  ""meta"": {
    ""foo"": [
      null,
      null
    ],
    …
  }
  …
}
}}}

If you query the database directly, you'll see in the `postmeta` table, there will be 2 rows for the autosave, with identical serialized array values. Each member being `null`, and there being 2 (one for each value):
{{{
+---------+---------------------+--------------------+
| post_id | meta_key            | meta_value         |
+---------+---------------------+--------------------+
| 1       | foo                 | a:2:{i:0;N;i:1;N;} |
| 1       | foo                 | a:2:{i:0;N;i:1;N;} |
+---------+---------------------+--------------------+
}}}

This is further supports my assertion that this is incorrect behavior.
 
== WordPress Playground Reproduction

Steps 1, 2 & 3 already set up for testing.

[https://playground.wordpress.net/#ewogICIkc2NoZW1hIjogImh0dHBzOi8vcGxheWdyb3VuZC53b3JkcHJlc3MubmV0L2JsdWVwcmludC1zY2hlbWEuanNvbiIsCiAgImxvZ2luIjogdHJ1ZSwKICAibGFuZGluZ1BhZ2UiOiAiL3dwLWFkbWluL3Bvc3QucGhwP3Bvc3Q9MSZhY3Rpb249ZWRpdCIsCiAgInN0ZXBzIjogWwogICAgewogICAgICAic3RlcCI6ICJ3cml0ZUZpbGUiLAogICAgICAicGF0aCI6ICIvd29yZHByZXNzL3dwLWNvbnRlbnQvcGx1Z2lucy90ZXN0LWF1dG9zYXZlLnBocCIsCiAgICAgICJkYXRhIjogIjw/cGhwXG4vKlxuICogUGx1Z2luIE5hbWU6IFRlc3QgQXV0b3NhdmVcbiAqL1xuXG5mdW5jdGlvbiBfdGVzdF9hdXRvc2F2ZV9yZWdpc3Rlcl9tZXRhKCkge1xuXHQkYXJncyA9IGFycmF5KFxuXHRcdCdzYW5pdGl6ZV9jYWxsYmFjaycgPT4gJ3Nhbml0aXplX3RleHRfZmllbGQnLFxuXHRcdCdzaG93X2luX3Jlc3QnICAgICAgPT4gYXJyYXkoXG5cdFx0XHQnc2NoZW1hJyA9PiBhcnJheShcblx0XHRcdFx0J3R5cGUnID0+ICdzdHJpbmcnLFxuXHRcdFx0KSxcblx0XHQpLFxuXHRcdCdyZXZpc2lvbnNfZW5hYmxlZCcgPT4gdHJ1ZSxcblx0KTtcblx0cmVnaXN0ZXJfcG9zdF9tZXRhKCAncG9zdCcsICdmb28nLCAkYXJncyApO1xufVxuYWRkX2FjdGlvbiggJ2luaXQnLCAnX3Rlc3RfYXV0b3NhdmVfcmVnaXN0ZXJfbWV0YScgKTsiCiAgICB9LAogICAgewogICAgICAic3RlcCI6ICJhY3RpdmF0ZVBsdWdpbiIsCiAgICAgICJwbHVnaW5OYW1lIjogIlRlc3QgQXV0b3NhdmUiLAogICAgICAicGx1Z2luUGF0aCI6ICIvd29yZHByZXNzL3dwLWNvbnRlbnQvcGx1Z2lucy90ZXN0LWF1dG9zYXZlLnBocCIKICAgIH0sCiAgICB7CiAgICAgICJzdGVwIjogIndwLWNsaSIsCiAgICAgICJjb21tYW5kIjogIndwIHBvc3QgbWV0YSBhZGQgMSBmb28gYmFyIgogICAgfSwKICAgIHsKICAgICAgInN0ZXAiOiAid3AtY2xpIiwKICAgICAgImNvbW1hbmQiOiAid3AgcG9zdCBtZXRhIGFkZCAxIGZvbyBiYXoiCiAgICB9LAogICAgewogICAgICAic3RlcCI6ICJ3cC1jbGkiLAogICAgICAiY29tbWFuZCI6ICJ3cCBjb25maWcgc2V0IEFVVE9TQVZFX0lOVEVSVkFMIDUgLS1yYXciCiAgICB9CiAgXSwKICAicHJlZmVycmVkVmVyc2lvbnMiOiB7CiAgICAid3AiOiAibGF0ZXN0IiwKICAgICJwaHAiOiAiOC4zIgogIH0sCiAgImZlYXR1cmVzIjoge30KfQ== Link]

=== Blueprint

{{{
{
  ""$schema"": ""https://playground.wordpress.net/blueprint-schema.json"",
  ""login"": true,
  ""landingPage"": ""/wp-admin/post.php?post=1&action=edit"",
  ""steps"": [
    {
      ""step"": ""writeFile"",
      ""path"": ""/wordpress/wp-content/plugins/test-autosave.php"",
      ""data"": ""<?php\n/*\n * Plugin Name: Test Autosave\n */\n\nfunction _test_autosave_register_meta() {\n\t$args = array(\n\t\t'sanitize_callback' => 'sanitize_text_field',\n\t\t'show_in_rest'      => array(\n\t\t\t'schema' => array(\n\t\t\t\t'type' => 'string',\n\t\t\t),\n\t\t),\n\t\t'revisions_enabled' => true,\n\t);\n\tregister_post_meta( 'post', 'foo', $args );\n}\nadd_action( 'init', '_test_autosave_register_meta' );""
    },
    {
      ""step"": ""activatePlugin"",
      ""pluginName"": ""Test Autosave"",
      ""pluginPath"": ""/wordpress/wp-content/plugins/test-autosave.php""
    },
    {
      ""step"": ""wp-cli"",
      ""command"": ""wp post meta add 1 foo bar""
    },
    {
      ""step"": ""wp-cli"",
      ""command"": ""wp post meta add 1 foo baz""
    },
    {
      ""step"": ""wp-cli"",
      ""command"": ""wp config set AUTOSAVE_INTERVAL 5 --raw""
    }
  ],
  ""preferredVersions"": {
    ""wp"": ""latest"",
    ""php"": ""8.3""
  },
  ""features"": {}
}
}}}"	wongjn
1	43149	WP-API JS Client not triggering change event when using setMeta/setMetas helpers		REST API	4.9	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-01-23T16:49:55Z	2026-10-03T08:18:05Z	"As briefly [https://wordpress.slack.com/archives/C5UNMSU4R/p1516717879000467 mentioned] on Slack earlier today the `model.setMeta()` helper method introduce in #41055 has a couple of weaknesses.

1/ The `meta` attribute is undefined when creating a new model, which makes sense, but causes `setMetas()` to silently fail at set new meta values; using `setMeta()` causes an error.

{{{#!javascript
var post = new wp.api.models.Post( { id : 1234 } );
post.setMetas( { foo : 'bar' } ); // post.attributes.meta remains undefined
post.setMeta( 'foo', 'bar' ); // TypeError: metas is undefined
}}}

2/ When the  `meta` attribute is properly defined, some changes in meta values fail to trigger a change event. Provided that the above issue does not show:

{{{#!javascript
var post = new wp.api.models.Post( { id : 1234 } );
post.on( 'change:meta', console.log );
post.set( 'meta', { foo : 'bar' } ); // trigger change event
post.setMetas( { foo : 'BAR' } ); // Does not trigger change event
post.setMeta( 'foo', 'BAR' ); // Does not trigger change event
}}}

Values are correctly updated; the `change` event is just not triggered as it should.

The only way I found to make this work is to clone the `meta` attribute in `setMeta()`/`setMetas()`. As of now these methods simply retrieve the `meta` attribute using `get()` and then `_.extend()` to add/update properties, which doesn't seem enough to make Backbone consider it a change."	caercam
1	64670	WP_REST_Posts_Controller::update_item() not passing parent to wp_unique_post_slug() for draft child		REST API	6.9.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-02-18T17:35:30Z	2026-10-16T20:42:34Z	"Editing the slug of a draft child page (or any hierarchical post type) in the block editor excludes the parent slug when determining slug interference, despite the fact that the parent slug is shown in the child's permalink, just below the slug setting input.

I believe the slug check occurs with `wp_unique_post_slug()` in `WP_REST_Posts_Controller::update_item()` of wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:967.

=== Environment

- WordPress 6.9.1
- Theme: Twenty Twenty-Five 1.4
- Plugins: none
- PHP 8.4.14
- nginx 1.29.3
- mysql 9.5.0
- macOS 15.7.3

=== Steps to Reproduce

Permalink structure: Post name

Steps 1–3 below can be done in multiple ways (block editor, wp-cli, etc.).

1. Publish a page (First Page), example slug: /slug
2. Publish another page (Parent Page), example slug: /parent
3. Create another draft page (Child Page), set its parent to Parent Page, and save the draft
4. In the block editor, edit the Child Page slug to /slug and save the draft; the slug will be changed to slug-2, even though the permalink just below the slug input shows /parent/slug and /parent/slug does not interfere with First Page /slug

Additional Notes:
- If Child Page is published, its slug can be edited to /parent/slug in the block editor.
- In draft status, Child Page can have its slug edited to /parent/slug using quick edit in admin post list.

=== Expected Outcomes

- Slug editing behavior for parent/child relationships should be the same in the block editor and admin post list quick edit.
- If the block editor slug setting shows a parent slug incorporated into a child's permalink, the parent slug should also be used to determine the child slug's interference (regardless of the child's status).

=== Possible Solutions

Before `wp_unique_post_slug()` is called in class-wp-rest-posts-controller.php:967, the following defines `$post` and `$post_parent`.

{{{
$post        = $this->prepare_item_for_database( $request );
...
$post_parent = ! empty( $post->post_parent ) ? $post->post_parent : 0;
}}}

For a draft page, `$post->post_parent` comes through as null, so it's set to 0;

`$post_before`, defined a few lines earlier at class-wp-rest-posts-controller.php:947, does contain the parent and could possibly be used to define `$post_parent` similar to `$post_status` at line 954. For example:

{{{
if ( ! empty( $post->post_parent ) ) {
    $post_parent = $post->post_parent;
} else {
    $post_parent = $post_before->post_parent ? $post_before->post_parent : 0;
}
}}}

=== Related Tickets

In #47988 @paulbonneau noted how [https://core.trac.wordpress.org/ticket/47988?#Abouttheproposedsolutioninyourlastanswer draft and pending statuses are changed to publish] for `wp_unique_post_slug()` calls in `WP_REST_Posts_Controller:create_item()` and `WP_REST_Posts_Controller::update_item()`. That seems unusual and suggests room for improvement, though any changes to `wp_unique_post_slug()` would need careful consideration.

I share @paulbonneau's interest in wondering, ""[https://core.trac.wordpress.org/ticket/47988?#Whatcouldbeagoodnextstep Why shouldn't we assign a post_name to a post with a draft post_status?]"".

#47988 also references several other tickets related to draft status and `wp_unique_post_slug()`, such as #47552 and #61996."	esaner
1	54753	Wrong post content when uploading raw post data via REST API when html data url is used		REST API	5.8.2	normal	normal	Awaiting Review	defect (bug)	new		2022-01-05T21:26:59Z	2022-05-14T18:39:54Z	"I want to make use of data URLs in my post:
https://en.wikipedia.org/wiki/Data_URI_scheme
https://napuzba.com/data-url/

So I've added the following html to a post:
<a href=""data:text/plain,I am text file"" download=""a2.txt"">Download text file 2</a>

Now I want to upload this html via REST API, and the rest API just filters out the ""data:"" part and the ""download=""a2.txt"":
<a href=""text/plain,I am text file"">Download text file 2</a>

I made sure, that I am also uploading the post with the edit context, but that does not help. I also tried to url encode all content, so my test case is also not faulty. No luck. This is my curl:

curl -X POST https://example.com/wp-json/wp/v2/posts/ -u 'user:password' -d 'title=test&status=draft&context=edit&content=<a href=""data:text/plain,I am text file"" download=""a2.txt"">Download text file 2</a>'

curl -X POST https://example.com/wp-json/wp/v2/posts/ -u 'user:password' -d 'title=test&status=draft&context=edit&content=%3Ca%20href%3D%22data%3Atext%2Fplain%2CI%20am%20text%20file%22%20download%3D%22a2.txt%22%3EDownload%20text%20file%202%3C%2Fa%3E'

Is there a way to disable this filtering of my html? If not, it might be a bug?"	nicohood
1	57879	fix rest_get_endpoint_args_for_schema() to allow user-defined sanitize and validate callbacks.		REST API	4.7	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2023-03-07T07:19:39Z	2024-06-19T15:20:41Z	`rest_get_endpoint_args_for_schema()` doesn't allow user-defined validation and sanitize callbacks. It always uses `rest_validate_request_arg` and `rest_sanitize_request_arg` functions to validate and sanitize. This ticket fixes this.	mi5t4n
1	57312	pattern validation fails in case of multitype validation using WP JSON REST		REST API		normal	normal	Awaiting Review	defect (bug)	new		2022-12-11T14:55:22Z	2022-12-11T15:36:21Z	"Just as this https://core.trac.wordpress.org/ticket/56483 question for which I'm still waiting for a reply; I seemingly found another issue when trying to validate the input via oneOf. Concretely, I'm trying to validate that an object has:

- pattern properties
- with values being either a `^none$` string or a an array of strings matching another regex, like `^[A-Z][a-z]{5}[0-9]$`.

Try to submit your data via the js FormData API which holds an object that should validate against sth like this:


{{{
[
    'type' => 'object',
    'patternProperties' => [
        '$[a-z]{5}$' => [
            'type' => [
                'array',
                'string',
            ],
            'pattern' => '^none$',
            'items' => [
                'type' => 'string',
                'pattern' => '^[A-Z][a-z]{5}[0-9]$',
            ],
            'uniqueItems' => true,
            'required' => true,
        ],
    ],
    'additionalProperties' => false,
    'minProperties' => 1,
    'required' => true,
]
}}}

If you submit something like:


{{{
{
  ""my_data"":{
    ""abcde"":""none""
  }
}
}}}

It will result in a Bad Request error, telling you that `my_data[abcde]` does not match with `^none$`. 

I've tried to use `""enum"": [""none""]` instead of `""pattern"": ""^none$""`, which is when it also responds with a 400 Bad Request, saying that `my_data[abcde]` is not none.

Seems like a bug?"	joeyojoeyo12
1	63130	Add comment_count Support to REST API for Enhanced Sorting and Gutenberg Integration		REST API		normal	blocker	Awaiting Review	enhancement	new	has-patch	2025-03-20T08:31:57Z	2025-05-26T14:29:53Z	"Currently, the REST API does not support sorting posts by comment_count, which limits the ability to retrieve posts ordered by the number of comments. Adding comment_count support to the REST API will achieve two key objectives:

**Enable Sorting by Comment Count in the REST API**
Adding this feature will allow developers to sort posts by the number of comments directly in the REST API, enhancing the flexibility of post queries.

**Integrate Comment Count Sorting into Gutenberg’s Latest Posts Block**
Once the REST API is updated, this functionality can be leveraged to enhance the Latest Posts block in Gutenberg. The ability to sort posts by comment count was discussed in Gutenberg Issue #20046, and this feature was identified as missing in Revision 2 of the block.

This enhancement will provide users with a more dynamic way to display popular or highly engaged content while maintaining consistency between REST API capabilities and Gutenberg features."	vipulpatil
1	55961	Add embed to WP_REST_Request class		REST API	4.7	normal	normal	Awaiting Review	enhancement	new	has-patch	2022-06-10T16:06:13Z	2023-07-20T10:01:22Z	Add embed param to `WP_REST_Request` class, to add extra context to the request and allow for improved nested embeds. 	spacedmonkey
1	54513	Add meta support to template REST API		REST API		normal	normal	Future Release	enhancement	new	has-patch	2021-11-25T16:37:52Z	2021-11-25T16:37:52Z	Add support for custom meta for the template / template part REST APIs. This will allow plugin developers to extending template / template part easier. 	spacedmonkey
1	53673	Add unit tests for v5.8 widget sidebar IDs		REST API	5.8	normal	normal	Future Release	enhancement	assigned	dev-feedback	2021-07-15T17:55:43Z	2025-02-12T16:04:01Z	r51239 was included in 5.8, but was intended to have included unit tests as part of the release.  See [https://core.trac.wordpress.org/ticket/53452#comment:13 parent ticket] as possible starting point for a unit test patch on this.	JeffPaul
1	63761	Adding Edit/PUT Method for Template REST API Endpoint.		REST API		normal	normal	Future Release	enhancement	reviewing	has-patch	2025-07-28T00:26:29Z	2026-07-10T01:50:41Z	"Following along with [https://github.com/WordPress/gutenberg/issues/51886 GB 51886]

There is a problem in the API that hinders the possibility of a more precise permission selection for Templates in the Editor:

The template endpoint does not provide the PUT method. The PUT is paired with the `update` method, which happens to be what `canUser` needs to enable this allowance for Template editing via Editor.

As explained in the [https://github.com/WordPress/gutenberg/issues/51886#issuecomment-3124828349 Gutenberg answer] without a single Method for `EDITABLE` this doesn't seem to be doable. 

The only solution I can see here is adding an attribute to the `WP_REST_Server` class, that laser targets exclusively the `PUT`. Maybe something like `PUT_EDITABLE`. 

I think that for completeness purposes, all methods should have had an attribute (yes, we can add the methods manually without using the attributes, but it looks more elegant with them).

Maybe someone can throw a second opinion on this."	SirLouen
1	47962	Allow apiRequest to do requests on external WordPress sites		REST API	5.3	normal	normal	Awaiting Review	enhancement	new	has-patch	2019-09-02T17:40:13Z	2019-09-02T21:09:12Z	"Hi,

It's not possible to use the `wp.apiRequest` function to do REST requests on external WordPress sites as it forces the addition of the `X-WP-Nonce` header from the site where the request was made which of course doesn't match with the one generated by the external WordPress site. I think it's a bit too bad :(

Here's a [https://gist.github.com/imath/00630617d731b51e4db4ef9f81752eb5 Gist] to test what I'm describing above on my personal site.

If you run the code, you'll get a cross domain issue:
`blocked by CORS policy: Request header field x-wp-nonce is not allowed by Access-Control-Allow-Headers in preflight response.`

Now if you run the code after applying the attached patch, you'll get 10 of my posts where I link to this site.

Is there something wrong about allowing these external requests ? Else I think it would be pretty useful."	imath
1	64073	Attachments REST API: extend to support ordering by `mime_type`.		REST API	6.9	normal	normal	Awaiting Review	enhancement	new	has-patch	2025-10-03T06:01:55Z	2025-10-20T02:33:08Z	"To support dataviews tables it would be helpful to be able to sort a set of attachment results by `mime_type`.

The means that the response results could be ordered ASC/DESC, eg., 


{{{
[
{ ""mime_type"": ""image/gif"", ... },
{ ""mime_type"": ""video/mp4"", ... },
]

}}}





This could be done by extending the `$params` in `WP_REST_Attachments_Controller::get_collection_params` with `$params['orderby']['enum'][] = 'mime_type';`

"	ramonopoly
1	63074	Automated Output Escaping Based on REST API Schema		REST API		normal	normal	Awaiting Review	enhancement	new		2025-03-07T11:44:17Z	2025-03-07T11:44:17Z	"Currently, the WordPress REST API provides robust schema definitions for input validation and sanitization through data type, format, sanitize_callback, and validate_callback within arg_options. However, there is no equivalent mechanism for automatically escaping output based on the defined schema.

This issue proposes two enhancements:

**Default Escape Feature:**

- Implement a default escaping mechanism that automatically applies appropriate escaping functions to API responses based on the type and format keywords defined in the schema.

**Introduce an escape_callback within arg_options of the schema, similar to sanitize_callback and validate_callback.**
- This would allow developers to define custom escaping functions for specific fields or data types, providing greater flexibility and control over output escaping.

These enhancements would significantly improve the security and developer experience of the WordPress REST API by providing a more comprehensive and automated approach to data escaping."	codersantosh
1	44694	Extra and un-neccessary query when no posts found in Posts Rest Controller		REST API	4.9.7	normal	normal	Awaiting Review	enhancement	new		2018-08-01T16:46:27Z	2025-02-12T16:52:39Z	"In the 'get_items' method in class-wp-rest-posts-controller.php there is some conditional logic that re-executes the query without the 'paged' param if no results are found ( line 317 ). 

This seems like poor logic here. The query should only be executed again IF a paged parameter has been specified in the params. 

I have a REST request that returns an empty array, but the query is run twice even though the results are the same. 

This leads to some errors for me because I'm supplying non-standard parameters and using one time filters to handle them when building the request. After the initial query my filters have been removed so when the query executes again ( un-neccessarily ) my objects in the params end up triggering notices / warnings in the WP_Query class. 

Long story short, this extra query should have better logic protecting it.

Something as simple as:
{{{#!php

<?php
if ( $total_posts < 1 && $paged > 1 ) {
    // Out-of-bounds, run the query again without LIMIT for total count.
    unset( $query_args['paged'] );

    $count_query = new WP_Query();
    $count_query->query( $query_args );
    $total_posts = $count_query->found_posts;
}
}}}

"	pat@…
1	49277	Implement email sanitize in REST API	spacedmonkey	REST API	4.4	normal	normal	Future Release	enhancement	assigned	dev-feedback	2020-01-23T15:08:18Z	2021-11-04T15:46:35Z	Implement email sanitize in REST API over just using `sanitize_text_field`	spacedmonkey
1	55675	Improve performance Themes REST API endpoint		REST API		normal	normal	Awaiting Review	enhancement	new		2022-05-04T13:19:08Z	2024-04-16T09:47:57Z	"await wp.apiFetch({ path: 'wp/v2/themes?_envelope'});

The first time you call it, we have 2 duplicated queries.
The second time you call it, we have 1 duplicated query.
"	furi3r
1	61978	Managing Dynamic Search, Category Filtering, and Pagination for Bulk Patterns		REST API	6.0	normal	normal	Awaiting Review	enhancement	new		2024-09-03T17:52:50Z	2024-09-09T17:28:43Z	I noticed that the `get_collection_params` method and query filter function are not present in the `get_items` method of the `WP_REST_Block_Patterns_Controller` class. How can this be effective when registering a large number of patterns? Relying solely on the `init` hook and `register_block_pattern` may negatively impact site performance. There should be an alternative approach to registering patterns that can better handle dynamic search, filtering, and pagination for a large volume of patterns.	codersantosh
1	50409	REST API about links should be embeddable.		REST API	5.5	normal	normal	Future Release	enhancement	new		2020-06-17T13:11:47Z	2020-10-15T15:33:45Z	"Currently the `about` links in the REST API aren't embeddable using the `?_embed=true` parameter.

Most likely cause I can think of is that, by default, this route ( `wp/v2/types/$post_type` ) doesn't contain much information and as such there's likely no need for it.

However plugins can add their own custom fields to post types that would be added to this route. Currently if one wishes to fetch that data an additional request would have to be made as it's not possible to embed the data in a previous request.

Making the about link embeddable would give the option to consumers of the REST API to also easily fetch custom fields on post types without requiring an additional request.

This change would be extremely minimal as it'd only require adding `'embeddable' => true`, on line 1864 in `wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php`."	herregroen
1	66583	REST API: Add WP_REST_Server methods that return HTTP method sets as arrays; soft-deprecate the string constants		REST API	trunk	normal	normal	7.3	enhancement	new	has-patch	2026-11-06T22:56:36Z	2026-11-10T20:54:43Z	"Filing as part of my work on #65616 and at @westonruter suggestion as a solution to our issues as well as establishing a more mantainable and consistent standard going forward. 

== Problem ==

`WP_REST_Server` defines its HTTP method sets as comma-separated strings:

{{{#!php
<?php
const READABLE   = 'GET';
const CREATABLE  = 'POST';
const EDITABLE   = 'POST, PUT, PATCH';
const DELETABLE  = 'DELETE';
const ALLMETHODS = 'GET, POST, PUT, PATCH, DELETE';
}}}

hey are sets of methods, but three of them happen to hold exactly one method, and code in the wild treats them that way.

A sweep of the plugin directory finds 60 plugins with 20.8M active installs, including WooCommerce, Elementor and Jetpack, that would break if `READABLE`, `CREATABLE` or `DELETABLE` gained a second method. Some compare the constant with `$request->get_method()`; others pass it as the method of an outbound HTTP request.

So the sets are frozen. This already matters: the HTTP `QUERY` method (RFC 10008, #65616) is a safe, idempotent read, but it can't join `READABLE` or `ALLMETHODS` without changing every existing route on upgrade. Any future method has the same problem.

== Proposal ==

Add static methods that return each set as `string[]`:

{{{#!php
<?php
public static function get_readable_methods()  { return array( 'GET' ); }
public static function get_creatable_methods() { return array( 'POST' ); }
public static function get_editable_methods()  { return array( 'POST', 'PUT', 'PATCH' ); }
public static function get_deletable_methods() { return array( 'DELETE' ); }
}}}

`register_rest_route()` already accepts an array for `methods`, so these work without any other change:

{{{#!php
<?php
register_rest_route( 'my-plugin/v1', '/items', array(
        array(
                'methods'             => WP_REST_Server::get_readable_methods(),
                'callback'            => 'my_plugin_get_items',
                'permission_callback' => '__return_true',
        ),
) );
}}}

Then soft-deprecate the constants with `@deprecated` docblocks pointing to the new methods. The constant values stay frozen, and there is no runtime notice.

== Why functions returning arrays ==

- **The type matches the meaning.** A set of methods is a list. An array can't be compared to a single method with `===`, so code that adopts the new API has to treat it as a list, e.g.

{{{#!php
<?php
in_array( $request->get_method(), WP_REST_Server::get_readable_methods(), true )
}}}

- **The sets can evolve.** The docblocks say these lists may gain methods in future versions. A new method can then be added in one place, and only routes whose authors adopted the new API receive it.
- **Nothing changes on upgrade.** Existing code keeps using the frozen constants and behaves exactly as before.

== ALLMETHODS ==

This ticket proposes deprecating `ALLMETHODS` without a replacement. This should proabably be it's own ticket. I'll leave the reasoning for deprecation and a possible  alternative. But if we're okay with defering any replacemnt I'll open a sperate ticket for discussion.

=== Why no direct replacement ===

 * '''The name promises more than a list can deliver.''' ""All"" reads as ""any method"", but it is five methods: it omits `HEAD` and `OPTIONS`, and the router already accepts any method name a route registers. A list can only ever mean ""the methods enumerated so far.""
 * '''It is mostly used to register one callback for every method.''' In plugins that callback usually serves reads and writes and tells them apart by checking for `GET`. That is exactly the shape that breaks when a new method is added: the callback can't tell a new safe method from a write. A growing list would send every future method straight into those callbacks.

Routes should register one handler per kind of operation, as core's controllers do. Code that needs a list of methods, for example to validate a method name, can merge the per-kind lists:

{{{#!php
<?php
$methods = array_values( array_unique( array_merge(
        WP_REST_Server::get_readable_methods(),
        WP_REST_Server::get_creatable_methods(),
        WP_REST_Server::get_editable_methods(),
        WP_REST_Server::get_deletable_methods()
) ) );
}}}

Core's only use of `ALLMETHODS`, the abilities run controller, can use this merge and keep exactly its current behavior.

=== Alternative: `get_supported_methods()` ===

Instead of no replacement, add:

{{{#!php
<?php
/**
 * The HTTP methods the REST API handles, including HEAD and OPTIONS, which core answers itself.
 *
 * This list grows when WordPress adds support for a method. A route registered with it
 * accepts responsibility for every method it may receive, now and in future versions,
 * and must handle unexpected methods safely, for example by returning a 405.
 *
 * @return string[]
 */
public static function get_supported_methods() {
        return array( 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE' );
}
}}}

 * '''It has a use inside core.''' `rest_send_cors_headers()` keeps its own list of methods for `Access-Control-Allow-Methods`. Deriving that list from this function means adding a method happens in one place.
 * '''It can be used for registration, with a documented contract.''' The name is honest: these are the methods WordPress supports, and the list will grow. A route that registers with it gets   every supported method, so its callback must handle any method safely, current or fnderstands and return a 405 for the rest. The abilities run controller already worksthis way. It validates the method against each ability's annotations and returns a 405 otherwise, so it could switch to this function with no change in behavior.                                  * '''Growth is a documented contract, not a backward-compatibility break.''' When list, routes registered with it will receive that method. A callback that mishandlesit, for example by treating anything other than `GET` as a write, is a bug in the callback against the documented contract. Core would announce each addition in a dev note ahead of the release, and a WordPress Coding Standards / Plugin Check warning on registering with this fu at the contract.

The trade-off: this keeps a supported, honest way to register a catch-all, at the casy to write. No replacement makes them deliberately awkward. This ticket leanstowards no replacement but would accept either.

== Guidance for route authors ==

A route registered with one of these methods may receive methods added to the set in later versions. Callbacks shouldn't assume a particular method, such as treating `'GET' ===
$request->get_method()` as ""this is a read"". The docblocks and the REST API handbookdler per kind of operation, as core's own controllers do: reads in one callback,writes in another, never one callback that serves both.

== Scope ==

- The new methods, the `@deprecated` docblocks, and unit tests: list contents match the constants, constants unchanged, and registering with the arrays works.
- Core's own registrations can move to the new methods here or in a follow-up. Eithehavior until a set gains a method."	moonmeister
1	39954	REST API: Improve date updates if both `date` and `date_gmt` are set		REST API	4.7	normal	minor	Awaiting Review	enhancement	new		2017-02-23T19:51:41Z	2017-03-09T02:38:25Z	"Currently, if you set both the `date` and `date_gmt` fields when creating or updating a [https://core.trac.wordpress.org/browser/tags/4.7.2/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php#L996 post] or [https://core.trac.wordpress.org/browser/tags/4.7.2/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php#L1119 comment], the `date` field will take precedence and the `date_gmt` field will be ignored.

This behavior isn't ideal because when either of these two dates is specified, the other is also updated based on the site's timezone offset.

If both `date` and `date_gmt` are specified, '''and''' the two values do not match according to the site's current timezone offset, there are a couple of options for improving the behavior:

- Update the date fields exactly as requested, even though they will not match the site's current timezone offset.
- Return an error."	jnylen0
1	49330	REST API: introduce block-editor context		REST API	5.4	normal	normal	Future Release	enhancement	new		2020-01-30T16:48:59Z	2020-10-01T17:53:05Z	"The block editor does not make use of rendered content, and rendering content for complex posts with a large quantity of dynamic blocks can take a non-trivial amount of time. The REST API maintainers and Gutenberg developers have previously discussed the need to be able to ""skip"" rendering of the content if it is not required.

In [46184] we introduced the ability to provide an explicit list of nested fields to include. Specifying `_fields=content.raw` without mentioning `rendered` now causes the posts controller to skip computation of the rendered field, as it has not been requested. Unfortunately, this approach requires a developer to provide a comprehensive list of all fields they _do_ wish to include in the response, and cannot easily be used to specifically exclude one field. Because block editor developers may depend on registered rest fields or other additional properties, it is infeasible to have the block editor request ""all but the rendered content"" using this interface.

A slack conversation ([https://wordpress.slack.com/archives/C02RQC26G/p1574361923322500]) with @aduth and @timothyblynjacobs addressed this problem and discussed two separate options, either providing an `_omit_fields` parameter to complement `_fields` and permit specific exclusions, or alternatively to introduce a new `block-editor` context that does everything that `edit` does except render content.

This trac ticket is intended to move that discussion forward and aim towards introducing a solution that can be used to speed up response times within the block editor."	kadamwhite
1	66027	REST API: let the media create endpoint record the attachment an upload was edited from	adamsilverstein	REST API	trunk	normal	normal	Future Release	enhancement	assigned	has-patch	2026-09-02T23:18:40Z	2026-10-19T20:44:29Z	"''Claude Code drafted this ticket from the Gutenberg change, forwarded along:''

> With client-side media processing, Gutenberg is moving image edits (crop, rotate, flip) from the server `media/<id>/edit` endpoint into the browser: the edit is applied with libvips and the result is uploaded through `POST /wp/v2/media` as a new attachment, the same way the editor has always created edited images. See https://github.com/WordPress/gutenberg/pull/82362 (fixes https://github.com/WordPress/gutenberg/issues/82295, where server-side edits strip the gain map from HDR JPEGs).
>
> One thing the `/edit` endpoint does that the upload endpoint cannot is record where the new image came from: it stores a `parent_image` entry (`attachment_id` and the source's relative `file` path) in the new attachment's metadata, copies the source's EXIF `image_meta` for any field the new file lacks, and resets the orientation to 1. Edits made in the browser should relate to their source the same way.
>
> Proposed change: add an optional `parent_image` integer parameter to the media create endpoint. When set, it must reference an existing image attachment the current user can edit (matching the `/edit` permission check), and after the upload the new attachment's metadata gets the same `parent_image` entry and EXIF carry-over that `edit_media_item()` writes. Without the parameter nothing changes.
>
> Related: #65367 (client-side media processing endpoints).

Patch incoming."	adamsilverstein
1	62333	Simplify code structure and optimize conditional logic in REST API controllers		REST API	6.7	normal	minor	Awaiting Review	enhancement	new	has-patch	2024-11-01T19:50:42Z	2024-11-21T04:54:40Z	"After inspecting the code in the `wp-includes/rest-api/` directory, the following minor issues were identified:

- unnecessary local variables;
- static methods called dynamically;
- non-static methods called statically;
- non-optimal order of conditional expressions in `if` statements, impacting performance;
- inefficient usage of ternary operators;
- unconsolidated `isset()` and `unset()` statements;
- redundant `else-if` statements;
- use of `count()` to check for empty arrays, impacting performance;

and other related issues.

This ticket is supposed to track patches intended to address these issues."	antonvlasenko
1	65616	Support the HTTP `QUERY` method for read/search REST endpoints (RFC 10008)		REST API		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2026-07-13T06:33:04Z	2026-09-18T01:45:46Z	"The new HTTP `QUERY` method ([https://www.rfc-editor.org/info/rfc10008/ RFC 10008]) is '''safe and idempotent like `GET`, but carries a request body'''. That makes it cacheable, retriable, and free of the URL-length ceiling. It is the standards-blessed answer to
""I need to send a large or structured search and `GET`'s query string won't fit"".

== Problem ==

WordPress read/search endpoints today have two bad options when a query is large or
structured:

 * '''`GET` with a query string''' — hits URL-length limits (~2 KB in browsers, ~8 KB on
   many servers/proxies) with long `include[]`/`exclude[]` lists or complex
   `tax_query`/`meta_query`-style filters.
 * '''Promote to `POST`''' — works, but `POST` is neither safe nor idempotent, so it
   breaks caching and retry semantics for what is really a read.

`QUERY` fixes both: a body-bearing '''read''' with `GET` semantics.

== Findings in core ==

Inbound (needs work):
 * Method constants are a fixed set — `WP_REST_Server::READABLE/CREATABLE/EDITABLE/DELETABLE/ALLMETHODS` (`class-wp-rest-server.php:24-56`). No `QUERY`.
 * '''Param-order gap:''' `WP_REST_Request::get_parameter_order()` (`class-wp-rest-request.php:361-398`) only merges body params for `$accepts_body_data = array( 'POST', 'PUT', 'PATCH', 'DELETE' )` (line 377). A form-encoded `QUERY` body is parsed but never returned by `get_param()`. JSON bodies work incidentally via `parse_json_params()`.
 * Routing matches on `$handler['methods'][ $method ]`; there is a precedent for an aliased method — `HEAD` falls back to `GET` (`class-wp-rest-server.php:1185-1187`) — the same pattern a `QUERY -> GET` read-fallback would follow.
 * CORS methods are hardcoded (`rest-api.php:801`); the `Allow` header is already dynamic (`rest-api.php:870-903`).

Outbound (already works):
 * `wp_remote_request()` with `'method' => 'QUERY'` already sends the payload in the body — non-GET/HEAD requests use `data_format = 'body'` (`class-wp-http.php:383-386`; `Requests.php:698-706`) and cURL's `default` case sends it via `CURLOPT_CUSTOMREQUEST` (`Transport/Curl.php:418-422`). Only a docblock update is needed.

== Proposal ==

Make core `QUERY`-safe and ship it as '''opt-in progressive enhancement''', keeping `GET`
as the default. Phased:

 1. '''Make core `QUERY`-safe''' — handle `QUERY` in `get_parameter_order()` (both JSON and
    form-encoded bodies), add a `QUERY`/`QUERYABLE` constant, and add an optional
    `QUERY -> GET` fallback mirroring `HEAD -> GET`. Unit tests under
    `tests/phpunit/tests/rest-api/`. Document outbound support.
 2. '''Opt-in advertising + one pilot endpoint''' — advertise `QUERY` in
    `Access-Control-Allow-Methods` only when a route registers it; pilot `/wp/v2/search`
    behind capability detection.
 3. '''Client feature detection''' — teach `@wordpress/api-fetch` to optionally use `QUERY`
    for oversized reads with automatic fallback to `GET` (Gutenberg repo).
"	khokansardar
1	54387	trailing slash in the url /wp-json		REST API	5.8.1	normal	minor	Awaiting Review	enhancement	new	dev-feedback	2021-11-06T16:27:27Z	2024-06-25T20:09:16Z	"The url with `wp-json` doesn't redirect one to another. 

Won't it be better if there's a unique url, with one with/without trailing slash permanent. 

For example:

`https://www.example.com/wp-json` and
`https://www.example.com/wp-json/`

are different addresses whereas one should redirect to the other (?). "	superpoincare
1	27244	'Restore This Autosave' immediately updates a published post		Revisions		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2014-02-28T23:43:29Z	2026-04-22T14:00:58Z	"The ""Restore This Autosave"" button on the revisions screen immediately replaces the post with the autosave without making it clear that that is the case.

Steps to reproduce:

 1. Publish a post.
 2. Edit the content of the post and trigger an autosave (either by waiting two minutes or by clicking the 'Preview Changes' button).
 3. Navigate away from the post editing screen.
 4. Return to the post editing screen and note the message stating ""There is an autosave of this post that is more recent than the version below"". Click ""View the autosave"".
 5. On the revisions screen, click ""Restore This Autosave"".
 6. Note that the autosave has been published rather than simply being restored to the editing screen."	johnbillion
1	53607	Loading or saving a post with enough (large) revisions exhausts available memory		Revisions	5.7.2	normal	normal	Awaiting Review	defect (bug)	new		2021-07-06T14:22:21Z	2025-06-10T19:08:42Z	"This is a follow-up to #34560.


**What steps should be taken to consistently reproduce the problem?**
- create a post with enough (large) revisions (see ""Steps to reproduce"" from #34560). 
- Reduce `WP_MAX_MEMORY_LIMIT` so that it is enough to load one revision but not enough to load tens / hundreds of revisions (e.g. 128M)
- save post -> `Updating failed. The response is not a valid JSON response.`
- edit post -> `**Fatal error**: Allowed memory size of 134217728 bytes exhausted`


**Does the problem occur even when you deactivate all plugins and use the default theme?**
- yes

**Likely cause**
It seems full post revisions (including post content) are still being loaded when editing a post. This is likely the cause of high memory consumption. To look into this:

- on a standard WordPress installation, activate [https://wordpress.org/plugins/debug-bar/] with 
{{{#!php
<?php
define( 'SAVEQUERIES', true );
?>
}}}
- edit a post with revisions enabled
- check the ""Queries"" tab of the debug bar (might need to turn off Gutenberg full screen mode to see it) and look for the query that loads the exhaustive list of full revisions (`wp_posts.*`):

{{{
SELECT wp_posts.* FROM wp_posts 
WHERE 1=1 AND wp_posts.post_parent = [[THE CURRENT POST ID]] 
AND wp_posts.post_type = 'revision' 
AND ((wp_posts.post_status = 'inherit')) 
ORDER BY wp_posts.post_date DESC, wp_posts.ID DESC
}}}
"	mlbrgl
1	58844	Revisions: Compare Revisions layout issues on mobile		Revisions	3.6	normal	normal	Future Release	defect (bug)	new	has-patch	2023-07-18T20:45:48Z	2023-11-30T22:50:02Z	"This is a follow-up to #33830.

""Restore This Revision"" button in wp-admin revision page can become hidden behind the diff panel in mobile view, particularly if the post author has a longer name. 

The problem occurs when the author info (Name & Timestamp) stacks below the Avatar. "	plari
1	44929	Revisions: wp_get_revision_ui_diff only displays existing meta fields of the current post		Revisions		normal	normal	Awaiting Review	defect (bug)	new		2018-09-11T08:38:42Z	2019-01-16T23:01:18Z	"For reproducing the issue:
1. Turn on revisions
2. Create a post
3. Save
4. Create a custom field with some value
5. Save
6. Delete the custom field
7. Save
8. Go to the revision comparison
9. The field added and deleted won't display in the comparision

After doing some debug I found out that the the foreach loop in the function wp_get_revision_ui_diff in wp-admin\includes\revision.php uses _wp_post_revision_fields( $post ) which only takes into consideration of the custom fields of the actual post.

Solution:

Change:


{{{
foreach ( _wp_post_revision_fields( $post ) as $field => $name ) {

}}}

To:


{{{
$fields_from = array();
$fields_to = array();
if ( $compare_from != null )
	$fields_from = _wp_post_revision_fields( $compare_from );
if ( $compare_to != null )
	$fields_to = _wp_post_revision_fields( $compare_to );
$fields = array_merge( $fields_from, $fields_to, _wp_post_revision_fields( $post ) );

foreach ( $fields as $field => $name ) {
}}}
"	luisarn
1	53417	The revisions endpoints provide an incorrect JSON schema		Revisions	4.7	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-06-15T23:20:51Z	2026-04-14T09:19:16Z	"The schema provided by the REST API endpoints for revisions at `wp/v2/posts/{id}/revisions` and `wp/v2/pages/{id}/revisions` is incorrect. The schema states that `content.protected` and `excerpt.protected` properties exist for each revision, but these properties do not exist.

* [https://github.com/WordPress/wordpress-develop/blob/afee26086fea307c2a5c31c0e2018cb6acd598f7/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php#L736 The schema is constructed here] from the parent controller for posts, which does include this property
* [https://github.com/WordPress/wordpress-develop/blob/afee26086fea307c2a5c31c0e2018cb6acd598f7/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php#L600-L604 When the content data is prepared here] the `protected` property is not included
* [https://github.com/WordPress/wordpress-develop/blob/afee26086fea307c2a5c31c0e2018cb6acd598f7/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php#L608-L611 When the excerpt data is prepared here] the `protected` property is not included

Two options:

1. Remove the `content.protected` and `excerpt.protected` properties from the schema
2. Add the `content.protected` and `excerpt.protected` properties to the response

Here is the `content` property from the schema. Note the `protected.context` property states that the property exists for all three contexts.

{{{
""content"": {
    ""description"": ""The content for the post."",
    ""type"": ""object"",
    ""context"": [
        ""view"",
        ""edit""
    ],
    ""properties"": {
        ""raw"": {
            ""description"": ""Content for the post, as it exists in the database."",
            ""type"": ""string"",
            ""context"": [
                ""edit""
            ]
        },
        ""rendered"": {
            ""description"": ""HTML content for the post, transformed for display."",
            ""type"": ""string"",
            ""context"": [
                ""view"",
                ""edit""
            ],
            ""readonly"": true
        },
        ""block_version"": {
            ""description"": ""Version of the content block format used by the post."",
            ""type"": ""integer"",
            ""context"": [
                ""edit""
            ],
            ""readonly"": true
        },
        ""protected"": {
            ""description"": ""Whether the content is protected with a password."",
            ""type"": ""boolean"",
            ""context"": [
                ""view"",
                ""edit"",
                ""embed""
            ],
            ""readonly"": true
        }
    }
},
}}}"	johnbillion
1	48973	wp_text_diff() out of memory with 10GB memory limit on certain revisions		Revisions	5.3.1	normal	normal	Awaiting Review	defect (bug)	new		2019-12-14T16:33:35Z	2019-12-16T20:59:38Z	"Hi,

I have identified a bug with wp_text_diff on a blank WP install on PHP 7.2.8 and 7.3.12
The bug causes the system to run out of memory no matter how much is available. I found it while trying to edit some revisions. The texts are large (50KB), maybe it has something to do with it.

To replicate the bug you need to use this code. I will provide the files.
	{{{#!php
<?php
        $content_from = file_get_contents( ABSPATH . '/content_from.txt' );
	$content_to = file_get_contents( ABSPATH . '/content_to.txt' );
	$diff = wp_text_diff( $content_from, $content_to, [] );
}}}


}}}
"	justjack1
1	47831	Compare any two revisions: Improve the distinction of From/To columns		Revisions		normal	normal	Awaiting Review	enhancement	new		2019-08-04T12:35:04Z	2019-11-12T23:55:04Z	"This is a continuation from ticket #43532.

We have a {{{From/To}}} when the ""Compare any two revisions"" is checked, but it might not be obvious what column is {{{From}}} and what column is {{{To}}}.

Here are relevant comments from the #43532 ticket:

@adamsilverstein suggests using e.g. ""added"" and ""removed"" (see here https://core.trac.wordpress.org/ticket/43532#comment:5 )

@kjellr mentioned that this was discussed in design chat
https://core.trac.wordpress.org/ticket/43532#comment:19

>The Design team discussed this briefly in our triage today: 
>https://wordpress.slack.com/archives/C02S78ZAL/p1564417984166900
>(A WordPress.org slack account is required to view that link)
>Both of these updates seem like solid improvements, and the screenshots look good. We're >going to remove ux-feedback for now. 
>Thanks, all!

I'm adding the screenshots here below:"	birgire
1	62690	"Add ""Copy to Clipboard"" button to Revision Viewer"		Revisions		normal	normal	Awaiting Review	feature request	new	has-patch	2024-12-13T14:38:06Z	2025-01-13T06:53:21Z	"When looking through old revisions, it would be helpful to be able to copy a Revision's post_content to the clip board (for use elsewhere). Unfortunately, this is very difficult. One can't even easily select the text to copy it, because you get the text from BOTH revisions on screen when you try.

I think each revision should have a ""Copy to Clipboard"" button at the top so one can easily extract the markup of the revision for use elsewhere."	MadtownLems
1	42478	Add_permastruct ignores EP_NONE and other args if %post_id% is present in struct		Rewrite Rules	4.9	normal	normal	Awaiting Review	defect (bug)	new		2017-11-08T22:15:20Z	2017-11-08T22:15:20Z	"Additional rewrite rules are made if the %post_id% is in a struct passed to add_permastruct. This happens because generate_rewrite_rules (called in to process the permastructs) assumes anything with %post_id% in its struct is a post and should have attachments, talkbacks, comments, etc. I suspect it's holdover from when %post_id% and p= only referred to posts and post_ids from the wp_posts table at large.

I have a simple enough solution.

Add another default rewrite_tag that generates the 'p=' query but doesn't trigger the additional rewrites.

i.e. add_rewrite_tag( '%p%', '([0-9]+)', 'p=' );"	Underscorefunk
1	47686	Always flush rewrite rules when active plugins changes & on plugin upgrades		Rewrite Rules		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2019-07-11T21:02:29Z	2026-08-19T06:34:18Z	"I think it's odd that plugins each need to roll their own rewrite rule flushing.

It's definitely nice to have the freedom to decide when it's necessary, but it is inconvenient as a developer to reinvent a new way with every new plugin whenever a rule needs to be changed.

It's also inconvenient to users when a plugin forgets to flush rules, or when a developer is unaware that it is their responsibility to flush their own rules.

I'm proposing here that WordPress core could improve the lives of both developers and users by automatically flushing rewrite rules every time a plugin is activated, deactivated, or updated.

For context, `flush_rewrite_rules()` is already called inside of `check_theme_switched()` which in hooked to `init` and always flushes rewrite rules when a new theme is activated, and I'm suggesting we consider doing this for plugins too."	johnjamesjacoby
1	40440	Clarify behavior of `options-permalink.php` in documentation		Rewrite Rules		normal	normal	Awaiting Review	defect (bug)	new	close	2017-04-13T18:52:02Z	2026-06-07T22:51:37Z	"if somebody open wp-admin/options-permalink.php, .htaccess are genereate and save without click submit button.

I report this bug as security issue but during send messages with John Blackbourn we have determined that this isn't a security bug so I add ticket as public."	sebastian.pisula
1	53545	Domain Mapping not working with page as homepage		Rewrite Rules	5.7.2	normal	normal	Awaiting Review	defect (bug)	new		2021-06-28T20:43:11Z	2021-06-28T20:43:11Z	"Hi!
Since a few WordPress Versions it is possible to point different domains to the same WP installation without a redirect. So the domain example.org can point to a WP installation with foobar.org in the database home and siteurl without gettin redirected. This is very handy when it comes to SSL. Thanks for that.
That works great if the homepage displays the latest posts, or if a blog post or page is loaded.
But if the homepage is a page it redirects to foobar.org.
I tried this out in a few different wp installtions and hat the same problem everywhere.
Is this a bug or intended?
I brought an example:
https://www.sumisuweb.at/
It is a plain wp installation. There are no themes or plugins installed except the default ones. Also the htaccess is default. Everything.
The siteurl and home is https://www.sumisuweb.at/, I only made changes to the titles of the posts and the permalink (it's set to year/month/day - but it does not matter what permalink type) and I changed the homepage to a page instead of the latests posts archive.

The subdomain https://blog.sumisuweb.at/ also points to the wp installation.
If you visit https://blog.sumisuweb.at/example-page, the url stays the same, no redirect, it works, because it is a page.
But if you try to call only https://blog.sumisuweb.at/ it redirects to https://www.sumisuweb.at.
It is also possible to visit https://blog.sumisuweb.at/2021/06/28/hello-world/
So the redirect only happens if the homepage is a page. It does not happen if the homepage is the default post archive.
This is a bug, I can't explain otherwise why this would be intended behaviour.
Please take a look at it, it would mean very much to me.

If you have any further questions or need my assitance or anything, please don't hesitate to contact me.

Thank you!
Alle the best,
Theresa
"	teresasumisu
1	43544	Pages over 999 in archive return 404		Rewrite Rules	4.9.4	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2018-03-14T11:09:15Z	2025-10-27T12:12:32Z	Whenever you have more than 3 digits page numbers WordPress returns a 404.	catalinnita
1	50726	Pagination error on 4 digit page when category and year are in the permalink structure		Rewrite Rules	5.5	normal	minor	Awaiting Review	defect (bug)	new		2020-07-21T17:40:38Z	2020-07-21T17:40:38Z	"When looking at a category archive page where the page number has four digits, and the permalink structure has the category and year in it, WordPress lumps together the category name and the ""page"" part of the URL and assumes that the number refers to the year of publication.

Steps to reproduce:

1) Update the permalink structure to /%category%/%year%/%monthnum%/%day%/%postname%/
2) Create a category
3) Create and assign enough posts and/or update posts per page to generate at least 1000 pages.
4) Navigate to page 1000 or greater.

Even though the resulting URL would be /%cat%/page/1000/, WordPress will assume that the category name is ""%cat%/page"" and that the year of publication is 1,000.

The correct behavior is to go to page 1,000 of the specified category, just as it works in page 999.

This issue leads to 404s being generated by the standard pagination component which get flagged on search engine crawls, resulting in lower search rankings for the entire website.

Here is the immediate fix I added to my website:

{{{#!php
<?php
/**
 * Allow category pagination with four digits.
 *
 * Because the permalink structure is set as /%category%/%year%/%monthnum%/%day%/%postname%/
 * in the path /investing/page/1000 WordPress thinks:
 *   1) the category name is investing/page
 *   2) 1000 is a year instead of a page number.
 */
add_action('pre_get_posts', function ($query) {
    if (!is_admin()
        && $query->is_main_query()
        && is_archive()
        && substr_count($_SERVER['REQUEST_URI'], '/page/')
    ) {
        $year = $query->query_vars['year'] ?? 0;
        $page = $query->query_vars['paged'] ?? 0;
        if ($year && !$page) {
            unset($query->query_vars['year']);
            $query->set('paged', $year);
        }
        if (isset($query->query['category_name'])) {
            $query->set('category_name', str_replace('/page', '', $query->query['category_name']));
        }
    }
});
}}}
"	elpadi17
1	38518	Rewrite Rules rebuilding on parse_request		Rewrite Rules	4.6.1	normal	normal	Awaiting Review	defect (bug)	new		2016-10-26T18:33:59Z	2019-03-26T17:20:05Z	"Hi, 

We have an issue that when flush_rewrite_rules is flushing, another request is coming in an parse_request is firing.  While update_option('rewrite_rules', ' ') is deleted and the rules are being processed, parse_request is passing the conditional and writing it's own rules.

I've created a patch that has flush_rewrite_rules being solely responsible for rebuilding the rewrite rules. Otherwise, parse request will just read the current rules."	andyphillips82
1	26829	Use of strpos() in extract_from_markers() and insert_with_markers() can target wrong BEGIN and END markers.		Rewrite Rules	2.0	normal	normal	Future Release	defect (bug)	assigned	has-patch	2014-01-14T06:16:21Z	2019-04-08T06:02:01Z	"While working on a plugin, I came across the need to have two sections of `BEGIN` and `END` markers in the `.htaccess` file. The most important marker section is located at the end of the file with the marker `""e3r""`, while the second marker section is at the beginning of the file with the marker `""e3r_query_redirects""`. Now when I call `extract_from_markers` while passing `""e3r""` as the marker, the contents between the `""e3r_query_redirects""` markers are returned.

Here are steps you can take to see this issue with the function `insert_with_markers()`:
1. Open the `.htaccess` file
2. Add `# BEGIN WordPress_Foo` to the top of the file, add a couple of newlines, and add `# END WordPress_Foo`
3. Save the `.htaccess` file and close it
4. Log into the WordPress Dashboard and navigate to '''Settings''' -> '''Permalinks'''
5. Press the '''Save Changes''' Button
6. Reopen the `.htaccess` file
7. Notice that the marker section originally labeled `WordPress_Foo` is now a duplicate `WordPress` marker section

You can continue to repeat those steps to generate more duplicate `WordPress` marker sections.

This issue is caused by the use of the `strpos()` function, which looks for the position of a substring in a string. So when you have a marker section labeled `WordPress_Foo` above the section labeled `WordPress`, the `WordPress_Foo` section is found by `strpos()`, which stops the `WordPress` section from being found.

I already wrote a solution that has worked for me so far and I'm including a diff file with the changes. Basically, instead of using the function `strpos()`, which looks for the position of a substring and causes the aforementioned bug, I use the following statement: `if ( ""# BEGIN {$marker}"" === $markerline )`.

Since this is my first patch to core, I would definitely appreciate all feedback :)

Thanks,
Faison"	Faison
1	56381	WordPress creates invalid web.config -file		Rewrite Rules	6.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-08-15T18:12:27Z	2023-01-04T19:00:30Z	"When WP creates the web.config file for URL Rewrite, it uses apparently wrong syntax in the file. In the file that WordPress creates, it has this line: {{{<match url=""*""/>}}} when it should have this: {{{<match url=""(.*)""/>}}}.

This causes very odd behavior on the site, mainly because of Internal Server Error 500. The weird part is, that all image links that uses the plain name causes that error, but if you add the size to the url (eg. {{{/file.jpg}}} -> {{{file-150x150.jpg}}}) the error goes away and the image loads normally.

Ihad zero plugins installed when this occured. Tried also generating the file multiple times, always the same bug except when using ""Plain"" for url's.

I have Googled a lot, and found that there's many people who's suffering from that exact behavior at least from version 5.6. I do not know if they used IIS (Windows) for hosting, but if the used, then that web.config file is the reason on that case."	liskoslayer63
1	50943	add_rewrite_rule() sample codes don't work for passing multiple params		Rewrite Rules	5.5	normal	critical	Awaiting Review	defect (bug)	new		2020-08-12T13:46:46Z	2020-08-14T00:54:37Z	"Hi
I'd found out a new bug in wordpress v5.5 (latest release update), and its related to rewrite rules.
Even sample codes in following page won't work for passing multiple params in url mentioned in ""Using Custom Templates with custom querystring"" section:
https://codex.wordpress.org/Rewrite_API/add_rewrite_rule

I'd tried every possible ways to achieve that, but I couldn't. I think it's a bug. I hope this is not a false report. if it is, sorry for that and could you help me.

I using this code:

{{{#!php
<?php
add_action('init', function ()
{
    add_rewrite_tag('%page%', '([^&]+)');
    add_rewrite_tag('%args%', '([^&]+)');

    add_rewrite_rule(
        '^auth/?([^/]*)/?$',
        'index.php?pagename=auth&page=$matches[1]',
        'top'
    );
    add_rewrite_rule(
        '^profile/([^/]*)/?([^/]*)/?$',
        'index.php?pagename=profile&page=$matches[1]&args=$matches[2]',
        'top'
    );
}, 10, 0);
}}}



as you can see, I have two page with two different rewrite rules.

in wordpress v5.4 it works very well, but in new version, it don't.

Best regards"	shahryarhn
1	42328	directory listing, missing index.html		Rewrite Rules	4.8.2	normal	normal	Awaiting Review	defect (bug)	new		2017-10-24T22:17:00Z	2017-10-24T22:21:09Z	"On hostings where missing ""Options -Indexes"" (Apache) index.php file with ""Silence is golden."" could be an option or as discussed in #4759 as it will work also on NGINX.

While by default it's not a security issue, however, may lead to a discovery of private/non-for-public files.

Directories:
/wp-includes/
/wp-content/uploads/
/wp-content/languages/ (I know it's not by default here)

possible related: #17619

"	rolandinsh
1	42120	htpasswd protection not working due to .htaccess rewrite rules		Rewrite Rules	4.8.2	normal	normal	Awaiting Review	defect (bug)	new		2017-10-06T09:44:24Z	2019-05-14T05:10:15Z	"Came across a strange bug whilst trying to password protect our staging sites.

This seems to be a known issue as a solution is already suggested online, however unless you know where to look, the first point of call would be to check with the server configuration/Apache/WHM.

Considering this is a small and easy fix that shouldn't break other features, it would be great to include to core.

'''The setup'''
* WHM 66.0.24 CentOS 7.4
* Apache
* Latest WP installed at /public_html

'''Steps to reproduce'''
1. Enable permalinks
2. Go to cPanel and enable ""Directory Privacy"" on the public_html folder OR
3. Update .htaccess to append AND
{{{
AuthType Basic
AuthName ""Test""
AuthUserFile ""/home/username/.htpasswds/public_html/passwd""
require valid-user
}}}
4. Create the passwd file on the directory shown above
5. Go to your staging site such as staging.website.com and confirm the login prompt is showing
6. Don't enter any details, but click cancel multiple times
7. Notice how the page content is now showing.
8. Try ctrl+u to see the source of the page and notice how the whole HTML is there.

'''The solution'''
1. Edit the .htaccess file in your WordPress home folder
2. Find the line RewriteRule . /index.php [L]
3. Replace with RewriteRule ./ /index.php [L]

'''The sources of this fix'''
Kudos to WHM Support who directed me to the solution and HostGator for actually publishing it
http://support.hostgator.com/articles/wordpress-preventing-you-from-password-protecting-a-directory

"	subscriptiongroup
1	45970	"in IIS if web.confing <configuration has xmlns=""http://schemas.microsoft.com/.NetConfiguration/v2.0"" attribute the WordPress creates new <configuration> section and the site craches with wrong web.config"		Rewrite Rules	5.0.3	normal	normal	Awaiting Review	defect (bug)	new		2019-01-13T12:12:37Z	2019-01-13T22:34:19Z	"in IIS if web.confing <configuration has xmlns=""http://schemas.microsoft.com/.NetConfiguration/v2.0"" attribute the WordPress creates new <configuration> section and the site craches with wrong web.config error (2 <configuration> sections). It happens/triggers by example if you are trying to change the ""Permalink Settings"".

The code responsible for this check is located in \wp-admin\includes\misc.php (line 748)

{{{
	// First check if the rule already exists as in that case there is no need to re-add it
	$wordpress_rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')] | /configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'WordPress\')]');
	if ( $wordpress_rules->length > 0 )
		return true;
}}}

The fix could be to register the namespace:

{{{
$xpath->registerNamespace(""x"", ""http://schemas.microsoft.com/.NetConfiguration/v2.0"");
}}}

and then in `$xpath->query` to check also for `/x:configuration/x:system.webServer/x:rewrite/x:rules/x:rule[starts-with(@name,\'WordPress\')]`

In this way it works without problem and does not break the site."	boychev
1	60330	redirect that working incorrectly!		Rewrite Rules		normal	normal	Awaiting Review	defect (bug)	new		2024-01-23T19:57:30Z	2024-03-05T02:31:29Z	"Issues that once you going to for example https://example.com/example-page-slug/1000/ will redirect you to https://example.com/example-page-slug/ . But it's supposed to display 404 page. Is bad for SEO because that redirect using 301.

{{{#!php
<?php

class RedirectFixer {
	function __construct(){
		add_filter('request', array($this, 'request'),10,1);
	}

	function request($query) {
		if(isset($query['page']) && (int)$query['page'] > 0) {
			$query = array(
				'pagename' => '404'
			);
		}
		return $query;
	}
}
new RedirectFixer();
}}}
This is how to fix it."	markuscode
1	60713	remove  'array_merge(...)' is used in a loop and is a resources greedy construction. from generate_rewrite_rules	pbearne	Rewrite Rules		normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2024-03-07T00:06:18Z	2024-04-10T15:21:38Z		pbearne
1	46283	Allow filtering post-type archive rewrites		Rewrite Rules	3.1	normal	normal	Awaiting Review	enhancement	new	has-patch	2019-02-20T02:59:18Z	2025-09-04T10:51:41Z	If one wishes to introduce additional query arguments into a post-type archive's rewrite structure, the current options are rather cumbersome: filter the rewrites as they're generated, filter the whole rewrites array, or reproduce a considerable amount of logic from `WP_Post_Type::add_rewrite_rules()`. By introducing a few filters on the archive-specific rewrites, it becomes far easier to customize a post type's archive rewrites.	ethitter
1	52247	Author role unable to set featured image (Error 403)		Role/Capability	5.6	normal	normal	Awaiting Review	defect (bug)	new		2021-01-07T17:42:56Z	2021-01-07T17:42:56Z	"Users with the role of author are unable to set featured images in posts. I am able to replicate this in a fresh installation of WordPress (Ver 5.6, Php 7.4.8, no plugins, 2021 theme).

There are two errors in the console:


{{{
api-fetch.min.js?ver=5f98b08f212ba8fa8b4685ad2e1b1378:2 GET https://dev.msiachild.org/wp-json/wp/v2/media/16?context=edit&_locale=user 403
}}}

and


{{{
Uncaught (in promise) 
{code: ""rest_forbidden_context"", message: ""Sorry, you are not allowed to edit this post."", data: {…}}
code: ""rest_forbidden_context""
data:
status: 403
__proto__: Object
message: ""Sorry, you are not allowed to edit this post.""
__proto__:
constructor: ƒ Object()
hasOwnProperty: ƒ hasOwnProperty()
isPrototypeOf: ƒ isPrototypeOf()
propertyIsEnumerable: ƒ propertyIsEnumerable()
toLocaleString: ƒ toLocaleString()
toString: ƒ toString()
valueOf: ƒ valueOf()
__defineGetter__: ƒ __defineGetter__()
__defineSetter__: ƒ __defineSetter__()
__lookupGetter__: ƒ __lookupGetter__()
__lookupSetter__: ƒ __lookupSetter__()
get __proto__: ƒ __proto__()
set __proto__: ƒ __proto__()
}}}

"	yewzy
1	42532	Custom post type : redirection bug after publish when cap edit_published_cpt is not set		Role/Capability		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2017-11-13T12:49:29Z	2019-01-16T06:34:06Z	"For a custom post type (movie for example), if user have capability `publish_movies` but not `edit_published_movies`, when he publishes a new movie, he is redirected to `http://example.com/edit.php` instead of
`http://example.com/edit.php?post_type=movie`

I make a gif to illustrate this : 
[[Image(https://media.giphy.com/media/xT0xeo4c4WIOKd4qFW/giphy.gif)]]

----

User role capabilities  :
* edit_movies
* edit_others_movies
* publish_movies
* read
Custom post type settings : 
{{{
	$labels = array(
		""name"" => __( ""Movies"", ""twentyseventeen"" ),
		""singular_name"" => __( ""Movie"", ""twentyseventeen"" ),
	);

	$args = array(
		""label"" => __( ""Movies"", ""twentyseventeen"" ),
		""labels"" => $labels,
		""description"" => """",
		""public"" => true,
		""publicly_queryable"" => true,
		""show_ui"" => true,
		""show_in_rest"" => false,
		""rest_base"" => """",
		""has_archive"" => false,
		""show_in_menu"" => true,
		""exclude_from_search"" => false,
		""capability_type"" => ""movie"",
		""map_meta_cap"" => true,
		""hierarchical"" => false,
		""rewrite"" => array( ""slug"" => ""movie"", ""with_front"" => true ),
		""query_var"" => true,
		""supports"" => array( ""title"", ""editor"", ""thumbnail"" ),
	);

	register_post_type( ""movie"", $args );

}}}
"	ajoah
1	56256	The 'capability' parameter in the get_users function may not give the expected results.		Role/Capability	5.9	normal	normal	Future Release	defect (bug)	new	has-patch	2022-07-20T12:51:07Z	2022-07-26T15:46:29Z	"Specifying multiple different capabilities for the 'capability', 'capability__in', and 'capability__not_in' parameters of the get_users function may not produce the expected results.

The user's metadata is as follows

{{{
mysql> select * from wp_usermeta where meta_key='wp_capabilities';
+----------+---------+-----------------+---------------------------------+
| umeta_id | user_id | meta_key        | meta_value                      |
+----------+---------+-----------------+---------------------------------+
|       12 |       1 | wp_capabilities | a:1:{s:13:""administrator"";b:1;} |
|       54 |       2 | wp_capabilities | a:1:{s:6:""author"";b:1;}         |
+----------+---------+-----------------+---------------------------------+
}}}

In this situation, run the following PHP script

{{{
var_dump( get_users( [ 'capability' => ['edit_posts', 'edit_pages'], 'fields' => 'ID' ] ) );
}}}

The output is as follows, and no matching user ID can be obtained.

{{{
array(0) {
}
}}}

The cause is in the code after line 481 of `class-wp-user-query.php`.

{{{
		foreach ( $available_roles as $role => $role_data ) {
			$role_caps = array_keys( array_filter( $role_data['capabilities'] ) );

			foreach ( $capabilities as $cap ) {
				if ( in_array( $cap, $role_caps, true ) ) {
					$caps_with_roles[ $cap ][] = $role;
					break;
				}
			}

			foreach ( $capability__in as $cap ) {
				if ( in_array( $cap, $role_caps, true ) ) {
					$role__in[] = $role;
					break;
				}
			}

			foreach ( $capability__not_in as $cap ) {
				if ( in_array( $cap, $role_caps, true ) ) {
					$role__not_in[] = $role;
					break;
				}
			}
		}

}}}

Because the loop process is terminated immediately after storing the ""role"" of the first ""capability"" in the array, the ""roles"" of the second and subsequent ""capabilities"" are not stored.

Therefore, the 'role' of the second and subsequent 'capability' is no longer included in the search criteria, and the expected results are not obtained.

Specifically, the search query looks like this

{{{
				WHERE 1=1 AND ( 
  ( 
    ( 
      ( wp_usermeta.meta_key = 'wp_capabilities' AND wp_usermeta.meta_value LIKE '%\""edit\\_posts\""%' ) 
      OR 
      ( wp_usermeta.meta_key = 'wp_capabilities' AND wp_usermeta.meta_value LIKE '%\""administrator\""%' ) 
      OR 
      ( wp_usermeta.meta_key = 'wp_capabilities' AND wp_usermeta.meta_value LIKE '%\""editor\""%' ) 
      OR 
      ( wp_usermeta.meta_key = 'wp_capabilities' AND wp_usermeta.meta_value LIKE '%\""author\""%' ) 
      OR 
      ( wp_usermeta.meta_key = 'wp_capabilities' AND wp_usermeta.meta_value LIKE '%\""contributor\""%' ) 
    ) 
    AND 
    ( 
      ( mt1.meta_key = 'wp_capabilities' AND mt1.meta_value LIKE '%\""edit\\_pages\""%' )
    )
  )
)
}}}

Remove the break statement for confirmation.

The search query then changes as follows

{{{
				WHERE 1=1 AND ( 
  ( 
    ( 
      ( wp_usermeta.meta_key = 'wp_capabilities' AND wp_usermeta.meta_value LIKE '%\""edit\\_posts\""%' ) 
      OR 
      ( wp_usermeta.meta_key = 'wp_capabilities' AND wp_usermeta.meta_value LIKE '%\""administrator\""%' ) 
      OR 
      ( wp_usermeta.meta_key = 'wp_capabilities' AND wp_usermeta.meta_value LIKE '%\""editor\""%' ) 
      OR 
      ( wp_usermeta.meta_key = 'wp_capabilities' AND wp_usermeta.meta_value LIKE '%\""author\""%' ) 
      OR 
      ( wp_usermeta.meta_key = 'wp_capabilities' AND wp_usermeta.meta_value LIKE '%\""contributor\""%' ) 
    ) 
    AND 
    ( 
      ( mt1.meta_key = 'wp_capabilities' AND mt1.meta_value LIKE '%\""edit\\_pages\""%' ) 
      OR 
      ( mt1.meta_key = 'wp_capabilities' AND mt1.meta_value LIKE '%\""administrator\""%' ) 
      OR 
      ( mt1.meta_key = 'wp_capabilities' AND mt1.meta_value LIKE '%\""editor\""%' ) 
    )
  )
)
}}}

The return value of the get_users function is as follows

{{{
array(1) {
  [0]=>
  string(1) ""1""
}
}}}

Something similar occurs with the 'capability__in' and 'capability__not_in' parameters.

"	tmatsuur
1	49345	User with admin privileges cannot edit some pages/posts		Role/Capability	5.3.2	normal	normal	Awaiting Review	defect (bug)	new		2020-02-02T20:05:29Z	2020-02-02T20:05:29Z	"It happened to me when I deleted the admin user with ID = 1 and moved all its posts and pages to another user with admin privileges. As soon as I did it, some older pages could not be edited anymore (only seen or deleted).

In order to regain control of those pages, I had to patch wp-includes/capabilities.php as follows:

{{{
function current_user_can( $capability, ...$args ) {
       $current_user = wp_get_current_user();

       if ( empty( $current_user ) ) {
               return false;
       }

       if ($current_user->has_cap(‘create_users')) return true; // line added

       return $current_user->has_cap( $capability, ...$args );
}
}}}
"	malamiao
1	49287	Users with no page deletion capabilities can delete homepage in multisite		Role/Capability		normal	normal	Awaiting Review	defect (bug)	new		2020-01-24T16:37:27Z	2020-01-24T16:40:17Z	"To recreate:

- Set up a vanilla multisite. On one of the sites, set a static page as the homepage. Create a second page for comparison purposes.
- Create a standard administrator user on that site. By default, they have permission to delete both the pages referred to above (expected behaviour).
- Add the following to the theme's `functions.php`:

{{{
add_action('init', function () {
        $role = get_role('administrator');
        $role->remove_cap('delete_pages');
        $role->remove_cap('delete_others_pages');
        $role->remove_cap('delete_published_pages');
});
}}}

The administrator role is now unable to delete pages EXCEPT the page that is set as the homepage, which they are still able to trash.

It appears this bug exists in v4.7 onwards. In 4.6.1 I see the expected behaviour: this code prevents an administrator from trashing any pages, including the page set as the homepage."	robdxw
1	37917	Users without the edit_private_posts capability can still create private posts		Role/Capability	2.1	normal	normal	Awaiting Review	defect (bug)	new	close	2016-09-01T21:32:26Z	2025-10-16T15:12:54Z	"Currently, users without the ""edit_private_posts"" capability, can still view the ""Private"" radio button under ""Visibility"". They can also save / publish the post (depending on their capabilities) with no issue. The same goes for pages as well with the ""edit_private_pages"" capability. I think it's reasonable enough to assume that users that don't have the ""edit_private_{post_type}"" capability, shouldn't be able to create posts with a visibility of private."	ryan.kanner
1	45879	WP_User::set_role() does not remove previous roles		Role/Capability		normal	normal	Awaiting Review	defect (bug)	new		2019-01-09T14:28:45Z	2019-01-09T14:39:00Z	"If a user has a role that has been removed from WordPress by using remove_role() this role is not removed when using WP_User::set_role() on the user.

Example:

remove_role('subscriber') has been used on the install removing the subscriber role from available roles.

A new user is created with wp_create_user()

The new user is automatically assigned the role subscriber (which does not exist)

The new users role is set using WP_User::set_role()

In the database, the usermeta row with capabilities for the new user still contains the subscriber role and the new role is given an index of 1 instead of 0 in the $user->roles array.

Expected result:

WP_User::set_role() should effectively remove all previous roles from the user even if they have been removed from WordPress with remove_role().

"	fried_eggz
1	40950	wp_terms_checklist() does not pass $post_id to current_user_can()		Role/Capability		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-06-08T15:00:37Z	2021-03-05T20:20:40Z	"An incorrect post_id gets passed in $args to a filter on map_meta_cap, when wp_terms_checklist() does a capability check to see if category checkboxes should get a disabled attribute.

`$args['disabled'] = ! current_user_can( $tax->cap->assign_terms );`


We had an issue where we were checking the post type in a map_meta_cap filter and it was always showing a standard post type instead of the appropriate custom post type leading to category checkboxes being disabled. 

Expected behaviour: The post_id passed in $args to the map_meta_cap callback should relate to the post being edited / created 

How to recreate: 
1. Create a custom Post Type
2. Add a filter on map_meta_cap
3. Create or edit a post
4. Check the value passed in $args to your filter when wp_terms_checklist does a capability check to see if categories should get a disabled attribute. 

Workaround: Use the global $post variable instead of the passed post_id"	anigel
1	44017	Add filter to display edit post link without 'edit_post' capability		Role/Capability		normal	major	Awaiting Review	enhancement	new	reporter-feedback	2018-05-09T04:40:20Z	2025-09-27T14:18:27Z	"WordPress has come a long way from just being a Blogging CMS. Now we can allow our end users to Post using different plugin without bringing the users in WP Admin. So, basically users don't need the 'edit_post' capability to be just able to create and edit posts using plugins.

Hence, this filter is needed so that plugins can allow any user to view the built in edit post link on front-end if needed."	rafsuntaskin
1	64306	Enhancements: Add 'designer' user role, Collaborator groups/teams, display multiple contributor types and co-authors, contributor heirarchy on posts/pages		Role/Capability		low	trivial	Awaiting Review	enhancement	new		2025-11-25T22:16:10Z	2025-11-27T12:34:27Z	"With the introduction of notes in WP 6.9 I believe the ability to add multiple authors ala #7650 is a feature request that should be reconsidered. (But don't close this yet, it's not an exact duplicate)

Co-authors are common for publications and it probably would not be that difficult to add the proper relationships/taxonomies for the basic architecture of displaying co-authors (but I hope I don't eat my words here). 

In addition to being able to list multiple authors / co-authors on posts:

- Core could facilitate author groups (teams) where users can be added to a group/team and then the group name is the author, and when you hover over or click on the group name it displays the list of authors/contributors belonging to that group. The groups could also have different roles within them like author, editor, designer etc.

- Posts themselves could have more than one contributor-type field. Not only co-authors but other roles as well i.e. author, co-author, collaborator, editor, designer, etc. Of course there is currently no 'designer' user role in Core so that would have to be added.

- Additionally there could be author hierarchies where one user or user group is highlighted as the main author and then the collaborators etc are listed as support or collaborators

- Groups/teams listed as author could come with the option to select who from the group/team contributed and display those names as collaborators rather than the entire group. So an option in the sidebar to list the entire group or select specific individuals.

- Names of whomever wrote block notes could be pulled and added as collaborators automatically (with a toggle), as well as the ability to add them manually similarly to how we add categories."	amykamala
1	44468	Introduce infrastructure for testing primitive capabilities granted via `user_has_cap`		Role/Capability		normal	normal	Future Release	enhancement	new	has-patch	2018-06-26T17:58:40Z	2019-09-20T23:24:47Z	"There are three ways of granting capabilities to a user:
* Via the database, with capabilities being granted through a role. Those capabilities are referred to as ""primitive capabilities"".
* Via the `map_meta_cap` filter, with capabilities being resolved to one or more primitive capabilities. Those capabilities are referred to as ""meta capabilities"".
* Via the `user_has_cap` filter, with capabilities being granted as if they were in the database too. This has existed for a very long time, but has not been used in core until recently.

**So what is this about?**

New capabilities introduced to core should not be added to the database. However, many of the new capabilities are not meta capabilities, and it would be wrong to use `map_meta_cap` for them. Those capabilities should be dynamically granted, but essentially behave just like primitive capabilities.

There are numerous of those capabilities in core that historically use `map_meta_cap()` (for example `customize`, `manage_privacy_options`, ...), and we probably cannot change that. But for the future, we should ensure we stick to this separation and only use `map_meta_cap()` for actual meta capabilities, i.e. capabilities that receive additional arguments (like a post ID, a plugin slug, ...) and are then resolved.

Originally introduced as part of #41332 (but not being suitable for discussion in there), this ticket aims at providing a comprehensive testing infrastructure for those capabilities. While currently the only capability granted like that is `install_languages`, this infrastructure will encourage granting dynamic primitive capabilities the proper way.

cc @johnbillion"	flixos90
1	42405	Introduce singular capabilities for enabling individual themes on Multisite		Role/Capability		normal	normal	Future Release	enhancement	new	needs-unit-tests	2017-11-01T22:14:24Z	2017-11-01T22:14:24Z	"Related: #39083

The ability to enable or disable individual themes for a site from the Network Admin -> Sites -> Edit -> Themes screen should be controlled by singular capabilities.

* `enable_theme`
* `disable_theme`"	johnbillion
1	43210	Introduce singular capabilities for managing individual options		Role/Capability		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2018-02-02T00:21:35Z	2018-04-19T21:52:52Z	"We've always had `manage_options`, but it's currently impossible whether a user can manage a specific option. As part of related tickets dealing with more granular capabilities (see https://core.trac.wordpress.org/query?status=accepted&status=assigned&status=new&status=reopened&status=reviewing&keywords=~granular-capabilities&col=id&col=summary&col=status&col=owner&col=type&col=priority&col=milestone&col=component&order=priority), I suggest adding a meta capability `manage_option`.

It should accept (or basically require) the option name as argument. By default it should fallback to the regular `manage_options`, but an `auth_callback` could be passed to `register_setting()` to tweak the permissions there (such an `auth_callback` is already known from `register_meta()`).

This would also be useful for the REST API so that it can use the more granular permissions."	flixos90
1	42404	Introduce singular capabilities for managing individual plugins		Role/Capability		normal	normal	Future Release	enhancement	new	needs-unit-tests	2017-11-01T22:11:24Z	2025-05-25T21:14:39Z	"In #38652, singular capabilities were added for activating and deactivating individual plugins.

The same should be added for other management actions for plugins:

* `edit_plugin` (ability to adit plugin via the Plugin Editor)
* `delete_plugin` (ability to outright delete the plugin)
* `update_plugin` (ability to update a plugin)

Network activation and deactivation will be handled in #42403"	johnbillion
1	55106	Split publish_posts in publish_posts and publish_others_posts		Role/Capability		normal	normal	Awaiting Review	feature request	new		2022-02-07T21:24:30Z	2022-02-08T08:10:48Z	"While working on a multisite blog I've found that several capabilities have an _others_ version, but is missing on the `publish_posts` capability.

This is important because you currently can't limit someone to publish only his/her own posts. It's all or nothing. Example: a newly added Author can publish a draft from the Administrator.
It can also be seen as a feature the other way around: when everyone has only `publish_others_posts` capabilities, every posts has to get a second pair of eyes before getting published.

**I suggest implementing:**

`publish_posts` - Controls whether objects of this type __owned by current user__ can be published. Set as default capability of Super Admin, Administrator, Editor, Author.

`publish_others_posts` - Controls whether objects of this type __owned by other users__ can be published. If the post type does not support an author, then this will behave like publish_posts. Set as default capability of Super Admin, Administrator, Editor.
"	freakenstein
1	53848	'is_feed was called incorrectly' notice if `wp_styles()` is called before the query		Script Loader	5.8	normal	normal	Awaiting Review	defect (bug)	new		2021-07-31T17:20:16Z	2021-12-14T23:59:40Z	"WordPress 5.8 introduced the `wp_should_load_separate_core_block_assets` (https://developer.wordpress.org/reference/functions/wp_should_load_separate_core_block_assets/) function which calls `is_feed()` internally as part of its preliminary checks that guard the application of its filter.

Since `wp_should_load_separate_core_block_assets` is now called within `wp_default_styles()`, this has the potential to raise a ""doing it wrong"" notice if `WP_Styles` is initialized before the query runs for non-admin requests.

`wp_styles()` has never imposed such timing restrictions on when it is called, this is somewhat of a breaking change.

Ideally a different condition that does not impose the same limitation could be used in the place of `is_feed` here."	aaemnnosttv
1	43900	Add hint about blocked Javascript as possible error reason in script-loader.php		Script Loader		normal	normal	Awaiting Review	defect (bug)	new		2018-04-29T18:52:58Z	2018-05-02T09:41:14Z	"When trying to do various things with a new site, I got the same error message over and over: 
{{{Connection lost or the server is busy. Please try again later.}}}

I even reinstalled, but the error didn't go away. When I revisited the issue next day, finally realized what silly mistake i had made.

In order to help other people with same issue, we only need to change the string above in /wp-includes/script-loader.php (around row 840) into:
{{{Connection lost, the server is busy, or you may have blocked JavaScript. Please try again later.}}}
"	tobifjellner
1	63179	Dependencies should load in the footer if the script is loaded in the footer		Script Loader		normal	normal	Awaiting Review	defect (bug)	new		2025-03-26T14:29:02Z	2025-03-27T09:12:56Z	"Followup to https://core.trac.wordpress.org/ticket/35956


{{{#!php
<?php
wp_register_script('parent','parent.js', array('child'), '1', array( 'in_footer' => true ) );
wp_register_script('child', 'child.js', array(), '1' );
wp_enqueue_script('parent');
}}}

This will print ""child"" in head, but parent in the footer.
But child should print in the footer too I guess, since it's just loaded as dependency?

I assume this is bc of https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/class-wp-scripts.php#L314C6-L314C22 with docs:
>3. The intended strategy is delayed.

Why does the intended strategy matter here for the dependency?
Removing that condition should fix it (not tested, just assuming it from what I see in the code)"	kkmuffme
1	54993	Inline output using wp_enqueue_block_style adds unnecessary paths		Script Loader	5.9	normal	normal	Awaiting Review	defect (bug)	new		2022-01-30T04:44:07Z	2022-01-30T11:36:03Z	"Outputting inline using wp_enqueue_block_style, adds an unnecessary path to the CSS property. I want to delete it.

=== CSS

{{{
.wp-block-button{
	mask:url(""data:image/svg+xml;base64,iRxVB0…"");
}
}}}

=== PHP

Refer to (https://make.wordpress.org/core/2021/12/15/using-multiple-stylesheets-per-block/)

{{{#!php
<?php
add_action( 'after_setup_theme', function() {
    // Same args used for wp_enqueue_style().
    $args = array(
        'handle' => 'my-theme-buttons',
        'src'    => get_theme_file_uri( 'assets/blocks/buttons.css' ),
    );
 
    // Add ""path"" to allow inlining asset if the theme opts-in.
    $args['path'] = get_theme_file_path( 'assets/blocks/buttons.css' );
 
    // Enqueue asset.
    wp_enqueue_block_style( 'core/buttons', $args );
} );
}}}

=== Result

Output inline.

{{{
<style id='my-theme-buttons-inline-css'>
.wp-block-button{
	mask:url(""/wp-content/themes/abc/assets/blocks/data:image/svg+xml;base64,iRxVB0…"");
}
</style>
}}}

The path

  /wp-content/themes/abc/assets/blocks/

is not needed. I want to delete it. Is there any solution? Or is it a bug?

"	s56bouya
1	61657	"Script ""in_footer"" => false with ""defer"" will make all dependencies that are not deferred load in head"		Script Loader		normal	normal	Awaiting Review	defect (bug)	new	close	2024-07-16T02:03:52Z	2025-12-09T17:13:14Z	"

{{{
wp_register_script( 'foo', get_template_directory_uri() . '/foo.js', array(), '1.0.0', array( 'in_footer' => true ) );

wp_register_script( 'bar', get_template_directory_uri() . '/bar.js', array( 'foo' ), '1.0.0', array( 'in_footer' => false, 'strategy' => 'defer' ) );
}}}

This will output both scripts in the head.
However, this isn't necessary and leads to worse performance.
Because ""bar"" which isn't loaded in footer, is loaded using the ""defer"" attribute, the browser would execute it after ""foo"", even though it's in the HTML before it.

The only exception is browsers that do not support the ""defer"" attribute (which currently there are none to consider https://caniuse.com/script-defer), where this wouldn't work.

A practical use case is wp-admin: these pages are usually not page cached, and it takes considerable amount of time from the time the header is flushed to the browser to the time PHP generated the page up to the footer and flushed it to the browser.
This time can be used by the browser to download these JS files in the head; the ""defer"" attribute ensures it will only execute once the whole page has loaded.

Secondly, I suggest that if a script that has footer false with defer and an ""after"" inline script is added to it, it will not just drop the ""defer"" but instead convert the footer false to footer true internally (since this was the original intention of the execution point when it was registered)

"	kkmuffme
1	63043	script-loader 'colors' src true invalid argument		Script Loader		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-03-03T01:34:52Z	2025-03-03T08:06:07Z	"https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/script-loader.php#L1587

{{{#!php
<?php
$styles->add( 'colors', true, array( 'wp-admin', 'buttons' ) );
}}}

`true` is not a valid 2nd argument for `add`, `string|false` expected."	kkmuffme
1	62265	wp-admin honors style-sheet <=> 'SCRIPT_DEBUG' is true.		Script Loader	6.6.2	normal	normal	Awaiting Review	defect (bug)	new		2024-10-21T15:27:53Z	2024-10-21T20:21:28Z	" Newly installed 6.6.2. Front-end requests worked fine. /wp-admin requests, by contrast, were css-free. For example, /wp-admin/wp-site-editor.php reported that javascript was not enabled and Firefox clearly showed that it was.

""define( 'SCRIPT_DEBUG', false );"" problem.
""define( 'SCRIPT_DEBUG', true );"" No problem.

I'm pretty sure that there is a defective dependancy and 'SCRIPT_DEBUG' compensates for it. My unfounded suspicion is that jQuery was not being loaded. No jQuery could look exactly like no javascript."	cjm51213
1	55030	wp_enqueue_script( 'jquery-ui-autocomplete' ) - is enqueueing a bunch of extra scripts I don't need		Script Loader		normal	normal	Awaiting Review	defect (bug)	new		2022-02-01T16:56:14Z	2022-02-18T11:57:05Z	"When I enqueue default scripts located in WP, specifically 
{{{#!php
<?php
wp_enqueue_script( 'jquery-ui-autocomplete' )
}}}


All of these extra scripts are also loaded on the front-end:

wp-includes/js/dist/a11y.min.js
wp-includes/js/dist/i18n.min.js
wp-includes/js/dist/hooks.min.js
wp-includes/js/dist/dom-ready.min.js
wp-includes/js/dist/vendor/wp-polyfill.min.js
wp-includes/js/dist/vendor/regenerator-runtime.min.js


I was using this reference:
https://developer.wordpress.org/reference/functions/wp_enqueue_script/#default-scripts-and-js-libraries-included-and-registered-by-wordpress

Is this normal behavior?"	wpfed
1	58075	wp_enqueue_scripts action not firing at the right time with block themes		Script Loader	6.2	normal	major	Awaiting Review	defect (bug)	new		2023-04-04T05:01:44Z	2023-05-26T09:44:21Z	"How to reproduce:

Use this piece of code somewhere in the (child) theme or a plugin

{{{#!php
<?php
add_filter( 'the_content', function( $content ) {
	ob_start();
	var_dump( did_action( 'wp_enqueue_scripts' ) );
	$done = ob_get_clean();
	return $content . $done;
} );
}}}

It will print `0` despite being in the middle of processing the post content.

It cause problems for plugins that add inline JS (`wp_add_inline_script`) in the post content that are generated from plugin settings or a block attributes for instance.

Does not happen with any other theme"	wprj
1	66322	Command Palette: Add keywords to admin menu commands		Script Loader		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-10-15T19:03:53Z	2026-10-15T19:11:32Z	"The Command Palette registers a command for every admin menu item (#63845), but these commands can only be found by their label. Searching for ""favicon"", ""timezone"" or ""password"" finds nothing, even though Settings > General and Users > Profile are where those are.

The Command Palette has supported keywords since [https://github.com/WordPress/gutenberg/pull/70624 Gutenberg #70624]. When [https://github.com/WordPress/gutenberg/pull/71476 Gutenberg #71476] moved admin navigation to commands generated from the admin menu, there was no longer a way to attach keywords to them. That was listed as one of its trade-offs.

The proposal is that keywords come from PHP, next to the `label`, `url` and `name` that `wp_enqueue_command_palette_assets()` already sends.


== Proposed change ==

 * A new function, `wp_get_admin_menu_command_keywords()`, returns keywords for core admin screens, keyed by menu slug.
 * A new filter, `admin_menu_command_keywords`, lets plugins add keywords for their own pages. They key them by the same `$menu_slug` they pass to `add_menu_page()` or `add_submenu_page()`.
 * `wp_enqueue_command_palette_assets()` adds a `keywords` list to each top-level and submenu command. Commands without keywords get an empty list.

For example, a plugin could add:

{{{
add_filter(
        'admin_menu_command_keywords',
        function ( $keywords ) {
                $keywords['my-shop'] = array( 'orders', 'products' );
                return $keywords;
        }
);
}}}

The Gutenberg side, which passes the keywords through to the palette, is in [https://github.com/WordPress/gutenberg/pull/84834 Gutenberg #84834]."	jdeep
1	40602	Implement immutable cache headers	pbearne	Script Loader		normal	normal	Future Release	enhancement	assigned	has-patch	2017-04-29T00:01:18Z	2025-02-12T19:33:25Z	"When you have js files that will not change in a certain version of Wordpress, why not set the immutable cache that is enabled on various browsers?

https://hacks.mozilla.org/2017/01/using-immutable-caching-to-speed-up-the-web/


For example this url should never change output unless user changed the wordpress version, in which case the ver= will change, forcing browser to load that url.

/wp-admin/load-scripts.php?c=gzip&amp;load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,underscore,mediaelement,jquery-ui-sortable&amp;ver=4.7.4"	programmin
1	63793	Parser-blocking scripts should render last in all cases to speed up page load		Script Loader	2.1	normal	normal	Future Release	enhancement	new	has-patch	2025-08-07T00:58:31Z	2025-08-18T13:32:51Z	"Since <script> tags are render and parser blocking, WP should print all scripts that have neither defer/async (as effective strategy! the intended/data-wp-strategy is irrelevant) last*, after all other scripts.
*taking into account dependencies of course. This means that all scripts that have dependencies or inline/localized, should also be moved as late as possible.

{{{
<script>var a = 'localized';</script>
<script>console.log( 'aInlineScript' );</script>
<script src=""a.js"" defer>
<script src=""b.js"">
<script src=""c.js"" async>
<script src=""d.js"" defer>
}}}

Printing them in the following order, will significantly speed up reaching DOMContentLoaded, without having any impact on functionality:

{{{
<script src=""d.js"" defer>
<script src=""c.js"" async>
<script>var a = 'localized';</script>
<script>console.log( 'aInlineScript' );</script>
<script src=""a.js"" defer>
<script src=""b.js"">
}}}

Additionally, afaik all ""async"" should be printed after all ""defer"", since executing the async JS will potentially delay further parsing (thus delaying the download of any unparsed scripts)
"	kkmuffme
1	66342	Script Loader: Add an API for stylesheet LINK tags		Script Loader		normal	normal	7.3	enhancement	new	commit	2026-10-19T15:08:13Z	2026-10-20T17:30:10Z	"Stylesheet `<link>` tags in WordPress Core are largely built as HTML strings, so adding attributes such as a CSP `nonce`, `integrity`, or `crossorigin` often requires modifying markup through `style_loader_tag`. Scripts already have `wp_get_script_tag()` and the `wp_script_attributes` filter, while #51325 proposes the corresponding API for inline `<style>` tags.

The proposed API introduces `wp_get_style_link_tag()`, `wp_print_style_link_tag()`, and the `wp_style_attributes` filter, using `WP_HTML_Tag_Processor` to validate and escape attributes.

The implementation is split into three PRs:

* [https://github.com/WordPress/wordpress-develop/pull/14498 PR #14498]: Adds the API and uses it in `WP_Styles::do_item()`, including right-to-left and alternate stylesheets, `wp_admin_css()`, and `locale_stylesheet()`.
* [https://github.com/WordPress/wordpress-develop/pull/14499 PR #14499]: Updates the remaining Core call sites in `wp_ajax_parse_embed()`, `wp_ajax_parse_media_shortcode()`, and the deprecated theme compatibility header.
* [https://github.com/WordPress/wordpress-develop/pull/14500 PR #14500]: Updates Twenty Ten and Twenty Eleven, with a fallback for older WordPress versions.

PRs #14499 and #14500 depend on #14498.

== Backward compatibility ==

The existing `style_loader_tag` and `wp_admin_css` filters remain available. Unlike the changes to script tags in [56687], the historical quoting, escaping, and attribute order are preserved for existing attributes that `wp_style_attributes` does not modify. The new attributes filter runs before the legacy filters.

The filter cannot change or remove an existing `id`, since other code may depend on it. `style_loader_tag` also continues to receive the original escaped URL, even if `wp_style_attributes` modifies `href`.

One compatibility change is that `WP_Styles::do_item()` now uses `get_src()` instead of `_css_href()`, so subclasses overriding `_css_href()` no longer affect the printed URL.

Additionally, stylesheet URLs previously printed without escaping by `locale_stylesheet()` and the remaining Core call sites in PR #14499 are now escaped."	huubl
1	43781	adding apply_filters on $handle in localize		Script Loader	4.9.5	normal	normal	Awaiting Review	enhancement	new		2018-04-16T14:26:34Z	2018-04-16T14:51:26Z	"in functions.wp-scripts.php we have:

return $wp_scripts->localize( $handle, $object_name, $l10n );

it would be nice to have an apply_filters on the $handle (with object_name as an argument optionally), since it would make overwriting it e.g. for a global concat minified file much easier & faster.
(bc now I have to get the scripts, then loop over it, localize the group,...) while I could do the whole thing with an apply_filters within 1 line.

"	DuckDagobert
1	56993	I want to put a filter in the wp_enqueue_block_support_styles function.		Script Loader	6.1	normal	normal	Awaiting Review	feature request	new		2022-11-04T01:44:31Z	2023-10-25T22:43:41Z	"In the `wp_enqueue_block_support_styles` function, I'm changing the `$action_hook_name` to header or footer for block theme and classic theme.
In that case, when using PHP templates in a customized scene with a block theme, the CSS may not be output if it is a header.
(If it is a footer, it will be output.)

So I would like to put a filter in the `wp_enqueue_block_support_styles` function so that `$action_hook_name` can be changed freely

[https://developer.wordpress.org/reference/functions/wp_enqueue_block_support_styles/]"	nendeb55
1	41391	Links to media in password protected pages		Security	4.7.5	normal	normal	Awaiting Review	defect (bug)	new		2017-07-20T21:38:59Z	2017-07-24T09:06:28Z	"I was able to see a google search and view a pdf that was housed on a password protected page. This was one of 2 pages I found: http://www.mspcommercial.net/wp-content/uploads/2012/07/4-tessar-14.pdf. Please confirm that the other PDFs we have stored on pages that are set up the exact same way are safe.

Thank you. 

Samantha Doffing"	sdoffing
1	63940	Prevent POST flood cache bypass attacks		Security	6.8.2	normal	normal	Awaiting Review	defect (bug)	new		2025-09-06T07:53:52Z	2025-09-06T07:53:52Z	"When a POST request is sent to a regular page with no data/body, a 200 response containing the page content is returned just like with a GET request.

We have seen such requests being used to bypass our caching system.

Would it be possible for WP to return 405 when a page isn’t supposed to receive POST requests?"	prestonwordsworth
1	65574	Unsafe usage of href attribute in wp-admin/js/common.js		Security	7.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-07-01T19:06:10Z	2026-07-17T13:32:43Z	"(This was initially reported privately as a security issue but it was considered not a core vulnerability.
I still think it is worth hardening so I am reporting it as a bug.)

wp-admin/js/common.js passes the value of the href attribute to {{{$()}}} without sanitizing it:
{{{
panel = $( link.attr('href') );
}}}
This is dangerous because {{{$()}}} accepts both a selector or raw HTML.
In theory, this could be exploited if an attacker can inject basic HTML in the admin. (But core does not provide a way to exploit this, it would need to be chained with an HTML injection vulnerability).

For example this payload would trigger the problem if it can be inserted anywhere in the admin:
{{{
<div class=""contextual-help-tabs""><a href=""&lt;img src=x onerror=alert()&gt;"">Click me!</a></div>
}}}
"	Rudloff
1	65573	Unsafe usage of href attribute in wp-admin/js/link.js		Security	7.0	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-07-01T19:06:06Z	2026-08-10T17:35:44Z	"(This was initially reported privately as a security issue but it was considered not a core vulnerability.
I still think it is worth hardening so I am reporting it as a bug.)

wp-admin/js/link.js passes the value of the href attribute to {{{$()}}} without sanitizing it:
{{{
		var t = $(this).attr('href');
		...
		$(t).show();
}}}

This is dangerous because {{{$()}}} accepts both a selector or raw HTML.
In theory, this could be exploited if an attacker can inject basic HTML in the admin. (But core does not provide a way to exploit this, it would need to be chained with an HTML injection vulnerability).

For example this payload would trigger the problem if it can be inserted on /wp-admin/link-add.php:
{{{
<div id=""category-tabs""><a href=""&lt;img src=x onerror=alert()&gt;"">Click me!</a></div>
}}}
"	Rudloff
1	64481	Explore Sec-Fetch Headers as a Core-Supported CSRF Mitigation Mechanism		Security		normal	normal	Awaiting Review	enhancement	new		2026-01-07T21:25:27Z	2026-01-08T16:19:53Z	"Sec-Fetch headers [#ref1 (1)] are a modern browser standard designed explicitly to make CSRF protection simpler and less error-prone. They are recommended by OWASP [#ref2 (2)] (with a fallback to Origin headers for the small percentage of devices that have not yet updated to recent browser versions) [#ref3 (3)], and are increasingly being adopted or considered by major frameworks and platforms as a primary CSRF mitigation mechanism [#ref4 (4)].

WordPress currently relies on nonces as its primary CSRF mitigation mechanism. While effective, nonces are not always consistently applied across plugins and themes, and their per-request nature can complicate caching and scalability, particularly for front-end interactive features.

I’d like to propose a discussion around introducing Sec-Fetch header validation as a core-supported CSRF mitigation mechanism, either as a defense-in-depth measure alongside existing nonce checks, or as an optional alternative in narrowly scoped contexts where request metadata provides sufficient CSRF guarantees (e.g., REST endpoints, admin-AJAX, or certain front-end interactions).

I’m aware that WordPress nonces may serve additional roles beyond CSRF mitigation, such as request intent signaling or accidental invocation protection, and this proposal does not suggest removing or deprecating nonces, nor does it propose changes to capability checks, authentication, or authorization logic.

My hope is that this ticket can serve as a place to explore how Sec-Fetch headers might fit into WordPress’s architecture in a way that improves security, developer ergonomics, and scalability, while preserving existing behavior.


### References

[=#ref1]
(1) [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Site: MDN: Sec-Fetch-Site]

[=#ref2]
(2) [https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html#fetch-metadata-headers: OWASP CSRF Prevention Cheat Sheet]

[=#ref3]
(3) [https://caniuse.com/mdn-http_headers_sec-fetch-site: Can I use: Sec-Fetch-Site browser coverage]

[=#ref4]
(4) [https://github.com/golang/go/issues/73626: Go standard library (Cross-Origin Protection, released in v1.25)]
[https://github.com/rails/rails/pull/56350: Rails `protect_from_forgery` (planned for v8.2)]
[https://github.com/django/new-features/issues/98: Django (Fetch Metadata discussion)]
"	nickchomey
1	60470	Use `filter_input` instead of superglobals where possible		Security		normal	normal	Awaiting Review	enhancement	new		2024-02-07T19:50:25Z	2024-02-09T22:58:07Z	"The `$_SERVER`, `$_GET`, and `$_POST` variables are inherently unsafe and shouldn't be used, as they can be modified in userland.

`filter_input` should be used instead - for cases where there is no appropriate sanitizing available the FILTER_CALLBACK flag can be used with the WP sanitizing function, e.g. FILTER_CALLBACK

"	kkmuffme
1	43215	Allow wp_kses to pass allowed CSS properties		Security	4.9.2	normal	normal	Awaiting Review	feature request	new		2018-02-02T12:31:48Z	2025-11-19T20:48:55Z	"`wp_kses` takes arguments for allowed HTML elements, HTML element attributes, and allowed protocols. It takes all of these directly via the function argument through a nicely formatted assoc array. On the side side, attribute values (i.e. ""display: block; visibility: hidden;"") are configured via a hook, which means they are changed globally for all future calls. 

Here a sample how the system is behaving currently:
{{{#!php
<?php
$allowed_output_html = array(
	'script' => array(),
	'noscript' => array(),
	'iframe' => array(
		'src' => array(),
		'width' => array(),
		'height' => array(),
		'style' => array(),
	),
);

$allowed_output_protocol = array(
	'https',
	'javascript',
);

$google_tag_manager_noscript <<<'ENDSTRING'
<noscript><iframe src=""https://www.googletagmanager.com/ns.html?id=123""
	height=""0"" width=""0"" style=""display:none;visibility:hidden""></iframe></noscript>
ENDSTRING;

echo wp_kses( $google_tag_manager_noscript, $allowed_output_html, $allowed_output_protocol);

// Outputs as it should except for the style=""display:none;visibility:hidden"" portion
// <noscript><iframe src=""https://www.googletagmanager.com/ns.html?id=123"" height=""0"" width=""0""></iframe></noscript>

}}}

It seems that currently the only way to allow the ""style"" attribute from showing is to write a filter for ""safe_style_css"" to add in the ""display"" and ""visibility"" attributes, however this means that we are globally altering this behavior, which in other scenarios would allow unexpected HTML to appear (ie unsafe element properties). Even when removing the items immediately after executing the code will not work because the attribute may in the future be consider secure. This then causes an inconsistent execution. 
For example, imagine that if we wanted to make sure the ""float"" attribute was allowed in the attribute value. Currently this value is allowed, so us adding it in won't change the array. However when we're then undoing our action (ie removing the ""float"" attribute from the list of allowed attributes, we are actually removing one that was set as ""safe"" by WordPress themselves. It is easy to imaging how this could escalate further, when plugins blanket whitelist element attributes, then remove them from the list, then meaning that no attributes are allowed.
Alternatively, in this same example if we removed our filter (with remove_filter) right after our wp_kses call,  it would mean that our attribute whitelist would apply to all HTML attributes (display, visibility,...) and not only the one we would want to whitelist (style).

{{{#!php
<?php

// Function to whitelist safe CSS attributes
function my_safe_css_attributes( $array ){
   $array[] = 'display';
   $array[] = 'visibility';
   return $array;
});

// Function to remove our CSS attributes from the whitelist
function my_safe_css_remove_attributes( $array ){
   unset $array['display'];
   unset $array['visibility'];
   return $array;
}

$allowed_output_html = array(
	'script' => array(),
	'noscript' => array(),
	'iframe' => array(
		'src' => array(),
		'width' => array(),
		'height' => array(),
		'style' => array(),
	),
);

$allowed_output_protocol = array(
	'https',
	'javascript',
);

$google_tag_manager_noscript <<<'ENDSTRING'
<noscript><iframe src=""https://www.googletagmanager.com/ns.html?id=123""
	height=""0"" width=""0"" style=""display:none;visibility:hidden""></iframe></noscript>
ENDSTRING;

// Telling WordPress about safe CSS attributes...
add_filter( 'safe_style_css', 'my_safe_css_attributes' );

echo wp_kses( $google_tag_manager_noscript, $allowed_output_html, $allowed_output_protocol);

add_filter( 'safe_style_css', 'my_safe_css_remove_attributes' );

// Outputs as it should.
// <noscript><iframe src=""https://www.googletagmanager.com/ns.html?id=123"" height=""0"" width=""0"" style=""display:none;visibility:hidden""></iframe></noscript>

}}}


I initially expected the allowed_output_html to allow overriding allowed attribute values from the ""style"" element in the array, which I thought would have been a really neat way of overwriting the execution on a one-time basis.

{{{#!php
<?php
$allowed_output_html = array(
	'script' => array(),
	'noscript' => array(),
	'iframe' => array(
		'src' => array(),
		'width' => array(),
		'height' => array(),
		'style' => array(
			'display', 'visibility'
		),
	),
);

// ...
}}}


I think it would make sense to make the function accept this added level of depth as it allows very flexible configuration of what attributes are allowed without compromising attribute
"	mclaurent
1	60887	After upgrade to WordPress 6.4.3, do_shortcode no longer works in page templates		Shortcodes	6.4.3	normal	critical	Awaiting Review	defect (bug)	new		2024-04-02T19:19:13Z	2024-04-02T19:19:13Z	"I have a page template that displays a section for events using The Events Calendar shortcode along with some params the user enters such as category and number of events to display. This worked prior to the update. I have tried moving the do_shortcode function to a template part and then loading that template part into my template, but get the same outcome. The shortcode is displayed as plain HTML. 

{{{
echo do_shortcode('[tribe_events_list tags=""' . $tag_parameter . '"" limit=""' . $number_of_events . '""]');
}}}

displays on front end as [tribe_events_list tags=""dining-nightlife"" limit=""2""]
"	mgonzalez007
1	51377	Front End elements break after too many shortcodes		Shortcodes	5.1.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-09-23T06:25:52Z	2020-09-24T07:28:11Z	"I recently joined a wordpress project to try to fix some issues with the code. This project uses around 1000 different shortcodes and at somewhere in the middle of the development of these shortcodes when an addition was made the Front-End elements will disappear. After some testing and debugging i was able to add many more shortcodes with reducing the length of the $tag parameter of the ""add_shortcode()"" method. This drew me to the conclusion that there is a limitation of the offset of the summation of all shortcodes' $tags Strings in the whole WordPress installation. Is this a viable conclusion or is there something more to it? Please let me know as i need to proceed with this.

Enjoy your day and thank you."	ghostofharambe
1	57790	Parsing of Shortcode Attributes: bug locating a final attribute		Shortcodes	6.1.1	normal	normal	Awaiting Review	defect (bug)	reopened	dev-feedback	2023-02-22T19:00:16Z	2025-03-18T13:18:28Z	"`shortcode_parse_atts()` uses the `get_shortcode_atts_regex()` pattern to return all `attribute=""value""` matches, however the pattern does not account for shortcode strings where the final attribute pair does not have a space between `""` and `]`
\\
\\
{{{
shortcode_parse_atts('[shortcode-name category=""banana-stand"" money=""yes""]'); //no space
}}}
returns
{{{
Array(
    [0] => [shortcode-name
    [category] => banana-stand
    [1] => money=""yes""]
)
}}}
\\
whereas
\\
{{{
shortcode_parse_atts('[shortcode-name category=""banana-stand"" money=""yes"" ]'); //has space
}}}
returns
{{{
Array(
    [0] => [shortcode-name
    [category] => banana-stand
    [money] => yes
    [1] => ]
)
}}}

I ran the `get_shortcode_atts_regex()` pattern through a couple regex testers and verified that the issue is the non-capturing group conditional following the end-quote of a value. "	lemernbag
1	35216	Return empty string from wp.shortcode.replace() callback is ignored		Shortcodes	3.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2015-12-24T11:58:32Z	2026-11-02T06:33:31Z	"I was trying to just remove a shortcode by returning empty string from `wp.shortcode.replace()` callback.

**For example**


{{{
var text = ""This is some content with shortcode. [foo]some content[/foo]

text = wp.shortcode.replace('foo', text, function(tag){
    
    // attributes and content values are broken.

    return '';

});
}}}

The callback function simply get ignored. No replacement happened for the shortcode. If I return anything other then empty string for example `' '` (string with space) it does replace the shortcode.

I am not sure if this behavior was intended or not.
"	prionkor
1	61007	Shortcode aren't paste inline in paragraphs		Shortcodes	6.5	normal	major	Awaiting Review	defect (bug)	new		2024-04-13T12:44:40Z	2024-08-24T22:34:52Z	"After updating to 6.5 WordPress version, when I go to paste a shortcode from the clipboard to a paragraph or other editable component, the shortcode opens a new block, but doesn't allow paste inline as before. 

Here's a GIF
[[Image(https://core.trac.wordpress.org/raw-attachment/ticket/61007/shortcodes-inline.gif, alt=""pasting shortcode in Paragraph block"")]]
"	soivigol
1	43457	`wp_html_split` valid HTML attributes issues		Shortcodes		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2018-03-02T08:25:56Z	2024-05-28T14:45:08Z	"There are a handful of valid HTML attributes that shatter `wp_html_split`.

Since it works by looking for the `<` character we can break it in many ways, starting from:

https://mathiasbynens.be/demo/crazy-class
https://mathiasbynens.be/demo/html5-id

And ending in the less exotic and crazy:

{{{
<span data-content=""<p>abcd</p>"">loading...</span>
}}}

Same goes for CSS attribute selectors in <style> tags.

Related #43456, #39153, #40191"	soulseekah
1	26649	escaped shortcodes should not be expanded during 'get_the_excerpt'		Shortcodes	3.7.1	normal	normal	Future Release	defect (bug)	reopened	dev-feedback	2013-12-16T15:13:48Z	2026-07-23T23:39:32Z	"It is possible for ""the_content"" filter to be invoked while processing ""get_the_excerpt"".

If the do_shortcodes() filter hook is attached to both ""the_content"" and ""get_the_excerpt"" then this can lead to an unexpected expansion of an escaped shortcode.

This can lead to unwanted side effects, as reported here.
http://www.oik-plugins.com/2013/12/escaped-shortcodes-unexpectedly-expanded-get_the_excerpt/


This minor problem can be alleviated by a simple change to strip_shortcode_tag(), returning the HTML code &#91; as the first character rather than the left square bracket.
{{{
function strip_shortcode_tag( $m ) {
	// allow [[foo]] syntax for escaping a tag
	if ( $m[1] == '[' && $m[6] == ']' ) {
		return ""&#91;"" . substr($m[0], 2, -1) ;
	}
	return $m[1] . $m[6];
}
}}}

I don't believe that it's necessary to make the same change in do_shortcode_tag().


"	bobbingwide
1	46412	Make shortcode attributes case-insensitive? shortcode_parse_atts		Shortcodes	5.1	normal	normal	Awaiting Review	enhancement	new		2019-03-04T15:44:12Z	2019-03-04T18:49:11Z	"**When specifying default attributes in the callback function of my registered shortcode:**

{{{#!php
<?php
function some_shortcode_callback( $user_attributes = array() ) {

	$default_attributes = array(
		'someShortcodeAttribute'  => null,
	);
	
	$attributes = shortcode_atts( $default_attributes, $user_attributes );

	print_r($default_attributes);
	print_r($user_attributes);
	print_r($attributes);

        // ....

}
}}}


**If the user requested this:**

{{{
[some_shortcode someShortcodeAttribute=""test""]
}}}


**I would expect this:**

{{{
Array
(
    [someShortcodeAttribute] => 
)

Array
(
    [someShortcodeAttribute] => test
)

Array
(
    [someShortcodeAttribute] => test
)
}}}



**but instead, I'm getting this:**

{{{
Array
(
    [someShortcodeAttribute] => 
)

Array
(
    [someshortcodeattribute] => test
)

Array
(
    [someShortcodeAttribute] => 
)
}}}


This would always produce the default shortcode attribute and never honor the user specified shortcode attribute.

Which, in my opinion, is wrong. The user requested a camel-case shortcode attribute and the shortcode was built to accept camel-case shortcode attributes. The result should be a parsed camel-case array key and respective value pair.

Can we remove the `strtolower` calls on the shortcode attributes?

"	michael.ecklund
1	66207	Shortcodes: Update in harmony with HTML API		Shortcodes	trunk	normal	normal	Future Release	enhancement	new	has-patch	2026-09-29T17:36:00Z	2026-09-29T17:41:05Z	"WordPress’ Shortcode system has been gradually de-ephasized, but remains in use by many plugins, themes, and Core itself. There are many ways that it is ripe for updating, particularly in harmony with the HTML API.

 - It needs a performance overhaul to replace memory-heavy and inefficient processor.
 - It needs to harmonize with HTML parsing now that WordPress has the ability to understand HTML content.
 - Ambiguities in the grammar needs better explicit documentation. These ambiguities are results of the PCRE patterns which //define// how Shortcodes are parsed.
 - The multiple ways of finding and processing Shortcodes need to be combined into a convenient and single semantic API.

This is a tracking issue to organize the long-term project.

== Notes

=== Parsing is extremely dynamic.

The parsing syntax for Shortcodes is itself dependent on the runtime system when the request is run and when functions like `do_shortcodes()` is called. There may be historic conflation between “only process registered shortcodes” and “only recognize syntax based on registered shortcodes.” This is because //only registered Shortcodes are recognized as Shortcode syntax//.

{{{#!php
<?php

add_shortcode( 's0', fn () => '' );
echo do_shortcodes( 'a[s0]b[s1]c' );
// 'ab[s1]c'
}}}

This dynamism can create surprising behavior, for example, because escaped Shortcodes are not recognized for non-registered Shortcodes. In the following snippet, one //might// expect that `[s0]` should not be rendered because it appears to be part of the content of the non-registered `[s1]` Shortcode, which itself is escaped, meaning that the entire input string would come out unaltered by `do_shortcodes()`.

{{{#!php
<?php

add_shortcode( 's0', fn () => '' );
echo do_shortcodes( '[[s1]a[s0]b[/s1]]' );
// '[[s1]ab[/s1]]'
}}}

This dynamism also implies that one cannot “find” the Shortcodes in an HTML document in isolation. In fact, a given document may have a different set of Shortcodes in it based on who is asking, when, and proverbially what direction the wind is blowing.

=== Parsing only matches positive assertive patterns.

Due to the way that Shortcode handling is based on PCRE patterns and functions, there is no inherent error-handling for malformed Shortcode syntax. Added to this, the matcher is written as a single PCRE pattern with several noteworthy characteristics;

 - Escaping brackets are captured on either side, regardless if they are balanced. Shortcodes which were meant to be escaped can be swallowed because of a missing escaping bracket at close.
 - Whether a Shortcode expects a closing tag is based on whether the closing tag appears in the same document. Non-registered Shortcodes can interact unexpectedly with closing tags, creating them when they were not intended to exist.
 - Rules for parsing switch between affirmative lists (e.g. “a tag name may contain these characters”) and negative lists (e.g. “to parse a tag name, match until these characters appear”) and this leaves room for different code to have different understandings of where Shortcodes exist.
 - Shortcodes without closing tags, or Shortcodes whose closing tags appear far later in a document, cause an undue performance burden during parsing.

{{{#!php
<?php
$input = 'a[s0]b[s1]c[/s0]d[/s1]e';
add_shortcode( 's1', fn ( $attrs, $content ) => ""[s1:{$content}]"" );
do_shortcodes( $input );
add_shortcode( 's0', fn ( $attrs, $content ) => ""[s0:{$content}]"" );
do_shortcodes( $input );

//   input: a[s0]b[s1]c[/s0]d[/s1]e
//      s1: a[s0]b[s1:c[/s0]d]e
// s0 + s1: a[s0:b[s1]c]d[/s1]e
}}}


The documentation thankfully notes some of the wishy-washy nature of Shortcode handling.

 - [https://codex.wordpress.org/Shortcode_API Shortcode API]
 - [https://codex.wordpress.org/Shortcode Shortcode]

This helpfully acknowledges that defining behavior is difficult given that most of the existing behaviors are emergency due to the way the PCRE pattern happened to have been written, but it misses out on being helpful in clarifying expectations for how given Shortcode syntax will be handled. It fails to build an intuition on Shortcode handling.

=== Behavior has changed over time.

There have been changes in how Shortcodes are processed and the documentation makes clear that not all existing behaviors are guaranteed. Almost all variation occurs in abnormal cases, where markup is malformed or where there is valid-looking Shortcode syntax for non-registered Shortcodes.

Notably, an attempt was made to only parse Shortcodes within HTML syntax tokens. Unfortunately, at the time this appeared, WordPress had no reliable mechanism for parsing HTML and so a number of extant behaviors remain as emergent from those decisions.

Enforcing a new intentional set of behaviors can clarify and simplify how Shortcodes work in WordPress.

=== Finding potential Shortcode closers first be much more efficient.

Shortcode closing tags are only matched with very specific syntax. Yet, when reaching an opening tag, it’s required to scan, potentially, to the end of the document to find out //if// a closing tag exists. This occurs for every opening Shortcode tag.

However, a quick pass through the document can find a set of candidate Shortcode closing tags, and as opening tags are found, a rapid search through this candidate list can return matching closers. Advancing past a candidate closing Shortcode purges the set of candidates, maintaining search efficiency.

== Tasks

 - [ ] Replace call to `wp_kses_hair_parse()` with HTML API parsing.
 - [ ] Rebuild parser with efficient streaming parser.
 - [ ] Define changes in behavior to normalize processing.

== Related work

 - #50683 Rebuild the Shortcode parser."	dmsnell
1	62752	Enhance Audio and Video Shortcodes with Custom Features (Tracklist, Images, Artists, Track Numbers, and Media Handling)		Shortcodes	6.7.1	normal	normal	Awaiting Review	feature request	new	dev-feedback	2024-12-29T19:29:19Z	2025-01-02T06:54:52Z	"This feature request aims to enhance the existing WordPress audio and video shortcodes by allowing for additional customization options. Currently, the audio and video shortcodes in WordPress are basic and only support direct source files. I propose the following updates to give users more flexibility when embedding media:

Dynamic Support for Media Types: Automatically support multiple audio/video formats (e.g., mp3, wav, ogg for audio; mp4, webm, ogv for video) without requiring additional custom attributes.
Additional Custom Attributes: Include options for:
Tracklist: Display an optional tracklist for audio files.
Track Numbers: Option to show track numbers in the tracklist.
Artists: Option to display artist names.
Images: Option to display cover art images.
Style: Allow a style attribute to specify visual presentation (e.g., dark or light theme).
Improved Handling of Multiple Formats: Automatically handle multiple media sources (audio and video) to ensure compatibility with various file types without additional user input.
This functionality would streamline media management, especially for content creators who use multiple media formats.

{{{#!php
<?php
function sbp_audio_shortcode($output, $atts) {
    // Get default supported audio file types from WordPress
    $default_types = wp_get_audio_extensions();

    // Set default attributes, including 'src' and all media types from $default_types
    $defaults_atts = array(
        'src' => '',
        'style' => 'dark',
        'images' => true,
        'artists' => true,
        'tracklist'=> true,
        'tracknumbers' => true,
    );

    // Dynamically add default values for each media type (mp3, wav, ogg, etc.)
    foreach ( $default_types as $type ) {
        $defaults_atts[ $type ] = '';  // Initialize each file type as an empty string
    }

    // Merge default attributes with user-supplied ones
    $atts = shortcode_atts( $defaults_atts, $atts );

    // Initialize the output container
    $container = '';
    $media_id = 0;

    // First, check if 'src' is set (general media URL)
    if (!empty($atts['src'])) {
        $media_id = attachment_url_to_postid(esc_url($atts['src']));
    } else {
        // Loop through default types (e.g., mp3, wav, ogg) and check if any are provided
        foreach ( $default_types as $ext ) {
            if ( !empty($atts[ $ext ]) ) {
                // Check if the file type is valid
                $type = wp_check_filetype( $atts[ $ext ], wp_get_mime_types() );

                if ( strtolower( $type['ext'] ) === $ext ) {
                    // Extract the media ID from the source URL
                    $media_id = attachment_url_to_postid(esc_url($atts[ $ext ]));
                    break;  // Use the first valid file type found
                }
            }
        }
    }

    // Prepare and display the playlist if a valid media ID was found
    if ($media_id) {
        $playlist_attr = array(
            'type' => 'audio',
            'order' => 'ASC',
            'orderby' => 'post__in',
            'ids' => $media_id,
            'style' => $atts['style'],
            'tracklist'   => false,
            'tracknumbers'=> false,
            'images' => $atts['images'],
            'artists' => $atts['artists'],
        );

        // Generate the playlist using wp_playlist_shortcode
        $container .= wp_playlist_shortcode($playlist_attr);
    } else {
        $container .= '<p>No valid media found for the given sources.</p>'; // Fallback message if no media found
    }

    return $container; // Return the playlist or message
}
add_filter('wp_audio_shortcode', 'sbp_audio_shortcode', 10, 2);

// Add the filter to handle video shortcodes
function sbp_video_shortcode($output, $atts) {
    // Get default supported video file types from WordPress
    $default_types = wp_get_video_extensions();

    // Set default attributes, including 'src' and all media types from $default_types
    $defaults_atts = array(
        'src' => '',
        'style' => 'dark',
        'images' => true,
        'artists' => true,
        'tracklist'=> true,
        'tracknumbers' => true,
    );

    // Dynamically add default values for each media type (mp3, wav, ogg, etc.)
    foreach ( $default_types as $type ) {
        $defaults_atts[ $type ] = '';  // Initialize each file type as an empty string
    }

    // Merge default attributes with user-supplied ones
    $atts = shortcode_atts( $defaults_atts, $atts );

    // Initialize the output container
    $container = '';
    $media_id = 0;

    // First, check if 'src' is set (general media URL)
    if (!empty($atts['src'])) {
        $media_id = attachment_url_to_postid(esc_url($atts['src']));
    } else {
        // Loop through default types (e.g., mp4, wemb, ovg) and check if any are provided
        foreach ( $default_types as $ext ) {
            if ( !empty($atts[ $ext ]) ) {
                // Check if the file type is valid
                $type = wp_check_filetype( $atts[ $ext ], wp_get_mime_types() );

                if ( strtolower( $type['ext'] ) === $ext ) {
                    // Extract the media ID from the source URL
                    $media_id = attachment_url_to_postid(esc_url($atts[ $ext ]));
                    break;  // Use the first valid file type found
                }
            }
        }
    }

    // Prepare and display the playlist if a valid media ID was found
    if ($media_id) {
        $playlist_attr = array(
            'type' => 'video',
            'order' => 'ASC',
            'orderby' => 'post__in',
            'ids' => $media_id,
            'style' => $atts['style'],
            'tracklist'   => false,
            'tracknumbers'=> false,
            'images' => $atts['images'],
            'artists' => $atts['artists'],
        );

        // Generate the playlist using wp_playlist_shortcode
        $container .= wp_playlist_shortcode($playlist_attr);
    } else {
        $container .= '<p>No valid media found for the given sources.</p>'; // Fallback message if no media found
    }

    return $container; // Return the playlist or message
}
add_filter('wp_video_shortcode', 'sbp_video_shortcode', 10, 2);
}}}
"	pressthemes1
1	47984	Filter pre_do_shortcode		Shortcodes		normal	normal	Awaiting Review	feature request	new	has-patch	2019-09-05T22:25:29Z	2019-09-05T22:25:29Z	"I have some situations where an ability to override the shortcode parse/render logic would be very useful. I've prepared and will attach a draft version patch.

An example to demonstrate its need for my use case: currently, the $content is first processed by `do_shortcodes_in_html_tags`, then the rest of the text. This is problematic for some nested shortcodes where the ""parent"" shortcode provides a context for its ""child"" shortcodes - if any of the latter are in an HTML attribute, they're rendered ''before'' the parent shortcode is passed its inner content. I'd like a filter to handle it so that parent and child shortcodes are rendered in the expected order.

Another point in favor of this filter is that it would be useful to hook onto all places where shortcodes are being rendered outside `the_content`, for example, inside a rich text editor field.

I modelled the patch after the `pre_do_shortcode_tag`."	miyarakira
1	52977	Consider using basic auth in https healh check.		Site Health	5.7	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2021-04-06T00:14:57Z	2023-09-08T00:39:23Z	"If the WordPress dashboard is behind basic auth, in some checks the site health component will pass the authentication through to background HTTP requests (the wp-cron tests does this for example).

The https detection test does not do this, it would be worth discussing whether it should:

* always do this
* send a second request with basic auth if the first request fails
* something similar not listed here :)

Follow up to #52783."	peterwilsoncc
1	47050	Recovery Email - Keep consistent newline spacing around ###CAUSE### mergetag		Site Health	5.2	normal	minor	Future Release	defect (bug)	new	has-patch	2019-04-26T03:59:17Z	2021-05-08T13:55:08Z	"Hello,

While translating I came to the recovery email which uses several mergetags. They're all surrounded by empty lines with the exception of ###CAUSE### which I felt odd.

Current Email;
{{{
Howdy!↵
↵
Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.↵
###CAUSE###↵
First, visit your website (###SITEURL###) and check for any visible issues. Next, visit the page where the error was caught (###PAGEURL###) and check for any visible issues.↵
↵
###SUPPORT###↵
↵
If your site appears broken and you can't access your dashboard normally, WordPress now has a special ""recovery mode"". This lets you safely login to your dashboard and investigate further.↵
↵
###LINK###↵
↵
To keep your site safe, this link will expire in ###EXPIRES###. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.↵
↵
###DETAILS###
}}}
Code Reference - https://build.trac.wordpress.org/browser/trunk/wp-includes/class-wp-recovery-mode-email-service.php?marks=134#L139

Opening this ticket to introduce empty lines around ###CAUSE###

The cause strings I found are;
""In this case, WordPress caught an error with one of your plugins, %s.""
""In this case, WordPress caught an error with your theme, %s.""

Both could use the space and not be sandwiched between the first two large paragraphs.

Cheers"	garrett-eclipse
1	52343	Site Health Page: Inactive theme message is inconsistent		Site Health	5.6	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2021-01-22T07:34:10Z	2021-01-28T18:07:48Z	"On the Site Health page, the Theme related messages are confusing. The way theme name is written in different areas is not consistent as well.

`File: /wp-admin/includes/class-wp-site-health.php`

**Scenario 1 (More than 2 themes available including Twenty Twenty-One):**
**Message:**
----
Your site has 1 inactive theme, other than Twenty Twenty-One, the default WordPress theme, and Yardrive, your active theme. We recommend removing any unused themes to enhance your site’s security.
----
From the above message, it is clear that WordPress recommends removing all themes that unused. If someone removes **all** except the active one, Site Health then says:
**Your site does not have any default theme.**

This is confusing. The initial message should be more self-explanatory, something like:

Your site has 1 inactive theme, other than Twenty Twenty-One, the default WordPress theme, and Yardrive, your active theme. We recommend keeping at least one theme to be used as the default along with the active theme and remove the rest to enhance your site's security. Default themes are used by WordPress automatically if anything is wrong with your chosen theme.


**Scenario 2: (2 themes without any bundled theme)**
**Message:**
----
Your site has 1 inactive theme, other than twentytwentyone, the default WordPress theme, and Yardrive, your active theme. We recommend removing any unused themes to enhance your site's security.
----
Again, this is confusing. It says ""other than twentytwentyone"", when I do not have that theme installed at all!
Also, look at how the theme name is written in different cases.
In the first case, it says **Twenty Twenty-One**, and for the second one, it becomes **twentytwentyone**. They should be consistent.

If there is no twentytwentyone, either remove it from the message or include the exact theme name that is installed instead of twentytwentyone.

Twenty Twenty-One is the default theme with WordPress 5.6, which is fine, but at the same time, the theme name should be used in such a way that it does not create any confusion in users' minds. Please note, I am talking about WordPress users, not developers.

If someone has any bundled theme like twenty19 or twenty17 installed other than twenty21 as the default theme, either it should not complain about twenty21 or this should be made clear so that general WordPress users know that twenty21 is the default theme for WordPress 5.6 and is recommended to be there as the default theme.

If the above makes sense, I would be happy to go ahead and try to build a patch for this.

Regards"	subrataemfluence
1	51830	Site Health Themes checkout isn't correct about automatic usage of default theme or themes condition in case of a broken theme		Site Health	5.2	normal	normal	Future Release	defect (bug)	new		2020-11-20T06:33:33Z	2020-11-21T20:07:58Z	"1. In absence of a default theme Site Health says:

""Your site does not have any default theme. Default themes are used by WordPress automatically if anything is wrong with your chosen theme.""

https://yadi.sk/i/mP_59ss-3AsCCQ

It does not work this way:

a. PHP error in an active theme:
https://yadi.sk/i/MuqOAQ0kjldWPw

b. Absence of an active theme:
https://yadi.sk/i/Bzpy1icVk1Csiw

c. Absence of style.css — theme continues to work

And default theme is only activating automatically if you go to ""Appearance > Themes"" and formally something is wrong with theme, like an absence of style.css, but even if the theme can work fine but user after opening this page has no chouse what to do. It is not a convenient solution for a user not to see what was wrong and not to have a choice of what to do. More to the subject: #51479

2. Site Health don't tell about the absence of style.css which is causing the switch to default theme if you are visiting ""Appearance > Themes"". So, it does not run the same check what is doing this Themes page.

https://yadi.sk/i/XeoY3c1x4rG_IA"	oglekler
1	54598	Site Health makes downright wrong and dangerous suggestions		Site Health		normal	normal	Awaiting Review	defect (bug)	reopened	close	2021-12-08T00:40:03Z	2025-03-23T18:03:04Z	"1. ""Background updates are not working as expected""
   
We absolutely do not want background updates to run. We want to carefully manage updates by performing them in a test environment before we then deploy the changes to staging and finally production. Too much breakage otherwise. White screen of death anyone?
   
2. ""Some files are not writable by WordPress:""
   
The wordpress files are served from a read-only store and having the web application have access to modify itself is a *terrible* recommendation from a security point of view.
   
3. ""Inactive plugins are tempting targets for attackers."". 

How is an inactive plugin special in terms of attackability? Surely ""Code that runs on an internal accessible is a tempting target for attackers"". 

Whether they are active or not, plugins *in general* should be kept to a minimum to minimize the attack surface. Also, how is an inactivate plugin a target in the first place? If it's deactivated, surely it doesn't run. If there is a way to execute code in a deactivated plugin surely *that* needs to be addressed.
   
4. ""You should remove inactive themes""
   
Same as with plugins.

5. Some plugins will also detect that auto-updates are disabled and add to the noise

One example is ""MonsterInsights"" that reports ""Automatic updates are disabled"". See item 1.
"	peterhoegsg
1	62630	Site Health plugin information display html tags in plugin name		Site Health	6.7.1	normal	trivial	Awaiting Review	defect (bug)	new	has-patch	2024-12-02T14:36:32Z	2024-12-18T04:39:28Z	html tag usage is permissible in plugin metadata. For some reason the Site Health -> info tab doesnt remove html tags in plugin names. See attached image.	ignatiusjeroe
1	46967	Site health, info tab: show the current uploads directory info on network installs		Site Health	5.2	normal	normal	Future Release	defect (bug)	new	dev-feedback	2019-04-18T00:21:04Z	2019-06-20T14:44:58Z	"Follow-up from #46954.

Most of the information shown in the ""Directories and Sizes"" section doesn't apply for sites on a network install. Useful debug info would be to show the current site's upload directory path, size, and percentage of used space. Other info that may be useful there is the max file size allowed, as set in the network settings."	azaozz
1	66060	Site health: robots.txt and WordPress in a subdir		Site Health	7.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-09-07T10:49:20Z	2026-10-07T14:55:09Z	"See file `wp-admin/includes/class-wp-debug-data.php` line 571 and following

{{{
// Check if a robots.txt file exists.
}}}

This code prevents `robots.txt` from being determined correctly, if the installation is located in a subdirectory. 
Site health reports: 'Your site is using the dynamic robots.txt file which is generated by WordPress.' This is not correct.

A `robots.txt` file should be located in `$_SERVER[""DOCUMENT_ROOT""]` and, in this case, it cannot be handled by WordPress. `get_home_path()` and `$_SERVER[""DOCUMENT_ROOT""]` return different values.


How about this code:

	{{{#!php
<?php
        $site       = wp_parse_url( get_home_url() );
	$serverroot = $site['host'];
	if ( isset( $site['path'] ) ) {
            // cannot handled by WP
        }
}}}

The user should provide a `robots.txt` in `$_SERVER[“DOCUMENT_ROOT”]` or relevant directives in `$_SERVER[“DOCUMENT_ROOT”]/.htaccess`.
"	hupe13
1	61577	health check count display bug		Site Health	6.5.5	normal	normal	Awaiting Review	defect (bug)	new		2024-07-05T02:33:45Z	2026-07-06T01:53:05Z	"WP: 6.5.5
PHP: 8.2

I found this bug with using OWASP ZAP.

I got this error


{{{
PHP Fatal error:  Uncaught TypeError: number_format(): Argument #1 ($num) must be of type float, string given in /wp-includes/functions.php:424
Stack trace:
#0 /wp-includes/functions.php(424): number_format()
#1 /wp-admin/menu.php(368): number_format_i18n()
#2 /wp-admin/admin.php(158): require('...')
#3 /wp-admin/index.php(10): require_once('...')
#4 {main}
  thrown in /wp-includes/functions.php on line 424
}}}


Then, I found that the error was in the below code.

wp-admin/menu.php line 349 - 369
{{{#!php
$get_issues = get_transient( 'health-check-site-status-result' );

$issue_counts = array();

if ( false !== $get_issues ) {
	$issue_counts = json_decode( $get_issues, true );
}

if ( ! is_array( $issue_counts ) || ! $issue_counts ) {
	$issue_counts = array(
		'good'        => 0,
		'recommended' => 0,
		'critical'    => 0,
	);
}

$site_health_count = sprintf(
	'<span class=""menu-counter site-health-counter count-%s""><span class=""count"">%s</span></span>',
	$issue_counts['critical'],
	number_format_i18n( $issue_counts['critical'] )
);
}}}

An error occurs when **critical** value is not a number.
I think this values is usually only number but in my case was string.


wp-admin/includes/ajax-actions.php line 5445 - 5455
{{{#!php
function wp_ajax_health_check_site_status_result() {
	check_ajax_referer( 'health-check-site-status-result' );

	if ( ! current_user_can( 'view_site_health_checks' ) ) {
		wp_send_json_error();
	}

	set_transient( 'health-check-site-status-result', wp_json_encode( $_POST['counts'] ) );

	wp_send_json_success();
}
}}}

I think probably that OWASP ZAP requests the string.
I think that not enough validation when save for transient data(health-check-site-status-result).


The error can be with the following code
{{{#!php
add_action( 'admin_footer' , 'example_admin_footer' );

function example_admin_footer() {

  ?>
  <script>
  jQuery(function( $ ) {

    const _wpnonce = '<?php echo esc_js( wp_create_nonce( 'health-check-site-status-result' ) ); ?>';

    const counts = {
      'critical': 'test',
      'good': 3,
      'recommended': 8
    };

    $.ajax({
      type: 'post',
      url: ajaxurl,
      data: {
        'action': 'health-check-site-status-result',
        '_wpnonce': _wpnonce,
        'counts': counts
      }
    }).done( function( xhr ) {

      console.log(xhr);

    });

  });
  </script>
  <?php

}

}}}
"	gqevu6bsiz
1	52945	wp_cache settings not recognized in site health / plugins		Site Health	5.7	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2021-03-30T23:19:14Z	2021-03-31T00:09:12Z	"maybe only a false positive message:
wp_cache is set to false (must set to true for wprocket).
and in plugins (drop in): advanced-cache.php inactive (needs wp_cache true in wp-settings.php)

I did manually downgrade to wp 5.6.2 (without changing anything) and the errors disappears."	pwallner
1	62526	Add the theme type (block theme or non block theme) to the site health page		Site Health		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2024-11-22T13:50:22Z	2025-05-26T14:29:53Z	"Hello,

Now 2 types of theme are  running in the WordPress ecosystem, I think we should add a mention in the Site Health.

Something like `Block theme: true/false`

Because a block theme is not managed like a ""classic"" one, it can be useful to adapt our help.
For example, about a menu issue, there's no more Menu item in Appreance with Block theme"	sebastienserre
1	59362	Display deprecated function usage in Site Health		Site Health	6.3.1	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2023-09-15T09:17:44Z	2023-09-16T19:27:31Z	"== Enhancement Request ==
=== Summary ===

WordPress Site Health provides valuable information about the health and performance of a WordPress instance. However, it does not offer any insights into whether the instance is using deprecated functions, classes, constructors, hooks, file_includes, which can be  crucial for maintaining the site's compatibility with future WordPress versions.

This enhancement ticket proposes adding an additional check to Site Health that detects and displays information about any deprecated functions, classes, constructors, hooks, file_includes, being used within the WordPress instance.

Adding a ""Deprecated Functions"" check to the Site Health tool will be a enhancement for WordPress administrators, helping them identify and replace deprecated functions, classes, constructors, hooks, file_includes, plugins, themes, ensuring the site's long-term stability and compatibility with upcoming WordPress updates.


=== Details ===

The deprecated function check should be integrated into the existing Site Health tool as follows:

1. Log: Log deprecated functions, classes, constructors, hooks, file_includes

2. Display Check Results: Under a ""Deprecated Functions"" check, display a list of deprecated functions, classes, constructors, hooks and file_includes used in the WordPress instance. Result should 
 * include the function, class, constructor, hook or file_include name
 * the version in which it was deprecated
 * which Plugin or Theme called it, 
 * when in was called the last time 
 * a brief explanation of the recommended action.


=== Implementation Suggestions ===

* Utilize existing WordPress core functionality for detecting usage of deprecated functions
* Add a action to 'deprecated_{[]}_run' that logs the usage of a deprecated functions 
* Use debug_backtrace() do indentify the source / code.
* The check results should display the log entries with status 'recommended'.
* Keep the log process ""stupid"" and put logic etc. into the check, to avoid complexity and potential crashes. 

=== Challenges ===

* To provide the administrator with sufficient information so that they are capable of taking action.
* Decision on how long entries stay in the log e.g. only show deprecated function calls of the last 30 days or allow the (administrative ) user to clear the log?
* Should there be one check in Site Health of all kinds of deprecated? Or one for each?

=== Why It's Important ===

WordPress is constantly evolving, and maintaining compatibility with newer versions is crucial for security and performance reasons. Deprecated functions may be removed in future releases, causing issues for sites that rely on them. By providing this information in Site Health, WordPress can empower site administrators to keep their installations future proof.
"	Michi91
1	57349	Page cache is not detected but the server response time is OK		Site Health	6.0.1	normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2022-12-18T10:59:38Z	2024-03-07T10:19:01Z	"New site health feature that reports on page cache says ""Page cache is not detected but the server response time is OK""

Later expresses that""Page cache is detected by looking for an active page cache plugin as well as making three requests to the homepage and looking for one or more of the following HTTP client caching response headers:

cache-control, expires, age, last-modified, etag, x-cache-enabled, x-cache-disabled, x-srcache-store-status, x-srcache-fetch-status.""

I do happen to have cache control expires age less modified and e-tags. But these are applied by nginx reverse proxy. Wondering why they're not detected.. When it checks the page is it running it by using localhost? Or does it try from the domain name? I think it should be set up to make a request to the actual domain name if it does not say that it would get a more accurate view of the headers."	djav1985
1	52471	Site Health Upload-related INI values could use consistent formatting		Site Health		normal	normal	Awaiting Review	enhancement	new	close	2021-02-08T16:32:09Z	2021-02-14T19:05:33Z	"In #50038, we added a new section to Site Health -> Info section to show upload-related limits. 

Currently, it does not show the information in a consistent way. It shows values like `128M`, `2G`, and `128 MB`. 

I would like to suggest to tweak this to use `size_format` function to properly format them. We already use `wp_convert_hr_to_bytes` function to parse INI-style values (`128M`, `2G`, `2M`, etc); they just need some formatting.

Despite being a smaller diff, I suppose 5.7 is too early to target this, assuming this gets accepted of course."	ayeshrajans
1	54338	"Site Health dashboard: ""insecure PHP"""		Site Health		normal	normal	Awaiting Review	enhancement	new		2021-10-29T08:51:31Z	2024-01-24T09:26:50Z	"Since WordPress 5.1, the [https://make.wordpress.org/core/2019/01/14/php-site-health-mechanisms-in-5-1/ WordPress dashboard has advice about the old PHP versions], and it says something like:

''WordPress has detected that your site is running an insecure version of PHP.''

This is really not accurate because it can be insecure or not. For example, in a few days we will have PHP 8.1, so PHP 7.3 will be end-of-life, but this doesn't really mean that will be insecure by default.

Maybe is more accurate, using [https://www.php.net/supported-versions.php the same words as PHP says] in this case: ""end of life"".

PHP has 3 options:
- Active support: A release that is being actively supported. Reported bugs and security issues are fixed and regular point releases are made.
- Security fixes only: A release that is supported for critical security issues only. Releases are only made on an as-needed basis.
- End of life: A release that is no longer supported. Users of this release should upgrade as soon as possible, as they may be exposed to unpatched security vulnerabilities.

Probably, a text like this will be better:

''WordPress has detected that your site is running an end-of-life / no longer supported version of PHP.''

''WordPress has detected that your site is running an end-of-life version of PHP.''

''WordPress has detected that your site is running a no longer supported version of PHP.''"	JavierCasares
1	60670	[Site Health] Add current mysql version to update recommendation		Site Health		normal	normal	Future Release	enhancement	new	has-patch	2024-03-01T11:54:19Z	2024-03-02T22:56:45Z	"On Site Health Status, if you run an older version of mysql, you will get the recommenation

 For optimal performance and security reasons, you should consider running MySQL version 8.0 or higher. Contact your web hosting company to correct this.

I propose to add the current version there.

 **Your version is [version].** For optimal performance and security reasons, you should consider running MySQL version 8.0 or higher. Contact your web hosting company to correct this."	Presskopp
1	56258	Add IPv6 availability check in Site Health		Site Health		normal	normal	Awaiting Review	feature request	new		2022-07-20T14:23:37Z	2024-03-08T09:34:05Z	As IP4 should be replaced by IPv6, WordPress sites should also be available via IPv6. It would help if a check could be added to the Site Health section to check if the site can be reached over IPv6. If not, an instruction could be given to contact the webhost.	josklever
1	60508	Add a plugin dependency section to Site Health		Site Health		normal	normal	Awaiting Review	feature request	new		2024-02-12T14:51:59Z	2024-02-12T14:52:35Z	"Site Health is a great way to provide an indication something may be broken (missing dependencies), provide additional information about how to go about resolving the problem, and link out to more documentation when necessary.

For support teams, this information could be really helpful when trying to resolve a problem on a site.

At a minimum, the section could list any missing dependencies and maybe which plugins require them. At a maximum, there could be a dependency tree of sorts that helps visualize the shared requirements for their plugins."	desrosj
1	53572	"An ""acknowledged"" category for site health check for things managed outside of WordPress"		Site Health	5.1	normal	trivial	Awaiting Review	feature request	new		2021-07-01T08:45:49Z	2021-10-16T21:16:54Z	"I'd like to have an option to acknowledge single elements of the site health check or an option to mark them as read and done.

Reason for this is that my managed wordpress hoster disables some features like the wordpress in-built updater to manage updates centralized and not from within the wordpress backends hosted by him. That's why wp_version_check() is disabled, but not that much of a problem to have it permanently affecting the site health.

So the site health check should have more categories: something like ""done"" and an ""ignored"" (or ""acknowledged"") and and ""to do"" while ignored should affect the score as if it is done."	paradonym
1	60802	Enable debug mode / debug options in site health		Site Health		normal	minor	Awaiting Review	feature request	new	close	2024-03-18T19:34:03Z	2024-03-19T10:27:07Z	"Debugging is a necessity for any developer and for WordPress users in general. As it stands now debug mode and the related debug options can only be enabled through manually editing the wp-config file to add or adjust wp-config constants. This makes debugging harder to access for everyone, and even more difficult to access for users that are either not familiar with ftp/ssh or who only have wp-admin access and not access to the filesystem. 

Adding toggle options for debugging mode in the Site Health tools wp-admin page would make troubleshooting errors and issues easier and more accessible for all users with administrator access. As a bonus, this would also decrease the demand on web host technical support because users would be more equipt to identify plugin conflicts, php errors and other issues independently.

Proposed Site Health Options: 

- 'Enable debugging on/off' -- WP_DEBUG true/false with false as default and subtext about only setting to true/on for troubleshooting bc of adverse performance effects.
- 'Enable debug log on/off' -- WP_DEBUG_LOG true/false - set to true/on as default and 
- Site Health could and should have a tab to view contents of debug logs within wp-admin (maybe -tail 30 or the last 30-50 results, potentially could improve on this to hide duplicate entries, to hide warnings and notices and to grep/search for keywords)
- 'Show errors on front end on/off' - WP_DEBUG_DISPLAY true/false with a default to false so as not to expose debugging to end users and this could also have a toggle option to display errors only in wp-admin pages and not on the front end
- Debugging should be set to never display on the front end in the first place as a default (ever), that could probably be it's own ticket
- This could be expanded on to include toggle settings for SCRIPT_DEBUG and SAVEQUERIES constants
"	amykamala
1	65677	Site Health - Add a button to copy information from the Status screen		Site Health		highest omg bbq	normal	Awaiting Review	feature request	new		2026-07-21T00:31:52Z	2026-07-21T08:11:19Z	"Currently, there is only a button to copy data from the Information tab, but it is even more valuable for debugging and diagnostics to be able to export all the important detection data displayed on the Status tab.

What I propose is to add a button that allows you to copy all that information as well."	fernandot
1	65635	provide an alternative to the XSLT stylesheet processing instruction for XML Sitemaps since browsers are phasing out support for it		Sitemaps	5.5	normal	normal	Future Release	defect (bug)	new	dev-feedback	2026-07-15T01:34:26Z	2026-07-15T14:30:09Z	"This ticket is a follow-up to ticket:51117#comment:24.

In that comment @westonruter noted that Chrome (and other browsers) will soon deprecate and remove support for XSLT within the browser [[https://developer.chrome.com/docs/web-platform/deprecating-xslt Removing XSLT for a more secure browser]] on/about Nov 17, 2026 (which is after WP 7.1 but before WP 7.2).

When browsers do remove support for XSLT, then users who are used to loading `/wp-sitemap.xml` in their browser are likely to be confused because it will display the raw XML and not the currently rendered HTML sitemap.

Chrome and Firefox (I think) are considering releasing browser plugins that would provide XSLT support for anyone who has those browser plugins installed, but I think core should provide a more ""natural"" solution that doesn't require users install any such browser plugins.

I've been working on a patch that will allow users to load `/wp-sitemap.html` in the browser and get the current HTML rendering of their sitemap, by applying the existing XSLT styelsheet server-side.  Of course, `/wp-sitemap.xml` will continue to provide the raw XML sitemap.  At this point I'd say the patch is little more than a ""proof-of-concept"" and not yet ready to even post here.

Before continuing to work on that patch I wanted to start discussion of this issue and see if others think it is worth putting more time into."	pbiron
1	51280	wp_register_sitemap_provider() breaks sitemap functionality if provider name contains a dash (-)	pbiron	Sitemaps	5.5	normal	minor	Future Release	defect (bug)	assigned		2020-09-09T16:32:32Z	2023-07-12T09:47:19Z	"The announcement post for the functionality (https://make.wordpress.org/core/2020/07/22/new-xml-sitemaps-functionality-in-wordpress-5-5/) includes the following snippet:

wp_register_sitemap_provider( 'awesome-plugin', $provider );

However, I believe that the name doesn't work in practice. From my experiences, using a dash in the sitemap provider name causes the following:

The map is listed on the index, but when trying to view it, you just view your site's home page (not a 404, and not anything sitemappy).

If you register the provider with the name 'awesome-plugin', render_sitemaps() sees the following data:

$sitemap => 'awesome'   (Expected: 'awesome-plugin' )
$object_subtype => 'plugin' (Expected: null )

and then it returns early due to if ( ! $provider )

As another test, I tried simply changing the name of Core's User Sitemap from 'users' to 'foo-users' and got the same result. The map was listed on the index, but when trying to browse it, you just see your site's home page (not a 404).

Doing some debugging, render_sitemaps sees the following data:

$sitemap => 'foo'
$object_subtype => 'users'

and then it returns early due to if ( ! $provider )


"	MadtownLems
1	55477	Add Custom Post Types Archive Pages to Sitemap		Sitemaps	5.9.2	normal	major	Awaiting Review	enhancement	new		2022-03-29T14:41:52Z	2022-03-29T14:41:52Z	"The CPT archive pages do not appear in the sitemap, and there are no suitable hooks to add them (e.g. `wp_sitemaps_posts_query_args`, `wp_sitemaps_posts_pre_url_list`, etc.).

In my opinion it is necessary:

* automatically include all archive pages of custom posts with `has_archive` other than `false`, and
* insert a hook to add additional links

Thanks!"	delitestudio
1	42422	'unique' index not removed from the 'slug' column of the 'wp_terms' table		Taxonomy	4.8.3	normal	normal	Awaiting Review	defect (bug)	new		2017-11-02T19:07:15Z	2017-11-11T18:10:02Z	"This is a follow-up to #22023.

It appears that on one of my older installations of wordpress the unique index was never removed from the 'slug' column of the 'wp_terms' table. The latest update 4.8.3 must have stirred something up with wp cron, conflicting with the unique status of the column. This has caused thousands of the following errors to be logged which in turn caused our server to 503 due to hitting the PHP FcgidMaxProcessesPerClass limit.

Note: this installation has had regular updates since being installed years ago.

{{{
 stderr:
WordPress database error Duplicate entry 'category-slug' for key 'slug' for
query INSERT INTO `wp_terms` (`name`, `slug`, `term_group`) VALUES ('Category Name', 'category-slug', 0) made by do_action_ref_array, WP_Hook->do_action,
WP_Hook->apply_filters, _wp_batch_split_terms, _split_shared_term
}}}"	joellisenby
1	57419	Adding terms to a taxonomy with non-latin characters results in PHP notice		Taxonomy		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-01-03T22:21:36Z	2026-10-15T14:54:26Z	"When adding terms to a taxonomy that was registered with a name that contains non-latin characters, adding any terms to the taxonomy will produce a PHP notice. This, due, to taxonomy names being light in sanitization vs screen code being too harsh.

We, on the WooCommerce team, encountered this in the context of product attributes, which are just a product taxonomy. We then confirmed this happens to all taxonomies having non-latin characters in their name.

[https://core.trac.wordpress.org/ticket/54521 A similar issue], but for quick edit of terms, was also reported. The code involved is different, but the core of the issue is again the discrepancy in sanitization of taxonomy names.

==== Steps to reproduce
1. Register a taxonomy with non-latin characters. For example: `register_taxonomy( 'tamaño', 'post', array( 'labels' => array( 'name' => 'tamaño' ) ) );`
2. Create a term in inside this new taxonomy.
3. Term creation succeeds.
4. Confirm that:
 - The error log contains a PHP notice along these lines: `PHP Notice:  Trying to get property 'show_ui' of non-object in [...]/wp-admin/includes/class-wp-terms-list-table.php on line 573`.
 - Alternatively, test with the [https://wordpress.org/plugins/query-monitor/ Query Monitor plugin] active and confirm that the PHP notice is displayed in the JS console after the AJAX request.

==== Technical details
1. Despite [https://developer.wordpress.org/reference/functions/register_taxonomy/#parameters what the codex says], taxonomy names are actually not sanitized when registering taxonomies with `register_taxonomy()`.
2. When a term is added to a taxonomy, [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/ajax-actions.php#L1069 wp_ajax_add_tag()], which handles the AJAX request, uses the `$_POST['screen']` to get an instance of the terms list table and initialize its screen to that value.
2. `_get_list_table()` in turn calls `convert_to_screen()` on this arg to obtain the screen object.
3. `WP_Screen::get()`, which is called by `convert_to_screen()`, sanitizes the passed value [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-wp-screen.php#L252 using sanitize_key()] which removes all non-latin characters.
4. Other checks in `WP_Screen` now fail as the sanitized taxonomy name obviously doesn't exist.
"	jorgeatorres
1	52726	Allow default term when a user does not have assign_terms capability		Taxonomy	5.5	normal	normal	Awaiting Review	defect (bug)	new		2021-03-05T18:21:04Z	2021-03-05T18:21:04Z	"After #43517, it is possible to register a default term along with a custom taxonomy, similar to how WordPress has long supported a default category.

If I set the `assign_terms` capabilities on the `category` taxonomy to be `manage_categories` (admin/editor) and set a default category, authors are able to create new posts and those posts are assigned a default category. Authors are not able to adjust the categories.

If I adjust the `assign_terms` capabilities on a custom taxonomy to be `manage_categories` and set a default term, authors are able to create new posts, but **no** default term is assigned.

The current assignment of the default term is wrapped in the same logic as the assignment of non-default terms and happens within `current_user_can( $taxonomy_obj->cap->assign_terms )`.

I would expect that default term assignment should happen outside of that `current_user_can()` check if no other terms are assigned."	jeremyfelt
1	38243	Attempting to create a term with invalid UTF8 characters creates a blank term		Taxonomy		normal	normal	Future Release	defect (bug)	new	needs-unit-tests	2016-10-06T13:52:37Z	2019-04-01T17:41:28Z	"Attempting to insert a term which contains invalid UTF8 characters will incorrectly create a term in the database with a blank name & slug. This happens as we check that the term name & slug is provided, but fail to check after sanitizing the term.

In the scenario that I've run into, something similar to this happens:
{{{
$term_name = urldecode( ""360%BF"" ); // Invalid UTF8 character
wp_insert_term( $term_name, 'my_taxonomy' );
}}}

What this causes is
* the checks on `$name` to pass
* it then hits `sanitize_term()` and after passing through `sanitize_text_field()` and then `wp_check_invalid_utf8()` the `name` field of the term is set to an empty string. 
* `wp_insert_term()` then takes this empty name and creates an equally empty slug from it.
* `wp_insert_term()` then calls `get_terms( array( 'name' => '' ) )` and needlessly & badly loads up all 60,000 terms into memory of the custom taxonomy
* `wp_insert_term()` then see's an empty slug and ultimates settles on a setting the slug to the numeric ID of the term somehow
* `wp_insert_term()` finally inserts a term with a numeric slug and empty `name` field

I think at a minimum, we should verify that the term name is still valid after term sanitisation. See patch for that."	dd32
1	44854	Bulk action missing/hidden on taxonomies		Taxonomy	3.8	normal	minor	Awaiting Review	defect (bug)	new	has-patch	2018-08-28T06:20:44Z	2024-04-22T13:07:02Z	"I have found this issue on mobile. When I go to taxonomies like category/tags the bulk action on top of the table is missing. After inspecting it I found that it is getting hidden using CSS. We can make it visible there because if someone wants to bulk delete then they have to select from top and then have to scroll down to do so. Just because it is hidden using CSS still there are CSS rules putting margins and all there.

For this we have to remove this css only:

{{{
@media screen and (max-width: 782px){
.form-wrap>p, .tablenav .view-switch, .tablenav.top .actions, .tablenav.top .displaying-num, .tablenav.top .tablenav-pages.one-page {
    display: none;
}
}
}}}
This will explain what I want to say : https://screencast-o-matic.com/watch/cFju1nqupU

Also here I am seeing that search box is at bottom we can put it just before the table."	poojasahgal
1	64038	Cache miss for `WP_Term_Query`		Taxonomy		normal	normal	Future Release	defect (bug)	new	has-patch	2025-09-24T15:10:59Z	2026-03-30T06:48:14Z	"On a WP fresh install (test made with WP 6.8.2).
1. Activate Query Monitor
2. Visit the posts list table
3. Check that Query Monitor report a duplicate query coming from `WP_Term_Query::get_terms()`:

{{{
SELECT t.term_id
FROM wp_terms AS t
INNER JOIN wp_term_taxonomy AS tt
ON t.term_id = tt.term_id
WHERE tt.taxonomy IN ('category')
ORDER BY t.name ASC
}}}
One call is coming from `wp_dropdown_categories()`
One call is coming from `wp_terms_check_list()`

Both functions are not using the same arguments for the call to `get_terms()` but result in the same DB query.

In the past, the cache key used to be computed based on arguments passed to `get_terms()`. It's now [https://github.com/WordPress/wordpress-develop/blob/6.8.2/src/wp-includes/class-wp-term-query.php#L1174 a combination of these arguments and the SQL statement]. Maybe using only the sql statement would be sufficient.
"	Chouby
1	45076	Category counter is not updated		Taxonomy		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2018-10-11T06:08:01Z	2026-01-26T16:16:48Z	"When we create new category from admin panel category successfully added in right category panel but it's counter is not updated.

Suppose i have create five category like !''Category 1!'', !''Category 1.1!'', !''Category 2!'', !''Category 2.1!'', !''Uncategorized!'' system show counter as 5 items but when i create new category called !''Category 3!'' it will added successfully in category list but total counter still show 5 items it should show 6 items but when i refresh that page it show counter as 6 items. 

Check video https://youtu.be/rBmziC5_0XQ"	mukesh27
1	37975	Duplicate tag names aren't supported		Taxonomy		normal	normal	Future Release	defect (bug)	new		2016-09-07T20:32:16Z	2019-04-05T19:06:19Z	"WP has an inherent requirement on unique tag names, if there are multiple tags with the same name, there is no way to pick which tag to assign.

Repro steps:
Create three tags
name = test, slug = test-1
name = test, slug = test-2
name = test, slug = test-3

Open the post editor and try and search for test, you will have three tags with the name test, if you try and add more than 1, you will not be able to pick which of the three you're assigning.

The search: /wp-admin/admin-ajax.php?action=ajax-tag-search&tax=post_tag&q=test
will only return tag names, and those are used to assign the tag to a post.

wp_insert_posts() calls:
{{{#!php
if ( isset( $postarr['tags_input'] ) && is_object_in_taxonomy( $post_type, 'post_tag' ) ) {
  wp_set_post_tags( $post_ID, $postarr['tags_input'] );
 }
}}}

https://core.trac.wordpress.org/browser/tags/4.6.1/src/wp-includes/post.php#L3238"	ivankk
1	58748	Duplicate tags we can't select under post edit page. even slug are different.		Taxonomy	6.3	normal	major	Awaiting Review	defect (bug)	new		2023-07-07T10:08:53Z	2023-07-07T10:30:42Z	"Post tags, we are able to create duplicate tag items but we are not able to select both tags under post edit.

so either we should disallow to create of duplicate tags or allow to select of both tags under post edits"	chiragrathod103
1	61396	Duplicate terms with names in non-ASCII characters in different cases		Taxonomy		normal	normal	Awaiting Review	defect (bug)	new		2024-06-07T06:29:55Z	2024-06-13T12:57:19Z	"On the /wp-admin/edit-tags.php page, an attempt to add terms `Test` and `test` is leading to an error ""A term with the name provided already exists in this taxonomy."" and the term is not added, but if I am doing the same thing in Russian language with the usage of a plugin (CyrToLat in this case) that is making slug transliteration via the `pre_insert_term` filter, I am getting duplicate terms. I am not sure that this issue should be addressed to the plugin developer, because it looks like after filtering the term, we still need to ensure that this term is valid and comply with existing rules.





@mihdan FYI"	oglekler
1	19288	Erroneous custom taxonomy screen menu behaviour	johnbillion	Taxonomy	3.0	normal	minor	Future Release	defect (bug)	reviewing	has-patch	2011-11-18T11:36:26Z	2018-06-06T23:11:56Z	"I don't think this could get any more edge case and it's of trivial severity, but I thought I'd report it for completeness' sake.

If a user has the ability to manage terms on a post type, but not the ability to edit posts of that post type, and the post type has more than one taxonomy, then the post type menu doesn't expand as expected when viewing one of the term management screens for that post type.

Steps to reproduce:

 * Register a custom post type that uses its own capability mapping (resulting in `edit_foos` etc).
 * Register at least two custom taxonomies for this post type, with or without its own capability mapping.
 * Give a user (or role) the ability to manage the taxonomy terms but not the ability to edit posts of the post type.

When viewing one of the term management screens for the given post type, the menu doesn't expand as expected (although the new 3.3 fly-outs do show).
"	johnbillion
1	50444	Issue by taxonomy terms in quick edit		Taxonomy	5.4.2	normal	normal	Awaiting Review	defect (bug)	new		2020-06-22T08:17:48Z	2020-06-24T20:03:20Z	"When a taxonomy is registered and the paramters are:
show_ui => false
show_in_quick_edit => true

The terms in the admin post quick edit will not be filled out."	markusfroehlich
1	60861	Issue with Parent Term Selection on wp-admin/edit-tags.php Screen		Taxonomy	6.4.3	normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2024-03-29T07:32:46Z	2024-03-30T12:45:58Z	"**Description:**
Currently, on the ""wp-admin/edit-tags.php"" screen, when we input a new term with a parent term using the select dropdown, upon submission, all fields are reset except for the parent term dropdown. This may lead to unintended assignment of the parent term and create potential issues when adding new terms.

**Steps to reproduce**
1. Login to wordPress dashboard
2. Go to Posts > Categories
3. Enter term name, slug, description and select parent
4. Click on ""Add New Category""
5. Upon successful submission, all the fields ( name, slug, and description ) are reset, except the ""Parent Category"" dropdown.
"	dextorlobo
1	48114	New category page does not update on button click		Taxonomy	5.2.3	normal	minor	Awaiting Review	defect (bug)	new		2019-09-24T00:04:56Z	2019-10-19T00:54:19Z	When a new category is added and the button is clicked, I expect to see the category added to the list of categories on the right hand side of the page but the page is not updated. If I refresh the page, the new category shows up so it appears it has been added successfully, it just does not show up on the page after button click. 	dra_red
1	43729	Pagination on static Post page not working after changing Permalink Catagory Base		Taxonomy	4.9.5	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2018-04-10T11:15:12Z	2025-10-21T09:37:16Z	"Dear WP team,

when I use a custom structure like: /news/%postname%/ + additionally set the catgory base to news, the pagination will not work on the static post page - it returns a 404 error. I'm also not able to open the archives for the tags anymore (404).

I was able to reproduce this issue on a fresh WP installation with 4.9.5.

I was neither able to find a solution in support forum nor a ticket addressing this bug.

Kind regards
Jo"	jokr1985
1	44728	Quick edit for taxonomies is using filtered data		Taxonomy	4.9.7	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2018-08-04T17:00:16Z	2019-05-08T19:46:20Z	"Looks like #8146 was not fixed, or is back again.

To reproduce:
* Add a tag with a HTML entity in the name, such as `&frac12;`.
* Use Quick Edit on the tag page or Quick Edit on the Posts page, and the special character will be shown instead of the `&frac12;`.
* If you save the tag or post, a new tag with the character is created (instead of using the one with the spelled out entity). 

I'm unsure of whether the special characters should be in the slug, but my test showed it was."	joyously
1	50047	Taxonomy parent select field not cleared after creating category		Taxonomy	5.4	normal	minor	Awaiting Review	defect (bug)	new	dev-feedback	2020-05-01T15:25:33Z	2020-05-01T16:53:13Z	"When creating a new category in the create category view and a parent is selected, the parent selector field is not reset to ""None"" after successful submission.

The same is true for custom select fields added to this view.

Don't know if this behavior is on purpose but IMO doesn't make sense?"	wordnixe
1	54521	Taxonomy term quick edit does not save if taxonomy has non latin characters		Taxonomy	5.8.2	normal	normal	Future Release	defect (bug)	new	dev-feedback	2021-11-26T11:52:46Z	2025-04-23T14:03:50Z	"This issue started from the following WooCommerce ticket


https://github.com/woocommerce/woocommerce/issues/31037

After investigating, I could reproduce the issue by doing the following

- Register a new taxonomy that contains Greek character `wp_ελληνικό_tax`
- 
{{{
register_taxonomy( 'wp_ελληνικό_tax', array( 'post' ), $args );
}}}
- Create a term
- Edit the term through quick edit

[[Image(https://user-images.githubusercontent.com/2484390/141967192-60de334d-e5ec-437e-9574-3cd9aa30110c.png)]]

(for a strange reason, I cannot make the image appear inline)

- You'll get a `0` error, with no indication
- If you edit the term through the normal edit (not quick edit) it works fine.

I already have a suggestion on how to fix this error

https://developer.wordpress.org/reference/functions/wp_ajax_inline_save_tax/

This **wp_ajax_inline_save_tax** function, sanitizes the taxonomy, and `wp_ελληνικό_tax` becomes `wp__tax`, which doesn't exist. (hence the 0 error)

Why is the taxonomy needed? Cause currently, it calls `get_term` , passing `term_id` and `taxonomy_slug`.

Instead, what we could do is 

- avoid sanitizing the taxonomy slug, seems like there is no need
- try and get the tag/term earlier, by calling `get_term` with just the `term_id` (as `term_id` is unique, regardless of the taxonomy it belongs to)

I have attached a revised version of this function


{{{#!php
<?php

function wp_ajax_inline_save_tax() {
	check_ajax_referer( 'taxinlineeditnonce', '_inline_edit' );

	if ( ! isset( $_POST['tax_ID'] ) || ! (int) $_POST['tax_ID'] ) {
		wp_die( -1 );
	}

	$id = (int) $_POST['tax_ID'];

	if ( ! current_user_can( 'edit_term', $id ) ) {
		wp_die( -1 );
	}

	// Try and get the tag just by ID, without the taxonomy argument
	$tag = get_term( $id );
	if ( null === $tag || is_wp_error( $tag ) ) {
		wp_die( 0 );
	}

	$taxonomy = $tag->taxonomy;

	$wp_list_table = _get_list_table( 'WP_Terms_List_Table', array( 'screen' => 'edit-' . $taxonomy ) );

//	$tag                  = get_term( $id, $taxonomy );
	$_POST['description'] = $tag->description;
........
.......

}

}}}


If agreed, I'd like to work on this issue and do my first contribution on WordPress.

Panos Synetos
Code Wrangler @ Automattic
"	panagiotis.synetos
1	66242	Taxonomy: Repeated hierarchy decoding slows hierarchical term queries		Taxonomy		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-04T23:13:44Z	2026-10-05T19:32:52Z	"get_term_children() calls _get_term_hierarchy() at each recursive step. The hierarchy option may already be in the object cache, but get_option() still unserializes the complete map on every read. WP_Term_Query's hierarchical hide_empty pass repeats the traversal for each empty parent.

This can make ordinary category lists slow even when SQL is cheap. A local fixture with 8,000 terms in a balanced tree (up to four children per parent, empty parents and nonempty leaves) needed 12,182 hierarchy reads to build one list. Only two SQL queries were executed. The fixture has one published post assigned to the leaves of each taxonomy; it is a controlled fixture rather than a production-site measurement.

PHP 8.3.0, MariaDB 11.4, OPcache enabled in both versions. Medians of five alternating runs:

|| Operation || Terms || Before || After ||
|| wp_list_categories() || 1,000 || 0.116 s || 0.030 s ||
|| wp_list_categories() || 4,000 || 1.706 s || 0.131 s ||
|| wp_list_categories() || 8,000 || 6.909 s || 0.227 s ||
|| WP_Query including descendants || 8,000 || 1.269 s || 0.152 s ||

The option cache was warmed before timing. Each measurement used a fresh PHP process, so the term-query result cache was cold. WordPress bootstrap was excluded from the timer. List HTML, returned terms and post IDs matched between versions in all 90 measurements.

To reproduce the path, create a sizeable hierarchical taxonomy with empty parents and posts assigned to its leaves, then time these calls in separate requests without a pre-existing term-query result cache:

{{{#!php
$start = microtime( true );
$html = wp_list_categories( array(
    'taxonomy' => 'category',
    'echo' => false,
    'title_li' => '',
) );
$elapsed = microtime( true ) - $start;
}}}

The proposed change passes an already loaded hierarchy into the existing descendant traversal and reuses that hierarchy within the hide_empty pass, keyed by taxonomy. No persistent or request-global cache is introduced. A warm term-query result cache bypasses the affected hide_empty processing, so the same gain should not be expected on cache hits.

Eight regression tests cover ordering, invalid taxonomies, leaves, insertion/reparenting/deletion between calls, descendants excluded from the result set, multiple taxonomies and hierarchy read counts. All eight pass with the patch; the two read-count tests fail without it. The broader term, category and query/taxQuery groups complete 753 tests and 1,933 assertions with no failures. One pre-existing PHPUnit warning also appears on the original code; strict --fail-on-warning runs exit nonzero.

Compatibility point for review: option filters are called fewer times. A get_term callback that changes hierarchy relationships during the same hide_empty pass may observe the pass's existing hierarchy snapshot. Changes between separate calls are covered by tests."	serhatsoylu06
1	56171	Unexpected behaviour and data loss with a post type called 'link' and Link Manager plugin active		Taxonomy		normal	critical	Awaiting Review	defect (bug)	new	close	2022-07-08T00:07:32Z	2022-07-08T12:52:48Z	"Steps to reproduce:

0. Install a fresh site (this will be easier to reproduce if the posts table has a low `auto_increment` value)
1. Install the Link Manager plugin (prior to version 3.5 this plugin was not required)
2. Register a post type called `link` (you can use the default args)
**3. Observe that ""Link Categories"" is added under the newly registered post type in the admin menu**
4. Publish a post through the `link` post type and take note of its numeric ID
5. Add enough links through the Link Manager until you reach the same numeric ID observed in step 4 (if it's a fresh site it shouldn't be too many)
6. Assign a link category to the link with the same numeric ID observed in step 4
**7. Go back to the `link` post type and observe that the published post has received the link category that was assigned to the link in step 6**
8. Now delete the post permanently
**9. Go back to the Link Manager and observe that the link has lost its category that was assigned in step 6**

This bug is caused because the taxonomy `link_category` is registered for the string `link`. [https://github.com/WordPress/WordPress/blob/6.0/wp-includes/taxonomy.php#L136 (See code)]

Interestingly, the function `register_taxonomy_for_object_type` [https://github.com/WordPress/WordPress/blob/6.0/wp-includes/taxonomy.php#L734 rejects any string that is not registered as a post type.] Of course, if the same check were included for immediate registration through `register_taxonomy`, link categories could not exist at all.

I discovered this while trying to get a clear answer on whether taxonomies were actually supported for non-post entities. I was nearly convinced they were not, until I noticed that link categories exist, and now it looks to me that no one knows the answer."	manfcarlo
1	44802	WP Generate Tag cloud not generating Link (href) tag value and Role tag value.		Taxonomy	4.9.8	normal	major	Awaiting Review	defect (bug)	new	reporter-feedback	2018-08-15T12:48:32Z	2021-05-03T23:06:43Z	"See demo: https://www.atsspec.com/blog/.

The tags are generated using wp_generate_tag_cloud function but are not clickable and has ""role"" tag associated with each hyperlink."	tpkahlon
1	52904	WP_Term_Query does not return deeper descendants of child_of when direct children of child_of are not part of the results		Taxonomy		normal	major	Awaiting Review	defect (bug)	new	has-patch	2021-03-24T22:38:31Z	2026-06-15T10:46:32Z	"Let's say for the hierarchical taxonomy `mytax` we have the following terms and term ids(in parentheses):


{{{
- A (1)
-- AB (2)
--- ABC (3)
- B (4)
-- BD (5)
-- ABC (6)
}}}

The following query works fine and it returns both terms with ID 2 and 3 
{{{
print_r(
    get_terms(
        [
            'taxonomy' => 'mytax',
            'name__like' => 'AB',
            'child_of' => 1,
            'hide_empty' => false
        ]
    )
);
}}}

However, the following query returns an empty array (since term_id=2 will no longer be in the results):
{{{
print_r(
    get_terms(
        [
            'taxonomy' => 'mytax',
            'name__like' => 'ABC',
            'child_of' => 1,
            'hide_empty' => false
        ]
    )
);
}}}

but it is expected that it returns the term ABC with term_id=3.

This seems to be a bug with the logic in `_get_term_children()` where if direct children of the asking ancestor are not within the initial set of the terms, the recursion will never happen and deeper descendants are then removed from the query results."	xParham
1	45393	categories don't work in brand-new wordpress instance (return 404)		Taxonomy	4.9.8	normal	normal	Awaiting Review	defect (bug)	new		2018-11-21T17:32:35Z	2018-11-21T17:48:03Z	"steps to reproduce:
1. install new wordpress instance
2. create a category `test`
3. go to its url http://example.com/category/test/
(i also tried /category/test (without closing slash))

expected result:\\
http status 200, ""no items found"" message\\
NOTHING FOUND It seems we can’t find what you’re looking for. Perhaps searching can help.

actual result:\\
http status 404, ""page not found"" message\\
OOPS! THAT PAGE CAN’T BE FOUND. It looks like nothing was found at this location. Maybe try a search?

even if you continue:
4. add a post to the category
5. visit category page again

-- you'll get the same result.

workaround:
6. switch theme to `twenty fifteen`
7. switch back to `twenty seventeen`
8. visit category page again

-- now you get the expected result, the bug won't reproduce anymore

versions:\\
PHP Version 5.6.38\\
Chromium Version 70.0.3538.77 (Official Build) Built on Ubuntu , running on Ubuntu 18.10 (64-bit)
"	awardpress
1	39678	"get_term_by slug with ""0"" as value"		Taxonomy	4.7	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2017-01-24T15:48:34Z	2021-09-21T09:43:13Z	"Executing this code

get_term_by('slug','0','taxonomy_name')

my expectations were to obtain a taxonomy term, considering that one actually exists in my database, but instead the function returned false due to the PHP empty function returning true (see https://core.trac.wordpress.org/browser/tags/4.7/src/wp-includes/taxonomy.php#L844).
The empty function behaves according to documentation (http://php.net/manual/en/function.empty.php) but the string ""0"" should be accepted to be searched if it is possible to use it to create a taxonomy term."	fausonealessio
1	32993	get_terms with child_of only works with uninterrupted hierarchies	DrewAPicture*	Taxonomy	4.2.2	normal	normal	Awaiting Review	defect (bug)	accepted		2015-07-14T13:00:45Z	2017-09-23T23:53:42Z	"Similar to #14477 -

If I use `get_terms()` with both search and child_of, the filtered results are passed to `_get_term_children()`, and if those results don't include an uninterrupted heirarchy, it returns an empty array. Something like...


{{{
get_terms(array(
   'search'=>$search_term,
   'child_of'=>6
));
}}}


won't return grandchildren of 6 that match `$search_term`."	eclev91
1	58216	numeric tags are tagged with tag-ID instead of tag-slug in the post_class()		Taxonomy	6.2	normal	major	Awaiting Review	defect (bug)	new	has-patch	2023-04-28T06:16:41Z	2023-05-02T07:58:35Z	"I have created a numeric tag (title and slug are 2024). In the classes created by {{{ post_class() }}}, the tag is output with the {{{ tag_ID }}}.

However, I need the slug at this point, as I then filter via JavaScript."	ratterobert
1	55908	performing two identical actions in sequence produces different results		Taxonomy	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-06-03T07:34:39Z	2022-06-03T15:13:04Z	"Discovered today

{{{#!php
<?php
$c1 = get_terms(['taxonomy' => 'product_cat']);
$c2 = get_terms(['taxonomy' => 'product_cat']);
}}}

$c1 not equal $c2 ($c2 unlike the $c1 contains empty terms)"	xenon615
1	50229	slugs aren't allowed as long as they're in different taxonomies.		Taxonomy	5.4.1	normal	normal	Awaiting Review	defect (bug)	new		2020-05-22T22:31:36Z	2020-05-22T22:31:36Z	"Hello,

I write relative to a bug in taxonomies. From [WP 4.1, duplicate slugs are allowed as long as they're in different taxonomies](https://core.trac.wordpress.org/browser/tags/5.4/src/wp-includes/taxonomy.php#L2710). However, this isn't currently so.

Example:

Taxonomy one with two terms: ""one1"", ""one1-2"". Both are slug.
Taxonomy two with a term: ""one1""( slug )

1. I create term with slug 'one1'. 
2. Checking of duplicated slug is in [`wp_unique_term_slug`]( https://core.trac.wordpress.org/browser/tags/5.4/src/wp-includes/taxonomy.php#L2710 )
3. [`if` is true](https://core.trac.wordpress.org/browser/tags/5.4/src/wp-includes/taxonomy.php#L2711), so that `needs_suffix` is true.
4. Query result of [line 2758](https://core.trac.wordpress.org/browser/tags/5.4/src/wp-includes/taxonomy.php#L2758) is a row( 'one1' of Taxonomy two )
5. one1-2 is `$alt-slug` in [L2764](https://core.trac.wordpress.org/browser/tags/5.4/src/wp-includes/taxonomy.php#L2764)
6. Finally, query in [L2766](https://core.trac.wordpress.org/browser/tags/5.4/src/wp-includes/taxonomy.php#L2766) returns a row( ""one1-2"" of Taxonomy 1 ). 

Conclusion: same slug with two different taxonomies aren't allowed.

Maybe, queries in this method, should be replaced with `get_term_by` in order to check also taxonomy.

Regards
Manuel Canga



"	trasweb
1	43995	wp_dropdown_categories(array( 'pad_counts' => true ) ) doesn't correctly pad counts on post_types with custom stati		Taxonomy		normal	normal	Awaiting Review	defect (bug)	new		2018-05-07T17:53:33Z	2019-01-17T00:57:01Z	"Suppose I have the following situation:

* a custom post type (e.g., `member`)
* post type `member` has custom post stati (e.g., `subscribed` and `unsubscribed`)
* **ALL** posts of post type `member` have one of these custom stati (i.e., **NONE** have post_status `publish`).
* a hierarchical taxonomy (e.g., `membership-status`) is registered on post type `member`
* taxonomy `membership-status` looks like the following:
   * Membership
      * Current
      * Expired

and that the term `Current` has been assigned to 10 posts, `Expired` has been assigned to 5 posts and that `Membership` has been assigned to **0** posts.

If I then call
{{{
#!php
$args = array(
    'taxonomy' => 'membership-status',
    'show_counts' => true,
    'pad_counts' => true,
    ...
);
wp_dropdown_categories( $args );
}}}

I expect to get a dropdown that looks like:

* Membership (15)
  * Current (10)
  * Expired (5)

Instead, I get the following:

* Membership (0)
  * Current (10)
  * Expired (5)

which is, obviously, not correctly padding the count for `Membership`.

Related: #11847, #13176"	pbiron
1	41867	wp_list_categories throws SQL error if list is empty		Taxonomy	4.8.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2017-09-13T08:05:49Z	2026-07-30T01:36:12Z	"If via the args, we exclude the only category available in the list, then the SQL query will end up wrongly formated (empty : IN() statement).

See full query here :

{{{
SELECT object_id, term_taxonomy_id FROM wp_term_relationships INNER JOIN wp_posts ON object_id = ID WHERE term_taxonomy_id IN () AND post_type IN
('post') AND post_status = 'publish';
}}}


Sample php code :
{{{#!php
<?php
$args = array('taxonomy' => 'category',
	      'child_of' => $queried_object->category_parent,
	      'depth' => 1,
	      'exclude' => $queried_object->cat_ID,
	      'echo' => 0,
	      'hierarchical' => true,
     	      'hide_empty' => false,
	      'show_count' => 1,
	      'title_li' => '');		
echo wp_list_categories($args);
}}}

The solution would be to check if there are other categories to be displayed and if not, then just return the empty result."	firebird75
1	65805	wp_set_object_terms() casts numeric term IDs to strings via array_unique(), causing false matching by term name		Taxonomy	7.0.2	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2026-08-04T12:20:08Z	2026-08-05T21:46:21Z	"When passing an array of integer term IDs to `wp_set_object_terms()` where the term IDs represent terms that consist purely of numbers (e.g. term ID 725 for a color named ""01""), WordPress incorrectly treats the term ID as a term name.

Steps to reproduce:
1. Create a term in a taxonomy (e.g. 'pa_color') with the name ""01"". Assume it is assigned Term ID `725`.
2. Create a product or post.
3. Pass the integer term ID in an array to `wp_set_object_terms( $post_id, [ 725 ], 'pa_color' )`.

Expected behavior:
WordPress should assign Term ID `725` (Name: ""01"") to the post, because passing integers to `wp_set_object_terms` should be treated as Term IDs.

Actual behavior:
Inside `wp_set_object_terms()`, the `$terms` array is passed through `array_unique()`. Because PHP's `array_unique()` defaults to `SORT_STRING`, it silently casts the integer `725` into the string `""725""`. 
Then, inside the `foreach` loop, `$term` is a string. When passed to `term_exists( $term, $taxonomy )`, WordPress searches for a term with the **Name** `""725""` instead of the ID `725`. 
If a term named `""725""` doesn't exist, it incorrectly creates a brand new term named `""725""`.

Proposed Fix:
In `wp-includes/taxonomy.php` inside `wp_set_object_terms()`, the `array_unique()` call should use `SORT_REGULAR` or strictly preserve integers so numeric Term IDs are not cast to strings before being evaluated by `term_exists()`.
"	badwolfgr
1	66298	wp_set_object_terms() leaves term_order at 0 for newly added terms in sorted taxonomies when term counting is deferred		Taxonomy		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2026-10-13T11:08:24Z	2026-10-14T04:30:16Z	"For a taxonomy registered with `'sort' => true`, `wp_set_object_terms()` is meant to store terms in the order they are passed. When term counting is deferred and a term is added to an object that already has terms, the new term is left at the column default `term_order = 0`. It then sorts ahead of the existing terms instead of after them.

The wrong value is written to `wp_term_relationships` so the order of terms is destroyed.

=== Steps to reproduce ===

Add this MU plugin to a site. It registers a sorted taxonomy and defers term counting.

{{{#!php
<?php
/**
 * Plugin Name: Term order bug reproduction
 * Description: Registers a sorted taxonomy and defers term counting, to reproduce the `term_order` bug in `wp_set_object_terms()`.
 */

add_action(
	'init',
	static function () {
		register_taxonomy(
			'byline',
			'post',
			array(
				'label'        => 'Byline Author',
				'sort'         => true,
				'args'         => array( 'orderby' => 'term_order' ),
				'show_in_rest' => true,
			)
		);

		wp_defer_term_counting( true );
	}
);
}}}

Then, in wp-admin:

   1. Go to Posts > Byline Author and create three terms: `Alice`, `Bob` and `Charlie`.
   2. Create a new post.
   3. From the Quick Edit panel, add `Alice`, then `Bob` to Byline Authors and save the post.
   4. Add `Charlie` in the same panel, after `Bob`. Save the post again.
   5. Check the Byline Authors again from the Quick Edit Panel

Result: `Chalie, Alice, Bob`

Expected: `Alice, Bob, Charlie`

See Video: https://github.com/user-attachments/assets/9c91783e-ecd6-4201-84de-e99e2bf08819

For sorted taxonomies, `wp_set_object_terms()` reads the object's terms again before it assigns `term_order`, and only numbers the terms it finds in that read.

That read is cached. Normally the term count update clears the cache before the read happens. When term counting is deferred, nothing clears it, so the read returns the old list without the newly added term. The new term is skipped and keeps `term_order = 0`.

`wp_set_object_terms()` does clear the cache itself, but only after this read. That was added in #40306.

We hit this during a bulk content migration. We turned off term counting for the whole run with `wp_defer_term_counting( true )` to improve migration speed. Byline authors were stored in a sorted taxonomy, and on posts with more than one author the byline order came out wrong.
"	jdeep
1	47310	Add Column Taxonomy Links Filter to Media List Table		Taxonomy		normal	normal	Awaiting Review	enhancement	new		2019-05-17T19:13:30Z	2021-12-12T06:46:06Z	"The [https://developer.wordpress.org/reference/hooks/post_column_taxonomy_links/ 'post_column_taxonomy_links' filter] allows the taxonomy links in the post list tables to be filtered.  This could be useful in the media list table as well (especially to ensure consistency).  It would be great if there were a corresponding filter in the WP_Media_List_Table that behaved the same way.  Perhaps 'media_column_taxonomy_links'?

See ticket:42669 / changeset:44822"	drivendevelopment
1	66466	Add an action after each field on the Add and Edit Term forms		Taxonomy	trunk	normal	normal	Awaiting Review	enhancement	new	has-patch	2026-11-04T10:15:29Z	2026-11-04T10:15:29Z	"== Problem ==

A plugin that wants to attach a control to one of the core fields on the term forms (Name, Slug, Parent, Description) has no supported way to put it there. `{$taxonomy}_edit_form_fields` and `{$taxonomy}_add_form_fields` fire after all of core's fields, so anything added through them lands at the bottom of the form.

Examples: an option that belongs to the Slug field (such as whether to keep a redirect from the old slug), a warning or character counter under Name, or the plural-name field described in #34770.

== Prior art ==

 * #34770 asked for the same thing (hooks after each stock row, or a filterable array of rows) and was closed as wontfix in January 2016. The closing comment cited the cost of maintaining many new hooks, backward compatibility problems with an array-of-fields filter, and a preference for a larger rebuild (Settings API or meta boxes on the term screen).
 * #35252 added `{$taxonomy}_term_edit_form_top`, which only helps with the top of the form.
 * #43683 reports that output from the Add and Edit form actions is placed inconsistently.

== Proposal ==

Ask for as little as possible, to answer the earlier objections: one new action name per form, purely additive, no change to the markup when nothing is hooked, and no array filter.

 * `{$taxonomy}_edit_form_after_field` with arguments `$field` (`'name'`, `'slug'`, `'parent'` or `'description'`), `$tag` and `$taxonomy`. Fired inside the field's `<td>`, after its description paragraph.
 * `{$taxonomy}_add_form_after_field` with arguments `$field` and `$taxonomy`. Fired inside the field's `<div class=""form-field"">`, after its description paragraph.

Firing inside the existing container keeps a hooked control after its field in DOM order, so tab order and screen reader order match what is on screen, and the field's `aria-describedby` target is untouched. Names and the `$field` argument are open to discussion. Separate hook names per field would be an alternative, at the cost of a larger API surface.

== Workarounds, and why each falls short ==

Tested on WordPress 7.1.4:

 * '''Move the node with JavaScript.''' Works, but the control can render in the wrong place until the script runs, and the plugin depends on core's row class names.
 * '''Reorder with CSS''' (`:has()`, grid and `order`). The control looks adjacent to the field, but the DOM order is unchanged, so keyboard and screen reader order is not. In a test it took five Tab presses to get from the Slug input to a checkbox that appears directly below it. Reordering also means re-implementing core's table layout: a simple flex version collapsed the input widths on every row.
 * '''Output buffering''' across the two hooks, with a string match on core's markup. Brittle, and a failure garbles the page.
 * '''Appending to the description label.''' `slug_field_description` is echoed unescaped inside the Slug cell, so a `taxonomy_labels_{$taxonomy}` filter can inject markup there. It works, but it repurposes a text label, the slug input's `aria-describedby` then covers the injected control, and the same label also prints on the Add form.

== Testing ==

Patch attached. Checked on WordPress 7.1.4 with a probe callback that prints a marker:

 * Add form, non-hierarchical and hierarchical taxonomy: the marker is the last child of each field's container, directly after the description paragraph.
 * Edit form, hierarchical taxonomy: the marker is after the description in all four cells, including Parent, and before the closing `</td>`.
 * Edit form, non-hierarchical taxonomy: the marker follows the Name and Slug descriptions.
 * The slug input's `aria-describedby` text is unchanged.

Not done: PHPUnit tests, and a run against current trunk."	archon810
1	53642	Add class to get_the_term_list links		Taxonomy		normal	normal	Future Release	enhancement	new	has-patch	2021-07-12T12:59:19Z	2024-05-05T07:15:05Z	The output of this function gives you no way to style individual tags.	pross
1	49260	Add filter to change wp_dropdown_categories default arguments		Taxonomy	5.3.2	normal	normal	Awaiting Review	enhancement	new		2020-01-21T10:08:59Z	2020-01-22T05:28:30Z	"We can add new filter on wp-includes/category-template.php file.
Function name : wp_dropdown_categories($args)
in this function, we can add one filter to change the default argument values."	jignashu
1	44969	Add support to limit results in get_objects_in_term()		Taxonomy		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2018-09-20T02:43:36Z	2020-05-03T04:28:16Z	"The `get_objects_in_term()` function currently returns all object IDs related to a term in a taxonomy. On sites with many term relationships, this may result in tens of thousands of them.

Without a way to limit the results, developers currently need to write their own custom database query just to inject their own `LIMIT` clause.

Conveniently, the `get_objects_in_term()` function already has a third `$args` parameter that's currently only used to pass in a sort-order of `ASC` or `DESC`, so adding support for other query clauses is technically straight forward."	johnjamesjacoby
1	63869	Add template / template_file arguments to register_taxonomy		Taxonomy		normal	normal	Awaiting Review	enhancement	new		2025-08-24T11:18:30Z	2025-08-24T11:18:30Z	"I had 13 taxonomies (among many others) that are similar to each other and should have one template. I didn't find a convenient way to assign them one template. I ended up with 12 more files that I need to just to include the same template part. 

I misspelled one taxonomy, and when this taxonomy was renamed, we found out that it got the wrong template. I am trying to avoid duplication and use constants for such things, so renaming a taxonomy can be as simple as just changing one constant (and making a migration in case this taxonomy has terms that we want to bring along), but keeping in mind that you have to rename files as well is not very convenient.

It will be good to have a {{{template}}} argument that can get a template as register_post_type() has and a {{{template_file}}} that will make it possible to render this taxonomy via a certain template file no matter how it is called."	oglekler
1	42253	Adjust the inline docs for register_taxonomy() and WP_Taxonomy::set_props()		Taxonomy	4.7	normal	normal	Awaiting Review	enhancement	new	has-patch	2017-10-17T18:13:57Z	2018-01-05T16:09:26Z	"The {{{register_taxonomy()}}} is a wrapper for a {{{WP_Taxonomy}}} object.

To avoid duplication, we should adjust the inline documentation for that function.

It looks like the {{{WP_Taxonomy::set_props()}}} method should contain the main documentation.

Similarly one can check out the documentation of the {{{get_posts()}}} function, that's a wrapper for a {{{WP_Query}}} object.

Reference:

{{{WP_Taxonomy::set_props()}}} 

https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-includes/class-wp-taxonomy.php#L249

{{{register_taxonomy()}}}
https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-includes/taxonomy.php#L371

{{{get_posts()}}}
https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-includes/post.php#L1646
"	birgire
1	35250	"Enable developer to omit ""internal"" taxonomies from return value of get_taxonomies()"		Taxonomy		normal	normal	Awaiting Review	enhancement	new	needs-docs	2015-12-29T04:44:13Z	2019-05-10T16:06:49Z	"I frequently use one or two taxonomies in a project that users should never see, but plugins that use the `get_taxonomies()` function are able to display my internal taxonomies to users. ` get_taxonomies()` does not filter for `show_in_nav_menu` or `show_in_nav_menu` _(and probably should not.)_  so I can't correct this proactively. Thus I would like to be able to filter out my internal taxonomies so they will be invisible to plugins and themes.

I am uploading a patch that adds a `'get_taxonomies'` filter for this.

Another option would be to introduce a `'internal'` property at taxonomy registration and then filter for that being `false` in `get_taxonomies()` and probably elsewhere, or introduce the idea of underscore prefixed taxonomies being hidden.  

Any of those would work for me.  Thanks in advance for considering.

"	MikeSchinkel
1	49632	Force lowercase for taxonomy id in register_taxonomy()		Taxonomy		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2020-03-12T15:07:46Z	2020-03-12T15:15:41Z	"Hello all,

To avoid conflict, I think https://developer.wordpress.org/reference/functions/register_taxonomy/ should mention that $taxonomy must be declared in lowercase.

Should it be a good idea to strtolower() the key ?

What do you think ?
"	sebastienserre
1	45023	Improve parent and child category description example		Taxonomy		normal	minor	Awaiting Review	enhancement	new	dev-feedback	2018-10-02T15:10:28Z	2018-10-03T17:56:54Z	"The descriptive text under the Parent Category section of the Category page describes an example that may not be as easily understood or translatable compared to more universally translated words.

Before: parent category ""jazz"" + child categories ""bebop"" and ""big band"".
Screenshot: https://cloudup.com/inms-imkM-I

After: parent category ""music"" + child categories ""jazz"" and ""rock"". 
Screenshot: https://cloudup.com/i31WAPdv7Wp

This ticket proposes changing the description to the ""after"" example. 
Please see attachment below."	joanrho
1	33585	Improve wp_list_categories to support multiple taxonomies		Taxonomy	2.3	normal	normal	Awaiting Review	enhancement	new		2015-08-28T09:43:16Z	2020-06-04T10:31:18Z	"Hi folks, I was working on a plugin feature request and from what I see it's not possible to pass an array on the `taxonomy` param from `wp_list_categories`, which prevents multiple taxonomies to be fetched at once.

I wanted to know if I can work on this ""enhancement"" for version 4.4, should be an easy modification since `get_terms` is an easy replacement for `get_categories`."	bordoni
1	54534	Introduce a get_term_by_args filter		Taxonomy		normal	normal	Awaiting Review	enhancement	new		2021-11-29T17:24:27Z	2021-11-30T15:07:26Z	"Since #21760 `get_term_by()` uses `get_terms()`.

`get_term_by()` term query arguments are thus already filterable with the filter `get_terms_args`. However it's difficult to detect whether the arguments passed to the filter come from a call to `get_term_by()` or directly from a more generic call to `get_terms()`.

I thus propose to add new filter specif to `get_term_by()`. "	Chouby
1	40761	Make Walker_Category::start_lvl more flexible by introducing filters for class name(s) at least		Taxonomy		normal	normal	Awaiting Review	enhancement	new	has-patch	2017-05-14T13:24:12Z	2017-05-15T16:31:15Z	"
Related: #36163, #40359, #40666, #40760

We should harmonize the filters available in the 3 main `Walker` classes."	pbiron
1	38278	Only query taxonomies assigned to the post types being queried		Taxonomy	4.7	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2016-10-10T20:28:53Z	2025-09-24T11:36:25Z	"While working on #31383 (Add `WP_Tax_Query` support to `WP_User_Query`), it was brought up that taxonomy queries do not check to see whether the requested taxonomies are registered to the requested post type.

Opening this ticket to discuss further. Should taxonomies always match the queried `post_type`?

From @boonebgorges on the other ticket:
  Here's a way to frame the issue: are we likely to confuse developers if we allow (ie, don't throw errors for) queries like `get_users( ... 'tax_query' => ... 'taxonomy=post_tag' )`? Or `get_posts( ... 'tax_query' => ... 'taxonomy=some_user_taxonomy' )`? Or maybe these queries will just always end up empty? We should think through the possible confusions (or, maybe, lack thereof).
"	desrosj
1	64243	Rename default category from uncategorized to general or similar.		Taxonomy		normal	normal	Future Release	enhancement	new		2025-11-12T22:18:59Z	2026-10-08T00:29:09Z	"In English language versions of WordPress, the default category is named ""Uncategorized"" (or ""Uncategorised"" English variants outside of North America).

As categorising something as uncategorised is a bit of a misnomer, I think it would be good to rename the default category as ""General"" or similar.
 
Based on a quick [https://www.google.com/search?q=inurl:category/general Google search], renaming the default category to General is relatively common.

Based on another [https://www.google.com/search?q=inurl:category/uncategorized%20%22category%20general%22 Google search], it also appears to be relatively common that WordPress users get stuck with the old `category/uncategorized` URL for the renamed category, presumably for SEO purposes.

While existing WP installs would be stuck with content categorised as uncategorised, I think it would be an improvement to rename the default for new installs."	peterwilsoncc
1	41702	Slug for Category or Tag should be generated automatically		Taxonomy	4.8.1	normal	normal	Awaiting Review	enhancement	new	has-patch	2017-08-22T14:16:02Z	2017-08-22T16:40:15Z	"When adding a Category or Tag in admin, Slug generation should be automated based on category / tag name entered in Name box and Slug box would be populated with it.

Advantages:
(1) user won't have to type in the slug by hand, hence saves time
(2) will minimize the typographic error.

The slug box will remain editable and users still have the ability to change slug if required.

Core file: `wp-admin/edit-tags.php`
Script added under `line 581`"	subrataemfluence
1	61957	Taxonomies: Allow querying for all posts with any term of a given taxonomy		Taxonomy		normal	normal	Awaiting Review	enhancement	new	has-patch	2024-08-29T13:19:31Z	2024-12-05T16:03:19Z	"Consider an example taxonomy, e.g. `projects`, with possible terms `film`, `tv`, etc.

Upon registering such a taxonomy -- and creating those terms -- WordPress provides us with routes, such as `/projects/film` and `/projects/tv`, which will display all posts that have those respective terms assigned.

However, there's no straight-forward way to show all posts that have ''any'' term from the `projects` taxonomy assigned (in this example: all film and tv projects at once). Instead, depending on the chosen permalink structure, the `/projects` route will be typically understood by WP as the slug of a page or post; and if no page or post with such a slug exists, it will 404.

I believe that there might be a need to support such a ""root taxonomy route"" -- for lack of a better word. In terms of [https://developer.wordpress.org/themes/basics/template-hierarchy/ template resolution], that route should use all the matching taxonomy related templates (i.e. `taxonomy-$taxonomy`, `taxonomy`, `archive`, and `index`). This applies to both Classic Themes, and Block Themes.

Permalinks in WordPress are, of course, not the canonical representation of routes; query strings are. For example, `/projects/film` translates to `?projects=film`. Fortunately, while syntax like `?projects=` (with no value assigned) or simply `?projects` is currently not supported by WP, they [https://stackoverflow.com/questions/4557387/is-a-url-query-parameter-valid-if-it-has-no-value aren't strictly disallowed by the URI RFC]."	Bernhard Reiter
1	49189	Term description cannot be filtered in admin area		Taxonomy	5.3.2	normal	normal	Awaiting Review	enhancement	new		2020-01-13T16:22:20Z	2020-01-13T16:22:20Z	"There are many cases where the term description is used for more than just a simple one-line description of what a term is. I have several clients for whom the term description can be hundreds or words long.

Since there is no filter on the term description shown in the admin UI for manual adjustment, nor is there code to shorten it automatically, the entire term description is put into the description cell of the term table.

When the description is long, we get this:

[[Image(https://i.ibb.co/xjNFxYb/aa.png)]]

This is something that can easily be handled. Given that automatically trimming the term description is probably not what users expect, I suggest adding a filter here [https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-terms-list-table.php#L536] to allow a user/developer to limit the term description if needed."	theMikeD
1	36641	WP_Term method __toString		Taxonomy		normal	normal	Awaiting Review	enhancement	new	has-patch	2016-04-22T20:59:58Z	2025-01-31T11:11:25Z	"I think that this is good idea. For example:


{{{#!php
<?php
	echo '<pre>';
		var_dump(implode(', ', get_the_terms( get_the_ID(), 'category' )));
	echo '</pre>';
?>
}}}

I have ```string(**) ""Cat 1, Cat 2""```
"	sebastian.pisula
1	48498	Walker_Category should also accept the `item_spacing` parameter.		Taxonomy		normal	minor	Awaiting Review	enhancement	new		2019-11-05T08:11:19Z	2019-11-06T01:27:16Z	"In WordPress 4.7 wp_list_pages(), Walker_Page and Walker_Nav_Menu were updated to accept an additional parameter `item_spacing` so that they can more robustly be styled using inline-blocks - see #27762

wp_list_categories() and Walker_Category would also benefit from accepting the `item_spacing` parameter for the same reasons."	husobj
1	65055	_pad_term_counts() uses string-concatenated SQL without prepared statement	johnbillion	Taxonomy		normal	normal	7.3	enhancement	reviewing	has-patch	2026-04-09T17:39:02Z	2026-10-22T18:01:00Z	"$object_types values are not individually escaped via $wpdb->prepare(). They use esc_sql() only at the
  get_taxonomy() call, but imploded directly into the query string. The array keys are integer IDs but are not cast.
  This should use prepare() with placeholders."	rajeshcp
1	45085	"different args passed to ""term_name"" and ""term_{$field}"" filters"		Taxonomy		normal	normal	Awaiting Review	enhancement	new		2018-10-11T16:46:32Z	2023-10-17T23:17:14Z	"In `/wp-admin/edit-tags.php`, for each row in the `WP_Term_List_Table`, both [[https://developer.wordpress.org/reference/hooks/term_name/|term_name]] and [[https://developer.wordpress.org/reference/hooks/term_field/|term_{$field}]] (with `$field == 'name'`) get applied before the term's name is displayed in the table.

As far as I can tell, there is no way to hook into `term_name` without also hooking into `term_{$field}` (when `$field == 'name'`).

When `term_name` is applied, the 2nd argument is a `WP_Term` object; when `term_{$field}` (when `$field == 'name'`) is applied, the 2nd argument is an int (`term_id`).

Given that both of these filters have been around for **many** years, I don't think it would be a good idea to change either one of them so that their argument lists were the same.  However, I think it would be a good idea to add some explanation of this conflict in the DocBlocks of both filters.

Of course, I could add comments to both entries in the Code Reference, but I think it would be **much** better if that explanation were in the DocBlocks."	pbiron
1	59478	term_exists() to return false if no terms exist		Taxonomy		normal	normal	Awaiting Review	enhancement	new		2023-09-27T11:38:10Z	2023-09-27T13:51:31Z	"When using the function `term_exists()` in `wp-includes/taxonomy.php`, it returns `null` if no terms exist. This behaviour seems incorrect and is inconsistent with other similar functions in the same file (`taxonomy_exists()` is one example).

It would make more sense to return `false`."	rossb2
1	47314	"Add ""parent"" parameter to get_term_by"		Taxonomy		normal	normal	Awaiting Review	feature request	new		2019-05-17T22:13:02Z	2019-12-13T16:33:20Z	"There has been some discussion around some inconsistencies in the way `term_exists()` handles the input string and sometimes can have unexpeceted results. The most recent discussions about this can be seen in #47099, #45333 and #32248.

The current recommendation is to use `get_term_by()` instead, so you can explicitly inform what field you are checking and get the right result.

However, `get_term_by()` does not support a `parent` argument, which makes it not a full `term_exists()` replacement.

In #47099 @boonebgorges suggested we opened an enhancement ticket to discuss this addition to this function. And here it is! :)

Looking at the function and all parameters it gets, we would have to decide how to support this. 

This would be the first question to ask if one was to try an approach for this. Adding as a new parameter does not look so good because there already many and it would force the developer to use all of them if he/she wanted to use `parent`. However adding support for a field like `name_and_parent` or something like this, and having an array passed as the `$value` doesn't look so pretty either.

What do you think?

"	leogermani
1	40232	Could is_tax check through queried_terms instead of queried_object?		Taxonomy	4.7.3	normal	normal	Awaiting Review	feature request	new		2017-03-22T09:21:17Z	2017-03-22T09:21:17Z	"is_tax('tax2') returns false when tax2 is one of the taxonomies on http://somesite.com/?tax1=abc&tax2=xyz, as the queried_object is tax1.

Would it be possible for is_tax to check through queried_terms instead of queried_object, so that is_tax('tax1') and is_tax('tax2') would both return true?"	yeetien
1	55854	Save term creation time by default		Taxonomy	6.0	normal	minor	Awaiting Review	feature request	new		2022-05-27T07:50:37Z	2022-05-27T07:50:37Z	"I would like to see WP save all term creation - and last modified - datetimes by default as term meta.

Easy use case example to see advantage: Ordering Category terms by creation date straight-off instead of making a query for posts and deciding the order that way. Term ID's do not always convey the correct order - especially if data migration/s have been made.

Would also enable a surefire way to publish term creation dates in a term listing instead of having to pull info from posts within said terms.

Would not interfere with existing architecture too much - ""too much"" because the meta key could be something like ""term_date"" or ""term_created_date"" and ""term_modified_date"" - someone might have used the same keys when creating custom meta. 

The addition would not increase DB size or complexity by much."	JPontinen
1	63428	Taxonomy settings (output order)		Taxonomy		normal	normal	Awaiting Review	feature request	new	dev-feedback	2025-05-10T13:51:39Z	2025-05-10T17:22:22Z	"The standard WordPress functionality does not allow you to conveniently manage the order of taxonomies output when there are a large number of them, so most sites are forced to use plugins (for example, Custom Taxonomy Order) or other solutions.

The proposal is to add settings for the order of taxonomies output (categories, tags, attributes, etc.) to WordPress and plugins with the following functionality:

Manual settings (drag and drop)

and

Settings:
- Order by ID (default).
- Custom Order as defined above.
- Alphabetical Order by Name.
- Alphabetical Order by Slug.
- Order by Post Count."	tunyk
1	56264	WP_Term_Query does not allow limiting results when descending family tree		Taxonomy	2.7.1	normal	normal	Awaiting Review	feature request	new		2022-07-21T08:49:28Z	2022-10-12T18:08:27Z	"== The Problem
Over in https://github.com/WordPress/gutenberg/pull/42424 we're working on a way to limit the number of Category taxonomy terms that are displayed in the UI.

This works well until you attempt to display top level terms only (i.e. those with a parent of 0). In this case the limit is **not applied**. 

Here is the Gutenberg PHP code where we apply the parent argument:

https://github.com/WordPress/gutenberg/blob/10f8542e26e83262f177cdcca30ca57ae516e644/packages/block-library/src/categories/index.php#L27

== Why does this happen?


Digging into the Core code I noticed that `WP_Term_Query->get_terms()` method explicitly does not allow limiting when descending into the family tree of terms or when a parent is provided: 

https://github.com/WordPress/wordpress-develop/blob/6.0/src/wp-includes/class-wp-term-query.php#L628-L629

The code comment states:

> Don't limit the query results when we have to descend the family tree.

There is no further information. 

Further investigation reveals that this ""feature"" was present in the original commit which introduced this functionality:

https://github.com/WordPress/wordpress-develop/commit/8220d04e6d12c4a139344117e02fef268df5f205#diff-7813f38c6b905b75c4b11bf2750c63ba0f5a1227ffc4f012deeeb22999cee68bR1338-R1339


== Feature Request 

I would like to display the top X categories but showing **top level terms only**. As it stands I don't believe this is possible. 

Perhaps we could introduce a clause in the conditional which allows limiting if the `$parent` is `0`?





"	get_dave
1	44891	Activate button showing after theme activated		Themes	4.9.8	normal	normal	Awaiting Review	defect (bug)	new	close	2018-09-05T06:24:28Z	2026-01-29T18:06:22Z	"How to get bug:-

First go on
Appearance - > Theme 

After that active theme i will go on next page add new theme on this page my activated 
theme showing again active button."	anilhada
1	58186	Block Theme Detection is broken due to symlinks		Themes	6.2	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2023-04-24T15:27:03Z	2023-09-05T12:55:58Z	"In file wp-includes/blocks.php line 137 the $theme_path_norm calculation is missing a realpath call.

I'm using a bitnami index with some symlinks and the theme block detection is broken.

In my example the vars have the following values:

$theme_path_norm = ""/opt/bitnami/...""
$script_path_norm = ""/bitnami/...""

Thanks in advance."	yolawo
1	55437	Bugfix: Display correct theme in site editor	SergeyBiryukov	Themes	5.9	normal	normal	Future Release	defect (bug)	reopened	dev-feedback	2022-03-22T03:31:29Z	2024-02-20T09:50:02Z	"Scenario:
Child themes inherit template parts from the parent theme but on the site editor page, the ""Added by"" column defaults to displaying the child theme even though the template parts are inherited from the parent.

This creates confusion as to where the actual templates are located.

Patch:
https://github.com/ptahdunbar/WordPress/commit/25bbf034af03c9a4ea33a79d01f4d9c079750344

Probably should look into _build_block_template_result_from_post() as well.

Possibly related to [52062]"	ptahdunbar
1	65162	Button block has overly opinionated default styling		Themes	6.9.4	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2026-05-04T15:35:25Z	2026-05-13T06:27:01Z	"/wp-includes/theme.json, line 296

The fallback theme.json file in in WordPress core includes explicit values for button text and background colors. These are applied in front-end CSS, causing buttons to be styled with these colors even when neither the theme nor the user has selected a value. This is an overly opinionated default that, due to CSS specificity rules, also risks breaking existing themes in a way that is not easy to diagnose or remedy."	jlwilz
1	57991	Child theme in multisite shows error		Themes	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-03-27T13:44:52Z	2024-07-04T12:02:15Z	"Issue:

Child theme in multi shows following error even though parent theme is installed. 

Error: The parent theme is missing. Please install the ""twentytwentythree"" parent theme.

Steps:

* Create a multisite environment with sub directories.
* create a child theme of TT3
* Activate the child theme.
* Install WooCommerce plugin
* And network enable the plugin.

More information on the issue:
https://wordpress.org/support/topic/child-theme-in-multisite-shows-error/?view=all

"	madhudollu
1	66429	Fonts: theme.json font loading failures are silent even with WP_DEBUG enabled		Themes	trunk	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2026-10-31T10:20:05Z	2026-11-01T04:50:46Z	"When a font declared in `theme.json` fails to load or is ignored, WordPress
produces no diagnostic output. In my environment `WP_DEBUG`, `WP_DEBUG_LOG`, and
`WP_DEBUG_DISPLAY` are all enabled and `debug.log` is `wp-content/debug.log`, yet
I see:

- no entry in `debug.log`
- no PHP notice or warning on screen
- no Site Health warning
- no message in the Site Editor's Fonts screen

The only evidence is a 404 in the web server access log and the browser falling
back to another font. This makes font problems in `theme.json` effectively
undebuggable.

I originally hit this while adding a Montserrat family to `theme.json`. Montserrat
was already installed in the Font Library with the same slug (`montserrat`), so the
theme's `fontFace` definitions were silently dropped. No warning was produced even
with `WP_DEBUG` enabled. I have also reproduced the same silence with a
`fontFace.src` pointing to a file that does not exist.

### Why it is silent

1. `WP_Font_Face_Resolver::to_theme_file_uri()`
   (`wp-includes/fonts/class-wp-font-face-resolver.php`) converts `file:./...` to a
   theme URL via `get_theme_file_uri()`, but never checks `file_exists()`. A
   missing font file only becomes a browser 404.

2. `WP_Font_Face::validate_font_face_declarations()`
   (`wp-includes/fonts/class-wp-font-face.php`) reports invalid faces with
   `_doing_it_wrong()`, which only emits a message when `WP_DEBUG` is true, then
   skips the face. There is no `error_log()` call and no admin notice.

3. When a theme font family has the same slug as a Font Library family, the custom
   family wins during merge. The theme's `fontFace` array is dropped before it is
   validated or printed, and nothing is logged.

4. `WP_Theme_JSON_Resolver::read_json_file()`
   (`wp-includes/class-wp-theme-json-resolver.php`) returns an empty array when
   decoding fails. `wp_json_file_decode()` reports the error through
   `wp_trigger_error()`, which returns early when `WP_DEBUG` is false. On a
   production site, an invalid `theme.json` is silently ignored.

### Steps to reproduce

**Option A — missing file**

1. WordPress 7.1.3, block theme, `WP_DEBUG=true`, `WP_DEBUG_LOG=true`,
   `WP_DEBUG_DISPLAY=true`.
2. Add this to `theme.json`:

{{{
{
  ""settings"": {
    ""typography"": {
      ""fontFamilies"": [
        {
          ""fontFamily"": ""Montserrat, sans-serif"",
          ""name"": ""Montserrat"",
          ""slug"": ""montserrat-repro"",
          ""fontFace"": [
            {
              ""fontFamily"": ""Montserrat"",
              ""fontWeight"": ""400"",
              ""fontStyle"": ""normal"",
              ""src"": [""file:./assets/fonts/missing.woff2""]
            }
          ]
        }
      ]
    }
  }
}}}
3. Load the frontend.
4. Check wp-content/debug.log and the page output.
Option B — slug shadowing
1. Install Montserrat in the Font Library (slug montserrat).
2. Add a montserrat font family with fontFace entries to theme.json.
3. Load the Site Editor's Fonts screen and the frontend.
4. Check wp-content/debug.log.
Expected
A diagnostic identifying the missing file or ignored family. At minimum, an entry
in debug.log when WP_DEBUG and WP_DEBUG_LOG are enabled, plus a Site Health or
Fonts screen notice when a theme font family is shadowed by a Font Library family.
Actual
No debug.log entry and no displayed error. The font silently falls back.
Suggested fix
- Check file_exists() in to_theme_file_uri() (or before generating the
@font-face) and trigger a warning naming the missing file and family.
- Replace the _doing_it_wrong() calls in WP_Font_Face with wp_trigger_error()
and add a core logger hooked to wp_trigger_error_always_run (WP 7.0+), or at
least use error_log() for invalid font faces.
- Emit a warning when a theme font family is shadowed by a Font Library family with
the same slug.
- Surface validation results in Site Health and the Fonts UI.
Environment
- WordPress 7.1.3
- PHP 8.4.x
- Block theme Frost
- MAMP / nginx, macOS
- WP_DEBUG=true, WP_DEBUG_LOG=true, WP_DEBUG_DISPLAY=true
- debug.log path: wp-content/debug.log"	manucastle78
1	49721	Links of Installed Themes Not Re-written to New Port after WP-Config Port Change		Themes	5.3.2	normal	minor	Awaiting Review	defect (bug)	new		2020-03-28T17:12:53Z	2020-03-28T17:12:53Z	"When the wordpress server port is changed in the Wp-config.php file (home and site_url) inside of the wordpress root directory the installed theme links are not overwritten, resulting in no visible themes on the wordpress site.  This can be reproduced by changing the port and/or changing the site to run https.  When wordpress is reloaded, all links function normally (redirected to the new port number) except that of themes.  The problem can be fixed by removing the wp-config.php 
{{{
site_url 
}}}
and 

{{{
home
}}}
definitions than putting them into Settings>General of the wordpress admin and saving the changes.  In this case the theme links are rewritten."	jack12221
1	56066	Need to add smooth transition effect on theme appearance boxes		Themes		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2022-06-24T09:30:23Z	2025-01-03T09:20:16Z	"In wordpress 6.0 when we open theme appearance setting and hover on themes boxes so there is some high transition effect are occure.So we need add smooth hover effects.

Video link:
https://share.cleanshot.com/bXyiherko0uxfoHb6XHh"	multidots1896
1	50190	Search query doesnot know if the theme is already updated.		Themes		normal	normal	Future Release	defect (bug)	reopened	has-patch	2020-05-17T07:06:42Z	2020-07-09T09:01:56Z	If the theme is updated and the search box is used, there comes the 'New version available. Update Now.' again for that theme. 	sanzeeb3
1	50682	Set theme information popup in vertically middle.		Themes	5.5	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-07-16T14:49:18Z	2021-10-03T04:32:08Z	When we open theme info popup has more space on top. It should be vertically middle.	chetan200891
1	41309	Theme and plugin editing experience improvements at smaller screens		Themes		normal	normal	Awaiting Review	defect (bug)	assigned		2017-07-13T13:52:03Z	2024-07-01T21:07:39Z	"It was running some tests and noticed how bad the editing experience is when there is a smaller screen. An example is:

[[Image(https://cldup.com/6dnk2TUA53-3000x3000.png, 80%)]]"	karmatosed
1	41076	Themes: Add more help and documentation when editing theme files		Themes		normal	normal	Awaiting Review	defect (bug)	new		2017-06-15T14:45:50Z	2017-06-21T14:25:54Z	"Add:

“Looks like you’re trying to edit your theme! We recommend creating a [child theme](link)"" instead. 

This will let you make changes to your theme without accidentally breaking anything.” Except with better copy. Maybe also a “make child theme” one-click button that generates a child theme with a functions.php and style.css."	karmatosed
1	60248	Unable to delete theme placed in subdirectory		Themes		normal	normal	Awaiting Review	defect (bug)	new		2024-01-14T08:38:53Z	2024-08-13T20:41:19Z	"Originally reported in the Create Block Theme plugin repository: https://github.com/WordPress/create-block-theme/issues/500

Themes located in the subdirectory are recognized as installed themes and can be activated. On the other hand, themes located in the subdirectory will fail to be deleted. For example, if you delete the Twenrty Twenrty-three theme placed in the `wp-content/test` directory, the following response will be returned.

{{{
{
    ""success"": false,
    ""data"": {
        ""delete"": ""theme"",
        ""slug"": ""testtwentytwentythree"",
        ""errorMessage"": ""The requested theme does not exist.""
    }
}
}}}

On the other hand, plugins placed in the subdirectory are not displayed as installed plugins.

My question is whether a theme placed in the subdirectory should be recognized as a valid theme in the first place.

The Create Block Theme plugin allows you to clone a theme by specifying the subdirectory. Also, in the PR below, there seems to be a case where the theme is placed in a subfolder.

https://github.com/WordPress/create-block-theme/pull/368

  One of the items in the ""Edit"" screen is now 'Theme Subfolder'. This was one of the primary things that I needed to add in order to work with themes with Revisr. When a theme is installed from a .zip file it's installed at the top-level of wp-content/themes. However to manage themes in a git repo (such as our /pub free themes) that theme needs to be in a subfolder. This new functionality lets a user move the theme from a top-level into a subfolder (or move it around into another subfolder, etc). This works my simply moving the folder and then re-activating the theme with the new location information"	wildworks
1	63756	"Undefined array key ""slug"" in /wp-includes/class-wp-theme-json.php on line 3264"		Themes	5.8	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-07-27T13:00:27Z	2025-07-27T21:30:52Z	"Hi there, I'm running WordPress 6.8.2 with a child theme of Twenty Twenty-Three. I've been tuning colors and other theme settings with the generic WordPress site-editor (Gutenberg). I'm not sure when the following warning started to appear in my longs, but now I'm having plenty of the following warnings in my log:

{{{
PHP message: PHP Warning: Undefined array key ""slug"" in [...]/wp-includes/class-wp-theme-json.php on line 3264;
}}}

It appears to me that there is a discrepancy between my `theme.json` and that code. However, my `theme.json` was only changed through the official editor. Unfortunately, I'm unable to recall all the steps I did.

Nonetheless, I would propose adding a `isset( $item['slug'] )` check before accessing it in the code that is raising the above warning.

I've prepared a path on GitHub."	MeraX
1	50048	wp_ajax_update_theme is broken when updating themes whose styles.css file is not located in the root		Themes	5.4	normal	normal	Awaiting Review	defect (bug)	new		2020-05-01T16:37:59Z	2020-05-01T16:48:46Z	"Cannot update themes using wp_ajax_update_theme when templates aren't located in the theme root folder.

Sample folder structure:

{{{
/wp-content/themes/my-theme/templates/style.css
/wp-content/themes/my-theme/templates/functions.php
/wp-content/themes/my-theme/templates/index.php
}}}


The template name is defined as ""my-theme/templates"", but ""wp_ajax_update_theme"" is striping the slash so it becomes ""my-themetemplates"". This is why it's unable to locate the theme and not starting the update process.

Reference: https://core.trac.wordpress.org/browser/tags/5.4/src/wp-admin/includes/ajax-actions.php#L4118

Is this the desired behavior?"	anonymized_16042088
1	40508	Add new do_action after load template files	joedolson*	Themes	5.0	normal	normal	Future Release	enhancement	accepted	has-patch	2017-04-21T06:42:24Z	2025-06-17T19:39:39Z	"Could not perform action after get_header loads. 

get_header hook only perform before template part loads. So we can add new do_action after template files  loads 

'''
do_action( 'get_header_after', $name );'''


{{{
function get_header( $name = null ) {
	/**
	 * Fires before the header template file is loaded.
	 *
	 * The hook allows a specific header template file to be used in place of the
	 * default header template file. If your file is called header-new.php,
	 * you would specify the filename in the hook as get_header( 'new' ).
	 *
	 * @since 2.1.0
	 * @since 2.8.0 $name parameter added.
	 *
	 * @param string|null $name Name of the specific header file to use. null for the default header.
	 */
	do_action( 'get_header', $name );

	$templates = array();
	$name = (string) $name;
	if ( '' !== $name ) {
		$templates[] = ""header-{$name}.php"";
	}

	$templates[] = 'header.php';

	locate_template( $templates, true );

	do_action( 'get_header_after', $name );
}
}}}"	rajanit2000
1	54374	"Add the ""Last updated"" date to theme details"		Themes	5.8.1	normal	minor	Awaiting Review	enhancement	new		2021-11-04T17:02:57Z	2021-11-04T17:02:57Z	Hi when browsing through themes in the WordPress dashboard it would be helpful to see when the theme was last updated. At the moment you have to go to wordpress.org to view the last updated date for any given theme. 	okpaul
1	41179	Adding get_the_content-filter		Themes	4.8	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-06-27T01:14:32Z	2025-08-04T01:47:46Z	"Hey there,
atm I cannot replace the content by a custom on, because of missing filter for get_the_content().

Attached a patch for this."	Ninos Ego
1	40842	Adding template filters		Themes		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-05-22T23:37:08Z	2017-10-23T20:28:21Z	"Hey there,
for a plugin I really need filters for modifiing the header, footer and also maybe the sidebar. ATM I cannot change the template files without changing the theme itself because of missing filters.

If you need a description why I need to replace the header and footer, it's just simple: I want to add a functionality that on some pages the header/footer is replaced by a minimal header/footer (e.g. for customers from affiliate networks, shop pages). For a plugin it's not possible without these filters. Customers are forced to modify their theme itself, which is very hard to do for non-devs.

I hope you can implement them as soon as possible (in next WP 4.8).

PS: This is not a security risk, because a plugin also can manipulate the theme itself or use filters to change the general templates (single page...)."	Ninos Ego
1	56382	Allow filtering excluded directories during theme export via `wp_is_theme_directory_ignored`		Themes	6.0	normal	normal	Awaiting Review	enhancement	new	has-patch	2022-08-15T20:08:04Z	2022-08-15T20:20:38Z	"The `wp_is_theme_directory_ignored` function excludes the majority of common vendor or VCS files by default during theme export via the Site Editor.

There are themes which may need to exclude additional directories on a case by case basis. A few examples include:
1. Source files for JS tools like Webpack.
2. Unit test files.
3. .yarn files for Yarn projects with PNP support.

By offering a filter to theme developers we allow developers to filter as needed without needing to maintain a list of exclusions which covers all cases.

"	Mat Lipe
1	62210	Allow variations to be filtered		Themes	6.7	normal	normal	Awaiting Review	enhancement	new		2024-10-12T12:27:24Z	2024-10-12T12:44:10Z	"There's no way to currently modify theme variations. Only to add new ones.

Some use cases:
1. Allow a plugin to check color contrasts and make changes to variations
2. Allow plugins to dynamically add settings or styles
3. Allow a plugin/host/etc filter a blank them as a part of an external onboarding style selection

This is related to https://core.trac.wordpress.org/ticket/61605 but comments there are mostly about adding new variations, not altering existing ones. Plus, half of that user's issue was changed via https://github.com/WordPress/gutenberg/pull/63318

GitHub PR: https://github.com/WordPress/gutenberg/pull/66079"	kbat82
1	42354	Changing Add New theme link in wp-admin/themes.php		Themes	4.9	normal	normal	Future Release	enhancement	new	dev-feedback	2017-10-27T10:36:41Z	2021-05-29T18:35:49Z	"In 4.9, we can install theme with live previewing in customize. so it will better WordPress user land on /wp-admin/customize.php?autofocus[panel]=themes&autofocus[section]=wporg_themes to install new theme, when they click on 'Add New' button on wp-admin/themes.php

Or when WordPress user click on wp-admin/themes.php under Appearance because WordPrss user can perform same actions in customize related to wp-admin/themes.php.

Right now, there is two pages / parts in core to do same task. 1. under customize, 2. under wp-admin/themes.php"	rinkuyadav999
1	23040	Deprecate magic methods __isset() & __get() method of WP_Theme object		Themes	3.4	normal	normal	Future Release	enhancement	assigned	has-patch	2012-12-21T20:11:54Z	2021-08-11T15:44:26Z	"Currently, a user can do the following:
{{{
$theme   = wp_get_theme();
$version = $theme->Version;
$name    = $theme->Name;
$author  = $theme->Author;
$version = $theme->Version;
}}}

So, when I tried to get the other data in the same method, I was getting nothing. However, to get the other data, one must do this:
{{{
$theme->{'Author URI'}; // per Codex;
$theme->get( 'AuthorURI' ); // $theme->AuthorURI doesn't work
$theme->get( 'ThemeURI' ); // $theme->ThemeURI & $theme->{'Theme URI'}; doesn't work
$theme->get( 'TextDomain' ); // $theme->TextDomain & $theme->{'Text Domain'}; doesn't work
}}}

get() is a great method to get the other data; however, shouldn't we make this consistent for developers?"	wpsmith
1	39836	Display maximum file upload size on theme upload page		Themes		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2017-02-10T16:47:09Z	2017-06-25T04:06:02Z	"When we click on 'Upload Theme' button, WordPress displays ""If you have a theme in a .zip format, you may install it by uploading it here."" message on /wp-admin/theme-install.php

If we can displays maximum file size in this message, it will really help WordPress users. They will consider increasing upload file size in php.ini instead starting upload and displaying a message ""Are you sure want to do that?"" and if debug is true, they will also see error message."	rinkuyadav999
1	39844	Don't return anchor tag if link is empty in get_the_author_posts_link()	joedolson*	Themes	4.7.2	normal	normal	Future Release	enhancement	accepted	has-patch	2017-02-11T11:17:28Z	2026-09-23T15:23:32Z	"If get_author_posts_url() returns an empty value, currently get_the_author_posts_link() creates an anchor tag with am empty target. If shown on the page this results in a link to the current page, which is not what is expected from an author link.

https://core.trac.wordpress.org/browser/tags/4.7.2/src/wp-includes/author-template.php#L252

The attached patch changes this, so that if no link is given, just the author name is returned with no anchor tag surrounding. 
This is in line with the respective code for get_comment_author_link()

https://core.trac.wordpress.org/browser/tags/4.7.2/src/wp-includes/comment-template.php#L216"	SirkoSchindler
1	43597	Modify template-loader engine		Themes		normal	normal	Awaiting Review	enhancement	new		2018-03-21T09:54:15Z	2019-10-04T21:01:33Z	"Hi, I think it would be useful if the functionality of the template-loader.php file that determines the template to load were added directly to the template_include filter with priority 1, so that it will be accessible using a function.
I have found the need in some projects in which I load the WordPress core from an external application, since once the core is loaded, it is necessary to include the template_loader.php file and it is not possible just to obtain which would be the template to load (and not ley ir load)."	chespir
1	40038	Padding load_template's require with a do_action on each end		Themes	1.5	normal	normal	Future Release	enhancement	new	has-patch	2017-03-05T17:08:53Z	2017-03-08T03:32:03Z	"Pad the requires in load_template in wp-includes\template.php with a do_action on each end so it looks like this:

{{{#!php
<?php
function load_template( $_template_file, $require_once = true ) {
	global $posts, $post, $wp_did_header, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID;

	if ( is_array( $wp_query->query_vars ) ) {
		extract( $wp_query->query_vars, EXTR_SKIP );
	}

	if ( isset( $s ) ) {
		$s = esc_attr( $s );
	}

	do_action('load_template_before', $_template_file); // new line
	if ( $require_once ) {
		require_once( $_template_file );
	} else {
		require( $_template_file );
	}
	do_action('load_template_after', $_template_file); // new line
}
}}}

this will allow plugin and theme developers to pad each template with html.

At the very least for debugging purposes you'd be able to do something like this

{{{#!php
<?php
add_action('load_template_before', 'debug_pad_before');
add_action('load_template_after', 'debug_pad_after');

function debug_pad_before($template){
    echo('<!-- template begin ' . $template . ' -->');
}

function debug_pad_after($template){
    echo('<!-- template end ' . $template . ' -->');
}
}}}

I'm specifically targeting this function because it's used not only by wordpress but by buddypress as well, and I anticipate other extensions to fall back to this same function. Buddypress uses its own bp_locate_template but uses wordpress' load_template to load them."	qwertyzw
1	38935	Proposition to add the theme mod name as a param to the dynamic theme_mod_{$name} filters		Themes		normal	normal	Awaiting Review	enhancement	new	has-patch	2016-11-24T15:07:20Z	2018-04-17T21:48:12Z	"Hi !
It would be convenient to be able to target a specific theme mod name when applying the same callback to all theme mods with `add_filter( ""theme_mod_{$name}"", '_my_generic_callback' )`.

Right now we need to extract the theme mod with a code looking like this :

{{{#!php
<?php
function _my_generic_callback( $theme_mod_value ) {
  //extract theme mod name
  $_filter = current_filter();
  $_ptrn = 'theme_mod_';
  if ( $_ptrn !== substr( $_filter, 0, strlen($_ptrn) ) )
    return $theme_mod_value;

  $_mod_name = str_replace($_ptrn, '',  $_filter);
  //do things now
  // ...
}
}}}
"	nikeo
1	30729	Rework Theme Install and Preview Flow in wp-admin		Themes	3.8	normal	normal	Future Release	enhancement	assigned		2014-12-16T14:37:48Z	2025-02-09T17:00:54Z	"Consider making the ""Preview"" the primary button instead of ""Install"" in theme-install.php.

See #26899."	iseulde
1	42711	Support for symlinked themes in the themes folder		Themes		normal	normal	Awaiting Review	enhancement	new		2017-11-27T12:38:34Z	2017-11-27T12:38:34Z	"Symlinking themes to the theme directory does not work.

This feature is more important than ever, since developers usually use various build tools.
The repository – almost everytime – looks something like this:


{{{
.
├── build
├── src
├── package.json
└── readme.md
}}}

The build folder contains the generated theme. Currently it is necessary to use a script to copy the build files to the Wordpress theme folder, after a successful build.

It would be much easier to symlink the build folder to the WP themes directory. This way you keep your repository and the WordPress themes folder clean."	Afterlame
1	38863	Text change when activating a theme		Themes		low	minor	Awaiting Review	enhancement	new	dev-feedback	2016-11-19T02:43:03Z	2022-06-10T05:43:12Z	"When switching themes, after activating we see:

New theme activated. Visit site
[/wp-admin/themes.php?marks=168#L168, /wp-admin/themes.php, L.168]

Because it needs not to be a NEW theme, I suggest the following:
''Theme changed and activated succesfully.'' "	Presskopp
1	56488	The current_theme_supports should have default args test		Themes		normal	normal	Awaiting Review	enhancement	new	has-patch	2022-09-01T15:11:33Z	2022-09-01T15:54:22Z	"You can pass a second arg to the current_theme_supports() function but if this is not in the switch if is not handled

I believe we should make the simple in_array test the default test to that the current_theme_supports function can be used with extra args without have to change core code

"	pbearne
1	51658	Themes: Allow template loading functions to filter templates to search for		Themes	3.0	normal	normal	Awaiting Review	enhancement	assigned	has-patch	2020-10-28T15:50:47Z	2020-11-12T14:13:49Z	"Allow template loading functions to filter templates to search for.

This affects:
* {{{get_header()}}}
* {{{get_footer()}}}
* {{{get_sidebar()}}}
* {{{get_template_part()}}}

Note: there's an added check such that if the templates value returned is {{{empty()}}} the function returns false."	amibe
1	65608	Themes: Harden process_blocks_custom_css() against non-string input		Themes	7.1	normal	normal	Awaiting Review	enhancement	new	close	2026-07-10T12:53:49Z	2026-07-15T11:35:42Z	"`WP_Theme_JSON::process_blocks_custom_css()` accepts a `$css` parameter typed as string in its docblock, but performs no runtime type check. If a non-string value reaches the function, the `explode()` call will produce a PHP fatal error (8.X) or warning (7.X).

This can happen because:
1. The `VALID_STYLES` schema marks CSS as null, which means `remove_keys_not_in_schema()` accepts any type for this key -  arrays and integers pass through schema sanitization unchanged.
2. The `wp_theme_json_data_*` filters allow plugins and themes to modify the theme JSON data at runtime. A callback that returns a non-string value for CSS (e.g. an array) will not be caught by the sanitization and will reach `process_blocks_custom_css()`.
3. The method was made `public static` in 7.0 (changeset 61678) for use by the `custom-css block` support, making it callable by external code.


The function already has an `empty()` guard at the top. Extending this to also return early on a non-string value keeps the fix local to the function and consistent with how it already handles unusable input.
"	hannahtinkler
1	53353	have the ability to put FSE files in a theme subfolder		Themes	5.8	normal	normal	Awaiting Review	enhancement	new		2021-06-07T17:42:46Z	2021-06-07T18:26:09Z	"Hi All

Looking at the FSE code and thinking how I would apply this to a theme.

It seems to me that we might what to be able to control where the theme.json and block-template folder are stored in a theme.

for 2 reasons 
1. control if a theme is using FSE via setting. if we have the setting in a folder and none in the root then until we set the folder as the location FSE will be off
2. provide more than one set of options

This also makes the folder layout cleaner in current theme that what to support both classic and FSE modes"	pbearne
1	51895	theme_root filter for WP_Theme::get_files		Themes		normal	normal	Awaiting Review	enhancement	new		2020-11-29T13:21:09Z	2020-11-29T13:21:09Z	"WP_Theme::get_files() is using a class method that doesn't pass the value through the theme_root filter from wp-includes/theme.php

As a result WP_Theme::get_post_templates() is targeting the default theme_root regardless of the filtered value. "	rafasashi
1	58237	Change default 'Blog pages show at most' to better divisible number		Themes		normal	normal	Awaiting Review	feature request	new	dev-feedback	2023-05-02T20:00:26Z	2023-05-04T21:12:31Z	"From the first versions of WordPress there is ""Blog pages show at most"" set to 10. It has worked fine in the old times, where the blog posts were linear. But today, they are shown in grid in default and most other templates. And very often it has a responsive behaviour - so it has 3 or 4 columns on desktop, 2 or 3 on tablets and 1 or 2 on mobile phones. The problem is, that 10 is not divisible by 3 or 4. So if you have more then default 10 posts, there is an ugly gap before the list and the numbering.

Setting this default to 12 would make it work for 99,99 % cases and it is very simple change without backward compatibility issues (as it is a database value so it will not affect existing websites, only the new ones)."	thomask
1	43163	Did you know? CSS notification needs a Dismiss button to close		Themes	4.9	normal	normal	Awaiting Review	feature request	new	has-patch	2018-01-26T17:09:30Z	2019-07-16T03:45:11Z	"The CSS notification bar at the top of the Edit Themes editor needs a Dismiss button so that it can be closed.

The notification bar I'm referring to says:

'''
Did you know?

There’s no need to change your CSS here — you can edit and live preview CSS changes in the built-in CSS editor.'''
"	pracko
1	53415	Filter API to edit footer content		Themes	5.7.2	normal	normal	Awaiting Review	feature request	new	has-patch	2021-06-15T19:48:40Z	2022-09-30T16:01:10Z	"Just like ""the_content"", a filter that allows the footer content to be edited in functions.php.  When optimizing landing pages, it's easy to dequeue scripts and styles, however, many plugins still add jQuery to the footer of the site even though the script has been deregistered and dequeued. Woocommerce tracking codes and other unnecessary code for a designated landing page cannot be filtered in the footer."	codemilitant
1	63569	It should be possible to register font families with external sources		Themes	6.9	normal	normal	Awaiting Review	feature request	new		2025-06-15T21:58:09Z	2025-06-15T21:58:09Z	"If we load fonts from an external source, we should be allowed to add the font families and font faces to theme.json

Currently, declaring a font face with no or empty source will result in an error being printed on the front end. When the source is empty, this is handled gracefully in the site editor.

It should also simply skip the font face declaration on the front end too (it currently does this, but not without printing an error)

**Relevant snippets**

**Gutenberg**

`/packages/edit-site/src/components/global-styles/font-library-modal/utils/index.js`


{{{
/*
 * Loads the font face from a URL and adds it to the browser.
 * It also adds it to the iframe document.
 */
export async function loadFontFaceInBrowser( fontFace, source, addTo = 'all' ) {
	let dataSource;

	if ( typeof source === 'string' ) {
		dataSource = `url(${ source })`;
		// eslint-disable-next-line no-undef
	} else if ( source instanceof File ) {
		dataSource = await source.arrayBuffer();
	} else {
		return;
	}

	const newFont = new window.FontFace(
		formatFontFaceName( fontFace.fontFamily ),
		dataSource,
		{
			style: fontFace.fontStyle,
			weight: fontFace.fontWeight,
		}
	);

	const loadedFace = await newFont.load();

	if ( addTo === 'document' || addTo === 'all' ) {
		document.fonts.add( loadedFace );
	}

	if ( addTo === 'iframe' || addTo === 'all' ) {
		const iframeDocument = document.querySelector(
			'iframe[name=""editor-canvas""]'
		).contentDocument;
		iframeDocument.fonts.add( loadedFace );
	}
}
}}}

**Core**

`/wp-includes/fonts/class-wp-font-face.php`


{{{
if ( empty( $font_face['src'] ) || ( ! is_string( $font_face['src'] ) && ! is_array( $font_face['src'] ) ) ) {
	// @todo replace with `wp_trigger_error()`.
	_doing_it_wrong(
		__METHOD__,
		__( 'Font src must be a non-empty string or an array of strings.' ),
		'6.4.0'
	);
	return false;
}
}}}

**The following should be possible:**

`/wp-content/theme/functions.php`

{{{
// Enqueue Typekit embed link on both front-end and editor
add_action( 'wp_enqueue_scripts', 'afi_enqueue_typekit' );
add_action( 'enqueue_block_editor_assets', 'afi_enqueue_typekit' );
function afi_enqueue_typekit() {
	$project_id = get_option( 'afi_typekit_id' );
	if ( $project_id ) {
		wp_enqueue_style( 'afi-adobe-fonts', ""https://use.typekit.net/{$project_id}.css"", array(), null );
	}
}
}}}


`wp-content/theme/theme.json`


{{{
{
	""$schema"": ""https://schemas.wp.org/trunk/theme.json"",
	""version"": 3,
	""settings"": {
		""typography"": {
			""fontFamilies"": [
				{
					""name"": ""Proxima Nova"",
					""slug"": ""proxima-nova"",
					""fontFamily"": ""Proxima Nova, sans-serif"",
					""fontFace"": [
						{
							""fontWeight"": ""200 800"",
							""fontStyle"": ""normal"",
							""fontFamily"": ""Proxima Nova""
						}
					]
				}
			]
		}
	}
}

}}}




"	andrewleap
1	43352	Make html5 standard rather than opt in for theme development		Themes		normal	normal	Awaiting Review	feature request	new		2018-02-19T11:36:10Z	2019-01-16T06:42:42Z	"Currently when you want to have WordPress output valid HTML5 code for certain elements ('search-form', 'comment-form', 'comment-list', 'gallery', 'caption') you have to specifically add support in functions.php via add_theme_support( 'html5', […]) to opt in for use in your theme.

I propose to make these 5 elements HTML5 by default, HTML5 support in modern browsers are more than adequate and most, if not all, modern themes use HTML5 code. The HTML5 standard is also stable.

WordPress should output these elements in HTML5 by default rather than having developers opt in, by now the situation should be the other way around, you should opt out if you for some unknown reason would rather not have HTML5 code."	kkalvaa
1	61866	Notify users of links that open in new tab.	joedolson*	Themes		normal	normal	Future Release	feature request	accepted		2024-08-13T16:59:02Z	2024-12-03T15:52:12Z	"I had a conversation with our Technology Accessibility Team last week - they were asking me if we could implement an automated icon addition for links which open in an external tab. Apparently there are some WCAG compliance implications of opening a link in a new tab.
https://theadminbar.com/accessibility-weekly/opening-links-in-new-tabs-or-not/

This may be the responsibility of the theme, rather than being a core WordPress function. I thought it was worth mentioning, since it came up. "	wmalexander
1	45344	Add Two New Theme Tags on Theme Directory		Themes		normal	normal	Future Release	task (blessed)	reopened		2018-11-14T09:15:49Z	2024-02-02T04:07:07Z	"As per the [https://wordpress.slack.com/archives/C02RP4Y3K/p1542132120930800 discussion] of theme review team, we want to add two tags `align-wide` and `block-styles`. 

* `align-wide` - Support for Wide Align 
* `block-styles` - Has styles for the block editor

Also, we need this tags on the theme filter. "	kafleg
1	40882	Characters omitted when copying and pasting from Word		TinyMCE	4.7.5	normal	normal	Awaiting Review	defect (bug)	new		2017-05-29T19:48:44Z	2026-02-07T17:48:57Z	"I have been preparing WordPress pages by arranging the information in Microsoft Word 2016, and then copying it from Word and pasting it into WordPress. My pages almost all include citations that I've copied from Google Scholar and pasted into Word. 

I noticed recently that in the citations, the following characters would be missing: 
- the (nonbreaking) space that follows the italicized publication name 
- the volume number that follows after that
- the period that follows after that

When I first noticed this, I went back through 70+ pages and it looked like these characters had been omitted every time. 

Note that when this happened again on another page yesterday, I decided to report a bug. I had already deleted the Word source file, so I tried to reproduce the behavior with a small new Word file. I found that I was never able to reproduce this behavior. 

Today I saw this behavior again on yet another new page. This time I've saved the Word source file, and I've confirmed that this happened again when I copied and pasted again. 

Please fix this if at all possible. Copying and pasting is such a reliable operation normally in every modern application that it's fairly easy to not realize that in WordPress this operation introduces errors that need to be fixed. 

Thanks!"	janthony636
1	65734	Classic Editor: Support pasted WebP image URLs in TinyMCE smart paste		TinyMCE	7.1	normal	normal	Future Release	enhancement	new	has-patch	2026-07-27T15:01:34Z	2026-09-29T11:21:47Z	"In the Classic Editor, pasting a direct WebP image URL keeps the URL as plain text, while JPG/PNG/GIF URLs are converted into an <img> element by TinyMCE smart paste.

WordPress already supports WebP images, and current TinyMCE documents images_file_types as affecting which image URLs are recognized and placed in an img element by smart_paste. Its default list includes webp.

Steps to reproduce:
1. Open the Classic Editor visual tab.
2. Paste a direct image URL ending in .jpg, for example https://example.com/image.jpg.
3. Confirm it is inserted as an image.
4. Paste a direct image URL ending in .webp, for example https://example.com/image.webp.

Actual result:
The WebP URL remains plain text.

Expected result:
The WebP URL should be inserted as an image, consistent with JPG/PNG/GIF URL handling.

Patch:
The attached patch minimally updates the bundled TinyMCE paste plugin image URL detection to include webp, without changing file upload, drag-and-drop, or other editor behavior."	landian
1	42300	Admin Bar CSS assumes body is not positioned		Toolbar	4.5.7	normal	normal	Future Release	defect (bug)	new		2017-10-21T23:59:02Z	2024-12-10T06:19:45Z	"The Admin Bar is appended to the `body` of the page, and uses `position: fixed` for large windows. A space is made for it by using `margin-top` on the `html` tag. 
This works fine until the media query for smaller windows changes it to `position: absolute` and there is user or theme CSS with `body {position: relative}`. The bar is then positioned relative to the body instead of html (leaving the margin visible and the bar over the top of body content).

I discovered this because I wanted to add a background overlay on the body, independent of the custom background, so I set the body position to relative and body:before to absolute.

A possible solution is to use body padding instead of html margin, but that might interfere more with theme CSS than the current method."	joyously
1	66209	Network adminbar menu not fully usable on mobile	joedolson	Toolbar		normal	normal	Awaiting Review	defect (bug)	assigned	has-patch	2026-09-29T21:22:50Z	2026-11-10T05:10:11Z	"On mobile, attempting to open the Network Admin submenu collapses the open menu.

This report is based on my assumption of what's happening, since I'm on mobile at the moment and can't verify

The event trigger that auto closes the collapsed admin menu when it loses focus also fires when the network admin menu gains focus, as that menu is not in the group of elements targeted as being inside the menu. 

Needs more verification to confirm cause. "	joedolson
1	18556	Toolbar dropdowns when dragging items	drecodeam*	Toolbar	3.2.1	normal	normal	Future Release	defect (bug)	accepted	has-patch	2011-08-31T19:15:17Z	2021-11-16T14:16:57Z	"When dragging metaboxes, widgets, menu items, etc to the top of the window in order to scroll to drop the item on a portion of the UI that's above the viewing window, the toolbar interferes and produces dropdowns, etc.

If dragging an item, can we disable toolbar actions?
"	chexee
1	46232	"Merge or make-closer ""Customize"" and ""Edit {Thing}"" top-level toolbar items"		Toolbar		normal	normal	Awaiting Review	enhancement	new	dev-feedback	2019-02-11T07:46:53Z	2023-05-10T00:07:14Z	"As the lines start to blur between editing post-content and editing site-content, the purposes of the top-level toolbar ""Customize"" and ""Edit Post/Page"" type links is also.

In a block-based world, the left-to-right order of these 2 links seems a bit odd:

* Customize Site
* Moderate Comments
* Add New Stuff
* Edit Thing

Screenshot imminent."	johnjamesjacoby
1	64875	Move command palette to the right and make it more visible		Toolbar		normal	normal	Awaiting Review	enhancement	new		2026-03-17T16:13:54Z	2026-05-20T06:11:04Z	"The command palette has great potential not only for quick access but also for future chatbot-style interactions with AI connectors. For these reasons, I believe that its current location and appearance do not support its intended use, so I propose two changes:

1. Move it to the right of the admin bar, next to the user profile link, where it will be much more visible, since on the left side it will always compete with a multitude of other links and elements that make it invisible
2. Make the text input box visible directly on the admin bar, while maintaining the current Ctrl/Cmd+K functionality, to make it more "	fernandot
1	65881	Toolbar: Increase the height to 48 pixels for both desktop and mobile		Toolbar		normal	normal	Future Release	enhancement	new		2026-08-14T16:06:46Z	2026-10-06T16:50:57Z	"Related: #65091, #65849, #65445.

Historically, the toolbar (the admin bar) height has always been 32 pixels and then adjusted to 46 pixels in the responsive view.


This point was recently discussed in the context of the various changes for the Toolbar in WordPress 7.1 and some contributors from the accessibility team pointed out the 32 pixels height appears to be too small for today's average displays and DPI.

The limited height makes hard adding some good focus style.
Also, themes (for the front end) and plugins (for the admin) are forced to take the variable height in account and provide their own styles for the desktop and responsive view, especially when they used fixed / sticky toolbars.

By increasing the toolbar height and making always the same for both desktop and mobile:
- the CSS would greatly simplified
- there would be more space for additional styling e.g. the focus style
- readability would improve
- work for theme and plugin authors would be greatly simplified
- it is also worth noting thet right now a `mobile` CSS class is added to the body (and used to style the toolbar) on the PHP side when the device in use is detected to be a mobile device. This is done via the `wp_is_mobile()` function and this part could be entirely removed.

== Backward compatibility

Many themes and plugins are unmaintained and this should be taken into account. Id' be in favor of considering any sort of opt-in mechanism, for example a theme support of any other kind of flag for plugins and themes. This needs to be considered carefully.

"	afercia
1	45177	admin bar View page button is missing in mobile view		Toolbar		normal	normal	Awaiting Review	enhancement	new	has-patch	2018-10-25T06:34:29Z	2021-07-24T16:12:37Z	"In a post, we can see the view post button in the admin bar. but that button is hidden in the mobile view

https://discourse.pressbooks.org/t/is-not-view-chapter-missing-in-mobile-view/746"	colomet
1	40544	Keep toolbar showing at the top on mobile screens		Toolbar		normal	normal	Awaiting Review	feature request	new		2017-04-23T13:04:05Z	2021-08-13T17:22:14Z	"Hi , when i travel some where then I use my phone to edit my blog. From last 1 week I'm using my phone to edit my website and I found difficaltly in editing my website.  

Like if I have open theme editor them I have to scroll up again and again to access menu :(  when i scroll up then all the coding is mixed and make me confused where I have left .

So what I mean is , there should be flying menu bar on top to access the menu easily :) with out scrolling the screen up . 

Like i'm sending two images for  example , we have to scroll the screen up to view the  menu :)"	arvindsinghu
1	63008	Be consistent with button style, size, and placement during installation		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2025-02-23T20:29:14Z	2026-01-28T10:10:38Z	"When installing WordPress from scratch, there is considerable inconsistency with the style, size, and placement of the primary action button on each screen as you're guided through setup, installation, and login.

1. **Language chooser:** Primary, large, right-aligned, with custom font size
2. **Welcome message:** Secondary, left-aligned
3. **Database connection:** Secondary, left-aligned
4. **All right, sparky:** Secondary, large, left-aligned
5. **Installation:** Secondary, large, left-aligned
6. **Success:** Plain text link, left-aligned
7. **Login:** Primary, large, right-aligned

Granted not many people go through the full setup flow thanks to the prevalence of one-click installers, but let's give this some love anyway to improve first impressions.

I propose that every button shown during setup and installation that takes you to the next step is styled the same as the login button, which is a primary, large, right-aligned button."	johnbillion
1	46040	Broken symlinks prevent updates		Upgrade/Install	5.0.3	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2019-01-18T21:36:58Z	2026-08-19T06:36:28Z	"Soon after cPanel updated EasyApache 4 (EA4) (ea-php-cli-1.0.0-3.3.1.cpanel.x86_64) to use caching (a faster way to select the PHP executable, such as php-cli), I noticed some failed plugin updates.  If appears that updated cPanel servers now create "".ea-php-cli.cache"" broken symbolic links in the directory where a PHP script was executed by CLI (such as a CRON job or manual call).  The links are to a fake target (such as ""ea-php71""), which is used by the perl script to select the executable.

I already submitted https://github.com/CpanelInc/php-cli/issues/2 to cPanel, and already received a response.  The author of the pull request https://github.com/CpanelInc/php-cli/commit/883e8f1f3f37998d4501de4d4276c8a9d290fae3 may be changing how it caches; possibly creating the cache files in the ""~/.cpanel"" directory and cleaning up the littered files in the users' web directories.

I have a working fix for WordPress, that I will attach in a moment.  The cause and effect is not limited to cPanel and WordPress, and the issue should be fixed on both sides.

To replicate:
1. Have WordPress 5.0.3 installed on a cPanel server that has ea-php-cli-1.0.0-3.3.1.cpanel.x86_64 installed. -- You can check using `rpm -q ea-php-cli-1.0.0-3.3.1.cpanel`.  Also '/usr/local/bin/php' is a text (perl) file, and not a binary/executable.
1. Login into SSH/CLI and call any PHP file in a plugin, such as `php wp-content/plugins/akismet/class.akismet-cli.php`.
 a. You should then see a broken symlink in the ""wp-content/plugins/akismet/"" directory.
1. Change the version number in the main plugin file ""wp-content/plugins/akismet/akismet.php"" to something lower, such as ""4.0"".
1. Go to the WordPress >> Updates page and try to update the plugin.
 a. You will see an error ""An error occurred while updating Akismet: The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions. .ea-php-cli.cache""
1. You can delete the symlink or apply the patch, and the update will be successful.
"	joemoto
1	62565	Columns no longer work correctly		Upgrade/Install	6.7.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2024-11-25T13:54:35Z	2025-05-12T01:38:43Z	"I use 3 columns on many pages of our website. Since upgrading to 7.6.1 they no longer work as expected.  The left column is fine but the next 2 columns are distorted badly.  It looks fine when I am editing a page but the live site is bad.  I have tried activating Jqueery migrate helper but that has no effect.
I have even tried installing new columns but these are also incorrect.  Columns on pages I have not edited are also incorrect"	peacelands
1	56431	Fatal Error on Update Page When a Plugin's Icon is Not Set		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2022-08-24T17:04:02Z	2026-09-21T10:24:37Z	"When on the Dashboard > Updates page, if there is a plugin whose icon is not set, a fatal error is generated, and no plugins are listed in the update section.

`PHP Fatal error:  Uncaught Error: Cannot use object of type stdClass as array in /wp-admin/update-core.php:509`

I have often seen this with plugins that are not hosted on wordpress.org. Mostly this is when you have a paid plugin that doesn't have an icon set.

I think the fix should be as follows:
`wp-admin/update-core.php` line 509: 
`if ( ! empty( $plugin_data->update->icons[ $preferred_icon ] ) ) {`
should change to:
`if ( is_array( $plugin_data->update->icons ) && ! empty( $plugin_data->update->icons[ $preferred_icon ] ) ) {`

"	scott.deluzio
1	61117	Guard condition in `delete_temp_backup()` shouldn't return early		Upgrade/Install	6.3	low	normal	Future Release	defect (bug)	new	has-patch	2024-05-01T22:08:08Z	2025-05-17T23:35:20Z	"In the `delete_temp_backup()` function there is a guard condition which triggers an early return if the arguments for any of the temp backups are empty ([https://github.com/WordPress/wordpress-develop/blob/ebc66bb9a13180d85f5a8b374d85ce14e0b7b2db/src/wp-admin/includes/class-wp-upgrader.php#L1200-L1202 ref]).

This prevents further iteration of the array of temp backups. In theory this prevents the deletion of a valid backup that exists in in a subsequent element in the array.

I think the `return false` should be replaced with `continue`."	johnbillion
1	56270	Impossible to update any plugin because wp cli uses http instead of https		Upgrade/Install	6.0	normal	normal	Awaiting Review	defect (bug)	new		2022-07-22T12:15:29Z	2022-08-14T04:36:35Z	"ubuntu 22.04
wp 6.0.1
WP-CLI: 2.6.0
curl 7.81.0-1ubuntu1.3
php 8.1.7

Updating any plugin with the cli tool or from the browser throws the same error. For instance:

{{{
$ wp plugin update header-footer-elementor
Enabling Maintenance mode...
Downloading update from http://downloads.wordpress.org/plugin/header-footer-elementor.1.6.12.zip...
Warning: Download failed. ""cURL error 77: ""
Disabling Maintenance mode...
+-------------------------+-------------+-------------+--------+
| name                    | old_version | new_version | status |
+-------------------------+-------------+-------------+--------+
| header-footer-elementor | 1.6.11      | 1.6.12      | Error  |
+-------------------------+-------------+-------------+--------+
Error: No plugins updated.

$ wp plugin update essential-addons-for-elementor-lite
Enabling Maintenance mode...
Downloading update from http://downloads.wordpress.org/plugin/essential-addons-for-elementor-lite.5.1.8.zip...
Warning: Download failed. ""cURL error 77: ""
Disabling Maintenance mode...
+-------------------------------------+-------------+-------------+--------+
| name                                | old_version | new_version | status |
+-------------------------------------+-------------+-------------+--------+
| essential-addons-for-elementor-lite | 5.1.4       | 5.1.8       | Error  |
+-------------------------------------+-------------+-------------+--------+
Error: No plugins updated.<code></code>
}}}

This issue is **caused by the fact that the wp cli uses the http url, instead of https**:
1) **with http**:
curl http://downloads.wordpress.org/plugin/header-footer-elementor.1.6.12.zip
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>`

2) **with https**:
curl https://downloads.wordpress.org/plugin/header-footer-elementor.1.6.12.zip –output header-footer-elementor.1.6.12.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 546k 100 546k 0 0 629k 0 –:–:– –:–:– –:–:– 628k

QED"	jcmanciot
1	60397	Invalidate opcache after theme / plugin updates	seebeen	Upgrade/Install	6.4.2	normal	normal	Awaiting Review	defect (bug)	assigned	dev-feedback	2024-01-31T10:10:01Z	2024-01-31T12:29:13Z	"Depending on the server opcache configuration, there is a high possibility of getting an Internal Server Error, or similar after updating a plugin / theme.

Specific opchache settings I've verified that trigger the error are:

{{{
[opcache]
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=256
opcache.interned_strings_buffer=24
opcache.max_accelerated_files=130987
opcache.max_wasted_percentage=2
opcache.use_cwd=1
opcache.validate_timestamps=1
opcache.revalidate_freq=5
opcache.revalidate_path=0
opcache.save_comments=1
opcache.enable_file_override=1
}}}

Error happens because validate_timestamps is set to 1 and revalidate_freq is greater than 0. This means that after plugin update, error 500 will stay for up to revalidate_freq seconds due to invalid opcache.

This can be mitigated by adding a opcache_invalidate or opcache_reset call upon successful update."	seebeen
1	58945	Issues with downloading and unpacking plugins with PHP 8.2		Upgrade/Install	6.2.2	normal	normal	Awaiting Review	defect (bug)	new		2023-07-31T10:56:24Z	2023-10-28T23:46:33Z	"Hello,

I've encountered an issue when trying to download and install plugins or update WordPress on PHP 8.2, both from the admin dashboard and using WP-CLI. This issue does not occur on PHP 8.1.

When attempting to install or update a plugin, the ZIP file is downloaded correctly, but when it comes to unzipping and installing, the process ends with an error of ""Could not copy file."". The same issue occurs during a WordPress update.

I conducted a series of tests trying to pinpoint the issue. I carried out tests with both native PHP functions (curl, copy) and WordPress functions (download_url, unzip_file) that are typically used for downloading and installing plugins and updates.

Moreover, I noticed that the issue also arises when trying to update to a previous version via WP-CLI. In this case, after the ZIP file is downloaded, unzipped, and attempted to install, an error of ""Warning: Could not copy file."" is produced.

Here seems to be a WP-CLI cache clearing issue as empty zip files remain


Given the above, I suspect that the problem might be due to some incompatibility between PHP 8.2 and the WordPress functions used for downloading and installing plugins and updates.

Could someone take a look at this issue? Any help would be greatly appreciated.




{{{
:~/public_html$ wp plugin update classic-editor
Downloading update from https://downloads.wordpress.org/plugin/classic-editor.1.6.3.zip...
Unpacking the update...
Installing the latest version...
Removing the old version of the plugin...
Plugin updated successfully.
+----------------+-------------+-------------+---------+
| name           | old_version | new_version | status  |
+----------------+-------------+-------------+---------+
| classic-editor | 1.6.1       | 1.6.3       | Updated |
+----------------+-------------+-------------+---------+
Success: Updated 1 of 1 plugins.

:~/public_html$ wp plugin update classic-editor --version=1.6.1
Installing Classic Editor (1.6.1)
Downloading installation package from https://downloads.wordpress.org/plugin/classic-editor.1.6.1.zip...
Unpacking the package...
Installing the plugin...
Removing the old version of the plugin...
Plugin updated successfully.
Success: Installed 1 of 1 plugins.

:~/public_html$ wp plugin update classic-editor
Downloading update from https://downloads.wordpress.org/plugin/classic-editor.1.6.3.zip...
Using cached file '/home/***/.wp-cli/cache/plugin/classic-editor-1.6.3.zip'...
Error: Error copying cached file /home/***/.wp-cli/cache/plugin/classic-editor-1.6.3.zip to https://downloads.wordpress.org/plugin/classic-editor.1.6.3.zip


:~/.wp-cli/cache/plugin$ ls -l
total 0
-rw-r--r-- 1 *** *** 0 Jul 31 10:40 classic-editor-1.6.1.zip
-rw-r--r-- 1 *** *** 0 Jul 31 10:40 classic-editor-1.6.3.zip

}}}
"	pablo07
1	49221	Non-en_US installs of trunk are prompted for an update		Upgrade/Install	5.4	normal	normal	Awaiting Review	defect (bug)	new		2020-01-17T22:35:48Z	2020-02-06T19:53:00Z	"Hello,

I've only noticed this recently on trunk installs, but if on install you choose any non-en_US locale for the install once you've logged in you'll see an update notice and pending update;
[[Image(https://core.trac.wordpress.org/attachment/ticket/49221/Screen%20Shot%202020-01-17%20at%202.32.20%20PM.png)]]

The update will install and put you to the nightly build version and leave the option to update again.

On trunk I don't believe you should be prompted for an update as you're already ahead of the version it's prompting you to update to.

Cheers"	garrett-eclipse
1	53039	Not invalidating files in opcode cache after core update (cont’d)		Upgrade/Install	5.7.1	normal	normal	Awaiting Review	defect (bug)	new		2021-04-15T07:47:22Z	2023-11-14T14:40:43Z	"This is a follow-up to #51686.

After got email notification that WordPress was auto-updated to 5.7.1, still seeing a notice `WordPress 5.7.1 is available! Please update now.` on admin pages.

The exception is /wp-admin/update-core.php showing `Current version: 5.7.1` and `You have the latest version of WordPress.`

/wp-includes/version.php contains `$wp_version = '5.7.1';`

It's the same even after `systemctl reload php-fpm` which supposed to clear opcache. Even `systemctl restart php-fpm` didn't help."	Krstarica
1	53210	PHP 7.2: Can update WP core in wp-cli but not admin GUI		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new		2021-05-14T19:33:59Z	2021-05-14T23:31:11Z	"When we attempt to update WordPress core from the admin area, it gets a critical error, but when we update it with wp-cli, it updates successfully, with the following output (warnings):

{{{
$ vendor/bin/wp core update
Updating to version 5.7.2 (en_US)...
Warning: Declaration of WP_CLI\CoreUpgrader::download_package($package) should be compatible with WP_Upgrader::download_package($package, $check_signatures = false, $hook_extra = Ar
ray) in C:\inetpub\[...]\vendor\wp-cli\wp-cli\php\WP_CLI\CoreUpgrader.php on line 14
Warning: Declaration of WP_CLI\UpgraderSkin::feedback($string) should be compatible with WP_Upgrader_Skin::feedback($string, ...$args) in C:\inetpub\[...]\vendor\wp-cli\wp-
cli\php\WP_CLI\UpgraderSkin.php on line 30
Downloading update from https://downloads.wordpress.org/release/wordpress-5.7.2-no-content.zip...
Unpacking the update...
Success: WordPress updated successfully.
}}}


To reproduce the GUI issue:

1. Go to Dashboard > Updates
2. Click 'Update Now' or 'Reinstall...'

Using the Health Check plugin's 'troubleshooting mode', I get a slightly more verbose error (but otherwise it's missing the line beginning ""Fatal Error""):

  Downloading update from https://downloads.wordpress.org/release/wordpress-5.7.2-no-content.zip…
  The authenticity of wordpress-5.7.2-no-content.zip could not be verified as no signature was found.
  Unpacking the update…
  Fatal error: Maximum execution time of 30 seconds exceeded in C:\inetpub\[...]\wp-admin\includes\class-wp-filesystem-direct.php on line 82
  There has been a critical error on this website. Please check your site admin email inbox for instructions.

Using a Windows server, but not sure if that matters."	danicholls
1	60905	PHP Deprecated messages in class-automatic-upgrader-skin.php		Upgrade/Install	6.4.3	normal	minor	Awaiting Review	defect (bug)	new	reporter-feedback	2024-04-03T11:42:13Z	2024-04-12T02:43:01Z	"The following pair of messages were logged seven times as
WordPress automatically updated from 6.4.3 to 6.5.

{{{
PHP Deprecated:  str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /.../wp-admin/includes/class-automatic-upgrader-skin.php on line 87
PHP Deprecated:  trim(): Passing null to parameter #1 ($string) of type string is deprecated in /.../wp-admin/includes/class-automatic-upgrader-skin.php on line 93
}}}

wp-config.php includes:

{{{
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', '/var/log/wordpress/debug.log' );
define( 'WP_AUTO_UPDATE_CORE', true );
}}}

PHP version is 8.2.7

wp-admin/includes/class-automatic-upgrader-skin.php
is unchanged from WordPress 6.4.3 to 6.5.

Thank you!
Dan"	lewart3
1	61281	Plugin having dependent plugins not checkable for the bulk actions	costdev	Upgrade/Install	6.5	normal	minor	Future Release	defect (bug)	assigned		2024-05-23T16:12:57Z	2024-05-24T02:23:14Z	"Steps to reproduce the issue.

1) Install and activate a plugin with one or more dependent plugins. Let's call it Plugin A. Let's assume Plugin A has the slug plugin-a.

2) Install and activate a plugin that depends on plugin A. Let's call it Plugin B.
Plugin B has the following comment in the plugin header of the main file:

Requires Plugins: plugin-a

3) Disable Plugin B.




Then, in the list of plugins the checkbox of Plugin A is not checkable for the bulk actions even if Plugin B is disabled and Plugin A is active.
You can't do it if you want to bulk deactivate Plugins A and other plugins.

I agree you should not be able to delete Plugin A if Plugin B is still in the filesystem, but you should be able to bulk deactivate it with other plugins if Plugin B is inactive."	giuse
1	48586	Problems updating to WordPress 5.3.		Upgrade/Install	5.3	normal	major	Awaiting Review	defect (bug)	new	close	2019-11-13T01:41:43Z	2025-10-16T10:04:08Z	"Hi.

I've tried to update to 5.3. from the dashboard as I've done for the last 10 years and it didn't worked.

Now, after talking with the people in charge of the server (because it affected the whole server), the web is accesible, but trying to access to the dashboard, WordPress is asking me to update the database to the last version and everytime I try to do this, it DOESN'T work and ends up messing the whole server again.

Do you know if it's happening with other website and how I could fix it?

Thanks in advance."	jcbsep
1	42008	Show warning that usernames can't be changed		Upgrade/Install		normal	minor	Future Release	defect (bug)	reviewing	close	2017-09-27T16:10:48Z	2020-11-01T11:47:08Z	"When we install WordPress, it says ""Please provide the following information. Don't worry, you can always change these settings later.""

But When we want to change username, WordPress does not allow. See screenshots."	rinkuyadav999
1	49014	Silence set_time_limit() call in wp-admin/includes/class-wp-upgrader.php		Upgrade/Install		normal	trivial	Awaiting Review	defect (bug)	reopened		2019-12-17T15:39:09Z	2019-12-24T04:03:22Z	"Aggiornamento delle traduzioni per Twenty Twenty (it_IT)…

Warning: scandir(/home/.dummy/temp/): failed to open dir: Permission denied in /home/user/wp/wp-includes/functions.php on line 2479

Warning: scandir(): (errno 13): Permission denied in /home/user/wp/wp-includes/functions.php on line 2479

Warning: array_diff(): Argument #1 is not an array in /home/user/wp-includes/functions.php on line 2479

Notice: set_time_limit() has been disabled for security reasons in /home/user/wp-admin/includes/class-wp-upgrader.php on line 468
Le traduzioni sono state aggiornate con successo.

Tutti gli aggiornamenti sono stati completati.
{{{#!php
<?php
            //Compatibily wiht open_basedir
            $dir_trim = dirname( '/' . trim($dir, '/\\') . '/' ) !== '.' ? $dir_default = array( '.','..' ) : $dir_default = array( '.' );
            $dir_arr = @scandir( $dir );
                if( !$dir_arr ) {
                unset( $dir_arr );
                $dir_arr = $dir_default;
                }
             //restore key
             $files = array_values( array_diff( $dir_arr, array( '.', '..' ) ) );
             unset( $dir_default, $dir_array, $dir_trim );
}}}
"	autotutorial
1	39746	Suddenly getting error on all of my servers: Unable to locate WordPress content directory (wp-content).		Upgrade/Install	4.7.2	normal	normal	Awaiting Review	defect (bug)	new		2017-01-31T07:13:39Z	2017-03-08T05:04:54Z	"Hi

I have now been getting these update errors, I have never had problems before. It always worked using ssh2. 

This happened while I was overseas (5 weeks), so I am not sure when this started - but before I went ALL of my servers (CentOS 6.8 with php 5.6, all latest patches) where still able to update. 

Suddenly I started getting ""could not update wordpress"" as I have automatic updates setup, now I can update some machines, some I cannot.

I thought I try one of the servers (the development server) with latest php 7.1, maybe that gets rid of that problem - it did not solve the issue, so I went back to the original php install.

What is really strange I have a development server/install of one website on a different server as the main server. Both installs are identical (as in core/plugins/etc) The main server I can happily update the wordpress site using ssh2, the development server I cannot update the wordpress site anymore - the ONLY difference is the domain name. Both servers run the nearly the same software (the development machine has a few more yum packages) both OS and web-environment are the same, they even have the same php.ini file.

When I change the development server from FS_METHOD=ssh2 to FS_METHOD=direct it works (after updating the file permissions), but I do not like this as the files need to be write-able by the user running the server, with ssh2 I can have different owner and group which is way more secure.

I too have another wordpress install that I cannot update. I know that all settings/keys/permissions etc are correct as it USED to work.

Help please!
"	jobst
1	33909	The `home` option not equivalent to the WP_HOME constant value in multisite and single instance		Upgrade/Install	3.0	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2015-09-17T07:41:18Z	2025-06-27T09:28:41Z	"Hi,

for this issue, I'm running a multisite instance with custom WordPress and wp-content directory paths where I set the constants '''WP_SITEURL''' and '''WP_HOME''' values as follow:

* WP_HOME: http://mydomain.com/
* WP_SITEURL: http://mydomain.com/cms (where WordPress is installed)

All the process during the installation is working perfectly and the multisite instance is installed as expected...except when you click on the admin toolbar button '''Visit site''' for example.

Here is the issue, the site URL is set as '''http://mydomain.com/cms''' where it should be '''http://mydomain.com'''. This issue is becoming a user experience issue because both URLs with and without the '''cms''' URI are working. But all anchor tags href attribute have the wrong value.

When looking at the database '''wp_options''' table, we can see that both '''home''' and '''siteurl''' options have a value of '''http://mydomain.com/cms''' which should only be '''siteurl''' with this value.

I'm filling this issue mainly for multisite because the anchor tags used to visit the site have the wrong value but note that even for single WordPress installation, the options values are wrong in the '''wp_options''' table. Both have the same value where only the '''siteurl''' should get '''cms''' URI in this example. But when you're on a single instance all anchor tags href attributes have the correct URL in order to visit the site where in multisite they are wrong.

So there are 2 things to look at here probably:
* First why the '''wp_options''' values are not equal to the set constants '''WP_HOME''' and '''WP_SITEURL'''?
* Second, why in a single instance URLs are correct (even if values in the database are wrong) and not on multisite?

Best regards"	jlambe
1	63596	The upgrader_process_complete hook doesn't fire during bulk updates		Upgrade/Install	6.9	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2025-06-19T05:21:39Z	2025-06-19T14:46:31Z	"**Summary**
The upgrader_process_complete action hook is not triggered during bulk plugin updates, causing plugins that depend on post-upgrade actions to malfunction.

**Steps to Reproduce**
Install plugins that hook into upgrader_process_complete (e.g., caching plugins, backup plugins)
Perform a bulk plugin update from Admin → Plugins → Select multiple plugins → Update
Observe that post-upgrade actions (cache clearing, notifications, etc.) don't execute

**Expected Behavior**
The upgrader_process_complete hook should fire consistently for both individual and bulk updates, allowing plugins to perform necessary post-upgrade cleanup and maintenance tasks.

**Actual Behavior**
The hook only fires for individual updates. Bulk updates skip the hook due to an is_multi condition check in WP_Upgrader::run().

**Impact**
Caching plugins don't clear cache after bulk updates
Security plugins miss configuration updates
Backup plugins don't trigger post-update backups
Plugin update notifications fail to send"	vipulpatil
1	44629	UI Add scrollbars for webkit on Update Plugins		Upgrade/Install	4.9.7	normal	normal	Awaiting Review	defect (bug)	new		2018-07-24T06:58:31Z	2018-07-24T06:58:31Z	"Hello,

I've found with the Update Plugins iframe it often completes almost silently and it appears almost stuck as at first glance there's no indication there's more hidden in the fold of the iframe.

For instance my recent update left the last visible line as 'Disabling Maintenance mode...' but then it seemed to go silent and even though lines were written below they were hidden from view. This made me sit thinking I'd have to go remove the .maintenance file.
*Screen to come.

I'm on chrome webkit and would assume safari would be the same. It would be nice to override the browser and force the scrollbar to be visible. I often find the scrollbar almost acts as a progress meter as it gets smaller the longer the content gets so having it visible would be nice.

I hope that makes sense, just wanting to improve the cognitive feedback on the iframe to avoid leaving the user assuming the execution has suddenly stopped.

Thank you


"	garrett-eclipse
1	66315	Update counts in the folded admin menu don't refresh after updating a plugin		Upgrade/Install		normal	minor	Awaiting Review	defect (bug)	new	has-patch	2026-10-15T05:20:08Z	2026-10-20T20:06:18Z	"When the admin menu is folded, the update count next to ""Plugins"" doesn't change after you update a plugin on the page. It keeps the old number until you reload.

The admin menu prints each top-level item's update count twice: once in the menu link, and once in the submenu header (`.wp-submenu-head`). The submenu header is what shows when the menu is folded, either after clicking ""Collapse Menu"" or automatically on screens between 783 and 960 pixels wide. `wp.updates.refreshCount()` only updates the copy in the menu link, so the folded menu never changes.

=== Steps to reproduce
1. Have two plugins with updates available.
2. Make the browser window about 900 pixels wide, or click ""Collapse Menu"".
3. Go to ""Plugins > Installed Plugins"" and click ""update now"" for one of them.
4. Hover over ""Plugins"" in the admin menu.

Expected: the count shows 1.

Actual: it still shows 2. After updating both plugins it still shows 2 instead of no count.

The same thing happens with the ""Themes"" count in the network admin, which is also a top-level menu item. On a single site the theme count is on the ""Themes"" submenu item, so it isn't affected.

=== Environment
- WordPress: 7.2-alpha (trunk)
- Browser: Chromium 149
- Single site and multisite

I have a patch ready and will link the PR here."	dlocc
1	64588	Update message slightly uneven		Upgrade/Install		normal	trivial	Awaiting Review	defect (bug)	new	has-patch	2026-02-03T15:03:40Z	2026-10-07T11:36:32Z	"After updating a plugin there's a message ""Plugin updated successfully. More details."" The margin is 1px off. It has a top margin of 6px and a bottom margin of 7px. Because it's only 1px, it's hard to show.

The values are calculated by


{{{
.notice p, .notice-title, div.updated p, div.error p, .form-table td .notice p {
    margin: 0.5em 0;
}}}

The computed values are 6.5px. I assume one time it gets rounded down, on time up."	Presskopp
1	53818	Update notification in admin bar is not updating		Upgrade/Install	5.8	normal	minor	Awaiting Review	defect (bug)	new		2021-07-28T19:24:40Z	2021-07-29T00:00:32Z	"Since I installed 5.8 the update notification continues to show what appears to be the sum of all the updates I have installed since 5.8. If I go to the update page or plugin page there are no updates needed and the update indicator returns to none.

When I log on later the indicator shows the number of updates again. Rinse Repeat.

Link to example: https://hubbelldigitalmedia.com/update-indicator.jpg

I looked to see if I could find any ticket or mention of this and did not find anything. So I thought I would, if this is a known issue, then I apologize for posting.

"	andhub
1	55380	Updating from 5.8.2 to 5.9.2 breaks default website (no additional plugins)		Upgrade/Install	5.9.2	normal	major	Awaiting Review	defect (bug)	new		2022-03-11T21:14:36Z	2022-03-11T21:25:08Z	"I wanted to test some plugins on my local server. I had old WordPress 5.8.2 archive. I installed it and then it automatically updated. Immediatelly after that my website broke. I didn't install any additional plugins.

Server: Apache 2.4
PHP: 7.4
MySQL: 8.0

{{{
Fatal error: Uncaught Error: Call to a member function switch_to_blog() on null in C:\OpenServer\domains\visualelementor.nodomain.me\wp-includes\cache.php:239 Stack trace: #0 C:\OpenServer\domains\visualelementor.nodomain.me\wp-includes\load.php(727): wp_cache_switch_to_blog() #1 C:\OpenServer\domains\visualelementor.nodomain.me\wp-settings.php(131): wp_start_object_cache() #2 C:\OpenServer\domains\visualelementor.nodomain.me\wp-config.php(95): require_once('C:\\OpenServer\\d...') #3 C:\OpenServer\domains\visualelementor.nodomain.me\wp-load.php(50): require_once('C:\\OpenServer\\d...') #4 C:\OpenServer\domains\visualelementor.nodomain.me\wp-admin\admin.php(34): require_once('C:\\OpenServer\\d...') #5 C:\OpenServer\domains\visualelementor.nodomain.me\wp-admin\index.php(10): require_once('C:\\OpenServer\\d...') #6 {main} thrown in C:\OpenServer\domains\visualelementor.nodomain.me\wp-includes\cache.php on line 239

Fatal error: Uncaught Error: Call to undefined function __() in C:\OpenServer\domains\visualelementor.nodomain.me\wp-includes\class-wp-fatal-error-handler.php:188 Stack trace: #0 C:\OpenServer\domains\visualelementor.nodomain.me\wp-includes\class-wp-fatal-error-handler.php(152): WP_Fatal_Error_Handler->display_default_error_template() #1 C:\OpenServer\domains\visualelementor.nodomain.me\wp-includes\class-wp-fatal-error-handler.php(57): WP_Fatal_Error_Handler->display_error_template() #2 [internal function]: WP_Fatal_Error_Handler->handle() #3 {main} thrown in C:\OpenServer\domains\visualelementor.nodomain.me\wp-includes\class-wp-fatal-error-handler.php on line 188
}}}
"	rinart73
1	49117	WP default themes' translations keep being installed when updating WordPress		Upgrade/Install	5.3.2	normal	trivial	Awaiting Review	defect (bug)	new	reporter-feedback	2020-01-02T14:05:43Z	2023-05-29T12:31:23Z	"This happens every website I maintain, and it has been happening ever since I got in the field of web design with wordpress. I'm reporting it because I couldn't find any refference to the issue on the net.


To keep the clutter to a minimum, I regularly add following lines to config.php:


{{{
define( 'CORE_UPGRADE_SKIP_NEW_BUNDLED', true );
define( 'WP_DEFAULT_THEME', 'whatever-the-theme-is' );
}}}


WP default themes' (3 twentywhatever themes) translations keep being installed in wp-content/languages/themes when updatig wordpress, no matter what WP version it is updating to, or what the default theme is.

Not a big issue, but still a bug and a nuisance."	3dwebvision
1	52458	"WordPress version check is passing ""false"" value to ""esc_url"" causing errors (in the logs)"	SergeyBiryukov	Upgrade/Install	5.3	normal	normal	Future Release	defect (bug)	reviewing	reporter-feedback	2021-02-05T22:26:28Z	2021-08-19T21:06:47Z	"At least one code-path that leads to this situation is via the following line: https://github.com/WordPress/wordpress-develop/blob/master/src/wp-includes/update.php#L197

The response of WordPress.org for core does not return a value for all ""package"" entries. Thus passing `false` to the `esc_url` array_map.

{{{#!php
Array
(
    [full] => https://downloads.wordpress.org/release/wordpress-5.6.1.zip
    [no_content] => https://downloads.wordpress.org/release/wordpress-5.6.1-no-content.zip
    [new_bundled] => https://downloads.wordpress.org/release/wordpress-5.6.1-new-bundled.zip
    [partial] =>
    [rollback] =>
)
}}}

In the esc_url function, the value is checked for an empty string, but no type safety is applied.

The subsequent logic calls `ltrim` which expects the input to be a string.
If this is not the case, there will be an error thrown about this.

This has been added on July 1st, 2019.
See: https://github.com/WordPress/wordpress-develop/commit/78e096fe98531d0799c42705d1329f808e9ee944
"	jipmoors
1	65666	both Upgrade buttons have the same value, potentially upgrading to wrong language		Upgrade/Install		low	minor	Awaiting Review	defect (bug)	new	has-patch	2026-07-20T07:00:29Z	2026-08-03T21:55:12Z	"when an upgrade is available, there is a second upgrade button available that has the same text (value).
viewing the html source reveals the second button is sending with POST a different locale value ""en-US"", while the value indicates the locale is the current installed one (in this example de-DE).

while i never wanted to risk anything for a test, this indicates a potential issue upgrading to a wrong, not wanted localed version."	o815
1	54936	db_version mismatch after update to 5.9		Upgrade/Install	5.9	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-01-26T20:54:14Z	2022-07-20T16:12:36Z	"Hello, is my first time submitting feedback to the team to apologies if I got anything wrong in the process.

I run a small hosting company with just over 150 WordPress sites hosted on both Apache2 and Nginx; VPS and Shared; Exclusively WordPress.

I noticed after a few sites auto updated and then their /wp-admin/* links were all redirecting to 404.

After ruling out our various hosting environments and checking the files and DB. We found the /wp-includes/wp-version.php for 5.9 didn’t match the db_version value in the database on the failing sites post update.

When I manually set the db_version to match the wp-version.php file the redirect stopped and the site loaded without clearing any caches.

However, this wasn’t the case on all our sites. Most of them updated normally.

Here’s a quick list of db_version values that broken out by what worked, and what didn’t.

if initial_db_version then breaks

49752,33055,24448

if initial_db_version then works

48748,43764,44719

WP 5.9 found in /wp-includes/wp-version.php

db_version: 51917

I hope it helps the WP team even if in a small way. Thanks for the years of dedicated work on this project, it has made my small company possible! 🙂"	mtruglio
1	55174	"revert to the default ""checked"" behavior of blog_public switch in install.php"		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2022-02-16T03:26:00Z	2022-02-16T13:14:33Z	"Good day, 

https://core.trac.wordpress.org/changeset/10574/trunk/wp-admin/install.php

Please I think that is necessary to changed the default behavior of the 'Allow my blog to appear in search engines...' checkbox from checked to unchecked.


This has caused a lot of issues before, and someone has corrected/commented about it in this forum below,.. https://paddicity.com/threads/are-you-launching-a-new-self-hosted-wordpress-site-check-this-out.25/"	paddicity
1	50339	setup-config.php serves mixed content when behind a TLS termination proxy		Upgrade/Install		normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2020-06-07T22:40:30Z	2020-06-11T09:56:26Z	"When you are setting up WordPress behind a TLS termination proxy, 
`setup-config.php` does not know about it and serves mixed content (URLs are `http://...`). 
Browsers now refuse to load `http://...` content if the displayed URL is `https://...`.

`setup-config.php` should be able to detect whether it runs behind a TLS termination proxy, so that the initial setup of WordPress (it is a one-off thing) runs smoothly. 

"	simosx
1	45519	updates count differs on public area and in admin area		Upgrade/Install	4.9.8	normal	normal	Awaiting Review	defect (bug)	new		2018-12-07T09:54:40Z	2018-12-07T09:54:40Z	"when there are available 4 updates: 1 wp core update, 2 plugins updates ans 1 theme update -- then in public area there's a notification about 3 updates available, while in the same time in admin area -- about 4 ones.

wp version 4.9.8. i know i should upgrade before i post a ticket. but if i upgrade, there will be no updates available! this requirement contradicts with reproducing the bug!"	awardpress
1	60837	while installing plugins		Upgrade/Install	5.5	normal	minor	Future Release	defect (bug)	new		2024-03-25T10:31:16Z	2024-03-26T16:59:11Z	"== Bug Report
=== Description
When i try to install plugin I am facing layout issue

=== Environment
- WordPress: 6.5-RC3
- PHP: 8.1.10
- Server: Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
- Database: mysqli (Server: 8.0.30 / Client: mysqlnd 8.1.10)
- Browser: Chrome 123.0.0.0 (Windows 10/11)
- Theme: WP Travel FSE 1.1
- MU-Plugins: None activated
- Plugins: 
  * Loco Translate 2.6.6
  * Plugin Check (PCP) 1.0.1
  * Query Monitor 3.15.0
  * WordPress Beta Tester 3.5.5
  * WPCode Lite 2.1.9
  * WP Travel 8.4.0
  * WP Travel Gutenberg Blocks 3.5.0
  * WP Travel MapQuest 3.0.0
  * WP Travel Pro 7.4.0

=== Steps to Reproduce
1. install the plugins via upload zip file
x. 🐞 Bug occurs.

=== Expected Results
1.  ✅ full page descriptions must be there

=== Actual Results
1.  ❌ I am getting half screen layout as in screenshots https://prnt.sc/cRwUEBpY5-0K"	nrnbhattarai
1	59062	wordpress 404 error after update		Upgrade/Install	6.3	normal	minor	Awaiting Review	defect (bug)	new	close	2023-08-10T21:00:19Z	2026-01-15T13:47:48Z	"All of my wordpress sites are having a 404 error after updating to 6.3 when attempting to log in to the back end. 

i have tried multiple sites, i have turned off all plugins, i have  reset to base themes, i have manually performed the update by copying the files. this new update is borked.

the site in main question is chicagolandhomeproducts.com"	fredricksoncr
1	48540	wp-pass.php and wp-register.php should be deleted on update		Upgrade/Install	5.2.4	normal	normal	Awaiting Review	defect (bug)	new		2019-11-08T20:12:46Z	2019-11-08T23:46:21Z	"Hi

IMHO wp-pass.php and wp-register.php should be deleted on update. I find this issue when checking core checksums after big WP update."	wojsmol
1	37640	Add WPLANG to `.maintenance`		Upgrade/Install	4.0	normal	normal	Awaiting Review	enhancement	new		2016-08-12T05:37:25Z	2018-07-16T02:18:52Z	"Currently, maintenance display is English.
This will be WPLANG definition is deprecated in version 4.0 or later, I think that it is due to the fact that now is not the translation information of each language is loaded at the time of the maintenance display.

I think the problem can be solved by adding a WPLANG defined in `.maintenance` that is created at the time of maintenance.

*Currently(/wp-admin/includes/update-core.php : line936)
{{{
$maintenance_string = '<?php $upgrading = ' . time() . '; ?>';
}}}

*Change
{{{
$language = get_option( 'WPLANG' );
if ( $language ) {
	$maintenance_string = '<?php $upgrading = ' . time() . '; if ( !defined( \'WPLANG\' ) ) define( \'WPLANG\', \''. $language .'\' ); ?>';
} else {
	$maintenance_string = '<?php $upgrading = ' . time() . '; ?>';
}
}}}

Please consider this matter."	tmatsuur
1	47389	Display warning message on the Updates screen when a VCS is in use		Upgrade/Install	3.7	normal	normal	Awaiting Review	enhancement	new		2019-05-25T13:42:18Z	2023-02-15T20:13:29Z	"When a version control system is in use, an appropriate warning message should be shown on the Updates screen, recommending that updates be performed via their VCS instead. The update action shouldn't be blocked, though.

Similarly, for every plugin and theme that has an update available, WordPress should check whether the individual plugin or theme's directory is under version control and present a similar warning because updating a plugin or theme will completely wipe out its directory, therefore allowing version history to be lost.

The `WP_Upgrader::is_vcs_checkout( ... )` method can be used to detect VCS usage."	johnbillion
1	49407	Do not propose users to skip a minor upgrade (take 2)		Upgrade/Install		normal	normal	Future Release	enhancement	new		2020-02-11T16:07:12Z	2021-01-27T19:10:07Z	"Background: #43242

[47061] removed the suggestion for users to skip a minor update to keep their current translation. With the introduction of asynchronous translation updates in WordPress 3.7+, the suggestion is no longer relevant.

There's still some functionality to dismiss a core update, including:
* ""Hide this update"" button on WordPress Updates screen.
* `dismissed` option in `get_core_updates()`.
* Some functions:
 * `dismissed_updates()`
 * `dismiss_core_update()`
 * `undismiss_core_update()`

We should re-evaluate whether this functionality should be deprecated, as it goes against the project goals of keeping as many sites up-to-date as possible."	SergeyBiryukov
1	64475	Make dependencies / states more clear		Upgrade/Install	6.5	normal	normal	Future Release	enhancement	new	has-patch	2026-01-06T09:14:44Z	2026-01-11T13:01:53Z	"Coming from {{{wp-admin/plugin-install.php}}}, when viewing a plugin that depends on another plugin, the UI currently only states “Additional plugins are required.”

It does not indicate whether the required plugin is already installed, active, or missing. The same lack of information exists on the Plugins screen.

This makes it unnecessarily hard to understand what action is actually required.

I have created a small starter patch to illustrate how this information could be exposed more clearly. The patch is only affecting the plugins list so far. Also CSS is missing."	Presskopp
1	64843	Make plugin name bold in update notice on Plugins page		Upgrade/Install		normal	minor	Awaiting Review	enhancement	new	dev-feedback	2026-03-11T18:13:35Z	2026-07-11T09:06:55Z	"On the Plugins admin screen (wp-admin/plugins.php), when a plugin update is available, WordPress displays an update notice below the plugin row.

Currently, the plugin name inside the update message is not visually emphasized. Making the plugin name bold would improve readability and help users quickly identify which plugin the update notice refers to.

Example current notice:
There is a new version of MailerPress available. View version 1.5.1 details or update now.

Suggested improvement:
There is a new version of **MailerPress** available. View version 1.5.1 details or update now.

This small UI improvement would make the plugin name stand out and improve clarity when multiple plugins have updates available.

**Steps to Reproduce**

- Install a plugin from the WordPress Plugin Directory.
- Wait until an update is available.
- Go to Dashboard → Plugins.
- Observe the update notice displayed under the plugin row.

**Expected Behavior**

The plugin name in the update notice should be displayed in bold text for better visibility.

**Actual Behavior**

The plugin name appears as normal text, making it less distinguishable within the sentence.

**Proposed Solution**

Wrap the plugin name in a <strong> tag in the update notice markup.

**Example:**
There is a new version of <strong>Plugin Name</strong> available."	yasirkhalifa
1	45058	Proposal for plugin/theme public hashes to prove authenticity of installed code		Upgrade/Install		normal	normal	Awaiting Review	enhancement	new		2018-10-06T16:05:56Z	2018-10-10T16:38:57Z	"There have been some discussions recently online about issues surrounding nulled (pro) themes and plugins, as well as unauthorized, possibly modified versions of themes and plugins hosted on WordPress.org, but installed from other sources.

I would like to propose adding a plugin/theme hashing mechanism to the deployment system (i.e. when you tag a plugin or theme, part of the package generation process generates the archive hash for display publicly on the associated plugin/theme page of wordpress.org, and also available via the API to the plugin page and auto-updater within WordPress).

Ultimately this would let both end-users and WordPress itself potentially understand whether or not a plugin or theme had been modified. Possibly as part of the nightly cron WordPress could check the local plugin/theme hashes against the published ones -if they didn't match, it indicates something has been changed locally.  Conceivably Pro plugin authors could implement a similar approach, the goal of course not being to prevent people from taking advantage of the freedoms associated with the GPL, but to help alleviate issues where ZIP files floating around have malicious code in them but the end-user doesn't have the ability to detect that themselves. At the bare minimum providing hashes would allow someone to know if a plugin or theme had been modified after the author(s) officially released them.

I have seen various other open source projects now provide hashes of the official downloads online.  It might be a good direction for WordPress to go towards in the future as well.  I wanted to post this to possibly generate some discussion around it.  Cheers. "	duanestorey
1	66148	Protect wp-content/upgrade-temp-backup (and wp-content/upgrade) from being served over HTTP		Upgrade/Install	6.3	normal	normal	Awaiting Review	enhancement	new	has-patch	2026-09-21T09:28:26Z	2026-10-26T08:17:47Z	"I reported this to the WordPress security team as HackerOne #3993590. John closed it as N/A — not a vulnerability — and said I was welcome to open it here, with the caveat that even a bug report might not really apply, and that a Site Health check could help. So this is a hardening request. Rollback stays.

== What happens ==

Since 6.3, every plugin/theme update moves the previous copy into `wp-content/upgrade-temp-backup/{plugins,themes}/<slug>/` (`WP_Upgrader::move_to_temp_backup_dir()`, `@since 6.3.0`). Unpack staging lives in `wp-content/upgrade/`. Both directories sit in the docroot. `mkdir()` does not drop an `index.php` stub or an `.htaccess`. Core already writes `index.php` (`// Silence is golden.`) into `wp-content/`, `wp-content/plugins/`, `wp-content/themes/`, and `wp-content/uploads/`.

Site Health only checks that the temp-backup directory is writable (`update_temp_backup_writable`). It does not check whether leftovers are web-reachable.

Related: #51857, [55720] (path moved from `upgrade/temp-backup/` to `upgrade-temp-backup/`). See also #64510 (open) — leftovers not deleted when the filesystem is used without `WP_Filesystem` credentials. That ticket is about cleanup. This one is about the copy being HTTP-reachable while it exists.

== What I measured ==

* Healthy update, not a crash: Query Monitor 3.20.2 → 4.0.7. The complete previous version (165 files) was HTTP-reachable for about 2.5 seconds, then deleted on shutdown. The weekly cleanup cron cannot cover this window — it exists on every update.
* Leftovers when cleanup does not run: a failed Forminator auto-update left the previous version (1.35.0) answering HTTP 200 for nine days (`forminator.php` + `readme.txt`). WP-Cron was not firing on that site. `readme.txt` discloses the exact vintage.
* Direct PHP execution: on an nginx + php-fpm origin, a planted `.php` under that path returned 200 and ran. Plugin bootstraps that guard on `ABSPATH` no-op on a direct hit; self-contained handlers (file managers, sanitizers, uploaders) do run. Path-keyed WAF rules aimed at `/wp-content/plugins/<slug>/` miss this URL.

I am not claiming a CVE. Execution is conditional. Version/source disclosure of the previous copy is the thing that always happens while the copy exists.

== What I'd like core to consider ==

Cheapest first:

1. Drop the same `index.php` stub core already uses, when these directories are created. Stops listing. Does not stop a direct file request.
2. Drop an `.htaccess` deny (`Require all denied` / `RedirectMatch 404`) next to it, for Apache and LiteSpeed. nginx still needs a vhost rule.
3. A Site Health check for leftover copies in `upgrade-temp-backup/` — the idea John floated.

I already deny both paths at nginx on my own sites (`location ^~`). Default installs get nothing.

Happy to write a patch for (1) and (3) if this is wanted."	MythThrazz
1	49963	Security of failed update/rollback		Upgrade/Install	5.5	normal	major	Awaiting Review	enhancement	new	dev-feedback	2020-04-20T20:31:29Z	2020-04-20T20:44:53Z	"As discussed on the [[https://make.wordpress.org/core/2020/04/16/devchat-meeting-summary-april-15-2020/|previous devchat]] in case of failed update/rollback there are email notifications.

Idea is good: any errors related to Core, Plugin or Theme update should be reported to an email of admin as soon as possible.

But in the real world there are too few properly configured mail servers in wordpress and servers at all. Actually there is no good documentation how to set up email: https://wordpress.org/search/mail

In addition there are a lot of ''lazy'' administrators with email addresses like admin@example.com or something similar.

Thus so many **really important mails** about failed update/rollback will be send to `/dev/null`. It is security issue because website will be inconsistent state indefinite amount of time (for example login plugin not updated and not rollbacked).

1. Do you know how many wordpress installs have properly configured mails?
2. How to motivate admins to use real email addresses?
3. Maybe there is sense to prepare good documentation about mailing in wordpress?
4. Should auto-updates plugin works at all wothout properly configured emergency notifications?

* Original Github Issue: https://github.com/WordPress/wp-autoupdates/issues/83
* Feature Plugin: WP Auto-updates https://make.wordpress.org/core/2020/02/26/feature-plugin-wp-auto-updates/"	mahnunchik
1	58380	Setting time limit for updates doesn't always work.	pbiron*	Upgrade/Install		normal	normal	Future Release	enhancement	accepted	dev-feedback	2023-05-23T13:34:30Z	2024-09-30T02:45:16Z	"Warning: set_time_limit(): Cannot set max execution time limit due to system policy in /customers/7/5/e/lucasgent.be/httpd.www/***/wp-admin/includes/class-wp-upgrader.php on line 475

I usually comment out these lines since on my host one.com I ALWAYS get this additional warning line after succesfull updates. 

Is there something that can be done, so I don't have to do this for each new WP site...? Maybe a sort of option where you can enable/disable this? "	NekoJonez
1	48435	WordPress update: updating by transferring partial packages	pbearne*	Upgrade/Install		normal	normal	Awaiting Review	enhancement	accepted		2019-10-26T10:09:57Z	2024-08-07T17:48:56Z	"This is a request or enhancement, more than a bug. It is inspired by looking at https://wordpress.org/download/counter/ and the mostly unknown impact of the internet ([https://www.theguardian.com/environment/2015/sep/25/server-data-centre-emissions-air-travel-web-google-facebook-greenhouse-gas]) on our environment.

Disclaimer: I am not technical enough to be able to judge the impact of this request or the possibility of implementing it. Nevertheless...

So, WordPress' size is increasing with every release. Its size determines how much electricity is needed to transfer the zip file from server to server. Since the internet is still largely running on non-renewable energy, each WP install and update has an impact on the environment. It would be great to reduce this impact.co2 

I think that there is a lot of thinking about what gets into WP core, but it is always interesting to reconsider things or at least keep the impact of adding another library in mind.

However, I wonder whether it could be possible to update WP without having to transfer the whole package. If this is already the case: great, please close this ticket! Thanks and I am sorry. We're doing fine. ;-)
If not, could we consider to implement something like updating WP by sending only the parts that are necessary (modified)? This would not only decrease the impact of each update on the environment, but also make updates much quicker.

I realise that this means adding additional complexity. There should be packages available for different cases. For example, an update from 4.9 to 5.3 would be a different package than from 5.2 to 5.3. Also for minor updates. We could start incrementally, like minor updates?
If I am not mistaken, this is how operating system updates happen for Apple OS and Windows.

Oh, WP 5.2 has been downloaded about 1000 times **while writing this ticket**. ''That is roughly about 16 kg of CO2 emitted and equals to driving more than 120 km (75 miles) by car (130 g CO2/km (https://ec.europa.eu/clima/policies/transport/vehicles/cars_en))."	LittleBigThing
1	65543	`Plugin_Upgrader::install()` deletes freshly rebuilt `update_plugins` transient after `upgrader_process_complete`		Upgrade/Install	4.0	normal	normal	Awaiting Review	enhancement	new	dev-feedback	2026-06-25T19:05:39Z	2026-09-29T06:58:50Z	"On `Plugin_Upgrader::install()` flow, WordPress appears to rebuild the `update_plugins` site transient during `upgrader_process_complete`, but then deletes it again in the same request.

The sequence seems to be:
{{{
Plugin_Upgrader::install()
  WP_Upgrader->run()
    do_action( 'upgrader_process_complete' )
      priority 9:  wp_clean_plugins_cache()
                   delete_site_transient( 'update_plugins' )

      priority 10: wp_update_plugins()
                   set_site_transient( 'update_plugins', ... )

  wp_clean_plugins_cache( true )
    delete_site_transient( 'update_plugins' )
}}}

So, during the `upgrader_process_complete` hook, `update_plugins` is refreshed (cleaned and rebuilt) as expected. But immediately after `WP_Upgrader->run()` returns, `Plugin_Upgrader::install()` calls `wp_clean_plugins_cache( true )` again, which deletes the just-rebuilt transient.

That means code running later in the same request, for example on `shutdown`, can see `false` transient:
{{{#!php
get_site_transient( 'update_plugins' ); // false returned
}}}

This also seems inefficient: the request can spend expensive compute effort for `wp_update_plugins`, due to HTTP remote, only to be discarded afterwards.

It maybe intentional cache invalidation, but the current order makes the update check result unavailable to later same-request `getter` and appears to waste the freshly rebuilt transient.

PoC mirroring wp-admin plugins install ajax
{{{#!php
<?php
require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader.php';
require_once ABSPATH . 'wp-admin/includes/file.php';
require_once ABSPATH . 'wp-admin/includes/misc.php';
require_once ABSPATH . 'wp-admin/includes/plugin.php';
require_once ABSPATH . 'wp-admin/includes/update.php';
require_once ABSPATH . 'wp-admin/includes/admin-filters.php';


$install_plugin_url = 'https://downloads.wordpress.org/plugin/health-check.1.7.1.zip';

$http_requests_made = [];
add_filter(
	'http_request_args',
	function ( $request_args, $url ) use ( &$http_requests_made ) {
		$http_requests_made[] = $url;

		return $request_args;
	},
	10,
	2
);

printf(
	""transient before install: %s - %s\n"",
	esc_html( gettype( get_site_transient( 'update_plugins' ) ) ),
	wp_json_encode( get_site_transient( 'update_plugins' ) )
);

$upgrader_process_complete_output = '';

add_action(
	'upgrader_process_complete',
	function () use ( &$upgrader_process_complete_output ) {
		$upgrader_process_complete_output = sprintf(
			""transient at upgrader_process_complete: %s - %s\n"",
			esc_html( gettype( get_site_transient( 'update_plugins' ) ) ),
			wp_json_encode( get_site_transient( 'update_plugins' ) )
		);
	},
	999
);

printf( ""installing %s\n"", esc_html( $install_plugin_url ) );
$upgrader = new Plugin_Upgrader( new WP_Ajax_Upgrader_Skin() );
$result   = $upgrader->install( $install_plugin_url );
printf( ""install result: %s\n"", wp_json_encode( $result ) );

echo $upgrader_process_complete_output; // phpcs:ignore

printf(
	""transient after install: %s - %s\n"",
	esc_html( gettype( get_site_transient( 'update_plugins' ) ) ),
	wp_json_encode( get_site_transient( 'update_plugins' ) )
);

printf( ""http requests made: %s\n"", wp_json_encode( $http_requests_made ) );
}}}

Output:
{{{#!sh
transient before install: object - {""last_checked"":1782413777,""response"":{""jetpack\/jetpack.php"":...

installing https://downloads.wordpress.org/plugin/health-check.1.7.1.zip

install result: true

transient at upgrader_process_complete: object - {""last_checked"":1782413789,""response"":{""jetpack\/jetpack.php"":...

transient after install: boolean - false

http requests made: [""https:\/\/downloads.wordpress.org\/plugin\/health-check.1.7.1.zip"",""https:\/\/api.wordpress.org\/plugins\/update-check\/1.1\/"",...


}}}

- before install it correctly having existing transient
- when `upgrader_process_complete` triggered, it correctly ""rebuilt"" the transient ( see the `last_checked` )
- after install, transient wiped to `false`
- wasted http requests made to https://api.wordpress.org/plugins/update-check/1.1/


PS: maybe want to check the same thing on Theme area.


"	pentatonicfunk
1	59845	kritischen Fehler seit Update auf WordPress 6.4		Upgrade/Install	6.4	normal	critical	Awaiting Review	enhancement	new	has-patch	2023-11-08T19:30:51Z	2023-11-09T16:08:39Z	"Hallo seit dem Update heute auf die Version WordPress 6.4. bekomme ich bei der mobile Version meiner Homepage nur noch die Meldung ""Es gab ein kritisches Problem"" In der Desktop Version sieht alles gut aus. Brauche dringend Hife."	mdamerius
1	62945	Add a Changeloh link near the Update WordPress Button		Upgrade/Install		normal	normal	Awaiting Review	feature request	new	reporter-feedback	2025-02-11T21:00:38Z	2025-02-11T21:35:56Z	"Hi. This is a WordPress Core feature request for consideration. As a maintainer of many WordPress websites for clients, I always check ""View Details"" when updating third party plugins within the WordPress dashboard. 

Should we have a ""View Details"" link when there is a new WordPress update? This way we can view changelog to check if there are security fixes in the release and check other compatibilities, etc."	catchlight
1	43916	Auto update translations when the respective plugin/theme is updated		Upgrade/Install		normal	normal	Awaiting Review	feature request	new	dev-feedback	2018-05-01T13:41:41Z	2019-01-06T02:23:13Z	"I find updating translations a bit of a pain because they only seem to appear (rightly so though) once you've updated a plugin or a theme. It'd be great if translations could be automatically updated after the respective plugin or theme has been updated removing the need to check if there are any translations waiting.

Most often I find myself updating a plugin and then committing the update into version control and it's not until the commit has gone through that I reload the page to see that I now have new translation strings waiting. They really should be bundled with the main update of the plugin/theme."	danieltj
1	52963	Could use a Helper Function for Auto-Updates		Upgrade/Install	5.7	normal	normal	Awaiting Review	feature request	new	has-patch	2021-04-02T19:38:31Z	2021-04-05T13:36:17Z	"Would be nice to have a helper function (for example `does_plugin_auto_update`) to check if a plugin has auto-updates enabled. Currently the plugins are listed as an array in `auto_update_plugins` in the options table. It's not too tricky to grab the array and check if a plugin is listed,

{{{#!php
<?php
// check core setting for auto updates on a plugin
$auto_update_plugins = (array) get_site_option( 'auto_update_plugins', array() );
if ( in_array( 'hello-dolly', $auto_update_plugins, true ) ) {
	// do something
}
}}}

but would be ideal to have a helper do this
{{{#!php
<?php
if ( does_plugin_auto_update( 'hello-dolly' ) ) {
	// do something
}
}}}
much like the current `is_plugin_active` etc. "	circlecube
1	66239	Integrate WordPress.org closed, suspended, and outdated plugins and themes API data into Core		Upgrade/Install	trunk	normal	normal	Awaiting Review	feature request	new	has-patch	2026-10-04T10:56:30Z	2026-10-14T15:26:19Z	"WordPress.org Meta Trac ticket [#8447](https://meta.trac.wordpress.org/ticket/8447) and WordPress.org PR [#1004](https://github.com/WordPress/wordpress.org/pull/1004) updated the WordPress.org Plugin and Theme APIs to expose structured metadata when plugins or themes are:

1. **Closed / Removed / Suspended:** (`closed => true`, `status => 'closed'|'disabled'|'suspend'`, `closed_date`, `reason`, `reason_text`, `is_security => true|false`).
2. **Outdated / Abandoned:** (`is_outdated => true`, `outdated_notice => string`, tested beyond the last three major WordPress versions or not modified for more than two years).
3. **Inaccessible for Security Reasons:** (`is_security => true` or `reason => 'security-issue'`).

Currently, WordPress Core lacks visibility into this metadata. Site administrators may be unaware when an installed plugin or theme has been removed from the repository due to a critical security issue, closed at the author's request, or abandoned without updates. Furthermore, opening the details modal for a closed item triggers a generic `plugins_api_failed` error (`""An unexpected error occurred...""`) instead of explaining why the item is unavailable.

== Related Links & Prior Art

* **Meta Trac Ticket:** https://meta.trac.wordpress.org/ticket/8447
* **WordPress.org Pull Request:** https://github.com/WordPress/wordpress.org/pull/1004


----


== Proposed Solution & Changes

This patch adds complete Core support for storing, displaying, and alerting administrators about closed, suspended, outdated, or security-withdrawn plugins and themes.

=== 1. Update Check & Transient Storage

**`wp-includes/update.php`**

* In `wp_update_plugins()`:

  * Preserve `closed`, `closed_date`, `closed_reason`, `reason`, `reason_text`, `is_security`, `is_outdated`, and `outdated_notice` in both the `response` and `no_update` arrays of the `update_plugins` transient.
  * Populate standalone `closed` response items into `no_update`.

* In `wp_update_themes()`:

  * Preserve `closed`, `status`, `is_closed`, `is_suspended`, `is_security`, `is_outdated`, `outdated_notice`, `closed_date`, and `reason` metadata in both the `response` and `no_update` arrays of the `update_themes` transient.

=== 2. Plugins List Table UI & Inline Notices

**`wp-admin/includes/update.php`** and **`wp-admin/includes/class-wp-plugins-list-table.php`**

* `wp_plugin_update_rows()` now processes items in `no_update` when they are flagged as closed or outdated.

* In `wp_plugin_update_row()`:

  * **Security closures** (`is_security === true` or `reason === 'security-issue'`): Displays `.notice.notice-error.inline.notice-alt` with `role=""alert""`: ""Warning: This plugin was closed on [Date] due to a security issue and is no longer available for download. It should be uninstalled or replaced immediately.""

  * **General closures:**
Displays `.notice.notice-warning.inline.notice-alt` with `role=""status""`: ""Notice: This plugin was closed on [Date] ([Reason]) and is no longer available for download.""

  * **Outdated plugins:**
Displays `.notice.notice-warning.inline.notice-alt` with `role=""status""` and the value of `outdated_notice`.

* Status badges (`Closed (Security)`, `Closed`, and `Outdated`) are rendered alongside the plugin title, with `.screen-reader-text` accessibility announcements.

=== 3. Themes Screen UI & Preview Modal

**`wp-admin/includes/theme.php`**, **`wp-admin/themes.php`**, and **`src/js/_enqueues/wp/theme.js`**

* `wp_prepare_themes_for_js()` exports `closed`, `is_suspended`, `is_security`, `is_outdated`, `closedDate`, `closedReason`, and `outdatedNotice` to JavaScript.
* Theme card overlays and badges are rendered on both PHP non-JS cards and Underscore templates (`tmpl-theme` and `tmpl-theme-single`).
* Preview modals display prominent warning/error notices containing the closure date and reason.

=== 4. Site Health Check Integration

**`wp-admin/includes/class-wp-site-health.php`**

* Adds the `closed_plugins_and_themes` test under direct tests in `WP_Site_Health::get_tests()`.

* **Critical status:**

  * Triggered when an active plugin or active theme was closed due to a security issue (`is_security === true` or `reason === 'security-issue'`).
  * Includes direct deactivation/action links.

* **Recommended status:**

  * Triggered when an active plugin or theme is closed for non-security reasons or marked as outdated.

=== 5. API Client Handling

**`wp-admin/includes/plugin-install.php`** and **`wp-admin/includes/theme-install.php`**

* In `plugins_api()` and `themes_api()`:

  * Gracefully allow objects with `error => 'closed'` to pass through without converting them into a generic `WP_Error`.

* In `install_plugin_information()` and `install_theme_information()`:

  * Render a dedicated informational modal panel displaying the closure notice, date, reason, description, and slug instead of showing a fatal error screen.

----


== Testing Instructions

=== 1. Verify Unit Tests

Run the newly added PHPUnit test suites:

```bash
./vendor/bin/phpunit tests/phpunit/tests/plugins/closedPlugins.php
./vendor/bin/phpunit tests/phpunit/tests/theme/closedThemes.php
```

Both suites should pass with all assertions successful.

=== 2. Simulate Closed & Outdated Plugins

Filter `pre_http_request` or set the `update_plugins` site transient with:

* A plugin having:

  * `closed => true`
  * `is_security => true`
  * `closed_date => '2025-01-15'`
  * `closed_reason => 'security-issue'`

* A plugin having:

  * `closed => true`
  * `reason_text => 'Author Request'`
  * `closed_date => '2024-06-20'`

* A plugin having:

  * `is_outdated => true`

Visit `wp-admin/plugins.php` and verify that the corresponding badges are displayed next to the plugin names:

* Red: `Closed (Security)`
* Grey: `Closed`
* Yellow: `Outdated`

Also verify that the inline notice rows display the correct text, ARIA roles, and styling.

=== 3. Check Site Health

Activate a plugin marked with `is_security => true` and navigate to:

`wp-admin/site-health.php`

Verify that Site Health reports a **Critical** status issue advising immediate deactivation and deletion, and that a direct deactivation link with a valid nonce is provided.

=== 4. View Plugin & Theme Information Modals

Visit:

`wp-admin/plugin-install.php?tab=plugin-information&plugin=[closed-slug]&TB_iframe=true`

Confirm that a dedicated informational panel is displayed containing the closure date, reason, and description instead of the generic error message.
"	mralidoosti
1	62594	Updates Page: Add small icons before the Compatability line		Upgrade/Install		normal	normal	Awaiting Review	feature request	new	has-patch	2024-11-28T01:11:29Z	2025-11-13T20:51:50Z	"On the updates page the admin might see there is updates and has a few plugins.

Instead of having to read the `Compatibility with WordPress 6.7.1: 100% (according to its author)` line they could quickly see an icon.

A nice green checkmark would indicate 100% compatability, a blue question mark could be unknown compatability. I'm not sure if there are any other messages as I've not seen them.

But this way if the user saw 3 green checkmarks and only has the 3 plugins they know it's safe to tick select all and proceed.

Visual indicators are a great way to reduce eye strain when trying to check text quickly."	justinz2021
1	61521	feature request: Conditional that checks whether WordPress is currently performing updates		Upgrade/Install	6.5.5	normal	minor	Awaiting Review	feature request	new		2024-06-27T14:33:42Z	2024-07-10T23:40:11Z	"We've all been there; we select a bunch of plugins and update them all at once, the update process is starting and then one of the installed plugins is showing us some note in the backend like ""learn more about the pro version of this plugin"" or ""a new plugin has been installed; purge the cache"" or something similar.

In some cases, you can simply dismiss these notices and it won't affect anything. In others, clicking on the notice will take you to a different page.

In the worst case scenario, the update process is now stuck and the .maintenance file will never leave your web host unless you delete it manually via FTP.

My suggestion would be adding a conditional in the WordPress core that returns true while updates are being performed. This way, developers could check for said conditional and make sure that their little tooltips are only being displayed AFTER all updates have been concluded. So WordPress won't get stuck, even for novice users who haven't made this mistake 40 million times (like myself)."	redsoulwarrior
1	47296	Attachments with very long filenames fail to save to the database		Upload		normal	normal	Awaiting Review	defect (bug)	new		2019-05-16T17:51:39Z	2022-01-04T19:22:50Z	"When an attachment is uploaded and the `attachment` post is inserted into the database, the `guid` is set to the attachment URL. The `guid` database column is limited to 255 characters, so a very long domain/filename combination can result in the post failing to save to the database with the vague message ""Could not insert post into the database"". The uploaded file does not get deleted from the uploads directory, and further attempts to upload the same file without renaming it will result in a different error, ""The uploaded file could not be moved to {location}"".

The issue occurs in `wpdb::strip_invalid_text()` and `wpdb::process_fields()`. `wpdb::strip_invalid_text()` trims the field contents down to 255 characters, and `wpdb::process_fields()` fails as a result of this data change.

The root cause is the same as #32315, though I believe this should still be tracked and handled separately. Judging by the trajectory of #32315, the user would be presented with a cryptic database-focused error message, whereas a better solution for this problem would be that the attachment successfully inserts.

=== To Replicate

1. Create a file and give it a name composed of 240+ characters (the ""tipping point"" length depends on the site's domain, amongst other factors, so this error can occur with shorter filenames).
2. Upload the file to WordPress anywhere media can be added.
3. The database insert should have failed with the error message, ""Could not insert post into the database"".
4. Attempt to upload the same file again to observe the error message, ""The uploaded file could not be moved to..."""	mboynes
1	40609	Cannot register an application/foo+xml mime type without also registering application/xml		Upload		normal	normal	Awaiting Review	defect (bug)	new		2017-04-30T04:05:08Z	2017-06-01T19:21:11Z	"In wp_check_filetype_and_ext() there is a block that uses finfo_file to sniff the mime type of a file. When registering an application/foo+xml type the returned type from finfo_file is application/xml so to allow application/foo+xml using the upload_mimes filter one must also allow application/xml otherwise this real_mime check fails.

It seems like the check should allow the original mime type if the real_mime is application/xml and the $mime is of the form application/foo+xml"	paulsowden
1	46557	Dragging image to uploader directly from another website causes redirection		Upload		normal	normal	Awaiting Review	defect (bug)	new		2019-03-18T16:28:19Z	2019-03-18T16:28:19Z	"1. Drag image from another website to editor
2. Image is handled correctly and embeded in content (by hotlink, but some may argue it's desired behavior)

1. Open Media Library modal (or Media admin page)
2. Drag and drop image from another website
3. Dropzone overlay is presented indicating ability to drop image to upload
4. Redirection to image URL is fired instead

There is no issue when image is dragged to Desktop first and then from Desktop to Library."	marsjaninzmarsa
1	55457	Function media_handle_sideload doesn't return with some pdf files due to Imagick		Upload	5.9.2	normal	normal	Awaiting Review	defect (bug)	new		2022-03-24T10:21:41Z	2022-03-24T10:21:41Z	"I'm trying to upload procedurally some media with `media_handle_sideload`, but some pdf files cause the execution flow to froze without `media_handle_sideload` returning a value nor launching an `Exception`.
This happens when the Imagick module is installed.

=== Environment
* **OS**: CentOS 7
* **PHP Version**: 7.4.28
* **WordPress Version**: 5.9.2
* **Imagick Version**: 6.9.10-68

=== Debug snippet
The bug can be verified calling the function `alceo_handle_media_debug`
{{{#!php
<?php

function alceo_handle_media_debug() {
    alceo_handle_media( 'https://life365.s3.eu-central-1.amazonaws.com/IT/p/11822/file/FilamentClear_2018.pdf' );
}

function alceo_handle_media( $url ) {
    $path_info = pathinfo( parse_url( $url )['path'] );
    $file_type = wp_check_filetype( $path_info['basename'] );

    if ( ! $file_type['ext'] ) {
        return;
    }

    require_once( ABSPATH . 'wp-admin/includes/media.php' );
    require_once( ABSPATH . 'wp-admin/includes/file.php' );
    require_once( ABSPATH . 'wp-admin/includes/image.php' );

    $media_title = $path_info['basename'];

    $tmp_name = download_url( $url );

    if ( is_wp_error( $tmp_name ) ) {
        error_log( print_r( $tmp_name, true ) );
    }

    $file = array(
        'name' => $media_title,
        'tmp_name' => $tmp_name,
    );

    try {
        $media_id = media_handle_sideload(
            $file, 0, null, array(
                'post_author' => 0,
                'post_name' => sanitize_title( $media_title ),
            )
        );
    } catch ( \Exception $e ) {
        error_log( print_r( $e, true ) );
    }

    if ( is_wp_error( $media_id ) ) {
        error_log( print_r( $tmp_name, true ) );
    }
}
}}}

=== Testing
I've tried to test adding these `error_log` lines into method `pdf_load_source` of class `WP_Image_Editor_Imagick` (file `wp-includes/class-wp-image-editor-imagick.php`)
{{{#!php
<?php

class WP_Image_Editor_Imagick extends WP_Image_Editor {

    // ...    

    protected function pdf_load_source() {
        error_log( ""Into pdf_load_source"" );
        $filename = $this->pdf_setup();
        error_log( ""Filename: "" . print_r( $filename, true ) );

        if ( is_wp_error( $filename ) ) {
            return $filename;
        }

        try {
            error_log( ""Trying with "" . print_r( $this->image, true ) );
            // When generating thumbnails from cropped PDF pages, Imagemagick uses the uncropped
            // area (resulting in unnecessary whitespace) unless the following option is set.
            $this->image->setOption( 'pdf:use-cropbox', true );
            error_log( ""Option use cropbox true"" );

            // Reading image after Imagick instantiation because `setResolution`
            // only applies correctly before the image is read.
            $this->image->readImage( $filename );
            error_log( ""Image read tried"" );
        } catch ( Exception $e ) {
            error_log( ""Catched"" );
            // Attempt to run `gs` without the `use-cropbox` option. See #48853.
            $this->image->setOption( 'pdf:use-cropbox', false );
            error_log( ""Option use cropbox false"" . print_r( '', true ) );

            $this->image->readImage( $filename );
            error_log( ""Image read"" . print_r( '', true ) );
        }

        return true;
    }

    // ... 
}
}}}

with this result in `debug.log`:

{{{
[23-Mar-2022 14:36:23 UTC] Into pdf_load_source
[23-Mar-2022 14:36:23 UTC] Filename: /<host_path>/wp-content/uploads/2022/03/Product-XXXXX-FilamentClear_2018-1.pdf[0]
[23-Mar-2022 14:36:23 UTC] Trying with Imagick Object
(
)

[23-Mar-2022 14:36:23 UTC] Option use cropbox true

}}}

And none of the following `error_log` prints coming after this last line.

=== Other details
* This happens with some pdf files (the one from the url in the code being one of them)
* I've tried changing php version to the latest 8.1, but the issue persists


"	alceomazza
1	45670	Getting different MIME type from function finfo_file.		Upload	5.0.1	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2018-12-17T09:41:57Z	2019-01-09T23:07:37Z	"Getting different REAL MIME type from function `finfo_file`.

The issue maybe the different Operating Systems or due to Different PHP versions.

But, While debugging the issue, When I try to upload the XML on localhost I got the `text/xml` as a real MIME type and on live site its `application/xml`.

Below is the debugging steps:

File: `/wp-includes/functions.php` line 2346

{{{
// Validate files that didn't get validated during previous checks.
if ( $type && ! $real_mime && extension_loaded( 'fileinfo' ) ) {
	$finfo = finfo_open( FILEINFO_MIME_TYPE );
	$real_mime = finfo_file( $finfo, $file );
	finfo_close( $finfo );

	// @DEBUGGING...
	echo '<pre>';
	var_dump( FILEINFO_MIME_TYPE ) . '<br/>';
	var_dump( $finfo ) . '<br/>';
	var_dump( $file ) . '<br/>';
	var_dump( $real_mime ) . '<br/>';
	wp_die();
}}}

The output of the above code is below on LOCALHOST:

- PHP: Version 7.2.4
- System: Windows NT M 6.3 build 9600 (Windows 8.1 Professional Edition) i586

{{{
int(16)
resource(767) of type (Unknown)
string(46) ""C:\Users\Yum\AppData\Local\Temp/wxr-LccAYF.tmp""
string(8) ""text/xml""
}}}

But, It is different on the LIVE site.

- PHP: Version 7.0.32-4+ubuntu16.04.1+deb.sury.org+1
- System: Linux ip-172-31-25-204 4.4.0-134-generic #160-Ubuntu SMP Wed Aug 15 14:58:00 UTC 2018 x86_64

{{{
int(16)
resource(747) of type (Unknown)
string(19) ""/tmp/wxr-YNkiH5.tmp""
string(15) ""application/xml""
}}}"	Mahesh901122
1	57764	MYSQL operations excessive CPU consumption issue.		Upload	6.1.1	normal	normal	Awaiting Review	defect (bug)	new	reporter-feedback	2023-02-18T14:32:17Z	2023-02-20T02:11:17Z	"Hello,
There is very excessive CPU consumption in MYSQL process on our site. When we check this via Show MYSQL proccess we encounter this query.

{{{
SELECT post_mime_type, COUNT( * ) AS num_posts FROM wp_posts WHERE post_type = 'attachment' AND post
}}}

I am waiting for your help to solve the problem."	Blogizma
1	59564	Not showing uploaded media in theme		Upload	6.3.2	normal	critical	Awaiting Review	defect (bug)	new		2023-10-08T16:11:23Z	2024-02-08T15:06:26Z	"When user want login facing issue with wp admin area login please check attached screenshot with issue details and with uploaded media is not showing in theme 

Login Screenshot - [https://ibb.co/BPV3Qsr]
Media Screenshot - [https://ibb.co/hCpS1Mn]"	vipalok2023
1	62821	Plupload Plugin - Outdated and No Longer Maintained, Request for Replacement or Update		Upload	6.7.1	normal	normal	Awaiting Review	defect (bug)	new		2025-01-17T14:14:33Z	2025-01-20T12:19:58Z	"The Plupload plugin has not received any updates for a long time and appears to no longer be actively maintained. As a result, it poses a potential security risk due to the lack of patches for known vulnerabilities and outdated dependencies.

Request:
1. Are there any plans or ongoing efforts to replace or update the Plupload plugin in the WordPress project?
2. Are there any replacements or alternatives currently in development or in the pipeline for use in WordPress that could mitigate potential security risks?
3. If no alternatives are being considered, can we explore other actively maintained and secure file upload plugins for WordPress?"	shreyasgeotab
1	64027	Some specific image not uploading correctly on 6.8.2		Upload	6.8.2	normal	normal	Awaiting Review	defect (bug)	new	needs-unit-tests	2025-09-23T09:01:38Z	2025-10-03T13:47:58Z	"If i upload this image o the admin it gives an error after a while.

If i use ""wp_insert_attachment_from_url"", it stops at the call and does not give an error or anything. 

On an older version it was fine (6.7)"	krisz768
1	52531	Unable to upload .ico with PHP 7.4		Upload	5.6.1	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2021-02-15T16:41:43Z	2021-08-09T16:40:24Z	"Hello,

I found the following related ticket: #11824
You can find attached an example file.

On PHP 7.3.21 libmagic is shown as 533 in phpinfo under ""fileinfo"" section.
On PHP 7.4.9 libmagic is shown as 537 in phpinfo under ""fileinfo"" section.

I tried to upload the same file as an admin on a fresh WP install on both versions on PHP, and it works with 7.3 while it doesn't with 7.4.

The error is ""Sorry, this file type is not permitted for security reasons."".

What I found is that `finfo_file` function returns either ""image/x-icon"" or ""image/vnd.microsoft.icon"" depending on the PHP version I'm using.
In the first case, this will be allowed because it matches WP's internal mime types array. But in the second case, it will simply return an invalid type error (empty `$type` and `$ext` variables).

I used the following workaround:
{{{#!php
<?php
function tmp_wp_check_filetype_and_ext( $values, $file, $filename, $mimes, $real_mime ) {
	if( ! $values['ext'] && ! $values['type'] && $real_mime === 'image/vnd.microsoft.icon' && preg_match( '!\.(ico)$!i', $filename, $ext ) ) {
		$values['ext'] = $ext[1];
		$values['type'] = 'image/x-icon';
	}

	return $values;
}
add_filter( 'wp_check_filetype_and_ext', 'tmp_wp_check_filetype_and_ext', 10, 5 );
}}}

"	lpointet
1	32318	Upload fails, wp_insert_attachment returned 0		Upload	4.1.5	normal	normal	Awaiting Review	defect (bug)	new	close	2015-05-08T22:34:11Z	2022-10-19T15:47:53Z	"One specific mp3 file was failing to attach, and it seems wp_insert_attachment is breaking with 0 returned, breaking update-attachment-metadata:
       
wp-admin/includes/media.php, line 360:

{{{

    // Save the data
    $id = wp_insert_attachment($attachment, $file, $post_id);
    if ( !is_wp_error($id) ) {
        wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
    }
  
}}}
 
id = 0, caused by these lines in wp-includes/post.php, around line 3351:

{{{

if ( false === $wpdb->insert( $wpdb->posts, $data ) ) {
            if ( $wp_error ) {
                return new WP_Error('db_insert_error', __('Could not insert post into the database'), $wpdb->last_error);
            } else {
                return 0;
            }
        }
      
}}}
 
In this case the documentation is wrong, it didn't return the post id."	programmin
1	39864	Upload not giving back any error message when uploads directory doesn't exist.		Upload	4.7.2	normal	normal	Awaiting Review	defect (bug)	new		2017-02-13T17:35:20Z	2017-02-13T17:35:20Z	"[[Image(http://i.imgur.com/PLrKSNz.png)]]
When the path (upload_path in media options) set in the above image doesn't exists, no error message is displayed when uploading images. It would be great if an error message would tell you that the path is set wrong or doesn't exists, so you get an idea where to start looking to fix the error.

After you upload an image the image gets displayed like this on the media page:
[[Image(http://i.imgur.com/Euiaihl.png)]]"	nahakiole
1	53089	multisite uploads not working on windows 10/xampp after change blog_upload_space		Upload	5.7.1	normal	normal	Awaiting Review	defect (bug)	new		2021-04-26T13:58:37Z	2021-04-26T13:58:37Z	"If i modify the ""blog_upload_space"" at /wp-admin/network/settings.php, then media uploads not working nowhere.

Environment: php 7.4.16 / windows 10 / XAMPP / WP 5.7.1.

PDF returns with ""unexcepted response"", Images returns ""the post-process error"".

I check on a fresh install too (no plugins), everything worked until I switched it to custom value. 
If i clear ""blog_upload_space"" and uncheck the settings, not working.

Also tested on Ubuntu, fresh install, works well.

"	er2es
1	48477	Add a hook before creating image sub-sizes		Upload	5.3	normal	normal	Future Release	enhancement	new	dev-feedback	2019-10-31T22:49:49Z	2026-02-01T12:39:10Z	"Since things are moving for media thumbnails lately, it could be a good time to add a hook that fires right before thumbnails are created.
It would allow plugins to perform operations on the main file for example."	GregLone
1	30384	Cannot hook plupload's JavaScript consistently		Upload	4.0	normal	normal	Awaiting Review	enhancement	new		2014-11-18T16:03:56Z	2019-05-15T21:15:59Z	"Visit /wp-admin/media-new.php and enter the following into the console:

    window.uploader.bind('FileUploaded', function (){alert(1)})

Upload a file and once that's complete your function will be executed.

However if you visit /wp-admin/upload.php or /wp-admin/post-new.php and run that JavaScript you'll find that window.uploader is undefined.

I'm trying to prompt users to add additional information about the images they upload, but without access to the Uploader object that appears to be impossible."	tomdxw
1	33963	New function: `upload_url()`		Upload		normal	normal	Awaiting Review	enhancement	new	reporter-feedback	2015-09-22T12:32:57Z	2025-09-12T18:56:49Z	Retrieve the url to the uploads directory.	sebastian.pisula
1	65235	Upload error in UI should specifically convey if a status 413 was received		Upload		normal	normal	Awaiting Review	enhancement	new	has-patch	2026-05-13T14:08:15Z	2026-05-14T06:20:29Z	"In the event that a user attempts to upload a media file that is below the maximum php filesize, but where the POST is above the limit set by the web server, the error message (en) is:

> Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.


(It's a common configuration in web servers to set the max post/body sizes to be the same value as the maximum file size, but - since there's an overhead - files that appear to be just below the advertised limit will fail to upload.)

When {{{/wp-admin/async-upload.php}}} receives a 413 code the user presented error message should include this code and the explanation - such as ""413 Request Entity Too Large"" (en) - since this is the information that will be useful for whoever does technical support for the site."	leedxw
1	44868	Upload plugin and theme functionalities do not check on PATHINFO_EXTENSION before upload.		Upload		normal	normal	Future Release	enhancement	new		2018-08-30T13:18:42Z	2018-08-31T06:39:52Z	If you go to /wp-admin/plugins.php click the button **Add new** and you upload a .sql file or whatever file then this is possible. The fille end-up in the wp-uploads/ folder and will not be removed. There should which will check the extension and removes it if it is not a .zip file.	csorbamedia
1	59097	Upload via link		Upload	6.3	normal	minor	Awaiting Review	feature request	new		2023-08-13T20:47:24Z	2023-08-14T14:13:45Z	In the media part of the admin panel, add a way to upload files by pasting in the link	thedustry
1	44313	/wp-admin/css/forms.css problem when adding a <select> with 'restrict_manage_users'		Users		normal	normal	Awaiting Review	defect (bug)	new		2018-06-05T20:10:29Z	2018-06-05T20:14:10Z	"When `current_user_can( 'promote_users' )`,  [[https://developer.wordpress.org/reference/classes/wp_users_list_table/extra_tablenav/|WP_Users_List_Table::extra_tablenav()]] adds a dropdown of roles and a ""Change"" button.  All well and good; see the `without_restrict_manage_users_current.png` attached screen shot.

If something then hooks into [[https://developer.wordpress.org/reference/hooks/restrict_manage_users|restrict_manage_users]] and adds another dropdown, the ""Change"" button is located to the right of that new dropdown rather than still being next to the roles dropdown; see the `restrict_manage_users_current.png` attached screen shot, and the `restrict_manage_users_expected.png` screen shot for what I expect to see."	pbiron
1	51792	Add Home URL to New User emails		Users		normal	normal	Awaiting Review	defect (bug)	new	has-patch	2020-11-17T03:09:13Z	2026-05-28T10:20:13Z	"Back when we all had one website and we jolly well liked it, it was easy to know ""Oh someone signed up at my site!"" Now that people manage multiple sites, some with similar names, it can be confusing as to which site, exactly, did the new user join.

We can save headaches in this one cool trick ... add the Home URL to the emails."	Ipstenu
1	36341	Add a note about the 'init' hook to the DocBlock for get_current_user_id()		Users		normal	normal	Future Release	defect (bug)	assigned	has-patch	2016-03-25T22:47:15Z	2018-02-09T16:44:54Z		DrewAPicture
1	43496	CS: Fix disabled for user-edit.php		Users	4.1	normal	normal	Future Release	defect (bug)	new	has-patch	2018-03-08T06:42:24Z	2019-03-24T17:02:12Z	"Many apologies if this is a duplicate. I have searched but did not find it yet posted.

According to W3C specifications and as per HTML Coding Standards( https://make.wordpress.org/core/handbook/best-practices/coding-standards/html/#quotes ) handbook all attributes must have a value, and must use double or single-quotes."	mukesh27
1	53960	Construct WP_User::cap_key dynamically from wpdb instance		Users		normal	normal	Awaiting Review	defect (bug)	new		2021-08-19T14:18:53Z	2021-08-19T14:48:35Z	"Currently, `WP_User` is set up to set the `cap_key` property, which is used as the usermeta key for a user's role on a given site, only when the `WP_User` instance is instantiated.

This leads to some complication when setting a user role after a `switch_to_blog` call. While `switch_to_blog` internally calls a hook which ends up calling `wp_switch_roles_and_user`, that method only changes the ''current'' user's role without impacting other `WP_User` instances.

This means the following (psuedo-)code would not work as one might expect:

{{{#!php
<?php

$user  = get_user_by( 'id', 123 ); // note: 123 is not the logged in user here
$sites = get_sites( /* some criteria */ );

foreach ( $sites as $site_id ) {
    switch_to_blog( $site_id );

    $user->set_role( /* some role */ );

    restore_current_blog();
}
}}}

The end result is that the role is only applied to the root site, because the user object's `cap_key` property is never updated when the site is switched.

However, the user's ""user level"" ''is'' updated correctly for each site — because WP_User's `update_user_level_from_caps` method generates the user meta key dynamically from the blog prefix ''when the method is called'' ([https://github.com/WordPress/WordPress/blob/87bd00ac5b41674810cdc5b125561407ee827868/wp-includes/class-wp-user.php#L672 ref]).

I would propose changing the `cap_key` to be generated dynamically every time it is referenced, rather than only when the object is instantiated or `WP_User::for_site()` is explicitly called."	chrisvanpatten
1	52256	Default hide password field.		Users	5.6	normal	normal	Awaiting Review	defect (bug)	reopened	dev-feedback	2021-01-08T09:39:32Z	2026-01-31T15:35:13Z	"Generate password not working when the first click on generate password button.

Check different behavior in the below URLs

**{siteurl}/wp-admin/user-new.php
{siteurl}/wp-admin/profile.php
{siteurl}/wp-admin/user-edit.php?user_id={user_id}**

Check the video for a better understanding.
https://www.loom.com/share/2b91de25ab1447e3bb069738c0d318b8"	dilipbheda
1	61469	Display name doesn't update correctly when first and last name fields are cleared.		Users	6.5.4	normal	normal	Awaiting Review	defect (bug)	new	has-patch	2024-06-19T23:03:29Z	2025-05-12T01:38:22Z	"When a user fills out the ""First Name"" and ""Last Name"" fields in their profile and selects a display name option, the display name reflects the first and last names correctly. However, if the user later removes the values from the ""First Name"" and ""Last Name"" fields, the display name still displays the previously entered first and last names. The display name only updates correctly if the user also changes the ""Display name publicly as"" field. This behavior can be confusing and inconsistent.

**Steps to Reproduce:**
1. Go to the profile editing page.
2. Enter values in the ""First Name"" and ""Last Name"" fields.
3. Select a display name option that includes the first and last names.
4. Save the changes.
5. Remove the values from the ""First Name"" and ""Last Name"" fields.
6. Observe that the display name still shows the previously entered first and last names.
7. Change the ""Display name publicly as"" field to any other option and then back to the desired option.
8. Save the changes.
9. Observe that the display name now updates correctly.

**Expected Behavior:**  
The display name should automatically update to reflect the cleared ""First Name"" and ""Last Name"" fields without requiring additional changes to the ""Display name publicly as"" field.

**Actual Behavior:**  
The display name does not update and still shows the previous first and last names unless the ""Display name publicly as"" field is manually changed.
"	lekiq
1	58917	Email Sending validation doesn't occur when password reset is sent from the Users page		Users		normal	normal	Awaiting Review	defect (bug)	new	changes-requested	2023-07-26T16:29:48Z	2026-10-27T20:27:25Z	"Suppose my site isn't configured to send emails. So, when a user tries to reset his password from the public login page, he gets the below error.

https://prnt.sc/q_Z3IIC1f_dy

This is expected, but now, if I log in as an admin account, navigate under the Users page, and try to send the reset link for that user, I can see no validation error. The email doesn't get sent in real, but I can't see the error that my site isn't configured for sending emails.

https://prnt.sc/O9k_QpycwCfh

I think this type of behaviour is kind of confusing for users. We should show that validation error in the admin panel as well."	rajinsharwar
1	26805	Email with Apostrophe May Not Update in Multisite		Users	3.8	normal	normal	Awaiting Review	defect (bug)	reopened	has-patch	2014-01-10T07:40:41Z	2026-10-29T02:13:01Z	"From what I understand, an apostrophe is allowed in an email address before the @ sign.
The is_email function does not validate this and fails, returning false if there is an apostrophe"	contrid
1	61774	Error 403 while adding ' to last name on user page		Users		normal	major	Awaiting Review	defect (bug)	reopened	reporter-feedback	2024-07-26T16:55:13Z	2024-08-28T15:56:57Z	In the user-edit.php page, while adding a ' (apostrophe) and save it, returns 403 forbidden code.	gazto
1	63897	Generate Password button requires two clicks to update the password field on Add New User screen		Users	5.6	normal	normal	Awaiting Review	defect (bug)	new	dev-feedback	2025-08-29T13:49:35Z	2025-09-11T12:25:19Z	"When creating a new user in WordPress (Users → Add New), the ""Generate Password"" button does not update the password field value on the first click.

=== Steps to reproduce:

1. Go to Users → Add New.
2. Scroll to the Password field and click Generate Password.
3. Notice that the password input value remains unchanged.
4. Click Generate Password again. This time, the password input updates correctly with a previously created password.

=== Expected behavior:
The password input field should be updated with a generated password immediately on the first click.

=== Actual behavior:
The password input field only updates after the second click on the Generate Password button."	parthvataliya
1	53972	Improper capability check when viewing attachment of private custom post type		Users	5.8	normal	normal	Awaiting Review	defect (bug)	new		2021-08-20T22:12:45Z	2021-08-20T22:12:45Z	"WP 5.8

Create custom post type:
* Created a unique custom post type (e.g. ""sample"") with custom capability_type (e.g. ""sample"")
* Create a new post under this post type, set to private
* Upload attachment as featured image (so it's parent is set to the custom post type post)

Set capabilities:
* Customize subscriber role capabilities to allow ""read_private_samples""

Create user:
* Create new Subscriber user
* View the attachment URL

EXPECTED: User to be able to view this URL
ACTUAL: User cannot view the URL, 404 page

From what I can tell, it is checking for the existence of the ""read_private_posts"" capability for the currently logged in user when it should be checking for the ""read_private_samples"" capability."	sccr410
1	57391	Length Validation and error handling of adding new user		Users	6.1.1	normal	minor	Awaiting Review	defect (bug)	new		2022-12-28T15:20:17Z	2022-12-28T15:20:17Z	"Today there is missing validation of max length of First Name, Last Name and Email. If any of the fields are greater than possible value to save in the database WordPress GUI will present: 

Result: New user created.

As a User I would except 1. Error message instead of a false message that stats: New user created
and 2. a Max length of input fields in GUI to avoid to send a request.

There are some today. ""User URL may not be longer than 100 characters."", and here would be nice if the input field was max 100."	ipajen
1	48119	Logout does not work when using cookie prefixes		Users		normal	normal	Awaiting Review	defect (bug)	new		2019-09-24T07:04:24Z	2019-09-24T10:36:42Z	"When renaming the WordPress cookies to use the `__Host-` or `__Secure-` cookie prefix, logging out no longer works. The wp_clear_auth_cookie() function needs to use the ""Secure"" cookie flag to ensure that modern browsers will allow in to overwrite the login cookies when cookie prefixes are used.

How to reproduce:

1. Use HTTPS
2. Set cookie prefixes in wp_config.php:
{{{
if (@$_SERVER['HTTPS'] == 'on') {
  define( 'COOKIEHASH',           md5( WP_HOME ) ); 
  define( 'USER_COOKIE',          '__Host-wpse_user_'      . COOKIEHASH );
  define( 'PASS_COOKIE',          '__Host-wpse_pass_'      . COOKIEHASH );
  define( 'AUTH_COOKIE',          '__Host-wpse_'           . 